@infinilabs/ui-web-cli 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.js +1 -1
- package/package.json +12 -12
package/lib/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.webCli=t(require("react")):e.webCli=t(e.react)}(self,(e=>(()=>{var t={2787:(e,t,n)=>{"use strict";var r=n(8534),o=n(1919),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},1919:(e,t,n)=>{"use strict";var r=n(3583),o=n(8534),i=n(2644),s=n(7379),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=n(3790),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7309:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".tab-title {\n display: inline-block;\n height: 30px;\n overflow: hidden;\n}\n.tab-title .input-eidtor {\n border-radius: 0;\n border: none;\n border-right: none;\n padding-left: 1em;\n color: rgba(0, 0, 0, 0.65);\n height: 28px;\n line-height: 28px;\n background-color: #939ea0;\n color: #fff;\n}\n.tab-title .input-eidtor:focus {\n outline: none;\n}\n.tab-title .icon-cont {\n overflow: hidden;\n height: 100%;\n display: flex;\n align-items: center;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 5px 0;\n}\n",""])},5505:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".fullscreen {\n position: fixed;\n width: 100%;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 100;\n}\n@keyframes slideInUp {\n from {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.slideInUp {\n animation-name: slideInUp;\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);\n}\n",""])},1952:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".empty {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n",""])},9555:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".error {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.error .anticon {\n font-size: 32px;\n color: #ff6c6c;\n margin-bottom: 8px;\n}\n.error .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},4545:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".container {\n display: flex;\n overflow: hidden;\n}\n.container .group {\n border-right: 1px solid #ebebeb;\n width: 120px;\n}\n.container .group .item {\n padding: 0 8px 0 16px;\n height: 32px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: #666;\n gap: 8px;\n cursor: pointer;\n}\n.container .group .item.selected,\n.container .group .item:hover {\n background-color: #e8f6fe;\n}\n.container .group .item .label {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.container .group .item .icon {\n font-size: 10px;\n}\n.container .content {\n flex: 1;\n padding: 0px 16px;\n overflow: hidden;\n}\n.container .content .search {\n margin-top: 16px;\n}\n.container .content .tools {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n}\n.container .content .tools .result {\n color: #999;\n font-size: 12px;\n}\n.container .content .tools .actions {\n display: flex;\n justify-content: space-between;\n gap: 12px;\n color: #101010;\n font-size: 14px;\n align-items: center;\n}\n.container .content .tools .actions .ant-checkbox-inner {\n width: 14px;\n height: 14px;\n border-color: rgba(0, 0, 0, 0.65);\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-checked .ant-checkbox-inner:after {\n top: 5px;\n left: 2px;\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n transition: all 0.3s;\n}\n.container .content .listWrapper {\n margin: 12px -6px 0;\n}\n.container .content .list .item {\n height: 32px;\n color: #666;\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 6px;\n gap: 8px;\n}\n.container .content .list .item.selected,\n.container .content .list .item:hover {\n background-color: #e8f6fe;\n}\n.container .content .list .item .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.container .content .list .item .tag {\n color: #999;\n}\n.container .content .footerWrapper {\n margin: 0px -16px 0;\n}\n.container .content .footer {\n height: 40px;\n border-top: 1px solid #ebebeb;\n padding: 0 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n}\n.container .content .footer .pager .pageNum {\n margin: 0 12px;\n}\n.container .content .footer .pager .icon {\n color: #007fff;\n cursor: pointer;\n}\n.container .content .footer .pager .icon.disabled {\n color: #c1c1c1;\n pointer-events: none;\n}\n.container .content .footer .actions {\n font-size: 12px;\n}\n.filterPopover .ant-popover-title {\n border: 0;\n}\n.filterPopover .ant-popover-inner-content {\n padding: 16px;\n}\n.sorter {\n width: 250px;\n}\n.sorter .title {\n color: #333;\n font-weight: 600;\n}\n.sorter .form {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n}\n.sorter .actions {\n display: flex;\n justify-content: right;\n margin-top: 18px;\n}\n.filters {\n width: 250px;\n}\n.filters .title {\n color: #333;\n font-weight: 600;\n margin-bottom: 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.filters .title .clear {\n color: #007fff;\n font-size: 12px;\n cursor: pointer;\n}\n.filters .content {\n margin-bottom: 16px;\n}\n.filters .content .label {\n color: #999;\n}\n.filters .content .options {\n max-height: 150px;\n overflow-y: auto;\n}\n.filters .content .options .option {\n display: flex;\n justify-content: space-between;\n padding: 8px 0 0;\n}\n.filters .content:last-child {\n margin-bottom: 0;\n}\n",""])},6141:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".loading {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.loading img {\n height: 32px;\n margin-bottom: 8px;\n}\n.loading .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},2045:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".dropdownList {\n padding: auto;\n}\n.dropdownList .ant-btn {\n padding: 0 8px;\n border-color: #ebebeb;\n color: #666;\n}\n.dropdownList .ant-btn,\n.dropdownList .ant-btn.ant-popover-open,\n.dropdownList .ant-btn:hover {\n background-color: #e8f6fe;\n}\n.dropdownList .ant-btn[disabled],\n.dropdownList .ant-btn[disabled]:hover {\n background-color: #eee;\n color: #bbb;\n cursor: not-allowed;\n}\n.dropdownList .button {\n width: 100%;\n}\n.dropdownList .button .content {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n height: 100%;\n color: #666;\n}\n.dropdownList .button .content .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.dropdownList .button .content .label .icon {\n color: #101010;\n margin-right: 8px;\n}\n.dropdownList .button .content .down {\n font-size: 10px;\n}\n.dropdownList .button .content .close {\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n display: none;\n}\n.dropdownList .button .content .multipleItem {\n background-color: #fff;\n padding: 0 4px;\n}\n.dropdownList .button .content .multipleItem:not(:last-child) {\n margin-right: 8px;\n}\n.dropdownList .button.allowClear:hover .down {\n display: none;\n}\n.dropdownList .button.allowClear:hover .close {\n display: initial;\n}\n.popover {\n padding-top: 8px;\n}\n.popover .ant-popover-arrow {\n display: none;\n}\n.popover .ant-popover-inner-content {\n padding: 0;\n}\n",""])},5017:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".resize-bar {\n display: flex;\n height: 10px;\n background: #eee;\n margin-top: -5px;\n align-items: center;\n justify-content: center;\n}\n.resize-bar .dash {\n height: 1px;\n width: 16px;\n background: #666;\n margin-top: 1px;\n}\n",""])},3175:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".flex-tabbar {\n height: 100%;\n}\n.flex-tabbar .ant-tabs {\n height: 100%;\n}\n.flex-tabbar .ant-tabs-top-bar {\n display: flex;\n}\n.flex-tabbar .ant-tabs-extra-left {\n order: 1;\n flex: 0 0 auto;\n}\n.flex-tabbar .ant-tabs-nav-container {\n order: 2;\n flex: 0 0 auto;\n}\n.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container {\n max-width: calc(100% - 140px);\n}\n.flex-tabbar .tabbar-icon {\n padding: 0 10px;\n cursor: pointer;\n}\n.flex-tabbar .tabbar-icon:hover {\n background-color: #efefef;\n}\n.ant-tabs-extra-append {\n order: 3;\n}\n.ant-tabs-extra-right {\n order: 4;\n margin-left: auto;\n flex: 0 0 auto;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {\n font-weight: 400;\n background-color: #939ea0;\n color: #fff;\n border-color: #939ea0;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {\n border-radius: 0;\n height: 32px;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content {\n line-height: 30px;\n display: flex;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container {\n height: 30px;\n max-width: calc(100% - 156px);\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {\n margin-bottom: 18px;\n}\n",""])},8600:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".Console {\n position: relative;\n width: 100%;\n height: calc(100vh);\n display: flex;\n}\n.Console .ConsoleInput_wrapper {\n flex: 1;\n min-width: 0;\n}\n.Console .ConsoleOutput_wrapper {\n width: 50%;\n}\n.Console .resizer {\n position: relative;\n z-index: 999;\n width: 14px;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fafbfd;\n padding: 0;\n margin: 0;\n outline: none;\n border: none;\n cursor: col-resize;\n}\n.Console .resizer:hover {\n background-color: #cce1f0;\n}\n.Console .ant-tabs-right-content {\n padding-right: 0px;\n}\n.Console .ant-tabs-right-bar .ant-tabs-tab {\n padding: 8px 10px;\n writing-mode: vertical-lr;\n height: max-content;\n}\n",""])},1938:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".conApp {\n display: flex;\n}\n.conApp__editor {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n position: relative;\n}\n.conApp__editor__spinner {\n width: 100%;\n}\n.conApp__output {\n display: flex;\n flex: 1 1 1px;\n}\n.conApp__editorContent,\n.conApp__outputContent {\n height: 100%;\n flex: 1 1 1px;\n font-size: 14px;\n}\n.conApp__editorActions {\n position: absolute;\n z-index: 1000;\n top: 0;\n right: 8px;\n line-height: 1;\n min-width: 20px;\n display: flex;\n align-items: center;\n}\n.conApp__editorActions button {\n line-height: inherit;\n cursor: pointer;\n}\n.conApp__editorActionButton {\n padding: 0 4px;\n appearance: none;\n border: none;\n background: none;\n}\n.conApp__editorActionButton--success {\n color: #017D73;\n}\n.conApp__resizer {\n z-index: 1000;\n}\n.conApp__autoComplete {\n position: absolute;\n left: -1000px;\n visibility: hidden;\n /* by pass any other element in ace and resize bar, but not modal popups */\n z-index: 1002;\n margin-top: 22px;\n}\n.conApp__settingsModal {\n min-width: 460px;\n}\n.conApp__requestProgressBarContainer {\n position: relative;\n z-index: 2000;\n}\n.conApp__tabsExtension {\n border-bottom: 1px solid #cccccc;\n}\n.ace_method,\n.ace_select_keyword {\n color: #c80a68 !important;\n}\n.ace_url,\n.ace_start_triple_quote,\n.ace_end_triple_quote {\n color: #00756c;\n}\n.conApp .euiButtonIcon--primary:not([class*='isDisabled']) {\n box-shadow: none !important;\n background-color: transparent !important;\n}\n",""])},6856:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".request-status-bar {\n height: 100%;\n}\n.request-status-bar .bar-item {\n height: 100%;\n}\n.request-status-bar .bar-item .base-info {\n display: flex;\n font-size: 12px;\n align-items: center;\n margin-top: 2px;\n}\n.request-status-bar .bar-item .base-info .info-item {\n margin: 0 12px;\n position: relative;\n flex: 0 0 auto;\n}\n.request-status-bar .bar-item .base-info .info-item.health {\n padding-right: 14px;\n}\n.request-status-bar .bar-item .status_info {\n display: flex;\n font-size: 12px;\n align-items: center;\n}\n.request-status-bar .bar-item .status_info .info-item {\n margin: 0 12px;\n}\n",""])},6277:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},7517:(e,t,n)=>{"use strict";var r=n(3790),o=n(7388),i=n(7379),s=n(1325);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===l&&p?p.writable:!l});else{if(!u&&(a||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},3790:(e,t,n)=>{"use strict";var r=n(8534)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},1101:e=>{"use strict";e.exports=EvalError},9183:e=>{"use strict";e.exports=Error},7570:e=>{"use strict";e.exports=RangeError},9898:e=>{"use strict";e.exports=ReferenceError},7388:e=>{"use strict";e.exports=SyntaxError},7379:e=>{"use strict";e.exports=TypeError},4585:e=>{"use strict";e.exports=URIError},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,o.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},3583:(e,t,n)=>{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},8534:(e,t,n)=>{"use strict";var r,o=n(9183),i=n(1101),s=n(7570),a=n(9898),l=n(7388),c=n(7379),u=n(4585),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},_=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,m=n(1427)(),g=n(757)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":_,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));b["%Error.prototype%"]=x}var j=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return b[t]=n,n},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=n(3583),k=n(7533),S=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),N=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),P=E.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,L=function(e,t){var n,r=e;if(k(O,r)&&(r="%"+(n=O[r])[0]+"%"),k(b,r)){var o=b[r];if(o===v&&(o=j(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=R(e,0,1),n=R(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,C,(function(e,t,n,o){r[r.length]=n?N(o,A,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=L("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],T(n,S([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],_=R(h,0,1),m=R(h,-1);if(('"'===_||"'"===_||"`"===_||'"'===m||"'"===m||"`"===m)&&_!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),k(b,i="%"+(r+="."+h)+"%"))s=b[i];else if(null!=s){if(!(h in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=k(s,h),s=s[h];d&&!a&&(b[i]=s)}}return s}},1325:(e,t,n)=>{"use strict";var r=n(8534)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},708:(e,t,n)=>{"use strict";var r=n(3790),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},757:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},1427:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6465);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6465:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7533:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(3583);e.exports=i.call(r,o)},2864:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,_=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return v.call(o,n,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var q=n(6153),I=q.custom,D=B(I)?I:null;function M(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return v.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==$(e)||P&&"object"==typeof e&&P in e)}function z(e){return!("[object RegExp]"!==$(e)||P&&"object"==typeof e&&P in e)}function B(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,a){var l=r||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!J(l,"customInspect")||l.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?L(t,x):x}if("bigint"==typeof t){var k=String(t)+"n";return w?L(t,k):k}var T=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=T&&T>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var I,G=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=O.call(Array(e.indent+1)," ")}return{base:n,prev:O.call(Array(t+1),n)}}(l,o);if(void 0===a)a=[];else if(V(a,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(a=E.call(a)).push(n),r){var i={depth:l.depth};return J(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,a)}return e(t,l,o+1,a)}if("function"==typeof t&&!z(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Z(t,H);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+O.call(te,", ")+" }":"")}if(B(t)){var ne=R?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||R?ne:K(ne)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var re="<"+b.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+M(F(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+b.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var se=Z(t,H);return G&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+X(se,G)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ae,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&_){if(D&&"function"==typeof t[D]&&q)return q(t,{depth:T-o});if("symbol"!==_&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,(function(e,n){le.push(H(n,t,!0)+" => "+H(e,t))})),Y("Map",i.call(t),le,G)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(H(e,t))})),Y("Set",c.call(t),ce,G)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return K(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return K(H(S.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return K(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)&&!z(t)){var ue=Z(t,H),pe=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!pe&&P&&Object(t)===t&&P in t?y.call($(t),8,-1):de?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+O.call(j.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":G?he+"{"+X(ue,G)+"}":he+"{ "+O.call(ue,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return G.call(e,t)}function $(e){return _.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(y.call(e,0,t.maxStringLength),t)+r}return M(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function K(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):O.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+O.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=J(e,o)?t(e[o],e):""}var i,s="function"==typeof T?T(e):[];if(R){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)J(e,l)&&(n&&String(Number(l))===l&&l<e.length||R&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<s.length;c++)C.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},5846:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw new RangeError(p[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return _(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+f(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=a)e=d(e/35);return d(r+36*e/(e+38))}function b(e){var t,n,r,o,i,l,c,u,p,f,_,m=[],g=e.length,v=0,b=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=v,l=1,c=a;o>=g&&h("invalid-input"),((u=(_=e.charCodeAt(o++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:a)>=a||u>d((s-v)/l))&&h("overflow"),v+=u*l,!(u<(p=c<=x?1:c>=x+26?26:c-x));c+=a)l>d(s/(f=a-p))&&h("overflow"),l*=f;x=w(v-i,t=m.length+1,0==i),d(v/t)>s-b&&h("overflow"),b+=d(v/t),v%=t,m.splice(v++,0,b)}return y(m)}function x(e){var t,n,r,o,i,l,c,u,p,_,m,y,b,x,j,O=[];for(y=(e=g(e)).length,t=128,n=0,i=72,l=0;l<y;++l)(m=e[l])<128&&O.push(f(m));for(r=o=O.length,o&&O.push("-");r<y;){for(c=s,l=0;l<y;++l)(m=e[l])>=t&&m<c&&(c=m);for(c-t>d((s-n)/(b=r+1))&&h("overflow"),n+=(c-t)*b,t=c,l=0;l<y;++l)if((m=e[l])<t&&++n>s&&h("overflow"),m==t){for(u=n,p=a;!(u<(_=p<=i?1:p>=i+26?26:p-i));p+=a)j=u-_,x=a-_,O.push(f(v(_+j%x,0))),u=d(j/x);O.push(f(v(u,0))),i=w(n,b,r==o),n=0,++r}++n,++t}return O.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:y},decode:b,encode:x,toASCII:function(e){return m(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return m(e,(function(e){return l.test(e)?b(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},7893:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},7877:(e,t,n)=>{"use strict";var r=n(6324),o=n(2650),i=n(7893);e.exports={formats:i,parse:o,stringify:r}},2650:(e,t,n)=>{"use strict";var r=n(1536),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}if(a){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(a.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:"__proto__"!==u&&(s[u]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,n=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?h="utf-8":"utf8=%26%2310003%3B"===d[u]&&(h="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var _,m,g=d[u],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;-1===v?(_=t.decoder(g,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(_=t.decoder(g.slice(0,v),s.decoder,h,"key"),m=r.maybeMap(l(g.slice(v+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=o.call(n,_);w&&"combine"===t.duplicates?n[_]=r.combine(n[_],m):w&&"last"!==t.duplicates||(n[_]=m)}return n}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],_=c(h,u[h],n,"string"==typeof e);p=r.merge(p,_,n)}return!0===n.allowSparse?p:r.compact(p)}},6324:(e,t,n)=>{"use strict";var r=n(9632),o=n(1536),i=n(7893),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},_=function e(t,n,i,s,a,c,p,d,_,m,g,y,v,w,b,x,j,O){for(var E,k=t,S=O,T=0,N=!1;void 0!==(S=S.get(h))&&!N;){var R=S.get(t);if(T+=1,void 0!==R){if(R===T)throw new RangeError("Cyclic object value");N=!0}void 0===S.get(h)&&(T=0)}if("function"==typeof m?k=m(n,k):k instanceof Date?k=v(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?v(e):e}))),null===k){if(c)return _&&!x?_(n,f.encoder,j,"key",w):n;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(k))return _?[b(x?n:_(n,f.encoder,j,"key",w))+"="+b(_(k,f.encoder,j,"value",w))]:[b(n)+"="+b(String(k))];var P,C=[];if(void 0===k)return C;if("comma"===i&&l(k))x&&_&&(k=o.maybeMap(k,_)),P=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(m))P=m;else{var A=Object.keys(k);P=g?A.sort(g):A}var L=d?n.replace(/\./g,"%2E"):n,q=s&&l(k)&&1===k.length?L+"[]":L;if(a&&l(k)&&0===k.length)return q+"[]";for(var I=0;I<P.length;++I){var D=P[I],M="object"==typeof D&&void 0!==D.value?D.value:k[D];if(!p||null!==M){var F=y&&d?D.replace(/\./g,"%2E"):D,U=l(k)?"function"==typeof i?i(q,F):q:q+(y?"."+F:"["+F+"]");O.set(t,T);var z=r();z.set(h,O),u(C,e(M,U,i,s,a,c,p,d,"comma"===i&&x&&l(k)?null:_,m,g,y,v,w,b,x,j,z))}}return C};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var p=[];if("object"!=typeof o||null===o)return"";var d=a[c.arrayFormat],h="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var m=r(),g=0;g<n.length;++g){var y=n[g];c.skipNulls&&null===o[y]||u(p,_(o[y],y,d,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=p.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},1536:(e,t,n)=>{"use strict";var r=n(7893),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;u+=l){for(var p=a.length>=l?a.slice(u,u+l):a,d=[],f=0;f<p.length;++f){var h=p.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?d[d.length]=p.charAt(f):h<128?d[d.length]=s[h]:h<2048?d[d.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(f)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},2644:(e,t,n)=>{"use strict";var r=n(8534),o=n(7517),i=n(708)(),s=n(1325),a=n(7379),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},9632:(e,t,n)=>{"use strict";var r=n(8534),o=n(2787),i=n(2864),s=n(7379),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=_(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!_(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):l?(t||(t=new l),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},2511:(e,t,n)=>{var r=n(7309);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3107:(e,t,n)=>{var r=n(5505);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},6706:(e,t,n)=>{var r=n(1952);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},2077:(e,t,n)=>{var r=n(9555);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},403:(e,t,n)=>{var r=n(4545);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},6219:(e,t,n)=>{var r=n(6141);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3963:(e,t,n)=>{var r=n(2045);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},6235:(e,t,n)=>{var r=n(5017);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},8333:(e,t,n)=>{var r=n(3175);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3302:(e,t,n)=>{var r=n(8600);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9368:(e,t,n)=>{var r=n(1938);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7270:(e,t,n)=>{var r=n(6856);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},8569:(e,t,n)=>{var r,o,i={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),a=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}((function(e){return document.querySelector(e)})),l=null,c=0,u=[],p=n(3716);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(y(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(y(r.parts[s],t));i[r.id]={id:r.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function h(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function _(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var s=c++;n=l||(l=m(t)),r=b.bind(null,n,s,!1),o=b.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=j.bind(null,n,t),o=function(){_(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=x.bind(null,n),o=function(){_(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];(a=i[s.id]).refs--,r.push(a)}for(e&&d(f(e,t),t),o=0;o<r.length;o++){var a;if(0===(a=r[o]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var v,w=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function j(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},3716:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},2168:(e,t,n)=>{"use strict";var r=n(5846);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(7877);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var v=a.exec(y);if(v)return this.path=y,this.href=y,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(y);if(w){var b=(w=w[0]).toLowerCase();this.protocol=b,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||w&&_[w]||(y=y.substr(2),this.slashes=!0)}if(!_[w]&&(x||w&&!m[w])){for(var j,O,E=-1,k=0;k<p.length;k++)-1!==(S=y.indexOf(p[k]))&&(-1===E||S<E)&&(E=S);for(-1!==(O=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(j=y.slice(0,O),y=y.slice(O+1),this.auth=decodeURIComponent(j)),E=-1,k=0;k<u.length;k++){var S;-1!==(S=y.indexOf(u[k]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),R=(k=0,N.length);k<R;k++){var P=N[k];if(P&&!P.match(d)){for(var C="",A=0,L=P.length;A<L;A++)P.charCodeAt(A)>127?C+="x":C+=P[A];if(!C.match(d)){var q=N.slice(0,k),I=N.slice(k+1),D=P.match(f);D&&(q.push(D[1]),I.unshift(D[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[b])for(k=0,R=c.length;k<R;k++){var U=c[k];if(-1!==y.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),y=y.split(U).join(z)}}var B=y.indexOf("#");-1!==B&&(this.hash=y.substr(B),y=y.slice(0,B));var G=y.indexOf("?");if(-1!==G?(this.search=y.substr(G),this.query=y.substr(G+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,G)):t&&(this.search="",this.query={}),y&&(this.pathname=y),m[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var J=this.search||"";this.path=M+J}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var c=a[l];"protocol"!==c&&(n[c]=e[c])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||_[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||y||n.host&&e.pathname,b=w,x=n.pathname&&n.pathname.split("/")||[],j=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),w=w&&(""===f[0]||""===x[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search)return j&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=x.slice(-1)[0],E=(n.host||e.host||x.length>1)&&("."===O||".."===O)||""===O,k=0,S=x.length;S>=0;S--)"."===(O=x[S])?x.splice(S,1):".."===O?(x.splice(S,1),k++):k&&(x.splice(S,1),k--);if(!w&&!b)for(;k--;k)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var T,N=""===x[0]||x[0]&&"/"===x[0].charAt(0);return j&&(n.hostname=N?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(w=w||n.host&&x.length)&&!N&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.qg=y,t.GP=function(e){return"string"==typeof e&&(e=y(e)),e instanceof o?e.format():o.prototype.format.call(e)}},2469:(e,t,n)=>{var r={"./_common.json":4471,"./bulk.json":689,"./cat.aliases.json":8173,"./cat.allocation.json":9089,"./cat.count.json":3966,"./cat.fielddata.json":4529,"./cat.health.json":7401,"./cat.help.json":7888,"./cat.indices.json":4880,"./cat.master.json":5837,"./cat.nodeattrs.json":9345,"./cat.nodes.json":6616,"./cat.pending_tasks.json":3791,"./cat.plugins.json":7277,"./cat.recovery.json":6808,"./cat.repositories.json":6495,"./cat.segments.json":7369,"./cat.shards.json":8966,"./cat.snapshots.json":7408,"./cat.tasks.json":9683,"./cat.templates.json":6122,"./cat.thread_pool.json":4710,"./clear_scroll.json":8090,"./cluster.allocation_explain.json":3808,"./cluster.delete_component_template.json":9797,"./cluster.get_component_template.json":994,"./cluster.get_settings.json":6461,"./cluster.health.json":2899,"./cluster.pending_tasks.json":9777,"./cluster.put_component_template.json":2897,"./cluster.put_settings.json":8422,"./cluster.remote_info.json":388,"./cluster.reroute.json":5,"./cluster.state.json":7646,"./cluster.stats.json":5328,"./count.json":9788,"./create.json":4185,"./delete.json":1750,"./delete_by_query.json":1489,"./delete_by_query_rethrottle.json":3235,"./delete_script.json":7944,"./exists.json":9153,"./exists_source.json":107,"./explain.json":44,"./field_caps.json":797,"./get.json":9367,"./get_script.json":7787,"./get_script_context.json":7335,"./get_script_languages.json":8623,"./get_source.json":409,"./index.json":7299,"./indices.analyze.json":5552,"./indices.clear_cache.json":8688,"./indices.clone.json":2637,"./indices.close.json":8560,"./indices.create.json":1344,"./indices.delete.json":6095,"./indices.delete_alias.json":1452,"./indices.delete_template.json":5830,"./indices.exists.json":2228,"./indices.exists_alias.json":8411,"./indices.exists_template.json":6871,"./indices.exists_type.json":4373,"./indices.flush.json":7110,"./indices.flush_synced.json":4845,"./indices.forcemerge.json":2825,"./indices.get.json":7976,"./indices.get_alias.json":4607,"./indices.get_field_mapping.json":9002,"./indices.get_mapping.json":9889,"./indices.get_settings.json":9008,"./indices.get_template.json":9211,"./indices.get_upgrade.json":5799,"./indices.open.json":4652,"./indices.put_alias.json":4774,"./indices.put_mapping.json":6472,"./indices.put_settings.json":8555,"./indices.put_template.json":5080,"./indices.recovery.json":1123,"./indices.refresh.json":4687,"./indices.rollover.json":2465,"./indices.segments.json":8566,"./indices.shard_stores.json":6307,"./indices.shrink.json":9321,"./indices.split.json":1604,"./indices.stats.json":8263,"./indices.update_aliases.json":3246,"./indices.upgrade.json":7704,"./indices.validate_query.json":1665,"./info.json":7425,"./ingest.delete_pipeline.json":6529,"./ingest.get_pipeline.json":6502,"./ingest.processor_grok.json":9123,"./ingest.put_pipeline.json":7661,"./ingest.simulate.json":2635,"./mget.json":4836,"./msearch.json":4844,"./msearch_template.json":3807,"./mtermvectors.json":7978,"./nodes.hot_threads.json":8397,"./nodes.info.json":5928,"./nodes.reload_secure_settings.json":2353,"./nodes.stats.json":3767,"./nodes.usage.json":4531,"./ping.json":213,"./put_script.json":8580,"./rank_eval.json":5986,"./reindex.json":2820,"./reindex_rethrottle.json":8472,"./render_search_template.json":669,"./scripts_painless_execute.json":913,"./scroll.json":4964,"./search.json":5917,"./search_shards.json":6543,"./search_template.json":1260,"./snapshot.cleanup_repository.json":9396,"./snapshot.create.json":8981,"./snapshot.create_repository.json":7630,"./snapshot.delete.json":1290,"./snapshot.delete_repository.json":5695,"./snapshot.get.json":7691,"./snapshot.get_repository.json":1328,"./snapshot.restore.json":4753,"./snapshot.status.json":7795,"./snapshot.verify_repository.json":4401,"./tasks.cancel.json":8479,"./tasks.get.json":8307,"./tasks.list.json":761,"./termvectors.json":1273,"./update.json":6644,"./update_by_query.json":8203,"./update_by_query_rethrottle.json":8985};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2469},5477:(e,t,n)=>{var r={"./clear_scroll.json":9594,"./cluster.health.json":8899,"./cluster.put_component_template.json":7985,"./cluster.put_settings.json":9862,"./cluster.reroute.json":3445,"./count.json":8636,"./indices.analyze.json":6752,"./indices.clone.json":9997,"./indices.create.json":6640,"./indices.delete_template.json":406,"./indices.exists_template.json":2071,"./indices.get_field_mapping.json":4266,"./indices.get_mapping.json":6193,"./indices.get_template.json":7131,"./indices.put_alias.json":7481,"./indices.put_settings.json":1675,"./indices.put_template.json":1864,"./indices.rollover.json":4305,"./indices.update_aliases.json":510,"./indices.validate_query.json":1185,"./snapshot.create.json":6453,"./snapshot.create_repository.json":2174,"./snapshot.restore.json":8513,"./update_by_query.json":9739};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5477},9155:t=>{"use strict";t.exports=e},6153:()=>{},8018:()=>{},221:()=>{},4471:e=>{"use strict";e.exports=JSON.parse('{"documentation":{"methods":[]}}')},689:e=>{"use strict";e.exports=JSON.parse('{"bulk":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","type":"","_source":[],"_source_excludes":[],"_source_includes":[],"pipeline":""},"methods":["POST","PUT"],"patterns":["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"}}')},8173:e=>{"use strict";e.exports=JSON.parse('{"cat.aliases":{"url_params":{"format":"","local":"__flag__","h":[],"help":"__flag__","s":[],"v":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cat/aliases","_cat/aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}')},9089:e=>{"use strict";e.exports=JSON.parse('{"cat.allocation":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/allocation","_cat/allocation/{nodes}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}')},3966:e=>{"use strict";e.exports=JSON.parse('{"cat.count":{"url_params":{"format":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/count","_cat/count/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}')},4529:e=>{"use strict";e.exports=JSON.parse('{"cat.fielddata":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"h":[],"help":"__flag__","s":[],"v":"__flag__","fields":[]},"methods":["GET"],"patterns":["_cat/fielddata","_cat/fielddata/{fields}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}')},7401:e=>{"use strict";e.exports=JSON.parse('{"cat.health":{"url_params":{"format":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"ts":"__flag__","v":"__flag__"},"methods":["GET"],"patterns":["_cat/health"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}')},7888:e=>{"use strict";e.exports=JSON.parse('{"cat.help":{"url_params":{"help":"__flag__","s":[]},"methods":["GET"],"patterns":["_cat"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}')},4880:e=>{"use strict";e.exports=JSON.parse('{"cat.indices":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"health":["green","yellow","red"],"help":"__flag__","pri":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__","include_unloaded_segments":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cat/indices","_cat/indices/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}')},5837:e=>{"use strict";e.exports=JSON.parse('{"cat.master":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/master"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}')},9345:e=>{"use strict";e.exports=JSON.parse('{"cat.nodeattrs":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/nodeattrs"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}')},6616:e=>{"use strict";e.exports=JSON.parse('{"cat.nodes":{"url_params":{"bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"format":"","full_id":"__flag__","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/nodes"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}')},3791:e=>{"use strict";e.exports=JSON.parse('{"cat.pending_tasks":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/pending_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}')},7277:e=>{"use strict";e.exports=JSON.parse('{"cat.plugins":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/plugins"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}')},6808:e=>{"use strict";e.exports=JSON.parse('{"cat.recovery":{"url_params":{"format":"","active_only":"__flag__","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"detailed":"__flag__","h":[],"help":"__flag__","index":[],"s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/recovery","_cat/recovery/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}')},6495:e=>{"use strict";e.exports=JSON.parse('{"cat.repositories":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/repositories"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}')},7369:e=>{"use strict";e.exports=JSON.parse('{"cat.segments":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/segments","_cat/segments/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}')},8966:e=>{"use strict";e.exports=JSON.parse('{"cat.shards":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/shards","_cat/shards/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}')},7408:e=>{"use strict";e.exports=JSON.parse('{"cat.snapshots":{"url_params":{"format":"","ignore_unavailable":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/snapshots","_cat/snapshots/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}')},9683:e=>{"use strict";e.exports=JSON.parse('{"cat.tasks":{"url_params":{"format":"","node_id":[],"actions":[],"detailed":"__flag__","parent_task":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},6122:e=>{"use strict";e.exports=JSON.parse('{"cat.templates":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/templates","_cat/templates/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}')},4710:e=>{"use strict";e.exports=JSON.parse('{"cat.thread_pool":{"url_params":{"format":"","size":["","k","m","g","t","p"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}')},8090:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"methods":["DELETE"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"}}')},3808:e=>{"use strict";e.exports=JSON.parse('{"cluster.allocation_explain":{"url_params":{"include_yes_decisions":"__flag__","include_disk_info":"__flag__"},"methods":["GET","POST"],"patterns":["_cluster/allocation/explain"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}')},9797:e=>{"use strict";e.exports=JSON.parse('{"cluster.delete_component_template":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}')},994:e=>{"use strict";e.exports=JSON.parse('{"cluster.get_component_template":{"url_params":{"flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_component_template","_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}')},6461:e=>{"use strict";e.exports=JSON.parse('{"cluster.get_settings":{"url_params":{"flat_settings":"__flag__","master_timeout":"","timeout":"","include_defaults":"__flag__"},"methods":["GET"],"patterns":["_cluster/settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}')},2899:e=>{"use strict";e.exports=JSON.parse('{"cluster.health":{"url_params":{"expand_wildcards":["open","closed","hidden","none","all"],"level":["cluster","indices","shards"],"local":"__flag__","master_timeout":"","timeout":"","wait_for_active_shards":"","wait_for_nodes":"","wait_for_events":["immediate","urgent","high","normal","low","languid"],"wait_for_no_relocating_shards":"__flag__","wait_for_no_initializing_shards":"__flag__","wait_for_status":["green","yellow","red"]},"methods":["GET"],"patterns":["_cluster/health","_cluster/health/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}')},9777:e=>{"use strict";e.exports=JSON.parse('{"cluster.pending_tasks":{"url_params":{"local":"__flag__","master_timeout":""},"methods":["GET"],"patterns":["_cluster/pending_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}')},2897:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_component_template":{"url_params":{"create":"__flag__","master_timeout":""},"methods":["PUT"],"patterns":["_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}')},8422:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"url_params":{"flat_settings":"__flag__","master_timeout":"","timeout":""},"methods":["PUT"],"patterns":["_cluster/settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}')},388:e=>{"use strict";e.exports=JSON.parse('{"cluster.remote_info":{"methods":["GET"],"patterns":["_remote/info"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}')},5:e=>{"use strict";e.exports=JSON.parse('{"cluster.reroute":{"url_params":{"dry_run":"__flag__","explain":"__flag__","retry_failed":"__flag__","metric":[],"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_cluster/reroute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}')},7646:e=>{"use strict";e.exports=JSON.parse('{"cluster.state":{"url_params":{"local":"__flag__","master_timeout":"","flat_settings":"__flag__","wait_for_metadata_version":"","wait_for_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],"url_components":{"metrics":["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],"indices":null},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}')},5328:e=>{"use strict";e.exports=JSON.parse('{"cluster.stats":{"url_params":{"flat_settings":"__flag__","timeout":""},"methods":["GET"],"patterns":["_cluster/stats","_cluster/stats/nodes/{nodes}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}')},9788:e=>{"use strict";e.exports=JSON.parse('{"count":{"url_params":{"ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"min_score":"","preference":"random","routing":[],"q":"","analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","lenient":"__flag__","terminate_after":""},"methods":["POST","GET"],"patterns":["_count","{indices}/_count"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"}}')},4185:e=>{"use strict";e.exports=JSON.parse('{"create":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","version":"","version_type":["internal","external","external_gte"],"pipeline":""},"methods":["PUT","POST"],"patterns":["{indices}/_create/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"}}')},1750:e=>{"use strict";e.exports=JSON.parse('{"delete":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","if_seq_no":"","if_primary_term":"","version":"","version_type":["internal","external","external_gte","force"]},"methods":["DELETE"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}')},1489:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","from":"0","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","conflicts":["abort","proceed"],"expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"search_timeout":"","size":"","max_docs":"all documents","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"version":"__flag__","request_cache":"__flag__","refresh":"__flag__","timeout":"","wait_for_active_shards":"","scroll_size":"","wait_for_completion":"__flag__","requests_per_second":"","slices":""},"methods":["POST"],"patterns":["{indices}/_delete_by_query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"}}')},3235:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_delete_by_query/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"}}')},7944:e=>{"use strict";e.exports=JSON.parse('{"delete_script":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},9153:e=>{"use strict";e.exports=JSON.parse('{"exists":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["HEAD"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},107:e=>{"use strict";e.exports=JSON.parse('{"exists_source":{"url_params":{"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["HEAD"],"patterns":["{indices}/_source/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},44:e=>{"use strict";e.exports=JSON.parse('{"explain":{"url_params":{"analyze_wildcard":"__flag__","analyzer":"","default_operator":["AND","OR"],"df":"_all","stored_fields":[],"lenient":"__flag__","preference":"random","q":"","routing":"","_source":[],"_source_excludes":[],"_source_includes":[]},"methods":["GET","POST"],"patterns":["{indices}/_explain/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"}}')},797:e=>{"use strict";e.exports=JSON.parse('{"field_caps":{"url_params":{"fields":[],"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"include_unmapped":"__flag__"},"methods":["GET","POST"],"patterns":["_field_caps","{indices}/_field_caps"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"}}')},9367:e=>{"use strict";e.exports=JSON.parse('{"get":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},7787:e=>{"use strict";e.exports=JSON.parse('{"get_script":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7335:e=>{"use strict";e.exports=JSON.parse('{"get_script_context":{"methods":["GET"],"patterns":["_script_context"]}}')},8623:e=>{"use strict";e.exports=JSON.parse('{"get_script_languages":{"methods":["GET"],"patterns":["_script_language"]}}')},409:e=>{"use strict";e.exports=JSON.parse('{"get_source":{"url_params":{"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET"],"patterns":["{indices}/_source/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},7299:e=>{"use strict";e.exports=JSON.parse('{"index":{"url_params":{"wait_for_active_shards":"","op_type":["index","create"],"refresh":["true","false","wait_for"],"routing":"","timeout":"","version":"","version_type":["internal","external","external_gte"],"if_seq_no":"","if_primary_term":"","pipeline":""},"methods":["PUT","POST"],"patterns":["{indices}/_doc/{id}","{indices}/_doc"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"}}')},5552:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"url_params":{"index":""},"methods":["GET","POST"],"patterns":["_analyze","{indices}/_analyze"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}')},8688:e=>{"use strict";e.exports=JSON.parse('{"indices.clear_cache":{"url_params":{"fielddata":"__flag__","fields":[],"query":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"index":[],"request":"__flag__"},"methods":["POST"],"patterns":["_cache/clear","{indices}/_cache/clear"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}')},2637:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"url_params":{"timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_clone/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}')},8560:e=>{"use strict";e.exports=JSON.parse('{"indices.close":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"wait_for_active_shards":""},"methods":["POST"],"patterns":["{indices}/_close"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}')},1344:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"url_params":{"include_type_name":"__flag__","wait_for_active_shards":"","timeout":"","master_timeout":""},"methods":["PUT"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}')},6095:e=>{"use strict";e.exports=JSON.parse('{"indices.delete":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["DELETE"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}')},1452:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_alias":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["{indices}/_alias/{name}","{indices}/_aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},5830:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},2228:e=>{"use strict";e.exports=JSON.parse('{"indices.exists":{"url_params":{"local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","include_defaults":"__flag__"},"methods":["HEAD"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}')},8411:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_alias":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["HEAD"],"patterns":["_alias/{name}","{indices}/_alias/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},6871:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"url_params":{"flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["HEAD"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},4373:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_type":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["HEAD"],"patterns":["{indices}/_mapping/{type}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}')},7110:e=>{"use strict";e.exports=JSON.parse('{"indices.flush":{"url_params":{"force":"__flag__","wait_if_ongoing":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["POST","GET"],"patterns":["_flush","{indices}/_flush"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}')},4845:e=>{"use strict";e.exports=JSON.parse('{"indices.flush_synced":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","none","all"]},"methods":["POST","GET"],"patterns":["_flush/synced","{indices}/_flush/synced"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}')},2825:e=>{"use strict";e.exports=JSON.parse('{"indices.forcemerge":{"url_params":{"flush":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"max_num_segments":"dynamic","only_expunge_deletes":"__flag__"},"methods":["POST"],"patterns":["_forcemerge","{indices}/_forcemerge"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}')},7976:e=>{"use strict";e.exports=JSON.parse('{"indices.get":{"url_params":{"include_type_name":"__flag__","local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","include_defaults":"__flag__","master_timeout":""},"methods":["GET"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}')},4607:e=>{"use strict";e.exports=JSON.parse('{"indices.get_alias":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["GET"],"patterns":["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},9002:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"url_params":{"include_type_name":"__flag__","include_defaults":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["GET"],"patterns":["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}')},9889:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"url_params":{"include_type_name":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_mapping","{indices}/_mapping"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}')},9008:e=>{"use strict";e.exports=JSON.parse('{"indices.get_settings":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","local":"__flag__","include_defaults":"__flag__"},"methods":["GET"],"patterns":["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}')},9211:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"url_params":{"include_type_name":"__flag__","flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_template","_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},5799:e=>{"use strict";e.exports=JSON.parse('{"indices.get_upgrade":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_upgrade","{indices}/_upgrade"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}')},4652:e=>{"use strict";e.exports=JSON.parse('{"indices.open":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"wait_for_active_shards":""},"methods":["POST"],"patterns":["{indices}/_open"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}')},4774:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"url_params":{"timeout":"","master_timeout":""},"methods":["PUT","POST"],"patterns":["{indices}/_alias/{name}","{indices}/_aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},6472:e=>{"use strict";e.exports=JSON.parse('{"indices.put_mapping":{"url_params":{"include_type_name":"__flag__","timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["PUT","POST"],"patterns":["{indices}/_mapping"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}')},8555:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"url_params":{"master_timeout":"","timeout":"","preserve_existing":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__"},"methods":["PUT"],"patterns":["_settings","{indices}/_settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}')},5080:e=>{"use strict";e.exports=JSON.parse('{"indices.put_template":{"url_params":{"include_type_name":"__flag__","order":"","create":"__flag__","master_timeout":"","flat_settings":"__flag__"},"methods":["PUT","POST"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},1123:e=>{"use strict";e.exports=JSON.parse('{"indices.recovery":{"url_params":{"detailed":"__flag__","active_only":"__flag__"},"methods":["GET"],"patterns":["_recovery","{indices}/_recovery"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}')},4687:e=>{"use strict";e.exports=JSON.parse('{"indices.refresh":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["POST","GET"],"patterns":["_refresh","{indices}/_refresh"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}')},2465:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"url_params":{"include_type_name":"__flag__","timeout":"","dry_run":"__flag__","master_timeout":"","wait_for_active_shards":""},"methods":["POST"],"patterns":["{alias}/_rollover","{alias}/_rollover/{new_index}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}')},8566:e=>{"use strict";e.exports=JSON.parse('{"indices.segments":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"verbose":"__flag__"},"methods":["GET"],"patterns":["_segments","{indices}/_segments"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}')},6307:e=>{"use strict";e.exports=JSON.parse('{"indices.shard_stores":{"url_params":{"status":[],"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_shard_stores","{indices}/_shard_stores"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}')},9321:e=>{"use strict";e.exports=JSON.parse('{"indices.shrink":{"url_params":{"copy_settings":"__flag__","timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_shrink/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}')},1604:e=>{"use strict";e.exports=JSON.parse('{"indices.split":{"url_params":{"copy_settings":"__flag__","timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_split/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}')},8263:e=>{"use strict";e.exports=JSON.parse('{"indices.stats":{"url_params":{"completion_fields":[],"fielddata_fields":[],"fields":[],"groups":[],"level":["cluster","indices","shards"],"types":[],"include_segment_file_sizes":"__flag__","include_unloaded_segments":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"forbid_closed_indices":"__flag__"},"methods":["GET"],"patterns":["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],"url_components":{"metrics":["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],"indices":null},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}')},3246:e=>{"use strict";e.exports=JSON.parse('{"indices.update_aliases":{"url_params":{"timeout":"","master_timeout":""},"methods":["POST"],"patterns":["_aliases"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},7704:e=>{"use strict";e.exports=JSON.parse('{"indices.upgrade":{"url_params":{"allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"ignore_unavailable":"__flag__","wait_for_completion":"__flag__","only_ancient_segments":"__flag__"},"methods":["POST"],"patterns":["_upgrade","{indices}/_upgrade"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}')},1665:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"url_params":{"explain":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"q":"","analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","lenient":"__flag__","rewrite":"__flag__","all_shards":"__flag__"},"methods":["GET","POST"],"patterns":["_validate/query","{indices}/_validate/query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}')},7425:e=>{"use strict";e.exports=JSON.parse('{"info":{"methods":["GET"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},6529:e=>{"use strict";e.exports=JSON.parse('{"ingest.delete_pipeline":{"url_params":{"master_timeout":"","timeout":""},"methods":["DELETE"],"patterns":["_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}')},6502:e=>{"use strict";e.exports=JSON.parse('{"ingest.get_pipeline":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_ingest/pipeline","_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}')},9123:e=>{"use strict";e.exports=JSON.parse('{"ingest.processor_grok":{"methods":["GET"],"patterns":["_ingest/processor/grok"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}')},7661:e=>{"use strict";e.exports=JSON.parse('{"ingest.put_pipeline":{"url_params":{"master_timeout":"","timeout":""},"methods":["PUT"],"patterns":["_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}')},2635:e=>{"use strict";e.exports=JSON.parse('{"ingest.simulate":{"url_params":{"verbose":"__flag__"},"methods":["GET","POST"],"patterns":["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}')},4836:e=>{"use strict";e.exports=JSON.parse('{"mget":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[]},"methods":["GET","POST"],"patterns":["_mget","{indices}/_mget"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"}}')},4844:e=>{"use strict";e.exports=JSON.parse('{"msearch":{"url_params":{"search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"max_concurrent_searches":"","typed_keys":"__flag__","pre_filter_shard_size":"","max_concurrent_shard_requests":"","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_msearch","{indices}/_msearch"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"}}')},3807:e=>{"use strict";e.exports=JSON.parse('{"msearch_template":{"url_params":{"search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"typed_keys":"__flag__","max_concurrent_searches":"","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_msearch/template","{indices}/_msearch/template"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"}}')},7978:e=>{"use strict";e.exports=JSON.parse('{"mtermvectors":{"url_params":{"ids":[],"term_statistics":"__flag__","field_statistics":"__flag__","fields":[],"offsets":"__flag__","positions":"__flag__","payloads":"__flag__","preference":"random","routing":"","realtime":"__flag__","version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET","POST"],"patterns":["_mtermvectors","{indices}/_mtermvectors"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"}}')},8397:e=>{"use strict";e.exports=JSON.parse('{"nodes.hot_threads":{"url_params":{"interval":"","snapshots":"10","threads":"3","ignore_idle_threads":"__flag__","type":["cpu","wait","block"],"timeout":""},"methods":["GET"],"patterns":["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}')},5928:e=>{"use strict";e.exports=JSON.parse('{"nodes.info":{"url_params":{"flat_settings":"__flag__","timeout":""},"methods":["GET"],"patterns":["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],"url_components":{"nodes":null,"metrics":["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}')},2353:e=>{"use strict";e.exports=JSON.parse('{"nodes.reload_secure_settings":{"url_params":{"timeout":""},"methods":["POST"],"patterns":["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}')},3767:e=>{"use strict";e.exports=JSON.parse('{"nodes.stats":{"url_params":{"completion_fields":[],"fielddata_fields":[],"fields":[],"groups":"__flag__","level":["indices","node","shards"],"types":[],"timeout":"","include_segment_file_sizes":"__flag__"},"methods":["GET"],"patterns":["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],"url_components":{"nodes":null,"metrics":["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],"index_metric":["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}')},4531:e=>{"use strict";e.exports=JSON.parse('{"nodes.usage":{"url_params":{"timeout":""},"methods":["GET"],"patterns":["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],"url_components":{"nodes":null,"metrics":["_all","rest_actions"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}')},213:e=>{"use strict";e.exports=JSON.parse('{"ping":{"methods":["HEAD"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},8580:e=>{"use strict";e.exports=JSON.parse('{"put_script":{"url_params":{"timeout":"","master_timeout":"","context":""},"methods":["PUT","POST"],"patterns":["_scripts/{id}","_scripts/{id}/{context}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},5986:e=>{"use strict";e.exports=JSON.parse('{"rank_eval":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"search_type":["query_then_fetch","dfs_query_then_fetch"]},"methods":["GET","POST"],"patterns":["_rank_eval","{indices}/_rank_eval"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"}}')},2820:e=>{"use strict";e.exports=JSON.parse('{"reindex":{"url_params":{"refresh":"__flag__","timeout":"","wait_for_active_shards":"","wait_for_completion":"__flag__","requests_per_second":"","scroll":"","slices":"","max_docs":"all documents"},"methods":["POST"],"patterns":["_reindex"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"}}')},8472:e=>{"use strict";e.exports=JSON.parse('{"reindex_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_reindex/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"}}')},669:e=>{"use strict";e.exports=JSON.parse('{"render_search_template":{"methods":["GET","POST"],"patterns":["_render/template","_render/template/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"}}')},913:e=>{"use strict";e.exports=JSON.parse('{"scripts_painless_execute":{"methods":["GET","POST"],"patterns":["_scripts/painless/_execute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"}}')},4964:e=>{"use strict";e.exports=JSON.parse('{"scroll":{"url_params":{"scroll":"","scroll_id":"","rest_total_hits_as_int":"__flag__"},"methods":["GET","POST"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"}}')},5917:e=>{"use strict";e.exports=JSON.parse('{"search":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","ccs_minimize_roundtrips":"__flag__","default_operator":["AND","OR"],"df":"","explain":"__flag__","stored_fields":[],"docvalue_fields":[],"from":"0","ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"size":"10","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"suggest_field":"","suggest_mode":["missing","popular","always"],"suggest_size":"","suggest_text":"","timeout":"","track_scores":"__flag__","track_total_hits":"__flag__","allow_partial_search_results":"__flag__","typed_keys":"__flag__","version":"__flag__","seq_no_primary_term":"__flag__","request_cache":"__flag__","batched_reduce_size":"","max_concurrent_shard_requests":"","pre_filter_shard_size":"","rest_total_hits_as_int":"__flag__"},"methods":["GET","POST"],"patterns":["_search","{indices}/_search"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"}}')},6543:e=>{"use strict";e.exports=JSON.parse('{"search_shards":{"url_params":{"preference":"random","routing":"","local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET","POST"],"patterns":["_search_shards","{indices}/_search_shards"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"}}')},1260:e=>{"use strict";e.exports=JSON.parse('{"search_template":{"url_params":{"ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"preference":"random","routing":[],"scroll":"","search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"explain":"__flag__","profile":"__flag__","typed_keys":"__flag__","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_search/template","{indices}/_search/template"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"}}')},9396:e=>{"use strict";e.exports=JSON.parse('{"snapshot.cleanup_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_snapshot/{repository}/_cleanup"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},8981:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"url_params":{"master_timeout":"","wait_for_completion":"__flag__"},"methods":["PUT","POST"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7630:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create_repository":{"url_params":{"master_timeout":"","timeout":"","verify":"__flag__"},"methods":["PUT","POST"],"patterns":["_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},1290:e=>{"use strict";e.exports=JSON.parse('{"snapshot.delete":{"url_params":{"master_timeout":""},"methods":["DELETE"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},5695:e=>{"use strict";e.exports=JSON.parse('{"snapshot.delete_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["DELETE"],"patterns":["_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7691:e=>{"use strict";e.exports=JSON.parse('{"snapshot.get":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__","verbose":"__flag__"},"methods":["GET"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},1328:e=>{"use strict";e.exports=JSON.parse('{"snapshot.get_repository":{"url_params":{"master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_snapshot","_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},4753:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"url_params":{"master_timeout":"","wait_for_completion":"__flag__"},"methods":["POST"],"patterns":["_snapshot/{repository}/{snapshot}/_restore"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7795:e=>{"use strict";e.exports=JSON.parse('{"snapshot.status":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__"},"methods":["GET"],"patterns":["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},4401:e=>{"use strict";e.exports=JSON.parse('{"snapshot.verify_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_snapshot/{repository}/_verify"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},8479:e=>{"use strict";e.exports=JSON.parse('{"tasks.cancel":{"url_params":{"nodes":[],"actions":[],"parent_task_id":""},"methods":["POST"],"patterns":["_tasks/_cancel","_tasks/{task_id}/_cancel"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},8307:e=>{"use strict";e.exports=JSON.parse('{"tasks.get":{"url_params":{"wait_for_completion":"__flag__","timeout":""},"methods":["GET"],"patterns":["_tasks/{task_id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},761:e=>{"use strict";e.exports=JSON.parse('{"tasks.list":{"url_params":{"nodes":[],"actions":[],"detailed":"__flag__","parent_task_id":"","wait_for_completion":"__flag__","group_by":["nodes","parents","none"],"timeout":""},"methods":["GET"],"patterns":["_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},1273:e=>{"use strict";e.exports=JSON.parse('{"termvectors":{"url_params":{"term_statistics":"__flag__","field_statistics":"__flag__","fields":[],"offsets":"__flag__","positions":"__flag__","payloads":"__flag__","preference":"random","routing":"","realtime":"__flag__","version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET","POST"],"patterns":["{indices}/_termvectors/{id}","{indices}/_termvectors"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"}}')},6644:e=>{"use strict";e.exports=JSON.parse('{"update":{"url_params":{"wait_for_active_shards":"","_source":[],"_source_excludes":[],"_source_includes":[],"lang":"painless","refresh":["true","false","wait_for"],"retry_on_conflict":"0","routing":"","timeout":"","if_seq_no":"","if_primary_term":""},"methods":["POST"],"patterns":["{indices}/_update/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"}}')},8203:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","from":"0","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","conflicts":["abort","proceed"],"expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","pipeline":"none","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"search_timeout":"","size":"","max_docs":"all documents","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"version":"__flag__","version_type":"__flag__","request_cache":"__flag__","refresh":"__flag__","timeout":"","wait_for_active_shards":"","scroll_size":"","wait_for_completion":"__flag__","requests_per_second":"","slices":""},"methods":["POST"],"patterns":["{indices}/_update_by_query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"}}')},8985:e=>{"use strict";e.exports=JSON.parse('{"update_by_query_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_update_by_query/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"}}')},9594:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"data_autocomplete_rules":{"scroll_id":""}}}')},8899:e=>{"use strict";e.exports=JSON.parse('{"cluster.health":{"url_params":{"expand_wildcards":["open","closed","hidden","none","all"],"level":["cluster","indices","shards"],"local":"__flag__","master_timeout":"","timeout":"","wait_for_active_shards":"","wait_for_nodes":"","wait_for_events":["immediate","urgent","high","normal","low","languid"],"wait_for_no_relocating_shards":"__flag__","wait_for_no_initializing_shards":"__flag__","wait_for_status":["green","yellow","red"]}}}')},7985:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_component_template":{"data_autocomplete_rules":{"template":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}},"mappings":{"__scope_link":"put_mapping"}},"_meta":{},"version":0,"allow_auto_create":false}}}')},9862:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"data_autocomplete_rules":{"persistent":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{"_ip":"","_name":"","_host":"","_id":""},"allocation.include":{"_ip":"","_name":"","_host":"","_id":""},"allocation.require":{"_ip":"","_name":"","_host":"","_id":""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{"values":[]}},"allocation.allow_rebalance":{"__one_of":["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{"__one_of":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},"transient":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{"_ip":"","_name":"","_host":"","_id":""},"allocation.include":{"_ip":"","_name":"","_host":"","_id":""},"allocation.require":{"_ip":"","_name":"","_host":"","_id":""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{"values":[]}},"allocation.allow_rebalance":{"__one_of":["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{"__one_of":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}')},3445:e=>{"use strict";e.exports=JSON.parse('{"cluster.reroute":{"data_autocomplete_rules":{"commands":[{"move":{"__template":{"index":"","shard":0,"from_node":"","to_node":""},"index":"{index}","shard":0,"from_node":"{node}","to_node":"{node}"},"cancel":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}},"allocate":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}}}],"dry_run":{"__one_of":[true,false]}}}}')},8636:e=>{"use strict";e.exports=JSON.parse('{"count":{"priority":10,"data_autocomplete_rules":{"query":{}}}}')},6752:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"data_autocomplete_rules":{"text":[],"field":"{field}","analyzer":"","tokenizer":"","char_filter":[],"filter":[],"explain":{"__one_of":[false,true]},"attributes":[]}}}')},9997:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"data_autocomplete_rules":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')},6640:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"data_autocomplete_rules":{"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')},406:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"patterns":["_template/{template}"]}}')},2071:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"patterns":["_template/{template}"]}}')},4266:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"priority":10}}')},6193:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"priority":10}}')},7131:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"patterns":["_template","_template/{template}"]}}')},7481:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"data_autocomplete_rules":{"filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"}}}')},1675:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"data_autocomplete_rules":{"__scope_link":"put_settings"}}}')},1864:e=>{"use strict";e.exports=JSON.parse('{"indices.put_template":{"data_autocomplete_rules":{"index_patterns":[],"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"version":0,"order":0,"aliases":{"__template":{"NAME":{}}}},"patterns":["_template/{template}"]}}')},4305:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"data_autocomplete_rules":{"conditions":{"max_age":"7d","max_docs":1000,"max_size":"5gb"},"settings":{"__scope_link":"put_settings"},"mappings":{"__scope_link":"put_mapping"},"aliases":{"__template":{"NAME":{}}}}}}')},510:e=>{"use strict";e.exports=JSON.parse('{"indices.update_aliases":{"data_autocomplete_rules":{"actions":{"__template":[{"add":{"index":"test1","alias":"alias1"}}],"__any_of":[{"add":{"index":"{index}","alias":"","filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"},"remove":{"index":"","alias":""}}]}}}}')},1185:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"data_autocomplete_rules":{"query":{}}}}')},6453:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":{"__one_of":[true,false]},"partial":{"__one_of":[true,false]}}}}')},2174:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create_repository":{"data_autocomplete_rules":{"__template":{"type":""},"type":{"__one_of":["fs","url","s3","hdfs","azure"]},"settings":{"__one_of":[{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']fs`"},"__template":{"location":"path"},"location":"path","compress":{"__one_of":[true,false]},"concurrent_streams":5,"chunk_size":"10m","max_restore_bytes_per_sec":"20mb","max_snapshot_bytes_per_sec":"20mb"},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']url"},"__template":{"url":""},"url":"","concurrent_streams":5},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']s3"},"__template":{"bucket":""},"bucket":"","region":"","base_path":"","concurrent_streams":5,"chunk_size":"10m","compress":{"__one_of":[true,false]}},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']hdfs"},"__template":{"path":""},"uri":"","path":"some/path","load_defaults":{"__one_of":[true,false]},"conf_location":"cfg.xml","concurrent_streams":5,"compress":{"__one_of":[true,false]},"chunk_size":"10m"},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']azure"},"__template":{"path":""},"container":"","base_path":"","client":"default","location_mode":{"__one_of":["primary_only","secondary_only"]},"readonly":{"__one_of":[true,false]},"compress":{"__one_of":[true,false]},"chunk_size":"10m"}]}}}}')},8513:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":false,"rename_pattern":"index_(.+)","rename_replacement":"restored_index_$1"}}}')},9739:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"data_autocomplete_rules":{"conflicts":"","query":{"__scope_link":"GLOBAL.query"},"script":{"__template":{"source":"","lang":"painless"},"__scope_link":"GLOBAL.script"}}}}')}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var o={};return(()=>{"use strict";r.r(o),r.d(o,{default:()=>Gs});const e=require("react/jsx-runtime"),t=require("antd/lib/icon");var n=r.n(t);require("antd/lib/icon/style/index.js");var i=r(9155),s=r.n(i);const a=require("re-resizable"),l=require("react-intl"),c=require("antd/lib/button");var u=r.n(c);require("antd/lib/button/style/index.js");const p=require("antd/lib/popover");var d=r.n(p);require("antd/lib/popover/style/index.js");const f=require("lodash");var h=r.n(f);const _=require("antd/lib/checkbox");var m=r.n(_);require("antd/lib/checkbox/style/index.js");const g=require("antd/lib/divider");var y=r.n(g);require("antd/lib/divider/style/index.js");const v=require("antd/lib/input");var w=r.n(v);require("antd/lib/input/style/index.js");const b=require("antd/lib/select");var x=r.n(b);require("antd/lib/select/style/index.js");const j=r.p+"fd9163882e4a2722477f810fd0c422c7.svg";r(6219);var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},O.apply(this,arguments)};const E=function(t){var n=t.loading,r=void 0===n||n,o=t.currentLocales;return r?(0,e.jsxs)("div",O({className:"loading"},{children:[(0,e.jsx)("img",{src:j},void 0),(0,e.jsx)("div",O({className:"tips"},{children:o["dropdownlist.loading"]}),void 0)]}),void 0):null};r(2077);var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};const S=function(t){var r=t.currentLocales,o=t.failed;return void 0===o||o?(0,e.jsxs)("div",k({className:"error"},{children:[(0,e.jsx)(n(),{type:"close-circle"},void 0),(0,e.jsx)("div",k({className:"tips"},{children:r["dropdownlist.loading.failed"]}),void 0)]}),void 0):null},T=require("antd/lib/empty");var N=r.n(T);require("antd/lib/empty/style/index.js"),r(6706);var R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)};const P=function(t){return(0,e.jsx)("div",R({className:"empty"},{children:(0,e.jsx)(N(),{image:N().PRESENTED_IMAGE_SIMPLE},void 0)}),void 0)};r(403);var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)},A=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const L=function(t){var r=t.visible,o=t.value,s=t.onChange,a=t.loading,l=void 0!==a&&a,c=t.failed,p=void 0!==c&&c,h=t.rowKey,_=t.renderItem,g=t.renderTag,v=t.renderEmptyList,b=t.onSearchChange,j=t.searchValue,O=t.sorterOptions,k=t.pagination,T=t.data,N=t.sorter,R=t.onSorterChange,L=t.filters,q=t.onFiltersChange,I=t.filterOptions,D=t.groups,M=t.onGroupsChange,F=t.groupOptions,U=t.currentLocales,z=t.showGroup,B=t.onShowGroupChange,G=t.isMultiple,J=t.extraData,$=void 0===J?[]:J,V=t.searchPlaceholder,W=t.onRefresh,H=t.actions,K=void 0===H?[]:H,Q=(0,i.useState)([]),Y=Q[0],X=Q[1],Z=(0,i.useState)(!1),ee=Z[0],te=Z[1],ne=(0,i.useRef)(null),re=(0,i.useCallback)((function(){setTimeout((function(){B(!1),b()}),500)}),[B,b]),oe=function(e,t){var n=A([],Y,!0);n[t]=e,X(n)};(0,i.useEffect)((function(){ne.current&&r&&ne.current.focus()}),[r,ne]),(0,i.useEffect)((function(){r||re()}),[r,re]),(0,i.useEffect)((function(){X(N)}),[N]);var ie=k.currentPage,se=k.pageSize,ae=k.total,le=k.pages,ce=(0,i.useMemo)((function(){if(void 0===D[0])return[];var e=F.find((function(e){return e.value===D[0].value}));return(null==e?void 0:e.list)||[]}),[F,D]),ue=(0,i.useMemo)((function(){return!!G&&(G?0!==(null==o?void 0:o.length)&&(!!T.every((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))||!!T.some((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))&&"indeterminate"):void 0)}),[G,JSON.stringify(T),JSON.stringify(o)]),pe=function(t,r){return z&&0!==t.length?(0,e.jsx)("div",C({className:"group"},{children:t.map((function(t){var o;return(0,e.jsxs)("div",C({className:"item "+((null===(o=D[r])||void 0===o?void 0:o.value)===t.value?"selected":""),onClick:function(){return function(e,t){var n,r=A([],D,!0);(null===(n=r[e])||void 0===n?void 0:n.value)===t.value?r.splice(e,1):r[e]={key:t.key,value:t.value},r.splice(e+1,r.length),M(r)}(r,t)},title:t.label},{children:[(0,e.jsx)("span",C({className:"label"},{children:t.label}),void 0),(0,e.jsx)(n(),{type:"right",className:"icon"},void 0)]}),t.value)}))}),void 0):null},de=K.concat(W?[(0,e.jsx)("a",C({disabled:l,onClick:function(){l||W()}},{children:U["dropdownlist.refresh"]}),void 0)]:[]);return(0,e.jsxs)("div",C({className:"container"},{children:[pe(F,0),pe(ce,1),(0,e.jsxs)("div",C({className:"content"},{children:[(0,e.jsx)(w(),{ref:ne,value:j,onChange:function(e){l||function(e){b(e.trim())}(e.target.value)},allowClear:!0,className:"search",placeholder:V||U["dropdownlist.search.placeholder"]},void 0),(0,e.jsxs)("div",C({className:"tools"},{children:[(0,e.jsxs)("div",C({className:"result"},{children:[U["dropdownlist.result.found"]," ",!1===k?T.length:ae," ",U["dropdownlist.result.records"]]}),void 0),(0,e.jsxs)("div",C({className:"actions"},{children:[O.length>0&&(0,e.jsx)(d(),C({visible:ee,onVisibleChange:te,overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",C({className:"sorter"},{children:[(0,e.jsx)("div",C({className:"title"},{children:U["dropdownlist.sort.by"]}),void 0),(0,e.jsxs)("div",C({className:"form"},{children:[(0,e.jsx)(x(),C({value:Y[0],style:{width:"65%"},onChange:function(e){return oe(e,0)}},{children:O.map((function(t){return(0,e.jsx)(x().Option,C({value:t.key},{children:t.label}),t.key)}))}),void 0),(0,e.jsxs)(x(),C({value:Y[1],style:{width:"35%"},onChange:function(e){return oe(e,1)}},{children:[(0,e.jsx)(x().Option,C({value:"desc"},{children:U["dropdownlist.sort.by.desc"]}),void 0),(0,e.jsx)(x().Option,C({value:"asc"},{children:U["dropdownlist.sort.by.asc"]}),void 0)]}),void 0)]}),void 0),(0,e.jsxs)("div",C({className:"actions"},{children:[(0,e.jsx)(u(),C({type:"link",onClick:function(){R([]),te(!1)}},{children:U["dropdownlist.sort.by.clear"]}),void 0),(0,e.jsx)(u(),C({style:{width:80},type:"primary",onClick:function(){R(Y),te(!1)}},{children:U["dropdownlist.apply"]}),void 0)]}),void 0)]}),void 0)},{children:(0,e.jsx)(n(),{style:{cursor:"pointer"},type:"sort-ascending"},void 0)}),void 0),I.length>0&&(0,e.jsx)(d(),C({overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",C({className:"filters"},{children:[(0,e.jsxs)("div",C({className:"title"},{children:[U["dropdownlist.filters"],(0,e.jsx)(n(),{className:"clear",type:"reload",onClick:function(){q({})}},void 0)]}),void 0),I.map((function(t){return(0,e.jsxs)("div",C({className:"content"},{children:[(0,e.jsx)("div",C({className:"label"},{children:t.label}),void 0),(0,e.jsx)("div",C({className:"options"},{children:(t.list||[]).map((function(n){return(0,e.jsxs)("div",C({className:"option"},{children:[(0,e.jsx)(m(),C({onChange:function(e){return function(e,t,n){var r=(0,f.cloneDeep)(L),o=r[e]||[],i=o.indexOf(t);-1===i?n&&o.push(t):n||o.splice(i,1),r[e]=o,q(r)}(t.key,n.value,e.target.checked)},checked:-1!==(L[t.key]||[]).indexOf(n.value)},{children:n.label||n.value}),void 0),void 0!==n.count&&(0,e.jsx)("div",{children:n.count},void 0)]}),n.value)}))}),void 0)]}),t.key)}))]}),void 0)},{children:(0,e.jsx)(n(),{style:{cursor:"pointer"},type:"filter"},void 0)}),void 0),F.length>0&&(0,e.jsx)(n(),{style:{cursor:"pointer"},type:"layout",onClick:function(){B(!z)}},void 0),G&&(0,e.jsx)(m(),{indeterminate:"indeterminate"===ue,onChange:function(e){return t=e.target.checked,n=(0,f.cloneDeep)(o||[]),T.forEach((function(e){var r=n.findIndex((function(t){return t[h]===e[h]}));-1===r&&t?n.push(e):-1===r||t||n.splice(r,1)})),void s(n);var t,n},checked:!0===ue},void 0)]}),void 0)]}),void 0),(0,e.jsx)("div",C({className:"listWrapper"},{children:(0,e.jsx)("div",C({className:"list",style:{maxHeight:32*(se+$.length)+"px"}},{children:l?(0,e.jsx)(E,{currentLocales:U},void 0):p?(0,e.jsx)(S,{currentLocales:U},void 0):0===T.length&&0===$.length?v?v():(0,e.jsx)(P,{},void 0):$.concat(T).map((function(t){var r=G?-1!==(o||[]).findIndex((function(e){return e[h]===t[h]})):(null==o?void 0:o[h])===t[h];return(0,e.jsxs)("div",C({className:"item "+(r?"selected":""),onClick:function(){return function(e){if(G){var t=(0,f.cloneDeep)(o)||[],n=t.findIndex((function(t){return t[h]===e[h]}));-1===n?t.push(e):t.splice(n,1),s(t)}else s(e)}(t)}},{children:[(0,e.jsx)("div",C({className:"label"},{children:_?_(t):t[h]}),void 0),g&&!z?(0,e.jsx)("div",C({className:"tag"},{children:_?g(t):t[h]}),void 0):null,r&&(0,e.jsx)(n(),{type:"check"},void 0)]}),t[h])}))}),void 0)}),void 0),!1===k?null:(0,e.jsx)("div",C({className:"footerWrapper"},{children:(0,e.jsxs)("div",C({className:"footer"},{children:[(0,e.jsx)("div",C({className:"actions"},{children:de.map((function(t,n){return(0,e.jsxs)(i.Fragment,{children:[t,n!==de.length-1&&(0,e.jsx)(y(),{type:"vertical"},void 0)]},n)}))}),void 0),(0,e.jsxs)("div",C({className:"pager"},{children:[(0,e.jsx)(n(),{onClick:function(){return k.onChange(ie-1)},type:"left",className:"icon "+(ie<=1?"disabled":"")},void 0),(0,e.jsxs)("span",C({className:"pageNum"},{children:[ie,"/",le]}),void 0),(0,e.jsx)(n(),{onClick:function(){return k.onChange(ie+1)},type:"right",className:"icon "+(ie>=le?"disabled":"")},void 0)]}),void 0)]}),void 0)}),void 0)]}),void 0)]}),void 0)};var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},q.apply(this,arguments)};const I=function(t){var n=t.visible,r=t.data,o=void 0===r?[]:r,s=t.pagination,a=t.searchKey,l=t.searchValue,c=t.sorter,u=t.filters,p=t.groups,d=(0,i.useState)(),h=d[0],_=d[1],m=(0,i.useMemo)((function(){var e=(0,f.cloneDeep)(o);a&&l&&(e=e.filter((function(e){return-1!==(""+(e[a]||"")).toLowerCase().indexOf(l.toLowerCase())}))),p.filter((function(e){return void 0!==e.value&&""!==e.value&&!!e.key})).forEach((function(t){e=e.filter((function(e){return!e.hasOwnProperty(t.key)||e[t.key]===t.value}))}));var t=Object.keys(u);if(t.length>0&&t.filter((function(e){return 0!==(u[e]||[]).length})).forEach((function(t){e=e.filter((function(e){return-1!==u[t].indexOf(e[t])}))})),c.length>=2&&c[0]&&c[1]){var n=c[0],r=c[1];e=e.sort((function(e,t){return"string"==typeof e[n]?r===B?t[n].localeCompare(e[n]):e[n].localeCompare(t[n]):isNaN(e[n])?0:r===B?t[n]-e[n]:e[n]-t[n]}))}return e}),[JSON.stringify(o),a,l,JSON.stringify(c),JSON.stringify(u),JSON.stringify(p)]);(0,i.useEffect)((function(){if(!1!==s){var e=m.length,t=(null==s?void 0:s.pageSize)||z;_({currentPage:e?1:0,pageSize:t,total:e,pages:Math.ceil(e/t)})}else _(!1)}),[m,s]);var g=(0,i.useMemo)((function(){if(!h)return m;var e=h.currentPage,t=h.pageSize;return m.filter((function(n,r){return r>=(e-1)*t&&r<e*t}))}),[m,h]);return(0,e.jsx)(L,q({},t,{visible:n,data:g,pagination:!1!==h&&q(q({},h),{onChange:function(e){var t=h.pages;e<0||e>t||_(q(q({},h),{currentPage:e}))}})}),void 0)};var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)};const M=function(t){var n=t.visible,r=t.data,o=void 0===r?[]:r,i=t.pagination,s=void 0===i?{}:i,a=s.total||o.length,l=s.pageSize||z;return(0,e.jsx)(L,D({},t,{visible:n,data:o,pagination:D(D({},s),{pageSize:l,pages:Math.ceil(a/l)})}),void 0)},F={"en-US":{"dropdownlist.search.placeholder":"Search...","dropdownlist.result.found":"Found","dropdownlist.result.records":"records","dropdownlist.sort.by":"Sort By","dropdownlist.sort.by.desc":"Desc","dropdownlist.sort.by.asc":"Asc","dropdownlist.sort.by.clear":"Clear sorting","dropdownlist.filters":"Filters","dropdownlist.apply":"Apply","dropdownlist.loading":"Loading...","dropdownlist.loading.failed":"Load failed","dropdownlist.refresh":"Refresh"},"zh-CN":{"dropdownlist.search.placeholder":"搜索","dropdownlist.result.found":"找到","dropdownlist.result.records":"结果","dropdownlist.sort.by":"排序","dropdownlist.sort.by.desc":"降序","dropdownlist.sort.by.asc":"升序","dropdownlist.sort.by.clear":"清除排序","dropdownlist.filters":"过滤","dropdownlist.apply":"应用","dropdownlist.loading":"加载中...","dropdownlist.loading.failed":"加载失败","dropdownlist.refresh":"刷新"}};r(3963);var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)},z=10,B="desc";const G=function(t){var r=t.className,o=void 0===r?"":r,s=t.popoverClassName,a=void 0===s?"":s,l=t.popoverPlacement,c=void 0===l?"bottomLeft":l,p=t.children,h=t.width,_=void 0===h?300:h,m=t.dropdownWidth,g=t.locale,y=void 0===g?"en-US":g,v=t.allowClear,w=void 0!==v&&v,b=t.mode,x=void 0===b?"":b,j=t.value,O=t.disabled,E=void 0!==O&&O,k=t.onChange,S=t.placeholder,T=void 0===S?"":S,N=t.loading,R=void 0!==N&&N,P=t.data,C=void 0===P?[]:P,A=t.rowKey,L=t.renderItem,q=t.renderLabel,D=t.pagination,z=t.onSearchChange,B=void 0===z?function(){}:z,G=t.sorter,J=void 0===G?[]:G,$=t.onSorterChange,V=void 0===$?function(){}:$,W=t.sorterOptions,H=void 0===W?[]:W,K=t.filters,Q=void 0===K?{}:K,Y=t.onFiltersChange,X=void 0===Y?function(){}:Y,Z=t.filterOptions,ee=void 0===Z?[]:Z,te=t.groups,ne=void 0===te?[]:te,re=t.onGroupsChange,oe=void 0===re?function(){}:re,ie=t.groupOptions,se=void 0===ie?[]:ie,ae=t.onGroupVisibleChange,le=void 0===ae?function(){}:ae,ce=t.autoAdjustOverflow,ue=void 0===ce?{adjustX:1}:ce,pe=t.getPopupContainer,de=void 0===pe?function(e){return e.parentNode}:pe,fe=(t.extraData,t.showListIcon),he=void 0===fe||fe,_e=(0,i.useState)(!1),me=_e[0],ge=_e[1],ye=(0,i.useState)(!1),ve=ye[0],we=ye[1],be=(0,i.useState)(),xe=be[0],je=be[1],Oe=(0,i.useState)(),Ee=Oe[0],ke=Oe[1],Se=(0,i.useRef)(null),Te=(0,i.useMemo)((function(){return"multiple"===x&&(void 0===j||Array.isArray(j))}),[x,j]),Ne=function(e){return q?q(e):L?L(e):e[A]};(0,i.useEffect)((function(){!m&&isNaN(Number(_))&&Se.current&&ke(Se.current.offsetWidth)}),[m,_,Se]);var Re=m||_;isNaN(Number(Re))?Ee&&(Re=Ee+"px"):Re+="px",ve&&(Re="calc("+Re+" + "+(120*ne.length||120)+"px)");var Pe,Ce,Ae=(Pe=(0,e.jsx)("span",U({style:{color:"#999"}},{children:T}),void 0),Te?(null==j?void 0:j.length)>0?(0,e.jsx)(e.Fragment,{children:j.filter((function(e){return!(!e||!e[A])})).map((function(t,r){return(0,e.jsxs)("span",U({className:"multipleItem common-ui-dropdownlist-multiple-item",style:{backgroundColor:E?"#c4c4c4":"#fff"}},{children:[Ne(t),(0,e.jsx)(n(),{type:"close",style:{marginLeft:4,fontSize:10},onClick:function(e){e.stopPropagation(),function(e){var t=(0,f.cloneDeep)(j)||[];t.splice(e,1),k(t)}(r)}},void 0)]}),r)}))},void 0):Pe:j&&j[A]?Ne(j):Pe);return(0,e.jsx)("div",U({className:"dropdownList "+o,style:{width:_},ref:Se},{children:(0,e.jsx)(d(),U({visible:!E&&me,onVisibleChange:function(e){ge(e)},placement:c,content:(Ce=U(U({},t),{value:j,loading:R,data:C,onSearchChange:function(e){je(e),B(e)},searchValue:xe,sorter:J,onSorterChange:V,sorterOptions:H,filters:Q,onFiltersChange:X,filterOptions:ee,groups:ne,onGroupsChange:oe,groupOptions:se,visible:me,onChange:function(e){k(e),Te||ge(!1)},currentLocales:F[y]||{},showGroup:ve,onShowGroupChange:function(e){we(e),le(e)},isMultiple:Te}),D&&D.currentPage&&D.total?(0,e.jsx)(M,U({},Ce),void 0):(0,e.jsx)(I,U({},Ce),void 0)),trigger:"click",overlayClassName:"popover "+a,overlayStyle:{width:Re,height:126+32*((null==D?void 0:D.pageSize)||10)},autoAdjustOverflow:ue,getPopupContainer:de},{children:p||(0,e.jsx)(u(),U({style:{width:"100%"},disabled:E,className:"button common-ui-dropdownlist-select "+(w?"allowClear":"")},{children:(0,e.jsxs)("div",U({className:"content"},{children:[(0,e.jsxs)("div",U({className:"label"},{children:[he&&(0,e.jsx)(n(),{type:"bars",className:"icon"},void 0),(0,e.jsx)("span",{children:Ae},void 0)]}),void 0),(0,e.jsx)(n(),{type:me?"up":"down",className:"down"},void 0),w&&(0,e.jsx)(n(),{onClick:function(e){e.stopPropagation(),k(Te?[]:void 0)},theme:"filled",type:"close-circle",className:"close"},void 0)]}),void 0)}),void 0)}),void 0)}),void 0)};var J="#00bb1b",$="#fcca00",V="#ff4d4f",W="#bbbbbb",H="#d8d8d8",K={green:J,yellow:$,red:V,available:J,unavailable:H,online:J,offline:H,active:$,normal:J,acknowledged:J,error:V,gray:W},Q=function(t){var n,r=(n=t.status,K[n]);return(0,e.jsx)("div",{style:{background:r,height:16,width:5,display:"inline-block"}},void 0)},Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Y.apply(this,arguments)};const X=(0,i.forwardRef)((function(t,n){var r=t.className,o=t.popoverClassName,s=t.children,a=t.width,c=t.dropdownWidth,u=t.value,p=t.onChange,d=t.disabled,f=void 0!==d&&d,h=t.mode,_=void 0===h?"":h,m=t.filters,g=void 0===m?{}:m,y=(t.action,t.extraData),v=void 0===y?[]:y,w=t.getClusterList,b=(t.showCreate,t.getPopupContainer),x=void 0===b?function(e){return e.parentNode}:b,j=t.fetchDataSource,O=t.SearchEngineIcon,E=(0,i.useState)([]),k=E[0],S=E[1],T=(0,i.useState)({took:0,total:0,data:[]}),N=T[0],R=T[1],P=(0,i.useState)(!1),C=P[0],A=P[1],L=(0,i.useState)({from:0,size:10,keyword:""}),q=L[0],I=L[1],D=function(e,t,n){return r=void 0,o=void 0,s=function(){var r;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(o){switch(o.label){case 0:return A(!0),[4,j(e,t,n)];case 1:return r=o.sent(),R({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),w&&w({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),A(!1),[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,a)}l((s=s.apply(r,o||[])).next())}));var r,o,i,s};(0,i.useEffect)((function(){D(q,k,g)}),[JSON.stringify(q),JSON.stringify(k),JSON.stringify(g)]),(0,i.useImperativeHandle)(n,(function(){return{refresh:function(){return D(q,k,g)}}}));var M=N.data,F=N.total;return(0,e.jsx)(G,Y({getPopupContainer:x,disabled:f,mode:_,className:r,popoverClassName:o,width:a,dropdownWidth:c,locale:"en-US",value:u,onChange:function(e){p&&p(e)},rowKey:"id",loading:C,data:M.map((function(e){return Y({},e._source)})),extraData:v,pagination:{currentPage:F?Math.floor(q.from/q.size)+1:0,total:F,onChange:function(e){I(Y(Y({},q),{from:(e-1)*q.size}))}},renderItem:function(t){var n,r;return(0,e.jsxs)(e.Fragment,{children:[(null===(n=t.labels)||void 0===n?void 0:n.health_status)&&(0,e.jsx)("div",Y({style:{marginRight:"5px",display:"inline-block",position:"relative",top:"3px"}},{children:(0,e.jsx)(Q,{status:null===(r=t.labels)||void 0===r?void 0:r.health_status},void 0)}),void 0),(0,e.jsx)("div",Y({style:{marginRight:"4px",display:"inline-block",position:"relative",top:"0px"}},{children:(0,e.jsx)(O,{distribution:t.distribution||g.distribution,width:"16px",height:"16px"},void 0)}),void 0),t.name]},void 0)},renderTag:function(e){return e.version},searchKey:"name",onSearchChange:function(e){I(Y(Y({},q),{keyword:e}))},sorter:k,onSorterChange:S,sorterOptions:[{label:(0,e.jsx)(l.FormattedMessage,{id:"cluster.monitor.summary.name"},void 0),key:"name"}],onRefresh:function(){D(q,k,g)},actions:[]},{children:s}),void 0)}));var Z,ee=(Z=function(e,t){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Z(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},te.apply(this,arguments)},ne=function(t){function n(e){var n=t.call(this,e)||this;return n.handleItemClick=function(e){var t=n.props.onItemClick;t&&"function"==typeof t&&t(e)},n.getClusterList=function(e){var t,r,o;void 0===e&&(e={}),(null===(t=e.data)||void 0===t?void 0:t.length)>0&&0===(null===(r=n.props.panes)||void 0===r?void 0:r.length)&&n.handleItemClick(null===(o=e.data[0])||void 0===o?void 0:o._source)},n.state={data:n.props.data||[]},n}return ee(n,t),n.prototype.componentDidMount=function(){},n.prototype.render=function(){var t=this,n=this.props,r=(n.clusterStatus,n.DataSourceSelector,n.fetchDataSource),o=n.SearchEngineIcon;return(0,e.jsx)("div",{children:(0,e.jsx)(X,te({width:34,dropdownWidth:400,onChange:function(e){return t.handleItemClick(e)},getClusterList:this.getClusterList,fetchDataSource:r,SearchEngineIcon:o},{children:this.props.children}),void 0)},void 0)},n}(i.Component);const re=ne;r(2511);var oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oe.apply(this,arguments)},ie=function(t){var n=t.title,r=t.onTitleChange,o=t.distribution,s=t.SearchEngineIcon,a=(0,i.useState)(!1),l=a[0],c=a[1],u=(0,i.useState)(n),p=u[0],d=u[1];(0,i.useEffect)((function(){var e;l&&(null===(e=f.current)||void 0===e||e.focus())}),[l]);var f=(0,i.useRef)(null);return(0,e.jsx)("div",oe({title:"double click to change title",className:"tab-title",onDoubleClick:function(){c(!0)}},{children:l?(0,e.jsx)("input",{ref:f,className:"input-eidtor",onKeyDown:function(e){13===e.which&&e.target.blur()},type:"text",value:p,onBlur:function(){c(!1)},onChange:function(e){var t=e.target.value;d(t),"function"==typeof r&&r(t)}},void 0):(0,e.jsxs)("div",oe({className:"icon-cont"},{children:[(0,e.jsx)(s,{distribution:o,width:"14px",height:"14px"},void 0),p]}),void 0)}),void 0)};const se=require("react-dnd"),ae=require("react-dnd-html5-backend"),le=require("rc-tabs");var ce=r.n(le);const ue=require("rc-tabs/lib/TabContent");var pe=r.n(ue);const de=require("classnames");var fe=r.n(de);const he=require("omit.js");var _e=r.n(he);const me=require("antd/lib/config-provider"),ge=require("rc-tabs/lib/ScrollableInkTabBar");var ye=r.n(ge),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)},be=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return ve(r,t),r.prototype.render=function(){var t,r,o=this.props,s=o.tabBarStyle,a=o.animated,l=o.renderTabBar,c=o.tabBarExtraContent,u=o.tabPosition,p=o.prefixCls,d=o.className,f=o.size,h=o.type,_="object"==typeof a?a.inkBar:a,m="left"===u||"right"===u,g=m?"up":"left",y=m?"down":"right",v=(0,e.jsx)("span",we({className:p+"-tab-prev-icon"},{children:(0,e.jsx)(n(),{type:g,className:p+"-tab-prev-icon-target"},void 0)}),void 0),w=(0,e.jsx)("span",we({className:p+"-tab-next-icon"},{children:(0,e.jsx)(n(),{type:y,className:p+"-tab-next-icon-target"},void 0)}),void 0),b=fe()(p+"-"+u+"-bar",((t={})[p+"-"+f+"-bar"]=!!f,t[p+"-card-bar"]=h&&h.indexOf("card")>=0,t),d),x=we(we({},this.props),{children:null,inkBarAnimated:_,extraContent:c,style:s,prevIcon:v,nextIcon:w,className:b});return r=l?l(x,ye()):(0,e.jsx)(ye(),we({},x),void 0),i.cloneElement(r)},r.defaultProps={animated:!0,type:"line"},r}(i.Component);const xe=be;r(8333);var je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Oe.apply(this,arguments)},Ee=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.removeTab=function(e,t){if(t.stopPropagation(),e){var n=r.props.onEdit;n&&n(e,"remove")}},r.handleChange=function(e){var t=r.props.onChange;t&&t(e)},r.createNewTab=function(e){var t=r.props.onEdit;t&&t(e,"add")},r.renderTabs=function(t){var o,s=t.getPrefixCls,a=r.props,l=a.prefixCls,c=a.className,u=void 0===c?"":c,p=a.size,d=a.type,f=void 0===d?"line":d,h=a.tabPosition,_=a.children,m=a.animated,g=void 0===m||m,y=(a.hideAdd,r.props.tabBarExtraContent),v="object"==typeof g?g.tabPane:g;"line"!==f&&(v="animated"in r.props&&v);var w=s("tabs",l),b=fe()(u,((o={})[w+"-vertical"]="left"===h||"right"===h,o[w+"-"+p]=!!p,o[w+"-card"]=f.indexOf("card")>=0,o[w+"-"+f]=!0,o[w+"-no-animation"]=!v,o)),x=[];"editable-card"===f&&(x=[],i.Children.forEach(_,(function(t,o){if(!i.isValidElement(t))return t;var s=t.props.closable,a=(s=void 0===s||s)?(0,e.jsx)(n(),{type:"close",className:w+"-close-x",onClick:function(e){return r.removeTab(t.key,e)}},void 0):null;x.push(i.cloneElement(t,{tab:(0,e.jsxs)("div",Oe({className:s?void 0:w+"-tab-unclosable"},{children:[t.props.tab,a]}),void 0),key:t.key||o}))})));var j=y?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Oe({className:w+"-extra-content ant-tabs-extra-append"},{children:null==y?void 0:y.append}),void 0),(0,e.jsx)("div",Oe({className:w+"-extra-content ant-tabs-extra-left",style:{float:"left",margin:"0 10px"}},{children:y.left}),void 0),(0,e.jsx)("div",Oe({style:{float:"right",marginRight:10},className:w+"-extra-content ant-tabs-extra-right"},{children:y.right}),void 0)]},void 0):null,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r.props,[]),E=fe()(w+"-"+h+"-content",f.indexOf("card")>=0&&w+"-card-content");return(0,e.jsx)(ce(),Oe({},r.props,{prefixCls:w,className:b,tabBarPosition:h,renderTabBar:function(){return(0,e.jsx)(xe,Oe({},_e()(O,["className"]),{tabBarExtraContent:j}),void 0)},renderTabContent:function(){return(0,e.jsx)(pe(),{className:E,animated:v,animatedWithMargin:!0},void 0)},onChange:r.handleChange},{children:x.length>0?x:_}),void 0)},r}return je(r,t),r.prototype.componentDidMount=function(){},r.prototype.render=function(){return(0,e.jsx)("div",Oe({className:"flex-tabbar"},{children:(0,e.jsx)(me.ConfigConsumer,{children:this.renderTabs},void 0)}),void 0)},r.TabPane=le.TabPane,r.defaultProps={hideAdd:!1,tabPosition:"top"},r}(i.Component);const ke=Ee;var Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Te.apply(this,arguments)},Ne=(ke.TabPane,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Se(t,e),t.prototype.render=function(){var e=this.props;return(0,e.connectDragSource)((0,e.connectDropTarget)(e.children))},t}(s().Component)),Re=(0,se.DropTarget)("DND_NODE",{drop:function(e,t){var n=t.getItem().index,r=e.index;n!==r&&(e.moveTabNode(n,r),t.getItem().index=r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,se.DragSource)("DND_NODE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(Ne)),Pe=function(t){function n(n){var r=t.call(this,n)||this;return r.moveTabNode=function(e,t){var n=r.state.order.slice(),o=r.props.children;s().Children.forEach(o,(function(e){-1===n.indexOf(e.key)&&n.push(e.key)}));var i=n.indexOf(e),a=n.indexOf(t);n.splice(i,1),n.splice(a,0,e),r.setState({order:n}),"function"==typeof r.props.onTabNodeMoved&&r.props.onTabNodeMoved(n)},r.renderTabBar=function(t,n){return(0,e.jsx)(n,Te({},t,{children:function(t){return(0,e.jsx)(Re,Te({index:t.key,moveTabNode:r.moveTabNode},{children:t}),t.key)}}),void 0)},r.state={order:n.initialOrder||[]},r}return Se(n,t),n.prototype.render=function(){var t=this.state.order,n=this.props.children,r=[];s().Children.forEach(n,(function(e){r.push(e)}));var o=r.slice().sort((function(e,n){var o=t.indexOf(e.key),i=t.indexOf(n.key);return-1!==o&&-1!==i?o-i:-1!==o?-1:-1!==i?1:r.indexOf(e)-r.indexOf(n)}));return(0,e.jsx)(se.DndProvider,Te({backend:ae.HTML5Backend},{children:(0,e.jsx)(ke,Te({renderTabBar:this.renderTabBar},this.props,{children:o}),void 0)}),void 0)},n}(s().Component),Ce=(r(6235),function(){return Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ce.apply(this,arguments)}),Ae=function(){return(0,e.jsx)("div",Ce({className:"resize-bar"},{children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"dash"},void 0),(0,e.jsx)("div",{className:"dash"},void 0)]},void 0)}),void 0)};const Le=require("antd/lib/tabs");var qe=r.n(Le);require("antd/lib/tabs/style/index.js");const Ie=require("@ant-design/icons"),De=require("antd/lib/tooltip");var Me=r.n(De);require("antd/lib/tooltip/style/index.js");var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fe.apply(this,arguments)};const Ue=function(t){var n=t.code,r=(0,i.useState)(!1),o=r[0],s=r[1];return(0,e.jsxs)("div",Fe({style:{position:"relative"}},{children:[n?(0,e.jsx)(Me(),Fe({title:o?"Copied!":"Copy"},{children:(0,e.jsx)(Ie.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:function(){navigator.clipboard.writeText(n),s(!0),setTimeout((function(){return s(!1)}),2e3)}},void 0)}),void 0):null,n?(0,e.jsx)("pre",Fe({style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"}},{children:(0,e.jsx)("code",{children:n},void 0)}),void 0):null]}),void 0)},ze=require("brace");var Be=r.n(ze);function Ge(e){for(var t=e.split('"""'),n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}function Je(e){if(e.length>5242880)return e;var t=function(e){var t,n=0,r=!1,o=[];function i(){for(var t=n+1;t<e.length;){var r=e[t];if(r.match(/[^\s\r\n]/))return r;++t}}function s(){++n}for(;n<e.length;){var a=e[n];r?"\\"===a?s():'"'===a&&(":"!==i()&&o.push({startIndex:t,endIndex:n}),r=!1):'"'===a&&(t=n,r=!0),s()}return{stringValues:o}}(e).stringValues;if(0===t.length)return e;for(var n=e.substring(0,t[0].startIndex),r=0;r<t.length;r++){var o=t[r],i=o.startIndex,s=o.endIndex,a=e.substring(i,s+1);"\\"===a[1]&&'"'===a[2]||'"'===a[a.length-2]&&"\\"===a[a.length-3]||!a.match(/\\./)?n+=a:n+='"""'+JSON.parse(a)+'"""',t[r+1]&&(n+=e.substring(s+1,t[r+1].startIndex))}return n+e.substring(t[t.length-1].endIndex+1)}var $e=function(){return $e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$e.apply(this,arguments)},Ve=function(){function e(e,t){this.provider=e,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(t.lineNumber)||[];var n=this.tokensLineCache.findIndex((function(e){return function(e,t){return!(e<t.position.column)&&e<=t.position.column+t.value.length}(t.column,e)}));n>-1?this.updatePosition({tokenIdx:n,position:this.tokensLineCache[n].position}):this.updatePosition({tokenIdx:-1,position:t})}return e.prototype.updateLineTokens=function(e){this.tokensLineCache=e},e.prototype.updatePosition=function(e){this.currentTokenIdx=e.tokenIdx,this.currentPosition=$e({},e.position)},e.prototype.step=function(e){var t=this.currentTokenIdx+e,n=this.tokensLineCache[t];if(n)return this.updatePosition({tokenIdx:t,position:n.position}),n;var r=this.currentPosition.lineNumber+e,o=this.provider.getTokens(r);if(o){this.updateLineTokens(o);var i=void 0;e>0?(n=o[0],i=0):i=(n=o[o.length-1])?o.length-1:0;var s=n?n.position:{column:1,lineNumber:r};return this.updatePosition({tokenIdx:i,position:s}),n||null}return null},e.prototype.getCurrentToken=function(){return this.tokensLineCache[this.currentTokenIdx]||null},e.prototype.getCurrentPosition=function(){return this.currentPosition},e.prototype.stepBackward=function(){return this.step(-1)},e.prototype.stepForward=function(){return this.step(1)},e.prototype.getCurrentTokenLineNumber=function(){var e=this.getCurrentToken();return e?e.position.lineNumber:null},e.prototype.getCurrentTokenColumn=function(){var e=this.getCurrentToken();return e?e.position.column:null},e}();function We(e){var t=e.editor,n=e.position,r=t.getTokenProvider();return new Ve(r,n)}function He(e,t){return JSON.stringify(e,null,t?2:0)}function Ke(e,t){for(var n=!1,r=[],o=0;o<e.length;o++){var i=e[o];try{var s=He(JSON.parse(Ge(i)),t);t&&(s=Je(s)),n=n||s!==i,r.push(s)}catch(e){console.log(e),r.push(i)}}return{changed:n,data:r}}const Qe=require("jquery");var Ye=r.n(Qe);require("query-string");function Xe(e){var t={"content-type":"application/json","X-Team-ID":localStorage.getItem("team_id"),"X-Project-ID":localStorage.getItem("project_id")};return fetch("/_search-center/elasticsearch/command",{method:"POST",body:JSON.stringify(e),headers:t})}var Ze=function(){return Ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ze.apply(this,arguments)},et=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},tt=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},nt=function(){function e(e){var t=this;this.coreEditor=e,this.prevRequestStart=function(e){var n;for(n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;n>0&&!t.parser.isStartRequestRow(n,t.coreEditor);)n--;return{lineNumber:n,column:1}},this.nextRequestStart=function(e){var n;n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;for(var r=t.coreEditor.getLineCount();n<r-1&&!t.parser.isStartRequestRow(n,t.coreEditor);n++);return{row:n,column:0}},this.autoIndent=h().debounce((function(){return et(t,void 0,void 0,(function(){var e,t,n,r;return tt(this,(function(o){switch(o.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return o.sent(),[4,this.getRequestRange()];case 2:return(e=o.sent())?[4,this.getRequest()]:[2];case 3:return(t=o.sent())?(t.data&&t.data.length>0&&(n=1===t.data.length,(r=Ke(t.data,n)).changed||(n=!n,r=Ke(t.data,n)),t.data=r.data,this.replaceRequestRange(t,e)),[2]):[2]}}))}))}),25),this.update=function(e,n){return void 0===n&&(n=!1),et(t,void 0,void 0,(function(){return tt(this,(function(t){return[2,this.coreEditor.setValue(e,n)]}))}))},this.replaceRequestRange=function(e,n){var r,o,i=("string"!=typeof(o=(r=e).data)&&(o=o.join("\n")),r.method+" "+r.url+"\n"+o);n?t.coreEditor.replaceRange(n,i):t.coreEditor.insert(t.coreEditor.getCurrentPosition(),i)},this.getRequestRange=function(e){return et(t,void 0,Promise,(function(){var t,n;return tt(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return r.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:(t=this.prevRequestStart(e),n=this.nextRequestEnd(t),[2,{start:Ze({},t),end:Ze({},n)}])}}))}))},this.expandRangeToRequestEdges=function(e){return void 0===e&&(e=t.coreEditor.getSelectionRange()),et(t,void 0,Promise,(function(){var t,n,r,o;return tt(this,(function(i){switch(i.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(i.sent(),t=e.start.lineNumber,n=e.end.lineNumber,r=Math.max(1,this.coreEditor.getLineCount()),this.parser.isInBetweenRequestsRow(t));else for(;t>=1&&!this.parser.isStartRequestRow(t);t--);if(t<1||t>n)return[2,null];if(this.parser.isInBetweenRequestsRow(n))for(;n>=t&&!this.parser.isEndRequestRow(n);n--);else for(;n<=r&&!this.parser.isEndRequestRow(n);n++);return n<t||n>r?[2,null]:(o=(this.coreEditor.getLineValue(n)||"").replace(/\s+$/,"").length+1,[2,{start:{lineNumber:t,column:1},end:{lineNumber:n,column:o}}])}}))}))},this.getRequestInRange=function(e){return et(t,void 0,void 0,(function(){var t,n,r,o,i,s,a,l;return tt(this,(function(c){switch(c.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(c.sent(),!e)return[2,null];if(t={method:"",data:[],url:"",range:e},n=e.start,r=We({editor:this.coreEditor,position:n}),o=r.getCurrentToken(),this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),null==o)return[2,null];if(t.method=o.value,!(o=this.parser.nextNonEmptyToken(r))||"method"===o.type)return[2,null];for(t.url="";o&&o.type&&0===o.type.indexOf("url");)t.url+=o.value,o=r.stepForward();for(this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),i=(o?0:1)+r.getCurrentPosition().lineNumber;i<e.end.lineNumber||i===e.end.lineNumber&&1<e.end.column;)s=this.nextDataDocEnd({lineNumber:i,column:1}),a={start:{lineNumber:i,column:1},end:s},l=this.coreEditor.getValueInRange(a),t.data.push(l.trim()),i=s.lineNumber+1;return[2,t]}}))}))},this.getRequestsInRange=function(e,n){return void 0===e&&(e=t.coreEditor.getSelectionRange()),void 0===n&&(n=!1),et(t,void 0,Promise,(function(){var t,r,o,i,s,a,l,c=this;return tt(this,(function(u){switch(u.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return u.sent(),e?[4,this.expandRangeToRequestEdges(e)]:[2,[]];case 2:if(!(t=u.sent()))return[2,[]];r=[],o=t.start.lineNumber,i=t.end.lineNumber,s=t.start.lineNumber,a=function(){if(n){var e=c.coreEditor.getLines(o,s-1).join("\n");e&&r.push(e)}},u.label=3;case 3:return s<=i?this.parser.isStartRequestRow(s)?(a(),[4,this.getRequest(s)]):[3,5]:[3,7];case 4:return(l=u.sent())?(r.push(l),o=s=l.range.end.lineNumber+1,[3,6]):[2,r];case 5:++s,u.label=6;case 6:return[3,3];case 7:return a(),[2,r]}}))}))},this.getRequest=function(e){return et(t,void 0,void 0,(function(){var t;return tt(this,(function(n){switch(n.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return n.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:[4,this.getRequestRange(e)];case 2:return t=n.sent(),[2,this.getRequestInRange(t)]}}))}))},this.moveToPreviousRequestEdge=function(){return et(t,void 0,void 0,(function(){var e;return tt(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(t.sent(),(e=this.coreEditor.getCurrentPosition()).lineNumber--;e.lineNumber>1&&!this.parser.isRequestEdge(e.lineNumber);e.lineNumber--);return this.coreEditor.moveCursorToPosition({lineNumber:e.lineNumber,column:1}),[2]}}))}))},this.moveToNextRequestEdge=function(e){return et(t,void 0,void 0,(function(){var t,n;return tt(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(r.sent(),t=this.coreEditor.getCurrentPosition(),n=this.coreEditor.getLineCount(),e||t.lineNumber++;t.lineNumber<n&&!this.parser.isRequestEdge(t.lineNumber);t.lineNumber++);return this.coreEditor.moveCursorToPosition({lineNumber:t.lineNumber,column:1}),[2]}}))}))},this.nextRequestEnd=function(e){e=e||t.coreEditor.getCurrentPosition();for(var n=t.coreEditor.getLineCount(),r=e.lineNumber;r<=n;++r){var o=t.parser.getRowParseMode(r);if((o&t.parser.MODE.REQUEST_END)>0)break;if(r!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:r,column:(t.coreEditor.getLineValue(r)||"").replace(/\s+$/,"").length+1}},this.nextDataDocEnd=function(e){for(var n=(e=e||t.coreEditor.getCurrentPosition()).lineNumber,r=t.coreEditor.getLineCount();n<r;n++){var o=t.parser.getRowParseMode(n);if((o&t.parser.MODE.REQUEST_END)>0)break;if((o&t.parser.MODE.MULTI_DOC_CUR_DOC_END)>0)break;if(n!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:n,column:(t.coreEditor.getLineValue(n)||"").length+1}},this.highlightCurrentRequestsAndUpdateActionBar=h().debounce((function(){return et(t,void 0,void 0,(function(){var e;return tt(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return t.sent(),[4,this.expandRangeToRequestEdges()];case 2:return null===(e=t.sent())&&null===this.currentReqRange?[2]:null!==e&&null!==this.currentReqRange&&e.start.lineNumber===this.currentReqRange.start.lineNumber&&e.end.lineNumber===this.currentReqRange.end.lineNumber?(this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar(),[2]):(this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=e,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar(),[2])}}))}))}),25),this.getRequestsAsCURL=function(e,n){return et(t,void 0,Promise,(function(){var t;return tt(this,(function(r){switch(r.label){case 0:return[4,this.getRequestsInRange(n,!0)];case 1:return t=r.sent(),[2,h().map(t,(function(t){if("string"==typeof t)return t;var n,r,o=t.url,i=t.method,s=t.data,a="curl -X"+i+' "'+(r=o,(n=e)&&(n=n.replace(/\/+$/,"")),n+"/"+r.replace(/^\/+/,"")+'"');return s&&s.length&&(a+=" -H 'Content-Type: application/json' -d'\n",a+=Ge(s.join("\n")).replace(/'/g,"'\\''"),s.length>1&&(a+="\n"),a+="'"),a})).join("\n")]}}))}))},this.updateActionsBar=function(){return t.coreEditor.legacyUpdateUI(t.currentReqRange)},this.currentReqRange=null,this.parser=e.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}return e.prototype.getCoreEditor=function(){return this.coreEditor},e}();require("brace/ext/language_tools"),require("brace/ext/searchbox"),require("brace/mode/json.js"),require("brace/mode/text");var rt=function(e,t,n){return{type:n.type,value:n.value,position:{lineNumber:e,column:t}}},ot=function(){function e(e){this.session=e}return e.prototype.getTokens=function(e){if(e<1)return null;if(e>this.session.getLength())return null;var t=this.session.getTokens(e-1);return t&&t.length?function(e,t){var n="";return t.map((function(t){var r=n.length+1;return n+=t.value,rt(e,r,t)}))}(e,t):[]},e.prototype.getTokenAt=function(e){var t=this.session.getTokens(e.lineNumber-1);return t?function(e,t,n){for(var r="",o=0,i=n;o<i.length;o++){var s=i[o],a=r.length+1,l=(r+=s.value).length;if(!(t<a||t>l+1))return rt(e,a,s)}return null}(e.lineNumber,e.column,t):null},e}();function it(e){var t=e.resize,n=(0,f.throttle)((function(){t.call(e,!1);var r=(0,f.get)(n,"topRow",0);0!==r&&e.renderer.scrollToLine(r,!1,!1,(function(){}))}),35);return n}var st=function(){function e(e){this.name=e}return e.prototype.getTerms=function(){return[]},e.prototype.match=function(){return{next:this.next}},e}(),at=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(t,n){var r=e.call(this,t)||this;return r._nextDict={},n&&n.addComponent(r),r._parent=n,r}return at(t,e),t.prototype.getComponent=function(e){return(this._nextDict[e]||[void 0])[0]},t.prototype.addComponent=function(e){var t=this._nextDict[e.name]||[];t.push(e),this._nextDict[e.name]=t,this.next=[].concat.apply([],h().values(this._nextDict))},t}(st),ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ut=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return h().isString(r)&&(r=[r]),o.options=r||[t],o}return ct(t,e),t.prototype.getTerms=function(){return this.options},t.prototype.addOption=function(e){Array.isArray(e)||(e=[e]),[].push.apply(this.options,e),this.options=h().uniq(this.options)},t.prototype.match=function(t,n,r){return t!==this.name?null:e.prototype.match.call(this,t,n,r)},t}(lt),pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt=function(e){function t(t,n,r,o,i){var s=e.call(this,t,r)||this;return s.listGenerator=Array.isArray(n)?function(){return n}:n,s.multiValued=!!h().isUndefined(o)||o,s.allowNonValidValues=!h().isUndefined(i)&&i,s}return pt(t,e),t.prototype.getTerms=function(e,t){if(!this.multiValued&&e.otherTokenValues)return[];var n=e.otherTokenValues||[];h().isString(n)&&(n=[n]);var r=h().difference(this.listGenerator(e,t),n);if(this.getDefaultTermMeta()){var o=this.getDefaultTermMeta();r=h().map(r,(function(e){return h().isString(e)&&(e={name:e}),h().defaults(e,{meta:o})}))}return r},t.prototype.validateTokens=function(e){if(!this.multiValued&&e.length>1)return!1;var t=this.listGenerator();return!h().some(e,(function(e){return-1===t.indexOf(e)}))},t.prototype.getContextKey=function(){return this.name},t.prototype.getDefaultTermMeta=function(){return this.name},t.prototype.match=function(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o},t}(lt),ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ht=function(e){function t(t,n){return e.call(this,t,n)||this}return ft(t,e),t.prototype.match=function(t,n,r){var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o},t}(lt),_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mt=function(e){function t(t,n){var r=e.call(this,"__condition")||this;return r.predicate=t,r.delegate=n,r}return _t(t,e),t.prototype.getTerms=function(e,t){return this.predicate(e,t)?this.delegate.getTerms(e,t):null},t.prototype.match=function(e,t,n){return!!this.predicate(t,n)&&this.delegate.match(e,t,n)},t}(lt),gt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gt(t,e),t.prototype.getTerms=function(){return null},t.prototype.match=function(e,t){var n={next:[]},r=t.globalComponentResolver(e,!1);return r&&n.next.push.apply(n.next,r),n.next.length||(n.next=[this]),n},t}(lt),vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.constants=n,o.patternsAndWildCards=r,o}return vt(t,e),t.prototype.getTerms=function(e,t){var n=[];return h().each(this.constants,(function(r){n.push.apply(n,r.getTerms(e,t))})),h().each(this.patternsAndWildCards,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]};h().each(this.constants,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)}));var o=t.globalComponentResolver(e,!1);return o&&r.next.push.apply(r.next,o),r.next.length||h().each(this.patternsAndWildCards,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(lt),bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt="__url_path_end__",jt=function(e){function t(t,n){var r=e.call(this,t.id,n)||this;return r.endpoint=t,r}return bt(t,e),t.prototype.match=function(t,n,r){if(t!==xt)return null;if(this.endpoint.methods&&-1===h().indexOf(this.endpoint.methods,n.method))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,h().isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o},t}(lt),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.template=r,o.name=t,o}return Ot(t,e),t.prototype.getTerms=function(){return[{name:this.name,snippet:this.template}]},t}(ut),kt=function(){function e(e){var t=this;this.getTopLevelComponents=function(e){var t=this[e];return t?t.rootComponent.next:[]},["HEAD","GET","PUT","POST","DELETE"].forEach((function(n){t[n]={rootComponent:new lt("ROOT"),parametrizedComponentFactories:e||{getComponent:function(){}}}}))}return e.prototype.addEndpoint=function(e,t){var n=this;t.methods.forEach((function(r){var o,i=n[r].rootComponent;t.template&&new Et(e+"[body]",i,t.template);var s=t.url_components||{},a=e.split("/");h().each(a,(function(e,l){if(e.search(/^{.+}$/)>=0){if(e=e.substr(1,e.length-2),i.getComponent(e))return void(i=i.getComponent(e));(o=s[e])?Array.isArray(o)?o=new dt(e,o,i):h().isObject(o)&&"list"===o.type?o=new dt(e,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",e," in endpoint",t),o=new lt(e)):o=(o=n[r].parametrizedComponentFactories.getComponent(e))?o(e,i):new ht(e,i),i=o}else{var c=e,u=void 0;for(l++;l<a.length&&!((u=a[l]).indexOf("{")>=0);l++)c+="/"+u;i.getComponent(e)?(i=i.getComponent(e)).addOption(c):(o=new ut(e,i,c),i=o)}})),new jt(t,i)}))},e}(),St={},Tt={},Nt={},Rt=[],Pt="";function Ct(e,t){var n=Tt[t]||{};if(!e)return e;"string"==typeof e&&(e=[e]),e=Ye().map(e,(function(e){return n[e]?n[e]:[e]}));var r,o=[].concat.apply([],e);return o.sort(),(o=Ye().map(o,(function(e){var t=r===e?null:e;return r=e,t}))).length>1?o:o[0]}function At(e){return e=e.editor.editor.clusterID||Pt,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],Nt[e]||[],!0)}function Lt(e,t,n){var r=St[n=n||Pt]||{},o=[];if("string"==typeof(e=Ct(e,n))){var i=r[e];if(!i)return[];if("string"==typeof t){var s=i[t];o=s||[]}else Ye().each(i,(function(e,n){t&&0!==t.length&&-1===Ye().inArray(e,t)||o.push(n)})),o=[].concat.apply([],o)}else Ye().each(r,(function(r){e&&0!==e.length&&-1===Ye().inArray(r,e)||o.push(Lt(r,t,n))})),o=[].concat.apply([],o);return h().uniqBy(o,(function(e){return e.name+":"+e.type}))}function qt(e,t){var n=St[t]||{},r=[];if("string"==typeof(e=Ct(e,t))){var o=n[e];if(!o)return[];Ye().each(o,(function(e){r.push(e)}))}else Ye().each(n,(function(n){e&&-1===Ye().inArray(n,e)||r.push(qt(n,t))})),r=[].concat.apply([],r);return h().uniq(r)}function It(e,t){var n;"string"!=typeof t&&(t=(null===(n=null==t?void 0:t.editor)||void 0===n?void 0:n.clusterID)||Pt);var r=St[t]||{},o=Tt[t]||[],i=[];return Ye().each(r,(function(e){i.push(e)})),(void 0===e||e)&&Ye().each(o,(function(e){i.push(e)})),i}function Dt(e){e.editor;var t=[];return Rt.forEach((function(e){t.push(e._source.title)})),t}var Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Ft(e){return!("_all"===e||"_"!==e[0])}var Ut=function(e){function t(t,n,r){return e.call(this,t,It,n,r)||this}return Mt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Ft))},t.prototype.getDefaultTermMeta=function(){return"index"},t.prototype.getContextKey=function(){return"indices"},t}(dt),zt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Bt(e){return h().map(Lt(e.indices,e.types),(function(e){return{name:e.name,meta:e.type}}))}var Gt=function(e){function t(t,n,r){return e.call(this,t,Bt,n,r)||this}return zt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,(function(e){return e.match(/[^\w.?*]/)})))},t.prototype.getDefaultTermMeta=function(){return"field"},t.prototype.getContextKey=function(){return"fields"},t}(dt),Jt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function $t(e){return qt(e.indices)}function Vt(e){return!("_all"===e||"_"!==e[0])}var Wt=function(e){function t(t,n,r){return e.call(this,t,$t,n,r)||this}return Jt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Vt))},t.prototype.getDefaultTermMeta=function(){return"type"},t.prototype.getContextKey=function(){return"types"},t}(dt),Ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.multi_match=r,o}return Ht(t,e),t.prototype.match=function(t,n,r){if(!t)return null;if(!this.multi_match&&Array.isArray(t))return null;if(t=Array.isArray(t)?t:[t],h().find(t,(function(e){return e.match(/[\/,]/)})))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o},t}(lt),Qt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(e){function t(t,n){return e.call(this,t,At,n,!0,!0)||this}return Qt(t,e),t.prototype.getContextKey=function(){return"template"},t}(dt),Xt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Zt(e){return"_"===e[0]}var en=function(e){function t(t,n,r){return e.call(this,t,It,n,r)||this}return Xt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Zt))},t.prototype.getDefaultTermMeta=function(){return"username"},t.prototype.getContextKey=function(){return"username"},t}(dt),tn=r(2168),nn=r(221);const rn=require("minimatch");var on=function(){function e(e,t){this.wildcardPattern=e,this.emptyVal=t,this.pattern=String(this.wildcardPattern||"*"),this.matcher=new rn.Minimatch(this.pattern,{noglobstar:!0,dot:!0,nocase:!0,matchBase:!0,nocomment:!0})}return e.prototype.match=function(e){return!(e&&e!==this.emptyVal||"*"!==this.pattern)||this.matcher.match(e||"")},e}(),sn=function(){return sn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sn.apply(this,arguments)},an=function(){function e(e){e=sn({},e);var t=sn({},e.match);this.id=(0,tn.GP)({protocol:t.protocol,hostname:t.host,port:t.port,pathname:t.path})||"*",this.matchers={protocol:new on(t.protocol),host:new on(t.host),port:new on(t.port),path:new on(t.path,"/")},this.timeout=e.timeout,this.sslAgent=this._makeSslAgent(e)}return e.prototype._makeSslAgent=function(e){var t=e.ssl||{};this.verifySsl=t.verify;var n={ca:t.ca,cert:t.cert,key:t.key};if((0,f.values)(n).filter(Boolean).length)return n.rejectUnauthorized=null==this.verifySsl||this.verifySsl,new nn.Agent(n)},e.prototype.getForParsedUri=function(e){var t=e.protocol,n=e.hostname,r=e.port,o=e.pathname,i=this.matchers.protocol.match(t.slice(0,-1));return(i=(i=(i=i&&this.matchers.host.match(n))&&this.matchers.port.match(r))&&this.matchers.path.match(o))?{timeout:this.timeout,rejectUnauthorized:this.sslAgent?void 0:this.verifySsl,agent:"https:"===t?this.sslAgent:void 0}:{}},e}();(function(){function e(e){void 0===e&&(e=[]),this.configs=e.map((function(e){return new an(e)}))}e.prototype.hasConfig=function(){return Boolean(this.configs.length)},e.prototype.configForUri=function(e){var t=(0,tn.qg)(e),n=this.configs.map((function(e){return e.getForParsedUri(t)}));return f.defaultsDeep.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([{}],n,!1))}})(),r(8018);var ln=function(){return ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ln.apply(this,arguments)},cn={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},un={__template:{field:""},field:"{field}",missing:0,script:{}},pn={__one_of:["skip","insert_zeros"]},dn={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:pn},fn={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:un,max:un,avg:un,sum:un,stats:un,extended_stats:un,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:{__template:{field:""},field:"{field}"},nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:ln(ln({},cn),{filter_duplicate_text:"__flag__"}),significant_terms:cn,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:dn,avg_bucket:dn,max_bucket:dn,min_bucket:dn,stats_bucket:dn,extended_stats_bucket:ln(ln({},dn),{sigma:""}),percentiles_bucket:ln(ln({},dn),{percents:[]}),sum_bucket:dn,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:pn,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:pn,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:pn,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:pn,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:pn},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},hn=fn["*"],_n=hn.terms,mn=hn.histogram,gn=hn.date_histogram,yn={and:{__template:{filters:[{}]},filters:[{__scope_link:"."}]},bool:{__scope_link:"GLOBAL.query"},exists:{__template:{field:"FIELD_NAME"},field:"{field}"},ids:{__template:{values:["ID"]},type:"{type}",values:[""]},limit:{__template:{value:100},value:100},geo_bounding_box:{__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},geo_distance:{__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},geo_distance_range:{__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},geo_polygon:{__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},geo_shape:{__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},has_child:{__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""}};yn.m=yn.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},yn.not={__template:{filter:{}},filter:{}},yn.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},yn.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},yn.prefix={__template:{FIELD:"VALUE"},"{field}":""},yn.query={},yn.script={__template:{script:{}},script:{}},yn.term={__template:{FIELD:"VALUE"},"{field}":""},yn.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},yn.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vn.apply(this,arguments)},wn={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},bn=function(){return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bn.apply(this,arguments)},xn={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},jn={append:bn({__template:{field:"",value:[]},field:"",value:[]},xn)},On={bytes:bn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},En={circle:bn({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},xn)},kn={__one_of:[jn,On,{csv:bn({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},xn)},En,{convert:bn({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{date:bn({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},xn)},{date_index_name:bn({__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd"},xn)},{dissect:bn({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{dot_expander:bn({__template:{field:""},field:"",path:""},xn)},{drop:bn({__template:{}},xn)},{fail:bn({__template:{message:""},message:""},xn)},{foreach:bn({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},xn)},{geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},{grok:bn({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},xn)},{gsub:bn({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},xn)},{html_strip:bn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{inference:bn({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},xn)},{join:bn({__template:{field:"",separator:""},field:"",separator:""},xn)},{json:bn({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},xn)},{kv:bn({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},xn)},{lowercase:bn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{pipeline:bn({__template:{name:""},name:""},xn)},{remove:bn({__template:{field:""},field:""},xn)},{rename:bn({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{script:bn({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},xn)},{set:bn({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},xn)},{set_security_user:bn({__template:{field:""},field:"",properties:[""]},xn)},{split:bn({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{sort:bn({__template:{field:""},field:"",order:"asc"},xn)},{trim:bn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{uppercase:bn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{urldecode:bn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},xn)},{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},Sn={description:"",processors:[kn],version:123},Tn=Object.freeze({__one_of:[!0,!1]}),Nn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Rn={FIELD:"REGEXP"},Pn={FIELD:{}},Cn={FIELD:{value:""}},An={FIELD:{gte:10,lte:20}},Ln={match:{span_term:{FIELD:"VALUE"}},end:3},qn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},In={FIELD:{value:"VALUE"}},Dn={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Mn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Fn={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Un={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},zn={FIELD:{value:"VALUE"}},Bn=function(){return Bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bn.apply(this,arguments)},Gn={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Jn={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},$n={span_first:{__template:Ln,__scope_link:".span_first"},span_near:{__template:qn,__scope_link:".span_near"},span_or:{__template:Mn,__scope_link:".span_or"},span_not:{__template:Dn,__scope_link:".span_not"},span_term:{__template:In,__scope_link:".span_term"},span_containing:{__template:Fn,__scope_link:".span_containing"},span_within:{__template:Un,__scope_link:".span_within"}},Vn=Bn(Bn({},$n),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:$n,field:""}}),Wn={wildcard:{__template:zn,__scope_link:".wildcard"},fuzzy:{__template:Pn,__scope_link:".fuzzy"},prefix:{__template:Cn,__scope_link:".prefix"},range:{__template:An,__scope_link:".range"},regexp:{__template:Rn,__scope_link:".regexp"}},Hn={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Kn={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:Hn,exp:Hn,gauss:Hn,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},Qn=[function(e){e.addGlobalAutocompleteRules("aggregations",fn),e.addGlobalAutocompleteRules("aggs",fn),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:_n,histogram:mn,date_histogram:gn}})},function(e){e.addGlobalAutocompleteRules("aliases",{"*":{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}})},function(e){e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},function(e){e.addGlobalAutocompleteRules("filter",yn)},function(e){e.addGlobalAutocompleteRules("highlight",vn(vn({},wn),{fields:{"{field}":vn({fragment_size:20},wn)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},function(e){e.addEndpointDescription("_processor",{data_autocomplete_rules:kn}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:Sn}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:Sn,docs:[]}})},function(e){e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:Tn},_all:{enabled:Tn},_field_names:{index:Tn},_routing:{required:Tn},_index:{enabled:Tn},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:Tn,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:Tn,numeric_detection:Tn,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:Tn,index:Tn,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:Tn,eager_global_ordinals:Tn,norms:Tn,coerce:Tn,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:Tn,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[Nn(Nn([],["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap((function(e){return["basic_"+e,"strict_"+e]})),!0),["date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"],!1).sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:Tn,include_in_root:Tn}}}})},function(e){e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":Tn,"blocks.read":Tn,"blocks.write":Tn,"blocks.metadata":Tn,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":Tn,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":Tn,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":Tn,shadow_replicas:Tn,shared_filesystem:Tn,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},function(e){e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":Bn({type:{__one_of:["phrase","phrase_prefix","boolean"]}},Gn)},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:Rn,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:Bn(Bn({__template:{query:"",fields:[]}},Gn),{fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}}),bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:Pn,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:Bn({},Jn),type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:Cn,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:An,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Ln,match:Vn},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:Wn},span_near:{__template:qn,clauses:[Vn],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:In,"{field}":{value:"",boost:2}},span_not:{__template:Dn,include:Vn,exclude:Vn},span_or:{__template:Mn,clauses:[Vn]},span_containing:{__template:Fn,little:Vn,big:Vn},span_within:{__template:Un,little:Vn,big:Vn},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:zn,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:Bn({},Jn),path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:h().defaults({__template:{query:{},functions:[{}]},query:{},functions:[h().defaults({filter:{},weight:1},Kn)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Kn),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},function(e){e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},function(e){e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}],Yn=function(){return Yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yn.apply(this,arguments)},Xn=function(){function e(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}return e.prototype.addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=t},e.prototype.addEndpointDescription=function(e,t){void 0===t&&(t={});var n,r={};this.endpoints[e]&&(r=Yn({},this.endpoints[e])),h().each(t.patterns||[],(function(e){e.indexOf("{indices}")>=0&&((n=n||{}).ignore_unavailable="__flag__",n.allow_no_indices="__flag__",n.expand_wildcards=["open","closed"])})),n&&(t.url_params=h().assign(t.url_params||{},r.url_params),h().defaults(t.url_params,n)),h().assign(r,t),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),this.endpoints[e]=r},e.prototype.asJson=function(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}},e.prototype.addExtensionSpecFilePath=function(e){this.extensionSpecFilePaths.push(e)},e.prototype.addProcessorDefinition=function(e){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(e)},e.prototype.setup=function(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}},e.prototype.start=function(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}},e.prototype.loadAllSpec=function(e){return e.keys().reduce((function(t,n){return(0,f.merge)(t,e(n)),t}),{})},e.prototype.loadJSONSpecInDir=function(){var e=this.loadAllSpec(r(2469)),t=this.loadAllSpec(r(5477));return(0,f.merge)(e,t)},e.prototype.loadJsonSpec=function(){var e=this,t=this.loadJSONSpecInDir();Object.keys(t).forEach((function(n){e.addEndpointDescription(n,t[n])}))},e.prototype.loadJSSpec=function(){var e=this;Qn.forEach((function(t){return t(e)}))},e}(),Zn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),er=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.description=r,o}return Zn(t,e),t.prototype.getTerms=function(){var e={name:this.name};return"__flag__"===this.description?e.meta="flag":(e.meta="param",e.insertValue=this.name+"="),[e]},t}(ut),tr=function(){function e(e,t){var n=this;this.rootComponent=new lt("ROOT"),h().isUndefined(t)&&(t={pretty:"__flag__",format:["json","yaml"],filter_path:""}),e=h().clone(e||{}),h().defaults(e,t),h().each(e,(function(e,t){var r=new er(t,n.rootComponent,e);Array.isArray(e)?new dt(t,e,r):"__flag__"===e&&new dt(t,["true","false"],r)}))}return e.prototype.getTopLevelComponents=function(){return this.rootComponent.next},e}();function nr(e,t){function n(){}n.prototype=e;var r=new n;return t&&(t.unshift(r),h().assign.apply(h(),t),t.shift()),r}function rr(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function or(e,t,n,r){if(!e||0===e.length)return t;var o=e[0],i=[];return h().each(t,(function(e){var t=nr(n,e.contextExtensionList);h().each(e.components,(function(n){var s=n.match(o,t,r);if(s&&!h().isEmpty(s)){var a,l=void 0;a=s.next&&!Array.isArray(s.next)?[s.next]:s.next,s.context_values?(l=[],[].push.apply(l,e.contextExtensionList),l.push(s.context_values)):l=e.contextExtensionList;var c=e.priority;h().isNumber(s.priority)&&(c=h().isNumber(c)?Math.min(c,s.priority):s.priority),i.push(new rr(n.name,a,l,e.depth+1,c))}}))})),0===i.length?h().map(t,(function(e){return new rr(e.name,[],e.contextExtensionList)})):or(e.slice(1),i,n,r)}function ir(e,t,n,r,o){var i=or(e,[new rr("ROOT",o,[])],t,n);if(r){var s=[];h().each(i,(function(e){var r=nr(t,e.contextExtensionList);h().each(e.components,(function(e){h().each(e.getTerms(r,n),(function(e){h().isObject(e)||(e={name:e}),s.push(e)}))}))})),s=h().uniq(s),t.autoCompleteSet=s}if(0!==i.length){var a=void 0;i=h().sortBy(i,(function(e){return h().isNumber(e.priority)?e.priority:Number.MAX_VALUE})),!(a=h().find(i,(function(e){return h().isEmpty(e.components)})))&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),h().each(a.contextExtensionList,(function(e){h().assign(t,e)}))}}var sr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ar(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}var lr,cr=function(e){function t(t,n){var r=e.call(this,"__scope_link")||this;return h().isString(t)&&"."===t[0]&&(t="."===t?n.endpointId:n.endpointId+t),r.link=t,r.compilingContext=n,r}return sr(t,e),t.prototype.resolveLinkToComponents=function(e,t){if(h().isFunction(this.link))return dr(this.link(e,t),this.compilingContext);if(!h().isString(this.link))throw new Error("unsupported link format",this.link);var n,r=this.link.replace(/\./g,"{").split(/(\{)/),o=r[0];try{if("GLOBAL"===o){if(r.length<3)throw new Error("missing term in global link: "+this.link);var i=r[2];n=e.globalComponentResolver(i),r=r.slice(3)}else r=r.slice(1),n=e.endpointComponentResolver(o)}catch(e){throw new Error("failed to resolve link ["+this.link+"]: "+e)}return function(e,t,n,r){var o=or(e,[new rr("ROOT",r,[])],t,n);return[].concat.apply([],h().map(o,"components"))}(r,e,t,n)},t.prototype.getTerms=function(e,t){var n=[],r=this.resolveLinkToComponents(e,t);return h().each(r,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]},o=this.resolveLinkToComponents(t,n);return h().each(o,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(lt);function ur(e){if(e.__template)return e.__raw&&h().isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return ur(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(1===e.length&&h().isObject(e[0])){var t=ur(e[0]);return null!=t?[t]:[]}return[]}return h().isObject(e)?{}:(h().isString(e)&&/^\{.*\}$/.test(e),e)}function pr(e){var t={},n=ur(e);return h().isUndefined(n)||(t.template=n),t}function dr(e,t){if(Array.isArray(e))return[hr(e,t)];if(h().isObject(e)){if(e.__scope_link)return[new cr(e.__scope_link,t)];if(e.__any_of)return[hr(e.__any_of,t)];if(e.__one_of)return h().flatten(h().map(e.__one_of,(function(e){return dr(e,t)})));var n=function(e,t){var n=new ut("{"),r=[],o=[];return h().each(e,(function(e,n){if(0!==n.indexOf("__")){var i,s=pr(e);/^\{.*\}$/.test(n)?(i=fr(n,t,s.template),o.push(i)):"*"===n?(i=new lt(n),o.push(i)):(s.name=n,i=new ut(n,null,[s]),r.push(i)),h().map(dr(e,t),(function(e){i.addComponent(e)}))}})),n.addComponent(new wt("inner",r,o)),n}(e,t);return e.__condition?[_r(e.__condition,n)]:[n]}return h().isString(e)&&/^\{.*\}$/.test(e)?[fr(e,t)]:[new ut(e)]}function fr(e,t,n){e=e.substr(1,e.length-2).toLowerCase();var r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),h().isUndefined(n)||(r=function(e,t){var n=e.getTerms;return e.getTerms=function(r,o){var i=n.call(e,r,o);return i?i=h().map(i,(function(e){return h().isObject(e)||(e={name:e}),h().defaults(e,t)})):i},e}(r,{template:n})),r}function hr(e,t){var n=new ut("[");return h().each(e,(function(e){h().each(dr(e,t),(function(e){n.addComponent(e)}))})),n}function _r(e,t){if(e.lines_regex)return new mt((function(t,n){var r=n.getLines(t.requestStartRow,n.getCurrentPosition().lineNumber).join("\n");return new RegExp(e.lines_regex,"m").test(r)}),t);throw"unknown condition type - got: "+JSON.stringify(e)}function mr(e,t,n){return dr(t,new ar(e,n))}function gr(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new kt(e),this.globalBodyComponentFactories=t,this.name=""}(lr=gr.prototype).addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=mr("GLOBAL."+e,t,this.globalBodyComponentFactories)},lr.getGlobalAutocompleteComponents=function(e,t){var n=this.globalRules[e];if(h().isUndefined(n)&&(t||h().isUndefined(t)))throw new Error("failed to resolve global components for ['"+e+"']");return n},lr.addEndpointDescription=function(e,t){var n=this,r={};h().assign(r,t||{}),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),h().each(r.patterns,(function(e){n.urlPatternMatcher.addEndpoint(e,r)})),r.paramsAutocomplete=new tr(r.url_params),r.bodyAutocompleteRootComponents=mr(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[e]=r},lr.getEndpointDescriptionByEndpoint=function(e){return this.endpoints[e]},lr.getTopLevelUrlCompleteComponents=function(e){return this.urlPatternMatcher.getTopLevelComponents(e)},lr.getUnmatchedEndpointComponents=function(){return[new yt("__global__")]},lr.clear=function(){this.endpoints={},this.globalRules={}};const yr=gr;var vr=new yr,wr=function(e){return"_"===e[0]&&"_all"!==e},br=function(e,t){return new Kt(e,t)},xr={getComponent:function(e,t,n){return this[e]?this[e]:n?br:void 0},index:function(e,t){if(!wr(e))return new Ut(e,t,!1)},indices:function(e,t){if(!wr(e))return new Ut(e,t,!0)},type:function(e,t){return new Wt(e,t,!1)},types:function(e,t){return new Wt(e,t,!0)},id:function(e,t){return br(e,t)},transform_id:function(e,t){return br(e,t)},username:function(e,t){return new en(e,t)},user:function(e,t){return new en(e,t)},template:function(e,t){return new Yt(e,t)},task_id:function(e,t){return br(e,t)},ids:function(e,t){return br(e,t)},fields:function(e,t){return new Gt(e,t,!0)},field:function(e,t){return new Gt(e,t,!1)},nodes:function(e,t){return new dt(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new dt(e,[],t,!1)}};function jr(e){var t=function(e){return vr.getEndpointDescriptionByEndpoint(e)}(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Or(e){return vr.getTopLevelUrlCompleteComponents(e)}function Er(e,t){return vr.getGlobalAutocompleteComponents(e,t)}var kr=new Xn;kr.start();var Sr=kr.asJson();vr=function(e,t,n){var r=new yr(t=t||xr,n=n||t),o=[];return h().each(e,(function(e,t){o.unshift(t),h().each(e.globals||{},(function(e,t){r.addGlobalAutocompleteRules(t,e)})),h().each(e.endpoints||{},(function(e,t){r.addEndpointDescription(t,e)}))})),r.name=o.join(","),r}({es:Sr});var Tr={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32},Nr=function(){function e(e){this.editor=e,this.MODE=Tr}return e.prototype.getRowParseMode=function(e){void 0===e&&(e=this.editor.getCurrentPosition().lineNumber);var t=this.editor.getLineCount();if(e>t||e<1)return Tr.BETWEEN_REQUESTS;var n=this.editor.getLineState(e);if(!n)return Tr.BETWEEN_REQUESTS;if("start"!==n&&"start-sql"!==n)return Tr.IN_REQUEST;var r=(this.editor.getLineValue(e)||"").trim();return r&&"#"!==r[0]?r.indexOf("}",r.length-1)>=0?++e<t+1&&0===(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?Tr.MULTI_DOC_CUR_DOC_END|Tr.IN_REQUEST:Tr.REQUEST_END|Tr.MULTI_DOC_CUR_DOC_END:++e>=t+1||0!==(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?Tr.REQUEST_START|Tr.REQUEST_END:Tr.REQUEST_START:Tr.BETWEEN_REQUESTS},e.prototype.rowPredicate=function(e,t,n){return(this.getRowParseMode(e)&n)>0},e.prototype.isEndRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.REQUEST_END)},e.prototype.isRequestEdge=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.REQUEST_END|Tr.REQUEST_START)},e.prototype.isStartRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.REQUEST_START)},e.prototype.isInBetweenRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.BETWEEN_REQUESTS)},e.prototype.isInRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.IN_REQUEST)},e.prototype.isMultiDocDocEndRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,Tr.MULTI_DOC_CUR_DOC_END)},e.prototype.isEmptyToken=function(e){var t=e&&e.getCurrentToken?e.getCurrentToken():e;return!t||"whitespace"===t.type},e.prototype.isUrlOrMethodToken=function(e){var t,n=(null===(t=e)||void 0===t?void 0:t.getCurrentToken())||e;return n&&n.type&&("method"===n.type||0===n.type.indexOf("url"))},e.prototype.nextNonEmptyToken=function(e){for(var t=e.stepForward();t&&this.isEmptyToken(t);)t=e.stepForward();return t},e.prototype.prevNonEmptyToken=function(e){for(var t=e.stepBackward();(t||e.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(t);)t=e.stepBackward();return t},e}();const Rr=Nr;var Pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Cr(e){return!("_all"===e||"_"!==e[0])}var Ar=function(e){function t(t,n,r){return e.call(this,t,Dt,n,r)||this}return Pr(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Cr))},t.prototype.getDefaultTermMeta=function(){return"command"},t.prototype.getContextKey=function(){return"command"},t}(dt),Lr=function(){return Lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lr.apply(this,arguments)},qr=null;function Ir(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Dr(e,t,n,r){var o=We({editor:e,position:t}),i=t,s=[],a={};a.tokensLineCache=o.tokensLineCache;var l=3,c=o.getCurrentToken();a.token=c,c?1===i.column&&(c=o.stepBackward(),l=1):1===i.column&&(c=o.stepBackward(),l=3);for(var u,p=!1;c&&-1===c.type.indexOf("url")&&"method"!==c.type;c=o.stepBackward())switch("whitespace"!==c.type&&(p=!0),c.type){case"variable":0===l&&s.unshift(c.value.trim().replace(/"/g,"")),l=1;break;case"paren.lparen":s.unshift(c.value),1===l&&(l=0);break;case"paren.rparen":l=1;var d=1;for(c=o.stepBackward();c&&d>0;){switch(c.type){case"paren.lparen":d--;break;case"paren.rparen":d++}d>0&&(c=o.stepBackward())}if(!c)return{};continue;case"punctuation.end_triple_quote":for(l=1,c=o.stepBackward();c;c=o.stepBackward())if("punctuation.start_triple_quote"===c.type){c=o.stepBackward();break}if(!c)return{};continue;case"punctuation.start_triple_quote":3===l?l=0:0===l&&(l=1),s.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":3===l?l=0:0===l&&(l=1);break;case"punctuation.comma":3===l&&(l=1);break;case"punctuation.colon":case"whitespace":3===l&&(l=0)}if(p&&(!s||0===s.length)&&!r)return{};if(a.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(c&&("url.part"===c.type||"url.param"===c.type||"url.value"===c.type)||"url.select_keyword"===c.type)if(!r||"url.part"!==c.type&&"url.select_keyword"!==c.type||(a.urlTokenPath.push(c.value),a.urlTokenPath.push(xt)),"whitespace"===(c=o.stepBackward()).type)for(;"whitespace"===c.type;)c=o.stepBackward();else for(;""===c.value.trim();)c=o.stepBackward();s=null}for(a.bodyTokenPath=s,a.urlParamsTokenPath=null,a.requestStartRow=o.getCurrentPosition().lineNumber;c&&Ir(c);){switch(c.type){case"url.value":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.param":var f=u;(u={})[c.value]=f;break;case"url.amp":case"url.questionmark":a.urlParamsTokenPath||(a.urlParamsTokenPath=[]),a.urlParamsTokenPath.unshift(u||{}),u=null}c=o.stepBackward()}for(u=null;c&&-1!==c.type.indexOf("url");){switch(c.type){case"url.select_keyword":case"url.part":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.slash":u&&(a.urlTokenPath.unshift(u),u=null)}for(c=n.prevNonEmptyToken(o);""===c.value.trim();)c=n.prevNonEmptyToken(o)}return u&&a.urlTokenPath.unshift(u),a.bodyTokenPath||a.urlParamsTokenPath?a.urlTokenPath.push(xt):a.urlTokenPath.length>0&&(a.otherTokenValues=a.urlTokenPath[0]),c&&"method"===c.type&&(a.method=c.value),a}function Mr(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Fr(e,t,n){return h().map(e,(function(e){return"object"!=typeof e&&(e={name:e}),h().defaults(e,{meta:t,template:n})}))}function Ur(e){var t=e.coreEditor,n=new Rr(t);function r(e){var r,i=e.context;o(i,t.getCurrentPosition(),e.insertValue),"body"===i.autoCompleteType?(r="string"==typeof e.insertValue?'"'+e.insertValue+'"':e.insertValue+"","["!==e.insertValue&&"{"!==e.insertValue||(r="")):r=e.insertValue+"";var a=r,l=!1;if(!i.addTemplate||h().isUndefined(e.template)||h().isNull(e.template))l=!0,"["===e.value?a+="[]":"{"===e.value?a+="{}":l=!1;else{var c=void 0;c=e.template.__raw&&e.template.value?e.template.value.split("\n"):He(e.template,!0).split("\n");var u=t.getLineValue(i.rangeToReplace.start.lineNumber);u=u.match(/^\s*/)[0];for(var p=1;p<c.length;p++)c[p]=u+c[p];a+=": "+c.join("\n"),l=!0}a=i.prefixToAdd+a+i.suffixToAdd,t.off("changeSelection",s),i.rangeToReplace.start.column!==i.rangeToReplace.end.column?t.replace(i.rangeToReplace,a):t.insert(a),t.clearSelection();var d={lineNumber:i.rangeToReplace.start.lineNumber,column:i.rangeToReplace.start.column+r.length+i.prefixToAdd.length+(l?0:i.suffixToAdd.length)},f=We({editor:t,position:d});if("body"===i.autoCompleteType){var _=n.nextNonEmptyToken(f);switch(_?_.type:"NOTOKEN"){case"paren.rparen":d=f.getCurrentPosition();break;case"punctuation.colon":"paren.lparen"===((_=n.nextNonEmptyToken(f))||{}).type&&(_=n.nextNonEmptyToken(f),d=f.getCurrentPosition(),_&&0===_.value.indexOf('"')&&d.column++);break;case"paren.lparen":case"punctuation.comma":f.stepForward(),d=f.getCurrentPosition()}t.moveCursorToPosition(d)}t.on("changeSelection",s)}function o(e,r,o){e.updatedForToken=h().clone(t.getTokenAt({lineNumber:r.lineNumber,column:r.column})),e.updatedForToken||(e.updatedForToken={value:"",type:"",position:{column:r.column,lineNumber:r.lineNumber}});var i=e.createdWithToken;switch(i||(i=e.updatedForToken),e.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0;break;default:o&&e.updatedForToken.value===o?(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0):(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:r.column},end:{lineNumber:r.lineNumber,column:r.column}},e.replacingToken=!1)}switch(e.textBoxPosition={lineNumber:e.rangeToReplace.start.lineNumber,column:e.rangeToReplace.start.column},e.autoCompleteType){case"path":case"url_params":!function(e){e.prefixToAdd="",e.suffixToAdd=""}(e);break;case"method":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r=We({editor:t,position:t.getCurrentPosition()}),o=r.getCurrentPosition().lineNumber,i=n.nextNonEmptyToken(r);r.getCurrentPosition().lineNumber===o&&i||(e.suffixToAdd=" ")}(e);break;case"body":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r,o=We({editor:t,position:t.getCurrentPosition()}),i=n.nextNonEmptyToken(o);switch(i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":e.addTemplate=!0;break;case"punctuation.colon":if(e.addTemplate=!1,!(i=n.nextNonEmptyToken(o))||"{"!==i.value)break;if(!(i=n.nextNonEmptyToken(o))||"}"!==i.value)break;switch(e.addTemplate=!0,e.rangeToReplace.end.lineNumber=o.getCurrentTokenLineNumber(),e.rangeToReplace.end.column=o.getCurrentTokenColumn()+i.value.length,(i=n.nextNonEmptyToken(o))?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:e.suffixToAdd=", "}break;default:e.addTemplate=!0,e.suffixToAdd=", "}if(i=(o=We({editor:t,position:t.getCurrentPosition()})).getCurrentToken(),e.replacingToken)r=0;else{var s=t.getCurrentPosition();r=s.column===e.updatedForToken.position.column?-1:s.column<e.updatedForToken.position.column+e.updatedForToken.value.length?0:1}switch((n.isEmptyToken(i)||r<=0)&&(i=n.prevNonEmptyToken(o)),i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:i&&i.type.indexOf("url")<0&&(e.prefixToAdd=", ")}}(e)}}var i=h().debounce((function(e){var r=null;try{r=t.getTokenAt(e)}catch(e){}if(!r){if(1===e.lineNumber)return void(qr=null);r={position:{column:0,lineNumber:0},value:"",type:""}}if(r.position.lineNumber=e.lineNumber,n.isEmptyToken(r)){var o=t.getTokenAt(Lr(Lr({},e),{column:e.column+1}));n.isEmptyToken(o)?(r.position.column=e.column,qr=r):(o.position.lineNumber=e.lineNumber,qr=o)}else if(qr)if(qr.position.column===r.position.column&&qr.position.lineNumber===r.position.lineNumber&&qr.value!==r.value){switch(r.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}qr=r,t.execCommand("startAutocomplete")}else qr=r;else qr=r}),100);function s(){var e=t.getCurrentPosition();e&&!t.isCompleterActive()&&i(e)}return t.on("changeSelection",s),{getCompletions:function(e,i,s){try{var a=function(e,r){var i={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:e};switch(i.autoCompleteType=function(e){var r=n.getRowParseMode();if(r&n.MODE.IN_REQUEST)return"body";if(r&n.MODE.REQUEST_START){for(var o=We({editor:t,position:e}),i=o.getCurrentToken();"url.comma"===i.type;)i=o.stepBackward();switch(i.type){case"method":return"method";case"whitespace":return"method"===((i=n.prevNonEmptyToken(o))||{}).type||Mr(i)?"path":Ir(i)?"url_params":null;default:return Mr(i)?"path":Ir(i)?"url_params":null}}return r&n.MODE.REQUEST_END?"body":""===t.getLineValue(e.lineNumber).trim()?(r=n.getRowParseMode(e.lineNumber-1))&n.MODE.REQUEST_START&&r&n.MODE.REQUEST_END?"body":"method":null}(r),i.autoCompleteType){case"path":!function(e,r){var o,i,s,a=Dr(t,r,n);if(e.method=a.method,e.token=a.token,e.otherTokenValues=a.otherTokenValues,e.urlTokenPath=a.urlTokenPath,"LOAD"===a.method)s=[new Ar("command",null,!0)];else if("SELECT"===a.method){var l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),c=function(e,t){var n=[],r=-1;return(e||[]).forEach((function(o,i){var s=o.value.toUpperCase();if(["FROM","JOIN"].includes(s)&&e.length>i+2&&i+2!=t){var a=e[i+2].value;a.includes("(")||(a=a.replace(/^"+/,"").replace(/"+$/,""),n.push(a),r=i)}})),{indices:n.join(","),idx:r}}(a.tokensLineCache,l),u=c.indices,p=c.idx;if(p>-1&&l<p){var d=Lt(u);return void(e.autoCompleteSet=Fr(d,"field"))}if((f=(null===(o=a.otherTokenValues)||void 0===o?void 0:o.length)||0)>0)switch(a.otherTokenValues[f-1].toUpperCase()){case"FROM":a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new Ut("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(f>1&&!a.token.value.includes("="))return""===u&&(u=(u=a.otherTokenValues[f-2]).replace(/^"+/,"").replace(/"+$/,"")),d=Lt(u),void(e.autoCompleteSet=Fr(d,"field"))}}else if("FROM"==a.method)if(l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),"FROM"==a.tokensLineCache[l-2].value)a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new Ut("indices",null,!0)]);else{u=(u=a.otherTokenValues[0]).replace(/^"+/,"").replace(/"+$/,"");for(var f=(null===(i=a.otherTokenValues)||void 0===i?void 0:i.length)||0,h=!0,_=null,m=l-1;m>=0;m--){var g=a.tokensLineCache[m];if(null===_&&""!=g.value.trim()&&(_=g),"url.select_keyword"==g.type&&"SELECT"!=g.value.toUpperCase()){h=!1;break}}switch(h&&","!=_.value&&"SELECT"!=_.value.toUpperCase()&&(h=!1),a.otherTokenValues[f-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":h=!0}if(h&&!a.token.value.includes("="))return d=Lt(u),void(e.autoCompleteSet=Fr(d,"field"))}else s=Or(e.method);ir(e.urlTokenPath,e,t,!0,s),e.autoCompleteSet=Fr(e.autoCompleteSet,"endpoint")}(i,r);break;case"url_params":!function(e,r){var o=Dr(t,r,n);if(e.method=o.method,e.otherTokenValues=o.otherTokenValues,e.urlTokenPath=o.urlTokenPath,!o.urlTokenPath)return e;if(ir(o.urlTokenPath,e,t,!1,Or(e.method)),!e.endpoint)return e;if(!o.urlParamsTokenPath)return e;var i=[],s=o.urlParamsTokenPath.pop();s&&(i=Object.keys(s),e.otherTokenValues=s[i[0]]),ir(i,e,t,!0,e.endpoint.paramsAutocomplete.getTopLevelComponents(e.method))}(i,r);break;case"method":!function(e){e.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((function(e,t){return{name:e,score:-t,meta:"method"}}))}(i);break;case"body":!function(e,r){var o,i=Dr(t,r,n);e.method=i.method,e.otherTokenValues=i.otherTokenValues,e.urlTokenPath=i.urlTokenPath,e.requestStartRow=i.requestStartRow,i.urlTokenPath&&(ir(i.urlTokenPath,e,t,!1,Or(e.method)),e.bodyTokenPath=i.bodyTokenPath,i.bodyTokenPath&&(e.endpointComponentResolver=jr,e.globalComponentResolver=Er,o=e.endpoint?e.endpoint.bodyAutocompleteRootComponents:vr.getUnmatchedEndpointComponents(),ir(i.bodyTokenPath,e,t,!0,o)))}(i,r);break;default:return null}return i.autoCompleteSet?(o(i,r),i.createdWithToken=h().clone(i.updatedForToken),i):null}(t,e);if(a){var l=h().map(a.autoCompleteSet.filter((function(e){return Boolean(e)&&null!=e.name})),(function(e){var n={value:(e="object"!=typeof e?{name:e}:h().clone(e)).name,meta:"API",score:0,context:a};return"LOAD"===a.method&&"path"===a.autoCompleteType&&(n.completer={insertMatch:function(){r(e),t.execCommand("exec_request")}}),"body"===a.autoCompleteType&&(n.completer={insertMatch:function(){return r(e)}}),h().defaults(e,n)}));l.sort((function(e,t){return e.score>t.score?-1:e.score<t.score?1:e.name<t.name?-1:e.name===t.name?0:1})),s(null,h().map(l,(function(e,t){return e.insertValue=e.insertValue||e.value,e.value=""+e.value,e.score=-t,e})))}else s(null,[])}catch(e){console.error(e),s(e,null)}}}}var zr={id:"sense_editor/mode/worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the javascript\n mode from the brace distro.\n*/\n\n(function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (let testPath = id, tail = ""; testPath; ) {\n let alias = paths[testPath];\n if ("string" === typeof alias) return alias + tail;\n if (alias) {\n return (\n alias.location.replace(/\\/*$/, "/") +\n (tail || alias.main || alias.name)\n );\n }\n if (alias === !1) return "";\n let i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n (tail = testPath.substr(i) + tail), (testPath = testPath.slice(0, i));\n }\n return id;\n }\n if (\n !(\n (void 0 !== window?.window && window?.document) ||\n (window?.acequire && window?.define)\n )\n ) {\n window?.console ||\n ((window.console = function() {\n let msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({ type: "log", data: msgs });\n }),\n (window.console.error = window.console.warn = window.console.log = window.console.trace =\n window?.console)),\n (window.window = window),\n (window.ace = window),\n (window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack,\n },\n });\n }),\n (window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n let chunks = moduleName.split("!");\n return (\n window.normalizeModule(parentId, chunks[0]) +\n "!" +\n window.normalizeModule(parentId, chunks[1])\n );\n }\n if ("." == moduleName.charAt(0)) {\n let base = parentId\n .split("/")\n .slice(0, -1)\n .join("/");\n for (\n moduleName = (base ? base + "/" : "") + moduleName;\n -1 !== moduleName.indexOf(".") && previous != moduleName;\n\n ) {\n var previous = moduleName;\n moduleName = moduleName\n .replace(/^\\.\\//, "")\n .replace(/\\/\\.\\//, "/")\n .replace(/[^\\/]+\\/\\.\\.\\//, "");\n }\n }\n return moduleName;\n }),\n (window.acequire = function acequire(parentId, id) {\n if ((id || ((id = parentId), (parentId = null)), !id.charAt)) {\n throw Error(\n "worker.js acequire() accepts only (parentId, id) as arguments"\n );\n }\n id = window.normalizeModule(parentId, id);\n let module = window?.acequire.modules[id];\n if (module) {\n return (\n module.initialized ||\n ((module.initialized = !0),\n (module.exports = module.factory().exports)),\n module.exports\n );\n }\n if (!window?.acequire.tlns) return console.log("unable to load " + id);\n let path = resolveModuleId(id, window?.acequire.tlns);\n return (\n ".js" != path.slice(-3) && (path += ".js"),\n (window.acequire.id = id),\n (window.acequire.modules[id] = {}),\n importScripts(path),\n window.acequire(parentId, id)\n );\n }),\n (window.acequire.modules = {}),\n (window.acequire.tlns = {}),\n (window.define = function(id, deps, factory) {\n if (\n (2 == arguments.length\n ? ((factory = deps),\n "string" !== typeof id &&\n ((deps = id), (id = window?.acequire.id)))\n : 1 == arguments.length &&\n ((factory = id), (deps = []), (id = window?.acequire.id)),\n "function" !== typeof factory)\n ) {\n return (\n (window.acequire.modules[id] = {\n exports: factory,\n initialized: !0,\n }),\n void 0\n );\n }\n deps.length || (deps = ["require", "exports", "module"]);\n let req = function(childId) {\n return window.acequire(id, childId);\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n let module = this,\n returnExports = factory.apply(\n this,\n deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep);\n }\n })\n );\n return returnExports && (module.exports = returnExports), module;\n },\n };\n }),\n (window.define.amd = {}),\n (window.acequire.tlns = {}),\n (window.initBaseUrls = function(topLevelNamespaces) {\n for (let i in topLevelNamespaces) {\n window.acequire.tlns[i] = topLevelNamespaces[i];\n }\n }),\n (window.initSender = function() {\n let EventEmitter = window?.acequire("ace/lib/event_emitter")\n .EventEmitter,\n oop = window?.acequire("ace/lib/oop"),\n Sender = function() {};\n return (\n function() {\n oop.implement(this, EventEmitter),\n (this.callback = function(data, callbackId) {\n postMessage({ type: "call", id: callbackId, data: data });\n }),\n (this.emit = function(name, data) {\n postMessage({ type: "event", name: name, data: data });\n });\n }.call(Sender.prototype),\n new Sender()\n );\n });\n let main = (window.main = null),\n sender = (window.sender = null);\n window.onmessage = function(e) {\n let msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command) {\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command])\n throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args);\n }\n } else if (msg.init) {\n window.initBaseUrls(msg.tlns),\n acequire("ace/lib/es5-shim"),\n (sender = window.sender = window.initSender());\n let clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender);\n }\n };\n }\n})(this),\n ace.define("ace/lib/oop", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.inherits = function(ctor, superCtor) {\n (ctor.super_ = superCtor),\n (ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0,\n },\n }));\n }),\n (exports.mixin = function(obj, mixin) {\n for (let key in mixin) obj[key] = mixin[key];\n return obj;\n }),\n (exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin);\n });\n }),\n ace.define("ace/range", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n let comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n (this.start = { row: startRow, column: startColumn }),\n (this.end = { row: endRow, column: endColumn });\n };\n (function() {\n (this.isEqual = function(range) {\n return (\n this.start.row === range.start.row &&\n this.end.row === range.end.row &&\n this.start.column === range.start.column &&\n this.end.column === range.end.column\n );\n }),\n (this.toString = function() {\n return (\n "Range: [" +\n this.start.row +\n "/" +\n this.start.column +\n "] -> [" +\n this.end.row +\n "/" +\n this.end.column +\n "]"\n );\n }),\n (this.contains = function(row, column) {\n return 0 == this.compare(row, column);\n }),\n (this.compareRange = function(range) {\n let cmp,\n end = range.end,\n start = range.start;\n return (\n (cmp = this.compare(end.row, end.column)),\n 1 == cmp\n ? ((cmp = this.compare(start.row, start.column)),\n 1 == cmp ? 2 : 0 == cmp ? 1 : 0)\n : -1 == cmp\n ? -2\n : ((cmp = this.compare(start.row, start.column)),\n -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n );\n }),\n (this.comparePoint = function(p) {\n return this.compare(p.row, p.column);\n }),\n (this.containsRange = function(range) {\n return (\n 0 == this.comparePoint(range.start) &&\n 0 == this.comparePoint(range.end)\n );\n }),\n (this.intersects = function(range) {\n let cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp;\n }),\n (this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column;\n }),\n (this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column;\n }),\n (this.setStart = function(row, column) {\n "object" === typeof row\n ? ((this.start.column = row.column), (this.start.row = row.row))\n : ((this.start.row = row), (this.start.column = column));\n }),\n (this.setEnd = function(row, column) {\n "object" === typeof row\n ? ((this.end.column = row.column), (this.end.row = row.row))\n : ((this.end.row = row), (this.end.column = column));\n }),\n (this.inside = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column) || this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideStart = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row\n ? this.start.row > row\n ? -1\n : row > this.end.row\n ? 1\n : this.start.row === row\n ? column >= this.start.column\n ? 0\n : -1\n : this.end.row === row\n ? this.end.column >= column\n ? 0\n : 1\n : 0\n : this.start.column > column\n ? -1\n : column > this.end.column\n ? 1\n : 0;\n }),\n (this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.compare(row, column);\n }),\n (this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = { row: lastRow + 1, column: 0 };\n else if (firstRow > this.end.row) {\n var end = { row: firstRow, column: 0 };\n }\n if (this.start.row > lastRow) {\n var start = { row: lastRow + 1, column: 0 };\n } else if (firstRow > this.start.row) {\n var start = { row: firstRow, column: 0 };\n }\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.extend = function(row, column) {\n let cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = { row: row, column: column };\n else var end = { row: row, column: column };\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.isEmpty = function() {\n return (\n this.start.row === this.end.row &&\n this.start.column === this.end.column\n );\n }),\n (this.isMultiLine = function() {\n return this.start.row !== this.end.row;\n }),\n (this.clone = function() {\n return Range.fromPoints(this.start, this.end);\n }),\n (this.collapseRows = function() {\n return 0 == this.end.column\n ? new Range(\n this.start.row,\n 0,\n Math.max(this.start.row, this.end.row - 1),\n 0\n )\n : new Range(this.start.row, 0, this.end.row, 0);\n }),\n (this.toScreenRange = function(session) {\n let screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(\n screenPosStart.row,\n screenPosStart.column,\n screenPosEnd.row,\n screenPosEnd.column\n );\n }),\n (this.moveBy = function(row, column) {\n (this.start.row += row),\n (this.start.column += column),\n (this.end.row += row),\n (this.end.column += column);\n });\n }.call(Range.prototype),\n (Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column);\n }),\n (Range.comparePoints = comparePoints),\n (Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n }),\n (exports.Range = Range));\n }),\n ace.define("ace/apply_delta", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n exports.applyDelta = function(docLines, delta) {\n let row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) {\n docLines[row] =\n line.substring(0, startColumn) +\n delta.lines[0] +\n line.substring(startColumn);\n } else {\n let args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args),\n (docLines[row] = line.substring(0, startColumn) + docLines[row]),\n (docLines[row + delta.lines.length - 1] += line.substring(\n startColumn\n ));\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow\n ? (docLines[row] =\n line.substring(0, startColumn) + line.substring(endColumn))\n : docLines.splice(\n row,\n endRow - row + 1,\n line.substring(0, startColumn) +\n docLines[endRow].substring(endColumn)\n );\n }\n };\n }),\n ace.define(\n "ace/lib/event_emitter",\n ["require", "exports", "module"],\n function(acequire, exports) {\n let EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0;\n },\n preventDefault = function() {\n this.defaultPrevented = !0;\n };\n (EventEmitter._emit = EventEmitter._dispatchEvent = function(\n eventName,\n e\n ) {\n this._eventRegistry || (this._eventRegistry = {}),\n this._defaultHandlers || (this._defaultHandlers = {});\n let listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n ("object" === typeof e && e) || (e = {}),\n e.type || (e.type = eventName),\n e.stopPropagation || (e.stopPropagation = stopPropagation),\n e.preventDefault || (e.preventDefault = preventDefault),\n (listeners = listeners.slice());\n for (\n let i = 0;\n listeners.length > i &&\n (listeners[i](e, this), !e.propagationStopped);\n i++\n );\n return defaultHandler && !e.defaultPrevented\n ? defaultHandler(e, this)\n : void 0;\n }\n }),\n (EventEmitter._signal = function(eventName, e) {\n let listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (let i = 0; listeners.length > i; i++) listeners[i](e, this);\n }\n }),\n (EventEmitter.once = function(eventName, callback) {\n let _self = this;\n callback &&\n this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback),\n callback.apply(null, arguments);\n });\n }),\n (EventEmitter.setDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (\n (handlers ||\n (handlers = this._defaultHandlers = { _disabled_: {} }),\n handlers[eventName])\n ) {\n let old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []),\n disabled.push(old);\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n handlers[eventName] = callback;\n }),\n (EventEmitter.removeDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (handlers) {\n let disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) {\n handlers[eventName],\n disabled && this.setDefaultHandler(eventName, disabled.pop());\n } else if (disabled) {\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n }\n }),\n (EventEmitter.on = EventEmitter.addEventListener = function(\n eventName,\n callback,\n capturing\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n return (\n listeners || (listeners = this._eventRegistry[eventName] = []),\n -1 == listeners.indexOf(callback) &&\n listeners[capturing ? "unshift" : "push"](callback),\n callback\n );\n }),\n (EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(\n eventName,\n callback\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n if (listeners) {\n let index = listeners.indexOf(callback);\n -1 !== index && listeners.splice(index, 1);\n }\n }),\n (EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = []);\n }),\n (exports.EventEmitter = EventEmitter);\n }\n ),\n ace.define(\n "ace/anchor",\n ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = (exports.Anchor = function(doc, row, column) {\n (this.$onChange = this.onChange.bind(this)),\n this.attach(doc),\n column === void 0\n ? this.setPosition(row.row, row.column)\n : this.setPosition(row, column);\n });\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n let bColIsAfter = equalPointsInOrder\n ? point1.column <= point2.column\n : point1.column < point2.column;\n return (\n point1.row < point2.row || (point1.row == point2.row && bColIsAfter)\n );\n }\n function $getTransformedPoint(delta, point, moveIfEqual) {\n let deltaIsInsert = "insert" == delta.action,\n deltaRowShift =\n (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift =\n (deltaIsInsert ? 1 : -1) *\n (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual)\n ? { row: point.row, column: point.column }\n : $pointsInOrder(deltaEnd, point, !moveIfEqual)\n ? {\n row: point.row + deltaRowShift,\n column:\n point.column +\n (point.row == deltaEnd.row ? deltaColShift : 0),\n }\n : { row: deltaStart.row, column: deltaStart.column };\n }\n oop.implement(this, EventEmitter),\n (this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column);\n }),\n (this.getDocument = function() {\n return this.document;\n }),\n (this.$insertRight = !1),\n (this.onChange = function(delta) {\n if (\n !(\n (delta.start.row == delta.end.row &&\n delta.start.row != this.row) ||\n delta.start.row > this.row\n )\n ) {\n let point = $getTransformedPoint(\n delta,\n { row: this.row, column: this.column },\n this.$insertRight\n );\n this.setPosition(point.row, point.column, !0);\n }\n }),\n (this.setPosition = function(row, column, noClip) {\n let pos;\n if (\n ((pos = noClip\n ? { row: row, column: column }\n : this.$clipPositionToDocument(row, column)),\n this.row != pos.row || this.column != pos.column)\n ) {\n let old = { row: this.row, column: this.column };\n (this.row = pos.row),\n (this.column = pos.column),\n this._signal("change", { old: old, value: pos });\n }\n }),\n (this.detach = function() {\n this.document.removeEventListener("change", this.$onChange);\n }),\n (this.attach = function(doc) {\n (this.document = doc || this.document),\n this.document.on("change", this.$onChange);\n }),\n (this.$clipPositionToDocument = function(row, column) {\n let pos = {};\n return (\n row >= this.document.getLength()\n ? ((pos.row = Math.max(0, this.document.getLength() - 1)),\n (pos.column = this.document.getLine(pos.row).length))\n : 0 > row\n ? ((pos.row = 0), (pos.column = 0))\n : ((pos.row = row),\n (pos.column = Math.min(\n this.document.getLine(pos.row).length,\n Math.max(0, column)\n ))),\n 0 > column && (pos.column = 0),\n pos\n );\n });\n }.call(Anchor.prototype));\n }\n ),\n ace.define(\n "ace/document",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/apply_delta",\n "ace/lib/event_emitter",\n "ace/range",\n "ace/anchor",\n ],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n (this.$lines = [""]),\n 0 === textOrLines.length\n ? (this.$lines = [""])\n : Array.isArray(textOrLines)\n ? this.insertMergedLines({ row: 0, column: 0 }, textOrLines)\n : this.insert({ row: 0, column: 0 }, textOrLines);\n };\n (function() {\n oop.implement(this, EventEmitter),\n (this.setValue = function(text) {\n let len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)),\n this.insert({ row: 0, column: 0 }, text);\n }),\n (this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter());\n }),\n (this.createAnchor = function(row, column) {\n return new Anchor(this, row, column);\n }),\n (this.$split =\n 0 === "aaa".split(/a/).length\n ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n");\n }\n : function(text) {\n return text.split(/\\r\\n|\\r|\\n/);\n }),\n (this.$detectNewLine = function(text) {\n let match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n (this.$autoNewLine = match ? match[1] : "\\n"),\n this._signal("changeNewLineMode");\n }),\n (this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n";\n }\n }),\n (this.$autoNewLine = ""),\n (this.$newLineMode = "auto"),\n (this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode &&\n ((this.$newLineMode = newLineMode),\n this._signal("changeNewLineMode"));\n }),\n (this.getNewLineMode = function() {\n return this.$newLineMode;\n }),\n (this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text;\n }),\n (this.getLine = function(row) {\n return this.$lines[row] || "";\n }),\n (this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1);\n }),\n (this.getAllLines = function() {\n return this.getLines(0, this.getLength());\n }),\n (this.getLength = function() {\n return this.$lines.length;\n }),\n (this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(\n this.getNewLineCharacter()\n );\n }),\n (this.getLinesForRange = function(range) {\n let lines;\n if (range.start.row === range.end.row) {\n lines = [\n this.getLine(range.start.row).substring(\n range.start.column,\n range.end.column\n ),\n ];\n } else {\n (lines = this.getLines(range.start.row, range.end.row)),\n (lines[0] = (lines[0] || "").substring(range.start.column));\n let l = lines.length - 1;\n range.end.row - range.start.row == l &&\n (lines[l] = lines[l].substring(0, range.end.column));\n }\n return lines;\n }),\n (this.insertLines = function(row, lines) {\n return (\n console.warn(\n "Use of document.insertLines is deprecated. Use the insertFullLines method instead."\n ),\n this.insertFullLines(row, lines)\n );\n }),\n (this.removeLines = function(firstRow, lastRow) {\n return (\n console.warn(\n "Use of document.removeLines is deprecated. Use the removeFullLines method instead."\n ),\n this.removeFullLines(firstRow, lastRow)\n );\n }),\n (this.insertNewLine = function(position) {\n return (\n console.warn(\n "Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."\n ),\n this.insertMergedLines(position, ["", ""])\n );\n }),\n (this.insert = function(position, text) {\n return (\n 1 >= this.getLength() && this.$detectNewLine(text),\n this.insertMergedLines(position, this.$split(text))\n );\n }),\n (this.insertInLine = function(position, text) {\n let start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return (\n this.applyDelta(\n { start: start, end: end, action: "insert", lines: [text] },\n !0\n ),\n this.clonePos(end)\n );\n }),\n (this.clippedPos = function(row, column) {\n let length = this.getLength();\n void 0 === row\n ? (row = length)\n : 0 > row\n ? (row = 0)\n : row >= length && ((row = length - 1), (column = void 0));\n let line = this.getLine(row);\n return (\n void 0 == column && (column = line.length),\n (column = Math.min(Math.max(column, 0), line.length)),\n { row: row, column: column }\n );\n }),\n (this.clonePos = function(pos) {\n return { row: pos.row, column: pos.column };\n }),\n (this.pos = function(row, column) {\n return { row: row, column: column };\n }),\n (this.$clipPosition = function(position) {\n let length = this.getLength();\n return (\n position.row >= length\n ? ((position.row = Math.max(0, length - 1)),\n (position.column = this.getLine(length - 1).length))\n : ((position.row = Math.max(0, position.row)),\n (position.column = Math.min(\n Math.max(position.column, 0),\n this.getLine(position.row).length\n ))),\n position\n );\n }),\n (this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n let column = 0;\n this.getLength() > row\n ? ((lines = lines.concat([""])), (column = 0))\n : ((lines = [""].concat(lines)),\n row--,\n (column = this.$lines[row].length)),\n this.insertMergedLines({ row: row, column: column }, lines);\n }),\n (this.insertMergedLines = function(position, lines) {\n let start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column:\n (1 == lines.length ? start.column : 0) +\n lines[lines.length - 1].length,\n };\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines,\n }),\n this.clonePos(end)\n );\n }),\n (this.remove = function(range) {\n let start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n }),\n this.clonePos(start)\n );\n }),\n (this.removeInLine = function(row, startColumn, endColumn) {\n let start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return (\n this.applyDelta(\n {\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n },\n !0\n ),\n this.clonePos(start)\n );\n }),\n (this.removeFullLines = function(firstRow, lastRow) {\n (firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1)),\n (lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1));\n let deleteFirstNewLine =\n lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return (\n this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range),\n }),\n deletedLines\n );\n }),\n (this.removeNewLine = function(row) {\n this.getLength() - 1 > row &&\n row >= 0 &&\n this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""],\n });\n }),\n (this.replace = function(range, text) {\n if (\n (range instanceof Range ||\n (range = Range.fromPoints(range.start, range.end)),\n 0 === text.length && range.isEmpty())\n ) {\n return range.start;\n }\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n let end;\n return (end = text ? this.insert(range.start, text) : range.start);\n }),\n (this.applyDeltas = function(deltas) {\n for (let i = 0; deltas.length > i; i++) this.applyDelta(deltas[i]);\n }),\n (this.revertDeltas = function(deltas) {\n for (let i = deltas.length - 1; i >= 0; i--) {\n this.revertDelta(deltas[i]);\n }\n }),\n (this.applyDelta = function(delta, doNotValidate) {\n let isInsert = "insert" == delta.action;\n (isInsert\n ? 1 >= delta.lines.length && !delta.lines[0]\n : !Range.comparePoints(delta.start, delta.end)) ||\n (isInsert &&\n delta.lines.length > 2e4 &&\n this.$splitAndapplyLargeDelta(delta, 2e4),\n applyDelta(this.$lines, delta, doNotValidate),\n this._signal("change", delta));\n }),\n (this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (\n let lines = delta.lines,\n l = lines.length,\n row = delta.start.row,\n column = delta.start.column,\n from = 0,\n to = 0;\n ;\n\n ) {\n (from = to), (to += MAX - 1);\n let chunk = lines.slice(from, to);\n if (to > l) {\n (delta.lines = chunk),\n (delta.start.row = row + from),\n (delta.start.column = column);\n break;\n }\n chunk.push(""),\n this.applyDelta(\n {\n start: this.pos(row + from, column),\n end: this.pos(row + to, (column = 0)),\n action: delta.action,\n lines: chunk,\n },\n !0\n );\n }\n }),\n (this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice(),\n });\n }),\n (this.indexToPosition = function(index, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n i = startRow || 0,\n l = lines.length;\n l > i;\n i++\n ) {\n if (((index -= lines[i].length + newlineLength), 0 > index))\n return {\n row: i,\n column: index + lines[i].length + newlineLength,\n };\n }\n return { row: l - 1, column: lines[l - 1].length };\n }),\n (this.positionToIndex = function(pos, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n index = 0,\n row = Math.min(pos.row, lines.length),\n i = startRow || 0;\n row > i;\n ++i\n ) {\n index += lines[i].length + newlineLength;\n }\n return index + pos.column;\n });\n }.call(Document.prototype),\n (exports.Document = Document));\n }\n ),\n ace.define("ace/lib/lang", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.last = function(a) {\n return a[a.length - 1];\n }),\n (exports.stringReverse = function(string) {\n return string\n .split("")\n .reverse()\n .join("");\n }),\n (exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0; ) {\n 1 & count && (result += string), (count >>= 1) && (string += string);\n }\n return result;\n });\n let trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n (exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "");\n }),\n (exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "");\n }),\n (exports.copyObject = function(obj) {\n let copy = {};\n for (let key in obj) copy[key] = obj[key];\n return copy;\n }),\n (exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) {\n copy[i] =\n array[i] && "object" == typeof array[i]\n ? this.copyObject(array[i])\n : array[i];\n }\n return copy;\n }),\n (exports.deepCopy = function deepCopy(obj) {\n if ("object" !== typeof obj || !obj) return obj;\n let copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) {\n copy[key] = deepCopy(obj[key]);\n }\n return copy;\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) {\n return obj;\n }\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy;\n }),\n (exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map;\n }),\n (exports.createMap = function(props) {\n let map = Object.create(null);\n for (let i in props) map[i] = props[i];\n return map;\n }),\n (exports.arrayRemove = function(array, value) {\n for (let i = 0; array.length >= i; i++) {\n value === array[i] && array.splice(i, 1);\n }\n }),\n (exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1");\n }),\n (exports.escapeHTML = function(str) {\n return str\n .replace(/&/g, "&")\n .replace(/"/g, """)\n .replace(/\'/g, "'")\n .replace(/</g, "<");\n }),\n (exports.getMatchOffsets = function(string, regExp) {\n let matches = [];\n return (\n string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length,\n });\n }),\n matches\n );\n }),\n (exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n deferred = function(timeout) {\n return (\n deferred.cancel(),\n (timer = setTimeout(callback, timeout || 0)),\n deferred\n );\n };\n return (\n (deferred.schedule = deferred),\n (deferred.call = function() {\n return this.cancel(), fcn(), deferred;\n }),\n (deferred.cancel = function() {\n return clearTimeout(timer), (timer = null), deferred;\n }),\n (deferred.isPending = function() {\n return timer;\n }),\n deferred\n );\n }),\n (exports.delayedCall = function(fcn, defaultTimeout) {\n let timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n _self = function(timeout) {\n null == timer &&\n (timer = setTimeout(callback, timeout || defaultTimeout));\n };\n return (\n (_self.delay = function(timeout) {\n timer && clearTimeout(timer),\n (timer = setTimeout(callback, timeout || defaultTimeout));\n }),\n (_self.schedule = _self),\n (_self.call = function() {\n this.cancel(), fcn();\n }),\n (_self.cancel = function() {\n timer && clearTimeout(timer), (timer = null);\n }),\n (_self.isPending = function() {\n return timer;\n }),\n _self\n );\n });\n }),\n ace.define(\n "ace/worker/mirror",\n [\n "require",\n "exports",\n "module",\n "ace/range",\n "ace/document",\n "ace/lib/lang",\n ],\n function(acequire, exports) {\n acequire("../range").Range;\n let Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = (exports.Mirror = function(sender) {\n this.sender = sender;\n let doc = (this.doc = new Document("")),\n deferredUpdate = (this.deferredUpdate = lang.delayedCall(\n this.onUpdate.bind(this)\n )),\n _self = this;\n sender.on("change", function(e) {\n let data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else {\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1]))\n var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1],\n };\n else\n var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1],\n };\n doc.applyDelta(d, !0);\n }\n }\n return _self.$timeout\n ? deferredUpdate.schedule(_self.$timeout)\n : (_self.onUpdate(), void 0);\n });\n });\n (function() {\n (this.$timeout = 500),\n (this.setTimeout = function(timeout) {\n this.$timeout = timeout;\n }),\n (this.setValue = function(value) {\n this.doc.setValue(value),\n this.deferredUpdate.schedule(this.$timeout);\n }),\n (this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId);\n }),\n (this.onUpdate = function() {}),\n (this.isPending = function() {\n return this.deferredUpdate.isPending();\n });\n }.call(Mirror.prototype));\n }\n ),\n ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n function doesDefinePropertyWork(object) {\n try {\n return (\n Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n );\n } catch (exception) {}\n }\n function toInteger(n) {\n return (\n (n = +n),\n n !== n\n ? (n = 0)\n : 0 !== n &&\n n !== 1 / 0 &&\n n !== -(1 / 0) &&\n (n = (n > 0 || -1) * Math.floor(Math.abs(n))),\n n\n );\n }\n Function.prototype.bind ||\n (Function.prototype.bind = function(that) {\n let target = this;\n if ("function" !== typeof target) {\n throw new TypeError(\n "Function.prototype.bind called on incompatible " + target\n );\n }\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n let result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n return Object(result) === result ? result : this;\n }\n return target.apply(that, args.concat(slice.call(arguments)));\n };\n return (\n target.prototype &&\n ((Empty.prototype = target.prototype),\n (bound.prototype = new Empty()),\n (Empty.prototype = null)),\n bound\n );\n });\n var defineGetter,\n defineSetter,\n lookupGetter,\n lookupSetter,\n supportsAccessors,\n call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if (\n ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) &&\n ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)),\n (defineSetter = call.bind(prototypeOfObject.__defineSetter__)),\n (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)),\n (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))),\n 2 != [1, 2].splice(0).length)\n ) {\n if (\n (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return (a[0] = a[1] = 0), a;\n }\n var lengthBefore,\n array = [];\n return (\n array.splice.apply(array, makeArray(20)),\n array.splice.apply(array, makeArray(26)),\n (lengthBefore = array.length),\n array.splice(5, 0, "XXX"),\n lengthBefore + 1 == array.length,\n lengthBefore + 1 == array.length ? !0 : void 0\n );\n })()\n ) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length\n ? array_splice.apply(\n this,\n [\n void 0 === start ? 0 : start,\n void 0 === deleteCount ? this.length - start : deleteCount,\n ].concat(slice.call(arguments, 2))\n )\n : [];\n };\n } else\n Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0\n ? pos > length && (pos = length)\n : void 0 == pos\n ? (pos = 0)\n : 0 > pos && (pos = Math.max(length + pos, 0)),\n length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i)\n this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--; )\n this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove)\n (this.length = lengthAfterRemove), this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i)\n this[pos + i] = insert[i];\n }\n return removed;\n };\n }\n Array.isArray ||\n (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj);\n });\n let boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (\n (Array.prototype.forEach ||\n (Array.prototype.forEach = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError();\n for (; length > ++i; ) {\n i in self && fun.call(thisp, self[i], i, object);\n }\n }),\n Array.prototype.map ||\n (Array.prototype.map = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self && (result[i] = fun.call(thisp, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.filter ||\n (Array.prototype.filter = function(fun) {\n let value,\n object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self &&\n ((value = self[i]),\n fun.call(thisp, value, i, object) && result.push(value));\n }\n return result;\n }),\n Array.prototype.every ||\n (Array.prototype.every = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n }\n return !0;\n }),\n Array.prototype.some ||\n (Array.prototype.some = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n }\n return !1;\n }),\n Array.prototype.reduce ||\n (Array.prototype.reduce = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError("reduce of empty array with no initial value");\n }\n let result,\n i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i++];\n break;\n }\n if (++i >= length)\n throw new TypeError(\n "reduce of empty array with no initial value"\n );\n }\n }\n for (; length > i; i++) {\n i in self &&\n (result = fun.call(void 0, result, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.reduceRight ||\n (Array.prototype.reduceRight = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n let result,\n i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i--];\n break;\n }\n if (0 > --i)\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n }\n do {\n i in this &&\n (result = fun.call(void 0, result, self[i], i, object));\n } while (i--);\n return result;\n }),\n (Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2)) ||\n (Array.prototype.indexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = 0;\n for (\n arguments.length > 1 && (i = toInteger(arguments[1])),\n i = i >= 0 ? i : Math.max(0, length + i);\n length > i;\n i++\n ) {\n if (i in self && self[i] === sought) return i;\n }\n return -1;\n }),\n (Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3)) ||\n (Array.prototype.lastIndexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = length - 1;\n for (\n arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))),\n i = i >= 0 ? i : length - Math.abs(i);\n i >= 0;\n i--\n ) {\n if (i in self && sought === self[i]) return i;\n }\n return -1;\n }),\n Object.getPrototypeOf ||\n (Object.getPrototypeOf = function(object) {\n return (\n object.__proto__ ||\n (object.constructor\n ? object.constructor.prototype\n : prototypeOfObject)\n );\n }),\n !Object.getOwnPropertyDescriptor)\n ) {\n let ERR_NON_OBJECT =\n "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT + object);\n }\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (\n ((descriptor = { enumerable: !0, configurable: !0 }),\n supportsAccessors)\n ) {\n let prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (((object.__proto__ = prototype), getter || setter)) {\n return (\n getter && (descriptor.get = getter),\n setter && (descriptor.set = setter),\n descriptor\n );\n }\n }\n return (descriptor.value = object[property]), descriptor;\n }\n };\n }\n if (\n (Object.getOwnPropertyNames ||\n (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object);\n }),\n !Object.create)\n ) {\n let createEmpty;\n (createEmpty =\n null === Object.prototype.__proto__\n ? function() {\n return { __proto__: null };\n }\n : function() {\n let empty = {};\n for (let i in empty) empty[i] = null;\n return (\n (empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null),\n empty\n );\n }),\n (Object.create = function(prototype, properties) {\n let object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" !== typeof prototype) {\n throw new TypeError(\n "typeof prototype[" + typeof prototype + "] != \'object\'"\n );\n }\n let Type = function() {};\n (Type.prototype = prototype),\n (object = new Type()),\n (object.__proto__ = prototype);\n }\n return (\n void 0 !== properties &&\n Object.defineProperties(object, properties),\n object\n );\n });\n }\n if (Object.defineProperty) {\n let definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom =\n "undefined" === typeof document ||\n doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {\n var definePropertyFallback = Object.defineProperty;\n }\n }\n if (!Object.defineProperty || definePropertyFallback) {\n let ERR_NON_OBJECT_DESCRIPTOR =\n "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED =\n "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n }\n if (\n ("object" !== typeof descriptor &&\n "function" !== typeof descriptor) ||\n null === descriptor\n ) {\n throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n }\n if (definePropertyFallback) {\n try {\n return definePropertyFallback.call(\n Object,\n object,\n property,\n descriptor\n );\n } catch (exception) {}\n }\n if (owns(descriptor, "value")) {\n if (\n supportsAccessors &&\n (lookupGetter(object, property) || lookupSetter(object, property))\n ) {\n var prototype = object.__proto__;\n (object.__proto__ = prototypeOfObject),\n delete object[property],\n (object[property] = descriptor.value),\n (object.__proto__ = prototype);\n } else object[property] = descriptor.value;\n } else {\n if (!supportsAccessors) {\n throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n }\n owns(descriptor, "get") &&\n defineGetter(object, property, descriptor.get),\n owns(descriptor, "set") &&\n defineSetter(object, property, descriptor.set);\n }\n return object;\n };\n }\n Object.defineProperties ||\n (Object.defineProperties = function(object, properties) {\n for (let property in properties) {\n owns(properties, property) &&\n Object.defineProperty(object, property, properties[property]);\n }\n return object;\n }),\n Object.seal ||\n (Object.seal = function(object) {\n return object;\n }),\n Object.freeze ||\n (Object.freeze = function(object) {\n return object;\n });\n try {\n Object.freeze(function() {});\n } catch (exception) {\n Object.freeze = (function(freezeObject) {\n return function(object) {\n return "function" === typeof object ? object : freezeObject(object);\n };\n })(Object.freeze);\n }\n if (\n (Object.preventExtensions ||\n (Object.preventExtensions = function(object) {\n return object;\n }),\n Object.isSealed ||\n (Object.isSealed = function() {\n return !1;\n }),\n Object.isFrozen ||\n (Object.isFrozen = function() {\n return !1;\n }),\n Object.isExtensible ||\n (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError();\n for (var name = ""; owns(object, name); ) name += "?";\n object[name] = !0;\n let returnValue = owns(object, name);\n return delete object[name], returnValue;\n }),\n !Object.keys)\n ) {\n let hasDontEnumBug = !0,\n dontEnums = [\n "toString",\n "toLocaleString",\n "valueOf",\n "hasOwnProperty",\n "isPrototypeOf",\n "propertyIsEnumerable",\n "constructor",\n ],\n dontEnumsLength = dontEnums.length;\n for (let key in { toString: null }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError("Object.keys called on a non-object");\n }\n let keys = [];\n for (let name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug) {\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum);\n }\n }\n return keys;\n };\n }\n Date.now ||\n (Date.now = function() {\n return new Date().getTime();\n });\n let ws = "\t\\nv\\f\\r \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n let trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "")\n .replace(trimBeginRegexp, "")\n .replace(trimEndRegexp, "");\n };\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o);\n };\n });\nace.define(\n "sense_editor/mode/worker_parser",\n ["require", "exports", "module"],\n function() {\n let at, // The index of the current character\n ch, // The current character\n annos, // annotations\n escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\\t",\n },\n text,\n annotate = function(type, text) {\n annos.push({ type: type, text: text, at: at });\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text,\n };\n },\n reset = function(newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n if (c && c !== ch) {\n error("Expected \'" + c + "\' instead of \'" + ch + "\'");\n }\n\n ch = text.charAt(at);\n at += 1;\n return ch;\n },\n nextUpTo = function(upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || "Expected \'" + upTo + "\'");\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function(c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n let number,\n string = "";\n\n if (ch === "-") {\n string = "-";\n next("-");\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n if (ch === ".") {\n string += ".";\n while (next() && ch >= "0" && ch <= "9") {\n string += ch;\n }\n }\n if (ch === "e" || ch === "E") {\n string += ch;\n next();\n if (ch === "-" || ch === "+") {\n string += ch;\n next();\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n }\n number = +string;\n if (isNaN(number)) {\n error("Bad number");\n } else {\n return number;\n }\n },\n string = function() {\n let hex,\n i,\n string = "",\n uffff;\n\n if (ch === \'"\') {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n while (next()) {\n if (ch === \'"\') {\n next();\n return string;\n } else if (ch === "\\\\") {\n next();\n if (ch === "u") {\n uffff = 0;\n for (i = 0; i < 4; i += 1) {\n hex = parseInt(next(), 16);\n if (!isFinite(hex)) {\n break;\n }\n uffff = uffff * 16 + hex;\n }\n string += String.fromCharCode(uffff);\n } else if (typeof escapee[ch] === "string") {\n string += escapee[ch];\n } else {\n break;\n }\n } else {\n string += ch;\n }\n }\n }\n }\n error("Bad string");\n },\n white = function() {\n while (ch && ch <= " ") {\n next();\n }\n },\n strictWhite = function() {\n while (ch && (ch == " " || ch == "\\t")) {\n next();\n }\n },\n newLine = function() {\n if (ch == "\\n") next();\n },\n word = function() {\n switch (ch) {\n case "t":\n next("t");\n next("r");\n next("u");\n next("e");\n return true;\n case "f":\n next("f");\n next("a");\n next("l");\n next("s");\n next("e");\n return false;\n case "n":\n next("n");\n next("u");\n next("l");\n next("l");\n return null;\n }\n error("Unexpected \'" + ch + "\'");\n },\n // parses and returns the method\n method = function() {\n switch (ch) {\n case "G":\n next("G");\n next("E");\n next("T");\n return "GET";\n case "H":\n next("H");\n next("E");\n next("A");\n next("D");\n return "HEAD";\n case "D":\n next("D");\n next("E");\n next("L");\n next("E");\n next("T");\n next("E");\n return "DELETE";\n case "P":\n next("P");\n switch (ch) {\n case "U":\n next("U");\n next("T");\n return "PUT";\n case "O":\n next("O");\n next("S");\n next("T");\n return "POST";\n default:\n error("Unexpected \'" + ch + "\'");\n }\n break;\n case "L":\n next("L");\n next("O");\n next("A");\n next("D");\n return "LOAD";\n case "C":\n next("C");\n next("O");\n next("N");\n next("F");\n next("I");\n next("G");\n return "CONFIG";\n case "S":\n next("S");\n next("E");\n next("L");\n next("E");\n next("C");\n next("T");\n return "SELECT";\n case "F":\n next("F");\n next("R");\n next("O");\n next("M");\n return "FROM";\n default:\n error("Expected one of GET/POST/PUT/DELETE/HEAD/LOAD/CONFIG/SELECT/FROM");\n }\n },\n value, // Place holder for the value function.\n array = function() {\n const array = [];\n\n if (ch === "[") {\n next("[");\n white();\n if (ch === "]") {\n next("]");\n return array; // empty array\n }\n while (ch) {\n array.push(value());\n white();\n if (ch === "]") {\n next("]");\n return array;\n }\n next(",");\n white();\n }\n }\n error("Bad array");\n },\n object = function() {\n let key,\n object = {};\n\n if (ch === "{") {\n next("{");\n white();\n if (ch === "}") {\n next("}");\n return object; // empty object\n }\n while (ch) {\n key = string();\n white();\n next(":");\n if (Object.hasOwnProperty.call(object, key)) {\n error(\'Duplicate key "\' + key + \'"\');\n }\n object[key] = value();\n white();\n if (ch === "}") {\n next("}");\n return object;\n }\n next(",");\n white();\n }\n }\n error("Bad object");\n };\n\n value = function() {\n white();\n switch (ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && ch <= "9" ? number() : word();\n }\n };\n\n let url = function() {\n let url = "";\n while (ch && ch != "\\n") {\n url += ch;\n next();\n }\n if (url == "") {\n error("Missing url");\n }\n return url;\n },\n request = function() {\n white();\n method();\n strictWhite();\n url();\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n if (ch == "{") {\n object();\n }\n // multi doc request\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n while (ch == "{") {\n // another object\n object();\n strictWhite();\n newLine();\n strictWhite();\n }\n },\n comment = function() {\n while (ch == "#") {\n while (ch && ch !== "\\n") {\n next();\n }\n white();\n }\n },\n multi_request = function() {\n while (ch && ch != "") {\n white();\n if (!ch) {\n continue;\n }\n try {\n comment();\n white();\n if (!ch) {\n continue;\n }\n request();\n white();\n } catch (e) {\n annotate("error", e.message);\n // snap\n const substring = text.substr(at);\n const nextMatch = substring.search(/^POST|HEAD|GET|PUT|DELETE/m);\n if (nextMatch < 1) return;\n reset(at + nextMatch);\n }\n }\n };\n\n return function(source, reviver) {\n let result;\n\n text = source;\n at = 0;\n annos = [];\n next();\n multi_request();\n white();\n if (ch) {\n annotate("error", "Syntax error");\n }\n\n result = { annotations: annos };\n\n return typeof reviver === "function"\n ? (function walk(holder, key) {\n let k,\n v,\n value = holder[key];\n if (value && typeof value === "object") {\n for (k in value) {\n if (Object.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n })({ "": result }, "")\n : result;\n };\n }\n);\n\nace.define(\n "sense_editor/mode/worker",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/worker/mirror",\n "sense_editor/mode/worker_parser",\n ],\n function(require, exports) {\n const oop = require("ace/lib/oop");\n const Mirror = require("ace/worker/mirror").Mirror;\n const parse = require("sense_editor/mode/worker_parser");\n\n const SenseWorker = (exports.SenseWorker = function(sender) {\n Mirror.call(this, sender);\n this.setTimeout(200);\n });\n\n oop.inherits(SenseWorker, Mirror);\n\n (function() {\n this.id = "senseWorker";\n this.onUpdate = function() {\n const value = this.doc.getValue();\n let pos, result;\n try {\n result = parse(value);\n } catch (e) {\n pos = this.charToDocumentPosition(e.at - 1);\n this.sender.emit("error", {\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error",\n });\n return;\n }\n for (let i = 0; i < result.annotations.length; i++) {\n pos = this.charToDocumentPosition(result.annotations[i].at - 1);\n result.annotations[i].row = pos.row;\n result.annotations[i].column = pos.column;\n }\n this.sender.emit("ok", result.annotations);\n };\n\n this.charToDocumentPosition = function(charPos) {\n let i = 0;\n const len = this.doc.getLength();\n const nl = this.doc.getNewLineCharacter().length;\n\n if (!len) {\n return { row: 0, column: 0 };\n }\n\n let lineStart = 0,\n line;\n while (i < len) {\n line = this.doc.getLine(i);\n const lineLength = line.length + nl;\n if (lineStart + lineLength > charPos) {\n return {\n row: i,\n column: charPos - lineStart,\n };\n }\n\n lineStart += lineLength;\n i += 1;\n }\n\n return {\n row: i - 1,\n column: line.length,\n };\n };\n }.call(SenseWorker.prototype));\n }\n);\n'},Br=Be().acequire("ace/mode/text_highlight_rules").TextHighlightRules,Gr=Be().acequire("ace/lib/oop"),Jr=function(){var e=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};Gr.inherits(Jr,Br);var $r=Be().acequire("ace/lib/oop"),Vr=Be().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function Wr(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}$r.inherits(Wr,Vr);var Hr=function(){return Hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hr.apply(this,arguments)},Kr=Be().acequire("ace/mode/json_highlight_rules").JsonHighlightRules,Qr=Be().acequire("ace/lib/oop"),Yr=function(e){var t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e=e||"json",push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Xr(){var e=Yr("start");this.$rules=Hr({},e),this.embedRules(Wr,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(Jr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function Zr(e,t){e.$rules=(0,f.defaultsDeep)(e.$rules,Yr(t)),e.embedRules(Wr,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(Jr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}Qr.inherits(Xr,Kr);var eo={id:"ace/mode/json_worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the json\n mode from the brace distro.\n\n It is very likely that this file will be removed in future but for now it enables\n extended JSON parsing, like e.g. """{}""" (triple quotes)\n*/\n"no use strict";\n! function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (var testPath = id, tail = ""; testPath;) {\n var alias = paths[testPath];\n if ("string" == typeof alias) return alias + tail;\n if (alias) return alias.location.replace(/\\/*$/, "/") + (tail || alias.main || alias.name);\n if (alias === !1) return "";\n var i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n tail = testPath.substr(i) + tail, testPath = testPath.slice(0, i)\n }\n return id\n }\n if (!(void 0 !== window.window && window.document || window.acequire && window.define)) {\n window.console || (window.console = function() {\n var msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({\n type: "log",\n data: msgs\n })\n }, window.console.error = window.console.warn = window.console.log = window.console.trace = window.console), window.window = window, window.ace = window, window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack\n }\n })\n }, window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n var chunks = moduleName.split("!");\n return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1])\n }\n if ("." == moduleName.charAt(0)) {\n var base = parentId.split("/").slice(0, -1).join("/");\n for (moduleName = (base ? base + "/" : "") + moduleName; - 1 !== moduleName.indexOf(".") && previous != moduleName;) {\n var previous = moduleName;\n moduleName = moduleName.replace(/^\\.\\//, "").replace(/\\/\\.\\//, "/").replace(/[^\\/]+\\/\\.\\.\\//, "")\n }\n }\n return moduleName\n }, window.acequire = function acequire(parentId, id) {\n if (id || (id = parentId, parentId = null), !id.charAt) throw Error("worker.js acequire() accepts only (parentId, id) as arguments");\n id = window.normalizeModule(parentId, id);\n var module = window.acequire.modules[id];\n if (module) return module.initialized || (module.initialized = !0, module.exports = module.factory().exports), module.exports;\n if (!window.acequire.tlns) return console.log("unable to load " + id);\n var path = resolveModuleId(id, window.acequire.tlns);\n return ".js" != path.slice(-3) && (path += ".js"), window.acequire.id = id, window.acequire.modules[id] = {}, importScripts(path), window.acequire(parentId, id)\n }, window.acequire.modules = {}, window.acequire.tlns = {}, window.define = function(id, deps, factory) {\n if (2 == arguments.length ? (factory = deps, "string" != typeof id && (deps = id, id = window.acequire.id)) : 1 == arguments.length && (factory = id, deps = [], id = window.acequire.id), "function" != typeof factory) return window.acequire.modules[id] = {\n exports: factory,\n initialized: !0\n }, void 0;\n deps.length || (deps = ["require", "exports", "module"]);\n var req = function(childId) {\n return window.acequire(id, childId)\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n var module = this,\n returnExports = factory.apply(this, deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep)\n }\n }));\n return returnExports && (module.exports = returnExports), module\n }\n }\n }, window.define.amd = {}, window.acequire.tlns = {}, window.initBaseUrls = function(topLevelNamespaces) {\n for (var i in topLevelNamespaces) acequire.tlns[i] = topLevelNamespaces[i]\n }, window.initSender = function() {\n var EventEmitter = window.acequire("ace/lib/event_emitter").EventEmitter,\n oop = window.acequire("ace/lib/oop"),\n Sender = function() {};\n return function() {\n oop.implement(this, EventEmitter), this.callback = function(data, callbackId) {\n postMessage({\n type: "call",\n id: callbackId,\n data: data\n })\n }, this.emit = function(name, data) {\n postMessage({\n type: "event",\n name: name,\n data: data\n })\n }\n }.call(Sender.prototype), new Sender\n };\n var main = window.main = null,\n sender = window.sender = null;\n window.onmessage = function(e) {\n var msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command)\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command]) throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args)\n }\n else if (msg.init) {\n window.initBaseUrls(msg.tlns), acequire("ace/lib/es5-shim"), sender = window.sender = window.initSender();\n var clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender)\n }\n }\n }\n}(this), ace.define("ace/lib/oop", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.inherits = function(ctor, superCtor) {\n ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n })\n }, exports.mixin = function(obj, mixin) {\n for (var key in mixin) obj[key] = mixin[key];\n return obj\n }, exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin)\n }\n}), ace.define("ace/range", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n this.start = {\n row: startRow,\n column: startColumn\n }, this.end = {\n row: endRow,\n column: endColumn\n }\n };\n (function() {\n this.isEqual = function(range) {\n return this.start.row === range.start.row && this.end.row === range.end.row && this.start.column === range.start.column && this.end.column === range.end.column\n }, this.toString = function() {\n return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"\n }, this.contains = function(row, column) {\n return 0 == this.compare(row, column)\n }, this.compareRange = function(range) {\n var cmp, end = range.end,\n start = range.start;\n return cmp = this.compare(end.row, end.column), 1 == cmp ? (cmp = this.compare(start.row, start.column), 1 == cmp ? 2 : 0 == cmp ? 1 : 0) : -1 == cmp ? -2 : (cmp = this.compare(start.row, start.column), -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n }, this.comparePoint = function(p) {\n return this.compare(p.row, p.column)\n }, this.containsRange = function(range) {\n return 0 == this.comparePoint(range.start) && 0 == this.comparePoint(range.end)\n }, this.intersects = function(range) {\n var cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp\n }, this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n }, this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n }, this.setStart = function(row, column) {\n "object" == typeof row ? (this.start.column = row.column, this.start.row = row.row) : (this.start.row = row, this.start.column = column)\n }, this.setEnd = function(row, column) {\n "object" == typeof row ? (this.end.column = row.column, this.end.row = row.row) : (this.end.row = row, this.end.column = column)\n }, this.inside = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) || this.isStart(row, column) ? !1 : !0 : !1\n }, this.insideStart = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) ? !1 : !0 : !1\n }, this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column) ? this.isStart(row, column) ? !1 : !0 : !1\n }, this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row ? this.start.row > row ? -1 : row > this.end.row ? 1 : this.start.row === row ? column >= this.start.column ? 0 : -1 : this.end.row === row ? this.end.column >= column ? 0 : 1 : 0 : this.start.column > column ? -1 : column > this.end.column ? 1 : 0\n }, this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.compare(row, column)\n }, this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.end.row) var end = {\n row: firstRow,\n column: 0\n };\n if (this.start.row > lastRow) var start = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.start.row) var start = {\n row: firstRow,\n column: 0\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.extend = function(row, column) {\n var cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = {\n row: row,\n column: column\n };\n else var end = {\n row: row,\n column: column\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.isEmpty = function() {\n return this.start.row === this.end.row && this.start.column === this.end.column\n }, this.isMultiLine = function() {\n return this.start.row !== this.end.row\n }, this.clone = function() {\n return Range.fromPoints(this.start, this.end)\n }, this.collapseRows = function() {\n return 0 == this.end.column ? new Range(this.start.row, 0, Math.max(this.start.row, this.end.row - 1), 0) : new Range(this.start.row, 0, this.end.row, 0)\n }, this.toScreenRange = function(session) {\n var screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column)\n }, this.moveBy = function(row, column) {\n this.start.row += row, this.start.column += column, this.end.row += row, this.end.column += column\n }\n }).call(Range.prototype), Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column)\n }, Range.comparePoints = comparePoints, Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n }, exports.Range = Range\n}), ace.define("ace/apply_delta", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.applyDelta = function(docLines, delta) {\n var row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n else {\n var args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args), docLines[row] = line.substring(0, startColumn) + docLines[row], docLines[row + delta.lines.length - 1] += line.substring(startColumn)\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow ? docLines[row] = line.substring(0, startColumn) + line.substring(endColumn) : docLines.splice(row, endRow - row + 1, line.substring(0, startColumn) + docLines[endRow].substring(endColumn))\n }\n }\n}), ace.define("ace/lib/event_emitter", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0\n },\n preventDefault = function() {\n this.defaultPrevented = !0\n };\n EventEmitter._emit = EventEmitter._dispatchEvent = function(eventName, e) {\n this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});\n var listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n "object" == typeof e && e || (e = {}), e.type || (e.type = eventName), e.stopPropagation || (e.stopPropagation = stopPropagation), e.preventDefault || (e.preventDefault = preventDefault), listeners = listeners.slice();\n for (var i = 0; listeners.length > i && (listeners[i](e, this), !e.propagationStopped); i++);\n return defaultHandler && !e.defaultPrevented ? defaultHandler(e, this) : void 0\n }\n }, EventEmitter._signal = function(eventName, e) {\n var listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (var i = 0; listeners.length > i; i++) listeners[i](e, this)\n }\n }, EventEmitter.once = function(eventName, callback) {\n var _self = this;\n callback && this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback), callback.apply(null, arguments)\n })\n }, EventEmitter.setDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers || (handlers = this._defaultHandlers = {\n _disabled_: {}\n }), handlers[eventName]) {\n var old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []), disabled.push(old);\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n handlers[eventName] = callback\n }, EventEmitter.removeDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers) {\n var disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) handlers[eventName], disabled && this.setDefaultHandler(eventName, disabled.pop());\n else if (disabled) {\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n }\n }, EventEmitter.on = EventEmitter.addEventListener = function(eventName, callback, capturing) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n return listeners || (listeners = this._eventRegistry[eventName] = []), -1 == listeners.indexOf(callback) && listeners[capturing ? "unshift" : "push"](callback), callback\n }, EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(eventName, callback) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (listeners) {\n var index = listeners.indexOf(callback); - 1 !== index && listeners.splice(index, 1)\n }\n }, EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = [])\n }, exports.EventEmitter = EventEmitter\n}), ace.define("ace/anchor", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = exports.Anchor = function(doc, row, column) {\n this.$onChange = this.onChange.bind(this), this.attach(doc), column === void 0 ? this.setPosition(row.row, row.column) : this.setPosition(row, column)\n };\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n return point1.row < point2.row || point1.row == point2.row && bColIsAfter\n }\n\n function $getTransformedPoint(delta, point, moveIfEqual) {\n var deltaIsInsert = "insert" == delta.action,\n deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual) ? {\n row: point.row,\n column: point.column\n } : $pointsInOrder(deltaEnd, point, !moveIfEqual) ? {\n row: point.row + deltaRowShift,\n column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n } : {\n row: deltaStart.row,\n column: deltaStart.column\n }\n }\n oop.implement(this, EventEmitter), this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column)\n }, this.getDocument = function() {\n return this.document\n }, this.$insertRight = !1, this.onChange = function(delta) {\n if (!(delta.start.row == delta.end.row && delta.start.row != this.row || delta.start.row > this.row)) {\n var point = $getTransformedPoint(delta, {\n row: this.row,\n column: this.column\n }, this.$insertRight);\n this.setPosition(point.row, point.column, !0)\n }\n }, this.setPosition = function(row, column, noClip) {\n var pos;\n if (pos = noClip ? {\n row: row,\n column: column\n } : this.$clipPositionToDocument(row, column), this.row != pos.row || this.column != pos.column) {\n var old = {\n row: this.row,\n column: this.column\n };\n this.row = pos.row, this.column = pos.column, this._signal("change", {\n old: old,\n value: pos\n })\n }\n }, this.detach = function() {\n this.document.removeEventListener("change", this.$onChange)\n }, this.attach = function(doc) {\n this.document = doc || this.document, this.document.on("change", this.$onChange)\n }, this.$clipPositionToDocument = function(row, column) {\n var pos = {};\n return row >= this.document.getLength() ? (pos.row = Math.max(0, this.document.getLength() - 1), pos.column = this.document.getLine(pos.row).length) : 0 > row ? (pos.row = 0, pos.column = 0) : (pos.row = row, pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column))), 0 > column && (pos.column = 0), pos\n }\n }).call(Anchor.prototype)\n}), ace.define("ace/document", ["require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n this.$lines = [""], 0 === textOrLines.length ? this.$lines = [""] : Array.isArray(textOrLines) ? this.insertMergedLines({\n row: 0,\n column: 0\n }, textOrLines) : this.insert({\n row: 0,\n column: 0\n }, textOrLines)\n };\n (function() {\n oop.implement(this, EventEmitter), this.setValue = function(text) {\n var len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)), this.insert({\n row: 0,\n column: 0\n }, text)\n }, this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter())\n }, this.createAnchor = function(row, column) {\n return new Anchor(this, row, column)\n }, this.$split = 0 === "aaa".split(/a/).length ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n")\n } : function(text) {\n return text.split(/\\r\\n|\\r|\\n/)\n }, this.$detectNewLine = function(text) {\n var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n this.$autoNewLine = match ? match[1] : "\\n", this._signal("changeNewLineMode")\n }, this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n"\n }\n }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode && (this.$newLineMode = newLineMode, this._signal("changeNewLineMode"))\n }, this.getNewLineMode = function() {\n return this.$newLineMode\n }, this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text\n }, this.getLine = function(row) {\n return this.$lines[row] || ""\n }, this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1)\n }, this.getAllLines = function() {\n return this.getLines(0, this.getLength())\n }, this.getLength = function() {\n return this.$lines.length\n }, this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(this.getNewLineCharacter())\n }, this.getLinesForRange = function(range) {\n var lines;\n if (range.start.row === range.end.row) lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n else {\n lines = this.getLines(range.start.row, range.end.row), lines[0] = (lines[0] || "").substring(range.start.column);\n var l = lines.length - 1;\n range.end.row - range.start.row == l && (lines[l] = lines[l].substring(0, range.end.column))\n }\n return lines\n }, this.insertLines = function(row, lines) {\n return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(row, lines)\n }, this.removeLines = function(firstRow, lastRow) {\n return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(firstRow, lastRow)\n }, this.insertNewLine = function(position) {\n return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."), this.insertMergedLines(position, ["", ""])\n }, this.insert = function(position, text) {\n return 1 >= this.getLength() && this.$detectNewLine(text), this.insertMergedLines(position, this.$split(text))\n }, this.insertInLine = function(position, text) {\n var start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: [text]\n }, !0), this.clonePos(end)\n }, this.clippedPos = function(row, column) {\n var length = this.getLength();\n void 0 === row ? row = length : 0 > row ? row = 0 : row >= length && (row = length - 1, column = void 0);\n var line = this.getLine(row);\n return void 0 == column && (column = line.length), column = Math.min(Math.max(column, 0), line.length), {\n row: row,\n column: column\n }\n }, this.clonePos = function(pos) {\n return {\n row: pos.row,\n column: pos.column\n }\n }, this.pos = function(row, column) {\n return {\n row: row,\n column: column\n }\n }, this.$clipPosition = function(position) {\n var length = this.getLength();\n return position.row >= length ? (position.row = Math.max(0, length - 1), position.column = this.getLine(length - 1).length) : (position.row = Math.max(0, position.row), position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length)), position\n }, this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n var column = 0;\n this.getLength() > row ? (lines = lines.concat([""]), column = 0) : (lines = [""].concat(lines), row--, column = this.$lines[row].length), this.insertMergedLines({\n row: row,\n column: column\n }, lines)\n }, this.insertMergedLines = function(position, lines) {\n var start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column: (1 == lines.length ? start.column : 0) + lines[lines.length - 1].length\n };\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines\n }), this.clonePos(end)\n }, this.remove = function(range) {\n var start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }), this.clonePos(start)\n }, this.removeInLine = function(row, startColumn, endColumn) {\n var start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }, !0), this.clonePos(start)\n }, this.removeFullLines = function(firstRow, lastRow) {\n firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1), lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);\n var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range)\n }), deletedLines\n }, this.removeNewLine = function(row) {\n this.getLength() - 1 > row && row >= 0 && this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""]\n })\n }, this.replace = function(range, text) {\n if (range instanceof Range || (range = Range.fromPoints(range.start, range.end)), 0 === text.length && range.isEmpty()) return range.start;\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n var end;\n return end = text ? this.insert(range.start, text) : range.start\n }, this.applyDeltas = function(deltas) {\n for (var i = 0; deltas.length > i; i++) this.applyDelta(deltas[i])\n }, this.revertDeltas = function(deltas) {\n for (var i = deltas.length - 1; i >= 0; i--) this.revertDelta(deltas[i])\n }, this.applyDelta = function(delta, doNotValidate) {\n var isInsert = "insert" == delta.action;\n (isInsert ? 1 >= delta.lines.length && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) || (isInsert && delta.lines.length > 2e4 && this.$splitAndapplyLargeDelta(delta, 2e4), applyDelta(this.$lines, delta, doNotValidate), this._signal("change", delta))\n }, this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (var lines = delta.lines, l = lines.length, row = delta.start.row, column = delta.start.column, from = 0, to = 0;;) {\n from = to, to += MAX - 1;\n var chunk = lines.slice(from, to);\n if (to > l) {\n delta.lines = chunk, delta.start.row = row + from, delta.start.column = column;\n break\n }\n chunk.push(""), this.applyDelta({\n start: this.pos(row + from, column),\n end: this.pos(row + to, column = 0),\n action: delta.action,\n lines: chunk\n }, !0)\n }\n }, this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice()\n })\n }, this.indexToPosition = function(index, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, i = startRow || 0, l = lines.length; l > i; i++)\n if (index -= lines[i].length + newlineLength, 0 > index) return {\n row: i,\n column: index + lines[i].length + newlineLength\n };\n return {\n row: l - 1,\n column: lines[l - 1].length\n }\n }, this.positionToIndex = function(pos, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, index = 0, row = Math.min(pos.row, lines.length), i = startRow || 0; row > i; ++i) index += lines[i].length + newlineLength;\n return index + pos.column\n }\n }).call(Document.prototype), exports.Document = Document\n}), ace.define("ace/lib/lang", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.last = function(a) {\n return a[a.length - 1]\n }, exports.stringReverse = function(string) {\n return string.split("").reverse().join("")\n }, exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0;) 1 & count && (result += string), (count >>= 1) && (string += string);\n return result\n };\n var trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "")\n }, exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "")\n }, exports.copyObject = function(obj) {\n var copy = {};\n for (var key in obj) copy[key] = obj[key];\n return copy\n }, exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) copy[i] = array[i] && "object" == typeof array[i] ? this.copyObject(array[i]) : array[i];\n return copy\n }, exports.deepCopy = function deepCopy(obj) {\n if ("object" != typeof obj || !obj) return obj;\n var copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) copy[key] = deepCopy(obj[key]);\n return copy\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) return obj;\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy\n }, exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map\n }, exports.createMap = function(props) {\n var map = Object.create(null);\n for (var i in props) map[i] = props[i];\n return map\n }, exports.arrayRemove = function(array, value) {\n for (var i = 0; array.length >= i; i++) value === array[i] && array.splice(i, 1)\n }, exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1")\n }, exports.escapeHTML = function(str) {\n return str.replace(/&/g, "&").replace(/"/g, """).replace(/\'/g, "'").replace(/</g, "<")\n }, exports.getMatchOffsets = function(string, regExp) {\n var matches = [];\n return string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length\n })\n }), matches\n }, exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n deferred = function(timeout) {\n return deferred.cancel(), timer = setTimeout(callback, timeout || 0), deferred\n };\n return deferred.schedule = deferred, deferred.call = function() {\n return this.cancel(), fcn(), deferred\n }, deferred.cancel = function() {\n return clearTimeout(timer), timer = null, deferred\n }, deferred.isPending = function() {\n return timer\n }, deferred\n }, exports.delayedCall = function(fcn, defaultTimeout) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n _self = function(timeout) {\n null == timer && (timer = setTimeout(callback, timeout || defaultTimeout))\n };\n return _self.delay = function(timeout) {\n timer && clearTimeout(timer), timer = setTimeout(callback, timeout || defaultTimeout)\n }, _self.schedule = _self, _self.call = function() {\n this.cancel(), fcn()\n }, _self.cancel = function() {\n timer && clearTimeout(timer), timer = null\n }, _self.isPending = function() {\n return timer\n }, _self\n }\n}), ace.define("ace/worker/mirror", ["require", "exports", "module", "ace/range", "ace/document", "ace/lib/lang"], function(acequire, exports) {\n "use strict";\n acequire("../range").Range;\n var Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = exports.Mirror = function(sender) {\n this.sender = sender;\n var doc = this.doc = new Document(""),\n deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this)),\n _self = this;\n sender.on("change", function(e) {\n var data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1])) var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1]\n };\n else var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1]\n };\n doc.applyDelta(d, !0)\n }\n return _self.$timeout ? deferredUpdate.schedule(_self.$timeout) : (_self.onUpdate(), void 0)\n })\n };\n (function() {\n this.$timeout = 500, this.setTimeout = function(timeout) {\n this.$timeout = timeout\n }, this.setValue = function(value) {\n this.doc.setValue(value), this.deferredUpdate.schedule(this.$timeout)\n }, this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId)\n }, this.onUpdate = function() {}, this.isPending = function() {\n return this.deferredUpdate.isPending()\n }\n }).call(Mirror.prototype)\n}), ace.define("ace/mode/json/json_parse", ["require", "exports", "module"], function() {\n "use strict";\n var at, ch, text, value, escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\t"\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text\n }\n },\n reset = function (newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n return c && c !== ch && error("Expected \'" + c + "\' instead of \'" + ch + "\'"), ch = text.charAt(at), at += 1, ch\n },\n nextUpTo = function (upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || \'Expected \\\'\' + upTo + \'\\\'\');\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function (c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n var number, string = "";\n for ("-" === ch && (string = "-", next("-")); ch >= "0" && "9" >= ch;) string += ch, next();\n if ("." === ch)\n for (string += "."; next() && ch >= "0" && "9" >= ch;) string += ch;\n if ("e" === ch || "E" === ch)\n for (string += ch, next(), ("-" === ch || "+" === ch) && (string += ch, next()); ch >= "0" && "9" >= ch;) string += ch, next();\n return number = +string, isNaN(number) ? (error("Bad number"), void 0) : number\n },\n string = function() {\n var hex, i, uffff, string = "";\n if (\'"\' === ch) {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n for (; next();) {\n if (\'"\' === ch) return next(), string;\n if ("\\\\" === ch)\n if (next(), "u" === ch) {\n for (uffff = 0, i = 0; 4 > i && (hex = parseInt(next(), 16), isFinite(hex)); i += 1) uffff = 16 * uffff + hex;\n string += String.fromCharCode(uffff)\n } else {\n if ("string" != typeof escapee[ch]) break;\n string += escapee[ch]\n }\n else string += ch\n }\n }\n }\n error("Bad string")\n },\n white = function() {\n for (; ch && " " >= ch;) next()\n },\n word = function() {\n switch (ch) {\n case "t":\n return next("t"), next("r"), next("u"), next("e"), !0;\n case "f":\n return next("f"), next("a"), next("l"), next("s"), next("e"), !1;\n case "n":\n return next("n"), next("u"), next("l"), next("l"), null\n }\n error("Unexpected \'" + ch + "\'")\n },\n array = function() {\n var array = [];\n if ("[" === ch) {\n if (next("["), white(), "]" === ch) return next("]"), array;\n for (; ch;) {\n if (array.push(value()), white(), "]" === ch) return next("]"), array;\n next(","), white()\n }\n }\n error("Bad array")\n },\n object = function() {\n var key, object = {};\n if ("{" === ch) {\n if (next("{"), white(), "}" === ch) return next("}"), object;\n for (; ch;) {\n if (key = string(), white(), next(":"), Object.hasOwnProperty.call(object, key) && error(\'Duplicate key "\' + key + \'"\'), object[key] = value(), white(), "}" === ch) return next("}"), object;\n next(","), white()\n }\n }\n error("Bad object")\n };\n return value = function() {\n switch (white(), ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && "9" >= ch ? number() : word()\n }\n },\n function(source, reviver) {\n var result;\n return text = source, at = 0, ch = " ", result = value(), white(), ch && error("Syntax error"), "function" == typeof reviver ? function walk(holder, key) {\n var k, v, value = holder[key];\n if (value && "object" == typeof value)\n for (k in value) Object.hasOwnProperty.call(value, k) && (v = walk(value, k), void 0 !== v ? value[k] = v : delete value[k]);\n return reviver.call(holder, key, value)\n }({\n "": result\n }, "") : result\n }\n}), ace.define("ace/mode/json_worker", ["require", "exports", "module", "ace/lib/oop", "ace/worker/mirror", "ace/mode/json/json_parse"], function(acequire, exports) {\n "use strict";\n var oop = acequire("../lib/oop"),\n Mirror = acequire("../worker/mirror").Mirror,\n parse = acequire("./json/json_parse"),\n JsonWorker = exports.JsonWorker = function(sender) {\n Mirror.call(this, sender), this.setTimeout(200)\n };\n oop.inherits(JsonWorker, Mirror),\n function() {\n this.onUpdate = function() {\n var value = this.doc.getValue(),\n errors = [];\n try {\n value && parse(value)\n } catch (e) {\n var pos = this.doc.indexToPosition(e.at - 1);\n errors.push({\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error"\n })\n }\n this.sender.emit("annotate", errors)\n }\n }.call(JsonWorker.prototype)\n}), ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n\n function doesDefinePropertyWork(object) {\n try {\n return Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n } catch (exception) {}\n }\n\n function toInteger(n) {\n return n = +n, n !== n ? n = 0 : 0 !== n && n !== 1 / 0 && n !== -(1 / 0) && (n = (n > 0 || -1) * Math.floor(Math.abs(n))), n\n }\n Function.prototype.bind || (Function.prototype.bind = function(that) {\n var target = this;\n if ("function" != typeof target) throw new TypeError("Function.prototype.bind called on incompatible " + target);\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n var result = target.apply(this, args.concat(slice.call(arguments)));\n return Object(result) === result ? result : this\n }\n return target.apply(that, args.concat(slice.call(arguments)))\n };\n return target.prototype && (Empty.prototype = target.prototype, bound.prototype = new Empty, Empty.prototype = null), bound\n });\n var defineGetter, defineSetter, lookupGetter, lookupSetter, supportsAccessors, call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) && (defineGetter = call.bind(prototypeOfObject.__defineGetter__), defineSetter = call.bind(prototypeOfObject.__defineSetter__), lookupGetter = call.bind(prototypeOfObject.__lookupGetter__), lookupSetter = call.bind(prototypeOfObject.__lookupSetter__)), 2 != [1, 2].splice(0).length)\n if (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return a[0] = a[1] = 0, a\n }\n var lengthBefore, array = [];\n return array.splice.apply(array, makeArray(20)), array.splice.apply(array, makeArray(26)), lengthBefore = array.length, array.splice(5, 0, "XXX"), lengthBefore + 1 == array.length, lengthBefore + 1 == array.length ? !0 : void 0\n }()) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length ? array_splice.apply(this, [void 0 === start ? 0 : start, void 0 === deleteCount ? this.length - start : deleteCount].concat(slice.call(arguments, 2))) : []\n }\n } else Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0 ? pos > length && (pos = length) : void 0 == pos ? pos = 0 : 0 > pos && (pos = Math.max(length + pos, 0)), length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i) this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--;) this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove) this.length = lengthAfterRemove, this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i) this[pos + i] = insert[i]\n }\n return removed\n };\n Array.isArray || (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj)\n });\n var boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (Array.prototype.forEach || (Array.prototype.forEach = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError;\n for (; length > ++i;) i in self && fun.call(thisp, self[i], i, object)\n }), Array.prototype.map || (Array.prototype.map = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (result[i] = fun.call(thisp, self[i], i, object));\n return result\n }), Array.prototype.filter || (Array.prototype.filter = function(fun) {\n var value, object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (value = self[i], fun.call(thisp, value, i, object) && result.push(value));\n return result\n }), Array.prototype.every || (Array.prototype.every = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n return !0\n }), Array.prototype.some || (Array.prototype.some = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n return !1\n }), Array.prototype.reduce || (Array.prototype.reduce = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduce of empty array with no initial value");\n var result, i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i++];\n break\n }\n if (++i >= length) throw new TypeError("reduce of empty array with no initial value")\n }\n for (; length > i; i++) i in self && (result = fun.call(void 0, result, self[i], i, object));\n return result\n }), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduceRight of empty array with no initial value");\n var result, i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i--];\n break\n }\n if (0 > --i) throw new TypeError("reduceRight of empty array with no initial value")\n }\n do i in this && (result = fun.call(void 0, result, self[i], i, object)); while (i--);\n return result\n }), Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2) || (Array.prototype.indexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = 0;\n for (arguments.length > 1 && (i = toInteger(arguments[1])), i = i >= 0 ? i : Math.max(0, length + i); length > i; i++)\n if (i in self && self[i] === sought) return i;\n return -1\n }), Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3) || (Array.prototype.lastIndexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = length - 1;\n for (arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))), i = i >= 0 ? i : length - Math.abs(i); i >= 0; i--)\n if (i in self && sought === self[i]) return i;\n return -1\n }), Object.getPrototypeOf || (Object.getPrototypeOf = function(object) {\n return object.__proto__ || (object.constructor ? object.constructor.prototype : prototypeOfObject)\n }), !Object.getOwnPropertyDescriptor) {\n var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT + object);\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (descriptor = {\n enumerable: !0,\n configurable: !0\n }, supportsAccessors) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (object.__proto__ = prototype, getter || setter) return getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor\n }\n return descriptor.value = object[property], descriptor\n }\n }\n }\n if (Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object)\n }), !Object.create) {\n var createEmpty;\n createEmpty = null === Object.prototype.__proto__ ? function() {\n return {\n __proto__: null\n }\n } : function() {\n var empty = {};\n for (var i in empty) empty[i] = null;\n return empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null, empty\n }, Object.create = function(prototype, properties) {\n var object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" != typeof prototype) throw new TypeError("typeof prototype[" + typeof prototype + "] != \'object\'");\n var Type = function() {};\n Type.prototype = prototype, object = new Type, object.__proto__ = prototype\n }\n return void 0 !== properties && Object.defineProperties(object, properties), object\n }\n }\n if (Object.defineProperty) {\n var definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom = "undefined" == typeof document || doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) var definePropertyFallback = Object.defineProperty\n }\n if (!Object.defineProperty || definePropertyFallback) {\n var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n if ("object" != typeof descriptor && "function" != typeof descriptor || null === descriptor) throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n if (definePropertyFallback) try {\n return definePropertyFallback.call(Object, object, property, descriptor)\n } catch (exception) {}\n if (owns(descriptor, "value"))\n if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject, delete object[property], object[property] = descriptor.value, object.__proto__ = prototype\n } else object[property] = descriptor.value;\n else {\n if (!supportsAccessors) throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n owns(descriptor, "get") && defineGetter(object, property, descriptor.get), owns(descriptor, "set") && defineSetter(object, property, descriptor.set)\n }\n return object\n }\n }\n Object.defineProperties || (Object.defineProperties = function(object, properties) {\n for (var property in properties) owns(properties, property) && Object.defineProperty(object, property, properties[property]);\n return object\n }), Object.seal || (Object.seal = function(object) {\n return object\n }), Object.freeze || (Object.freeze = function(object) {\n return object\n });\n try {\n Object.freeze(function() {})\n } catch (exception) {\n Object.freeze = function(freezeObject) {\n return function(object) {\n return "function" == typeof object ? object : freezeObject(object)\n }\n }(Object.freeze)\n }\n if (Object.preventExtensions || (Object.preventExtensions = function(object) {\n return object\n }), Object.isSealed || (Object.isSealed = function() {\n return !1\n }), Object.isFrozen || (Object.isFrozen = function() {\n return !1\n }), Object.isExtensible || (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError;\n for (var name = ""; owns(object, name);) name += "?";\n object[name] = !0;\n var returnValue = owns(object, name);\n return delete object[name], returnValue\n }), !Object.keys) {\n var hasDontEnumBug = !0,\n dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],\n dontEnumsLength = dontEnums.length;\n for (var key in {\n toString: null\n }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError("Object.keys called on a non-object");\n var keys = [];\n for (var name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug)\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum)\n }\n return keys\n }\n }\n Date.now || (Date.now = function() {\n return (new Date).getTime()\n });\n var ws = "\t\\n\v\\f\\r \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n var trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "").replace(trimBeginRegexp, "").replace(trimEndRegexp, "")\n }\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o)\n }\n});\n'},to=Be().acequire("ace/worker/worker_client").WorkerClient,no=Be().acequire("ace/lib/oop"),ro=Be().acequire("ace/mode/json").Mode,oo=Be().acequire("ace/tokenizer").Tokenizer,io=Be().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,so=Be().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,ao=Be().acequire("ace/mode/folding/cstyle").FoldMode,lo=function(){var e=new Xr;e.normalizeRules(),this.$tokenizer=new oo(e.getRules()),this.$outdent=new io,this.$behaviour=new so,this.foldingRules=new ao};function co(e,t,n,r){return"object"==typeof t&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function uo(){return[].concat.apply([],arguments)}no.inherits(lo,ro),lo.prototype.createWorker=function(e){var t=new to(["ace"],eo,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t};var po=Be().acequire("ace/lib/oop"),fo=Be().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function ho(){var e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape",o=(this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0),[e,n,t,r].join("|").split("|")),i=co(["url.part"],/([^?\/,\s]+)/,"start");i=i.map((function(e){return e.onMatch=function(t,n,r){return o.includes(null==t?void 0:t.toLowerCase())?"url.select_keyword":e.token},e})),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:uo([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],co(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:uo(co(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),co(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),co(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),co(["whitespace"],/(\s+)/,"start","url")),url:uo(co(["url.part"],/(_sql)/,"start-sql","url-sql"),i,co(["url.comma"],/(,)/,"start"),co(["url.slash"],/(\/)/,"start"),co(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:uo(co(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),co(["url.param"],/([^&=]+)/,"start"),co(["url.amp"],/(&)/,"start")),"url-sql":uo(co(["url.part"],/([^?\/,\s]+)/,"start-sql"),co(["url.comma"],/(,)/,"start-sql"),co(["url.slash"],/(\/)/,"start-sql"),co(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":uo(co(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),co(["url.param"],/([^&=]+)/,"start-sql"),co(["url.amp"],/(&)/,"start-sql"))},Zr(this),this.constructor===ho&&this.normalizeRules()}po.inherits(ho,fo);var _o=Be().acequire("ace/lib/oop"),mo=Be().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function go(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}_o.inherits(go,mo);var yo=Be().acequire("ace/lib/oop"),vo=Be().acequire("ace/mode/text").Mode;function wo(){}Be().acequire("ace/tokenizer"),yo.inherits(wo,vo),function(){this.HighlightRules=go,this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(wo.prototype);var bo=Be().acequire("ace/lib/oop"),xo=Be().acequire("ace/mode/text").Mode,jo=Be().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Oo=Be().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Eo=Be().acequire("ace/mode/folding/cstyle").FoldMode,ko=Be().acequire("ace/worker/worker_client").WorkerClient,So=Be().acequire("ace/tokenizer").Tokenizer;function To(){this.$tokenizer=new So((new ho).getRules()),this.$outdent=new jo,this.$behaviour=new Oo,this.foldingRules=new Eo,this.createModeDelegates({"script-":wo})}bo.inherits(To,xo),function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return"string_literal"!==e&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new ko(["ace","sense_editor"],zr,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",(function(t){e.setAnnotations([t.data])})),t.on("ok",(function(t){e.setAnnotations(t.data)})),t}}.call(To.prototype);Be().define("ace/autocomplete/text_completer",["require","exports","module"],(function(e,t){t.getCompletions=function(e,t,n,r,o){o(null,[])}})),Be().acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(e,t,n,r,o){var i=e.coreEditor,s={lineNumber:n.row+1,column:n.column+1};i.autocompleter(s,r,o)}}]);var No=Be().acequire("ace/range").Range,Ro=function(e){var t=e.start,n=e.end;return new No(t.lineNumber-1,t.column-1,n.lineNumber-1,n.column-1)},Po=function(){function e(e,t){var n=this;this.editor=e,this.setActionsBar=function(e,t){void 0===t&&(t="top"),null===e?n.$actions.css("visibility","hidden"):"top"===t?n.$actions.css({bottom:"auto",top:e,visibility:"visible"}):n.$actions.css({top:"auto",bottom:e,visibility:"visible"})},this.hideActionsBar=function(){n.setActionsBar(null)},this.$actions=Ye()(t),this.editor.setShowPrintMargin(!1),this.parser=new Rr(this),this.autocompleter=Ur({coreEditor:this}).getCompletions;var r=this.editor.getSession();r.setMode(new To);var o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=it(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),e.coreEditor=this}return e.prototype.setMaxTokenCount=function(e){var t;null===(t=this.editor.getSession().getMode().getTokenizer())||void 0===t||t.$setMaxTokenCount(e)},e.prototype.getParser=function(){return this.parser},e.prototype.getAutocompleter=function(){return this.autocompleter},e.prototype.waitForLatestTokens=function(){var e=this;return new Promise((function(t){var n=e.editor.getSession(),r=function(){n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(r,25):t())};setTimeout(r,0)}))},e.prototype.getLineState=function(e){return this.editor.getSession().getState(e-1)},e.prototype.getValueInRange=function(e){return this.editor.getSession().getTextRange(Ro(e))},e.prototype.getTokenProvider=function(){return new ot(this.editor.getSession())},e.prototype.getValue=function(){return this.editor.getValue()},e.prototype.setValue=function(e,t){return n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(n){switch(n.label){case 0:return this.editor.getSession().setValue(e),t?[4,this.forceRetokenize()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},new((o=Promise)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i},e.prototype.getLineValue=function(e){return this.editor.getSession().getLine(e-1)},e.prototype.getCurrentPosition=function(){var e=this.editor.getCursorPosition();return{lineNumber:e.row+1,column:e.column+1}},e.prototype.clearSelection=function(){this.editor.clearSelection()},e.prototype.getTokenAt=function(e){return this.getTokenProvider().getTokenAt(e)},e.prototype.insert=function(e,t){"string"!=typeof e?this.editor.getSession().getDocument().insert({column:e.column-1,row:e.lineNumber-1},t||""):this.editor.insert(e)},e.prototype.moveCursorToPosition=function(e){this.editor.moveCursorToPosition({row:e.lineNumber-1,column:e.column-1})},e.prototype.replace=function(e,t){this.editor.getSession().replace(Ro(e),t)},e.prototype.getLines=function(e,t){return this.editor.getSession().getLines(e-1,t-1)},e.prototype.replaceRange=function(e,t){var n=this.editor.getCursorPosition();this.editor.getSession().replace(Ro(e),t);var r=Math.max(e.start.lineNumber-1+t.split("\n").length-1,1);n.row=Math.min(n.row,r),this.editor.moveCursorToPosition(n),this.editor.clearSelection()},e.prototype.getSelectionRange=function(){var e=this.editor.getSelectionRange();return{start:{lineNumber:e.start.row+1,column:e.start.column+1},end:{lineNumber:e.end.row+1,column:e.end.column+1}}},e.prototype.getLineCount=function(){return this.editor.getSession().getLength()},e.prototype.addMarker=function(e){return this.editor.getSession().addMarker(Ro(e),"ace_snippet-marker","fullLine",!1)},e.prototype.removeMarker=function(e){this.editor.getSession().removeMarker(e)},e.prototype.getWrapLimit=function(){return this.editor.getSession().getWrapLimit()},e.prototype.on=function(e,t){"changeCursor"===e?this.editor.getSession().selection.on(e,t):"changeSelection"===e?this.editor.on(e,t):this.editor.getSession().on(e,t)},e.prototype.off=function(e,t){"changeSelection"===e&&this.editor.off(e,t)},e.prototype.isCompleterActive=function(){return Boolean(this.editor.completer&&this.editor.completer.activated)},e.prototype.forceRetokenize=function(){var e=this.editor.getSession();return new Promise((function(t){setTimeout((function(){var n;for(n=0;n<e.getLength();n++)e.getTokens(n);t()}))}))},e.prototype.DO_NOT_USE_onPaste=function(e){if(e&&function(e){if(!e)return!1;for(var t=0,n=e.split("\n");t<n.length;t++)if(n[t].match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/))return!0;return!1}(e)){var t=function(e){var t,n="NONE",r=[],o=[],i="",s=e.trim().split("\n"),a=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^([^']*)'/,u=/^((?:[^\\"]|\\.)*)"/,p=/^((?:[^\\"']|\\.)+)/,d=/^\s*curl\s+/,f=/-X ?(GET|HEAD|POST|PUT|DELETE)/,h=/[\s"']https?:\/\//,_=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,m=/[\s"'][^\/ ]+\/+([^\s"']+)/,g=/^.+\s(--data|-d)\s*/,y=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;function v(){var e=o.pop().replace(/\\([\\"'])/g,"$1");o.push(e)}function w(){"'"===i.substr(0,1)?(i=i.substr(1),n="SINGLE_QUOTE"):'"'===i.substr(0,1)?(i=i.substr(1),n="DOUBLE_QUOTE"):n="UNQUOTED"}function b(){o.length>0&&(r.push(o.join("")),o=[]),n="LF",r.push("\n")}function x(e){var t=i.match(e);t?(o.push(t[1]),i=i.substr(t[0].length),w()):(o.push(i),i="")}function j(){var e,t="GET",o="";(e=i.match(f))&&(t=e[1]);var s=h.test(i)?_:m;(e=i.match(s))&&(o=e[1]),r.push(t+" /"+o+"\n"),(e=i.match(g))?(i=i.substr(e[0].length),w(),a.test(i)&&(i="")):(n="NONE",i="",r.push(""))}for(s.length>0&&/^\s*#!/.test(s[0])&&s.shift();i.length>0||0!==s.length&&(i=s.shift().replace(/[\r\n]+/g,"\n")+"\n",1);)"SINGLE_QUOTE"===n?x(c):"DOUBLE_QUOTE"===n?(x(u),v()):"UNQUOTED"===n?(x(p),o.length&&v(),"UNQUOTED"===n&&(b(),i="")):"BODY"===n?l.test(i)||a.test(i)?b():(o.push(i),i=""):a.test(i)?("LF"!==n&&(r.push("\n"),n="LF"),i=""):(t=i.match(l))?(r.push("#"+t[1]+"\n"),n="NONE",i=""):d.test(i)?j():(t=i.match(y))?(r.push(t[1]+" /"+t[2]+"\n"),i="",n="BODY"):(r.push("### "+i),i="");return b(),r.join("").trim()}(e);this.editor.insert(t)}else this._aceOnPaste.call(this.editor,e)},e.prototype.execCommand=function(e){this.editor.execCommand(e)},e.prototype.getContainer=function(){return this.editor.container},e.prototype.setStyles=function(e){this.editor.getSession().setUseWrapMode(e.wrapLines),this.editor.container.style.fontSize=e.fontSize},e.prototype.registerKeyboardShortcut=function(e){this.editor.commands.addCommand({exec:e.fn,name:e.name,bindKey:e.keys})},e.prototype.legacyUpdateUI=function(e){var t=this;if(this.$actions&&e){var n=Ye()(this.editor.container).offset().top,r=e.start.lineNumber,o=e.start.column,i=this.getLineValue(r),s=this.getWrapLimit()-5,a=i.length>s,l=n-(window.pageYOffset||0),c=function(e){return t.editor.renderer.textToScreenCoordinates(e-1,o).pageY-l},u=c(r);if(u>=0){if(u>this.editor.container.getBoundingClientRect().bottom-l)return void this.setActionsBar(0,"bottom");var p=0;if(a){var d=Ye()(this.editor.container.querySelector("textArea")),f=this.getLineValue(r).length<s;if(!d||!f)return r>1?void this.setActionsBar(c(r-1)):void this.setActionsBar(c(r+1));p+=this.getLineValue(r).length*d.height()}return void this.setActionsBar(u+p)}if(this.editor.renderer.textToScreenCoordinates(e.end.lineNumber,e.end.column).pageY-n>=0)return void this.setActionsBar(0)}},e.prototype.registerAutocompleter=function(e){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(t,n,r,o,i){var s={lineNumber:r.row+1,column:r.column+1};e(s,o,i)}}])},e.prototype.destroy=function(){this.editor.destroy()},e}(),Co=Be().acequire("ace/lib/oop"),Ao=Be().acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function Lo(){this.$rules={},Zr(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===Lo&&this.normalizeRules()}Co.inherits(Lo,Ao);var qo=Be().acequire("ace/lib/oop"),Io=Be().acequire("ace/mode/json").Mode,Do=Be().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Mo=Be().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Fo=Be().acequire("ace/mode/folding/cstyle").FoldMode;Be().acequire("ace/worker/worker_client");var Uo=Be().acequire("ace/tokenizer").Tokenizer;function zo(){this.$tokenizer=new Uo((new Lo).getRules()),this.$outdent=new Do,this.$behaviour=new Mo,this.foldingRules=new Fo}qo.inherits(zo,Io),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(zo.prototype);const Bo=require("antd/lib/notification");var Go=r.n(Bo);require("antd/lib/notification/style/index.js");const Jo=require("antd/lib/modal");var $o=r.n(Jo);require("antd/lib/modal/style/index.js");const Vo=require("antd/lib/form");var Wo=r.n(Vo);require("antd/lib/form/style/index.js");const Ho=require("antd/lib/tag");var Ko=r.n(Ho);require("antd/lib/tag/style/index.js");const Qo=require("antd/lib/message");var Yo=r.n(Qo);require("antd/lib/message/style/index.js");var Xo=function(){return Xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xo.apply(this,arguments)},Zo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},ei=function(t){var n=t.value,r=void 0===n?[]:n,o=t.onChange,s=(0,i.useState)(!1),a=s[0],c=s[1],u=(0,i.useState)(""),p=u[0],d=u[1],f=(0,i.useCallback)((function(t){if(0==t.target.value.length)return Yo().warning((0,e.jsx)(l.FormattedMessage,{id:"command.message.invalid.tag"},void 0));o&&o(Zo(Zo([],r||[],!0),[t.target.value],!1)),c(!1),d("")}),[r]),h=(0,i.useCallback)((function(e){var t=Zo([],r,!0);t.splice(e,1),o&&o(t)}),[r]);return(0,e.jsxs)("div",{children:[r.map((function(t,n){return(0,e.jsx)(Ko(),Xo({closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:function(){return h(n)}},{children:t}),n)})),a&&(0,e.jsx)(w(),{value:p,onChange:function(e){d(e.target.value)},style:{width:100},onBlur:f,onPressEnter:f},void 0),!a&&(0,e.jsxs)(Ko(),Xo({onClick:function(){c(!0)},style:{padding:"0 5px",fontSize:14}},{children:[(0,e.jsx)(Ie.PlusOutlined,{},void 0)," ",(0,e.jsx)(l.FormattedMessage,{id:"command.btn.newtag"},void 0)]}),void 0)]},void 0)},ti=Wo().create()((function(t){var n=t.form;return(0,e.jsx)($o(),Xo({title:(0,e.jsx)(l.FormattedMessage,{id:"command.manage.save.title"},void 0),visible:!0,onCancel:t.onClose,onOk:function(){return e=void 0,r=void 0,i=function(){var e;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.validateFields()];case 1:return e=r.sent(),t.onConfirm(e),[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}}))},new((o=void 0)||(o=Promise))((function(t,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(e,r||[])).next())}));var e,r,o,i},zIndex:1003,cancelText:(0,e.jsx)(l.FormattedMessage,{id:"form.button.cancel"},void 0),okText:(0,e.jsx)(l.FormattedMessage,{id:"form.button.save"},void 0)},{children:(0,e.jsxs)(Wo(),Xo({layout:"vertical"},{children:[(0,e.jsx)(Wo().Item,Xo({label:(0,e.jsx)(l.FormattedMessage,{id:"command.table.field.name"},void 0)},{children:n.getFieldDecorator("title",{rules:[{required:!0,message:"请输入标题"}]})((0,e.jsx)(w(),{},void 0))}),void 0),(0,e.jsx)(Wo().Item,Xo({label:(0,e.jsx)(l.FormattedMessage,{id:"command.table.field.tag"},void 0)},{children:n.getFieldDecorator("tag")((0,e.jsx)(ei,{},void 0))}),void 0)]}),void 0)}),void 0)}));const ni=ti;var ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oi=function(){return oi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oi.apply(this,arguments)},ii=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},si=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},ai=function(t){function n(n){var r=t.call(this,n)||this;return r.mouseEnter=function(){r.state.isPopoverOpen||r.props.getCurl().then((function(e){r.setState({curlCode:e})}))},r.onButtonClick=function(){r.setState((function(e){return{isPopoverOpen:!e.isPopoverOpen}}))},r.closePopover=function(){r.setState({isPopoverOpen:!1})},r.openDocs=function(){return ii(r,void 0,void 0,(function(){var e;return si(this,(function(t){switch(t.label){case 0:return this.closePopover(),[4,this.props.getDocumentation()];case 1:return(e=t.sent())?(window.open(e,"_blank"),[2]):[2]}}))}))},r.autoIndent=function(e){r.closePopover(),r.props.autoIndent(e)},r.saveAsCommonCommand=function(){r.setState({isPopoverOpen:!1,modalVisible:!0})},r.handleClose=function(){r.setState({modalVisible:!1})},r.handleConfirm=function(t){return ii(r,void 0,void 0,(function(){var n,r,o,i;return si(this,(function(s){switch(s.label){case 0:return[4,this.props.saveAsCommonCommand()];case 1:return n=s.sent(),[4,Xe(oi(oi({},t),{requests:n}))];case 2:return[4,null===(o=s.sent())||void 0===o?void 0:o.json()];case 3:return(r=s.sent()).error?Go().error({message:(null===(i=r.error)||void 0===i?void 0:i.reason)||r.error}):(this.handleClose(),Go().success({message:(0,e.jsx)(l.FormattedMessage,{id:"app.message.save.success"},void 0)}),a=r,Rt.push(a)),[2]}var a}))}))},r.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1},r}return ri(n,t),n.prototype.copyAsCurl=function(){return ii(this,void 0,void 0,(function(){return si(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.copyText(this.state.curlCode)];case 1:return e.sent(),Go().open({message:"Request copied as cURL",placement:"bottomRight"}),[3,3];case 2:return e.sent(),Go().error({message:"Could not copy request as cURL",placement:"bottomRight"}),[3,3];case 3:return[2]}}))}))},n.prototype.copyText=function(e){var t;return ii(this,void 0,void 0,(function(){return si(this,(function(n){switch(n.label){case 0:return(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?[4,window.navigator.clipboard.writeText(e)]:[3,2];case 1:return n.sent(),[2];case 2:throw new Error("Could not copy to clipboard!")}}))}))},n.prototype.render=function(){var t,n,r=this;return(0,e.jsxs)("span",oi({onMouseEnter:this.mouseEnter},{children:[(0,e.jsx)(d(),oi({visible:this.state.isPopoverOpen,placement:"bottomLeft",content:(0,e.jsxs)("div",{children:[(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?(0,e.jsx)("div",{children:(0,e.jsx)(u(),oi({id:"ConCopyAsCurl",disabled:!(null===(n=window.navigator)||void 0===n?void 0:n.clipboard),onClick:function(){r.closePopover(),r.copyAsCurl()}},{children:(0,e.jsx)(l.FormattedMessage,{id:"console.menu.copy_as_curl"},void 0)}),"Copy as cURL")},void 0):null,(0,e.jsx)("div",{children:(0,e.jsx)(u(),oi({onClick:this.autoIndent},{children:(0,e.jsx)(l.FormattedMessage,{id:"console.menu.auto_indent"},void 0)}),"Auto indent")},void 0),(0,e.jsx)("div",{children:(0,e.jsx)(u(),oi({onClick:this.saveAsCommonCommand},{children:(0,e.jsx)(l.FormattedMessage,{id:"console.menu.save_as_command"},void 0)}),"Save as common command")},void 0)]},void 0)},{children:(0,e.jsx)("button",oi({className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick},{children:(0,e.jsx)(Ie.SettingOutlined,{},void 0)}),void 0)}),void 0),this.state.modalVisible&&(0,e.jsx)(ni,{onClose:this.handleClose,onConfirm:this.handleConfirm},void 0)]}),void 0)},n}(i.Component);const li=ai;var ci=function(){return ci=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ci.apply(this,arguments)};var ui=function(e,t){return function(){var n=(0,i.useContext)(e);if(!n)throw new Error(t+" should be used inside of "+t+"Provider!");return n}};const pi=require("immer"),di=require("fp-ts/lib/function");var fi=function(){return fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fi.apply(this,arguments)},hi={data:null,type:"unknown"},_i=(0,pi.produce)({requestInFlight:!1,lastResult:hi},di.identity),mi=function(e,t){return(0,pi.produce)(e,(function(e){return"sendRequest"===t.type?(e.requestInFlight=!0,void(e.lastResult=hi)):"requestSuccess"===t.type?(e.requestInFlight=!1,void(e.lastResult=t.payload)):"requestFail"===t.type?(e.requestInFlight=!1,void(e.lastResult=fi(fi({},hi),{error:t.payload}))):void 0}))},gi=function(){return gi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gi.apply(this,arguments)},yi=(0,i.createContext)(_i),vi=(0,i.createContext)((function(){}));function wi(t){var n=t.children,r=(0,i.useReducer)(mi,_i),o=r[0],s=r[1];return(0,e.jsx)(yi.Provider,gi({value:o},{children:(0,e.jsx)(vi.Provider,gi({value:s},{children:n}),void 0)}),void 0)}var bi=ui(yi,"RequestReadContext"),xi=ui(vi,"RequestActionContext"),ji=function(){return ji=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ji.apply(this,arguments)},Oi=(0,i.createContext)(null);function Ei(t){var n=t.children,r=t.value;return(0,e.jsx)(Oi.Provider,ji({value:r},{children:n}),void 0)}var ki=function(){var e=(0,i.useContext)(Oi);if(null==e)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Si=(0,pi.produce)({ready:!1,currentTextObject:null,sensorEditor:null},di.identity),Ti=function(e,t){return(0,pi.produce)(e,(function(e){if("setInputEditor"!==t.type){if("setCurrentTextObject"!==t.type)return e;e.currentTextObject=t.payload}else t.payload&&(e.ready=!0,e.sensorEditor=t.payload)}))},Ni=function(){return Ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ni.apply(this,arguments)},Ri=(0,i.createContext)(Si),Pi=(0,i.createContext)((function(){}));function Ci(t){var n=t.children,r=(0,i.useReducer)(Ti,Si,(function(e){return Ni({},e)})),o=r[0],s=r[1];return(0,e.jsx)(Ri.Provider,Ni({value:o},{children:(0,e.jsx)(Pi.Provider,Ni({value:s},{children:n}),void 0)}),void 0)}var Ai=ui(Ri,"EditorReadContext"),Li=ui(Pi,"EditorActionContext"),qi=function(e){var t=xi(),n=ki(),r=n.services.history,o=n.clusterID,s=Ai().sensorEditor;return(0,i.useCallback)((function(){return n=void 0,r=void 0,a=function(){var n,r,i,a,l,c,u,p,d,f,h,_,m,g,y,v,w,b,x,j,O,E,k,S,T,N,R;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(P){switch(P.label){case 0:n="",P.label=1;case 1:return P.trys.push([1,13,,14]),s?[4,s.getRequestsInRange()]:[2];case 2:if(!(r=P.sent()).length)return console.log("No request selected. Select a request by placing the cursor inside it."),[2];i=0,P.label=3;case 3:if(!(i<r.length))return[3,11];switch(a=r[i],l=a.url,c=a.method,u=a.data,null==c?void 0:c.toUpperCase()){case"LOAD":return[3,4];case"CONFIG":return[3,7];case"FROM":return[3,8];case"SELECT":return[3,9]}return[3,10];case 4:return n="LOAD",p=u[0]?u[0].slice(4).trim():l,C=p,A=Rt.filter((function(e){return e._source.title==C})),d=A&&A[0],f=s.getCoreEditor().getCurrentPosition().lineNumber,[4,s.getRequestRange(f)];case 5:return h=P.sent(),_=function(e){return e._source.requests.map((function(e){var t=e.method,n=e.path,r=e.body;return["LOAD","FROM","SELECT"].includes((t||"").toUpperCase())?r:t+" "+n+"\n"+r})).join("\n")}(d),[4,s.getCoreEditor().replaceRange(h,_)];case 6:return P.sent(),[3,10];case 7:return m=l,g=0,u&&u.length>0&&(y=u[0],(v=y.split(" ")).length>=3&&(g=parseInt(v[2]),isNaN(g)))?(t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+v[2]}}}),[3,10]):("MaxTokenCount"==m&&localStorage.setItem("editor:"+m,g+""),t({type:"requestSuccess",payload:{data:{success:!0}}}),[3,10]);case 8:if(r[i].url="_sql",r[i].method="POST",r[i].rawRequest=r[i].data[0],w=r[i].data[0]||"",-1==(b=w.search(/\s+(select)\s+/i)))throw(x=Error("invalid FROM request")).name="FRONT_ERROR",x;return j=w.slice(0,b),w=w.slice(b),(O=w.search(/\s+(order|where|limit)\s+/i))>-1?(E=w.slice(0,O),w=E+" "+j+w.slice(O)):w=w+" "+j,k={query:w.trim()},r[i].data[0]=JSON.stringify(k),[3,10];case 9:return r[i].url="_sql",r[i].method="POST",r[i].rawRequest=r[i].data[0],S={query:r[i].data[0]},r[i].data[0]=JSON.stringify(S),[3,10];case 10:return i++,[3,3];case 11:return t({type:"sendRequest",payload:void 0}),[4,e({requests:r,clusterID:o})];case 12:return T=P.sent(),t({type:"requestSuccess",payload:{data:T}}),[3,14];case 13:return N=P.sent(),"LOAD"===n?[2]:(N?(R={data:[N]},"FRONT_ERROR"===N.name&&(R={data:[{response:{value:(null==N?void 0:N.message)||N,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:R})):t({type:"requestFail",payload:void 0}),[3,14]);case 14:return[2]}var C,A}))},new((i=void 0)||(i=Promise))((function(e,t){function o(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,s)}l((a=a.apply(n,r||[])).next())}));var n,r,i,a}),[t,r,o,s])},Ii=function(){return Ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ii.apply(this,arguments)};function Di(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}const Mi=require("events"),Fi=require("resize-observer-polyfill");var Ui=r.n(Fi),zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Bi(e){return[e.clientWidth,e.clientHeight]}var Gi=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.destroyed=!1,r.expectedSize=null,r.el=t,r.observer=new(Ui())((function(){if(r.expectedSize){var e=(0,f.isEqual)(Bi(t),r.expectedSize);if(r.expectedSize=null,e)return}r.emit("resize")})),n.disabled||r.enable(),r}return zi(t,e),t.prototype.enable=function(){this.destroyed||(this.expectedSize=Bi(this.el),this.observer.observe(this.el))},t.prototype.modifySizeWithoutTriggeringResize=function(e){try{e()}finally{this.el&&(this.expectedSize=Bi(this.el))}},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())},t}(Mi.EventEmitter);function Ji(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=new Gi(e);return r.on("resize",(function(){return t.forEach((function(e){e.getCoreEditor?e.getCoreEditor().resize():e.resize(),e.updateActionsBar&&e.updateActionsBar()}))})),function(){return r.destroy()}}require("antd/dist/antd.css"),r(9368);var $i=function(){return $i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$i.apply(this,arguments)},Vi={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},Wi=function(t){var n,r,o,s=t.saveCurrentTextObjectRef,a=t.sendRequestToES,c=qi(a),u=(n=(0,i.useRef)(Promise.resolve()),r=ki().services.objectStorageClient,o=Ai().currentTextObject,(0,i.useCallback)((0,f.throttle)((function(e){var t=n.current;o&&t.finally((function(){return r.text.update(Ii(Ii({},o),{text:e,updatedAt:Date.now()}))}))}),500,{trailing:!0}),[r,o]));return(0,i.useEffect)((function(){s.current=u}),[s]),(0,e.jsx)(Me(),$i({title:(0,e.jsx)(l.FormattedMessage,{id:"console.SendRequestButton.ToolTip"},void 0)},{children:(0,e.jsx)("button",$i({"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:c},{children:(0,e.jsx)(Ie.PlayCircleOutlined,{},void 0)}),void 0)}),void 0)};const Hi=function(t){var n,r,o=t.selectedCluster,s=t.initialText,a=t.saveEditorContent,l=t.paneKey,c=t.height,u=void 0===c?"100%":c,p=(t.isActive,t.sendRequestToES),d=o.id,f=o.endpoint,h=(0,i.useRef)(null),_=(0,i.useRef)(null),m=(0,i.useRef)(null),g=(r=Li(),(0,i.useCallback)((function(e){r({type:"setInputEditor",payload:e})}),[r])),y=(0,i.useRef)(null),v=(0,i.useRef)(null),w=(0,i.useRef)((function(){})),b=(0,i.useRef)((function(e){}));return w.current=qi(p),ki().services.settings,(0,i.useEffect)((function(){var e=Be().edit(h.current);v.current=e;var t=new Po(e,_.current);e.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:function(){w.current(),e.execCommand("iSearch")}});var n=new nt(t);function r(){try{var e=n.getCoreEditor().getValue();a(e)}catch(e){console.error(e)}}m.current=n,g(n),n.paneKey=l,n.update(s||'GET _search\n{\n "query": {\n "match_all": {}\n }\n}'),Di(n.getCoreEditor(),{fontSize:12,wrapMode:!0});var o,i=Ji(h.current,n);return n.getCoreEditor().on("change",(function(){o&&clearTimeout(o),o=window.setTimeout(r,500)})),function(){i(),m.current&&m.current.getCoreEditor().destroy()}}),[]),(0,i.useEffect)((function(){d&&v.current&&(v.current.clusterID=d)&&(v.current.clusterInfo=o)}),[d]),(0,e.jsx)("div",$i({style:$i($i({},Vi),{height:u}),"data-test-subj":"console-application",className:"conApp"},{children:(0,e.jsxs)("div",$i({className:"conApp__editor"},{children:[(0,e.jsx)("ul",{className:"conApp__autoComplete",id:"autocomplete"},void 0),(0,e.jsxs)("div",$i({className:"conApp__editorActions",id:"ConAppEditorActions",ref:_},{children:[(0,e.jsx)(Wi,{saveCurrentTextObjectRef:b,sendRequestToES:p},void 0),(0,e.jsx)(li,{ref:y,getCurl:function(){return m.current.getRequestsAsCURL(f)},getDocumentation:function(){return e=m.current,t="",e.getRequestsInRange().then((function(n){if(!n||0===n.length)return null;var r=n[0].range.end;r.column=r.column-1;var o=function(e,t,n){var r=e.getLineValue(t.lineNumber),o=ci({},Dr(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Or(o.method);return ir(o.urlTokenPath,o,e,!0,i),o.endpoint}(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&-1!==o.documentation.indexOf("http")?o.documentation.replace("/master/","/"+t+"/").replace("/current/","/"+t+"/"):null}));var e,t},autoIndent:function(e){!function(e,t){var n,r,o,i;n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(n){switch(n.label){case 0:return t.preventDefault(),[4,e.autoIndent()];case 1:return n.sent(),e.getCoreEditor().getContainer().focus(),[2]}}))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}))}(m.current,e)},saveAsCommonCommand:function(){return e=void 0,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return null==(e=m.current)?(console.warn("editor is null"),[2]):[4,e.getRequestsInRange()];case 1:return[2,t.sent().map((function(e){return{method:e.method,path:e.url,body:(e.data||[]).join("\n")}}))]}}))},new((n=void 0)||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r}},void 0)]}),void 0),(0,e.jsx)("div",{ref:h,id:"Editor_"+(null===(n=m.current)||void 0===n?void 0:n.paneKey),className:"conApp__editorContent","data-test-subj":"request-editor",onClick:function(){var e,t;null===(e=y.current)||void 0===e||e.closePopover(),null===(t=v.current)||void 0===t||t.focus()}},void 0)]}),void 0)}),void 0)};require("brace/mode/yaml");var Ki=function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)},Qi=function(e){return Boolean(e&&e.indexOf("application/json")>=0)};const Yi=function(t){var n=t.clusterID,r=(0,i.useRef)(null),o=(0,i.useRef)(null),s=bi().lastResult,a=s.data,l=s.error;return(0,i.useEffect)((function(){var e;null===(e=o.current)||void 0===e||e.setValue("")}),[n]),(0,i.useEffect)((function(){var e,t,n,i;o.current=(e=r.current,n=Be().acequire("ace/ace").edit(e),i=new zo,n.$blockScrolling=1/0,n.resize=it(n),n.update=function(e,t,r){"function"==typeof t&&(r=t,t=void 0);var o=n.getSession();o.setMode(e?t||i:"ace/mode/text"),o.setValue(e),"function"==typeof r&&setTimeout(r)},n.append=function(e,t,r){"function"==typeof t&&(r=t,t=!0),h().isUndefined(t)&&(t=!0);var o=n.getSession(),i=o.getLength();t&&n.moveCursorTo(Math.max(0,i-1),0),o.insert({row:i,column:0},"\n"+e),n.moveCursorTo(i+1,0),"function"==typeof r&&setTimeout(r)},(t=n.getSession()).setMode("ace/mode/text"),t.setFoldStyle("markbeginend"),t.setTabSize(2),t.setUseWrapMode(!0),n.setShowPrintMargin(!1),n.setReadOnly(!0),n);var s=r.current.querySelector("textarea");s.setAttribute("id","ConAppOutputTextarea"),s.setAttribute("readonly","true"),Di(o.current,{fontSize:12,wrapMode:!0});var a=Ji(r.current,o.current);return function(){a(),o.current.destroy()}}),[]),(0,i.useEffect)((function(){var e,t,n=o.current;if(a){if(!a.length)return void n.update(JSON.stringify(a,null,2),"ace/mode/json");n.update(a.map((function(e){var t=e.response,n=t.value,r=t.contentType;if(Qi(r)){var o="",i=n;if(""==i)return"";try{var s="";if("#"==i[0]){var a=i.indexOf("\n");o=i.slice(0,a),i=i.slice(a),s=o+"\n"+JSON.stringify(JSON.parse(i),null,2)}else s=JSON.stringify(JSON.parse(i),null,2);return s}catch(e){console.error(e)}}return n})).join("\n"))}else if(l){var r=(t=null===(e=l.response)||void 0===e?void 0:e.contentType)?Qi(t)?"ace/mode/json":t.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text";if("ace/mode/json"==r)return void n.update(JSON.stringify(JSON.parse(l.response.value),null,2),r);n.update(l.response.value,r)}else n.update("")}),[a,l]),(0,e.jsx)("div",Ki({ref:r,className:"conApp__outputContent","data-test-subj":"response-editor"},{children:(0,e.jsx)("div",{id:"ConAppOutput"},void 0)}),void 0)};var Xi=function(){function e(){this.panels=[]}return e.prototype.registerPanel=function(e){this.panels.push(e)},e.prototype.getPanels=function(){return this.panels},e}(),Zi=function(){return Zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zi.apply(this,arguments)},es=(0,i.createContext)({registry:new Xi});function ts(t){var n=t.children,r=t.registry;return(0,e.jsx)(es.Provider,Zi({value:{registry:r}},{children:n}),void 0)}var ns=function(){return ns=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ns.apply(this,arguments)};function rs(t){var n=t.children,r=t.className,o=t.initialWidth,s=void 0===o?100:o,a=t.style,l=void 0===a?{}:a,c=(0,i.useState)(s+"%"),u=c[0],p=c[1],d=function(){var e=(0,i.useContext)(es);if(void 0===e)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e}().registry,f=(0,i.useRef)(null);return(0,i.useEffect)((function(){d.registerPanel({width:s,setWidth:function(e){p(e+"%"),this.width=e},getWidth:function(){return f.current.getBoundingClientRect().width}})}),[s,d]),(0,e.jsx)("div",ns({className:r,ref:f,style:ns(ns({},l),{width:u,display:"flex"})},{children:n}),void 0)}var os=function(){return os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},os.apply(this,arguments)};function is(t){return(0,e.jsx)("button",os({},t,{children:(0,e.jsx)(Ie.PauseOutlined,{},void 0)}),void 0)}var ss=function(){return ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ss.apply(this,arguments)},as="ArrowLeft",ls="ArrowRight",cs={isDragging:!1,currentResizerPos:-1},us=function(e,t){return e/t*100};const ps=function(t){var n=t.children,r=t.className,o=t.onPanelWidthChange,s=t.resizerClassName,a=i.Children.toArray(n),l=a[0],c=a[1],u=(0,i.useRef)(new Xi),p=(0,i.useRef)(null),d=(0,i.useState)(cs),f=d[0],h=d[1],_=(0,i.useCallback)((function(e){h(ss(ss({},f),{isDragging:!0,currentResizerPos:e.clientX}))}),[f]),m=(0,i.useCallback)((function(e){var t=e.key;if(t===as||t===ls){e.preventDefault();var n=u.current.getPanels(),r=n[0],i=n[1],s=r.width-(t===as?1:-1),a=i.width-(t===ls?1:-1);r.setWidth(s),i.setWidth(a),o&&o([s,a])}}),[o]);(0,i.useEffect)((function(){}),[a.length]);var g=[l,(0,e.jsx)(is,{className:s,onKeyDown:m,onMouseDown:_},"resizer"),c];return(0,e.jsx)(ts,ss({registry:u.current},{children:(0,e.jsx)("div",ss({className:r,ref:p,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:function(e){if(f.isDragging){var t=e.clientX,n=u.current.getPanels(),r=n[0],i=n[1],s=t-f.currentResizerPos,a=p.current.getBoundingClientRect().width,l=us(r.getWidth()+s,a),c=us(i.getWidth()-s,a);r.setWidth(l),i.setWidth(c),o&&o([l,c]),h(ss(ss({},f),{currentResizerPos:t}))}},onMouseUp:function(){h(cs)}},{children:g}),void 0)}),void 0)},ds=require("rxjs");var fs,hs=function(){function e(e){this.storage=e,this.changeEmitter=new ds.BehaviorSubject(this.getHistory()||[])}return e.prototype.getHistoryKeys=function(){return this.storage.keys().filter((function(e){return 0===e.indexOf("hist_elem")})).sort().reverse()},e.prototype.getHistory=function(){var e=this;return this.getHistoryKeys().map((function(t){return e.storage.get(t)}))},e.prototype.change=function(e){var t=this.changeEmitter.subscribe(e);return function(){return t.unsubscribe()}},e.prototype.addToHistory=function(e,t,n){var r=this,o=this.getHistoryKeys();o.splice(0,100),o.forEach((function(e){r.storage.delete(e)}));var i=(new Date).getTime(),s="hist_elem_"+i;this.storage.set(s,{time:i,endpoint:e,method:t,data:n}),this.changeEmitter.next(this.getHistory())},e.prototype.updateCurrentState=function(e){var t=(new Date).getTime();this.storage.set("editor_state",{time:t,content:e})},e.prototype.getLegacySavedEditorState=function(){var e=this.storage.get("editor_state");if(e)return{time:e.time,content:e.content}},e.prototype.deleteLegacySavedEditorState=function(){this.storage.delete("editor_state")},e.prototype.clearHistory=function(){var e=this;this.getHistoryKeys().forEach((function(t){return e.storage.delete(t)}))},e}();!function(e){e.WIDTH="widths"}(fs||(fs={}));var _s=function(){function e(e,t){this.engine=e,this.prefix=t}return e.prototype.encode=function(e){return JSON.stringify(e)},e.prototype.decode=function(e){if("string"==typeof e)return JSON.parse(e)},e.prototype.encodeKey=function(e){return""+this.prefix+e},e.prototype.decodeKey=function(e){if((0,f.startsWith)(e,this.prefix))return""+e.slice(this.prefix.length)},e.prototype.set=function(e,t){return this.engine.setItem(this.encodeKey(e),this.encode(t)),t},e.prototype.has=function(e){return null!=this.engine.getItem(this.encodeKey(e))},e.prototype.get=function(e,t){return this.has(e)?this.decode(this.engine.getItem(this.encodeKey(e))):t},e.prototype.delete=function(e){return this.engine.removeItem(this.encodeKey(e))},e.prototype.keys=function(){var e=this;return(0,f.transform)((0,f.keys)(this.engine),(function(t,n){var r=e.decodeKey(n);null!=r&&t.push(r)}))},e}(),ms=function(){function e(e){this.storage=e}return e.prototype.getFontSize=function(){return this.storage.get("font_size",12)},e.prototype.setFontSize=function(e){return this.storage.set("font_size",e),!0},e.prototype.getWrapMode=function(){return this.storage.get("wrap_mode",!0)},e.prototype.setWrapMode=function(e){return this.storage.set("wrap_mode",e),!0},e.prototype.setTripleQuotes=function(e){return this.storage.set("triple_quotes",e),!0},e.prototype.getTripleQuotes=function(){return this.storage.get("triple_quotes",!0)},e.prototype.getAutocomplete=function(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})},e.prototype.setAutocomplete=function(e){return this.storage.set("autocomplete_settings",e),!0},e.prototype.getPolling=function(){return this.storage.get("console_polling",!0)},e.prototype.setPolling=function(e){return this.storage.set("console_polling",e),!0},e.prototype.toJSON=function(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:Boolean(this.getPolling())}},e.prototype.updateSettings=function(e){var t=e.fontSize,n=e.wrapMode,r=e.tripleQuotes,o=e.autocomplete,i=e.polling;this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)},e}();const gs=require("uuid");var ys=function(){return ys=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ys.apply(this,arguments)},vs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},ws=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},bs=function(){function e(e,t){this.client=e,this.prefix="console_local_"+t}return e.prototype.create=function(e){return vs(this,void 0,Promise,(function(){var t,n;return ws(this,(function(r){return t=gs.v4(),n=ys({id:t},e),this.client.set(this.prefix+"_"+t,n),[2,n]}))}))},e.prototype.update=function(e){return vs(this,void 0,Promise,(function(){return ws(this,(function(t){return this.client.set(this.prefix+"_"+e.id,e),[2]}))}))},e.prototype.findAll=function(){return vs(this,void 0,Promise,(function(){var e,t,n,r,o,i=this;return ws(this,(function(s){for(e=this.client.keys().filter((function(e){return e.includes(i.prefix)})),t=[],n=0,r=e;n<r.length;n++)o=r[n],t.push(this.client.get(o));return[2,t]}))}))},e}();const xs=require("antd/lib/badge");var js=r.n(xs);require("antd/lib/badge/style/index.js");var Os={green:J,yellow:$,red:V,available:J,unavailable:H,online:J,offline:H,active:$,normal:J,acknowledged:J,error:V,gray:W},Es=function(t){var r=t.status,o=t.size,i=void 0===o?14:o;if("unavailable"==r||!Os[r])return(0,e.jsx)("span",{children:(0,e.jsx)(n(),{type:"close-circle",style:{fontSize:14,color:H}},void 0)},void 0);var s=function(e){return Os[e]}(r);return(0,e.jsx)("div",{style:{background:s,height:i,width:i,borderRadius:i,display:"inline-block",verticalAlign:"text-bottom"}},void 0)},ks=(r(7270),function(){return ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ks.apply(this,arguments)}),Ss=function(e){return e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger"},Ts=function(t){var n,r=t.requestInProgress,o=t.requestResult,i=t.selectedCluster,s=t.left,a=null,c=(0,e.jsxs)("div",ks({className:"base-info"},{children:[(0,e.jsxs)("div",ks({className:"info-item health"},{children:[(0,e.jsxs)("span",{children:[" ",(0,e.jsx)(l.FormattedMessage,{id:"console.cluster.status"},void 0),":"]},void 0),(0,e.jsx)("i",ks({style:{position:"absolute",top:1,right:0}},{children:(0,e.jsx)(Es,{status:null===(n=null==i?void 0:i.labels)||void 0===n?void 0:n.health_status},void 0)}),void 0)]}),void 0),(0,e.jsxs)("div",ks({className:"info-item"},{children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(l.FormattedMessage,{id:"console.cluster.endpoint"},void 0),":"]},void 0),(0,e.jsx)(js(),{color:"default",text:null==i?void 0:i.host},void 0)]}),void 0),(0,e.jsxs)("div",ks({className:"info-item"},{children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(l.FormattedMessage,{id:"console.cluster.version"},void 0),":"]},void 0),(0,e.jsx)(js(),{color:"default",text:null==i?void 0:i.version},void 0)]}),void 0)]}),void 0);if(r)a=(0,e.jsx)(js(),{color:"hollow",text:"Request in progress"},void 0);else if(o){var u=o.endpoint,p=o.method,d=o.statusCode,f=o.statusText,h=o.timeElapsedMs;a=(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",ks({className:"status_info"},{children:[(0,e.jsxs)("div",ks({className:"info-item"},{children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(l.FormattedMessage,{id:"console.response.status"},void 0),":"]},void 0),(0,e.jsx)(Me(),ks({placement:"top",title:(0,e.jsx)("span",{children:p+" "+(u.startsWith("/")?u:"/"+u)},void 0)},{children:(0,e.jsx)(js(),{color:Ss(d),text:d+" - "+f},void 0)}),void 0)]}),void 0),(0,e.jsxs)("div",ks({className:"info-item"},{children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(l.FormattedMessage,{id:"console.response.time_elapsed"},void 0),":"]},void 0),(0,e.jsx)(Me(),ks({placement:"top",title:(0,e.jsx)("span",{children:"Time Elapsed"},void 0)},{children:(0,e.jsx)(js(),{color:"default",text:h+" ms"},void 0)}),void 0)]}),void 0)]}),void 0)},void 0)}return(0,e.jsx)("div",ks({className:"request-status-bar"},{children:s?(0,e.jsx)("div",ks({className:"bar-item"},{children:c}),void 0):(0,e.jsx)("div",ks({className:"bar-item"},{children:a}),void 0)}),void 0)},Ns=(r(3302),function(){return Ns=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ns.apply(this,arguments)}),Rs=function(t){var n,r,o,i,s,a,l,c,u,p,d,f=t.selectedCluster,h=t.saveEditorContent,_=t.initialText,m=t.paneKey,g=t.isActive,y=t.height,v=t.sendRequestToES,w=bi(),b=w.requestInFlight,x=w.lastResult,j=x.data,O=x.error,E=null!==(n=null==j?void 0:j[j.length-1])&&void 0!==n?n:O,k=y>0?y+"px":"100%";return(0,e.jsx)("div",Ns({style:{height:k}},{children:(0,e.jsx)("div",Ns({className:"Console",style:{height:"100%"}},{children:(0,e.jsxs)(ps,Ns({resizerClassName:"resizer"},{children:[(0,e.jsxs)(rs,Ns({style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:26},initialWidth:50},{children:[(0,e.jsx)(Hi,{height:y-26+"px",selectedCluster:f,saveEditorContent:h,initialText:_,paneKey:m,isActive:g,sendRequestToES:v},void 0),(0,e.jsx)("div",Ns({style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"}},{children:(0,e.jsx)(Ts,{requestInProgress:b,selectedCluster:f,left:!0,requestResult:E&&E.request?{method:E.request.method.toUpperCase(),endpoint:E.request.path,statusCode:null===(r=E.response)||void 0===r?void 0:r.statusCode,statusText:null===(o=E.response)||void 0===o?void 0:o.statusText,timeElapsedMs:null===(i=E.response)||void 0===i?void 0:i.timeMs,requestHeader:E.request.header,responseHeader:null===(s=E.response)||void 0===s?void 0:s.header}:void 0},void 0)}),void 0)]}),void 0),(0,e.jsxs)(rs,Ns({style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:26},initialWidth:50},{children:[(0,e.jsxs)(qe(),Ns({tabPosition:"right",style:{height:"100%",width:"100%"},size:"small"},{children:[(0,e.jsx)(qe().TabPane,Ns({tab:"Result"},{children:(0,e.jsx)("div",Ns({style:{height:y-26}},{children:(0,e.jsx)(Yi,{clusterID:f.id},void 0)}),void 0)}),"result"),(0,e.jsx)(qe().TabPane,Ns({tab:"Headers"},{children:(0,e.jsxs)(qe(),Ns({animated:!1},{children:[(0,e.jsx)(qe().TabPane,Ns({tab:"Request"},{children:(0,e.jsx)(Ue,{code:null===(a=null==E?void 0:E.request)||void 0===a?void 0:a.header},void 0)}),"1"),(0,e.jsx)(qe().TabPane,Ns({tab:"Response"},{children:(0,e.jsx)(Ue,{code:null===(l=null==E?void 0:E.response)||void 0===l?void 0:l.header},void 0)}),"2")]}),void 0)}),"headers")]}),void 0),(0,e.jsx)("div",Ns({style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"}},{children:(0,e.jsx)(Ts,{requestInProgress:b,selectedCluster:f,requestResult:E&&E.request?{method:E.request.method.toUpperCase(),endpoint:E.request.path,statusCode:null===(c=E.response)||void 0===c?void 0:c.statusCode,statusText:null===(u=E.response)||void 0===u?void 0:u.statusText,timeElapsedMs:null===(p=E.response)||void 0===p?void 0:p.timeMs,requestHeader:E.request.header,responseHeader:null===(d=E.response)||void 0===d?void 0:d.header}:void 0},void 0)}),void 0)]}),void 0)]}),void 0)}),void 0)}),void 0)};const Ps=function(t){var n=(0,i.useRef)(new Xi),r=(0,i.useMemo)((function(){var e,t=(e={engine:window.localStorage,prefix:"sense:"},new _s(e.engine,e.prefix)),n=function(e){return new hs(e.storage)}({storage:t}),r=function(e){return{text:new bs(e,"text-object")}}(t),o=function(e){return new ms(e.storage)}({storage:t});return{storage:t,history:n,objectStorageClient:r,settings:o}}),[]),o=r.storage,s=r.history,a=r.objectStorageClient,l=r.settings;return(0,e.jsx)(ts,Ns({registry:n.current},{children:(0,e.jsx)(wi,{children:(0,e.jsx)(Ci,{children:(0,e.jsx)(Ei,Ns({value:{services:{history:s,storage:o,objectStorageClient:a,settings:l},clusterID:t.selectedCluster.id}},{children:(0,e.jsx)(Rs,Ns({},t),void 0)}),void 0)},void 0)},void 0)}),void 0)};const Cs=r.p+"75060ae827382b9be77f78d92beb74a7.svg",As=r.p+"194377418b2fbf8afa9e56eb76c2d9a4.svg";r(3107);var Ls=function(){return Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ls.apply(this,arguments)},qs={en:{"console.cluster.status":"Health","console.cluster.endpoint":"Endpoint","console.cluster.version":"Version","console.response.status":"Response status","console.response.time_elapsed":"Time elapsed","console.request.headers":"Headers","console.request.headers.title":"Request header info","console.cluster.select.placeholder":"Enter cluster name","console.cluster.select.search.no_match":"No cluster is matched (the matching rule is prefix matching)","console.SendRequestButton.ToolTip":"Click to send request","console.noConsole.desc":"Add a cluster now and start your efficient development journey","console.noConsole.dev1":"Multi cluster parallel operation","console.noConsole.dev2":"Intelligent syntax prompt","console.noConsole.dev3":"Quickly load commonly used instructions","console.noConsole.dev4":"One click workspace switching","cluster.manage.create":"Create Cluster","cluster.manage.register":"Register Cluster","cluster.manage.des":"This can help you better understand and analyze your data in order to make predictions and decisions quickly.","menu.devtool.console":"Dev Tools","command.table.field.name":"Name","command.table.field.tag":"Tag","command.table.field.content":"Content","command.manage.edit.title":"Command","command.btn.newtag":"Add New Tag","command.message.invalid.tag":"invalid tag","command.manage.save.title":"Save As Command","command.manage.title":"COMMANDS","command.manage.description":"Commonly used commands can help you save frequently used requests and load them quickly through the LOAD command in the development tool.","console.menu.copy_as_curl":"Copy As Curl","console.menu.auto_indent":"Auto Indent","console.menu.save_as_command":"Save As Command","form.button.save":"Save","form.button.cancel":"Cancel"},zh:{"console.cluster.status":"健康状态","console.cluster.endpoint":"集群地址","console.cluster.version":"版本","console.response.status":"响应状态","console.response.time_elapsed":"时延","console.request.headers":"请求头","console.request.headers.title":"请求头信息","console.cluster.select.placeholder":"输入集群名称查找","console.cluster.select.search.no_match":"匹配不到集群(匹配规则为前缀匹配)","console.SendRequestButton.ToolTip":"点击发送请求","console.noConsole.desc":"立即添加集群,启动您的高效开发之旅","console.noConsole.dev1":"多集群并行操作","console.noConsole.dev2":"智能语法提示","console.noConsole.dev3":"快速加载常用指令","console.noConsole.dev4":"一键切换工作区","cluster.manage.create":"创建集群","cluster.manage.register":"注册集群","cluster.manage.des":"这可以帮助您更好地理解和分析数据,以便快速做出预测和决策。","menu.devtool.console":"开发工具","command.table.field.name":"名称","command.table.field.tag":"标签","command.table.field.content":"内容","command.manage.edit.title":"常用命令","command.btn.newtag":"新建标签","command.message.invalid.tag":"无效的标签内容","command.manage.save.title":"保存为常用命令","command.manage.title":"常用命令管理","command.manage.description":"常用命令可以帮助您保存常用的请求,并且在开发工具里面通过 LOAD 命令快速地加载。","console.menu.copy_as_curl":"复制为 curl 命令","console.menu.auto_indent":"自动缩进","console.menu.save_as_command":"保存为常用命令","form.button.save":"保存","form.button.cancel":"取消"}},Is=navigator.language.split(/[-_]/)[0];console.log("language",Is);var Ds=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",Ls({height:"14px",width:"14px"},t,{src:Cs}),void 0)},Ms=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",Ls({height:"14px",width:"14px"},t,{src:As}),void 0)},Fs=ke.TabPane,Us=function(t){return(0,e.jsx)(Ps,Ls({},t),void 0)},zs=function(e,t){var n=t.type,r=t.payload,o=e;switch(n){case"add":o=function(e,t){var n=e.panes,r=t.payload.cluster,o=r.id+":"+(new Date).valueOf();return n.push({key:o,cluster_id:r.id,title:r.name,cluster:r}),Ls(Ls({},e),{panes:n,activeKey:o})}(e,t);break;case"remove":o=function(e,t){var n,r=e.activeKey,o=e.panes,i=t.payload.targetKey,s=o.filter((function(e){return e.key!==i}));return Ls(Ls({},e),{panes:s,activeKey:r==i?null===(n=s[0])||void 0===n?void 0:n.key:r})}(e,t);break;case"change":o=Ls(Ls({},e),{activeKey:r.activeKey});break;case"saveTitle":var i=t.payload,s=i.key,a=i.title,l=e.panes.map((function(e){return e.key==s?Ls(Ls({},e),{title:a}):e}));o=Ls(Ls({},e),{panes:l});break;case"saveContent":var c=e.panes.map((function(n){return n.key==e.activeKey?Ls(Ls({},n),{content:t.payload.content}):n}));o=Ls(Ls({},e),{panes:c});break;case"saveOrder":o=Ls(Ls({},e),{order:t.payload.order});break;case"init":o=t.payload}return o},Bs={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n\nGET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g\n'},{key:"cqhngq82sdb12fth1d3g:1721989243622",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:'111111111GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n\nGET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g\n'}]};const Gs=function(t){var r,o,s,c=t.minimize,u=void 0!==c&&c,p=t.onMinimizeClick,d=t.resizeable,f=void 0!==d&&d,h=t.height,_=void 0===h?"50vh":h,m=t.mode,g=void 0===m?"global":m,y=t.sendRequestToES,v=t.SearchEngineIcon,w=t.DataSourceSelector,b=t.fetchDataSource,x=t.LogoImg,j=function(){return Bs},O=(o=j,s={encode:JSON.stringify,decode:JSON.parse},function(e,t,n,r){var o=(0,i.useState)((function(){var o=n.getItem(e);return o?r&&"function"==typeof r.encode?r.decode(o):o:"function"==typeof t?t():t})),s=o[0],a=o[1];(0,i.useEffect)((function(){if(void 0===s)return n.removeItem(e);var t=s;r&&"function"==typeof r.encode&&(t=r.encode(t)),n.setItem(e,t)}),[e,s,n]);var l=(0,i.useCallback)((function(){a(void 0)}),[]);return[s,a,l]}("console:state:",o,window.localStorage,s)),E=O[0],k=O[1],S=(O[2],(0,i.useReducer)(zs,E)),T=S[0],N=S[1];(0,i.useEffect)((function(){0!=M.length?(M.some((function(e){return e.key==T.activeKey}))||N({type:"change",payload:{activeKey:M[0].key}}),T.panes=M,k(T)):N({type:"init",payload:j()})}),[T,N]);var R,P=(0,i.useCallback)((function(e){N({type:"saveContent",payload:{content:e}})}),[N]),C=(0,i.useCallback)((function(e){N({type:"add",payload:{cluster:e}})}),[]),A=(0,i.useRef)(null),L=(0,i.useState)(!1),q=L[0],I=L[1],D=(0,i.useCallback)((function(e){p(e),G()}),[p]);R=null===(r=T.activeKey)||void 0===r?void 0:r.split(":")[0],Pt=R;var M=T.panes.map((function(e){return e.closable=!0,e}));1==M.length&&(M[0].closable=!1);var F={left:(0,e.jsx)("div",Ls({className:"tabbar-icon",onClick:D},{children:x?(0,e.jsx)(n(),{component:x,style:{fontSize:"24px",verticalAlign:"middle"}},void 0):(0,e.jsx)(n(),{type:"code"},void 0)}),void 0),right:(0,e.jsxs)(e.Fragment,{children:[u?(0,e.jsx)("div",Ls({className:"tabbar-icon",onClick:D},{children:(0,e.jsx)(n(),{type:"minus"},void 0)}),void 0):null,(0,e.jsx)("div",Ls({className:"tabbar-icon",onClick:function(){null!=A.current&&(q?(A.current.className=A.current.className.replace(" fullscreen",""),G()):A.current.className=A.current.className+" fullscreen"),B(A.current.clientHeight),I(!q)}},{children:q?(0,e.jsx)(Ms,{},void 0):(0,e.jsx)(Ds,{},void 0)}),void 0)]},void 0),append:(0,e.jsx)(re,Ls({onItemClick:C,width:"300px",panes:M,DataSourceSelector:w,fetchDataSource:b,SearchEngineIcon:v},{children:(0,e.jsx)("div",Ls({className:"tabbar-icon"},{children:(0,e.jsx)(n(),{type:"plus"},void 0)}),void 0)}),void 0)},U=(0,i.useState)(function(e){var t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}(_)),z=U[0],B=U[1];(0,i.useEffect)((function(){var e=function(){q&&B(A.current.offsetHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[q]);var G=function(){document.body.style.overflow=""};return(0,i.useEffect)((function(){if("global"==g){var e=document.querySelector("#root>div");e&&(e.style.paddingBottom="number"==typeof z?z+"px":z)}}),[z]),(0,e.jsx)(l.IntlProvider,Ls({locale:Is,messages:qs[Is]},{children:(0,e.jsx)(a.Resizable,Ls({defaultSize:{height:z||"50vh"},minHeight:70,maxHeight:"100vh",handleComponent:{top:(0,e.jsx)(Ae,{},void 0)},onResize:function(e,t,n,r){B(n.clientHeight)},enable:{top:f,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1}},{children:(0,e.jsx)("div",Ls({style:{background:"#fff",height:"100%"},onMouseOver:function(){document.body.style.overflow="hidden"},onMouseOut:G,id:"console",ref:A},{children:(0,e.jsx)(Pe,Ls({onChange:function(e){N({type:"change",payload:{activeKey:e}})},activeKey:T.activeKey,type:"editable-card",onEdit:function(e,t){N({type:t,payload:{targetKey:e}})},hideAdd:!0,initialOrder:T.order,tabBarExtraContent:F,onTabNodeMoved:function(e){N({type:"saveOrder",payload:{order:e}})}},{children:0===M.length?(0,e.jsx)("div",{children:"no data"},void 0):M.map((function(t){return(0,e.jsx)(Fs,Ls({tab:(0,e.jsx)(ie,{title:t.title,onTitleChange:function(e){!function(e,t){N({type:"saveTitle",payload:{key:e,title:t}})}(t.key,e)},distribution:t.cluster.distribution,SearchEngineIcon:v},void 0),closable:t.closable},{children:(0,e.jsx)(Us,{height:z-35,selectedCluster:t.cluster,paneKey:t.key,saveEditorContent:P,initialText:t.content,isActive:t.key==T.activeKey,sendRequestToES:y},void 0)}),t.key)}))}),void 0)}),void 0)}),void 0)}),void 0)}})(),o})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.webCli=t(require("react"),require("react-dom")):e.webCli=t(e.react,e["react-dom"])}(self,((e,t)=>(()=>{var n={5:e=>{"use strict";e.exports=JSON.parse('{"cluster.reroute":{"url_params":{"dry_run":"__flag__","explain":"__flag__","retry_failed":"__flag__","metric":[],"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_cluster/reroute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}')},44:e=>{"use strict";e.exports=JSON.parse('{"explain":{"url_params":{"analyze_wildcard":"__flag__","analyzer":"","default_operator":["AND","OR"],"df":"_all","stored_fields":[],"lenient":"__flag__","preference":"random","q":"","routing":"","_source":[],"_source_excludes":[],"_source_includes":[]},"methods":["GET","POST"],"patterns":["{indices}/_explain/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"}}')},107:e=>{"use strict";e.exports=JSON.parse('{"exists_source":{"url_params":{"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["HEAD"],"patterns":["{indices}/_source/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},146:(e,t,n)=>{var r=n(5007);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},213:e=>{"use strict";e.exports=JSON.parse('{"ping":{"methods":["HEAD"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},217:(e,t,n)=>{var r=n(2427);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},221:()=>{},388:e=>{"use strict";e.exports=JSON.parse('{"cluster.remote_info":{"methods":["GET"],"patterns":["_remote/info"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}')},406:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"patterns":["_template/{template}"]}}')},409:e=>{"use strict";e.exports=JSON.parse('{"get_source":{"url_params":{"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET"],"patterns":["{indices}/_source/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},510:e=>{"use strict";e.exports=JSON.parse('{"indices.update_aliases":{"data_autocomplete_rules":{"actions":{"__template":[{"add":{"index":"test1","alias":"alias1"}}],"__any_of":[{"add":{"index":"{index}","alias":"","filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"},"remove":{"index":"","alias":""}}]}}}}')},669:e=>{"use strict";e.exports=JSON.parse('{"render_search_template":{"methods":["GET","POST"],"patterns":["_render/template","_render/template/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"}}')},689:e=>{"use strict";e.exports=JSON.parse('{"bulk":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","type":"","_source":[],"_source_excludes":[],"_source_includes":[],"pipeline":""},"methods":["POST","PUT"],"patterns":["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"}}')},708:(e,t,n)=>{"use strict";var r=n(3790),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},757:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},761:e=>{"use strict";e.exports=JSON.parse('{"tasks.list":{"url_params":{"nodes":[],"actions":[],"detailed":"__flag__","parent_task_id":"","wait_for_completion":"__flag__","group_by":["nodes","parents","none"],"timeout":""},"methods":["GET"],"patterns":["_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},797:e=>{"use strict";e.exports=JSON.parse('{"field_caps":{"url_params":{"fields":[],"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"include_unmapped":"__flag__"},"methods":["GET","POST"],"patterns":["_field_caps","{indices}/_field_caps"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"}}')},913:e=>{"use strict";e.exports=JSON.parse('{"scripts_painless_execute":{"methods":["GET","POST"],"patterns":["_scripts/painless/_execute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"}}')},994:e=>{"use strict";e.exports=JSON.parse('{"cluster.get_component_template":{"url_params":{"flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_component_template","_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}')},1101:e=>{"use strict";e.exports=EvalError},1123:e=>{"use strict";e.exports=JSON.parse('{"indices.recovery":{"url_params":{"detailed":"__flag__","active_only":"__flag__"},"methods":["GET"],"patterns":["_recovery","{indices}/_recovery"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}')},1185:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"data_autocomplete_rules":{"query":{}}}}')},1260:e=>{"use strict";e.exports=JSON.parse('{"search_template":{"url_params":{"ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"preference":"random","routing":[],"scroll":"","search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"explain":"__flag__","profile":"__flag__","typed_keys":"__flag__","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_search/template","{indices}/_search/template"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"}}')},1273:e=>{"use strict";e.exports=JSON.parse('{"termvectors":{"url_params":{"term_statistics":"__flag__","field_statistics":"__flag__","fields":[],"offsets":"__flag__","positions":"__flag__","payloads":"__flag__","preference":"random","routing":"","realtime":"__flag__","version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET","POST"],"patterns":["{indices}/_termvectors/{id}","{indices}/_termvectors"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"}}')},1290:e=>{"use strict";e.exports=JSON.parse('{"snapshot.delete":{"url_params":{"master_timeout":""},"methods":["DELETE"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},1325:(e,t,n)=>{"use strict";var r=n(8534)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1328:e=>{"use strict";e.exports=JSON.parse('{"snapshot.get_repository":{"url_params":{"master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_snapshot","_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},1344:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"url_params":{"include_type_name":"__flag__","wait_for_active_shards":"","timeout":"","master_timeout":""},"methods":["PUT"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}')},1427:e=>{"use strict";e.exports=JSON.parse('{"cluster.allocation_explain":{"url_params":{"include_yes_decisions":"__flag__","include_disk_info":"__flag__"},"methods":["GET","POST"],"patterns":["_cluster/allocation/explain"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}')},1452:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_alias":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["{indices}/_alias/{name}","{indices}/_aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},1489:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","from":"0","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","conflicts":["abort","proceed"],"expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"search_timeout":"","size":"","max_docs":"all documents","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"version":"__flag__","request_cache":"__flag__","refresh":"__flag__","timeout":"","wait_for_active_shards":"","scroll_size":"","wait_for_completion":"__flag__","requests_per_second":"","slices":""},"methods":["POST"],"patterns":["{indices}/_delete_by_query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"}}')},1536:(e,t,n)=>{"use strict";var r=n(7893),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;u+=l){for(var p=a.length>=l?a.slice(u,u+l):a,d=[],f=0;f<p.length;++f){var h=p.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?d[d.length]=p.charAt(f):h<128?d[d.length]=s[h]:h<2048?d[d.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(f)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},1604:e=>{"use strict";e.exports=JSON.parse('{"indices.split":{"url_params":{"copy_settings":"__flag__","timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_split/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}')},1665:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"url_params":{"explain":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"q":"","analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","lenient":"__flag__","rewrite":"__flag__","all_shards":"__flag__"},"methods":["GET","POST"],"patterns":["_validate/query","{indices}/_validate/query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}')},1675:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"data_autocomplete_rules":{"__scope_link":"put_settings"}}}')},1750:e=>{"use strict";e.exports=JSON.parse('{"delete":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","if_seq_no":"","if_primary_term":"","version":"","version_type":["internal","external","external_gte","force"]},"methods":["DELETE"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}')},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,o.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},1864:e=>{"use strict";e.exports=JSON.parse('{"indices.put_template":{"data_autocomplete_rules":{"index_patterns":[],"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"version":0,"order":0,"aliases":{"__template":{"NAME":{}}}},"patterns":["_template/{template}"]}}')},1871:(e,t,n)=>{var r=n(7989);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},1908:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".empty {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n",""])},1919:(e,t,n)=>{"use strict";var r=n(3583),o=n(8534),i=n(2644),s=n(7379),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=n(3790),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},2071:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"patterns":["_template/{template}"]}}')},2119:(e,t,n)=>{var r=n(2961);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},2168:(e,t,n)=>{"use strict";var r=n(5846);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(7877);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var w=a.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=i.exec(y);if(v){var b=(v=v[0]).toLowerCase();this.protocol=b,y=y.substr(v.length)}if(n||v||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||v&&_[v]||(y=y.substr(2),this.slashes=!0)}if(!_[v]&&(x||v&&!m[v])){for(var O,j,E=-1,k=0;k<p.length;k++)-1!==(S=y.indexOf(p[k]))&&(-1===E||S<E)&&(E=S);for(-1!==(j=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(O=y.slice(0,j),y=y.slice(j+1),this.auth=decodeURIComponent(O)),E=-1,k=0;k<u.length;k++){var S;-1!==(S=y.indexOf(u[k]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),R=(k=0,N.length);k<R;k++){var C=N[k];if(C&&!C.match(d)){for(var P="",A=0,L=C.length;A<L;A++)C.charCodeAt(A)>127?P+="x":P+=C[A];if(!P.match(d)){var q=N.slice(0,k),I=N.slice(k+1),D=C.match(f);D&&(q.push(D[1]),I.unshift(D[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[b])for(k=0,R=c.length;k<R;k++){var U=c[k];if(-1!==y.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),y=y.split(U).join(z)}}var B=y.indexOf("#");-1!==B&&(this.hash=y.substr(B),y=y.slice(0,B));var G=y.indexOf("?");if(-1!==G?(this.search=y.substr(G),this.query=y.substr(G+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,G)):t&&(this.search="",this.query={}),y&&(this.pathname=y),m[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var J=this.search||"";this.path=M+J}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var c=a[l];"protocol"!==c&&(n[c]=e[c])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||_[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=w||y||n.host&&e.pathname,b=v,x=n.pathname&&n.pathname.split("/")||[],O=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===x[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search)return O&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=x.slice(-1)[0],E=(n.host||e.host||x.length>1)&&("."===j||".."===j)||""===j,k=0,S=x.length;S>=0;S--)"."===(j=x[S])?x.splice(S,1):".."===j?(x.splice(S,1),k++):k&&(x.splice(S,1),k--);if(!v&&!b)for(;k--;k)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var T,N=""===x[0]||x[0]&&"/"===x[0].charAt(0);return O&&(n.hostname=N?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(v=v||n.host&&x.length)&&!N&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.qg=y,t.GP=function(e){return"string"==typeof e&&(e=y(e)),e instanceof o?e.format():o.prototype.format.call(e)}},2174:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create_repository":{"data_autocomplete_rules":{"__template":{"type":""},"type":{"__one_of":["fs","url","s3","hdfs","azure"]},"settings":{"__one_of":[{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']fs`"},"__template":{"location":"path"},"location":"path","compress":{"__one_of":[true,false]},"concurrent_streams":5,"chunk_size":"10m","max_restore_bytes_per_sec":"20mb","max_snapshot_bytes_per_sec":"20mb"},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']url"},"__template":{"url":""},"url":"","concurrent_streams":5},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']s3"},"__template":{"bucket":""},"bucket":"","region":"","base_path":"","concurrent_streams":5,"chunk_size":"10m","compress":{"__one_of":[true,false]}},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']hdfs"},"__template":{"path":""},"uri":"","path":"some/path","load_defaults":{"__one_of":[true,false]},"conf_location":"cfg.xml","concurrent_streams":5,"compress":{"__one_of":[true,false]},"chunk_size":"10m"},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']azure"},"__template":{"path":""},"container":"","base_path":"","client":"default","location_mode":{"__one_of":["primary_only","secondary_only"]},"readonly":{"__one_of":[true,false]},"compress":{"__one_of":[true,false]},"chunk_size":"10m"}]}}}}')},2228:e=>{"use strict";e.exports=JSON.parse('{"indices.exists":{"url_params":{"local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","include_defaults":"__flag__"},"methods":["HEAD"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}')},2353:e=>{"use strict";e.exports=JSON.parse('{"nodes.reload_secure_settings":{"url_params":{"timeout":""},"methods":["POST"],"patterns":["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}')},2427:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".flex-tabbar {\n height: 100%;\n}\n.flex-tabbar .ant-tabs {\n height: 100%;\n}\n.flex-tabbar .ant-tabs-top-bar {\n display: flex;\n}\n.flex-tabbar .ant-tabs-extra-left {\n order: 1;\n flex: 0 0 auto;\n}\n.flex-tabbar .ant-tabs-nav-container {\n order: 2;\n flex: 0 0 auto;\n display: flex;\n}\n.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container {\n max-width: calc(100% - 140px);\n}\n.flex-tabbar .tabbar-icon {\n padding: 0 10px;\n cursor: pointer;\n}\n.flex-tabbar .tabbar-icon:hover {\n background-color: #efefef;\n}\n.ant-tabs-extra-append {\n order: 3;\n}\n.ant-tabs-extra-right {\n order: 4;\n margin-left: auto;\n flex: 0 0 auto;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {\n font-weight: 400;\n background-color: #939ea0;\n color: #fff;\n border-color: #939ea0;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {\n border-radius: 0;\n height: 28px;\n line-height: 26px;\n padding: 0 12px;\n margin: 0;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content {\n line-height: 26px;\n display: flex;\n height: 28px;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container {\n height: 28px;\n max-width: calc(100% - 156px);\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {\n margin-bottom: 14px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n",""])},2465:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"url_params":{"include_type_name":"__flag__","timeout":"","dry_run":"__flag__","master_timeout":"","wait_for_active_shards":""},"methods":["POST"],"patterns":["{alias}/_rollover","{alias}/_rollover/{new_index}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}')},2469:(e,t,n)=>{var r={"./_common.json":4471,"./bulk.json":689,"./cat.aliases.json":8173,"./cat.allocation.json":9089,"./cat.count.json":3966,"./cat.fielddata.json":4529,"./cat.health.json":7401,"./cat.help.json":7888,"./cat.indices.json":4880,"./cat.master.json":5837,"./cat.nodeattrs.json":9345,"./cat.nodes.json":6616,"./cat.pending_tasks.json":3791,"./cat.plugins.json":7277,"./cat.recovery.json":6808,"./cat.repositories.json":6495,"./cat.segments.json":7369,"./cat.shards.json":8966,"./cat.snapshots.json":7408,"./cat.tasks.json":9683,"./cat.templates.json":6122,"./cat.thread_pool.json":4710,"./clear_scroll.json":8090,"./cluster.allocation_explain.json":1427,"./cluster.delete_component_template.json":9797,"./cluster.get_component_template.json":994,"./cluster.get_settings.json":6461,"./cluster.health.json":2899,"./cluster.pending_tasks.json":9777,"./cluster.put_component_template.json":2897,"./cluster.put_settings.json":8422,"./cluster.remote_info.json":388,"./cluster.reroute.json":5,"./cluster.state.json":7646,"./cluster.stats.json":5328,"./count.json":9788,"./create.json":4185,"./delete.json":1750,"./delete_by_query.json":1489,"./delete_by_query_rethrottle.json":3235,"./delete_script.json":7944,"./exists.json":9153,"./exists_source.json":107,"./explain.json":44,"./field_caps.json":797,"./get.json":9367,"./get_script.json":7787,"./get_script_context.json":7335,"./get_script_languages.json":8623,"./get_source.json":409,"./index.json":7299,"./indices.analyze.json":5552,"./indices.clear_cache.json":8688,"./indices.clone.json":2637,"./indices.close.json":8560,"./indices.create.json":1344,"./indices.delete.json":6095,"./indices.delete_alias.json":1452,"./indices.delete_template.json":5830,"./indices.exists.json":2228,"./indices.exists_alias.json":8411,"./indices.exists_template.json":9252,"./indices.exists_type.json":4373,"./indices.flush.json":7110,"./indices.flush_synced.json":4845,"./indices.forcemerge.json":2825,"./indices.get.json":7976,"./indices.get_alias.json":4607,"./indices.get_field_mapping.json":9002,"./indices.get_mapping.json":9889,"./indices.get_settings.json":9008,"./indices.get_template.json":9211,"./indices.get_upgrade.json":5799,"./indices.open.json":4652,"./indices.put_alias.json":4774,"./indices.put_mapping.json":6472,"./indices.put_settings.json":8555,"./indices.put_template.json":5080,"./indices.recovery.json":1123,"./indices.refresh.json":4687,"./indices.rollover.json":2465,"./indices.segments.json":8566,"./indices.shard_stores.json":6307,"./indices.shrink.json":9321,"./indices.split.json":1604,"./indices.stats.json":8263,"./indices.update_aliases.json":3246,"./indices.upgrade.json":7704,"./indices.validate_query.json":1665,"./info.json":7425,"./ingest.delete_pipeline.json":6529,"./ingest.get_pipeline.json":6502,"./ingest.processor_grok.json":9123,"./ingest.put_pipeline.json":7661,"./ingest.simulate.json":2635,"./mget.json":4836,"./msearch.json":4844,"./msearch_template.json":3807,"./mtermvectors.json":7978,"./nodes.hot_threads.json":8397,"./nodes.info.json":5928,"./nodes.reload_secure_settings.json":2353,"./nodes.stats.json":3767,"./nodes.usage.json":4531,"./ping.json":213,"./put_script.json":8580,"./rank_eval.json":5986,"./reindex.json":2820,"./reindex_rethrottle.json":8472,"./render_search_template.json":669,"./scripts_painless_execute.json":913,"./scroll.json":4964,"./search.json":5917,"./search_shards.json":6543,"./search_template.json":1260,"./snapshot.cleanup_repository.json":9396,"./snapshot.create.json":8981,"./snapshot.create_repository.json":7630,"./snapshot.delete.json":1290,"./snapshot.delete_repository.json":5695,"./snapshot.get.json":7691,"./snapshot.get_repository.json":1328,"./snapshot.restore.json":4753,"./snapshot.status.json":7795,"./snapshot.verify_repository.json":4401,"./tasks.cancel.json":8479,"./tasks.get.json":8307,"./tasks.list.json":761,"./termvectors.json":1273,"./update.json":6644,"./update_by_query.json":8203,"./update_by_query_rethrottle.json":8985};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2469},2635:e=>{"use strict";e.exports=JSON.parse('{"ingest.simulate":{"url_params":{"verbose":"__flag__"},"methods":["GET","POST"],"patterns":["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}')},2637:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"url_params":{"timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_clone/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}')},2644:(e,t,n)=>{"use strict";var r=n(8534),o=n(7517),i=n(708)(),s=n(1325),a=n(7379),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2650:(e,t,n)=>{"use strict";var r=n(1536),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}if(a){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(a.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:"__proto__"!==u&&(s[u]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,n=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?h="utf-8":"utf8=%26%2310003%3B"===d[u]&&(h="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var _,m,g=d[u],y=g.indexOf("]="),w=-1===y?g.indexOf("="):y+1;-1===w?(_=t.decoder(g,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(_=t.decoder(g.slice(0,w),s.decoder,h,"key"),m=r.maybeMap(l(g.slice(w+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var v=o.call(n,_);v&&"combine"===t.duplicates?n[_]=r.combine(n[_],m):v&&"last"!==t.duplicates||(n[_]=m)}return n}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],_=c(h,u[h],n,"string"==typeof e);p=r.merge(p,_,n)}return!0===n.allowSparse?p:r.compact(p)}},2787:(e,t,n)=>{"use strict";var r=n(8534),o=n(1919),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},2820:e=>{"use strict";e.exports=JSON.parse('{"reindex":{"url_params":{"refresh":"__flag__","timeout":"","wait_for_active_shards":"","wait_for_completion":"__flag__","requests_per_second":"","scroll":"","slices":"","max_docs":"all documents"},"methods":["POST"],"patterns":["_reindex"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"}}')},2825:e=>{"use strict";e.exports=JSON.parse('{"indices.forcemerge":{"url_params":{"flush":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"max_num_segments":"dynamic","only_expunge_deletes":"__flag__"},"methods":["POST"],"patterns":["_forcemerge","{indices}/_forcemerge"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}')},2864:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,_=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,O=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var q=n(6153),I=q.custom,D=B(I)?I:null;function M(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return w.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==$(e)||C&&"object"==typeof e&&C in e)}function z(e){return!("[object RegExp]"!==$(e)||C&&"object"==typeof e&&C in e)}function B(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,a){var l=r||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!J(l,"customInspect")||l.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return v?L(t,x):x}if("bigint"==typeof t){var k=String(t)+"n";return v?L(t,k):k}var T=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=T&&T>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var I,G=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(l,o);if(void 0===a)a=[];else if(V(a,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(a=E.call(a)).push(n),r){var i={depth:l.depth};return J(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,a)}return e(t,l,o+1,a)}if("function"==typeof t&&!z(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Z(t,H);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(B(t)){var ne=R?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||R?ne:K(ne)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var re="<"+b.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+M(F(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+b.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var se=Z(t,H);return G&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+X(se,G)+"]":"[ "+j.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||C&&"object"==typeof e&&C in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ae,", ")+" }":"{ ["+String(t)+"] "+j.call(O.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&_){if(D&&"function"==typeof t[D]&&q)return q(t,{depth:T-o});if("symbol"!==_&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,(function(e,n){le.push(H(n,t,!0)+" => "+H(e,t))})),Y("Map",i.call(t),le,G)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(H(e,t))})),Y("Set",c.call(t),ce,G)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return K(H(S.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==$(e)||C&&"object"==typeof e&&C in e)}(t)&&!z(t)){var ue=Z(t,H),pe=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!pe&&C&&Object(t)===t&&C in t?y.call($(t),8,-1):de?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+j.call(O.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":G?he+"{"+X(ue,G)+"}":he+"{ "+j.call(ue,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return G.call(e,t)}function $(e){return _.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(y.call(e,0,t.maxStringLength),t)+r}return M(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function K(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):j.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=J(e,o)?t(e[o],e):""}var i,s="function"==typeof T?T(e):[];if(R){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)J(e,l)&&(n&&String(Number(l))===l&&l<e.length||R&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<s.length;c++)P.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},2897:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_component_template":{"url_params":{"create":"__flag__","master_timeout":""},"methods":["PUT"],"patterns":["_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}')},2899:e=>{"use strict";e.exports=JSON.parse('{"cluster.health":{"url_params":{"expand_wildcards":["open","closed","hidden","none","all"],"level":["cluster","indices","shards"],"local":"__flag__","master_timeout":"","timeout":"","wait_for_active_shards":"","wait_for_nodes":"","wait_for_events":["immediate","urgent","high","normal","low","languid"],"wait_for_no_relocating_shards":"__flag__","wait_for_no_initializing_shards":"__flag__","wait_for_status":["green","yellow","red"]},"methods":["GET"],"patterns":["_cluster/health","_cluster/health/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}')},2961:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".loading {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.loading img {\n height: 32px;\n margin-bottom: 8px;\n}\n.loading .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3235:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_delete_by_query/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"}}')},3246:e=>{"use strict";e.exports=JSON.parse('{"indices.update_aliases":{"url_params":{"timeout":"","master_timeout":""},"methods":["POST"],"patterns":["_aliases"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},3445:e=>{"use strict";e.exports=JSON.parse('{"cluster.reroute":{"data_autocomplete_rules":{"commands":[{"move":{"__template":{"index":"","shard":0,"from_node":"","to_node":""},"index":"{index}","shard":0,"from_node":"{node}","to_node":"{node}"},"cancel":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}},"allocate":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}}}],"dry_run":{"__one_of":[true,false]}}}}')},3556:(e,t,n)=>{var r=n(4262);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3583:(e,t,n)=>{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},3639:(e,t,n)=>{var r=n(7453);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3716:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},3727:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".error {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.error .anticon {\n font-size: 32px;\n color: #ff6c6c;\n margin-bottom: 8px;\n}\n.error .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3762:(e,t,n)=>{var r=n(9340);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3767:e=>{"use strict";e.exports=JSON.parse('{"nodes.stats":{"url_params":{"completion_fields":[],"fielddata_fields":[],"fields":[],"groups":"__flag__","level":["indices","node","shards"],"types":[],"timeout":"","include_segment_file_sizes":"__flag__"},"methods":["GET"],"patterns":["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],"url_components":{"nodes":null,"metrics":["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],"index_metric":["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}')},3790:(e,t,n)=>{"use strict";var r=n(8534)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3791:e=>{"use strict";e.exports=JSON.parse('{"cat.pending_tasks":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/pending_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}')},3807:e=>{"use strict";e.exports=JSON.parse('{"msearch_template":{"url_params":{"search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"typed_keys":"__flag__","max_concurrent_searches":"","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_msearch/template","{indices}/_msearch/template"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"}}')},3808:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6465);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3966:e=>{"use strict";e.exports=JSON.parse('{"cat.count":{"url_params":{"format":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/count","_cat/count/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}')},4185:e=>{"use strict";e.exports=JSON.parse('{"create":{"url_params":{"wait_for_active_shards":"","refresh":["true","false","wait_for"],"routing":"","timeout":"","version":"","version_type":["internal","external","external_gte"],"pipeline":""},"methods":["PUT","POST"],"patterns":["{indices}/_create/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"}}')},4262:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".conApp {\n display: flex;\n}\n.conApp__editor {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n position: relative;\n}\n.conApp__editor__spinner {\n width: 100%;\n}\n.conApp__output {\n display: flex;\n flex: 1 1 1px;\n}\n.conApp__editorContent,\n.conApp__outputContent {\n height: 100%;\n flex: 1 1 1px;\n font-size: 14px;\n}\n.conApp__editorActions {\n position: absolute;\n z-index: 1000;\n top: 4px;\n right: 12px;\n line-height: 1;\n min-width: 60px;\n height: 32px;\n display: flex;\n align-items: center;\n background: rgba(255, 255, 255, 0.9);\n border-radius: 4px;\n padding: 0 4px;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);\n}\n.conApp__editorActions button {\n line-height: inherit;\n cursor: pointer;\n padding: 4px 6px;\n margin: 0 2px;\n}\n.conApp__editorActionButton {\n padding: 0 4px;\n appearance: none;\n border: none;\n background: none;\n}\n.conApp__editorActionButton--success {\n color: #017D73;\n}\n.conApp__resizer {\n z-index: 1000;\n}\n.conApp__autoComplete {\n position: absolute;\n left: -1000px;\n visibility: hidden;\n /* by pass any other element in ace and resize bar, but not modal popups */\n z-index: 1002;\n margin-top: 22px;\n}\n.conApp__settingsModal {\n min-width: 460px;\n}\n.conApp__requestProgressBarContainer {\n position: relative;\n z-index: 2000;\n}\n.conApp__tabsExtension {\n border-bottom: 1px solid #cccccc;\n}\n.ace_method,\n.ace_select_keyword {\n color: #c80a68 !important;\n}\n.ace_url,\n.ace_start_triple_quote,\n.ace_end_triple_quote {\n color: #00756c;\n}\n.conApp .euiButtonIcon--primary:not([class*='isDisabled']) {\n box-shadow: none !important;\n background-color: transparent !important;\n}\n",""])},4266:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"priority":10}}')},4305:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"data_autocomplete_rules":{"conditions":{"max_age":"7d","max_docs":1000,"max_size":"5gb"},"settings":{"__scope_link":"put_settings"},"mappings":{"__scope_link":"put_mapping"},"aliases":{"__template":{"NAME":{}}}}}}')},4373:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_type":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["HEAD"],"patterns":["{indices}/_mapping/{type}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}')},4401:e=>{"use strict";e.exports=JSON.parse('{"snapshot.verify_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_snapshot/{repository}/_verify"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},4471:e=>{"use strict";e.exports=JSON.parse('{"documentation":{"methods":[]}}')},4529:e=>{"use strict";e.exports=JSON.parse('{"cat.fielddata":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"h":[],"help":"__flag__","s":[],"v":"__flag__","fields":[]},"methods":["GET"],"patterns":["_cat/fielddata","_cat/fielddata/{fields}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}')},4531:e=>{"use strict";e.exports=JSON.parse('{"nodes.usage":{"url_params":{"timeout":""},"methods":["GET"],"patterns":["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],"url_components":{"nodes":null,"metrics":["_all","rest_actions"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}')},4585:e=>{"use strict";e.exports=URIError},4607:e=>{"use strict";e.exports=JSON.parse('{"indices.get_alias":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["GET"],"patterns":["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},4652:e=>{"use strict";e.exports=JSON.parse('{"indices.open":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"wait_for_active_shards":""},"methods":["POST"],"patterns":["{indices}/_open"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}')},4687:e=>{"use strict";e.exports=JSON.parse('{"indices.refresh":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["POST","GET"],"patterns":["_refresh","{indices}/_refresh"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}')},4710:e=>{"use strict";e.exports=JSON.parse('{"cat.thread_pool":{"url_params":{"format":"","size":["","k","m","g","t","p"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}')},4717:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".resize-bar {\n display: flex;\n height: 10px;\n background: #eee;\n margin-top: -5px;\n align-items: center;\n justify-content: center;\n}\n.resize-bar .dash {\n height: 1px;\n width: 16px;\n background: #666;\n margin-top: 1px;\n}\n",""])},4753:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"url_params":{"master_timeout":"","wait_for_completion":"__flag__"},"methods":["POST"],"patterns":["_snapshot/{repository}/{snapshot}/_restore"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},4774:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"url_params":{"timeout":"","master_timeout":""},"methods":["PUT","POST"],"patterns":["{indices}/_alias/{name}","{indices}/_aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},4836:e=>{"use strict";e.exports=JSON.parse('{"mget":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[]},"methods":["GET","POST"],"patterns":["_mget","{indices}/_mget"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"}}')},4844:e=>{"use strict";e.exports=JSON.parse('{"msearch":{"url_params":{"search_type":["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],"max_concurrent_searches":"","typed_keys":"__flag__","pre_filter_shard_size":"","max_concurrent_shard_requests":"","rest_total_hits_as_int":"__flag__","ccs_minimize_roundtrips":"__flag__"},"methods":["GET","POST"],"patterns":["_msearch","{indices}/_msearch"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"}}')},4845:e=>{"use strict";e.exports=JSON.parse('{"indices.flush_synced":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","none","all"]},"methods":["POST","GET"],"patterns":["_flush/synced","{indices}/_flush/synced"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}')},4880:e=>{"use strict";e.exports=JSON.parse('{"cat.indices":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"health":["green","yellow","red"],"help":"__flag__","pri":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__","include_unloaded_segments":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cat/indices","_cat/indices/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}')},4964:e=>{"use strict";e.exports=JSON.parse('{"scroll":{"url_params":{"scroll":"","scroll_id":"","rest_total_hits_as_int":"__flag__"},"methods":["GET","POST"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"}}')},5007:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,'.Console {\n position: relative;\n width: 100%;\n height: calc(100vh);\n display: flex;\n}\n.Console .ConsoleInput_wrapper {\n flex: 1;\n min-width: 0;\n}\n.Console .ConsoleOutput_wrapper {\n width: 50%;\n}\n.Console .resizer {\n position: relative;\n z-index: 999;\n width: 14px;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fafbfd;\n padding: 0;\n margin: 0;\n outline: none;\n border: none;\n cursor: col-resize;\n}\n.Console .resizer:hover {\n background-color: #cce1f0;\n}\n.Console .ant-tabs-content-right {\n padding-right: 50px;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab {\n padding: 12px 8px;\n writing-mode: vertical-lr;\n text-orientation: mixed;\n height: 60px;\n min-height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n letter-spacing: 1px;\n}\n.Console [aria-orientation="vertical"] {\n width: 50px;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-nav-wrap {\n width: 50px;\n}\n',""])},5080:e=>{"use strict";e.exports=JSON.parse('{"indices.put_template":{"url_params":{"include_type_name":"__flag__","order":"","create":"__flag__","master_timeout":"","flat_settings":"__flag__"},"methods":["PUT","POST"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},5328:e=>{"use strict";e.exports=JSON.parse('{"cluster.stats":{"url_params":{"flat_settings":"__flag__","timeout":""},"methods":["GET"],"patterns":["_cluster/stats","_cluster/stats/nodes/{nodes}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}')},5473:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".dropdownList {\n padding: auto;\n}\n.dropdownList .ant-btn {\n padding: 0 8px;\n border-color: #ebebeb;\n color: #666;\n}\n.dropdownList .ant-btn,\n.dropdownList .ant-btn.ant-popover-open,\n.dropdownList .ant-btn:hover {\n background-color: #e8f6fe;\n}\n.dropdownList .ant-btn[disabled],\n.dropdownList .ant-btn[disabled]:hover {\n background-color: #eee;\n color: #bbb;\n cursor: not-allowed;\n}\n.dropdownList .button {\n width: 100%;\n}\n.dropdownList .button .content {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n height: 100%;\n color: #666;\n}\n.dropdownList .button .content .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.dropdownList .button .content .label .icon {\n color: #101010;\n margin-right: 8px;\n}\n.dropdownList .button .content .down {\n font-size: 10px;\n}\n.dropdownList .button .content .close {\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n display: none;\n}\n.dropdownList .button .content .multipleItem {\n background-color: #fff;\n padding: 0 4px;\n}\n.dropdownList .button .content .multipleItem:not(:last-child) {\n margin-right: 8px;\n}\n.dropdownList .button.allowClear:hover .down {\n display: none;\n}\n.dropdownList .button.allowClear:hover .close {\n display: initial;\n}\n.popover {\n padding-top: 8px;\n}\n.popover .ant-popover-arrow {\n display: none;\n}\n.popover .ant-popover-inner-content {\n padding: 0;\n}\n",""])},5477:(e,t,n)=>{var r={"./clear_scroll.json":9594,"./cluster.health.json":8899,"./cluster.put_component_template.json":7985,"./cluster.put_settings.json":9862,"./cluster.reroute.json":3445,"./count.json":8636,"./indices.analyze.json":6752,"./indices.clone.json":9997,"./indices.create.json":6640,"./indices.delete_template.json":406,"./indices.exists_template.json":2071,"./indices.get_field_mapping.json":4266,"./indices.get_mapping.json":6193,"./indices.get_template.json":7131,"./indices.put_alias.json":7481,"./indices.put_settings.json":1675,"./indices.put_template.json":1864,"./indices.rollover.json":4305,"./indices.update_aliases.json":510,"./indices.validate_query.json":1185,"./snapshot.create.json":6453,"./snapshot.create_repository.json":2174,"./snapshot.restore.json":8513,"./update_by_query.json":9739};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5477},5552:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"url_params":{"index":""},"methods":["GET","POST"],"patterns":["_analyze","{indices}/_analyze"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}')},5695:e=>{"use strict";e.exports=JSON.parse('{"snapshot.delete_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["DELETE"],"patterns":["_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},5799:e=>{"use strict";e.exports=JSON.parse('{"indices.get_upgrade":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_upgrade","{indices}/_upgrade"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}')},5830:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},5837:e=>{"use strict";e.exports=JSON.parse('{"cat.master":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/master"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}')},5846:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw new RangeError(p[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return _(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+f(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=a)e=d(e/35);return d(r+36*e/(e+38))}function b(e){var t,n,r,o,i,l,c,u,p,f,_,m=[],g=e.length,w=0,b=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=w,l=1,c=a;o>=g&&h("invalid-input"),((u=(_=e.charCodeAt(o++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:a)>=a||u>d((s-w)/l))&&h("overflow"),w+=u*l,!(u<(p=c<=x?1:c>=x+26?26:c-x));c+=a)l>d(s/(f=a-p))&&h("overflow"),l*=f;x=v(w-i,t=m.length+1,0==i),d(w/t)>s-b&&h("overflow"),b+=d(w/t),w%=t,m.splice(w++,0,b)}return y(m)}function x(e){var t,n,r,o,i,l,c,u,p,_,m,y,b,x,O,j=[];for(y=(e=g(e)).length,t=128,n=0,i=72,l=0;l<y;++l)(m=e[l])<128&&j.push(f(m));for(r=o=j.length,o&&j.push("-");r<y;){for(c=s,l=0;l<y;++l)(m=e[l])>=t&&m<c&&(c=m);for(c-t>d((s-n)/(b=r+1))&&h("overflow"),n+=(c-t)*b,t=c,l=0;l<y;++l)if((m=e[l])<t&&++n>s&&h("overflow"),m==t){for(u=n,p=a;!(u<(_=p<=i?1:p>=i+26?26:p-i));p+=a)O=u-_,x=a-_,j.push(f(w(_+O%x,0))),u=d(O/x);j.push(f(w(u,0))),i=v(n,b,r==o),n=0,++r}++n,++t}return j.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:y},decode:b,encode:x,toASCII:function(e){return m(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return m(e,(function(e){return l.test(e)?b(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},5917:e=>{"use strict";e.exports=JSON.parse('{"search":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","ccs_minimize_roundtrips":"__flag__","default_operator":["AND","OR"],"df":"","explain":"__flag__","stored_fields":[],"docvalue_fields":[],"from":"0","ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"size":"10","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"suggest_field":"","suggest_mode":["missing","popular","always"],"suggest_size":"","suggest_text":"","timeout":"","track_scores":"__flag__","track_total_hits":"__flag__","allow_partial_search_results":"__flag__","typed_keys":"__flag__","version":"__flag__","seq_no_primary_term":"__flag__","request_cache":"__flag__","batched_reduce_size":"","max_concurrent_shard_requests":"","pre_filter_shard_size":"","rest_total_hits_as_int":"__flag__"},"methods":["GET","POST"],"patterns":["_search","{indices}/_search"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"}}')},5928:e=>{"use strict";e.exports=JSON.parse('{"nodes.info":{"url_params":{"flat_settings":"__flag__","timeout":""},"methods":["GET"],"patterns":["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],"url_components":{"nodes":null,"metrics":["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}')},5986:e=>{"use strict";e.exports=JSON.parse('{"rank_eval":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"search_type":["query_then_fetch","dfs_query_then_fetch"]},"methods":["GET","POST"],"patterns":["_rank_eval","{indices}/_rank_eval"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"}}')},6057:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".tab-title {\n display: flex;\n align-items: center;\n gap: 4px;\n height: 26px;\n}\n.tab-title .input-eidtor {\n border-radius: 0;\n border: none;\n border-right: none;\n padding-left: 1em;\n color: rgba(0, 0, 0, 0.65);\n height: 26px;\n line-height: 26px;\n background-color: #939ea0;\n color: #fff;\n}\n.tab-title .input-eidtor:focus {\n outline: none;\n}\n.tab-title .icon-cont {\n height: 100%;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n",""])},6095:e=>{"use strict";e.exports=JSON.parse('{"indices.delete":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["DELETE"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}')},6122:e=>{"use strict";e.exports=JSON.parse('{"cat.templates":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/templates","_cat/templates/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}')},6153:()=>{},6193:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"priority":10}}')},6277:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},6307:e=>{"use strict";e.exports=JSON.parse('{"indices.shard_stores":{"url_params":{"status":[],"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_shard_stores","{indices}/_shard_stores"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}')},6324:(e,t,n)=>{"use strict";var r=n(9632),o=n(1536),i=n(7893),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},_=function e(t,n,i,s,a,c,p,d,_,m,g,y,w,v,b,x,O,j){for(var E,k=t,S=j,T=0,N=!1;void 0!==(S=S.get(h))&&!N;){var R=S.get(t);if(T+=1,void 0!==R){if(R===T)throw new RangeError("Cyclic object value");N=!0}void 0===S.get(h)&&(T=0)}if("function"==typeof m?k=m(n,k):k instanceof Date?k=w(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?w(e):e}))),null===k){if(c)return _&&!x?_(n,f.encoder,O,"key",v):n;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(k))return _?[b(x?n:_(n,f.encoder,O,"key",v))+"="+b(_(k,f.encoder,O,"value",v))]:[b(n)+"="+b(String(k))];var C,P=[];if(void 0===k)return P;if("comma"===i&&l(k))x&&_&&(k=o.maybeMap(k,_)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(m))C=m;else{var A=Object.keys(k);C=g?A.sort(g):A}var L=d?n.replace(/\./g,"%2E"):n,q=s&&l(k)&&1===k.length?L+"[]":L;if(a&&l(k)&&0===k.length)return q+"[]";for(var I=0;I<C.length;++I){var D=C[I],M="object"==typeof D&&void 0!==D.value?D.value:k[D];if(!p||null!==M){var F=y&&d?D.replace(/\./g,"%2E"):D,U=l(k)?"function"==typeof i?i(q,F):q:q+(y?"."+F:"["+F+"]");j.set(t,T);var z=r();z.set(h,j),u(P,e(M,U,i,s,a,c,p,d,"comma"===i&&x&&l(k)?null:_,m,g,y,w,v,b,x,O,z))}}return P};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var p=[];if("object"!=typeof o||null===o)return"";var d=a[c.arrayFormat],h="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var m=r(),g=0;g<n.length;++g){var y=n[g];c.skipNulls&&null===o[y]||u(p,_(o[y],y,d,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var w=p.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),w.length>0?v+w:""}},6453:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":{"__one_of":[true,false]},"partial":{"__one_of":[true,false]}}}}')},6461:e=>{"use strict";e.exports=JSON.parse('{"cluster.get_settings":{"url_params":{"flat_settings":"__flag__","master_timeout":"","timeout":"","include_defaults":"__flag__"},"methods":["GET"],"patterns":["_cluster/settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}')},6465:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6472:e=>{"use strict";e.exports=JSON.parse('{"indices.put_mapping":{"url_params":{"include_type_name":"__flag__","timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["PUT","POST"],"patterns":["{indices}/_mapping"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}')},6495:e=>{"use strict";e.exports=JSON.parse('{"cat.repositories":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/repositories"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}')},6502:e=>{"use strict";e.exports=JSON.parse('{"ingest.get_pipeline":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_ingest/pipeline","_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}')},6529:e=>{"use strict";e.exports=JSON.parse('{"ingest.delete_pipeline":{"url_params":{"master_timeout":"","timeout":""},"methods":["DELETE"],"patterns":["_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}')},6543:e=>{"use strict";e.exports=JSON.parse('{"search_shards":{"url_params":{"preference":"random","routing":"","local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET","POST"],"patterns":["_search_shards","{indices}/_search_shards"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"}}')},6616:e=>{"use strict";e.exports=JSON.parse('{"cat.nodes":{"url_params":{"bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"format":"","full_id":"__flag__","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/nodes"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}')},6640:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"data_autocomplete_rules":{"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')},6644:e=>{"use strict";e.exports=JSON.parse('{"update":{"url_params":{"wait_for_active_shards":"","_source":[],"_source_excludes":[],"_source_includes":[],"lang":"painless","refresh":["true","false","wait_for"],"retry_on_conflict":"0","routing":"","timeout":"","if_seq_no":"","if_primary_term":""},"methods":["POST"],"patterns":["{indices}/_update/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"}}')},6752:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"data_autocomplete_rules":{"text":[],"field":"{field}","analyzer":"","tokenizer":"","char_filter":[],"filter":[],"explain":{"__one_of":[false,true]},"attributes":[]}}}')},6808:e=>{"use strict";e.exports=JSON.parse('{"cat.recovery":{"url_params":{"format":"","active_only":"__flag__","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"detailed":"__flag__","h":[],"help":"__flag__","index":[],"s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/recovery","_cat/recovery/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}')},6871:(e,t,n)=>{var r=n(5473);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7110:e=>{"use strict";e.exports=JSON.parse('{"indices.flush":{"url_params":{"force":"__flag__","wait_if_ongoing":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["POST","GET"],"patterns":["_flush","{indices}/_flush"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}')},7131:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"patterns":["_template","_template/{template}"]}}')},7277:e=>{"use strict";e.exports=JSON.parse('{"cat.plugins":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/plugins"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}')},7299:e=>{"use strict";e.exports=JSON.parse('{"index":{"url_params":{"wait_for_active_shards":"","op_type":["index","create"],"refresh":["true","false","wait_for"],"routing":"","timeout":"","version":"","version_type":["internal","external","external_gte"],"if_seq_no":"","if_primary_term":"","pipeline":""},"methods":["PUT","POST"],"patterns":["{indices}/_doc/{id}","{indices}/_doc"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"}}')},7335:e=>{"use strict";e.exports=JSON.parse('{"get_script_context":{"methods":["GET"],"patterns":["_script_context"]}}')},7369:e=>{"use strict";e.exports=JSON.parse('{"cat.segments":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/segments","_cat/segments/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}')},7379:e=>{"use strict";e.exports=TypeError},7388:e=>{"use strict";e.exports=SyntaxError},7401:e=>{"use strict";e.exports=JSON.parse('{"cat.health":{"url_params":{"format":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"ts":"__flag__","v":"__flag__"},"methods":["GET"],"patterns":["_cat/health"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}')},7408:e=>{"use strict";e.exports=JSON.parse('{"cat.snapshots":{"url_params":{"format":"","ignore_unavailable":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/snapshots","_cat/snapshots/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}')},7425:e=>{"use strict";e.exports=JSON.parse('{"info":{"methods":["GET"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},7453:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".fullscreen {\n position: fixed;\n width: 100%;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 100;\n}\n@keyframes slideInUp {\n from {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.slideInUp {\n animation-name: slideInUp;\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);\n}\n",""])},7481:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"data_autocomplete_rules":{"filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"}}}')},7517:(e,t,n)=>{"use strict";var r=n(3790),o=n(7388),i=n(7379),s=n(1325);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===l&&p?p.writable:!l});else{if(!u&&(a||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},7533:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(3583);e.exports=i.call(r,o)},7570:e=>{"use strict";e.exports=RangeError},7598:(e,t,n)=>{var r=n(1908);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7630:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create_repository":{"url_params":{"master_timeout":"","timeout":"","verify":"__flag__"},"methods":["PUT","POST"],"patterns":["_snapshot/{repository}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7646:e=>{"use strict";e.exports=JSON.parse('{"cluster.state":{"url_params":{"local":"__flag__","master_timeout":"","flat_settings":"__flag__","wait_for_metadata_version":"","wait_for_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],"url_components":{"metrics":["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],"indices":null},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}')},7661:e=>{"use strict";e.exports=JSON.parse('{"ingest.put_pipeline":{"url_params":{"master_timeout":"","timeout":""},"methods":["PUT"],"patterns":["_ingest/pipeline/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}')},7691:e=>{"use strict";e.exports=JSON.parse('{"snapshot.get":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__","verbose":"__flag__"},"methods":["GET"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7704:e=>{"use strict";e.exports=JSON.parse('{"indices.upgrade":{"url_params":{"allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"ignore_unavailable":"__flag__","wait_for_completion":"__flag__","only_ancient_segments":"__flag__"},"methods":["POST"],"patterns":["_upgrade","{indices}/_upgrade"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}')},7787:e=>{"use strict";e.exports=JSON.parse('{"get_script":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7795:e=>{"use strict";e.exports=JSON.parse('{"snapshot.status":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__"},"methods":["GET"],"patterns":["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},7877:(e,t,n)=>{"use strict";var r=n(6324),o=n(2650),i=n(7893);e.exports={formats:i,parse:o,stringify:r}},7888:e=>{"use strict";e.exports=JSON.parse('{"cat.help":{"url_params":{"help":"__flag__","s":[]},"methods":["GET"],"patterns":["_cat"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}')},7893:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},7944:e=>{"use strict";e.exports=JSON.parse('{"delete_script":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7976:e=>{"use strict";e.exports=JSON.parse('{"indices.get":{"url_params":{"include_type_name":"__flag__","local":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","include_defaults":"__flag__","master_timeout":""},"methods":["GET"],"patterns":["{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}')},7978:e=>{"use strict";e.exports=JSON.parse('{"mtermvectors":{"url_params":{"ids":[],"term_statistics":"__flag__","field_statistics":"__flag__","fields":[],"offsets":"__flag__","positions":"__flag__","payloads":"__flag__","preference":"random","routing":"","realtime":"__flag__","version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET","POST"],"patterns":["_mtermvectors","{indices}/_mtermvectors"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"}}')},7985:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_component_template":{"data_autocomplete_rules":{"template":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}},"mappings":{"__scope_link":"put_mapping"}},"_meta":{},"version":0,"allow_auto_create":false}}}')},7989:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".container {\n display: flex;\n overflow: hidden;\n}\n.container .group {\n border-right: 1px solid #ebebeb;\n width: 120px;\n}\n.container .group .item {\n padding: 0 8px 0 16px;\n height: 32px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: #666;\n gap: 8px;\n cursor: pointer;\n}\n.container .group .item.selected,\n.container .group .item:hover {\n background-color: #e8f6fe;\n}\n.container .group .item .label {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.container .group .item .icon {\n font-size: 10px;\n}\n.container .content {\n flex: 1;\n padding: 0px 16px;\n overflow: hidden;\n}\n.container .content .search {\n margin-top: 16px;\n}\n.container .content .tools {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n}\n.container .content .tools .result {\n color: #999;\n font-size: 12px;\n}\n.container .content .tools .actions {\n display: flex;\n justify-content: space-between;\n gap: 12px;\n color: #101010;\n font-size: 14px;\n align-items: center;\n}\n.container .content .tools .actions .ant-checkbox-inner {\n width: 14px;\n height: 14px;\n border-color: rgba(0, 0, 0, 0.65);\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-checked .ant-checkbox-inner:after {\n top: 5px;\n left: 2px;\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n transition: all 0.3s;\n}\n.container .content .listWrapper {\n margin: 12px -6px 0;\n}\n.container .content .list .item {\n height: 32px;\n color: #666;\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 6px;\n gap: 8px;\n}\n.container .content .list .item.selected,\n.container .content .list .item:hover {\n background-color: #e8f6fe;\n}\n.container .content .list .item .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.container .content .list .item .tag {\n color: #999;\n}\n.container .content .footerWrapper {\n margin: 0px -16px 0;\n}\n.container .content .footer {\n height: 40px;\n border-top: 1px solid #ebebeb;\n padding: 0 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n}\n.container .content .footer .pager .pageNum {\n margin: 0 12px;\n}\n.container .content .footer .pager .icon {\n color: #007fff;\n cursor: pointer;\n}\n.container .content .footer .pager .icon.disabled {\n color: #c1c1c1;\n pointer-events: none;\n}\n.container .content .footer .actions {\n font-size: 12px;\n}\n.filterPopover .ant-popover-title {\n border: 0;\n}\n.filterPopover .ant-popover-inner-content {\n padding: 16px;\n}\n.sorter {\n width: 250px;\n}\n.sorter .title {\n color: #333;\n font-weight: 600;\n}\n.sorter .form {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n}\n.sorter .actions {\n display: flex;\n justify-content: right;\n margin-top: 18px;\n}\n.filters {\n width: 250px;\n}\n.filters .title {\n color: #333;\n font-weight: 600;\n margin-bottom: 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.filters .title .clear {\n color: #007fff;\n font-size: 12px;\n cursor: pointer;\n}\n.filters .content {\n margin-bottom: 16px;\n}\n.filters .content .label {\n color: #999;\n}\n.filters .content .options {\n max-height: 150px;\n overflow-y: auto;\n}\n.filters .content .options .option {\n display: flex;\n justify-content: space-between;\n padding: 8px 0 0;\n}\n.filters .content:last-child {\n margin-bottom: 0;\n}\n",""])},8090:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"methods":["DELETE"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"}}')},8173:e=>{"use strict";e.exports=JSON.parse('{"cat.aliases":{"url_params":{"format":"","local":"__flag__","h":[],"help":"__flag__","s":[],"v":"__flag__","expand_wildcards":["open","closed","hidden","none","all"]},"methods":["GET"],"patterns":["_cat/aliases","_cat/aliases/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}')},8203:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"url_params":{"analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","from":"0","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","conflicts":["abort","proceed"],"expand_wildcards":["open","closed","hidden","none","all"],"lenient":"__flag__","pipeline":"none","preference":"random","q":"","routing":[],"scroll":"","search_type":["query_then_fetch","dfs_query_then_fetch"],"search_timeout":"","size":"","max_docs":"all documents","sort":[],"_source":[],"_source_excludes":[],"_source_includes":[],"terminate_after":"","stats":[],"version":"__flag__","version_type":"__flag__","request_cache":"__flag__","refresh":"__flag__","timeout":"","wait_for_active_shards":"","scroll_size":"","wait_for_completion":"__flag__","requests_per_second":"","slices":""},"methods":["POST"],"patterns":["{indices}/_update_by_query"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"}}')},8263:e=>{"use strict";e.exports=JSON.parse('{"indices.stats":{"url_params":{"completion_fields":[],"fielddata_fields":[],"fields":[],"groups":[],"level":["cluster","indices","shards"],"types":[],"include_segment_file_sizes":"__flag__","include_unloaded_segments":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"forbid_closed_indices":"__flag__"},"methods":["GET"],"patterns":["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],"url_components":{"metrics":["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],"indices":null},"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}')},8307:e=>{"use strict";e.exports=JSON.parse('{"tasks.get":{"url_params":{"wait_for_completion":"__flag__","timeout":""},"methods":["GET"],"patterns":["_tasks/{task_id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},8397:e=>{"use strict";e.exports=JSON.parse('{"nodes.hot_threads":{"url_params":{"interval":"","snapshots":"10","threads":"3","ignore_idle_threads":"__flag__","type":["cpu","wait","block"],"timeout":""},"methods":["GET"],"patterns":["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}')},8411:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_alias":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["HEAD"],"patterns":["_alias/{name}","{indices}/_alias/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}')},8422:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"url_params":{"flat_settings":"__flag__","master_timeout":"","timeout":""},"methods":["PUT"],"patterns":["_cluster/settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}')},8472:e=>{"use strict";e.exports=JSON.parse('{"reindex_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_reindex/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"}}')},8479:e=>{"use strict";e.exports=JSON.parse('{"tasks.cancel":{"url_params":{"nodes":[],"actions":[],"parent_task_id":""},"methods":["POST"],"patterns":["_tasks/_cancel","_tasks/{task_id}/_cancel"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},8513:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":false,"rename_pattern":"index_(.+)","rename_replacement":"restored_index_$1"}}}')},8534:(e,t,n)=>{"use strict";var r,o=n(9183),i=n(1101),s=n(7570),a=n(9898),l=n(7388),c=n(7379),u=n(4585),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},_=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,m=n(3808)(),g=n(757)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),w={},v="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":_,"%TypedArray%":v,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));b["%Error.prototype%"]=x}var O=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return b[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=n(3583),k=n(7533),S=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),N=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,L=function(e,t){var n,r=e;if(k(j,r)&&(r="%"+(n=j[r])[0]+"%"),k(b,r)){var o=b[r];if(o===w&&(o=O(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=R(e,0,1),n=R(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,P,(function(e,t,n,o){r[r.length]=n?N(o,A,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=L("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],T(n,S([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],_=R(h,0,1),m=R(h,-1);if(('"'===_||"'"===_||"`"===_||'"'===m||"'"===m||"`"===m)&&_!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),k(b,i="%"+(r+="."+h)+"%"))s=b[i];else if(null!=s){if(!(h in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=k(s,h),s=s[h];d&&!a&&(b[i]=s)}}return s}},8555:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"url_params":{"master_timeout":"","timeout":"","preserve_existing":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__"},"methods":["PUT"],"patterns":["_settings","{indices}/_settings"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}')},8560:e=>{"use strict";e.exports=JSON.parse('{"indices.close":{"url_params":{"timeout":"","master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"wait_for_active_shards":""},"methods":["POST"],"patterns":["{indices}/_close"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}')},8566:e=>{"use strict";e.exports=JSON.parse('{"indices.segments":{"url_params":{"ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"verbose":"__flag__"},"methods":["GET"],"patterns":["_segments","{indices}/_segments"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}')},8569:(e,t,n)=>{var r,o,i={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),a=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}((function(e){return document.querySelector(e)})),l=null,c=0,u=[],p=n(3716);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(y(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(y(r.parts[s],t));i[r.id]={id:r.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function h(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function _(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var s=c++;n=l||(l=m(t)),r=b.bind(null,n,s,!1),o=b.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=O.bind(null,n,t),o=function(){_(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=x.bind(null,n),o=function(){_(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];(a=i[s.id]).refs--,r.push(a)}for(e&&d(f(e,t),t),o=0;o<r.length;o++){var a;if(0===(a=r[o]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var w,v=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function O(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},8580:e=>{"use strict";e.exports=JSON.parse('{"put_script":{"url_params":{"timeout":"","master_timeout":"","context":""},"methods":["PUT","POST"],"patterns":["_scripts/{id}","_scripts/{id}/{context}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},8623:e=>{"use strict";e.exports=JSON.parse('{"get_script_languages":{"methods":["GET"],"patterns":["_script_language"]}}')},8636:e=>{"use strict";e.exports=JSON.parse('{"count":{"priority":10,"data_autocomplete_rules":{"query":{}}}}')},8688:e=>{"use strict";e.exports=JSON.parse('{"indices.clear_cache":{"url_params":{"fielddata":"__flag__","fields":[],"query":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"index":[],"request":"__flag__"},"methods":["POST"],"patterns":["_cache/clear","{indices}/_cache/clear"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}')},8769:(e,t,n)=>{var r=n(3727);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},8899:e=>{"use strict";e.exports=JSON.parse('{"cluster.health":{"url_params":{"expand_wildcards":["open","closed","hidden","none","all"],"level":["cluster","indices","shards"],"local":"__flag__","master_timeout":"","timeout":"","wait_for_active_shards":"","wait_for_nodes":"","wait_for_events":["immediate","urgent","high","normal","low","languid"],"wait_for_no_relocating_shards":"__flag__","wait_for_no_initializing_shards":"__flag__","wait_for_status":["green","yellow","red"]}}}')},8966:e=>{"use strict";e.exports=JSON.parse('{"cat.shards":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/shards","_cat/shards/{indices}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}')},8981:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"url_params":{"master_timeout":"","wait_for_completion":"__flag__"},"methods":["PUT","POST"],"patterns":["_snapshot/{repository}/{snapshot}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},8985:e=>{"use strict";e.exports=JSON.parse('{"update_by_query_rethrottle":{"url_params":{"requests_per_second":""},"methods":["POST"],"patterns":["_update_by_query/{task_id}/_rethrottle"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"}}')},9002:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"url_params":{"include_type_name":"__flag__","include_defaults":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"local":"__flag__"},"methods":["GET"],"patterns":["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}')},9008:e=>{"use strict";e.exports=JSON.parse('{"indices.get_settings":{"url_params":{"master_timeout":"","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"flat_settings":"__flag__","local":"__flag__","include_defaults":"__flag__"},"methods":["GET"],"patterns":["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}')},9089:e=>{"use strict";e.exports=JSON.parse('{"cat.allocation":{"url_params":{"format":"","bytes":["b","k","kb","m","mb","g","gb","t","tb","p","pb"],"local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/allocation","_cat/allocation/{nodes}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}')},9123:e=>{"use strict";e.exports=JSON.parse('{"ingest.processor_grok":{"methods":["GET"],"patterns":["_ingest/processor/grok"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}')},9153:e=>{"use strict";e.exports=JSON.parse('{"exists":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["HEAD"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},9155:t=>{"use strict";t.exports=e},9183:e=>{"use strict";e.exports=Error},9211:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"url_params":{"include_type_name":"__flag__","flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_template","_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},9252:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"url_params":{"flat_settings":"__flag__","master_timeout":"","local":"__flag__"},"methods":["HEAD"],"patterns":["_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}')},9321:e=>{"use strict";e.exports=JSON.parse('{"indices.shrink":{"url_params":{"copy_settings":"__flag__","timeout":"","master_timeout":"","wait_for_active_shards":""},"methods":["PUT","POST"],"patterns":["{indices}/_shrink/{target}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}')},9340:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".request-status-bar {\n height: 100%;\n color: #333;\n}\n.request-status-bar .bar-item {\n height: 100%;\n}\n.request-status-bar .bar-item .base-info {\n display: flex;\n font-size: 12px;\n align-items: center;\n margin-top: 2px;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item {\n margin: 0 12px;\n position: relative;\n flex: 0 0 auto;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item.health {\n padding-right: 14px;\n}\n.request-status-bar .bar-item .status_info {\n display: flex;\n font-size: 12px;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .status_info .info-item {\n margin: 0 12px;\n color: #333;\n}\n",""])},9345:e=>{"use strict";e.exports=JSON.parse('{"cat.nodeattrs":{"url_params":{"format":"","local":"__flag__","master_timeout":"","h":[],"help":"__flag__","s":[],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/nodeattrs"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}')},9367:e=>{"use strict";e.exports=JSON.parse('{"get":{"url_params":{"stored_fields":[],"preference":"random","realtime":"__flag__","refresh":"__flag__","routing":"","_source":[],"_source_excludes":[],"_source_includes":[],"version":"","version_type":["internal","external","external_gte","force"]},"methods":["GET"],"patterns":["{indices}/_doc/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"}}')},9396:e=>{"use strict";e.exports=JSON.parse('{"snapshot.cleanup_repository":{"url_params":{"master_timeout":"","timeout":""},"methods":["POST"],"patterns":["_snapshot/{repository}/_cleanup"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}')},9514:e=>{"use strict";e.exports=t},9594:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"data_autocomplete_rules":{"scroll_id":""}}}')},9632:(e,t,n)=>{"use strict";var r=n(8534),o=n(2787),i=n(2864),s=n(7379),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=_(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!_(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):l?(t||(t=new l),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},9655:(e,t,n)=>{var r=n(4717);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9683:e=>{"use strict";e.exports=JSON.parse('{"cat.tasks":{"url_params":{"format":"","node_id":[],"actions":[],"detailed":"__flag__","parent_task":"","h":[],"help":"__flag__","s":[],"time":["d","h","m","s","ms","micros","nanos"],"v":"__flag__"},"methods":["GET"],"patterns":["_cat/tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}')},9739:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"data_autocomplete_rules":{"conflicts":"","query":{"__scope_link":"GLOBAL.query"},"script":{"__template":{"source":"","lang":"painless"},"__scope_link":"GLOBAL.script"}}}}')},9777:e=>{"use strict";e.exports=JSON.parse('{"cluster.pending_tasks":{"url_params":{"local":"__flag__","master_timeout":""},"methods":["GET"],"patterns":["_cluster/pending_tasks"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}')},9788:e=>{"use strict";e.exports=JSON.parse('{"count":{"url_params":{"ignore_unavailable":"__flag__","ignore_throttled":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"min_score":"","preference":"random","routing":[],"q":"","analyzer":"","analyze_wildcard":"__flag__","default_operator":["AND","OR"],"df":"","lenient":"__flag__","terminate_after":""},"methods":["POST","GET"],"patterns":["_count","{indices}/_count"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"}}')},9797:e=>{"use strict";e.exports=JSON.parse('{"cluster.delete_component_template":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_component_template/{name}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}')},9862:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"data_autocomplete_rules":{"persistent":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{"_ip":"","_name":"","_host":"","_id":""},"allocation.include":{"_ip":"","_name":"","_host":"","_id":""},"allocation.require":{"_ip":"","_name":"","_host":"","_id":""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{"values":[]}},"allocation.allow_rebalance":{"__one_of":["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{"__one_of":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},"transient":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{"_ip":"","_name":"","_host":"","_id":""},"allocation.include":{"_ip":"","_name":"","_host":"","_id":""},"allocation.require":{"_ip":"","_name":"","_host":"","_id":""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{"values":[]}},"allocation.allow_rebalance":{"__one_of":["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{"__one_of":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}')},9889:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"url_params":{"include_type_name":"__flag__","ignore_unavailable":"__flag__","allow_no_indices":"__flag__","expand_wildcards":["open","closed","hidden","none","all"],"master_timeout":"","local":"__flag__"},"methods":["GET"],"patterns":["_mapping","{indices}/_mapping"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}')},9891:(e,t,n)=>{var r=n(6057);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9898:e=>{"use strict";e.exports=ReferenceError},9997:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"data_autocomplete_rules":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})();var i={};return(()=>{"use strict";o.r(i),o.d(i,{default:()=>Es});const e=require("react/jsx-runtime");var t=o(9155),n=o.n(t);const r=require("re-resizable"),s=require("react-intl"),a=require("@ant-design/icons");var l=o.n(a);const c=require("antd/lib/button");var u=o.n(c);require("antd/lib/button/style/index.js");const p=require("antd/lib/popover");var d=o.n(p);require("antd/lib/popover/style/index.js");const f=require("lodash");var h=o.n(f);const _=require("antd/lib/checkbox");var m=o.n(_);require("antd/lib/checkbox/style/index.js");const g=require("antd/lib/divider");var y=o.n(g);require("antd/lib/divider/style/index.js");const w=require("antd/lib/input");var v=o.n(w);require("antd/lib/input/style/index.js");const b=require("antd/lib/select");var x=o.n(b);require("antd/lib/select/style/index.js");const O=o.p+"fd9163882e4a2722477f810fd0c422c7.svg";o(2119);const j=function(t){var n=t.loading,r=void 0===n||n,o=t.currentLocales;return r?(0,e.jsxs)("div",{className:"loading",children:[(0,e.jsx)("img",{src:O}),(0,e.jsx)("div",{className:"tips",children:o["dropdownlist.loading"]})]}):null};o(8769);const E=function(t){var n=t.currentLocales,r=t.failed;return void 0===r||r?(0,e.jsxs)("div",{className:"error",children:[(0,e.jsx)(a.CloseCircleOutlined,{}),(0,e.jsx)("div",{className:"tips",children:n["dropdownlist.loading.failed"]})]}):null},k=require("antd/lib/empty");var S=o.n(k);require("antd/lib/empty/style/index.js"),o(7598);const T=function(t){return(0,e.jsx)("div",{className:"empty",children:(0,e.jsx)(S(),{image:S().PRESENTED_IMAGE_SIMPLE})})};o(1871);var N=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const R=function(n){var r=n.visible,o=n.value,i=n.onChange,s=n.loading,l=void 0!==s&&s,c=n.failed,p=void 0!==c&&c,h=n.rowKey,_=n.renderItem,g=n.renderTag,w=n.renderEmptyList,b=n.onSearchChange,O=n.searchValue,k=n.sorterOptions,S=n.pagination,R=n.data,C=n.sorter,P=n.onSorterChange,A=n.filters,L=n.onFiltersChange,q=n.filterOptions,I=n.groups,D=n.onGroupsChange,M=n.groupOptions,F=n.currentLocales,U=n.showGroup,z=n.onShowGroupChange,B=n.isMultiple,G=n.extraData,J=void 0===G?[]:G,$=n.searchPlaceholder,V=n.onRefresh,W=n.actions,H=void 0===W?[]:W,K=(0,t.useState)([]),Q=K[0],Y=K[1],X=(0,t.useState)(!1),Z=X[0],ee=X[1],te=(0,t.useRef)(null),ne=(0,t.useCallback)((function(){setTimeout((function(){z(!1),b()}),500)}),[z,b]),re=function(e,t){var n=N([],Q,!0);n[t]=e,Y(n)};(0,t.useEffect)((function(){te.current&&r&&te.current.focus()}),[r,te]),(0,t.useEffect)((function(){r||ne()}),[r,ne]),(0,t.useEffect)((function(){Y(C)}),[C]);var oe=S.currentPage,ie=S.pageSize,se=S.total,ae=S.pages,le=(0,t.useMemo)((function(){if(void 0===I[0])return[];var e=M.find((function(e){return e.value===I[0].value}));return(null==e?void 0:e.list)||[]}),[M,I]),ce=(0,t.useMemo)((function(){return!!B&&(B?0!==(null==o?void 0:o.length)&&(!!R.every((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))||!!R.some((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))&&"indeterminate"):void 0)}),[B,JSON.stringify(R),JSON.stringify(o)]),ue=function(t,n){return U&&0!==t.length?(0,e.jsx)("div",{className:"group",children:t.map((function(t){var r;return(0,e.jsxs)("div",{className:"".concat("item"," ").concat((null===(r=I[n])||void 0===r?void 0:r.value)===t.value?"selected":""),onClick:function(){return function(e,t){var n,r=N([],I,!0);(null===(n=r[e])||void 0===n?void 0:n.value)===t.value?r.splice(e,1):r[e]={key:t.key,value:t.value},r.splice(e+1,r.length),D(r)}(n,t)},title:t.label,children:[(0,e.jsx)("span",{className:"label",children:t.label}),(0,e.jsx)(a.RightOutlined,{className:"icon"})]},t.value)}))}):null},pe=H.concat(V?[(0,e.jsx)("a",{disabled:l,onClick:function(){l||V()},children:F["dropdownlist.refresh"]})]:[]);return(0,e.jsxs)("div",{className:"container",children:[ue(M,0),ue(le,1),(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)(v(),{ref:te,value:O,onChange:function(e){l||function(e){b(e.trim())}(e.target.value)},allowClear:!0,className:"search",placeholder:$||F["dropdownlist.search.placeholder"]}),(0,e.jsxs)("div",{className:"tools",children:[(0,e.jsxs)("div",{className:"result",children:[F["dropdownlist.result.found"]," ",!1===S?R.length:se," ",F["dropdownlist.result.records"]]}),(0,e.jsxs)("div",{className:"actions",children:[k.length>0&&(0,e.jsx)(d(),{open:Z,onOpenChange:ee,overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"sorter",children:[(0,e.jsx)("div",{className:"title",children:F["dropdownlist.sort.by"]}),(0,e.jsxs)("div",{className:"form",children:[(0,e.jsx)(x(),{value:Q[0],style:{width:"65%"},onChange:function(e){return re(e,0)},children:k.map((function(t){return(0,e.jsx)(x().Option,{value:t.key,children:t.label},t.key)}))}),(0,e.jsxs)(x(),{value:Q[1],style:{width:"35%"},onChange:function(e){return re(e,1)},children:[(0,e.jsx)(x().Option,{value:"desc",children:F["dropdownlist.sort.by.desc"]}),(0,e.jsx)(x().Option,{value:"asc",children:F["dropdownlist.sort.by.asc"]})]})]}),(0,e.jsxs)("div",{className:"actions",children:[(0,e.jsx)(u(),{type:"link",onClick:function(){P([]),ee(!1)},children:F["dropdownlist.sort.by.clear"]}),(0,e.jsx)(u(),{style:{width:80},type:"primary",onClick:function(){P(Q),ee(!1)},children:F["dropdownlist.apply"]})]})]}),children:(0,e.jsx)(a.SortAscendingOutlined,{style:{cursor:"pointer"}})}),q.length>0&&(0,e.jsx)(d(),{overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"filters",children:[(0,e.jsxs)("div",{className:"title",children:[F["dropdownlist.filters"],(0,e.jsx)(ReloadOutlined,{className:"clear",onClick:function(){L({})}})]}),q.map((function(t){return(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)("div",{className:"label",children:t.label}),(0,e.jsx)("div",{className:"options",children:(t.list||[]).map((function(n){return(0,e.jsxs)("div",{className:"option",children:[(0,e.jsx)(m(),{onChange:function(e){return function(e,t,n){var r=(0,f.cloneDeep)(A),o=r[e]||[],i=o.indexOf(t);-1===i?n&&o.push(t):n||o.splice(i,1),r[e]=o,L(r)}(t.key,n.value,e.target.checked)},checked:-1!==(A[t.key]||[]).indexOf(n.value),children:n.label||n.value}),void 0!==n.count&&(0,e.jsx)("div",{children:n.count})]},n.value)}))})]},t.key)}))]}),children:(0,e.jsx)(FilterOutlined,{style:{cursor:"pointer"}})}),M.length>0&&(0,e.jsx)(LayoutOutlined,{style:{cursor:"pointer"},onClick:function(){z(!U)}}),B&&(0,e.jsx)(m(),{indeterminate:"indeterminate"===ce,onChange:function(e){return t=e.target.checked,n=(0,f.cloneDeep)(o||[]),R.forEach((function(e){var r=n.findIndex((function(t){return t[h]===e[h]}));-1===r&&t?n.push(e):-1===r||t||n.splice(r,1)})),void i(n);var t,n},checked:!0===ce})]})]}),(0,e.jsx)("div",{className:"listWrapper",children:(0,e.jsx)("div",{className:"list",style:{maxHeight:"".concat(32*(ie+J.length),"px")},children:l?(0,e.jsx)(j,{currentLocales:F}):p?(0,e.jsx)(E,{currentLocales:F}):0===R.length&&0===J.length?w?w():(0,e.jsx)(T,{}):J.concat(R).map((function(t){var n=B?-1!==(o||[]).findIndex((function(e){return e[h]===t[h]})):(null==o?void 0:o[h])===t[h];return(0,e.jsxs)("div",{className:"".concat("item"," ").concat(n?"selected":""),onClick:function(){return function(e){if(B){var t=(0,f.cloneDeep)(o)||[],n=t.findIndex((function(t){return t[h]===e[h]}));-1===n?t.push(e):t.splice(n,1),i(t)}else i(e)}(t)},children:[(0,e.jsx)("div",{className:"label",children:_?_(t):t[h]}),g&&!U?(0,e.jsx)("div",{className:"tag",children:_?g(t):t[h]}):null,n&&(0,e.jsx)(a.CheckOutlined,{})]},t[h])}))})}),!1===S?null:(0,e.jsx)("div",{className:"footerWrapper",children:(0,e.jsxs)("div",{className:"footer",children:[(0,e.jsx)("div",{className:"actions",children:pe.map((function(n,r){return(0,e.jsxs)(t.Fragment,{children:[n,r!==pe.length-1&&(0,e.jsx)(y(),{type:"vertical"})]},r)}))}),(0,e.jsxs)("div",{className:"pager",children:[(0,e.jsx)(a.LeftOutlined,{onClick:function(){return S.onChange(oe-1)},className:"".concat("icon"," ").concat(oe<=1?"disabled":"")}),(0,e.jsxs)("span",{className:"pageNum",children:[oe,"/",ae]}),(0,e.jsx)(a.RightOutlined,{onClick:function(){return S.onChange(oe+1)},className:"".concat("icon"," ").concat(oe>=ae?"disabled":"")})]})]})})]})]})};var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};const P=function(n){var r=n.visible,o=n.data,i=void 0===o?[]:o,s=n.pagination,a=n.searchKey,l=n.searchValue,c=n.sorter,u=n.filters,p=n.groups,d=(0,t.useState)(),h=d[0],_=d[1],m=(0,t.useMemo)((function(){var e=(0,f.cloneDeep)(i);a&&l&&(e=e.filter((function(e){return-1!=="".concat(e[a]||"").toLowerCase().indexOf(l.toLowerCase())}))),p.filter((function(e){return void 0!==e.value&&""!==e.value&&!!e.key})).forEach((function(t){e=e.filter((function(e){return!e.hasOwnProperty(t.key)||e[t.key]===t.value}))}));var t=Object.keys(u);if(t.length>0&&t.filter((function(e){return 0!==(u[e]||[]).length})).forEach((function(t){e=e.filter((function(e){return-1!==u[t].indexOf(e[t])}))})),c.length>=2&&c[0]&&c[1]){var n=c[0],r=c[1];e=e.sort((function(e,t){return"string"==typeof e[n]?r===M?t[n].localeCompare(e[n]):e[n].localeCompare(t[n]):isNaN(e[n])?0:r===M?t[n]-e[n]:e[n]-t[n]}))}return e}),[JSON.stringify(i),a,l,JSON.stringify(c),JSON.stringify(u),JSON.stringify(p)]);(0,t.useEffect)((function(){if(!1!==s){var e=m.length,t=(null==s?void 0:s.pageSize)||D;_({currentPage:e?1:0,pageSize:t,total:e,pages:Math.ceil(e/t)})}else _(!1)}),[m,s]);var g=(0,t.useMemo)((function(){if(!h)return m;var e=h.currentPage,t=h.pageSize;return m.filter((function(n,r){return r>=(e-1)*t&&r<e*t}))}),[m,h]);return(0,e.jsx)(R,C({},n,{visible:r,data:g,pagination:!1!==h&&C(C({},h),{onChange:function(e){var t=h.pages;e<0||e>t||_(C(C({},h),{currentPage:e}))}})}))};var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)};const L=function(t){var n=t.visible,r=t.data,o=void 0===r?[]:r,i=t.pagination,s=void 0===i?{}:i,a=s.total||o.length,l=s.pageSize||D;return(0,e.jsx)(R,A({},t,{visible:n,data:o,pagination:A(A({},s),{pageSize:l,pages:Math.ceil(a/l)})}))},q={"en-US":{"dropdownlist.search.placeholder":"Search...","dropdownlist.result.found":"Found","dropdownlist.result.records":"records","dropdownlist.sort.by":"Sort By","dropdownlist.sort.by.desc":"Desc","dropdownlist.sort.by.asc":"Asc","dropdownlist.sort.by.clear":"Clear sorting","dropdownlist.filters":"Filters","dropdownlist.apply":"Apply","dropdownlist.loading":"Loading...","dropdownlist.loading.failed":"Load failed","dropdownlist.refresh":"Refresh"},"zh-CN":{"dropdownlist.search.placeholder":"搜索","dropdownlist.result.found":"找到","dropdownlist.result.records":"结果","dropdownlist.sort.by":"排序","dropdownlist.sort.by.desc":"降序","dropdownlist.sort.by.asc":"升序","dropdownlist.sort.by.clear":"清除排序","dropdownlist.filters":"过滤","dropdownlist.apply":"应用","dropdownlist.loading":"加载中...","dropdownlist.loading.failed":"加载失败","dropdownlist.refresh":"刷新"}};o(6871);var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)},D=10,M="desc";const F=function(n){var r=n.className,o=void 0===r?"":r,i=n.popoverClassName,s=void 0===i?"":i,l=n.popoverPlacement,c=void 0===l?"bottomLeft":l,p=n.children,h=n.width,_=void 0===h?300:h,m=n.dropdownWidth,g=n.locale,y=void 0===g?"en-US":g,w=n.allowClear,v=void 0!==w&&w,b=n.mode,x=void 0===b?"":b,O=n.value,j=n.disabled,E=void 0!==j&&j,k=n.onChange,S=n.placeholder,T=void 0===S?"":S,N=n.loading,R=void 0!==N&&N,C=n.data,A=void 0===C?[]:C,D=n.rowKey,M=n.renderItem,F=n.renderLabel,U=n.pagination,z=n.onSearchChange,B=void 0===z?function(){}:z,G=n.sorter,J=void 0===G?[]:G,$=n.onSorterChange,V=void 0===$?function(){}:$,W=n.sorterOptions,H=void 0===W?[]:W,K=n.filters,Q=void 0===K?{}:K,Y=n.onFiltersChange,X=void 0===Y?function(){}:Y,Z=n.filterOptions,ee=void 0===Z?[]:Z,te=n.groups,ne=void 0===te?[]:te,re=n.onGroupsChange,oe=void 0===re?function(){}:re,ie=n.groupOptions,se=void 0===ie?[]:ie,ae=n.onGroupVisibleChange,le=void 0===ae?function(){}:ae,ce=n.autoAdjustOverflow,ue=void 0===ce?{adjustX:1}:ce,pe=n.getPopupContainer,de=void 0===pe?function(e){return e.parentNode}:pe,fe=(n.extraData,n.showListIcon),he=void 0===fe||fe,_e=(0,t.useState)(!1),me=_e[0],ge=_e[1],ye=(0,t.useState)(!1),we=ye[0],ve=ye[1],be=(0,t.useState)(),xe=be[0],Oe=be[1],je=(0,t.useState)(),Ee=je[0],ke=je[1],Se=(0,t.useRef)(null),Te=(0,t.useMemo)((function(){return"multiple"===x&&(void 0===O||Array.isArray(O))}),[x,O]),Ne=function(e){return F?F(e):M?M(e):e[D]};(0,t.useEffect)((function(){!m&&isNaN(Number(_))&&Se.current&&ke(Se.current.offsetWidth)}),[m,_,Se]);var Re=m||_;isNaN(Number(Re))?Ee&&(Re="".concat(Ee,"px")):Re="".concat(Re,"px"),we&&(Re="calc(".concat(Re," + ").concat(120*ne.length||120,"px)"));var Ce,Pe,Ae=(Ce=(0,e.jsx)("span",{style:{color:"#999"},children:T}),Te?(null==O?void 0:O.length)>0?(0,e.jsx)(e.Fragment,{children:O.filter((function(e){return!(!e||!e[D])})).map((function(t,n){return(0,e.jsxs)("span",{className:"".concat("multipleItem"," common-ui-dropdownlist-multiple-item"),style:{backgroundColor:E?"#c4c4c4":"#fff"},children:[Ne(t),(0,e.jsx)(a.CloseOutlined,{style:{marginLeft:4,fontSize:10},onClick:function(e){e.stopPropagation(),function(e){var t=(0,f.cloneDeep)(O)||[];t.splice(e,1),k(t)}(n)}})]},n)}))}):Ce:O&&O[D]?Ne(O):Ce);return(0,e.jsx)("div",{className:"".concat("dropdownList"," ").concat(o),style:{width:_},ref:Se,children:(0,e.jsx)(d(),{open:!E&&me,onOpenChange:function(e){ge(e)},placement:c,content:(Pe=I(I({},n),{value:O,loading:R,data:A,onSearchChange:function(e){Oe(e),B(e)},searchValue:xe,sorter:J,onSorterChange:V,sorterOptions:H,filters:Q,onFiltersChange:X,filterOptions:ee,groups:ne,onGroupsChange:oe,groupOptions:se,visible:me,onChange:function(e){k(e),Te||ge(!1)},currentLocales:q[y]||{},showGroup:we,onShowGroupChange:function(e){ve(e),le(e)},isMultiple:Te}),U&&U.currentPage&&U.total?(0,e.jsx)(L,I({},Pe)):(0,e.jsx)(P,I({},Pe))),trigger:"click",overlayClassName:"".concat("popover"," ").concat(s),overlayStyle:{width:Re,height:126+32*((null==U?void 0:U.pageSize)||10)},autoAdjustOverflow:ue,getPopupContainer:de,children:p||(0,e.jsx)(u(),{style:{width:"100%"},disabled:E,className:"".concat("button"," common-ui-dropdownlist-select ").concat(v?"allowClear":""),children:(0,e.jsxs)("div",{className:"content",children:[(0,e.jsxs)("div",{className:"label",children:[he&&(0,e.jsx)(a.BarsOutlined,{className:"icon"}),(0,e.jsx)("span",{children:Ae})]}),me?(0,e.jsx)(a.UpOutlined,{className:"down"}):(0,e.jsx)(a.DownOutlined,{className:"down"}),v&&(0,e.jsx)(a.CloseCircleOutlined,{onClick:function(e){e.stopPropagation(),k(Te?[]:void 0)},theme:"filled",className:"close"})]})})})})};var U="#00bb1b",z="#fcca00",B="#ff4d4f",G="#bbbbbb",J="#d8d8d8",$={green:U,yellow:z,red:B,available:U,unavailable:J,online:U,offline:J,active:z,normal:U,acknowledged:U,error:B,gray:G},V=function(t){var n,r=(n=t.status,$[n]);return(0,e.jsx)("div",{style:{background:r,height:16,width:5,display:"inline-block"}})},W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};const H=(0,t.forwardRef)((function(n,r){var o=n.className,i=n.popoverClassName,a=n.children,l=n.width,c=n.dropdownWidth,u=n.value,p=n.onChange,d=n.disabled,f=void 0!==d&&d,h=n.mode,_=void 0===h?"":h,m=n.filters,g=void 0===m?{}:m,y=(n.action,n.extraData),w=void 0===y?[]:y,v=n.getClusterList,b=(n.showCreate,n.getPopupContainer),x=void 0===b?function(e){return e.parentNode}:b,O=n.fetchDataSource,j=n.SearchEngineIcon,E=(0,t.useState)([]),k=E[0],S=E[1],T=(0,t.useState)({took:0,total:0,data:[]}),N=T[0],R=T[1],C=(0,t.useState)(!1),P=C[0],A=C[1],L=(0,t.useState)({from:0,size:10,keyword:""}),q=L[0],I=L[1],D=function(e,t,n){return r=void 0,o=void 0,s=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return A(!0),[4,O(e,t,n)];case 1:return r=o.sent(),R({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),v&&v({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),A(!1),[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,a)}l((s=s.apply(r,o||[])).next())}));var r,o,i,s};(0,t.useEffect)((function(){D(q,k,g)}),[JSON.stringify(q),JSON.stringify(k),JSON.stringify(g)]),(0,t.useImperativeHandle)(r,(function(){return{refresh:function(){return D(q,k,g)}}}));var M=N.data,U=N.total;return(0,e.jsx)(F,{getPopupContainer:x,disabled:f,mode:_,className:o,popoverClassName:i,width:l,dropdownWidth:c,locale:"en-US",value:u,onChange:function(e){p&&p(e)},rowKey:"id",loading:P,data:M.map((function(e){return W({},e._source)})),extraData:w,pagination:{currentPage:U?Math.floor(q.from/q.size)+1:0,total:U,onChange:function(e){I(W(W({},q),{from:(e-1)*q.size}))}},renderItem:function(t){var n,r;return(0,e.jsxs)(e.Fragment,{children:[(null===(n=t.labels)||void 0===n?void 0:n.health_status)&&(0,e.jsx)("div",{style:{marginRight:"5px",display:"inline-block",position:"relative",top:"3px"},children:(0,e.jsx)(V,{status:null===(r=t.labels)||void 0===r?void 0:r.health_status})}),(0,e.jsx)("div",{style:{marginRight:"4px",display:"inline-block",position:"relative",top:"0px"},children:(0,e.jsx)(j,{distribution:t.distribution||g.distribution,width:"16px",height:"16px"})}),t.name]})},renderTag:function(e){return e.version},searchKey:"name",onSearchChange:function(e){I(W(W({},q),{keyword:e}))},sorter:k,onSorterChange:S,sorterOptions:[{label:(0,e.jsx)(s.FormattedMessage,{id:"cluster.monitor.summary.name"}),key:"name"}],onRefresh:function(){D(q,k,g)},actions:[],children:a})}));var K,Q=(K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},K(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(t){function n(e){var n=t.call(this,e)||this;return n.handleItemClick=function(e){var t=n.props.onItemClick;t&&"function"==typeof t&&t(e)},n.getClusterList=function(e){var t,r,o;void 0===e&&(e={}),(null===(t=e.data)||void 0===t?void 0:t.length)>0&&0===(null===(r=n.props.panes)||void 0===r?void 0:r.length)&&n.handleItemClick(null===(o=e.data[0])||void 0===o?void 0:o._source)},n.state={data:n.props.data||[]},n}Q(n,t),n.prototype.componentDidMount=function(){},n.prototype.render=function(){var t=this,n=this.props,r=(n.clusterStatus,n.DataSourceSelector,n.fetchDataSource),o=n.SearchEngineIcon;return(0,e.jsx)("div",{children:(0,e.jsx)(H,{width:34,dropdownWidth:400,onChange:function(e){return t.handleItemClick(e)},getClusterList:this.getClusterList,fetchDataSource:r,SearchEngineIcon:o,children:this.props.children})})}}(t.Component),o(9891);var Y=function(n){var r=n.title,o=n.onTitleChange,i=n.distribution,s=n.SearchEngineIcon,a=(0,t.useState)(!1),l=a[0],c=a[1],u=(0,t.useState)(r),p=u[0],d=u[1];(0,t.useEffect)((function(){var e;l&&(null===(e=f.current)||void 0===e||e.focus())}),[l]);var f=(0,t.useRef)(null);return(0,e.jsx)("div",{title:"double click to change title",className:"tab-title",onDoubleClick:function(){c(!0)},children:l?(0,e.jsx)("input",{ref:f,className:"input-eidtor",onKeyDown:function(e){13===e.which&&e.target.blur()},type:"text",value:p,onBlur:function(){c(!1)},onChange:function(e){var t=e.target.value;d(t),"function"==typeof o&&o(t)}}):(0,e.jsxs)("div",{className:"icon-cont",children:[(0,e.jsx)(s,{distribution:i,width:"14px",height:"14px"}),p]})})};const X=require("react-dnd"),Z=require("react-dnd-html5-backend");o(9514);const ee=require("rc-tabs");var te=o.n(ee);const ne=require("rc-tabs/lib/TabContent");var re=o.n(ne);const oe=require("classnames");var ie=o.n(oe);const se=require("omit.js");var ae=o.n(se);const le=require("antd/lib/config-provider"),ce=require("rc-tabs/lib/ScrollableInkTabBar");var ue=o.n(ce),pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},de.apply(this,arguments)},fe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return pe(r,n),r.prototype.render=function(){var n,r,o=this.props,i=o.tabBarStyle,s=o.animated,a=o.renderTabBar,l=o.tabBarExtraContent,c=o.tabPosition,u=o.prefixCls,p=o.className,d=o.size,f=o.type,h="object"==typeof s?s.inkBar:s,_=ie()("".concat(u,"-").concat(c,"-bar"),((n={})["".concat(u,"-").concat(d,"-bar")]=!!d,n["".concat(u,"-card-bar")]=f&&f.indexOf("card")>=0,n),p),m=de(de({},this.props),{children:null,inkBarAnimated:h,extraContent:l,style:i,prevIcon:null,nextIcon:null,className:_});return r=a?a(m,ue()):(0,e.jsx)(ue(),de({},m)),t.cloneElement(r)},r.defaultProps={animated:!0,type:"line"},r}(t.Component);const he=fe;o(217);var _e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(){return me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},me.apply(this,arguments)},ge=function(n){function r(){var r=null!==n&&n.apply(this,arguments)||this;return r.removeTab=function(e,t){if(t.stopPropagation(),e){var n=r.props.onEdit;n&&n(e,"remove")}},r.handleChange=function(e){var t=r.props.onChange;t&&t(e)},r.createNewTab=function(e){var t=r.props.onEdit;t&&t(e,"add")},r.renderTabs=function(n){var o,i=n.getPrefixCls,s=r.props,l=s.prefixCls,c=s.className,u=void 0===c?"":c,p=s.size,d=s.type,f=void 0===d?"line":d,h=s.tabPosition,_=s.children,m=s.animated,g=void 0===m||m,y=(s.hideAdd,r.props.tabBarExtraContent),w="object"==typeof g?g.tabPane:g;"line"!==f&&(w="animated"in r.props&&w);var v=i("tabs",l),b=ie()(u,((o={})["".concat(v,"-vertical")]="left"===h||"right"===h,o["".concat(v,"-").concat(p)]=!!p,o["".concat(v,"-card")]=f.indexOf("card")>=0,o["".concat(v,"-").concat(f)]=!0,o["".concat(v,"-no-animation")]=!w,o)),x=[];"editable-card"===f&&(x=[],t.Children.forEach(_,(function(n,o){if(!t.isValidElement(n))return n;var i=n.props.closable,s=(i=void 0===i||i)?(0,e.jsx)(a.CloseOutlined,{className:"".concat(v,"-close-x"),onClick:function(e){return r.removeTab(n.key,e)}}):null;x.push(t.cloneElement(n,{tab:(0,e.jsxs)("div",{className:i?void 0:"".concat(v,"-tab-unclosable"),children:[n.props.tab,s]}),key:n.key||o}))})));var O=y?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"".concat(v,"-extra-content ant-tabs-extra-append"),children:null==y?void 0:y.append}),(0,e.jsx)("div",{className:"".concat(v,"-extra-content ant-tabs-extra-left"),style:{float:"left",margin:"0 10px"},children:y.left}),(0,e.jsx)("div",{style:{float:"right",marginRight:10},className:"".concat(v,"-extra-content ant-tabs-extra-right"),children:y.right})]}):null,j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r.props,[]),E=ie()("".concat(v,"-").concat(h,"-content"),f.indexOf("card")>=0&&"".concat(v,"-card-content"));return(0,e.jsx)(te(),me({},r.props,{prefixCls:v,className:b,tabBarPosition:h,renderTabBar:function(){return(0,e.jsx)(he,me({},ae()(j,["className"]),{tabBarExtraContent:O}))},renderTabContent:function(){return(0,e.jsx)(re(),{className:E,animated:w,animatedWithMargin:!0})},onChange:r.handleChange,children:x.length>0?x:_}))},r}return _e(r,n),r.prototype.componentDidMount=function(){},r.prototype.render=function(){return(0,e.jsx)("div",{className:"flex-tabbar",children:(0,e.jsx)(le.ConfigConsumer,{children:this.renderTabs})})},r.TabPane=ee.TabPane,r.defaultProps={hideAdd:!1,tabPosition:"top"},r}(t.Component);const ye=ge;var we=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ve=function(){return ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ve.apply(this,arguments)},be=(ye.TabPane,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return we(t,e),t.prototype.render=function(){var e=this.props;return(0,e.connectDragSource)((0,e.connectDropTarget)(e.children))},t}(n().Component)),xe=(0,X.DropTarget)("DND_NODE",{drop:function(e,t){var n=t.getItem().index,r=e.index;n!==r&&(e.moveTabNode(n,r),t.getItem().index=r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,X.DragSource)("DND_NODE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(be)),Oe=function(t){function r(r){var o=t.call(this,r)||this;return o.moveTabNode=function(e,t){var r=o.state.order.slice(),i=o.props.children;n().Children.forEach(i,(function(e){-1===r.indexOf(e.key)&&r.push(e.key)}));var s=r.indexOf(e),a=r.indexOf(t);r.splice(s,1),r.splice(a,0,e),o.setState({order:r}),"function"==typeof o.props.onTabNodeMoved&&o.props.onTabNodeMoved(r)},o.renderTabBar=function(t,n){return(0,e.jsx)(n,ve({},t,{children:function(t){return(0,e.jsx)(xe,{index:t.key,moveTabNode:o.moveTabNode,children:t},t.key)}}))},o.state={order:r.initialOrder||[]},o}return we(r,t),r.prototype.render=function(){var t=this.state.order,r=this.props.children,o=[];n().Children.forEach(r,(function(e){o.push(e)}));var i=o.slice().sort((function(e,n){var r=t.indexOf(e.key),i=t.indexOf(n.key);return-1!==r&&-1!==i?r-i:-1!==r?-1:-1!==i?1:o.indexOf(e)-o.indexOf(n)}));return(0,e.jsx)(X.DndProvider,{backend:Z.HTML5Backend,children:(0,e.jsx)(ye,ve({renderTabBar:this.renderTabBar},this.props,{children:i}))})},r}(n().Component),je=(o(9655),function(){return(0,e.jsx)("div",{className:"resize-bar",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"dash"}),(0,e.jsx)("div",{className:"dash"})]})})});const Ee=require("antd/lib/tabs");var ke=o.n(Ee);require("antd/lib/tabs/style/index.js");const Se=require("antd/lib/tooltip");var Te=o.n(Se);require("antd/lib/tooltip/style/index.js");const Ne=function(n){var r=n.code,o=(0,t.useState)(!1),i=o[0],s=o[1];return(0,e.jsxs)("div",{style:{position:"relative"},children:[r?(0,e.jsx)(Te(),{title:i?"Copied!":"Copy",children:(0,e.jsx)(a.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:function(){navigator.clipboard.writeText(r),s(!0),setTimeout((function(){return s(!1)}),2e3)}})}):null,r?(0,e.jsx)("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:(0,e.jsx)("code",{children:r})}):null]})},Re=require("brace");var Ce=o.n(Re);function Pe(e){for(var t=e.split('"""'),n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}function Ae(e){if(e.length>5242880)return e;var t=function(e){var t,n=0,r=!1,o=[];function i(){for(var t=n+1;t<e.length;){var r=e[t];if(r.match(/[^\s\r\n]/))return r;++t}}function s(){++n}for(;n<e.length;){var a=e[n];r?"\\"===a?s():'"'===a&&(":"!==i()&&o.push({startIndex:t,endIndex:n}),r=!1):'"'===a&&(t=n,r=!0),s()}return{stringValues:o}}(e).stringValues;if(0===t.length)return e;for(var n=e.substring(0,t[0].startIndex),r=0;r<t.length;r++){var o=t[r],i=o.startIndex,s=o.endIndex,a=e.substring(i,s+1);"\\"===a[1]&&'"'===a[2]||'"'===a[a.length-2]&&"\\"===a[a.length-3]||!a.match(/\\./)?n+=a:n+='"""'.concat(JSON.parse(a),'"""'),t[r+1]&&(n+=e.substring(s+1,t[r+1].startIndex))}return n+e.substring(t[t.length-1].endIndex+1)}var Le=function(){return Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Le.apply(this,arguments)},qe=function(){function e(e,t){this.provider=e,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(t.lineNumber)||[];var n=this.tokensLineCache.findIndex((function(e){return function(e,t){return!(e<t.position.column)&&e<=t.position.column+t.value.length}(t.column,e)}));n>-1?this.updatePosition({tokenIdx:n,position:this.tokensLineCache[n].position}):this.updatePosition({tokenIdx:-1,position:t})}return e.prototype.updateLineTokens=function(e){this.tokensLineCache=e},e.prototype.updatePosition=function(e){this.currentTokenIdx=e.tokenIdx,this.currentPosition=Le({},e.position)},e.prototype.step=function(e){var t=this.currentTokenIdx+e,n=this.tokensLineCache[t];if(n)return this.updatePosition({tokenIdx:t,position:n.position}),n;var r=this.currentPosition.lineNumber+e,o=this.provider.getTokens(r);if(o){this.updateLineTokens(o);var i=void 0;e>0?(n=o[0],i=0):i=(n=o[o.length-1])?o.length-1:0;var s=n?n.position:{column:1,lineNumber:r};return this.updatePosition({tokenIdx:i,position:s}),n||null}return null},e.prototype.getCurrentToken=function(){return this.tokensLineCache[this.currentTokenIdx]||null},e.prototype.getCurrentPosition=function(){return this.currentPosition},e.prototype.stepBackward=function(){return this.step(-1)},e.prototype.stepForward=function(){return this.step(1)},e.prototype.getCurrentTokenLineNumber=function(){var e=this.getCurrentToken();return e?e.position.lineNumber:null},e.prototype.getCurrentTokenColumn=function(){var e=this.getCurrentToken();return e?e.position.column:null},e}();function Ie(e){var t=e.editor,n=e.position,r=t.getTokenProvider();return new qe(r,n)}function De(e,t){return JSON.stringify(e,null,t?2:0)}function Me(e,t){for(var n=!1,r=[],o=0;o<e.length;o++){var i=e[o];try{var s=De(JSON.parse(Pe(i)),t);t&&(s=Ae(s)),n=n||s!==i,r.push(s)}catch(e){console.log(e),r.push(i)}}return{changed:n,data:r}}const Fe=require("jquery");var Ue=o.n(Fe);require("query-string");function ze(e){var t={"content-type":"application/json","X-Team-ID":localStorage.getItem("team_id"),"X-Project-ID":localStorage.getItem("project_id")};return fetch("".concat("/_search-center","/elasticsearch/command"),{method:"POST",body:JSON.stringify(e),headers:t})}var Be=function(){return Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Be.apply(this,arguments)},Ge=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Je=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},$e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ve=function(){function e(e){var t=this;this.coreEditor=e,this.prevRequestStart=function(e){var n;for(n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;n>0&&!t.parser.isStartRequestRow(n,t.coreEditor);)n--;return{lineNumber:n,column:1}},this.nextRequestStart=function(e){var n;n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;for(var r=t.coreEditor.getLineCount();n<r-1&&!t.parser.isStartRequestRow(n,t.coreEditor);n++);return{row:n,column:0}},this.autoIndent=h().debounce((function(){return Ge(t,void 0,void 0,(function(){var e,t,n,r;return Je(this,(function(o){switch(o.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return o.sent(),[4,this.getRequestRange()];case 2:return(e=o.sent())?[4,this.getRequest()]:[2];case 3:return(t=o.sent())?(t.data&&t.data.length>0&&(n=1===t.data.length,(r=Me(t.data,n)).changed||(n=!n,r=Me(t.data,n)),t.data=r.data,this.replaceRequestRange(t,e)),[2]):[2]}}))}))}),25),this.update=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return Ge(t,$e([e],n,!0),void 0,(function(e,t){return void 0===t&&(t=!1),Je(this,(function(n){return[2,this.coreEditor.setValue(e,t)]}))}))},this.replaceRequestRange=function(e,n){var r,o,i=("string"!=typeof(o=(r=e).data)&&(o=o.join("\n")),r.method+" "+r.url+"\n"+o);n?t.coreEditor.replaceRange(n,i):t.coreEditor.insert(t.coreEditor.getCurrentPosition(),i)},this.getRequestRange=function(e){return Ge(t,void 0,Promise,(function(){var t,n;return Je(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return r.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:(t=this.prevRequestStart(e),n=this.nextRequestEnd(t),[2,{start:Be({},t),end:Be({},n)}])}}))}))},this.expandRangeToRequestEdges=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ge(t,$e([],e,!0),Promise,(function(e){var t,n,r,o;return void 0===e&&(e=this.coreEditor.getSelectionRange()),Je(this,(function(i){switch(i.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(i.sent(),t=e.start.lineNumber,n=e.end.lineNumber,r=Math.max(1,this.coreEditor.getLineCount()),this.parser.isInBetweenRequestsRow(t));else for(;t>=1&&!this.parser.isStartRequestRow(t);t--);if(t<1||t>n)return[2,null];if(this.parser.isInBetweenRequestsRow(n))for(;n>=t&&!this.parser.isEndRequestRow(n);n--);else for(;n<=r&&!this.parser.isEndRequestRow(n);n++);return n<t||n>r?[2,null]:(o=(this.coreEditor.getLineValue(n)||"").replace(/\s+$/,"").length+1,[2,{start:{lineNumber:t,column:1},end:{lineNumber:n,column:o}}])}}))}))},this.getRequestInRange=function(e){return Ge(t,void 0,void 0,(function(){var t,n,r,o,i,s,a,l;return Je(this,(function(c){switch(c.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(c.sent(),!e)return[2,null];if(t={method:"",data:[],url:"",range:e},n=e.start,r=Ie({editor:this.coreEditor,position:n}),o=r.getCurrentToken(),this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),null==o)return[2,null];if(t.method=o.value,!(o=this.parser.nextNonEmptyToken(r))||"method"===o.type)return[2,null];for(t.url="";o&&o.type&&0===o.type.indexOf("url");)t.url+=o.value,o=r.stepForward();for(this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),i=(o?0:1)+r.getCurrentPosition().lineNumber;i<e.end.lineNumber||i===e.end.lineNumber&&1<e.end.column;)s=this.nextDataDocEnd({lineNumber:i,column:1}),a={start:{lineNumber:i,column:1},end:s},l=this.coreEditor.getValueInRange(a),t.data.push(l.trim()),i=s.lineNumber+1;return[2,t]}}))}))},this.getRequestsInRange=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ge(t,$e([],e,!0),Promise,(function(e,t){var n,r,o,i,s,a,l,c=this;return void 0===e&&(e=this.coreEditor.getSelectionRange()),void 0===t&&(t=!1),Je(this,(function(u){switch(u.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return u.sent(),e?[4,this.expandRangeToRequestEdges(e)]:[2,[]];case 2:if(!(n=u.sent()))return[2,[]];r=[],o=n.start.lineNumber,i=n.end.lineNumber,s=n.start.lineNumber,a=function(){if(t){var e=c.coreEditor.getLines(o,s-1).join("\n");e&&r.push(e)}},u.label=3;case 3:return s<=i?this.parser.isStartRequestRow(s)?(a(),[4,this.getRequest(s)]):[3,5]:[3,7];case 4:return(l=u.sent())?(r.push(l),o=s=l.range.end.lineNumber+1,[3,6]):[2,r];case 5:++s,u.label=6;case 6:return[3,3];case 7:return a(),[2,r]}}))}))},this.getRequest=function(e){return Ge(t,void 0,void 0,(function(){var t;return Je(this,(function(n){switch(n.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return n.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:[4,this.getRequestRange(e)];case 2:return t=n.sent(),[2,this.getRequestInRange(t)]}}))}))},this.moveToPreviousRequestEdge=function(){return Ge(t,void 0,void 0,(function(){var e;return Je(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(t.sent(),(e=this.coreEditor.getCurrentPosition()).lineNumber--;e.lineNumber>1&&!this.parser.isRequestEdge(e.lineNumber);e.lineNumber--);return this.coreEditor.moveCursorToPosition({lineNumber:e.lineNumber,column:1}),[2]}}))}))},this.moveToNextRequestEdge=function(e){return Ge(t,void 0,void 0,(function(){var t,n;return Je(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(r.sent(),t=this.coreEditor.getCurrentPosition(),n=this.coreEditor.getLineCount(),e||t.lineNumber++;t.lineNumber<n&&!this.parser.isRequestEdge(t.lineNumber);t.lineNumber++);return this.coreEditor.moveCursorToPosition({lineNumber:t.lineNumber,column:1}),[2]}}))}))},this.nextRequestEnd=function(e){e=e||t.coreEditor.getCurrentPosition();for(var n=t.coreEditor.getLineCount(),r=e.lineNumber;r<=n;++r){var o=t.parser.getRowParseMode(r);if((o&t.parser.MODE.REQUEST_END)>0)break;if(r!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:r,column:(t.coreEditor.getLineValue(r)||"").replace(/\s+$/,"").length+1}},this.nextDataDocEnd=function(e){for(var n=(e=e||t.coreEditor.getCurrentPosition()).lineNumber,r=t.coreEditor.getLineCount();n<r;n++){var o=t.parser.getRowParseMode(n);if((o&t.parser.MODE.REQUEST_END)>0)break;if((o&t.parser.MODE.MULTI_DOC_CUR_DOC_END)>0)break;if(n!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:n,column:(t.coreEditor.getLineValue(n)||"").length+1}},this.highlightCurrentRequestsAndUpdateActionBar=h().debounce((function(){return Ge(t,void 0,void 0,(function(){var e;return Je(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return t.sent(),[4,this.expandRangeToRequestEdges()];case 2:return null===(e=t.sent())&&null===this.currentReqRange?[2]:null!==e&&null!==this.currentReqRange&&e.start.lineNumber===this.currentReqRange.start.lineNumber&&e.end.lineNumber===this.currentReqRange.end.lineNumber?(this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar(),[2]):(this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=e,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar(),[2])}}))}))}),25),this.getRequestsAsCURL=function(e,n){return Ge(t,void 0,Promise,(function(){var t;return Je(this,(function(r){switch(r.label){case 0:return[4,this.getRequestsInRange(n,!0)];case 1:return t=r.sent(),[2,h().map(t,(function(t){if("string"==typeof t)return t;var n,r,o=t.url,i=t.method,s=t.data,a="curl -X"+i+' "'+(r=o,(n=e)&&(n=n.replace(/\/+$/,"")),n+"/"+r.replace(/^\/+/,"")+'"');return s&&s.length&&(a+=" -H 'Content-Type: application/json' -d'\n",a+=Pe(s.join("\n")).replace(/'/g,"'\\''"),s.length>1&&(a+="\n"),a+="'"),a})).join("\n")]}}))}))},this.updateActionsBar=function(){return t.coreEditor.legacyUpdateUI(t.currentReqRange)},this.currentReqRange=null,this.parser=e.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}return e.prototype.getCoreEditor=function(){return this.coreEditor},e}();require("brace/ext/language_tools"),require("brace/ext/searchbox"),require("brace/mode/json.js"),require("brace/mode/text");var We=function(e,t,n){return{type:n.type,value:n.value,position:{lineNumber:e,column:t}}},He=function(){function e(e){this.session=e}return e.prototype.getTokens=function(e){if(e<1)return null;if(e>this.session.getLength())return null;var t=this.session.getTokens(e-1);return t&&t.length?function(e,t){var n="";return t.map((function(t){var r=n.length+1;return n+=t.value,We(e,r,t)}))}(e,t):[]},e.prototype.getTokenAt=function(e){var t=this.session.getTokens(e.lineNumber-1);return t?function(e,t,n){for(var r="",o=0,i=n;o<i.length;o++){var s=i[o],a=r.length+1,l=(r+=s.value).length;if(!(t<a||t>l+1))return We(e,a,s)}return null}(e.lineNumber,e.column,t):null},e}();function Ke(e){var t=e.resize,n=(0,f.throttle)((function(){t.call(e,!1);var r=(0,f.get)(n,"topRow",0);0!==r&&e.renderer.scrollToLine(r,!1,!1,(function(){}))}),35);return n}var Qe=function(){function e(e){this.name=e}return e.prototype.getTerms=function(){return[]},e.prototype.match=function(){return{next:this.next}},e}(),Ye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xe=function(e){function t(t,n){var r=e.call(this,t)||this;return r._nextDict={},n&&n.addComponent(r),r._parent=n,r}return Ye(t,e),t.prototype.getComponent=function(e){return(this._nextDict[e]||[void 0])[0]},t.prototype.addComponent=function(e){var t=this._nextDict[e.name]||[];t.push(e),this._nextDict[e.name]=t,this.next=[].concat.apply([],h().values(this._nextDict))},t}(Qe),Ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return h().isString(r)&&(r=[r]),o.options=r||[t],o}return Ze(t,e),t.prototype.getTerms=function(){return this.options},t.prototype.addOption=function(e){Array.isArray(e)||(e=[e]),[].push.apply(this.options,e),this.options=h().uniq(this.options)},t.prototype.match=function(t,n,r){return t!==this.name?null:e.prototype.match.call(this,t,n,r)},t}(Xe),tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nt=function(e){function t(t,n,r,o,i){var s=e.call(this,t,r)||this;return s.listGenerator=Array.isArray(n)?function(){return n}:n,s.multiValued=!!h().isUndefined(o)||o,s.allowNonValidValues=!h().isUndefined(i)&&i,s}return tt(t,e),t.prototype.getTerms=function(e,t){if(!this.multiValued&&e.otherTokenValues)return[];var n=e.otherTokenValues||[];h().isString(n)&&(n=[n]);var r=h().difference(this.listGenerator(e,t),n);if(this.getDefaultTermMeta()){var o=this.getDefaultTermMeta();r=h().map(r,(function(e){return h().isString(e)&&(e={name:e}),h().defaults(e,{meta:o})}))}return r},t.prototype.validateTokens=function(e){if(!this.multiValued&&e.length>1)return!1;var t=this.listGenerator();return!h().some(e,(function(e){return-1===t.indexOf(e)}))},t.prototype.getContextKey=function(){return this.name},t.prototype.getDefaultTermMeta=function(){return this.name},t.prototype.match=function(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o},t}(Xe),rt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(e){function t(t,n){return e.call(this,t,n)||this}return rt(t,e),t.prototype.match=function(t,n,r){var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o},t}(Xe),it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(e){function t(t,n){var r=e.call(this,"__condition")||this;return r.predicate=t,r.delegate=n,r}return it(t,e),t.prototype.getTerms=function(e,t){return this.predicate(e,t)?this.delegate.getTerms(e,t):null},t.prototype.match=function(e,t,n){return!!this.predicate(t,n)&&this.delegate.match(e,t,n)},t}(Xe),at=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.getTerms=function(){return null},t.prototype.match=function(e,t){var n={next:[]},r=t.globalComponentResolver(e,!1);return r&&n.next.push.apply(n.next,r),n.next.length||(n.next=[this]),n},t}(Xe),ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ut=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.constants=n,o.patternsAndWildCards=r,o}return ct(t,e),t.prototype.getTerms=function(e,t){var n=[];return h().each(this.constants,(function(r){n.push.apply(n,r.getTerms(e,t))})),h().each(this.patternsAndWildCards,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]};h().each(this.constants,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)}));var o=t.globalComponentResolver(e,!1);return o&&r.next.push.apply(r.next,o),r.next.length||h().each(this.patternsAndWildCards,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(Xe),pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt="__url_path_end__",ft=function(e){function t(t,n){var r=e.call(this,t.id,n)||this;return r.endpoint=t,r}return pt(t,e),t.prototype.match=function(t,n,r){if(t!==dt)return null;if(this.endpoint.methods&&-1===h().indexOf(this.endpoint.methods,n.method))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,h().isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o},t}(Xe),ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.template=r,o.name=t,o}return ht(t,e),t.prototype.getTerms=function(){return[{name:this.name,snippet:this.template}]},t}(et),mt=function(){function e(e){var t=this;this.getTopLevelComponents=function(e){var t=this[e];return t?t.rootComponent.next:[]},["HEAD","GET","PUT","POST","DELETE"].forEach((function(n){t[n]={rootComponent:new Xe("ROOT"),parametrizedComponentFactories:e||{getComponent:function(){}}}}))}return e.prototype.addEndpoint=function(e,t){var n=this;t.methods.forEach((function(r){var o,i=n[r].rootComponent;t.template&&new _t(e+"[body]",i,t.template);var s=t.url_components||{},a=e.split("/");h().each(a,(function(e,l){if(e.search(/^{.+}$/)>=0){if(e=e.substr(1,e.length-2),i.getComponent(e))return void(i=i.getComponent(e));(o=s[e])?Array.isArray(o)?o=new nt(e,o,i):h().isObject(o)&&"list"===o.type?o=new nt(e,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",e," in endpoint",t),o=new Xe(e)):o=(o=n[r].parametrizedComponentFactories.getComponent(e))?o(e,i):new ot(e,i),i=o}else{var c=e,u=void 0;for(l++;l<a.length&&!((u=a[l]).indexOf("{")>=0);l++)c+="/"+u;i.getComponent(e)?(i=i.getComponent(e)).addOption(c):(o=new et(e,i,c),i=o)}})),new ft(t,i)}))},e}(),gt={},yt={},wt={},vt=[],bt="";function xt(e,t){var n=yt[t]||{};if(!e)return e;"string"==typeof e&&(e=[e]),e=Ue().map(e,(function(e){return n[e]?n[e]:[e]}));var r,o=[].concat.apply([],e);return o.sort(),(o=Ue().map(o,(function(e){var t=r===e?null:e;return r=e,t}))).length>1?o:o[0]}function Ot(e){return e=e.editor.editor.clusterID||bt,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],wt[e]||[],!0)}function jt(e,t,n){var r=gt[n=n||bt]||{},o=[];if("string"==typeof(e=xt(e,n))){var i=r[e];if(!i)return[];if("string"==typeof t){var s=i[t];o=s||[]}else Ue().each(i,(function(e,n){t&&0!==t.length&&-1===Ue().inArray(e,t)||o.push(n)})),o=[].concat.apply([],o)}else Ue().each(r,(function(r){e&&0!==e.length&&-1===Ue().inArray(r,e)||o.push(jt(r,t,n))})),o=[].concat.apply([],o);return h().uniqBy(o,(function(e){return e.name+":"+e.type}))}function Et(e,t){var n=gt[t]||{},r=[];if("string"==typeof(e=xt(e,t))){var o=n[e];if(!o)return[];Ue().each(o,(function(e){r.push(e)}))}else Ue().each(n,(function(n){e&&-1===Ue().inArray(n,e)||r.push(Et(n,t))})),r=[].concat.apply([],r);return h().uniq(r)}function kt(e,t){var n;"string"!=typeof t&&(t=(null===(n=null==t?void 0:t.editor)||void 0===n?void 0:n.clusterID)||bt);var r=gt[t]||{},o=yt[t]||[],i=[];return Ue().each(r,(function(e){i.push(e)})),(void 0===e||e)&&Ue().each(o,(function(e){i.push(e)})),i}function St(e){e.editor;var t=[];return vt.forEach((function(e){t.push(e._source.title)})),t}var Tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Nt(e){return!("_all"===e||"_"!==e[0])}var Rt=function(e){function t(t,n,r){return e.call(this,t,kt,n,r)||this}return Tt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Nt))},t.prototype.getDefaultTermMeta=function(){return"index"},t.prototype.getContextKey=function(){return"indices"},t}(nt),Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Pt(e){return h().map(jt(e.indices,e.types),(function(e){return{name:e.name,meta:e.type}}))}var At=function(e){function t(t,n,r){return e.call(this,t,Pt,n,r)||this}return Ct(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,(function(e){return e.match(/[^\w.?*]/)})))},t.prototype.getDefaultTermMeta=function(){return"field"},t.prototype.getContextKey=function(){return"fields"},t}(nt),Lt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function qt(e){return Et(e.indices)}function It(e){return!("_all"===e||"_"!==e[0])}var Dt=function(e){function t(t,n,r){return e.call(this,t,qt,n,r)||this}return Lt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,It))},t.prototype.getDefaultTermMeta=function(){return"type"},t.prototype.getContextKey=function(){return"types"},t}(nt),Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.multi_match=r,o}return Mt(t,e),t.prototype.match=function(t,n,r){if(!t)return null;if(!this.multi_match&&Array.isArray(t))return null;if(t=Array.isArray(t)?t:[t],h().find(t,(function(e){return e.match(/[\/,]/)})))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o},t}(Xe),Ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(e){function t(t,n){return e.call(this,t,Ot,n,!0,!0)||this}return Ut(t,e),t.prototype.getContextKey=function(){return"template"},t}(nt),Bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Gt(e){return"_"===e[0]}var Jt=function(e){function t(t,n,r){return e.call(this,t,kt,n,r)||this}return Bt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Gt))},t.prototype.getDefaultTermMeta=function(){return"username"},t.prototype.getContextKey=function(){return"username"},t}(nt),$t=o(2168),Vt=o(221);const Wt=require("minimatch");var Ht=function(){function e(e,t){this.wildcardPattern=e,this.emptyVal=t,this.pattern=String(this.wildcardPattern||"*"),this.matcher=new Wt.Minimatch(this.pattern,{noglobstar:!0,dot:!0,nocase:!0,matchBase:!0,nocomment:!0})}return e.prototype.match=function(e){return!(e&&e!==this.emptyVal||"*"!==this.pattern)||this.matcher.match(e||"")},e}(),Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kt.apply(this,arguments)},Qt=function(){function e(e){e=Kt({},e);var t=Kt({},e.match);this.id=(0,$t.GP)({protocol:t.protocol,hostname:t.host,port:t.port,pathname:t.path})||"*",this.matchers={protocol:new Ht(t.protocol),host:new Ht(t.host),port:new Ht(t.port),path:new Ht(t.path,"/")},this.timeout=e.timeout,this.sslAgent=this._makeSslAgent(e)}return e.prototype._makeSslAgent=function(e){var t=e.ssl||{};this.verifySsl=t.verify;var n={ca:t.ca,cert:t.cert,key:t.key};if((0,f.values)(n).filter(Boolean).length)return n.rejectUnauthorized=null==this.verifySsl||this.verifySsl,new Vt.Agent(n)},e.prototype.getForParsedUri=function(e){var t=e.protocol,n=e.hostname,r=e.port,o=e.pathname,i=this.matchers.protocol.match(t.slice(0,-1));return(i=(i=(i=i&&this.matchers.host.match(n))&&this.matchers.port.match(r))&&this.matchers.path.match(o))?{timeout:this.timeout,rejectUnauthorized:this.sslAgent?void 0:this.verifySsl,agent:"https:"===t?this.sslAgent:void 0}:{}},e}();!function(){function e(e){void 0===e&&(e=[]),this.configs=e.map((function(e){return new Qt(e)}))}e.prototype.hasConfig=function(){return Boolean(this.configs.length)},e.prototype.configForUri=function(e){var t=(0,$t.qg)(e),n=this.configs.map((function(e){return e.getForParsedUri(t)}));return f.defaultsDeep.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([{}],n,!1))}}();var Yt=function(){return Yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yt.apply(this,arguments)},Xt={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Zt={__template:{field:""},field:"{field}",missing:0,script:{}},en={__one_of:["skip","insert_zeros"]},tn={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:en},nn={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Zt,max:Zt,avg:Zt,sum:Zt,stats:Zt,extended_stats:Zt,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:{__template:{field:""},field:"{field}"},nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:Yt(Yt({},Xt),{filter_duplicate_text:"__flag__"}),significant_terms:Xt,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:tn,avg_bucket:tn,max_bucket:tn,min_bucket:tn,stats_bucket:tn,extended_stats_bucket:Yt(Yt({},tn),{sigma:""}),percentiles_bucket:Yt(Yt({},tn),{percents:[]}),sum_bucket:tn,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:en,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:en,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:en,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:en,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:en},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},rn=nn["*"],on=rn.terms,sn=rn.histogram,an=rn.date_histogram,ln={and:{__template:{filters:[{}]},filters:[{__scope_link:"."}]},bool:{__scope_link:"GLOBAL.query"},exists:{__template:{field:"FIELD_NAME"},field:"{field}"},ids:{__template:{values:["ID"]},type:"{type}",values:[""]},limit:{__template:{value:100},value:100},geo_bounding_box:{__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},geo_distance:{__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},geo_distance_range:{__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},geo_polygon:{__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},geo_shape:{__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},has_child:{__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""}};ln.m=ln.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},ln.not={__template:{filter:{}},filter:{}},ln.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},ln.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},ln.prefix={__template:{FIELD:"VALUE"},"{field}":""},ln.query={},ln.script={__template:{script:{}},script:{}},ln.term={__template:{FIELD:"VALUE"},"{field}":""},ln.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},ln.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};var cn=function(){return cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cn.apply(this,arguments)},un={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pn.apply(this,arguments)},dn={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},fn={append:pn({__template:{field:"",value:[]},field:"",value:[]},dn)},hn={bytes:pn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},_n={circle:pn({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},dn)},mn={__one_of:[fn,hn,{csv:pn({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},dn)},_n,{convert:pn({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{date:pn({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},dn)},{date_index_name:pn({__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd"},dn)},{dissect:pn({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{dot_expander:pn({__template:{field:""},field:"",path:""},dn)},{drop:pn({__template:{}},dn)},{fail:pn({__template:{message:""},message:""},dn)},{foreach:pn({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},dn)},{geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},{grok:pn({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},dn)},{gsub:pn({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},dn)},{html_strip:pn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{inference:pn({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},dn)},{join:pn({__template:{field:"",separator:""},field:"",separator:""},dn)},{json:pn({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},dn)},{kv:pn({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},dn)},{lowercase:pn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{pipeline:pn({__template:{name:""},name:""},dn)},{remove:pn({__template:{field:""},field:""},dn)},{rename:pn({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{script:pn({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},dn)},{set:pn({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},dn)},{set_security_user:pn({__template:{field:""},field:"",properties:[""]},dn)},{split:pn({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{sort:pn({__template:{field:""},field:"",order:"asc"},dn)},{trim:pn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{uppercase:pn({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{urldecode:pn({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},dn)},{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},gn={description:"",processors:[mn],version:123},yn=Object.freeze({__one_of:[!0,!1]}),wn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},vn={FIELD:"REGEXP"},bn={FIELD:{}},xn={FIELD:{value:""}},On={FIELD:{gte:10,lte:20}},jn={match:{span_term:{FIELD:"VALUE"}},end:3},En={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},kn={FIELD:{value:"VALUE"}},Sn={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Tn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Nn={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Rn={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Cn={FIELD:{value:"VALUE"}},Pn=function(){return Pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pn.apply(this,arguments)},An={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Ln={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},qn={span_first:{__template:jn,__scope_link:".span_first"},span_near:{__template:En,__scope_link:".span_near"},span_or:{__template:Tn,__scope_link:".span_or"},span_not:{__template:Sn,__scope_link:".span_not"},span_term:{__template:kn,__scope_link:".span_term"},span_containing:{__template:Nn,__scope_link:".span_containing"},span_within:{__template:Rn,__scope_link:".span_within"}},In=Pn(Pn({},qn),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:qn,field:""}}),Dn={wildcard:{__template:Cn,__scope_link:".wildcard"},fuzzy:{__template:bn,__scope_link:".fuzzy"},prefix:{__template:xn,__scope_link:".prefix"},range:{__template:On,__scope_link:".range"},regexp:{__template:vn,__scope_link:".regexp"}},Mn={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Fn={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:Mn,exp:Mn,gauss:Mn,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},Un=[function(e){e.addGlobalAutocompleteRules("aggregations",nn),e.addGlobalAutocompleteRules("aggs",nn),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:on,histogram:sn,date_histogram:an}})},function(e){e.addGlobalAutocompleteRules("aliases",{"*":{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}})},function(e){e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},function(e){e.addGlobalAutocompleteRules("filter",ln)},function(e){e.addGlobalAutocompleteRules("highlight",cn(cn({},un),{fields:{"{field}":cn({fragment_size:20},un)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},function(e){e.addEndpointDescription("_processor",{data_autocomplete_rules:mn}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:gn}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:gn,docs:[]}})},function(e){e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:yn},_all:{enabled:yn},_field_names:{index:yn},_routing:{required:yn},_index:{enabled:yn},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:yn,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:yn,numeric_detection:yn,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:yn,index:yn,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:yn,eager_global_ordinals:yn,norms:yn,coerce:yn,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:yn,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[wn(wn([],["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap((function(e){return["basic_"+e,"strict_"+e]})),!0),["date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"],!1).sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:yn,include_in_root:yn}}}})},function(e){e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":yn,"blocks.read":yn,"blocks.write":yn,"blocks.metadata":yn,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":yn,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":yn,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":yn,shadow_replicas:yn,shared_filesystem:yn,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},function(e){e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":Pn({type:{__one_of:["phrase","phrase_prefix","boolean"]}},An)},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:vn,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:Pn(Pn({__template:{query:"",fields:[]}},An),{fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}}),bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:bn,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:Pn({},Ln),type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:xn,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:On,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:jn,match:In},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:Dn},span_near:{__template:En,clauses:[In],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:kn,"{field}":{value:"",boost:2}},span_not:{__template:Sn,include:In,exclude:In},span_or:{__template:Tn,clauses:[In]},span_containing:{__template:Nn,little:In,big:In},span_within:{__template:Rn,little:In,big:In},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Cn,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:Pn({},Ln),path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:h().defaults({__template:{query:{},functions:[{}]},query:{},functions:[h().defaults({filter:{},weight:1},Fn)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Fn),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},function(e){e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},function(e){e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}],zn=function(){return zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zn.apply(this,arguments)},Bn=function(){function e(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}return e.prototype.addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=t},e.prototype.addEndpointDescription=function(e,t){void 0===t&&(t={});var n,r={};this.endpoints[e]&&(r=zn({},this.endpoints[e])),h().each(t.patterns||[],(function(e){e.indexOf("{indices}")>=0&&((n=n||{}).ignore_unavailable="__flag__",n.allow_no_indices="__flag__",n.expand_wildcards=["open","closed"])})),n&&(t.url_params=h().assign(t.url_params||{},r.url_params),h().defaults(t.url_params,n)),h().assign(r,t),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),this.endpoints[e]=r},e.prototype.asJson=function(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}},e.prototype.addExtensionSpecFilePath=function(e){this.extensionSpecFilePaths.push(e)},e.prototype.addProcessorDefinition=function(e){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(e)},e.prototype.setup=function(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}},e.prototype.start=function(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}},e.prototype.loadAllSpec=function(e){return e.keys().reduce((function(t,n){return(0,f.merge)(t,e(n)),t}),{})},e.prototype.loadJSONSpecInDir=function(){var e=this.loadAllSpec(o(2469)),t=this.loadAllSpec(o(5477));return(0,f.merge)(e,t)},e.prototype.loadJsonSpec=function(){var e=this,t=this.loadJSONSpecInDir();Object.keys(t).forEach((function(n){e.addEndpointDescription(n,t[n])}))},e.prototype.loadJSSpec=function(){var e=this;Un.forEach((function(t){return t(e)}))},e}(),Gn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jn=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.description=r,o}return Gn(t,e),t.prototype.getTerms=function(){var e={name:this.name};return"__flag__"===this.description?e.meta="flag":(e.meta="param",e.insertValue=this.name+"="),[e]},t}(et),$n=function(){function e(e,t){var n=this;this.rootComponent=new Xe("ROOT"),h().isUndefined(t)&&(t={pretty:"__flag__",format:["json","yaml"],filter_path:""}),e=h().clone(e||{}),h().defaults(e,t),h().each(e,(function(e,t){var r=new Jn(t,n.rootComponent,e);Array.isArray(e)?new nt(t,e,r):"__flag__"===e&&new nt(t,["true","false"],r)}))}return e.prototype.getTopLevelComponents=function(){return this.rootComponent.next},e}();function Vn(e,t){function n(){}n.prototype=e;var r=new n;return t&&(t.unshift(r),h().assign.apply(h(),t),t.shift()),r}function Wn(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function Hn(e,t,n,r){if(!e||0===e.length)return t;var o=e[0],i=[];return h().each(t,(function(e){var t=Vn(n,e.contextExtensionList);h().each(e.components,(function(n){var s=n.match(o,t,r);if(s&&!h().isEmpty(s)){var a,l=void 0;a=s.next&&!Array.isArray(s.next)?[s.next]:s.next,s.context_values?(l=[],[].push.apply(l,e.contextExtensionList),l.push(s.context_values)):l=e.contextExtensionList;var c=e.priority;h().isNumber(s.priority)&&(c=h().isNumber(c)?Math.min(c,s.priority):s.priority),i.push(new Wn(n.name,a,l,e.depth+1,c))}}))})),0===i.length?h().map(t,(function(e){return new Wn(e.name,[],e.contextExtensionList)})):Hn(e.slice(1),i,n,r)}function Kn(e,t,n,r,o){var i=Hn(e,[new Wn("ROOT",o,[])],t,n);if(r){var s=[];h().each(i,(function(e){var r=Vn(t,e.contextExtensionList);h().each(e.components,(function(e){h().each(e.getTerms(r,n),(function(e){h().isObject(e)||(e={name:e}),s.push(e)}))}))})),s=h().uniq(s),t.autoCompleteSet=s}if(0!==i.length){var a=void 0;i=h().sortBy(i,(function(e){return h().isNumber(e.priority)?e.priority:Number.MAX_VALUE})),!(a=h().find(i,(function(e){return h().isEmpty(e.components)})))&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),h().each(a.contextExtensionList,(function(e){h().assign(t,e)}))}}var Qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Yn(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}var Xn,Zn=function(e){function t(t,n){var r=e.call(this,"__scope_link")||this;return h().isString(t)&&"."===t[0]&&(t="."===t?n.endpointId:n.endpointId+t),r.link=t,r.compilingContext=n,r}return Qn(t,e),t.prototype.resolveLinkToComponents=function(e,t){if(h().isFunction(this.link))return nr(this.link(e,t),this.compilingContext);if(!h().isString(this.link))throw new Error("unsupported link format",this.link);var n,r=this.link.replace(/\./g,"{").split(/(\{)/),o=r[0];try{if("GLOBAL"===o){if(r.length<3)throw new Error("missing term in global link: "+this.link);var i=r[2];n=e.globalComponentResolver(i),r=r.slice(3)}else r=r.slice(1),n=e.endpointComponentResolver(o)}catch(e){throw new Error("failed to resolve link ["+this.link+"]: "+e)}return function(e,t,n,r){var o=Hn(e,[new Wn("ROOT",r,[])],t,n);return[].concat.apply([],h().map(o,"components"))}(r,e,t,n)},t.prototype.getTerms=function(e,t){var n=[],r=this.resolveLinkToComponents(e,t);return h().each(r,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]},o=this.resolveLinkToComponents(t,n);return h().each(o,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(Xe);function er(e){if(e.__template)return e.__raw&&h().isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return er(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(1===e.length&&h().isObject(e[0])){var t=er(e[0]);return null!=t?[t]:[]}return[]}return h().isObject(e)?{}:(h().isString(e)&&/^\{.*\}$/.test(e),e)}function tr(e){var t={},n=er(e);return h().isUndefined(n)||(t.template=n),t}function nr(e,t){if(Array.isArray(e))return[or(e,t)];if(h().isObject(e)){if(e.__scope_link)return[new Zn(e.__scope_link,t)];if(e.__any_of)return[or(e.__any_of,t)];if(e.__one_of)return h().flatten(h().map(e.__one_of,(function(e){return nr(e,t)})));var n=function(e,t){var n=new et("{"),r=[],o=[];return h().each(e,(function(e,n){if(0!==n.indexOf("__")){var i,s=tr(e);/^\{.*\}$/.test(n)?(i=rr(n,t,s.template),o.push(i)):"*"===n?(i=new Xe(n),o.push(i)):(s.name=n,i=new et(n,null,[s]),r.push(i)),h().map(nr(e,t),(function(e){i.addComponent(e)}))}})),n.addComponent(new ut("inner",r,o)),n}(e,t);return e.__condition?[ir(e.__condition,n)]:[n]}return h().isString(e)&&/^\{.*\}$/.test(e)?[rr(e,t)]:[new et(e)]}function rr(e,t,n){e=e.substr(1,e.length-2).toLowerCase();var r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),h().isUndefined(n)||(r=function(e,t){var n=e.getTerms;return e.getTerms=function(r,o){var i=n.call(e,r,o);return i?i=h().map(i,(function(e){return h().isObject(e)||(e={name:e}),h().defaults(e,t)})):i},e}(r,{template:n})),r}function or(e,t){var n=new et("[");return h().each(e,(function(e){h().each(nr(e,t),(function(e){n.addComponent(e)}))})),n}function ir(e,t){if(e.lines_regex)return new st((function(t,n){var r=n.getLines(t.requestStartRow,n.getCurrentPosition().lineNumber).join("\n");return new RegExp(e.lines_regex,"m").test(r)}),t);throw"unknown condition type - got: "+JSON.stringify(e)}function sr(e,t,n){return nr(t,new Yn(e,n))}function ar(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new mt(e),this.globalBodyComponentFactories=t,this.name=""}(Xn=ar.prototype).addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=sr("GLOBAL."+e,t,this.globalBodyComponentFactories)},Xn.getGlobalAutocompleteComponents=function(e,t){var n=this.globalRules[e];if(h().isUndefined(n)&&(t||h().isUndefined(t)))throw new Error("failed to resolve global components for ['"+e+"']");return n},Xn.addEndpointDescription=function(e,t){var n=this,r={};h().assign(r,t||{}),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),h().each(r.patterns,(function(e){n.urlPatternMatcher.addEndpoint(e,r)})),r.paramsAutocomplete=new $n(r.url_params),r.bodyAutocompleteRootComponents=sr(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[e]=r},Xn.getEndpointDescriptionByEndpoint=function(e){return this.endpoints[e]},Xn.getTopLevelUrlCompleteComponents=function(e){return this.urlPatternMatcher.getTopLevelComponents(e)},Xn.getUnmatchedEndpointComponents=function(){return[new lt("__global__")]},Xn.clear=function(){this.endpoints={},this.globalRules={}};const lr=ar;var cr=new lr,ur=function(e){return"_"===e[0]&&"_all"!==e},pr=function(e,t){return new Ft(e,t)},dr={getComponent:function(e,t,n){return this[e]?this[e]:n?pr:void 0},index:function(e,t){if(!ur(e))return new Rt(e,t,!1)},indices:function(e,t){if(!ur(e))return new Rt(e,t,!0)},type:function(e,t){return new Dt(e,t,!1)},types:function(e,t){return new Dt(e,t,!0)},id:function(e,t){return pr(e,t)},transform_id:function(e,t){return pr(e,t)},username:function(e,t){return new Jt(e,t)},user:function(e,t){return new Jt(e,t)},template:function(e,t){return new zt(e,t)},task_id:function(e,t){return pr(e,t)},ids:function(e,t){return pr(e,t)},fields:function(e,t){return new At(e,t,!0)},field:function(e,t){return new At(e,t,!1)},nodes:function(e,t){return new nt(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new nt(e,[],t,!1)}};function fr(e){var t=function(e){return cr.getEndpointDescriptionByEndpoint(e)}(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function hr(e){return cr.getTopLevelUrlCompleteComponents(e)}function _r(e,t){return cr.getGlobalAutocompleteComponents(e,t)}var mr=new Bn;mr.start();var gr=mr.asJson();cr=function(e,t,n){var r=new lr(t=t||dr,n=n||t),o=[];return h().each(e,(function(e,t){o.unshift(t),h().each(e.globals||{},(function(e,t){r.addGlobalAutocompleteRules(t,e)})),h().each(e.endpoints||{},(function(e,t){r.addEndpointDescription(t,e)}))})),r.name=o.join(","),r}({es:gr});var yr={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};const wr=function(){function e(e){this.editor=e,this.MODE=yr}return e.prototype.getRowParseMode=function(e){void 0===e&&(e=this.editor.getCurrentPosition().lineNumber);var t=this.editor.getLineCount();if(e>t||e<1)return yr.BETWEEN_REQUESTS;var n=this.editor.getLineState(e);if(!n)return yr.BETWEEN_REQUESTS;if("start"!==n&&"start-sql"!==n)return yr.IN_REQUEST;var r=(this.editor.getLineValue(e)||"").trim();return r&&"#"!==r[0]?r.indexOf("}",r.length-1)>=0?++e<t+1&&0===(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?yr.MULTI_DOC_CUR_DOC_END|yr.IN_REQUEST:yr.REQUEST_END|yr.MULTI_DOC_CUR_DOC_END:++e>=t+1||0!==(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?yr.REQUEST_START|yr.REQUEST_END:yr.REQUEST_START:yr.BETWEEN_REQUESTS},e.prototype.rowPredicate=function(e,t,n){return(this.getRowParseMode(e)&n)>0},e.prototype.isEndRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.REQUEST_END)},e.prototype.isRequestEdge=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.REQUEST_END|yr.REQUEST_START)},e.prototype.isStartRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.REQUEST_START)},e.prototype.isInBetweenRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.BETWEEN_REQUESTS)},e.prototype.isInRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.IN_REQUEST)},e.prototype.isMultiDocDocEndRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,yr.MULTI_DOC_CUR_DOC_END)},e.prototype.isEmptyToken=function(e){var t=e&&e.getCurrentToken?e.getCurrentToken():e;return!t||"whitespace"===t.type},e.prototype.isUrlOrMethodToken=function(e){var t=(null==e?void 0:e.getCurrentToken())||e;return t&&t.type&&("method"===t.type||0===t.type.indexOf("url"))},e.prototype.nextNonEmptyToken=function(e){for(var t=e.stepForward();t&&this.isEmptyToken(t);)t=e.stepForward();return t},e.prototype.prevNonEmptyToken=function(e){for(var t=e.stepBackward();(t||e.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(t);)t=e.stepBackward();return t},e}();var vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function br(e){return!("_all"===e||"_"!==e[0])}var xr=function(e){function t(t,n,r){return e.call(this,t,St,n,r)||this}return vr(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,br))},t.prototype.getDefaultTermMeta=function(){return"command"},t.prototype.getContextKey=function(){return"command"},t}(nt),Or=function(){return Or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Or.apply(this,arguments)},jr=null;function Er(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function kr(e,t,n,r){var o=Ie({editor:e,position:t}),i=t,s=[],a={};a.tokensLineCache=o.tokensLineCache;var l=3,c=o.getCurrentToken();a.token=c,c?1===i.column&&(c=o.stepBackward(),l=1):1===i.column&&(c=o.stepBackward(),l=3);for(var u,p=!1;c&&-1===c.type.indexOf("url")&&"method"!==c.type;c=o.stepBackward())switch("whitespace"!==c.type&&(p=!0),c.type){case"variable":0===l&&s.unshift(c.value.trim().replace(/"/g,"")),l=1;break;case"paren.lparen":s.unshift(c.value),1===l&&(l=0);break;case"paren.rparen":l=1;var d=1;for(c=o.stepBackward();c&&d>0;){switch(c.type){case"paren.lparen":d--;break;case"paren.rparen":d++}d>0&&(c=o.stepBackward())}if(!c)return{};continue;case"punctuation.end_triple_quote":for(l=1,c=o.stepBackward();c;c=o.stepBackward())if("punctuation.start_triple_quote"===c.type){c=o.stepBackward();break}if(!c)return{};continue;case"punctuation.start_triple_quote":3===l?l=0:0===l&&(l=1),s.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":3===l?l=0:0===l&&(l=1);break;case"punctuation.comma":3===l&&(l=1);break;case"punctuation.colon":case"whitespace":3===l&&(l=0)}if(p&&(!s||0===s.length)&&!r)return{};if(a.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(c&&("url.part"===c.type||"url.param"===c.type||"url.value"===c.type)||"url.select_keyword"===c.type)if(!r||"url.part"!==c.type&&"url.select_keyword"!==c.type||(a.urlTokenPath.push(c.value),a.urlTokenPath.push(dt)),"whitespace"===(c=o.stepBackward()).type)for(;"whitespace"===c.type;)c=o.stepBackward();else for(;""===c.value.trim();)c=o.stepBackward();s=null}for(a.bodyTokenPath=s,a.urlParamsTokenPath=null,a.requestStartRow=o.getCurrentPosition().lineNumber;c&&Er(c);){switch(c.type){case"url.value":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.param":var f=u;(u={})[c.value]=f;break;case"url.amp":case"url.questionmark":a.urlParamsTokenPath||(a.urlParamsTokenPath=[]),a.urlParamsTokenPath.unshift(u||{}),u=null}c=o.stepBackward()}for(u=null;c&&-1!==c.type.indexOf("url");){switch(c.type){case"url.select_keyword":case"url.part":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.slash":u&&(a.urlTokenPath.unshift(u),u=null)}for(c=n.prevNonEmptyToken(o);""===c.value.trim();)c=n.prevNonEmptyToken(o)}return u&&a.urlTokenPath.unshift(u),a.bodyTokenPath||a.urlParamsTokenPath?a.urlTokenPath.push(dt):a.urlTokenPath.length>0&&(a.otherTokenValues=a.urlTokenPath[0]),c&&"method"===c.type&&(a.method=c.value),a}function Sr(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Tr(e,t,n){return h().map(e,(function(e){return"object"!=typeof e&&(e={name:e}),h().defaults(e,{meta:t,template:n})}))}function Nr(e){var t=e.coreEditor,n=new wr(t);function r(e){var r,i=e.context;o(i,t.getCurrentPosition(),e.insertValue),"body"===i.autoCompleteType?(r="string"==typeof e.insertValue?'"'+e.insertValue+'"':e.insertValue+"","["!==e.insertValue&&"{"!==e.insertValue||(r="")):r=e.insertValue+"";var a=r,l=!1;if(!i.addTemplate||h().isUndefined(e.template)||h().isNull(e.template))l=!0,"["===e.value?a+="[]":"{"===e.value?a+="{}":l=!1;else{var c=void 0;c=e.template.__raw&&e.template.value?e.template.value.split("\n"):De(e.template,!0).split("\n");var u=t.getLineValue(i.rangeToReplace.start.lineNumber);u=u.match(/^\s*/)[0];for(var p=1;p<c.length;p++)c[p]=u+c[p];a+=": "+c.join("\n"),l=!0}a=i.prefixToAdd+a+i.suffixToAdd,t.off("changeSelection",s),i.rangeToReplace.start.column!==i.rangeToReplace.end.column?t.replace(i.rangeToReplace,a):t.insert(a),t.clearSelection();var d={lineNumber:i.rangeToReplace.start.lineNumber,column:i.rangeToReplace.start.column+r.length+i.prefixToAdd.length+(l?0:i.suffixToAdd.length)},f=Ie({editor:t,position:d});if("body"===i.autoCompleteType){var _=n.nextNonEmptyToken(f);switch(_?_.type:"NOTOKEN"){case"paren.rparen":d=f.getCurrentPosition();break;case"punctuation.colon":"paren.lparen"===((_=n.nextNonEmptyToken(f))||{}).type&&(_=n.nextNonEmptyToken(f),d=f.getCurrentPosition(),_&&0===_.value.indexOf('"')&&d.column++);break;case"paren.lparen":case"punctuation.comma":f.stepForward(),d=f.getCurrentPosition()}t.moveCursorToPosition(d)}t.on("changeSelection",s)}function o(e,r,o){e.updatedForToken=h().clone(t.getTokenAt({lineNumber:r.lineNumber,column:r.column})),e.updatedForToken||(e.updatedForToken={value:"",type:"",position:{column:r.column,lineNumber:r.lineNumber}});var i=e.createdWithToken;switch(i||(i=e.updatedForToken),e.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0;break;default:o&&e.updatedForToken.value===o?(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0):(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:r.column},end:{lineNumber:r.lineNumber,column:r.column}},e.replacingToken=!1)}switch(e.textBoxPosition={lineNumber:e.rangeToReplace.start.lineNumber,column:e.rangeToReplace.start.column},e.autoCompleteType){case"path":case"url_params":!function(e){e.prefixToAdd="",e.suffixToAdd=""}(e);break;case"method":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r=Ie({editor:t,position:t.getCurrentPosition()}),o=r.getCurrentPosition().lineNumber,i=n.nextNonEmptyToken(r);r.getCurrentPosition().lineNumber===o&&i||(e.suffixToAdd=" ")}(e);break;case"body":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r,o=Ie({editor:t,position:t.getCurrentPosition()}),i=n.nextNonEmptyToken(o);switch(i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":e.addTemplate=!0;break;case"punctuation.colon":if(e.addTemplate=!1,!(i=n.nextNonEmptyToken(o))||"{"!==i.value)break;if(!(i=n.nextNonEmptyToken(o))||"}"!==i.value)break;switch(e.addTemplate=!0,e.rangeToReplace.end.lineNumber=o.getCurrentTokenLineNumber(),e.rangeToReplace.end.column=o.getCurrentTokenColumn()+i.value.length,(i=n.nextNonEmptyToken(o))?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:e.suffixToAdd=", "}break;default:e.addTemplate=!0,e.suffixToAdd=", "}if(i=(o=Ie({editor:t,position:t.getCurrentPosition()})).getCurrentToken(),e.replacingToken)r=0;else{var s=t.getCurrentPosition();r=s.column===e.updatedForToken.position.column?-1:s.column<e.updatedForToken.position.column+e.updatedForToken.value.length?0:1}switch((n.isEmptyToken(i)||r<=0)&&(i=n.prevNonEmptyToken(o)),i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:i&&i.type.indexOf("url")<0&&(e.prefixToAdd=", ")}}(e)}}var i=h().debounce((function(e){var r=null;try{r=t.getTokenAt(e)}catch(e){}if(!r){if(1===e.lineNumber)return void(jr=null);r={position:{column:0,lineNumber:0},value:"",type:""}}if(r.position.lineNumber=e.lineNumber,n.isEmptyToken(r)){var o=t.getTokenAt(Or(Or({},e),{column:e.column+1}));n.isEmptyToken(o)?(r.position.column=e.column,jr=r):(o.position.lineNumber=e.lineNumber,jr=o)}else if(jr)if(jr.position.column===r.position.column&&jr.position.lineNumber===r.position.lineNumber&&jr.value!==r.value){switch(r.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}jr=r,t.execCommand("startAutocomplete")}else jr=r;else jr=r}),100);function s(){var e=t.getCurrentPosition();e&&!t.isCompleterActive()&&i(e)}return t.on("changeSelection",s),{getCompletions:function(e,i,s){try{var a=function(e,r){var i={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:e};switch(i.autoCompleteType=function(e){var r=n.getRowParseMode();if(r&n.MODE.IN_REQUEST)return"body";if(r&n.MODE.REQUEST_START){for(var o=Ie({editor:t,position:e}),i=o.getCurrentToken();"url.comma"===i.type;)i=o.stepBackward();switch(i.type){case"method":return"method";case"whitespace":return"method"===((i=n.prevNonEmptyToken(o))||{}).type||Sr(i)?"path":Er(i)?"url_params":null;default:return Sr(i)?"path":Er(i)?"url_params":null}}return r&n.MODE.REQUEST_END?"body":""===t.getLineValue(e.lineNumber).trim()?(r=n.getRowParseMode(e.lineNumber-1))&n.MODE.REQUEST_START&&r&n.MODE.REQUEST_END?"body":"method":null}(r),i.autoCompleteType){case"path":!function(e,r){var o,i,s,a=kr(t,r,n);if(e.method=a.method,e.token=a.token,e.otherTokenValues=a.otherTokenValues,e.urlTokenPath=a.urlTokenPath,"LOAD"===a.method)s=[new xr("command",null,!0)];else if("SELECT"===a.method){var l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),c=function(e,t){var n=[],r=-1;return(e||[]).forEach((function(o,i){var s=o.value.toUpperCase();if(["FROM","JOIN"].includes(s)&&e.length>i+2&&i+2!=t){var a=e[i+2].value;a.includes("(")||(a=a.replace(/^"+/,"").replace(/"+$/,""),n.push(a),r=i)}})),{indices:n.join(","),idx:r}}(a.tokensLineCache,l),u=c.indices,p=c.idx;if(p>-1&&l<p){var d=jt(u);return void(e.autoCompleteSet=Tr(d,"field"))}if((f=(null===(o=a.otherTokenValues)||void 0===o?void 0:o.length)||0)>0)switch(a.otherTokenValues[f-1].toUpperCase()){case"FROM":a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new Rt("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(f>1&&!a.token.value.includes("="))return""===u&&(u=(u=a.otherTokenValues[f-2]).replace(/^"+/,"").replace(/"+$/,"")),d=jt(u),void(e.autoCompleteSet=Tr(d,"field"))}}else if("FROM"==a.method)if(l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),"FROM"==a.tokensLineCache[l-2].value)a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new Rt("indices",null,!0)]);else{u=(u=a.otherTokenValues[0]).replace(/^"+/,"").replace(/"+$/,"");for(var f=(null===(i=a.otherTokenValues)||void 0===i?void 0:i.length)||0,h=!0,_=null,m=l-1;m>=0;m--){var g=a.tokensLineCache[m];if(null===_&&""!=g.value.trim()&&(_=g),"url.select_keyword"==g.type&&"SELECT"!=g.value.toUpperCase()){h=!1;break}}switch(h&&","!=_.value&&"SELECT"!=_.value.toUpperCase()&&(h=!1),a.otherTokenValues[f-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":h=!0}if(h&&!a.token.value.includes("="))return d=jt(u),void(e.autoCompleteSet=Tr(d,"field"))}else s=hr(e.method);Kn(e.urlTokenPath,e,t,!0,s),e.autoCompleteSet=Tr(e.autoCompleteSet,"endpoint")}(i,r);break;case"url_params":!function(e,r){var o=kr(t,r,n);if(e.method=o.method,e.otherTokenValues=o.otherTokenValues,e.urlTokenPath=o.urlTokenPath,!o.urlTokenPath)return e;if(Kn(o.urlTokenPath,e,t,!1,hr(e.method)),!e.endpoint)return e;if(!o.urlParamsTokenPath)return e;var i=[],s=o.urlParamsTokenPath.pop();s&&(i=Object.keys(s),e.otherTokenValues=s[i[0]]),Kn(i,e,t,!0,e.endpoint.paramsAutocomplete.getTopLevelComponents(e.method))}(i,r);break;case"method":!function(e){e.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((function(e,t){return{name:e,score:-t,meta:"method"}}))}(i);break;case"body":!function(e,r){var o,i=kr(t,r,n);e.method=i.method,e.otherTokenValues=i.otherTokenValues,e.urlTokenPath=i.urlTokenPath,e.requestStartRow=i.requestStartRow,i.urlTokenPath&&(Kn(i.urlTokenPath,e,t,!1,hr(e.method)),e.bodyTokenPath=i.bodyTokenPath,i.bodyTokenPath&&(e.endpointComponentResolver=fr,e.globalComponentResolver=_r,o=e.endpoint?e.endpoint.bodyAutocompleteRootComponents:cr.getUnmatchedEndpointComponents(),Kn(i.bodyTokenPath,e,t,!0,o)))}(i,r);break;default:return null}return i.autoCompleteSet?(o(i,r),i.createdWithToken=h().clone(i.updatedForToken),i):null}(t,e);if(a){var l=h().map(a.autoCompleteSet.filter((function(e){return Boolean(e)&&null!=e.name})),(function(e){var n={value:(e="object"!=typeof e?{name:e}:h().clone(e)).name,meta:"API",score:0,context:a};return"LOAD"===a.method&&"path"===a.autoCompleteType&&(n.completer={insertMatch:function(){r(e),t.execCommand("exec_request")}}),"body"===a.autoCompleteType&&(n.completer={insertMatch:function(){return r(e)}}),h().defaults(e,n)}));l.sort((function(e,t){return e.score>t.score?-1:e.score<t.score?1:e.name<t.name?-1:e.name===t.name?0:1})),s(null,h().map(l,(function(e,t){return e.insertValue=e.insertValue||e.value,e.value=""+e.value,e.score=-t,e})))}else s(null,[])}catch(e){console.error(e),s(e,null)}}}}var Rr={id:"sense_editor/mode/worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the javascript\n mode from the brace distro.\n*/\n\n(function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (let testPath = id, tail = ""; testPath; ) {\n let alias = paths[testPath];\n if ("string" === typeof alias) return alias + tail;\n if (alias) {\n return (\n alias.location.replace(/\\/*$/, "/") +\n (tail || alias.main || alias.name)\n );\n }\n if (alias === !1) return "";\n let i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n (tail = testPath.substr(i) + tail), (testPath = testPath.slice(0, i));\n }\n return id;\n }\n if (\n !(\n (void 0 !== window?.window && window?.document) ||\n (window?.acequire && window?.define)\n )\n ) {\n window?.console ||\n ((window.console = function() {\n let msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({ type: "log", data: msgs });\n }),\n (window.console.error = window.console.warn = window.console.log = window.console.trace =\n window?.console)),\n (window.window = window),\n (window.ace = window),\n (window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack,\n },\n });\n }),\n (window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n let chunks = moduleName.split("!");\n return (\n window.normalizeModule(parentId, chunks[0]) +\n "!" +\n window.normalizeModule(parentId, chunks[1])\n );\n }\n if ("." == moduleName.charAt(0)) {\n let base = parentId\n .split("/")\n .slice(0, -1)\n .join("/");\n for (\n moduleName = (base ? base + "/" : "") + moduleName;\n -1 !== moduleName.indexOf(".") && previous != moduleName;\n\n ) {\n var previous = moduleName;\n moduleName = moduleName\n .replace(/^\\.\\//, "")\n .replace(/\\/\\.\\//, "/")\n .replace(/[^\\/]+\\/\\.\\.\\//, "");\n }\n }\n return moduleName;\n }),\n (window.acequire = function acequire(parentId, id) {\n if ((id || ((id = parentId), (parentId = null)), !id.charAt)) {\n throw Error(\n "worker.js acequire() accepts only (parentId, id) as arguments"\n );\n }\n id = window.normalizeModule(parentId, id);\n let module = window?.acequire.modules[id];\n if (module) {\n return (\n module.initialized ||\n ((module.initialized = !0),\n (module.exports = module.factory().exports)),\n module.exports\n );\n }\n if (!window?.acequire.tlns) return console.log("unable to load " + id);\n let path = resolveModuleId(id, window?.acequire.tlns);\n return (\n ".js" != path.slice(-3) && (path += ".js"),\n (window.acequire.id = id),\n (window.acequire.modules[id] = {}),\n importScripts(path),\n window.acequire(parentId, id)\n );\n }),\n (window.acequire.modules = {}),\n (window.acequire.tlns = {}),\n (window.define = function(id, deps, factory) {\n if (\n (2 == arguments.length\n ? ((factory = deps),\n "string" !== typeof id &&\n ((deps = id), (id = window?.acequire.id)))\n : 1 == arguments.length &&\n ((factory = id), (deps = []), (id = window?.acequire.id)),\n "function" !== typeof factory)\n ) {\n return (\n (window.acequire.modules[id] = {\n exports: factory,\n initialized: !0,\n }),\n void 0\n );\n }\n deps.length || (deps = ["require", "exports", "module"]);\n let req = function(childId) {\n return window.acequire(id, childId);\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n let module = this,\n returnExports = factory.apply(\n this,\n deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep);\n }\n })\n );\n return returnExports && (module.exports = returnExports), module;\n },\n };\n }),\n (window.define.amd = {}),\n (window.acequire.tlns = {}),\n (window.initBaseUrls = function(topLevelNamespaces) {\n for (let i in topLevelNamespaces) {\n window.acequire.tlns[i] = topLevelNamespaces[i];\n }\n }),\n (window.initSender = function() {\n let EventEmitter = window?.acequire("ace/lib/event_emitter")\n .EventEmitter,\n oop = window?.acequire("ace/lib/oop"),\n Sender = function() {};\n return (\n function() {\n oop.implement(this, EventEmitter),\n (this.callback = function(data, callbackId) {\n postMessage({ type: "call", id: callbackId, data: data });\n }),\n (this.emit = function(name, data) {\n postMessage({ type: "event", name: name, data: data });\n });\n }.call(Sender.prototype),\n new Sender()\n );\n });\n let main = (window.main = null),\n sender = (window.sender = null);\n window.onmessage = function(e) {\n let msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command) {\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command])\n throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args);\n }\n } else if (msg.init) {\n window.initBaseUrls(msg.tlns),\n acequire("ace/lib/es5-shim"),\n (sender = window.sender = window.initSender());\n let clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender);\n }\n };\n }\n})(this),\n ace.define("ace/lib/oop", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.inherits = function(ctor, superCtor) {\n (ctor.super_ = superCtor),\n (ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0,\n },\n }));\n }),\n (exports.mixin = function(obj, mixin) {\n for (let key in mixin) obj[key] = mixin[key];\n return obj;\n }),\n (exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin);\n });\n }),\n ace.define("ace/range", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n let comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n (this.start = { row: startRow, column: startColumn }),\n (this.end = { row: endRow, column: endColumn });\n };\n (function() {\n (this.isEqual = function(range) {\n return (\n this.start.row === range.start.row &&\n this.end.row === range.end.row &&\n this.start.column === range.start.column &&\n this.end.column === range.end.column\n );\n }),\n (this.toString = function() {\n return (\n "Range: [" +\n this.start.row +\n "/" +\n this.start.column +\n "] -> [" +\n this.end.row +\n "/" +\n this.end.column +\n "]"\n );\n }),\n (this.contains = function(row, column) {\n return 0 == this.compare(row, column);\n }),\n (this.compareRange = function(range) {\n let cmp,\n end = range.end,\n start = range.start;\n return (\n (cmp = this.compare(end.row, end.column)),\n 1 == cmp\n ? ((cmp = this.compare(start.row, start.column)),\n 1 == cmp ? 2 : 0 == cmp ? 1 : 0)\n : -1 == cmp\n ? -2\n : ((cmp = this.compare(start.row, start.column)),\n -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n );\n }),\n (this.comparePoint = function(p) {\n return this.compare(p.row, p.column);\n }),\n (this.containsRange = function(range) {\n return (\n 0 == this.comparePoint(range.start) &&\n 0 == this.comparePoint(range.end)\n );\n }),\n (this.intersects = function(range) {\n let cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp;\n }),\n (this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column;\n }),\n (this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column;\n }),\n (this.setStart = function(row, column) {\n "object" === typeof row\n ? ((this.start.column = row.column), (this.start.row = row.row))\n : ((this.start.row = row), (this.start.column = column));\n }),\n (this.setEnd = function(row, column) {\n "object" === typeof row\n ? ((this.end.column = row.column), (this.end.row = row.row))\n : ((this.end.row = row), (this.end.column = column));\n }),\n (this.inside = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column) || this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideStart = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row\n ? this.start.row > row\n ? -1\n : row > this.end.row\n ? 1\n : this.start.row === row\n ? column >= this.start.column\n ? 0\n : -1\n : this.end.row === row\n ? this.end.column >= column\n ? 0\n : 1\n : 0\n : this.start.column > column\n ? -1\n : column > this.end.column\n ? 1\n : 0;\n }),\n (this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.compare(row, column);\n }),\n (this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = { row: lastRow + 1, column: 0 };\n else if (firstRow > this.end.row) {\n var end = { row: firstRow, column: 0 };\n }\n if (this.start.row > lastRow) {\n var start = { row: lastRow + 1, column: 0 };\n } else if (firstRow > this.start.row) {\n var start = { row: firstRow, column: 0 };\n }\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.extend = function(row, column) {\n let cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = { row: row, column: column };\n else var end = { row: row, column: column };\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.isEmpty = function() {\n return (\n this.start.row === this.end.row &&\n this.start.column === this.end.column\n );\n }),\n (this.isMultiLine = function() {\n return this.start.row !== this.end.row;\n }),\n (this.clone = function() {\n return Range.fromPoints(this.start, this.end);\n }),\n (this.collapseRows = function() {\n return 0 == this.end.column\n ? new Range(\n this.start.row,\n 0,\n Math.max(this.start.row, this.end.row - 1),\n 0\n )\n : new Range(this.start.row, 0, this.end.row, 0);\n }),\n (this.toScreenRange = function(session) {\n let screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(\n screenPosStart.row,\n screenPosStart.column,\n screenPosEnd.row,\n screenPosEnd.column\n );\n }),\n (this.moveBy = function(row, column) {\n (this.start.row += row),\n (this.start.column += column),\n (this.end.row += row),\n (this.end.column += column);\n });\n }.call(Range.prototype),\n (Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column);\n }),\n (Range.comparePoints = comparePoints),\n (Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n }),\n (exports.Range = Range));\n }),\n ace.define("ace/apply_delta", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n exports.applyDelta = function(docLines, delta) {\n let row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) {\n docLines[row] =\n line.substring(0, startColumn) +\n delta.lines[0] +\n line.substring(startColumn);\n } else {\n let args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args),\n (docLines[row] = line.substring(0, startColumn) + docLines[row]),\n (docLines[row + delta.lines.length - 1] += line.substring(\n startColumn\n ));\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow\n ? (docLines[row] =\n line.substring(0, startColumn) + line.substring(endColumn))\n : docLines.splice(\n row,\n endRow - row + 1,\n line.substring(0, startColumn) +\n docLines[endRow].substring(endColumn)\n );\n }\n };\n }),\n ace.define(\n "ace/lib/event_emitter",\n ["require", "exports", "module"],\n function(acequire, exports) {\n let EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0;\n },\n preventDefault = function() {\n this.defaultPrevented = !0;\n };\n (EventEmitter._emit = EventEmitter._dispatchEvent = function(\n eventName,\n e\n ) {\n this._eventRegistry || (this._eventRegistry = {}),\n this._defaultHandlers || (this._defaultHandlers = {});\n let listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n ("object" === typeof e && e) || (e = {}),\n e.type || (e.type = eventName),\n e.stopPropagation || (e.stopPropagation = stopPropagation),\n e.preventDefault || (e.preventDefault = preventDefault),\n (listeners = listeners.slice());\n for (\n let i = 0;\n listeners.length > i &&\n (listeners[i](e, this), !e.propagationStopped);\n i++\n );\n return defaultHandler && !e.defaultPrevented\n ? defaultHandler(e, this)\n : void 0;\n }\n }),\n (EventEmitter._signal = function(eventName, e) {\n let listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (let i = 0; listeners.length > i; i++) listeners[i](e, this);\n }\n }),\n (EventEmitter.once = function(eventName, callback) {\n let _self = this;\n callback &&\n this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback),\n callback.apply(null, arguments);\n });\n }),\n (EventEmitter.setDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (\n (handlers ||\n (handlers = this._defaultHandlers = { _disabled_: {} }),\n handlers[eventName])\n ) {\n let old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []),\n disabled.push(old);\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n handlers[eventName] = callback;\n }),\n (EventEmitter.removeDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (handlers) {\n let disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) {\n handlers[eventName],\n disabled && this.setDefaultHandler(eventName, disabled.pop());\n } else if (disabled) {\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n }\n }),\n (EventEmitter.on = EventEmitter.addEventListener = function(\n eventName,\n callback,\n capturing\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n return (\n listeners || (listeners = this._eventRegistry[eventName] = []),\n -1 == listeners.indexOf(callback) &&\n listeners[capturing ? "unshift" : "push"](callback),\n callback\n );\n }),\n (EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(\n eventName,\n callback\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n if (listeners) {\n let index = listeners.indexOf(callback);\n -1 !== index && listeners.splice(index, 1);\n }\n }),\n (EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = []);\n }),\n (exports.EventEmitter = EventEmitter);\n }\n ),\n ace.define(\n "ace/anchor",\n ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = (exports.Anchor = function(doc, row, column) {\n (this.$onChange = this.onChange.bind(this)),\n this.attach(doc),\n column === void 0\n ? this.setPosition(row.row, row.column)\n : this.setPosition(row, column);\n });\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n let bColIsAfter = equalPointsInOrder\n ? point1.column <= point2.column\n : point1.column < point2.column;\n return (\n point1.row < point2.row || (point1.row == point2.row && bColIsAfter)\n );\n }\n function $getTransformedPoint(delta, point, moveIfEqual) {\n let deltaIsInsert = "insert" == delta.action,\n deltaRowShift =\n (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift =\n (deltaIsInsert ? 1 : -1) *\n (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual)\n ? { row: point.row, column: point.column }\n : $pointsInOrder(deltaEnd, point, !moveIfEqual)\n ? {\n row: point.row + deltaRowShift,\n column:\n point.column +\n (point.row == deltaEnd.row ? deltaColShift : 0),\n }\n : { row: deltaStart.row, column: deltaStart.column };\n }\n oop.implement(this, EventEmitter),\n (this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column);\n }),\n (this.getDocument = function() {\n return this.document;\n }),\n (this.$insertRight = !1),\n (this.onChange = function(delta) {\n if (\n !(\n (delta.start.row == delta.end.row &&\n delta.start.row != this.row) ||\n delta.start.row > this.row\n )\n ) {\n let point = $getTransformedPoint(\n delta,\n { row: this.row, column: this.column },\n this.$insertRight\n );\n this.setPosition(point.row, point.column, !0);\n }\n }),\n (this.setPosition = function(row, column, noClip) {\n let pos;\n if (\n ((pos = noClip\n ? { row: row, column: column }\n : this.$clipPositionToDocument(row, column)),\n this.row != pos.row || this.column != pos.column)\n ) {\n let old = { row: this.row, column: this.column };\n (this.row = pos.row),\n (this.column = pos.column),\n this._signal("change", { old: old, value: pos });\n }\n }),\n (this.detach = function() {\n this.document.removeEventListener("change", this.$onChange);\n }),\n (this.attach = function(doc) {\n (this.document = doc || this.document),\n this.document.on("change", this.$onChange);\n }),\n (this.$clipPositionToDocument = function(row, column) {\n let pos = {};\n return (\n row >= this.document.getLength()\n ? ((pos.row = Math.max(0, this.document.getLength() - 1)),\n (pos.column = this.document.getLine(pos.row).length))\n : 0 > row\n ? ((pos.row = 0), (pos.column = 0))\n : ((pos.row = row),\n (pos.column = Math.min(\n this.document.getLine(pos.row).length,\n Math.max(0, column)\n ))),\n 0 > column && (pos.column = 0),\n pos\n );\n });\n }.call(Anchor.prototype));\n }\n ),\n ace.define(\n "ace/document",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/apply_delta",\n "ace/lib/event_emitter",\n "ace/range",\n "ace/anchor",\n ],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n (this.$lines = [""]),\n 0 === textOrLines.length\n ? (this.$lines = [""])\n : Array.isArray(textOrLines)\n ? this.insertMergedLines({ row: 0, column: 0 }, textOrLines)\n : this.insert({ row: 0, column: 0 }, textOrLines);\n };\n (function() {\n oop.implement(this, EventEmitter),\n (this.setValue = function(text) {\n let len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)),\n this.insert({ row: 0, column: 0 }, text);\n }),\n (this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter());\n }),\n (this.createAnchor = function(row, column) {\n return new Anchor(this, row, column);\n }),\n (this.$split =\n 0 === "aaa".split(/a/).length\n ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n");\n }\n : function(text) {\n return text.split(/\\r\\n|\\r|\\n/);\n }),\n (this.$detectNewLine = function(text) {\n let match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n (this.$autoNewLine = match ? match[1] : "\\n"),\n this._signal("changeNewLineMode");\n }),\n (this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n";\n }\n }),\n (this.$autoNewLine = ""),\n (this.$newLineMode = "auto"),\n (this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode &&\n ((this.$newLineMode = newLineMode),\n this._signal("changeNewLineMode"));\n }),\n (this.getNewLineMode = function() {\n return this.$newLineMode;\n }),\n (this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text;\n }),\n (this.getLine = function(row) {\n return this.$lines[row] || "";\n }),\n (this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1);\n }),\n (this.getAllLines = function() {\n return this.getLines(0, this.getLength());\n }),\n (this.getLength = function() {\n return this.$lines.length;\n }),\n (this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(\n this.getNewLineCharacter()\n );\n }),\n (this.getLinesForRange = function(range) {\n let lines;\n if (range.start.row === range.end.row) {\n lines = [\n this.getLine(range.start.row).substring(\n range.start.column,\n range.end.column\n ),\n ];\n } else {\n (lines = this.getLines(range.start.row, range.end.row)),\n (lines[0] = (lines[0] || "").substring(range.start.column));\n let l = lines.length - 1;\n range.end.row - range.start.row == l &&\n (lines[l] = lines[l].substring(0, range.end.column));\n }\n return lines;\n }),\n (this.insertLines = function(row, lines) {\n return (\n console.warn(\n "Use of document.insertLines is deprecated. Use the insertFullLines method instead."\n ),\n this.insertFullLines(row, lines)\n );\n }),\n (this.removeLines = function(firstRow, lastRow) {\n return (\n console.warn(\n "Use of document.removeLines is deprecated. Use the removeFullLines method instead."\n ),\n this.removeFullLines(firstRow, lastRow)\n );\n }),\n (this.insertNewLine = function(position) {\n return (\n console.warn(\n "Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."\n ),\n this.insertMergedLines(position, ["", ""])\n );\n }),\n (this.insert = function(position, text) {\n return (\n 1 >= this.getLength() && this.$detectNewLine(text),\n this.insertMergedLines(position, this.$split(text))\n );\n }),\n (this.insertInLine = function(position, text) {\n let start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return (\n this.applyDelta(\n { start: start, end: end, action: "insert", lines: [text] },\n !0\n ),\n this.clonePos(end)\n );\n }),\n (this.clippedPos = function(row, column) {\n let length = this.getLength();\n void 0 === row\n ? (row = length)\n : 0 > row\n ? (row = 0)\n : row >= length && ((row = length - 1), (column = void 0));\n let line = this.getLine(row);\n return (\n void 0 == column && (column = line.length),\n (column = Math.min(Math.max(column, 0), line.length)),\n { row: row, column: column }\n );\n }),\n (this.clonePos = function(pos) {\n return { row: pos.row, column: pos.column };\n }),\n (this.pos = function(row, column) {\n return { row: row, column: column };\n }),\n (this.$clipPosition = function(position) {\n let length = this.getLength();\n return (\n position.row >= length\n ? ((position.row = Math.max(0, length - 1)),\n (position.column = this.getLine(length - 1).length))\n : ((position.row = Math.max(0, position.row)),\n (position.column = Math.min(\n Math.max(position.column, 0),\n this.getLine(position.row).length\n ))),\n position\n );\n }),\n (this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n let column = 0;\n this.getLength() > row\n ? ((lines = lines.concat([""])), (column = 0))\n : ((lines = [""].concat(lines)),\n row--,\n (column = this.$lines[row].length)),\n this.insertMergedLines({ row: row, column: column }, lines);\n }),\n (this.insertMergedLines = function(position, lines) {\n let start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column:\n (1 == lines.length ? start.column : 0) +\n lines[lines.length - 1].length,\n };\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines,\n }),\n this.clonePos(end)\n );\n }),\n (this.remove = function(range) {\n let start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n }),\n this.clonePos(start)\n );\n }),\n (this.removeInLine = function(row, startColumn, endColumn) {\n let start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return (\n this.applyDelta(\n {\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n },\n !0\n ),\n this.clonePos(start)\n );\n }),\n (this.removeFullLines = function(firstRow, lastRow) {\n (firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1)),\n (lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1));\n let deleteFirstNewLine =\n lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return (\n this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range),\n }),\n deletedLines\n );\n }),\n (this.removeNewLine = function(row) {\n this.getLength() - 1 > row &&\n row >= 0 &&\n this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""],\n });\n }),\n (this.replace = function(range, text) {\n if (\n (range instanceof Range ||\n (range = Range.fromPoints(range.start, range.end)),\n 0 === text.length && range.isEmpty())\n ) {\n return range.start;\n }\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n let end;\n return (end = text ? this.insert(range.start, text) : range.start);\n }),\n (this.applyDeltas = function(deltas) {\n for (let i = 0; deltas.length > i; i++) this.applyDelta(deltas[i]);\n }),\n (this.revertDeltas = function(deltas) {\n for (let i = deltas.length - 1; i >= 0; i--) {\n this.revertDelta(deltas[i]);\n }\n }),\n (this.applyDelta = function(delta, doNotValidate) {\n let isInsert = "insert" == delta.action;\n (isInsert\n ? 1 >= delta.lines.length && !delta.lines[0]\n : !Range.comparePoints(delta.start, delta.end)) ||\n (isInsert &&\n delta.lines.length > 2e4 &&\n this.$splitAndapplyLargeDelta(delta, 2e4),\n applyDelta(this.$lines, delta, doNotValidate),\n this._signal("change", delta));\n }),\n (this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (\n let lines = delta.lines,\n l = lines.length,\n row = delta.start.row,\n column = delta.start.column,\n from = 0,\n to = 0;\n ;\n\n ) {\n (from = to), (to += MAX - 1);\n let chunk = lines.slice(from, to);\n if (to > l) {\n (delta.lines = chunk),\n (delta.start.row = row + from),\n (delta.start.column = column);\n break;\n }\n chunk.push(""),\n this.applyDelta(\n {\n start: this.pos(row + from, column),\n end: this.pos(row + to, (column = 0)),\n action: delta.action,\n lines: chunk,\n },\n !0\n );\n }\n }),\n (this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice(),\n });\n }),\n (this.indexToPosition = function(index, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n i = startRow || 0,\n l = lines.length;\n l > i;\n i++\n ) {\n if (((index -= lines[i].length + newlineLength), 0 > index))\n return {\n row: i,\n column: index + lines[i].length + newlineLength,\n };\n }\n return { row: l - 1, column: lines[l - 1].length };\n }),\n (this.positionToIndex = function(pos, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n index = 0,\n row = Math.min(pos.row, lines.length),\n i = startRow || 0;\n row > i;\n ++i\n ) {\n index += lines[i].length + newlineLength;\n }\n return index + pos.column;\n });\n }.call(Document.prototype),\n (exports.Document = Document));\n }\n ),\n ace.define("ace/lib/lang", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.last = function(a) {\n return a[a.length - 1];\n }),\n (exports.stringReverse = function(string) {\n return string\n .split("")\n .reverse()\n .join("");\n }),\n (exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0; ) {\n 1 & count && (result += string), (count >>= 1) && (string += string);\n }\n return result;\n });\n let trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n (exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "");\n }),\n (exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "");\n }),\n (exports.copyObject = function(obj) {\n let copy = {};\n for (let key in obj) copy[key] = obj[key];\n return copy;\n }),\n (exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) {\n copy[i] =\n array[i] && "object" == typeof array[i]\n ? this.copyObject(array[i])\n : array[i];\n }\n return copy;\n }),\n (exports.deepCopy = function deepCopy(obj) {\n if ("object" !== typeof obj || !obj) return obj;\n let copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) {\n copy[key] = deepCopy(obj[key]);\n }\n return copy;\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) {\n return obj;\n }\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy;\n }),\n (exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map;\n }),\n (exports.createMap = function(props) {\n let map = Object.create(null);\n for (let i in props) map[i] = props[i];\n return map;\n }),\n (exports.arrayRemove = function(array, value) {\n for (let i = 0; array.length >= i; i++) {\n value === array[i] && array.splice(i, 1);\n }\n }),\n (exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1");\n }),\n (exports.escapeHTML = function(str) {\n return str\n .replace(/&/g, "&")\n .replace(/"/g, """)\n .replace(/\'/g, "'")\n .replace(/</g, "<");\n }),\n (exports.getMatchOffsets = function(string, regExp) {\n let matches = [];\n return (\n string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length,\n });\n }),\n matches\n );\n }),\n (exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n deferred = function(timeout) {\n return (\n deferred.cancel(),\n (timer = setTimeout(callback, timeout || 0)),\n deferred\n );\n };\n return (\n (deferred.schedule = deferred),\n (deferred.call = function() {\n return this.cancel(), fcn(), deferred;\n }),\n (deferred.cancel = function() {\n return clearTimeout(timer), (timer = null), deferred;\n }),\n (deferred.isPending = function() {\n return timer;\n }),\n deferred\n );\n }),\n (exports.delayedCall = function(fcn, defaultTimeout) {\n let timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n _self = function(timeout) {\n null == timer &&\n (timer = setTimeout(callback, timeout || defaultTimeout));\n };\n return (\n (_self.delay = function(timeout) {\n timer && clearTimeout(timer),\n (timer = setTimeout(callback, timeout || defaultTimeout));\n }),\n (_self.schedule = _self),\n (_self.call = function() {\n this.cancel(), fcn();\n }),\n (_self.cancel = function() {\n timer && clearTimeout(timer), (timer = null);\n }),\n (_self.isPending = function() {\n return timer;\n }),\n _self\n );\n });\n }),\n ace.define(\n "ace/worker/mirror",\n [\n "require",\n "exports",\n "module",\n "ace/range",\n "ace/document",\n "ace/lib/lang",\n ],\n function(acequire, exports) {\n acequire("../range").Range;\n let Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = (exports.Mirror = function(sender) {\n this.sender = sender;\n let doc = (this.doc = new Document("")),\n deferredUpdate = (this.deferredUpdate = lang.delayedCall(\n this.onUpdate.bind(this)\n )),\n _self = this;\n sender.on("change", function(e) {\n let data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else {\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1]))\n var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1],\n };\n else\n var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1],\n };\n doc.applyDelta(d, !0);\n }\n }\n return _self.$timeout\n ? deferredUpdate.schedule(_self.$timeout)\n : (_self.onUpdate(), void 0);\n });\n });\n (function() {\n (this.$timeout = 500),\n (this.setTimeout = function(timeout) {\n this.$timeout = timeout;\n }),\n (this.setValue = function(value) {\n this.doc.setValue(value),\n this.deferredUpdate.schedule(this.$timeout);\n }),\n (this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId);\n }),\n (this.onUpdate = function() {}),\n (this.isPending = function() {\n return this.deferredUpdate.isPending();\n });\n }.call(Mirror.prototype));\n }\n ),\n ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n function doesDefinePropertyWork(object) {\n try {\n return (\n Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n );\n } catch (exception) {}\n }\n function toInteger(n) {\n return (\n (n = +n),\n n !== n\n ? (n = 0)\n : 0 !== n &&\n n !== 1 / 0 &&\n n !== -(1 / 0) &&\n (n = (n > 0 || -1) * Math.floor(Math.abs(n))),\n n\n );\n }\n Function.prototype.bind ||\n (Function.prototype.bind = function(that) {\n let target = this;\n if ("function" !== typeof target) {\n throw new TypeError(\n "Function.prototype.bind called on incompatible " + target\n );\n }\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n let result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n return Object(result) === result ? result : this;\n }\n return target.apply(that, args.concat(slice.call(arguments)));\n };\n return (\n target.prototype &&\n ((Empty.prototype = target.prototype),\n (bound.prototype = new Empty()),\n (Empty.prototype = null)),\n bound\n );\n });\n var defineGetter,\n defineSetter,\n lookupGetter,\n lookupSetter,\n supportsAccessors,\n call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if (\n ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) &&\n ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)),\n (defineSetter = call.bind(prototypeOfObject.__defineSetter__)),\n (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)),\n (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))),\n 2 != [1, 2].splice(0).length)\n ) {\n if (\n (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return (a[0] = a[1] = 0), a;\n }\n var lengthBefore,\n array = [];\n return (\n array.splice.apply(array, makeArray(20)),\n array.splice.apply(array, makeArray(26)),\n (lengthBefore = array.length),\n array.splice(5, 0, "XXX"),\n lengthBefore + 1 == array.length,\n lengthBefore + 1 == array.length ? !0 : void 0\n );\n })()\n ) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length\n ? array_splice.apply(\n this,\n [\n void 0 === start ? 0 : start,\n void 0 === deleteCount ? this.length - start : deleteCount,\n ].concat(slice.call(arguments, 2))\n )\n : [];\n };\n } else\n Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0\n ? pos > length && (pos = length)\n : void 0 == pos\n ? (pos = 0)\n : 0 > pos && (pos = Math.max(length + pos, 0)),\n length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i)\n this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--; )\n this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove)\n (this.length = lengthAfterRemove), this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i)\n this[pos + i] = insert[i];\n }\n return removed;\n };\n }\n Array.isArray ||\n (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj);\n });\n let boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (\n (Array.prototype.forEach ||\n (Array.prototype.forEach = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError();\n for (; length > ++i; ) {\n i in self && fun.call(thisp, self[i], i, object);\n }\n }),\n Array.prototype.map ||\n (Array.prototype.map = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self && (result[i] = fun.call(thisp, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.filter ||\n (Array.prototype.filter = function(fun) {\n let value,\n object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self &&\n ((value = self[i]),\n fun.call(thisp, value, i, object) && result.push(value));\n }\n return result;\n }),\n Array.prototype.every ||\n (Array.prototype.every = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n }\n return !0;\n }),\n Array.prototype.some ||\n (Array.prototype.some = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n }\n return !1;\n }),\n Array.prototype.reduce ||\n (Array.prototype.reduce = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError("reduce of empty array with no initial value");\n }\n let result,\n i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i++];\n break;\n }\n if (++i >= length)\n throw new TypeError(\n "reduce of empty array with no initial value"\n );\n }\n }\n for (; length > i; i++) {\n i in self &&\n (result = fun.call(void 0, result, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.reduceRight ||\n (Array.prototype.reduceRight = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n let result,\n i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i--];\n break;\n }\n if (0 > --i)\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n }\n do {\n i in this &&\n (result = fun.call(void 0, result, self[i], i, object));\n } while (i--);\n return result;\n }),\n (Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2)) ||\n (Array.prototype.indexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = 0;\n for (\n arguments.length > 1 && (i = toInteger(arguments[1])),\n i = i >= 0 ? i : Math.max(0, length + i);\n length > i;\n i++\n ) {\n if (i in self && self[i] === sought) return i;\n }\n return -1;\n }),\n (Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3)) ||\n (Array.prototype.lastIndexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = length - 1;\n for (\n arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))),\n i = i >= 0 ? i : length - Math.abs(i);\n i >= 0;\n i--\n ) {\n if (i in self && sought === self[i]) return i;\n }\n return -1;\n }),\n Object.getPrototypeOf ||\n (Object.getPrototypeOf = function(object) {\n return (\n object.__proto__ ||\n (object.constructor\n ? object.constructor.prototype\n : prototypeOfObject)\n );\n }),\n !Object.getOwnPropertyDescriptor)\n ) {\n let ERR_NON_OBJECT =\n "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT + object);\n }\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (\n ((descriptor = { enumerable: !0, configurable: !0 }),\n supportsAccessors)\n ) {\n let prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (((object.__proto__ = prototype), getter || setter)) {\n return (\n getter && (descriptor.get = getter),\n setter && (descriptor.set = setter),\n descriptor\n );\n }\n }\n return (descriptor.value = object[property]), descriptor;\n }\n };\n }\n if (\n (Object.getOwnPropertyNames ||\n (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object);\n }),\n !Object.create)\n ) {\n let createEmpty;\n (createEmpty =\n null === Object.prototype.__proto__\n ? function() {\n return { __proto__: null };\n }\n : function() {\n let empty = {};\n for (let i in empty) empty[i] = null;\n return (\n (empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null),\n empty\n );\n }),\n (Object.create = function(prototype, properties) {\n let object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" !== typeof prototype) {\n throw new TypeError(\n "typeof prototype[" + typeof prototype + "] != \'object\'"\n );\n }\n let Type = function() {};\n (Type.prototype = prototype),\n (object = new Type()),\n (object.__proto__ = prototype);\n }\n return (\n void 0 !== properties &&\n Object.defineProperties(object, properties),\n object\n );\n });\n }\n if (Object.defineProperty) {\n let definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom =\n "undefined" === typeof document ||\n doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {\n var definePropertyFallback = Object.defineProperty;\n }\n }\n if (!Object.defineProperty || definePropertyFallback) {\n let ERR_NON_OBJECT_DESCRIPTOR =\n "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED =\n "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n }\n if (\n ("object" !== typeof descriptor &&\n "function" !== typeof descriptor) ||\n null === descriptor\n ) {\n throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n }\n if (definePropertyFallback) {\n try {\n return definePropertyFallback.call(\n Object,\n object,\n property,\n descriptor\n );\n } catch (exception) {}\n }\n if (owns(descriptor, "value")) {\n if (\n supportsAccessors &&\n (lookupGetter(object, property) || lookupSetter(object, property))\n ) {\n var prototype = object.__proto__;\n (object.__proto__ = prototypeOfObject),\n delete object[property],\n (object[property] = descriptor.value),\n (object.__proto__ = prototype);\n } else object[property] = descriptor.value;\n } else {\n if (!supportsAccessors) {\n throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n }\n owns(descriptor, "get") &&\n defineGetter(object, property, descriptor.get),\n owns(descriptor, "set") &&\n defineSetter(object, property, descriptor.set);\n }\n return object;\n };\n }\n Object.defineProperties ||\n (Object.defineProperties = function(object, properties) {\n for (let property in properties) {\n owns(properties, property) &&\n Object.defineProperty(object, property, properties[property]);\n }\n return object;\n }),\n Object.seal ||\n (Object.seal = function(object) {\n return object;\n }),\n Object.freeze ||\n (Object.freeze = function(object) {\n return object;\n });\n try {\n Object.freeze(function() {});\n } catch (exception) {\n Object.freeze = (function(freezeObject) {\n return function(object) {\n return "function" === typeof object ? object : freezeObject(object);\n };\n })(Object.freeze);\n }\n if (\n (Object.preventExtensions ||\n (Object.preventExtensions = function(object) {\n return object;\n }),\n Object.isSealed ||\n (Object.isSealed = function() {\n return !1;\n }),\n Object.isFrozen ||\n (Object.isFrozen = function() {\n return !1;\n }),\n Object.isExtensible ||\n (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError();\n for (var name = ""; owns(object, name); ) name += "?";\n object[name] = !0;\n let returnValue = owns(object, name);\n return delete object[name], returnValue;\n }),\n !Object.keys)\n ) {\n let hasDontEnumBug = !0,\n dontEnums = [\n "toString",\n "toLocaleString",\n "valueOf",\n "hasOwnProperty",\n "isPrototypeOf",\n "propertyIsEnumerable",\n "constructor",\n ],\n dontEnumsLength = dontEnums.length;\n for (let key in { toString: null }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError("Object.keys called on a non-object");\n }\n let keys = [];\n for (let name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug) {\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum);\n }\n }\n return keys;\n };\n }\n Date.now ||\n (Date.now = function() {\n return new Date().getTime();\n });\n let ws = "\t\\nv\\f\\r \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n let trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "")\n .replace(trimBeginRegexp, "")\n .replace(trimEndRegexp, "");\n };\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o);\n };\n });\nace.define(\n "sense_editor/mode/worker_parser",\n ["require", "exports", "module"],\n function() {\n let at, // The index of the current character\n ch, // The current character\n annos, // annotations\n escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\\t",\n },\n text,\n annotate = function(type, text) {\n annos.push({ type: type, text: text, at: at });\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text,\n };\n },\n reset = function(newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n if (c && c !== ch) {\n error("Expected \'" + c + "\' instead of \'" + ch + "\'");\n }\n\n ch = text.charAt(at);\n at += 1;\n return ch;\n },\n nextUpTo = function(upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || "Expected \'" + upTo + "\'");\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function(c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n let number,\n string = "";\n\n if (ch === "-") {\n string = "-";\n next("-");\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n if (ch === ".") {\n string += ".";\n while (next() && ch >= "0" && ch <= "9") {\n string += ch;\n }\n }\n if (ch === "e" || ch === "E") {\n string += ch;\n next();\n if (ch === "-" || ch === "+") {\n string += ch;\n next();\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n }\n number = +string;\n if (isNaN(number)) {\n error("Bad number");\n } else {\n return number;\n }\n },\n string = function() {\n let hex,\n i,\n string = "",\n uffff;\n\n if (ch === \'"\') {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n while (next()) {\n if (ch === \'"\') {\n next();\n return string;\n } else if (ch === "\\\\") {\n next();\n if (ch === "u") {\n uffff = 0;\n for (i = 0; i < 4; i += 1) {\n hex = parseInt(next(), 16);\n if (!isFinite(hex)) {\n break;\n }\n uffff = uffff * 16 + hex;\n }\n string += String.fromCharCode(uffff);\n } else if (typeof escapee[ch] === "string") {\n string += escapee[ch];\n } else {\n break;\n }\n } else {\n string += ch;\n }\n }\n }\n }\n error("Bad string");\n },\n white = function() {\n while (ch && ch <= " ") {\n next();\n }\n },\n strictWhite = function() {\n while (ch && (ch == " " || ch == "\\t")) {\n next();\n }\n },\n newLine = function() {\n if (ch == "\\n") next();\n },\n word = function() {\n switch (ch) {\n case "t":\n next("t");\n next("r");\n next("u");\n next("e");\n return true;\n case "f":\n next("f");\n next("a");\n next("l");\n next("s");\n next("e");\n return false;\n case "n":\n next("n");\n next("u");\n next("l");\n next("l");\n return null;\n }\n error("Unexpected \'" + ch + "\'");\n },\n // parses and returns the method\n method = function() {\n switch (ch) {\n case "G":\n next("G");\n next("E");\n next("T");\n return "GET";\n case "H":\n next("H");\n next("E");\n next("A");\n next("D");\n return "HEAD";\n case "D":\n next("D");\n next("E");\n next("L");\n next("E");\n next("T");\n next("E");\n return "DELETE";\n case "P":\n next("P");\n switch (ch) {\n case "U":\n next("U");\n next("T");\n return "PUT";\n case "O":\n next("O");\n next("S");\n next("T");\n return "POST";\n default:\n error("Unexpected \'" + ch + "\'");\n }\n break;\n case "L":\n next("L");\n next("O");\n next("A");\n next("D");\n return "LOAD";\n case "C":\n next("C");\n next("O");\n next("N");\n next("F");\n next("I");\n next("G");\n return "CONFIG";\n case "S":\n next("S");\n next("E");\n next("L");\n next("E");\n next("C");\n next("T");\n return "SELECT";\n case "F":\n next("F");\n next("R");\n next("O");\n next("M");\n return "FROM";\n default:\n error("Expected one of GET/POST/PUT/DELETE/HEAD/LOAD/CONFIG/SELECT/FROM");\n }\n },\n value, // Place holder for the value function.\n array = function() {\n const array = [];\n\n if (ch === "[") {\n next("[");\n white();\n if (ch === "]") {\n next("]");\n return array; // empty array\n }\n while (ch) {\n array.push(value());\n white();\n if (ch === "]") {\n next("]");\n return array;\n }\n next(",");\n white();\n }\n }\n error("Bad array");\n },\n object = function() {\n let key,\n object = {};\n\n if (ch === "{") {\n next("{");\n white();\n if (ch === "}") {\n next("}");\n return object; // empty object\n }\n while (ch) {\n key = string();\n white();\n next(":");\n if (Object.hasOwnProperty.call(object, key)) {\n error(\'Duplicate key "\' + key + \'"\');\n }\n object[key] = value();\n white();\n if (ch === "}") {\n next("}");\n return object;\n }\n next(",");\n white();\n }\n }\n error("Bad object");\n };\n\n value = function() {\n white();\n switch (ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && ch <= "9" ? number() : word();\n }\n };\n\n let url = function() {\n let url = "";\n while (ch && ch != "\\n") {\n url += ch;\n next();\n }\n if (url == "") {\n error("Missing url");\n }\n return url;\n },\n request = function() {\n white();\n method();\n strictWhite();\n url();\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n if (ch == "{") {\n object();\n }\n // multi doc request\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n while (ch == "{") {\n // another object\n object();\n strictWhite();\n newLine();\n strictWhite();\n }\n },\n comment = function() {\n while (ch == "#") {\n while (ch && ch !== "\\n") {\n next();\n }\n white();\n }\n },\n multi_request = function() {\n while (ch && ch != "") {\n white();\n if (!ch) {\n continue;\n }\n try {\n comment();\n white();\n if (!ch) {\n continue;\n }\n request();\n white();\n } catch (e) {\n annotate("error", e.message);\n // snap\n const substring = text.substr(at);\n const nextMatch = substring.search(/^POST|HEAD|GET|PUT|DELETE/m);\n if (nextMatch < 1) return;\n reset(at + nextMatch);\n }\n }\n };\n\n return function(source, reviver) {\n let result;\n\n text = source;\n at = 0;\n annos = [];\n next();\n multi_request();\n white();\n if (ch) {\n annotate("error", "Syntax error");\n }\n\n result = { annotations: annos };\n\n return typeof reviver === "function"\n ? (function walk(holder, key) {\n let k,\n v,\n value = holder[key];\n if (value && typeof value === "object") {\n for (k in value) {\n if (Object.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n })({ "": result }, "")\n : result;\n };\n }\n);\n\nace.define(\n "sense_editor/mode/worker",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/worker/mirror",\n "sense_editor/mode/worker_parser",\n ],\n function(require, exports) {\n const oop = require("ace/lib/oop");\n const Mirror = require("ace/worker/mirror").Mirror;\n const parse = require("sense_editor/mode/worker_parser");\n\n const SenseWorker = (exports.SenseWorker = function(sender) {\n Mirror.call(this, sender);\n this.setTimeout(200);\n });\n\n oop.inherits(SenseWorker, Mirror);\n\n (function() {\n this.id = "senseWorker";\n this.onUpdate = function() {\n const value = this.doc.getValue();\n let pos, result;\n try {\n result = parse(value);\n } catch (e) {\n pos = this.charToDocumentPosition(e.at - 1);\n this.sender.emit("error", {\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error",\n });\n return;\n }\n for (let i = 0; i < result.annotations.length; i++) {\n pos = this.charToDocumentPosition(result.annotations[i].at - 1);\n result.annotations[i].row = pos.row;\n result.annotations[i].column = pos.column;\n }\n this.sender.emit("ok", result.annotations);\n };\n\n this.charToDocumentPosition = function(charPos) {\n let i = 0;\n const len = this.doc.getLength();\n const nl = this.doc.getNewLineCharacter().length;\n\n if (!len) {\n return { row: 0, column: 0 };\n }\n\n let lineStart = 0,\n line;\n while (i < len) {\n line = this.doc.getLine(i);\n const lineLength = line.length + nl;\n if (lineStart + lineLength > charPos) {\n return {\n row: i,\n column: charPos - lineStart,\n };\n }\n\n lineStart += lineLength;\n i += 1;\n }\n\n return {\n row: i - 1,\n column: line.length,\n };\n };\n }.call(SenseWorker.prototype));\n }\n);\n'},Cr=Ce().acequire("ace/mode/text_highlight_rules").TextHighlightRules,Pr=Ce().acequire("ace/lib/oop"),Ar=function(){var e=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};Pr.inherits(Ar,Cr);var Lr=Ce().acequire("ace/lib/oop"),qr=Ce().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function Ir(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}Lr.inherits(Ir,qr);var Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dr.apply(this,arguments)},Mr=Ce().acequire("ace/mode/json_highlight_rules").JsonHighlightRules,Fr=Ce().acequire("ace/lib/oop"),Ur=function(e){var t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e=e||"json",push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function zr(){var e=Ur("start");this.$rules=Dr({},e),this.embedRules(Ir,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(Ar,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function Br(e,t){e.$rules=(0,f.defaultsDeep)(e.$rules,Ur(t)),e.embedRules(Ir,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(Ar,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}Fr.inherits(zr,Mr);var Gr={id:"ace/mode/json_worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the json\n mode from the brace distro.\n\n It is very likely that this file will be removed in future but for now it enables\n extended JSON parsing, like e.g. """{}""" (triple quotes)\n*/\n"no use strict";\n! function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (var testPath = id, tail = ""; testPath;) {\n var alias = paths[testPath];\n if ("string" == typeof alias) return alias + tail;\n if (alias) return alias.location.replace(/\\/*$/, "/") + (tail || alias.main || alias.name);\n if (alias === !1) return "";\n var i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n tail = testPath.substr(i) + tail, testPath = testPath.slice(0, i)\n }\n return id\n }\n if (!(void 0 !== window.window && window.document || window.acequire && window.define)) {\n window.console || (window.console = function() {\n var msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({\n type: "log",\n data: msgs\n })\n }, window.console.error = window.console.warn = window.console.log = window.console.trace = window.console), window.window = window, window.ace = window, window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack\n }\n })\n }, window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n var chunks = moduleName.split("!");\n return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1])\n }\n if ("." == moduleName.charAt(0)) {\n var base = parentId.split("/").slice(0, -1).join("/");\n for (moduleName = (base ? base + "/" : "") + moduleName; - 1 !== moduleName.indexOf(".") && previous != moduleName;) {\n var previous = moduleName;\n moduleName = moduleName.replace(/^\\.\\//, "").replace(/\\/\\.\\//, "/").replace(/[^\\/]+\\/\\.\\.\\//, "")\n }\n }\n return moduleName\n }, window.acequire = function acequire(parentId, id) {\n if (id || (id = parentId, parentId = null), !id.charAt) throw Error("worker.js acequire() accepts only (parentId, id) as arguments");\n id = window.normalizeModule(parentId, id);\n var module = window.acequire.modules[id];\n if (module) return module.initialized || (module.initialized = !0, module.exports = module.factory().exports), module.exports;\n if (!window.acequire.tlns) return console.log("unable to load " + id);\n var path = resolveModuleId(id, window.acequire.tlns);\n return ".js" != path.slice(-3) && (path += ".js"), window.acequire.id = id, window.acequire.modules[id] = {}, importScripts(path), window.acequire(parentId, id)\n }, window.acequire.modules = {}, window.acequire.tlns = {}, window.define = function(id, deps, factory) {\n if (2 == arguments.length ? (factory = deps, "string" != typeof id && (deps = id, id = window.acequire.id)) : 1 == arguments.length && (factory = id, deps = [], id = window.acequire.id), "function" != typeof factory) return window.acequire.modules[id] = {\n exports: factory,\n initialized: !0\n }, void 0;\n deps.length || (deps = ["require", "exports", "module"]);\n var req = function(childId) {\n return window.acequire(id, childId)\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n var module = this,\n returnExports = factory.apply(this, deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep)\n }\n }));\n return returnExports && (module.exports = returnExports), module\n }\n }\n }, window.define.amd = {}, window.acequire.tlns = {}, window.initBaseUrls = function(topLevelNamespaces) {\n for (var i in topLevelNamespaces) acequire.tlns[i] = topLevelNamespaces[i]\n }, window.initSender = function() {\n var EventEmitter = window.acequire("ace/lib/event_emitter").EventEmitter,\n oop = window.acequire("ace/lib/oop"),\n Sender = function() {};\n return function() {\n oop.implement(this, EventEmitter), this.callback = function(data, callbackId) {\n postMessage({\n type: "call",\n id: callbackId,\n data: data\n })\n }, this.emit = function(name, data) {\n postMessage({\n type: "event",\n name: name,\n data: data\n })\n }\n }.call(Sender.prototype), new Sender\n };\n var main = window.main = null,\n sender = window.sender = null;\n window.onmessage = function(e) {\n var msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command)\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command]) throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args)\n }\n else if (msg.init) {\n window.initBaseUrls(msg.tlns), acequire("ace/lib/es5-shim"), sender = window.sender = window.initSender();\n var clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender)\n }\n }\n }\n}(this), ace.define("ace/lib/oop", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.inherits = function(ctor, superCtor) {\n ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n })\n }, exports.mixin = function(obj, mixin) {\n for (var key in mixin) obj[key] = mixin[key];\n return obj\n }, exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin)\n }\n}), ace.define("ace/range", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n this.start = {\n row: startRow,\n column: startColumn\n }, this.end = {\n row: endRow,\n column: endColumn\n }\n };\n (function() {\n this.isEqual = function(range) {\n return this.start.row === range.start.row && this.end.row === range.end.row && this.start.column === range.start.column && this.end.column === range.end.column\n }, this.toString = function() {\n return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"\n }, this.contains = function(row, column) {\n return 0 == this.compare(row, column)\n }, this.compareRange = function(range) {\n var cmp, end = range.end,\n start = range.start;\n return cmp = this.compare(end.row, end.column), 1 == cmp ? (cmp = this.compare(start.row, start.column), 1 == cmp ? 2 : 0 == cmp ? 1 : 0) : -1 == cmp ? -2 : (cmp = this.compare(start.row, start.column), -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n }, this.comparePoint = function(p) {\n return this.compare(p.row, p.column)\n }, this.containsRange = function(range) {\n return 0 == this.comparePoint(range.start) && 0 == this.comparePoint(range.end)\n }, this.intersects = function(range) {\n var cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp\n }, this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n }, this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n }, this.setStart = function(row, column) {\n "object" == typeof row ? (this.start.column = row.column, this.start.row = row.row) : (this.start.row = row, this.start.column = column)\n }, this.setEnd = function(row, column) {\n "object" == typeof row ? (this.end.column = row.column, this.end.row = row.row) : (this.end.row = row, this.end.column = column)\n }, this.inside = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) || this.isStart(row, column) ? !1 : !0 : !1\n }, this.insideStart = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) ? !1 : !0 : !1\n }, this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column) ? this.isStart(row, column) ? !1 : !0 : !1\n }, this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row ? this.start.row > row ? -1 : row > this.end.row ? 1 : this.start.row === row ? column >= this.start.column ? 0 : -1 : this.end.row === row ? this.end.column >= column ? 0 : 1 : 0 : this.start.column > column ? -1 : column > this.end.column ? 1 : 0\n }, this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.compare(row, column)\n }, this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.end.row) var end = {\n row: firstRow,\n column: 0\n };\n if (this.start.row > lastRow) var start = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.start.row) var start = {\n row: firstRow,\n column: 0\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.extend = function(row, column) {\n var cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = {\n row: row,\n column: column\n };\n else var end = {\n row: row,\n column: column\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.isEmpty = function() {\n return this.start.row === this.end.row && this.start.column === this.end.column\n }, this.isMultiLine = function() {\n return this.start.row !== this.end.row\n }, this.clone = function() {\n return Range.fromPoints(this.start, this.end)\n }, this.collapseRows = function() {\n return 0 == this.end.column ? new Range(this.start.row, 0, Math.max(this.start.row, this.end.row - 1), 0) : new Range(this.start.row, 0, this.end.row, 0)\n }, this.toScreenRange = function(session) {\n var screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column)\n }, this.moveBy = function(row, column) {\n this.start.row += row, this.start.column += column, this.end.row += row, this.end.column += column\n }\n }).call(Range.prototype), Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column)\n }, Range.comparePoints = comparePoints, Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n }, exports.Range = Range\n}), ace.define("ace/apply_delta", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.applyDelta = function(docLines, delta) {\n var row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n else {\n var args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args), docLines[row] = line.substring(0, startColumn) + docLines[row], docLines[row + delta.lines.length - 1] += line.substring(startColumn)\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow ? docLines[row] = line.substring(0, startColumn) + line.substring(endColumn) : docLines.splice(row, endRow - row + 1, line.substring(0, startColumn) + docLines[endRow].substring(endColumn))\n }\n }\n}), ace.define("ace/lib/event_emitter", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0\n },\n preventDefault = function() {\n this.defaultPrevented = !0\n };\n EventEmitter._emit = EventEmitter._dispatchEvent = function(eventName, e) {\n this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});\n var listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n "object" == typeof e && e || (e = {}), e.type || (e.type = eventName), e.stopPropagation || (e.stopPropagation = stopPropagation), e.preventDefault || (e.preventDefault = preventDefault), listeners = listeners.slice();\n for (var i = 0; listeners.length > i && (listeners[i](e, this), !e.propagationStopped); i++);\n return defaultHandler && !e.defaultPrevented ? defaultHandler(e, this) : void 0\n }\n }, EventEmitter._signal = function(eventName, e) {\n var listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (var i = 0; listeners.length > i; i++) listeners[i](e, this)\n }\n }, EventEmitter.once = function(eventName, callback) {\n var _self = this;\n callback && this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback), callback.apply(null, arguments)\n })\n }, EventEmitter.setDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers || (handlers = this._defaultHandlers = {\n _disabled_: {}\n }), handlers[eventName]) {\n var old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []), disabled.push(old);\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n handlers[eventName] = callback\n }, EventEmitter.removeDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers) {\n var disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) handlers[eventName], disabled && this.setDefaultHandler(eventName, disabled.pop());\n else if (disabled) {\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n }\n }, EventEmitter.on = EventEmitter.addEventListener = function(eventName, callback, capturing) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n return listeners || (listeners = this._eventRegistry[eventName] = []), -1 == listeners.indexOf(callback) && listeners[capturing ? "unshift" : "push"](callback), callback\n }, EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(eventName, callback) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (listeners) {\n var index = listeners.indexOf(callback); - 1 !== index && listeners.splice(index, 1)\n }\n }, EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = [])\n }, exports.EventEmitter = EventEmitter\n}), ace.define("ace/anchor", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = exports.Anchor = function(doc, row, column) {\n this.$onChange = this.onChange.bind(this), this.attach(doc), column === void 0 ? this.setPosition(row.row, row.column) : this.setPosition(row, column)\n };\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n return point1.row < point2.row || point1.row == point2.row && bColIsAfter\n }\n\n function $getTransformedPoint(delta, point, moveIfEqual) {\n var deltaIsInsert = "insert" == delta.action,\n deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual) ? {\n row: point.row,\n column: point.column\n } : $pointsInOrder(deltaEnd, point, !moveIfEqual) ? {\n row: point.row + deltaRowShift,\n column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n } : {\n row: deltaStart.row,\n column: deltaStart.column\n }\n }\n oop.implement(this, EventEmitter), this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column)\n }, this.getDocument = function() {\n return this.document\n }, this.$insertRight = !1, this.onChange = function(delta) {\n if (!(delta.start.row == delta.end.row && delta.start.row != this.row || delta.start.row > this.row)) {\n var point = $getTransformedPoint(delta, {\n row: this.row,\n column: this.column\n }, this.$insertRight);\n this.setPosition(point.row, point.column, !0)\n }\n }, this.setPosition = function(row, column, noClip) {\n var pos;\n if (pos = noClip ? {\n row: row,\n column: column\n } : this.$clipPositionToDocument(row, column), this.row != pos.row || this.column != pos.column) {\n var old = {\n row: this.row,\n column: this.column\n };\n this.row = pos.row, this.column = pos.column, this._signal("change", {\n old: old,\n value: pos\n })\n }\n }, this.detach = function() {\n this.document.removeEventListener("change", this.$onChange)\n }, this.attach = function(doc) {\n this.document = doc || this.document, this.document.on("change", this.$onChange)\n }, this.$clipPositionToDocument = function(row, column) {\n var pos = {};\n return row >= this.document.getLength() ? (pos.row = Math.max(0, this.document.getLength() - 1), pos.column = this.document.getLine(pos.row).length) : 0 > row ? (pos.row = 0, pos.column = 0) : (pos.row = row, pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column))), 0 > column && (pos.column = 0), pos\n }\n }).call(Anchor.prototype)\n}), ace.define("ace/document", ["require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n this.$lines = [""], 0 === textOrLines.length ? this.$lines = [""] : Array.isArray(textOrLines) ? this.insertMergedLines({\n row: 0,\n column: 0\n }, textOrLines) : this.insert({\n row: 0,\n column: 0\n }, textOrLines)\n };\n (function() {\n oop.implement(this, EventEmitter), this.setValue = function(text) {\n var len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)), this.insert({\n row: 0,\n column: 0\n }, text)\n }, this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter())\n }, this.createAnchor = function(row, column) {\n return new Anchor(this, row, column)\n }, this.$split = 0 === "aaa".split(/a/).length ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n")\n } : function(text) {\n return text.split(/\\r\\n|\\r|\\n/)\n }, this.$detectNewLine = function(text) {\n var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n this.$autoNewLine = match ? match[1] : "\\n", this._signal("changeNewLineMode")\n }, this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n"\n }\n }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode && (this.$newLineMode = newLineMode, this._signal("changeNewLineMode"))\n }, this.getNewLineMode = function() {\n return this.$newLineMode\n }, this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text\n }, this.getLine = function(row) {\n return this.$lines[row] || ""\n }, this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1)\n }, this.getAllLines = function() {\n return this.getLines(0, this.getLength())\n }, this.getLength = function() {\n return this.$lines.length\n }, this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(this.getNewLineCharacter())\n }, this.getLinesForRange = function(range) {\n var lines;\n if (range.start.row === range.end.row) lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n else {\n lines = this.getLines(range.start.row, range.end.row), lines[0] = (lines[0] || "").substring(range.start.column);\n var l = lines.length - 1;\n range.end.row - range.start.row == l && (lines[l] = lines[l].substring(0, range.end.column))\n }\n return lines\n }, this.insertLines = function(row, lines) {\n return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(row, lines)\n }, this.removeLines = function(firstRow, lastRow) {\n return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(firstRow, lastRow)\n }, this.insertNewLine = function(position) {\n return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."), this.insertMergedLines(position, ["", ""])\n }, this.insert = function(position, text) {\n return 1 >= this.getLength() && this.$detectNewLine(text), this.insertMergedLines(position, this.$split(text))\n }, this.insertInLine = function(position, text) {\n var start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: [text]\n }, !0), this.clonePos(end)\n }, this.clippedPos = function(row, column) {\n var length = this.getLength();\n void 0 === row ? row = length : 0 > row ? row = 0 : row >= length && (row = length - 1, column = void 0);\n var line = this.getLine(row);\n return void 0 == column && (column = line.length), column = Math.min(Math.max(column, 0), line.length), {\n row: row,\n column: column\n }\n }, this.clonePos = function(pos) {\n return {\n row: pos.row,\n column: pos.column\n }\n }, this.pos = function(row, column) {\n return {\n row: row,\n column: column\n }\n }, this.$clipPosition = function(position) {\n var length = this.getLength();\n return position.row >= length ? (position.row = Math.max(0, length - 1), position.column = this.getLine(length - 1).length) : (position.row = Math.max(0, position.row), position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length)), position\n }, this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n var column = 0;\n this.getLength() > row ? (lines = lines.concat([""]), column = 0) : (lines = [""].concat(lines), row--, column = this.$lines[row].length), this.insertMergedLines({\n row: row,\n column: column\n }, lines)\n }, this.insertMergedLines = function(position, lines) {\n var start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column: (1 == lines.length ? start.column : 0) + lines[lines.length - 1].length\n };\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines\n }), this.clonePos(end)\n }, this.remove = function(range) {\n var start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }), this.clonePos(start)\n }, this.removeInLine = function(row, startColumn, endColumn) {\n var start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }, !0), this.clonePos(start)\n }, this.removeFullLines = function(firstRow, lastRow) {\n firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1), lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);\n var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range)\n }), deletedLines\n }, this.removeNewLine = function(row) {\n this.getLength() - 1 > row && row >= 0 && this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""]\n })\n }, this.replace = function(range, text) {\n if (range instanceof Range || (range = Range.fromPoints(range.start, range.end)), 0 === text.length && range.isEmpty()) return range.start;\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n var end;\n return end = text ? this.insert(range.start, text) : range.start\n }, this.applyDeltas = function(deltas) {\n for (var i = 0; deltas.length > i; i++) this.applyDelta(deltas[i])\n }, this.revertDeltas = function(deltas) {\n for (var i = deltas.length - 1; i >= 0; i--) this.revertDelta(deltas[i])\n }, this.applyDelta = function(delta, doNotValidate) {\n var isInsert = "insert" == delta.action;\n (isInsert ? 1 >= delta.lines.length && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) || (isInsert && delta.lines.length > 2e4 && this.$splitAndapplyLargeDelta(delta, 2e4), applyDelta(this.$lines, delta, doNotValidate), this._signal("change", delta))\n }, this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (var lines = delta.lines, l = lines.length, row = delta.start.row, column = delta.start.column, from = 0, to = 0;;) {\n from = to, to += MAX - 1;\n var chunk = lines.slice(from, to);\n if (to > l) {\n delta.lines = chunk, delta.start.row = row + from, delta.start.column = column;\n break\n }\n chunk.push(""), this.applyDelta({\n start: this.pos(row + from, column),\n end: this.pos(row + to, column = 0),\n action: delta.action,\n lines: chunk\n }, !0)\n }\n }, this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice()\n })\n }, this.indexToPosition = function(index, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, i = startRow || 0, l = lines.length; l > i; i++)\n if (index -= lines[i].length + newlineLength, 0 > index) return {\n row: i,\n column: index + lines[i].length + newlineLength\n };\n return {\n row: l - 1,\n column: lines[l - 1].length\n }\n }, this.positionToIndex = function(pos, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, index = 0, row = Math.min(pos.row, lines.length), i = startRow || 0; row > i; ++i) index += lines[i].length + newlineLength;\n return index + pos.column\n }\n }).call(Document.prototype), exports.Document = Document\n}), ace.define("ace/lib/lang", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.last = function(a) {\n return a[a.length - 1]\n }, exports.stringReverse = function(string) {\n return string.split("").reverse().join("")\n }, exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0;) 1 & count && (result += string), (count >>= 1) && (string += string);\n return result\n };\n var trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "")\n }, exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "")\n }, exports.copyObject = function(obj) {\n var copy = {};\n for (var key in obj) copy[key] = obj[key];\n return copy\n }, exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) copy[i] = array[i] && "object" == typeof array[i] ? this.copyObject(array[i]) : array[i];\n return copy\n }, exports.deepCopy = function deepCopy(obj) {\n if ("object" != typeof obj || !obj) return obj;\n var copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) copy[key] = deepCopy(obj[key]);\n return copy\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) return obj;\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy\n }, exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map\n }, exports.createMap = function(props) {\n var map = Object.create(null);\n for (var i in props) map[i] = props[i];\n return map\n }, exports.arrayRemove = function(array, value) {\n for (var i = 0; array.length >= i; i++) value === array[i] && array.splice(i, 1)\n }, exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1")\n }, exports.escapeHTML = function(str) {\n return str.replace(/&/g, "&").replace(/"/g, """).replace(/\'/g, "'").replace(/</g, "<")\n }, exports.getMatchOffsets = function(string, regExp) {\n var matches = [];\n return string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length\n })\n }), matches\n }, exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n deferred = function(timeout) {\n return deferred.cancel(), timer = setTimeout(callback, timeout || 0), deferred\n };\n return deferred.schedule = deferred, deferred.call = function() {\n return this.cancel(), fcn(), deferred\n }, deferred.cancel = function() {\n return clearTimeout(timer), timer = null, deferred\n }, deferred.isPending = function() {\n return timer\n }, deferred\n }, exports.delayedCall = function(fcn, defaultTimeout) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n _self = function(timeout) {\n null == timer && (timer = setTimeout(callback, timeout || defaultTimeout))\n };\n return _self.delay = function(timeout) {\n timer && clearTimeout(timer), timer = setTimeout(callback, timeout || defaultTimeout)\n }, _self.schedule = _self, _self.call = function() {\n this.cancel(), fcn()\n }, _self.cancel = function() {\n timer && clearTimeout(timer), timer = null\n }, _self.isPending = function() {\n return timer\n }, _self\n }\n}), ace.define("ace/worker/mirror", ["require", "exports", "module", "ace/range", "ace/document", "ace/lib/lang"], function(acequire, exports) {\n "use strict";\n acequire("../range").Range;\n var Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = exports.Mirror = function(sender) {\n this.sender = sender;\n var doc = this.doc = new Document(""),\n deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this)),\n _self = this;\n sender.on("change", function(e) {\n var data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1])) var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1]\n };\n else var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1]\n };\n doc.applyDelta(d, !0)\n }\n return _self.$timeout ? deferredUpdate.schedule(_self.$timeout) : (_self.onUpdate(), void 0)\n })\n };\n (function() {\n this.$timeout = 500, this.setTimeout = function(timeout) {\n this.$timeout = timeout\n }, this.setValue = function(value) {\n this.doc.setValue(value), this.deferredUpdate.schedule(this.$timeout)\n }, this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId)\n }, this.onUpdate = function() {}, this.isPending = function() {\n return this.deferredUpdate.isPending()\n }\n }).call(Mirror.prototype)\n}), ace.define("ace/mode/json/json_parse", ["require", "exports", "module"], function() {\n "use strict";\n var at, ch, text, value, escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\t"\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text\n }\n },\n reset = function (newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n return c && c !== ch && error("Expected \'" + c + "\' instead of \'" + ch + "\'"), ch = text.charAt(at), at += 1, ch\n },\n nextUpTo = function (upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || \'Expected \\\'\' + upTo + \'\\\'\');\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function (c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n var number, string = "";\n for ("-" === ch && (string = "-", next("-")); ch >= "0" && "9" >= ch;) string += ch, next();\n if ("." === ch)\n for (string += "."; next() && ch >= "0" && "9" >= ch;) string += ch;\n if ("e" === ch || "E" === ch)\n for (string += ch, next(), ("-" === ch || "+" === ch) && (string += ch, next()); ch >= "0" && "9" >= ch;) string += ch, next();\n return number = +string, isNaN(number) ? (error("Bad number"), void 0) : number\n },\n string = function() {\n var hex, i, uffff, string = "";\n if (\'"\' === ch) {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n for (; next();) {\n if (\'"\' === ch) return next(), string;\n if ("\\\\" === ch)\n if (next(), "u" === ch) {\n for (uffff = 0, i = 0; 4 > i && (hex = parseInt(next(), 16), isFinite(hex)); i += 1) uffff = 16 * uffff + hex;\n string += String.fromCharCode(uffff)\n } else {\n if ("string" != typeof escapee[ch]) break;\n string += escapee[ch]\n }\n else string += ch\n }\n }\n }\n error("Bad string")\n },\n white = function() {\n for (; ch && " " >= ch;) next()\n },\n word = function() {\n switch (ch) {\n case "t":\n return next("t"), next("r"), next("u"), next("e"), !0;\n case "f":\n return next("f"), next("a"), next("l"), next("s"), next("e"), !1;\n case "n":\n return next("n"), next("u"), next("l"), next("l"), null\n }\n error("Unexpected \'" + ch + "\'")\n },\n array = function() {\n var array = [];\n if ("[" === ch) {\n if (next("["), white(), "]" === ch) return next("]"), array;\n for (; ch;) {\n if (array.push(value()), white(), "]" === ch) return next("]"), array;\n next(","), white()\n }\n }\n error("Bad array")\n },\n object = function() {\n var key, object = {};\n if ("{" === ch) {\n if (next("{"), white(), "}" === ch) return next("}"), object;\n for (; ch;) {\n if (key = string(), white(), next(":"), Object.hasOwnProperty.call(object, key) && error(\'Duplicate key "\' + key + \'"\'), object[key] = value(), white(), "}" === ch) return next("}"), object;\n next(","), white()\n }\n }\n error("Bad object")\n };\n return value = function() {\n switch (white(), ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && "9" >= ch ? number() : word()\n }\n },\n function(source, reviver) {\n var result;\n return text = source, at = 0, ch = " ", result = value(), white(), ch && error("Syntax error"), "function" == typeof reviver ? function walk(holder, key) {\n var k, v, value = holder[key];\n if (value && "object" == typeof value)\n for (k in value) Object.hasOwnProperty.call(value, k) && (v = walk(value, k), void 0 !== v ? value[k] = v : delete value[k]);\n return reviver.call(holder, key, value)\n }({\n "": result\n }, "") : result\n }\n}), ace.define("ace/mode/json_worker", ["require", "exports", "module", "ace/lib/oop", "ace/worker/mirror", "ace/mode/json/json_parse"], function(acequire, exports) {\n "use strict";\n var oop = acequire("../lib/oop"),\n Mirror = acequire("../worker/mirror").Mirror,\n parse = acequire("./json/json_parse"),\n JsonWorker = exports.JsonWorker = function(sender) {\n Mirror.call(this, sender), this.setTimeout(200)\n };\n oop.inherits(JsonWorker, Mirror),\n function() {\n this.onUpdate = function() {\n var value = this.doc.getValue(),\n errors = [];\n try {\n value && parse(value)\n } catch (e) {\n var pos = this.doc.indexToPosition(e.at - 1);\n errors.push({\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error"\n })\n }\n this.sender.emit("annotate", errors)\n }\n }.call(JsonWorker.prototype)\n}), ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n\n function doesDefinePropertyWork(object) {\n try {\n return Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n } catch (exception) {}\n }\n\n function toInteger(n) {\n return n = +n, n !== n ? n = 0 : 0 !== n && n !== 1 / 0 && n !== -(1 / 0) && (n = (n > 0 || -1) * Math.floor(Math.abs(n))), n\n }\n Function.prototype.bind || (Function.prototype.bind = function(that) {\n var target = this;\n if ("function" != typeof target) throw new TypeError("Function.prototype.bind called on incompatible " + target);\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n var result = target.apply(this, args.concat(slice.call(arguments)));\n return Object(result) === result ? result : this\n }\n return target.apply(that, args.concat(slice.call(arguments)))\n };\n return target.prototype && (Empty.prototype = target.prototype, bound.prototype = new Empty, Empty.prototype = null), bound\n });\n var defineGetter, defineSetter, lookupGetter, lookupSetter, supportsAccessors, call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) && (defineGetter = call.bind(prototypeOfObject.__defineGetter__), defineSetter = call.bind(prototypeOfObject.__defineSetter__), lookupGetter = call.bind(prototypeOfObject.__lookupGetter__), lookupSetter = call.bind(prototypeOfObject.__lookupSetter__)), 2 != [1, 2].splice(0).length)\n if (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return a[0] = a[1] = 0, a\n }\n var lengthBefore, array = [];\n return array.splice.apply(array, makeArray(20)), array.splice.apply(array, makeArray(26)), lengthBefore = array.length, array.splice(5, 0, "XXX"), lengthBefore + 1 == array.length, lengthBefore + 1 == array.length ? !0 : void 0\n }()) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length ? array_splice.apply(this, [void 0 === start ? 0 : start, void 0 === deleteCount ? this.length - start : deleteCount].concat(slice.call(arguments, 2))) : []\n }\n } else Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0 ? pos > length && (pos = length) : void 0 == pos ? pos = 0 : 0 > pos && (pos = Math.max(length + pos, 0)), length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i) this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--;) this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove) this.length = lengthAfterRemove, this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i) this[pos + i] = insert[i]\n }\n return removed\n };\n Array.isArray || (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj)\n });\n var boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (Array.prototype.forEach || (Array.prototype.forEach = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError;\n for (; length > ++i;) i in self && fun.call(thisp, self[i], i, object)\n }), Array.prototype.map || (Array.prototype.map = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (result[i] = fun.call(thisp, self[i], i, object));\n return result\n }), Array.prototype.filter || (Array.prototype.filter = function(fun) {\n var value, object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (value = self[i], fun.call(thisp, value, i, object) && result.push(value));\n return result\n }), Array.prototype.every || (Array.prototype.every = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n return !0\n }), Array.prototype.some || (Array.prototype.some = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n return !1\n }), Array.prototype.reduce || (Array.prototype.reduce = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduce of empty array with no initial value");\n var result, i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i++];\n break\n }\n if (++i >= length) throw new TypeError("reduce of empty array with no initial value")\n }\n for (; length > i; i++) i in self && (result = fun.call(void 0, result, self[i], i, object));\n return result\n }), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduceRight of empty array with no initial value");\n var result, i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i--];\n break\n }\n if (0 > --i) throw new TypeError("reduceRight of empty array with no initial value")\n }\n do i in this && (result = fun.call(void 0, result, self[i], i, object)); while (i--);\n return result\n }), Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2) || (Array.prototype.indexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = 0;\n for (arguments.length > 1 && (i = toInteger(arguments[1])), i = i >= 0 ? i : Math.max(0, length + i); length > i; i++)\n if (i in self && self[i] === sought) return i;\n return -1\n }), Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3) || (Array.prototype.lastIndexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = length - 1;\n for (arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))), i = i >= 0 ? i : length - Math.abs(i); i >= 0; i--)\n if (i in self && sought === self[i]) return i;\n return -1\n }), Object.getPrototypeOf || (Object.getPrototypeOf = function(object) {\n return object.__proto__ || (object.constructor ? object.constructor.prototype : prototypeOfObject)\n }), !Object.getOwnPropertyDescriptor) {\n var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT + object);\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (descriptor = {\n enumerable: !0,\n configurable: !0\n }, supportsAccessors) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (object.__proto__ = prototype, getter || setter) return getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor\n }\n return descriptor.value = object[property], descriptor\n }\n }\n }\n if (Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object)\n }), !Object.create) {\n var createEmpty;\n createEmpty = null === Object.prototype.__proto__ ? function() {\n return {\n __proto__: null\n }\n } : function() {\n var empty = {};\n for (var i in empty) empty[i] = null;\n return empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null, empty\n }, Object.create = function(prototype, properties) {\n var object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" != typeof prototype) throw new TypeError("typeof prototype[" + typeof prototype + "] != \'object\'");\n var Type = function() {};\n Type.prototype = prototype, object = new Type, object.__proto__ = prototype\n }\n return void 0 !== properties && Object.defineProperties(object, properties), object\n }\n }\n if (Object.defineProperty) {\n var definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom = "undefined" == typeof document || doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) var definePropertyFallback = Object.defineProperty\n }\n if (!Object.defineProperty || definePropertyFallback) {\n var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n if ("object" != typeof descriptor && "function" != typeof descriptor || null === descriptor) throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n if (definePropertyFallback) try {\n return definePropertyFallback.call(Object, object, property, descriptor)\n } catch (exception) {}\n if (owns(descriptor, "value"))\n if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject, delete object[property], object[property] = descriptor.value, object.__proto__ = prototype\n } else object[property] = descriptor.value;\n else {\n if (!supportsAccessors) throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n owns(descriptor, "get") && defineGetter(object, property, descriptor.get), owns(descriptor, "set") && defineSetter(object, property, descriptor.set)\n }\n return object\n }\n }\n Object.defineProperties || (Object.defineProperties = function(object, properties) {\n for (var property in properties) owns(properties, property) && Object.defineProperty(object, property, properties[property]);\n return object\n }), Object.seal || (Object.seal = function(object) {\n return object\n }), Object.freeze || (Object.freeze = function(object) {\n return object\n });\n try {\n Object.freeze(function() {})\n } catch (exception) {\n Object.freeze = function(freezeObject) {\n return function(object) {\n return "function" == typeof object ? object : freezeObject(object)\n }\n }(Object.freeze)\n }\n if (Object.preventExtensions || (Object.preventExtensions = function(object) {\n return object\n }), Object.isSealed || (Object.isSealed = function() {\n return !1\n }), Object.isFrozen || (Object.isFrozen = function() {\n return !1\n }), Object.isExtensible || (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError;\n for (var name = ""; owns(object, name);) name += "?";\n object[name] = !0;\n var returnValue = owns(object, name);\n return delete object[name], returnValue\n }), !Object.keys) {\n var hasDontEnumBug = !0,\n dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],\n dontEnumsLength = dontEnums.length;\n for (var key in {\n toString: null\n }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError("Object.keys called on a non-object");\n var keys = [];\n for (var name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug)\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum)\n }\n return keys\n }\n }\n Date.now || (Date.now = function() {\n return (new Date).getTime()\n });\n var ws = "\t\\n\v\\f\\r \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n var trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "").replace(trimBeginRegexp, "").replace(trimEndRegexp, "")\n }\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o)\n }\n});\n'},Jr=Ce().acequire("ace/worker/worker_client").WorkerClient,$r=Ce().acequire("ace/lib/oop"),Vr=Ce().acequire("ace/mode/json").Mode,Wr=Ce().acequire("ace/tokenizer").Tokenizer,Hr=Ce().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Kr=Ce().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Qr=Ce().acequire("ace/mode/folding/cstyle").FoldMode,Yr=function(){var e=new zr;e.normalizeRules(),this.$tokenizer=new Wr(e.getRules()),this.$outdent=new Hr,this.$behaviour=new Kr,this.foldingRules=new Qr};function Xr(e,t,n,r){return"object"==typeof t&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Zr(){return[].concat.apply([],arguments)}$r.inherits(Yr,Vr),Yr.prototype.createWorker=function(e){var t=new Jr(["ace"],Gr,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t};var eo=Ce().acequire("ace/lib/oop"),to=Ce().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function no(){var e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape",o=(this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0),[e,n,t,r].join("|").split("|")),i=Xr(["url.part"],/([^?\/,\s]+)/,"start");i=i.map((function(e){return e.onMatch=function(t,n,r){return o.includes(null==t?void 0:t.toLowerCase())?"url.select_keyword":e.token},e})),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Zr([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Xr(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Zr(Xr(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Xr(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Xr(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Xr(["whitespace"],/(\s+)/,"start","url")),url:Zr(Xr(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Xr(["url.comma"],/(,)/,"start"),Xr(["url.slash"],/(\/)/,"start"),Xr(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Zr(Xr(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Xr(["url.param"],/([^&=]+)/,"start"),Xr(["url.amp"],/(&)/,"start")),"url-sql":Zr(Xr(["url.part"],/([^?\/,\s]+)/,"start-sql"),Xr(["url.comma"],/(,)/,"start-sql"),Xr(["url.slash"],/(\/)/,"start-sql"),Xr(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Zr(Xr(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Xr(["url.param"],/([^&=]+)/,"start-sql"),Xr(["url.amp"],/(&)/,"start-sql"))},Br(this),this.constructor===no&&this.normalizeRules()}eo.inherits(no,to);var ro=Ce().acequire("ace/lib/oop"),oo=Ce().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function io(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}ro.inherits(io,oo);var so=Ce().acequire("ace/lib/oop"),ao=Ce().acequire("ace/mode/text").Mode;function lo(){}Ce().acequire("ace/tokenizer"),so.inherits(lo,ao),function(){this.HighlightRules=io,this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(lo.prototype);var co=Ce().acequire("ace/lib/oop"),uo=Ce().acequire("ace/mode/text").Mode,po=Ce().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,fo=Ce().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,ho=Ce().acequire("ace/mode/folding/cstyle").FoldMode,_o=Ce().acequire("ace/worker/worker_client").WorkerClient,mo=Ce().acequire("ace/tokenizer").Tokenizer;function go(){this.$tokenizer=new mo((new no).getRules()),this.$outdent=new po,this.$behaviour=new fo,this.foldingRules=new ho,this.createModeDelegates({"script-":lo})}co.inherits(go,uo),function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return"string_literal"!==e&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new _o(["ace","sense_editor"],Rr,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",(function(t){e.setAnnotations([t.data])})),t.on("ok",(function(t){e.setAnnotations(t.data)})),t}}.call(go.prototype);Ce().define("ace/autocomplete/text_completer",["require","exports","module"],(function(e,t){t.getCompletions=function(e,t,n,r,o){o(null,[])}})),Ce().acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(e,t,n,r,o){var i=e.coreEditor,s={lineNumber:n.row+1,column:n.column+1};i.autocompleter(s,r,o)}}]);var yo=Ce().acequire("ace/range").Range,wo=function(e){var t=e.start,n=e.end;return new yo(t.lineNumber-1,t.column-1,n.lineNumber-1,n.column-1)},vo=function(){function e(e,t){var n=this;this.editor=e,this.setActionsBar=function(e,t){void 0===t&&(t="top"),null===e?n.$actions.css("visibility","hidden"):"top"===t?n.$actions.css({bottom:"auto",top:e,visibility:"visible"}):n.$actions.css({top:"auto",bottom:e,visibility:"visible"})},this.hideActionsBar=function(){n.setActionsBar(null)},this.$actions=Ue()(t),this.editor.setShowPrintMargin(!1),this.parser=new wr(this),this.autocompleter=Nr({coreEditor:this}).getCompletions;var r=this.editor.getSession();r.setMode(new go);var o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=Ke(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),e.coreEditor=this}return e.prototype.setMaxTokenCount=function(e){var t;null===(t=this.editor.getSession().getMode().getTokenizer())||void 0===t||t.$setMaxTokenCount(e)},e.prototype.getParser=function(){return this.parser},e.prototype.getAutocompleter=function(){return this.autocompleter},e.prototype.waitForLatestTokens=function(){var e=this;return new Promise((function(t){var n=e.editor.getSession(),r=function(){n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(r,25):t())};setTimeout(r,0)}))},e.prototype.getLineState=function(e){return this.editor.getSession().getState(e-1)},e.prototype.getValueInRange=function(e){return this.editor.getSession().getTextRange(wo(e))},e.prototype.getTokenProvider=function(){return new He(this.editor.getSession())},e.prototype.getValue=function(){return this.editor.getValue()},e.prototype.setValue=function(e,t){return n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return this.editor.getSession().setValue(e),t?[4,this.forceRetokenize()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},new((o=Promise)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i},e.prototype.getLineValue=function(e){return this.editor.getSession().getLine(e-1)},e.prototype.getCurrentPosition=function(){var e=this.editor.getCursorPosition();return{lineNumber:e.row+1,column:e.column+1}},e.prototype.clearSelection=function(){this.editor.clearSelection()},e.prototype.getTokenAt=function(e){return this.getTokenProvider().getTokenAt(e)},e.prototype.insert=function(e,t){"string"!=typeof e?this.editor.getSession().getDocument().insert({column:e.column-1,row:e.lineNumber-1},t||""):this.editor.insert(e)},e.prototype.moveCursorToPosition=function(e){this.editor.moveCursorToPosition({row:e.lineNumber-1,column:e.column-1})},e.prototype.replace=function(e,t){this.editor.getSession().replace(wo(e),t)},e.prototype.getLines=function(e,t){return this.editor.getSession().getLines(e-1,t-1)},e.prototype.replaceRange=function(e,t){var n=this.editor.getCursorPosition();this.editor.getSession().replace(wo(e),t);var r=Math.max(e.start.lineNumber-1+t.split("\n").length-1,1);n.row=Math.min(n.row,r),this.editor.moveCursorToPosition(n),this.editor.clearSelection()},e.prototype.getSelectionRange=function(){var e=this.editor.getSelectionRange();return{start:{lineNumber:e.start.row+1,column:e.start.column+1},end:{lineNumber:e.end.row+1,column:e.end.column+1}}},e.prototype.getLineCount=function(){return this.editor.getSession().getLength()},e.prototype.addMarker=function(e){return this.editor.getSession().addMarker(wo(e),"ace_snippet-marker","fullLine",!1)},e.prototype.removeMarker=function(e){this.editor.getSession().removeMarker(e)},e.prototype.getWrapLimit=function(){return this.editor.getSession().getWrapLimit()},e.prototype.on=function(e,t){"changeCursor"===e?this.editor.getSession().selection.on(e,t):"changeSelection"===e?this.editor.on(e,t):this.editor.getSession().on(e,t)},e.prototype.off=function(e,t){"changeSelection"===e&&this.editor.off(e,t)},e.prototype.isCompleterActive=function(){return Boolean(this.editor.completer&&this.editor.completer.activated)},e.prototype.forceRetokenize=function(){var e=this.editor.getSession();return new Promise((function(t){setTimeout((function(){var n;for(n=0;n<e.getLength();n++)e.getTokens(n);t()}))}))},e.prototype.DO_NOT_USE_onPaste=function(e){if(e&&function(e){if(!e)return!1;for(var t=0,n=e.split("\n");t<n.length;t++)if(n[t].match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/))return!0;return!1}(e)){var t=function(e){var t,n="NONE",r=[],o=[],i="",s=e.trim().split("\n"),a=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^([^']*)'/,u=/^((?:[^\\"]|\\.)*)"/,p=/^((?:[^\\"']|\\.)+)/,d=/^\s*curl\s+/,f=/-X ?(GET|HEAD|POST|PUT|DELETE)/,h=/[\s"']https?:\/\//,_=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,m=/[\s"'][^\/ ]+\/+([^\s"']+)/,g=/^.+\s(--data|-d)\s*/,y=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;function w(){var e=o.pop().replace(/\\([\\"'])/g,"$1");o.push(e)}function v(){"'"===i.substr(0,1)?(i=i.substr(1),n="SINGLE_QUOTE"):'"'===i.substr(0,1)?(i=i.substr(1),n="DOUBLE_QUOTE"):n="UNQUOTED"}function b(){o.length>0&&(r.push(o.join("")),o=[]),n="LF",r.push("\n")}function x(e){var t=i.match(e);t?(o.push(t[1]),i=i.substr(t[0].length),v()):(o.push(i),i="")}function O(){var e,t="GET",o="";(e=i.match(f))&&(t=e[1]);var s=h.test(i)?_:m;(e=i.match(s))&&(o=e[1]),r.push(t+" /"+o+"\n"),(e=i.match(g))?(i=i.substr(e[0].length),v(),a.test(i)&&(i="")):(n="NONE",i="",r.push(""))}for(s.length>0&&/^\s*#!/.test(s[0])&&s.shift();i.length>0||0!==s.length&&(i=s.shift().replace(/[\r\n]+/g,"\n")+"\n",1);)"SINGLE_QUOTE"===n?x(c):"DOUBLE_QUOTE"===n?(x(u),w()):"UNQUOTED"===n?(x(p),o.length&&w(),"UNQUOTED"===n&&(b(),i="")):"BODY"===n?l.test(i)||a.test(i)?b():(o.push(i),i=""):a.test(i)?("LF"!==n&&(r.push("\n"),n="LF"),i=""):(t=i.match(l))?(r.push("#"+t[1]+"\n"),n="NONE",i=""):d.test(i)?O():(t=i.match(y))?(r.push(t[1]+" /"+t[2]+"\n"),i="",n="BODY"):(r.push("### "+i),i="");return b(),r.join("").trim()}(e);this.editor.insert(t)}else this._aceOnPaste.call(this.editor,e)},e.prototype.execCommand=function(e){this.editor.execCommand(e)},e.prototype.getContainer=function(){return this.editor.container},e.prototype.setStyles=function(e){this.editor.getSession().setUseWrapMode(e.wrapLines),this.editor.container.style.fontSize=e.fontSize},e.prototype.registerKeyboardShortcut=function(e){this.editor.commands.addCommand({exec:e.fn,name:e.name,bindKey:e.keys})},e.prototype.legacyUpdateUI=function(e){var t=this;if(this.$actions&&e){var n=Ue()(this.editor.container).offset().top,r=e.start.lineNumber,o=e.start.column,i=this.getLineValue(r),s=this.getWrapLimit()-5,a=i.length>s,l=n-(window.pageYOffset||0),c=function(e){return t.editor.renderer.textToScreenCoordinates(e-1,o).pageY-l},u=c(r);if(u>=0){if(u>this.editor.container.getBoundingClientRect().bottom-l)return void this.setActionsBar(0,"bottom");var p=0;if(a){var d=Ue()(this.editor.container.querySelector("textArea")),f=this.getLineValue(r).length<s;if(!d||!f)return r>1?void this.setActionsBar(c(r-1)):void this.setActionsBar(c(r+1));p+=this.getLineValue(r).length*d.height()}return void this.setActionsBar(u+p)}if(this.editor.renderer.textToScreenCoordinates(e.end.lineNumber,e.end.column).pageY-n>=0)return void this.setActionsBar(0)}},e.prototype.registerAutocompleter=function(e){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(t,n,r,o,i){var s={lineNumber:r.row+1,column:r.column+1};e(s,o,i)}}])},e.prototype.destroy=function(){this.editor.destroy()},e}(),bo=Ce().acequire("ace/lib/oop"),xo=Ce().acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function Oo(){this.$rules={},Br(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===Oo&&this.normalizeRules()}bo.inherits(Oo,xo);var jo=Ce().acequire("ace/lib/oop"),Eo=Ce().acequire("ace/mode/json").Mode,ko=Ce().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,So=Ce().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,To=Ce().acequire("ace/mode/folding/cstyle").FoldMode;Ce().acequire("ace/worker/worker_client");var No=Ce().acequire("ace/tokenizer").Tokenizer;function Ro(){this.$tokenizer=new No((new Oo).getRules()),this.$outdent=new ko,this.$behaviour=new So,this.foldingRules=new To}jo.inherits(Ro,Eo),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(Ro.prototype);const Co=require("antd/lib/notification");var Po=o.n(Co);require("antd/lib/notification/style/index.js");const Ao=require("antd/lib/modal");var Lo=o.n(Ao);require("antd/lib/modal/style/index.js");const qo=require("antd/lib/form");var Io=o.n(qo);require("antd/lib/form/style/index.js");const Do=require("antd/lib/tag");var Mo=o.n(Do);require("antd/lib/tag/style/index.js");const Fo=require("antd/lib/message");var Uo=o.n(Fo);require("antd/lib/message/style/index.js");var zo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Bo=function(n){var r=n.value,o=void 0===r?[]:r,i=n.onChange,l=(0,s.useIntl)(),c=(0,t.useState)(!1),u=c[0],p=c[1],d=(0,t.useState)(""),f=d[0],h=d[1],_=(0,t.useCallback)((function(e){var t=e.target;if(0==t.value.length)return Uo().warning(l.formatMessage({id:"command.message.invalid.tag"}));i&&i(zo(zo([],o||[],!0),[t.value],!1)),p(!1),h("")}),[o]),m=(0,t.useCallback)((function(e){var t=zo([],o,!0);t.splice(e,1),i&&i(t)}),[o]);return(0,e.jsxs)("div",{children:[o.map((function(t,n){return(0,e.jsx)(Mo(),{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:function(){return m(n)},children:t},n)})),u&&(0,e.jsx)(v(),{value:f,onChange:function(e){h(e.target.value)},style:{width:100},onBlur:_,onPressEnter:_}),!u&&(0,e.jsxs)(Mo(),{onClick:function(){p(!0)},style:{padding:"0 5px",fontSize:14},children:[(0,e.jsx)(a.PlusOutlined,{})," ",l.formatMessage({id:"command.btn.newtag"})]})]})};const Go=function(t){var n=(0,s.useIntl)(),r=Io().useForm()[0];return(0,e.jsx)(Lo(),{title:n.formatMessage({id:"command.manage.save.title"}),open:!0,onCancel:t.onClose,onOk:function(){return e=void 0,n=void 0,i=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.validateFields()];case 1:return e=n.sent(),t.onConfirm(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))},new((o=void 0)||(o=Promise))((function(t,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(e,n||[])).next())}));var e,n,o,i},zIndex:1003,cancelText:n.formatMessage({id:"form.button.cancel"}),okText:n.formatMessage({id:"form.button.save"}),children:(0,e.jsxs)(Io(),{form:r,layout:"vertical",children:[(0,e.jsx)(Io().Item,{label:n.formatMessage({id:"command.table.field.name"}),name:"title",rules:[{required:!0,message:"请输入标题"}],children:(0,e.jsx)(v(),{})}),(0,e.jsx)(Io().Item,{label:n.formatMessage({id:"command.table.field.tag"}),name:"tag",children:(0,e.jsx)(Bo,{})})]})})};var Jo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(){return $o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$o.apply(this,arguments)},Vo=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Wo=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Ho=function(t){function n(e){var n=t.call(this,e)||this;return n.mouseEnter=function(){n.state.isPopoverOpen||n.props.getCurl().then((function(e){n.setState({curlCode:e})}))},n.onButtonClick=function(){n.setState((function(e){return{isPopoverOpen:!e.isPopoverOpen}}))},n.closePopover=function(){n.setState({isPopoverOpen:!1})},n.openDocs=function(){return Vo(n,void 0,void 0,(function(){var e;return Wo(this,(function(t){switch(t.label){case 0:return this.closePopover(),[4,this.props.getDocumentation()];case 1:return(e=t.sent())?(window.open(e,"_blank"),[2]):[2]}}))}))},n.autoIndent=function(e){n.closePopover(),n.props.autoIndent(e)},n.saveAsCommonCommand=function(){n.setState({isPopoverOpen:!1,modalVisible:!0})},n.handleClose=function(){n.setState({modalVisible:!1})},n.handleConfirm=function(e){return Vo(n,void 0,void 0,(function(){var t,n,r,o;return Wo(this,(function(i){switch(i.label){case 0:return[4,this.props.saveAsCommonCommand()];case 1:return t=i.sent(),[4,ze($o($o({},e),{requests:t}))];case 2:return[4,null===(r=i.sent())||void 0===r?void 0:r.json()];case 3:return(n=i.sent()).error?Po().error({message:(null===(o=n.error)||void 0===o?void 0:o.reason)||n.error}):(this.handleClose(),Po().success({message:this.props.intl.formatMessage({id:"app.message.save.success"})}),s=n,vt.push(s)),[2]}var s}))}))},n.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1},n}return Jo(n,t),n.prototype.copyAsCurl=function(){return Vo(this,void 0,void 0,(function(){return Wo(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.copyText(this.state.curlCode)];case 1:return e.sent(),Po().open({message:"Request copied as cURL",placement:"bottomRight"}),[3,3];case 2:return e.sent(),Po().error({message:"Could not copy request as cURL",placement:"bottomRight"}),[3,3];case 3:return[2]}}))}))},n.prototype.copyText=function(e){return Vo(this,void 0,void 0,(function(){var t;return Wo(this,(function(n){switch(n.label){case 0:return(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?[4,window.navigator.clipboard.writeText(e)]:[3,2];case 1:return n.sent(),[2];case 2:throw new Error("Could not copy to clipboard!")}}))}))},n.prototype.render=function(){var t,n,r=this;return(0,e.jsxs)("span",{onMouseEnter:this.mouseEnter,children:[(0,e.jsx)(d(),{open:this.state.isPopoverOpen,placement:"bottomLeft",content:(0,e.jsxs)("div",{children:[(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?(0,e.jsx)("div",{children:(0,e.jsx)(u(),{id:"ConCopyAsCurl",disabled:!(null===(n=window.navigator)||void 0===n?void 0:n.clipboard),onClick:function(){r.closePopover(),r.copyAsCurl()},type:"text",children:this.props.intl.formatMessage({id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,(0,e.jsx)("div",{children:(0,e.jsx)(u(),{type:"text",onClick:this.autoIndent,children:this.props.intl.formatMessage({id:"console.menu.auto_indent"})},"Auto indent")}),(0,e.jsx)("div",{children:(0,e.jsx)(u(),{type:"text",onClick:this.saveAsCommonCommand,children:this.props.intl.formatMessage({id:"console.menu.save_as_command"})},"Save as common command")})]}),children:(0,e.jsx)("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:(0,e.jsx)(a.SettingOutlined,{})})}),this.state.modalVisible&&(0,e.jsx)(Go,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})},n}(t.Component);const Ko=(0,s.injectIntl)(Ho);var Qo=function(){return Qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qo.apply(this,arguments)};var Yo=function(e,n){return function(){var r=(0,t.useContext)(e);if(!r)throw new Error("".concat(n," should be used inside of ").concat(n,"Provider!"));return r}};const Xo=require("immer"),Zo=require("fp-ts/lib/function");var ei=function(){return ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ei.apply(this,arguments)},ti={data:null,type:"unknown"},ni=(0,Xo.produce)({requestInFlight:!1,lastResult:ti},Zo.identity),ri=function(e,t){return(0,Xo.produce)(e,(function(e){return"sendRequest"===t.type?(e.requestInFlight=!0,void(e.lastResult=ti)):"requestSuccess"===t.type?(e.requestInFlight=!1,void(e.lastResult=t.payload)):"requestFail"===t.type?(e.requestInFlight=!1,void(e.lastResult=ei(ei({},ti),{error:t.payload}))):void 0}))},oi=(0,t.createContext)(ni),ii=(0,t.createContext)((function(){}));function si(n){var r=n.children,o=(0,t.useReducer)(ri,ni),i=o[0],s=o[1];return(0,e.jsx)(oi.Provider,{value:i,children:(0,e.jsx)(ii.Provider,{value:s,children:r})})}var ai=Yo(oi,"RequestReadContext"),li=Yo(ii,"RequestActionContext"),ci=(0,t.createContext)(null);function ui(t){var n=t.children,r=t.value;return(0,e.jsx)(ci.Provider,{value:r,children:n})}var pi=function(){var e=(0,t.useContext)(ci);if(null==e)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},di=(0,Xo.produce)({ready:!1,currentTextObject:null,sensorEditor:null},Zo.identity),fi=function(e,t){return(0,Xo.produce)(e,(function(e){if("setInputEditor"!==t.type){if("setCurrentTextObject"!==t.type)return e;e.currentTextObject=t.payload}else t.payload&&(e.ready=!0,e.sensorEditor=t.payload)}))},hi=function(){return hi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hi.apply(this,arguments)},_i=(0,t.createContext)(di),mi=(0,t.createContext)((function(){}));function gi(n){var r=n.children,o=(0,t.useReducer)(fi,di,(function(e){return hi({},e)})),i=o[0],s=o[1];return(0,e.jsx)(_i.Provider,{value:i,children:(0,e.jsx)(mi.Provider,{value:s,children:r})})}var yi=Yo(_i,"EditorReadContext"),wi=Yo(mi,"EditorActionContext"),vi=function(e){var n=li(),r=pi(),o=r.services.history,i=r.clusterID,s=yi().sensorEditor;return(0,t.useCallback)((function(){return t=void 0,r=void 0,a=function(){var t,r,o,a,l,c,u,p,d,f,h,_,m,g,y,w,v,b,x,O,j,E,k,S,T,N,R;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(C){switch(C.label){case 0:t="",C.label=1;case 1:return C.trys.push([1,13,,14]),s?[4,s.getRequestsInRange()]:[2];case 2:if(!(r=C.sent()).length)return console.log("No request selected. Select a request by placing the cursor inside it."),[2];o=0,C.label=3;case 3:if(!(o<r.length))return[3,11];switch(a=r[o],l=a.url,c=a.method,u=a.data,null==c?void 0:c.toUpperCase()){case"LOAD":return[3,4];case"CONFIG":return[3,7];case"FROM":return[3,8];case"SELECT":return[3,9]}return[3,10];case 4:return t="LOAD",p=u[0]?u[0].slice(4).trim():l,P=p,A=vt.filter((function(e){return e._source.title==P})),d=A&&A[0],f=s.getCoreEditor().getCurrentPosition().lineNumber,[4,s.getRequestRange(f)];case 5:return h=C.sent(),_=function(e){return e._source.requests.map((function(e){var t=e.method,n=e.path,r=e.body;return["LOAD","FROM","SELECT"].includes((t||"").toUpperCase())?r:"".concat(t," ").concat(n,"\n").concat(r)})).join("\n")}(d),[4,s.getCoreEditor().replaceRange(h,_)];case 6:return C.sent(),[3,10];case 7:return m=l,g=0,u&&u.length>0&&(y=u[0],(w=y.split(" ")).length>=3&&(g=parseInt(w[2]),isNaN(g)))?(n({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+w[2]}}}),[3,10]):("MaxTokenCount"==m&&localStorage.setItem("editor:"+m,g+""),n({type:"requestSuccess",payload:{data:{success:!0}}}),[3,10]);case 8:if(r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],v=r[o].data[0]||"",-1==(b=v.search(/\s+(select)\s+/i)))throw(x=Error("invalid FROM request")).name="FRONT_ERROR",x;return O=v.slice(0,b),v=v.slice(b),(j=v.search(/\s+(order|where|limit)\s+/i))>-1?(E=v.slice(0,j),v=E+" "+O+v.slice(j)):v=v+" "+O,k={query:v.trim()},r[o].data[0]=JSON.stringify(k),[3,10];case 9:return r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],S={query:r[o].data[0]},r[o].data[0]=JSON.stringify(S),[3,10];case 10:return o++,[3,3];case 11:return n({type:"sendRequest",payload:void 0}),[4,e({requests:r,clusterID:i})];case 12:return T=C.sent(),n({type:"requestSuccess",payload:{data:T}}),[3,14];case 13:return N=C.sent(),"LOAD"===t?[2]:(N?(R={data:[N]},"FRONT_ERROR"===N.name&&(R={data:[{response:{value:(null==N?void 0:N.message)||N,contentType:"plain/text"}}]}),n({type:"requestSuccess",payload:R})):n({type:"requestFail",payload:void 0}),[3,14]);case 14:return[2]}var P,A}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}l((a=a.apply(t,r||[])).next())}));var t,r,o,a}),[n,o,i,s])},bi=function(){return bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)};function xi(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}const Oi=require("events"),ji=require("resize-observer-polyfill");var Ei=o.n(ji),ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Si(e){return[e.clientWidth,e.clientHeight]}var Ti=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.destroyed=!1,r.expectedSize=null,r.el=t,r.observer=new(Ei())((function(){if(r.expectedSize){var e=(0,f.isEqual)(Si(t),r.expectedSize);if(r.expectedSize=null,e)return}r.emit("resize")})),n.disabled||r.enable(),r}return ki(t,e),t.prototype.enable=function(){this.destroyed||(this.expectedSize=Si(this.el),this.observer.observe(this.el))},t.prototype.modifySizeWithoutTriggeringResize=function(e){try{e()}finally{this.el&&(this.expectedSize=Si(this.el))}},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())},t}(Oi.EventEmitter);function Ni(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=new Ti(e);return r.on("resize",(function(){return t.forEach((function(e){e.getCoreEditor?e.getCoreEditor().resize():e.resize(),e.updateActionsBar&&e.updateActionsBar()}))})),function(){return r.destroy()}}require("antd/dist/reset.css"),o(3556);var Ri=function(){return Ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ri.apply(this,arguments)},Ci={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},Pi=function(n){var r,o,i,l=n.saveCurrentTextObjectRef,c=n.sendRequestToES,u=(0,s.useIntl)(),p=vi(c),d=(r=(0,t.useRef)(Promise.resolve()),o=pi().services.objectStorageClient,i=yi().currentTextObject,(0,t.useCallback)((0,f.throttle)((function(e){var t=r.current;i&&t.finally((function(){return o.text.update(bi(bi({},i),{text:e,updatedAt:Date.now()}))}))}),500,{trailing:!0}),[o,i]));return(0,t.useEffect)((function(){l.current=d}),[l]),(0,e.jsx)(Te(),{title:u.formatMessage({id:"console.SendRequestButton.ToolTip"}),children:(0,e.jsx)("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:p,children:(0,e.jsx)(a.PlayCircleOutlined,{})})})};const Ai=function(n){var r,o,i=n.selectedCluster,s=n.initialText,a=n.saveEditorContent,l=n.paneKey,c=n.height,u=void 0===c?"100%":c,p=(n.isActive,n.sendRequestToES),d=i.id,f=i.endpoint,h=(0,t.useRef)(null),_=(0,t.useRef)(null),m=(0,t.useRef)(null),g=(o=wi(),(0,t.useCallback)((function(e){o({type:"setInputEditor",payload:e})}),[o])),y=(0,t.useRef)(null),w=(0,t.useRef)((function(){})),v=(0,t.useRef)((function(e){}));return w.current=vi(p),pi().services.settings,(0,t.useEffect)((function(){var e=Ce().edit(h.current);y.current=e;var t=new vo(e,_.current);e.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:function(){w.current(),e.execCommand("iSearch")}});var n=new Ve(t);function r(){try{var e=n.getCoreEditor().getValue();a(e)}catch(e){console.error(e)}}m.current=n,g(n),n.paneKey=l,n.update(s||'GET _search\n{\n "query": {\n "match_all": {}\n }\n}'),xi(n.getCoreEditor(),{fontSize:12,wrapMode:!0});var o,i=Ni(h.current,n);return n.getCoreEditor().on("change",(function(){o&&clearTimeout(o),o=window.setTimeout(r,500)})),function(){i(),m.current&&m.current.getCoreEditor().destroy()}}),[]),(0,t.useEffect)((function(){d&&y.current&&(y.current.clusterID=d)&&(y.current.clusterInfo=i)}),[d]),(0,e.jsx)("div",{style:Ri(Ri({},Ci),{height:u}),"data-test-subj":"console-application",className:"conApp",children:(0,e.jsxs)("div",{className:"conApp__editor",children:[(0,e.jsx)("ul",{className:"conApp__autoComplete",id:"autocomplete"}),(0,e.jsxs)("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:_,children:[(0,e.jsx)(Pi,{saveCurrentTextObjectRef:v,sendRequestToES:p}),(0,e.jsx)(Ko,{getCurl:function(){return m.current.getRequestsAsCURL(f)},getDocumentation:function(){return e=m.current,t="",e.getRequestsInRange().then((function(n){if(!n||0===n.length)return null;var r=n[0].range.end;r.column=r.column-1;var o=function(e,t,n){var r=e.getLineValue(t.lineNumber),o=Qo({},kr(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=hr(o.method);return Kn(o.urlTokenPath,o,e,!0,i),o.endpoint}(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&-1!==o.documentation.indexOf("http")?o.documentation.replace("/master/","/".concat(t,"/")).replace("/current/","/".concat(t,"/")):null}));var e,t},autoIndent:function(e){!function(e,t){var n,r,o,i;n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return t.preventDefault(),[4,e.autoIndent()];case 1:return n.sent(),e.getCoreEditor().getContainer().focus(),[2]}}))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}))}(m.current,e)},saveAsCommonCommand:function(){return e=void 0,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(t){switch(t.label){case 0:return null==(e=m.current)?(console.warn("editor is null"),[2]):[4,e.getRequestsInRange()];case 1:return[2,t.sent().map((function(e){return{method:e.method,path:e.url,body:(e.data||[]).join("\n")}}))]}}))},new((n=Promise)||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r}})]}),(0,e.jsx)("div",{ref:h,id:"Editor_".concat(null===(r=m.current)||void 0===r?void 0:r.paneKey),className:"conApp__editorContent","data-test-subj":"request-editor",onClick:function(){var e;null===(e=y.current)||void 0===e||e.focus()}})]})})};require("brace/mode/yaml");var Li=function(e){return Boolean(e&&e.indexOf("application/json")>=0)};const qi=function(n){var r=n.clusterID,o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=ai().lastResult,a=s.data,l=s.error;return(0,t.useEffect)((function(){var e;null===(e=i.current)||void 0===e||e.setValue("")}),[r]),(0,t.useEffect)((function(){var e,t,n,r;i.current=(e=o.current,n=Ce().acequire("ace/ace").edit(e),r=new Ro,n.$blockScrolling=1/0,n.resize=Ke(n),n.update=function(e,t,o){"function"==typeof t&&(o=t,t=void 0);var i=n.getSession();i.setMode(e?t||r:"ace/mode/text"),i.setValue(e),"function"==typeof o&&setTimeout(o)},n.append=function(e,t,r){"function"==typeof t&&(r=t,t=!0),h().isUndefined(t)&&(t=!0);var o=n.getSession(),i=o.getLength();t&&n.moveCursorTo(Math.max(0,i-1),0),o.insert({row:i,column:0},"\n"+e),n.moveCursorTo(i+1,0),"function"==typeof r&&setTimeout(r)},(t=n.getSession()).setMode("ace/mode/text"),t.setFoldStyle("markbeginend"),t.setTabSize(2),t.setUseWrapMode(!0),n.setShowPrintMargin(!1),n.setReadOnly(!0),n);var s=o.current.querySelector("textarea");s.setAttribute("id","ConAppOutputTextarea"),s.setAttribute("readonly","true"),xi(i.current,{fontSize:12,wrapMode:!0});var a=Ni(o.current,i.current);return function(){a(),i.current.destroy()}}),[]),(0,t.useEffect)((function(){var e,t,n=i.current;if(a){if(!a.length)return void n.update(JSON.stringify(a,null,2),"ace/mode/json");n.update(a.map((function(e){var t=e.response,n=t.value,r=t.contentType;if(Li(r)){var o="",i=n;if(""==i)return"";try{var s="";if("#"==i[0]){var a=i.indexOf("\n");o=i.slice(0,a),i=i.slice(a),s=o+"\n"+JSON.stringify(JSON.parse(i),null,2)}else s=JSON.stringify(JSON.parse(i),null,2);return s}catch(e){console.error(e)}}return n})).join("\n"))}else if(l){var r=(t=null===(e=l.response)||void 0===e?void 0:e.contentType)?Li(t)?"ace/mode/json":t.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text";if("ace/mode/json"==r)return void n.update(JSON.stringify(JSON.parse(l.response.value),null,2),r);n.update(l.response.value,r)}else n.update("")}),[a,l]),(0,e.jsx)("div",{ref:o,className:"conApp__outputContent","data-test-subj":"response-editor",children:(0,e.jsx)("div",{id:"ConAppOutput"})})};var Ii=function(){function e(){this.panels=[]}return e.prototype.registerPanel=function(e){this.panels.push(e)},e.prototype.getPanels=function(){return this.panels},e}(),Di=(0,t.createContext)({registry:new Ii});function Mi(t){var n=t.children,r=t.registry;return(0,e.jsx)(Di.Provider,{value:{registry:r},children:n})}var Fi=function(){return Fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fi.apply(this,arguments)};function Ui(n){var r=n.children,o=n.className,i=n.initialWidth,s=void 0===i?100:i,a=n.style,l=void 0===a?{}:a,c=(0,t.useState)("".concat(s,"%")),u=c[0],p=c[1],d=function(){var e=(0,t.useContext)(Di);if(void 0===e)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e}().registry,f=(0,t.useRef)(null);return(0,t.useEffect)((function(){d.registerPanel({width:s,setWidth:function(e){p(e+"%"),this.width=e},getWidth:function(){return f.current.getBoundingClientRect().width}})}),[s,d]),(0,e.jsx)("div",{className:o,ref:f,style:Fi(Fi({},l),{width:u,display:"flex"}),children:r})}var zi=function(){return zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zi.apply(this,arguments)};function Bi(t){return(0,e.jsx)("button",zi({},t,{children:(0,e.jsx)(a.PauseOutlined,{})}))}var Gi=function(){return Gi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gi.apply(this,arguments)},Ji="ArrowLeft",$i="ArrowRight",Vi={isDragging:!1,currentResizerPos:-1},Wi=function(e,t){return e/t*100};const Hi=function(n){var r=n.children,o=n.className,i=n.onPanelWidthChange,s=n.resizerClassName,a=t.Children.toArray(r),l=a[0],c=a[1],u=(0,t.useRef)(new Ii),p=(0,t.useRef)(null),d=(0,t.useState)(Vi),f=d[0],h=d[1],_=(0,t.useCallback)((function(e){h(Gi(Gi({},f),{isDragging:!0,currentResizerPos:e.clientX}))}),[f]),m=(0,t.useCallback)((function(e){var t=e.key;if(t===Ji||t===$i){e.preventDefault();var n=u.current.getPanels(),r=n[0],o=n[1],s=r.width-(t===Ji?1:-1),a=o.width-(t===$i?1:-1);r.setWidth(s),o.setWidth(a),i&&i([s,a])}}),[i]);(0,t.useEffect)((function(){}),[a.length]);var g=[l,(0,e.jsx)(Bi,{className:s,onKeyDown:m,onMouseDown:_},"resizer"),c];return(0,e.jsx)(Mi,{registry:u.current,children:(0,e.jsx)("div",{className:o,ref:p,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:function(e){if(f.isDragging){var t=e.clientX,n=u.current.getPanels(),r=n[0],o=n[1],s=t-f.currentResizerPos,a=p.current.getBoundingClientRect().width,l=Wi(r.getWidth()+s,a),c=Wi(o.getWidth()-s,a);r.setWidth(l),o.setWidth(c),i&&i([l,c]),h(Gi(Gi({},f),{currentResizerPos:t}))}},onMouseUp:function(){h(Vi)},children:g})})},Ki=require("rxjs");var Qi,Yi=function(){function e(e){this.storage=e,this.changeEmitter=new Ki.BehaviorSubject(this.getHistory()||[])}return e.prototype.getHistoryKeys=function(){return this.storage.keys().filter((function(e){return 0===e.indexOf("hist_elem")})).sort().reverse()},e.prototype.getHistory=function(){var e=this;return this.getHistoryKeys().map((function(t){return e.storage.get(t)}))},e.prototype.change=function(e){var t=this.changeEmitter.subscribe(e);return function(){return t.unsubscribe()}},e.prototype.addToHistory=function(e,t,n){var r=this,o=this.getHistoryKeys();o.splice(0,100),o.forEach((function(e){r.storage.delete(e)}));var i=(new Date).getTime(),s="hist_elem_"+i;this.storage.set(s,{time:i,endpoint:e,method:t,data:n}),this.changeEmitter.next(this.getHistory())},e.prototype.updateCurrentState=function(e){var t=(new Date).getTime();this.storage.set("editor_state",{time:t,content:e})},e.prototype.getLegacySavedEditorState=function(){var e=this.storage.get("editor_state");if(e)return{time:e.time,content:e.content}},e.prototype.deleteLegacySavedEditorState=function(){this.storage.delete("editor_state")},e.prototype.clearHistory=function(){var e=this;this.getHistoryKeys().forEach((function(t){return e.storage.delete(t)}))},e}();!function(e){e.WIDTH="widths"}(Qi||(Qi={}));var Xi=function(){function e(e,t){this.engine=e,this.prefix=t}return e.prototype.encode=function(e){return JSON.stringify(e)},e.prototype.decode=function(e){if("string"==typeof e)return JSON.parse(e)},e.prototype.encodeKey=function(e){return"".concat(this.prefix).concat(e)},e.prototype.decodeKey=function(e){if((0,f.startsWith)(e,this.prefix))return"".concat(e.slice(this.prefix.length))},e.prototype.set=function(e,t){return this.engine.setItem(this.encodeKey(e),this.encode(t)),t},e.prototype.has=function(e){return null!=this.engine.getItem(this.encodeKey(e))},e.prototype.get=function(e,t){return this.has(e)?this.decode(this.engine.getItem(this.encodeKey(e))):t},e.prototype.delete=function(e){return this.engine.removeItem(this.encodeKey(e))},e.prototype.keys=function(){var e=this;return(0,f.transform)((0,f.keys)(this.engine),(function(t,n){var r=e.decodeKey(n);null!=r&&t.push(r)}))},e}(),Zi=function(){function e(e){this.storage=e}return e.prototype.getFontSize=function(){return this.storage.get("font_size",12)},e.prototype.setFontSize=function(e){return this.storage.set("font_size",e),!0},e.prototype.getWrapMode=function(){return this.storage.get("wrap_mode",!0)},e.prototype.setWrapMode=function(e){return this.storage.set("wrap_mode",e),!0},e.prototype.setTripleQuotes=function(e){return this.storage.set("triple_quotes",e),!0},e.prototype.getTripleQuotes=function(){return this.storage.get("triple_quotes",!0)},e.prototype.getAutocomplete=function(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})},e.prototype.setAutocomplete=function(e){return this.storage.set("autocomplete_settings",e),!0},e.prototype.getPolling=function(){return this.storage.get("console_polling",!0)},e.prototype.setPolling=function(e){return this.storage.set("console_polling",e),!0},e.prototype.toJSON=function(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:Boolean(this.getPolling())}},e.prototype.updateSettings=function(e){var t=e.fontSize,n=e.wrapMode,r=e.tripleQuotes,o=e.autocomplete,i=e.polling;this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)},e}();const es=require("uuid");var ts=function(){return ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ts.apply(this,arguments)},ns=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},rs=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},os=function(){function e(e,t){this.client=e,this.prefix="console_local_".concat(t)}return e.prototype.create=function(e){return ns(this,void 0,Promise,(function(){var t,n;return rs(this,(function(r){return t=es.v4(),n=ts({id:t},e),this.client.set("".concat(this.prefix,"_").concat(t),n),[2,n]}))}))},e.prototype.update=function(e){return ns(this,void 0,Promise,(function(){return rs(this,(function(t){return this.client.set("".concat(this.prefix,"_").concat(e.id),e),[2]}))}))},e.prototype.findAll=function(){return ns(this,void 0,Promise,(function(){var e,t,n,r,o,i=this;return rs(this,(function(s){for(e=this.client.keys().filter((function(e){return e.includes(i.prefix)})),t=[],n=0,r=e;n<r.length;n++)o=r[n],t.push(this.client.get(o));return[2,t]}))}))},e}();const is=require("antd/lib/badge");var ss=o.n(is);require("antd/lib/badge/style/index.js");var as={green:U,yellow:z,red:B,available:U,unavailable:J,online:U,offline:J,active:z,normal:U,acknowledged:U,error:B,gray:G},ls=function(t){var n=t.status,r=t.size,o=void 0===r?14:r;if("unavailable"==n||!as[n])return(0,e.jsx)("span",{children:(0,e.jsx)(a.CloseCircleOutlined,{style:{fontSize:14,color:J}})});var i=function(e){return as[e]}(n);return(0,e.jsx)("div",{style:{background:i,height:o,width:o,borderRadius:o,display:"inline-block",verticalAlign:"text-bottom"}})},cs=(o(3762),function(e){return e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger"}),us=function(t){var n,r=t.requestInProgress,o=t.requestResult,i=t.selectedCluster,a=t.left,l=null,c=(0,e.jsxs)("div",{className:"base-info",children:[(0,e.jsxs)("div",{className:"info-item health",children:[(0,e.jsxs)("span",{children:[" ",(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.status"}),":"]}),(0,e.jsx)("i",{style:{position:"absolute",top:1,right:0},children:(0,e.jsx)(ls,{status:null===(n=null==i?void 0:i.labels)||void 0===n?void 0:n.health_status})})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),(0,e.jsx)(ss(),{color:"default",text:null==i?void 0:i.host})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.version"}),":"]}),(0,e.jsx)(ss(),{color:"default",text:null==i?void 0:i.version})]})]});if(r)l=(0,e.jsx)(ss(),{color:"hollow",text:"Request in progress"});else if(o){var u=o.endpoint,p=o.method,d=o.statusCode,f=o.statusText,h=o.timeElapsedMs;l=(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"status_info",children:[(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.status"}),":"]}),(0,e.jsx)(Te(),{placement:"top",title:(0,e.jsx)("span",{children:"".concat(p," ").concat(u.startsWith("/")?u:"/"+u)}),children:(0,e.jsx)(ss(),{color:cs(d),text:"".concat(d," - ").concat(f)})})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),(0,e.jsx)(Te(),{placement:"top",title:(0,e.jsx)("span",{children:"Time Elapsed"}),children:(0,e.jsx)(ss(),{color:"default",text:"".concat(h," ").concat("ms")})})]})]})})}return(0,e.jsx)("div",{className:"request-status-bar",children:a?(0,e.jsx)("div",{className:"bar-item",children:c}):(0,e.jsx)("div",{className:"bar-item",children:l})})},ps=(o(146),function(){return ps=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ps.apply(this,arguments)}),ds=function(t){var n,r,o,i,s,a,l,c,u,p,d,f,h,_=t.selectedCluster,m=t.saveEditorContent,g=t.initialText,y=t.paneKey,w=t.isActive,v=t.height,b=t.sendRequestToES,x=ai(),O=x.requestInFlight,j=x.lastResult,E=j.data,k=j.error,S=null!==(n=null==E?void 0:E[E.length-1])&&void 0!==n?n:k,T=v>0?v+"px":"100%";return(0,e.jsx)("div",{style:{height:T},children:(0,e.jsx)("div",{className:"Console",style:{height:"100%"},children:(0,e.jsxs)(Hi,{resizerClassName:"resizer",children:[(0,e.jsxs)(Ui,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:26},initialWidth:50,children:[(0,e.jsx)(Ai,{height:v-26+"px",selectedCluster:_,saveEditorContent:m,initialText:g,paneKey:y,isActive:w,sendRequestToES:b}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(us,{requestInProgress:O,selectedCluster:_,left:!0,requestResult:S&&S.request?{method:S.request.method.toUpperCase(),endpoint:S.request.path,statusCode:null===(r=S.response)||void 0===r?void 0:r.statusCode,statusText:null===(o=S.response)||void 0===o?void 0:o.statusText,timeElapsedMs:null===(i=S.response)||void 0===i?void 0:i.timeMs,requestHeader:null===(s=S.request)||void 0===s?void 0:s.header,responseHeader:null===(a=S.response)||void 0===a?void 0:a.header}:void 0})})]}),(0,e.jsxs)(Ui,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:26},initialWidth:50,children:[(0,e.jsx)(ke(),{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:(0,e.jsx)("div",{style:{height:v-26},children:(0,e.jsx)(qi,{clusterID:_.id})})},{key:"headers",label:"Headers",children:(0,e.jsx)(ke(),{animated:!1,items:[{key:"1",label:"Request",children:(0,e.jsx)(Ne,{code:null===(l=null==S?void 0:S.request)||void 0===l?void 0:l.header})},{key:"2",label:"Response",children:(0,e.jsx)(Ne,{code:null===(c=null==S?void 0:S.response)||void 0===c?void 0:c.header})}]})}]}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(us,{requestInProgress:O,selectedCluster:_,requestResult:S&&S.request?{method:S.request.method.toUpperCase(),endpoint:S.request.path,statusCode:null===(u=S.response)||void 0===u?void 0:u.statusCode,statusText:null===(p=S.response)||void 0===p?void 0:p.statusText,timeElapsedMs:null===(d=S.response)||void 0===d?void 0:d.timeMs,requestHeader:null===(f=S.request)||void 0===f?void 0:f.header,responseHeader:null===(h=S.response)||void 0===h?void 0:h.header}:void 0})})]})]})})})};const fs=function(n){var r=(0,t.useRef)(new Ii),o=(0,t.useMemo)((function(){var e,t=(e={engine:window.localStorage,prefix:"sense:"},new Xi(e.engine,e.prefix)),n=function(e){return new Yi(e.storage)}({storage:t}),r=function(e){return{text:new os(e,"text-object")}}(t),o=function(e){return new Zi(e.storage)}({storage:t});return{storage:t,history:n,objectStorageClient:r,settings:o}}),[]),i=o.storage,s=o.history,a=o.objectStorageClient,l=o.settings;return(0,e.jsx)(Mi,{registry:r.current,children:(0,e.jsx)(si,{children:(0,e.jsx)(gi,{children:(0,e.jsx)(ui,{value:{services:{history:s,storage:i,objectStorageClient:a,settings:l},clusterID:n.selectedCluster.id},children:(0,e.jsx)(ds,ps({},n))})})})})};const hs=o.p+"75060ae827382b9be77f78d92beb74a7.svg",_s=o.p+"194377418b2fbf8afa9e56eb76c2d9a4.svg";o(3639);var ms=function(){return ms=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ms.apply(this,arguments)},gs={en:{"console.cluster.status":"Health","console.cluster.endpoint":"Endpoint","console.cluster.version":"Version","console.response.status":"Response status","console.response.time_elapsed":"Time elapsed","console.request.headers":"Headers","console.request.headers.title":"Request header info","console.cluster.select.placeholder":"Enter cluster name","console.cluster.select.search.no_match":"No cluster is matched (the matching rule is prefix matching)","console.SendRequestButton.ToolTip":"Click to send request","console.noConsole.desc":"Add a cluster now and start your efficient development journey","console.noConsole.dev1":"Multi cluster parallel operation","console.noConsole.dev2":"Intelligent syntax prompt","console.noConsole.dev3":"Quickly load commonly used instructions","console.noConsole.dev4":"One click workspace switching","cluster.manage.create":"Create Cluster","cluster.manage.register":"Register Cluster","cluster.manage.des":"This can help you better understand and analyze your data in order to make predictions and decisions quickly.","menu.devtool.console":"Dev Tools","command.table.field.name":"Name","command.table.field.tag":"Tag","command.table.field.content":"Content","command.manage.edit.title":"Command","command.btn.newtag":"Add New Tag","command.message.invalid.tag":"invalid tag","command.manage.save.title":"Save As Command","command.manage.title":"COMMANDS","command.manage.description":"Commonly used commands can help you save frequently used requests and load them quickly through the LOAD command in the development tool.","console.menu.copy_as_curl":"Copy As Curl","console.menu.auto_indent":"Auto Indent","console.menu.save_as_command":"Save As Command","form.button.save":"Save","form.button.cancel":"Cancel"},zh:{"console.cluster.status":"健康状态","console.cluster.endpoint":"集群地址","console.cluster.version":"版本","console.response.status":"响应状态","console.response.time_elapsed":"时延","console.request.headers":"请求头","console.request.headers.title":"请求头信息","console.cluster.select.placeholder":"输入集群名称查找","console.cluster.select.search.no_match":"匹配不到集群(匹配规则为前缀匹配)","console.SendRequestButton.ToolTip":"点击发送请求","console.noConsole.desc":"立即添加集群,启动您的高效开发之旅","console.noConsole.dev1":"多集群并行操作","console.noConsole.dev2":"智能语法提示","console.noConsole.dev3":"快速加载常用指令","console.noConsole.dev4":"一键切换工作区","cluster.manage.create":"创建集群","cluster.manage.register":"注册集群","cluster.manage.des":"这可以帮助您更好地理解和分析数据,以便快速做出预测和决策。","menu.devtool.console":"开发工具","command.table.field.name":"名称","command.table.field.tag":"标签","command.table.field.content":"内容","command.manage.edit.title":"常用命令","command.btn.newtag":"新建标签","command.message.invalid.tag":"无效的标签内容","command.manage.save.title":"保存为常用命令","command.manage.title":"常用命令管理","command.manage.description":"常用命令可以帮助您保存常用的请求,并且在开发工具里面通过 LOAD 命令快速地加载。","console.menu.copy_as_curl":"复制为 curl 命令","console.menu.auto_indent":"自动缩进","console.menu.save_as_command":"保存为常用命令","form.button.save":"保存","form.button.cancel":"取消"}},ys=navigator.language.split(/[-_]/)[0];console.log("language",ys);var ws=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",ms({height:"14px",width:"14px"},t,{src:hs}))},vs=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",ms({height:"14px",width:"14px"},t,{src:_s}))},bs=ye.TabPane,xs=function(t){return(0,e.jsx)(fs,ms({},t))},Os=function(e,t){var n=t.type,r=t.payload,o=e;switch(n){case"add":o=function(e,t){var n=e.panes,r=t.payload.cluster,o="".concat(r.id,":").concat((new Date).valueOf());return n.push({key:o,cluster_id:r.id,title:r.name,cluster:r}),ms(ms({},e),{panes:n,activeKey:o})}(e,t);break;case"remove":o=function(e,t){var n,r=e.activeKey,o=e.panes,i=t.payload.targetKey,s=o.filter((function(e){return e.key!==i}));return ms(ms({},e),{panes:s,activeKey:r==i?null===(n=s[0])||void 0===n?void 0:n.key:r})}(e,t);break;case"change":o=ms(ms({},e),{activeKey:r.activeKey});break;case"saveTitle":var i=t.payload,s=i.key,a=i.title,l=e.panes.map((function(e){return e.key==s?ms(ms({},e),{title:a}):e}));o=ms(ms({},e),{panes:l});break;case"saveContent":var c=e.panes.map((function(n){return n.key==e.activeKey?ms(ms({},n),{content:t.payload.content}):n}));o=ms(ms({},e),{panes:c});break;case"saveOrder":o=ms(ms({},e),{order:t.payload.order});break;case"init":o=t.payload}return o},js={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n\nGET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g\n'}]};const Es=function(n){var o,i,c,u=n.minimize,p=void 0!==u&&u,d=n.onMinimizeClick,f=n.resizeable,h=void 0!==f&&f,_=n.height,m=void 0===_?"50vh":_,g=n.width,y=void 0===g?"100%":g,w=n.mode,v=void 0===w?"global":w,b=n.sendRequestToES,x=n.SearchEngineIcon,O=(n.DataSourceSelector,n.fetchDataSource,n.LogoImg),j=n.clusterList,E=void 0===j?[]:j,k=n.defaultCluster,S=void 0===k?null:k,T=function(){var e=S||(E&&E.length>0?E[0]:null);if(e){var t="".concat(e.id,":").concat((new Date).valueOf());return{activeKey:t,panes:[{key:t,cluster_id:e.id,title:e.name,cluster:e,closable:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n'}]}}return js},N=(i=T,c={encode:JSON.stringify,decode:JSON.parse},function(e,n,r,o){var i=(0,t.useState)((function(){var t=r.getItem(e);return t?o&&"function"==typeof o.encode?o.decode(t):t:"function"==typeof n?n():n})),s=i[0],a=i[1];(0,t.useEffect)((function(){if(void 0===s)return r.removeItem(e);var t=s;o&&"function"==typeof o.encode&&(t=o.encode(t)),r.setItem(e,t)}),[e,s,r]);var l=(0,t.useCallback)((function(){a(void 0)}),[]);return[s,a,l]}("console:state:",i,window.localStorage,c)),R=N[0],C=N[1],P=(N[2],(0,t.useReducer)(Os,R)),A=P[0],L=P[1];(0,t.useEffect)((function(){if(0==A.panes.length){var e=T();return L({type:"init",payload:e}),void C(e)}A.panes.some((function(e){return e.key==A.activeKey}))||L({type:"change",payload:{activeKey:A.panes[0].key}}),C(A)}),[A,L,C]);var q,I=(0,t.useCallback)((function(e){L({type:"saveContent",payload:{content:e}})}),[L]),D=((0,t.useCallback)((function(e){L({type:"add",payload:{cluster:e}})}),[]),(0,t.useRef)(null)),M=(0,t.useState)(!1),F=M[0],U=M[1],z=(0,t.useCallback)((function(e){d(e),W()}),[d]);q=null===(o=A.activeKey)||void 0===o?void 0:o.split(":")[0],bt=q;var B=A.panes.map((function(e){return e.closable=!1,e}));1==B.length&&(B[0].closable=!1);var G={left:(0,e.jsx)("div",{className:"tabbar-icon",onClick:z,children:O?(0,e.jsx)(l(),{component:O,style:{fontSize:"24px",verticalAlign:"middle"}}):(0,e.jsx)(a.CodeOutlined,{})}),right:(0,e.jsxs)(e.Fragment,{children:[p?(0,e.jsx)("div",{className:"tabbar-icon",onClick:z,children:(0,e.jsx)(a.MinusSquareOutlined,{})}):null,(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(){null!=D.current&&(F?(D.current.className=D.current.className.replace(" fullscreen",""),W()):D.current.className=D.current.className+" fullscreen"),V(D.current.clientHeight),U(!F)},children:F?(0,e.jsx)(vs,{}):(0,e.jsx)(ws,{})})]}),append:null},J=(0,t.useState)(function(e){var t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}(m)),$=J[0],V=J[1];(0,t.useEffect)((function(){var e=function(){F&&V(D.current.offsetHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[F]);var W=function(){document.body.style.overflow=""};return(0,t.useEffect)((function(){if("global"==v){var e=document.querySelector("#root>div");e&&(e.style.paddingBottom="number"==typeof $?$+"px":$)}}),[$]),(0,e.jsx)(s.IntlProvider,{locale:ys,messages:gs[ys],children:(0,e.jsx)(r.Resizable,{defaultSize:{width:y,height:$||"50vh"},minHeight:70,maxHeight:"100vh",handleComponent:{top:(0,e.jsx)(je,{})},onResize:function(e,t,n,r){V(n.clientHeight)},enable:{top:h,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},style:{width:y},children:(0,e.jsx)("div",{style:{background:"#fff",height:"100%"},onMouseOver:function(){document.body.style.overflow="hidden"},onMouseOut:W,id:"console",ref:D,children:(0,e.jsx)(Oe,{onChange:function(e){L({type:"change",payload:{activeKey:e}})},activeKey:A.activeKey,type:"editable-card",onEdit:function(e,t){L({type:t,payload:{targetKey:e}})},hideAdd:!0,initialOrder:A.order,tabBarExtraContent:G,onTabNodeMoved:function(e){L({type:"saveOrder",payload:{order:e}})},children:0===B.length?(0,e.jsx)("div",{children:"no data"}):B.map((function(t){return(0,e.jsx)(bs,{tab:(0,e.jsx)(Y,{title:t.title,onTitleChange:function(e){!function(e,t){L({type:"saveTitle",payload:{key:e,title:t}})}(t.key,e)},distribution:t.cluster.distribution,SearchEngineIcon:x}),closable:t.closable,children:(0,e.jsx)(xs,{height:$-35,selectedCluster:t.cluster,paneKey:t.key,saveEditorContent:I,initialText:t.content,isActive:t.key==A.activeKey,sendRequestToES:b})},t.key)}))})})})})}})(),i})()));
|