openc3-cosmos-tool-dataextractor 7.0.0 → 7.0.1
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.
- checksums.yaml +4 -4
- data/tools/dataextractor/ArrayWidget-Dh6zDiC7-873bed41f0920d4f20e2.js +2 -0
- data/tools/dataextractor/{ArrayplotWidget-CDNRxI2F-a83801ded05b12f711f8.js → ArrayplotWidget-CSc_TqNm-faea7e102c3b0e77340e.js} +1 -1
- data/tools/dataextractor/{BarColumn-nSFR2LZF-52aaa4252f2230353368.js → BarColumn-DmjMnw5l-e63ca3ac4f4e5f880c78.js} +1 -1
- data/tools/dataextractor/BlockWidget-BdR_HCVc-339e6dbc0abdf23824ee.js +2 -0
- data/tools/dataextractor/{ButtonWidget-rS7sVb7m-dbf9f92372e6dff8e3d3.js → ButtonWidget-DZ4VCNWU-467ba3039befef92a15a.js} +2 -2
- data/tools/dataextractor/{CanvasWidget-DuWolVCW-2bd38dd443fd2f303296.js → CanvasWidget-DuXOo3jG-cca60757795adfc9b555.js} +1 -1
- data/tools/dataextractor/CanvasdotWidget-WoLpxI1u-42cc7026c74d2b83f1bf.js +1 -0
- data/tools/dataextractor/{CanvasimageWidget-DMHdDTSs-e3480e258876ee7d5ce8.js → CanvasimageWidget-tWpK5rsv-037c03642913e202f682.js} +1 -1
- data/tools/dataextractor/{CanvasimagevalueWidget-ns-5S1HA-984a3695590efe80a103.js → CanvasimagevalueWidget-BVzJYz3l-3d76b92444baed7b16b9.js} +1 -1
- data/tools/dataextractor/{CanvaslabelWidget-DElES3gU-9213b36fbadeb0359f4e.js → CanvaslabelWidget-CDFf8Vll-90f5994b9ebe9dd669d7.js} +1 -1
- data/tools/dataextractor/{CanvaslabelvalueWidget-B2B5KlUm-04fa31c935f3aa224322.js → CanvaslabelvalueWidget-DzJKD6qs-16454bcd3f0db6ad1a0d.js} +1 -1
- data/tools/dataextractor/CanvaslineWidget-BttTXCZq-4f927bb9d629d4ca2431.js +1 -0
- data/tools/dataextractor/{CanvaslinevalueWidget-CrtDsSOP-3dd527a40c656fd8d936.js → CanvaslinevalueWidget-i6G0JfnZ-6ed33732c8ac89cd98bb.js} +1 -1
- data/tools/dataextractor/CheckbuttonWidget-18jtf7sh-1bb7cf5924c0accea787.js +1 -0
- data/tools/dataextractor/{ComboboxWidget-CciRWuKq-3f1ba4ec7db5de697819.js → ComboboxWidget-BjaVFbD4-68be351db2576115fc45.js} +1 -1
- data/tools/dataextractor/{DataExtractor-e5f302088707d33752fd.js → DataExtractor-6a57a8b8549d610cacac.js} +8 -8
- data/tools/dataextractor/{DateWidget-DwgQ3Jik-d443f1fdc2599de1735d.js → DateWidget-DkFAFlc8-8b87a00cd8c7df7adf8c.js} +1 -1
- data/tools/dataextractor/{DetailsDialog-CspQjoR5-a13c819a71a18f3ba1f8.js → DetailsDialog-sqja4Lzq-3c07f8084078cec125bc.js} +1 -1
- data/tools/dataextractor/{DynamicWidget-Bym87woV-24d53debe022dc41bdad.js → DynamicWidget-BuSbQVhf-57879c868050e8e6066a.js} +1 -1
- data/tools/dataextractor/{FilechecksumWidget-BS281Q0h-aa51848ef542e86ad554.js → FilechecksumWidget-DqJ_hvN4-458d5afdd66f766a320e.js} +1 -1
- data/tools/dataextractor/{FiledisplayWidget-C9YdXDdv-7048222386da1c6b8556.js → FiledisplayWidget-CYznG_tf-633ffe7729c3d8df045f.js} +1 -1
- data/tools/dataextractor/{FormatvalueWidget-dfmQfrNA-43064fa838d0937da3ab.js → FormatvalueWidget-BnVu4YGx-685c1b3d38cda62137ef.js} +1 -1
- data/tools/dataextractor/Graph-CUFzx8Ti-e326729124e84b220373.js +1 -0
- data/tools/dataextractor/{GraphWidget-CWJ4Yb26-15460f438f038901828a.js → GraphWidget-DO5XbOGy-edd2165bb446a9306f21.js} +1 -1
- data/tools/dataextractor/{HorizontalWidget-DFAqF95S-4494e9bd7db85c2b3380.js → HorizontalWidget-BA9PiP3d-61dbe5e15cff5d64bb29.js} +1 -1
- data/tools/dataextractor/HorizontalboxWidget-B-7HOqgl-32dab144449bf94f15aa.js +1 -0
- data/tools/dataextractor/HorizontallineWidget-D-o9MGo0-ddb9630a2adc743b1e74.js +1 -0
- data/tools/dataextractor/{IframeWidget-BsDu4b17-729d665632327b5613f4.js → IframeWidget-BzOka-fX-cbf4824b3f4d3e3f6424.js} +1 -1
- data/tools/dataextractor/{ImageLoader-CT4rnwWn-5b50796341061a230f31.js → ImageLoader-CstmWFM4-f27420bebced8580ff70.js} +1 -1
- data/tools/dataextractor/{ImageviewerWidget-BQbrz2WL-708300227e9c554627dd.js → ImageviewerWidget-BA9uOM1q-b0947f82f033e760c532.js} +1 -1
- data/tools/dataextractor/{LabelWidget-D5-IFUYW-5fcc7202ac2b5e9869c8.js → LabelWidget-Da2howZF-bfb9fcc9c81e16f870e5.js} +1 -1
- data/tools/dataextractor/LabelledWidget-BH8y3OXT-68af25a9704951142531.js +1 -0
- data/tools/dataextractor/{LabelprogressbarWidget-BNFgTq4D-606ff758c918eb5b0223.js → LabelprogressbarWidget-Brl24F4c-e37d3a3a1ea8e0130fa0.js} +1 -1
- data/tools/dataextractor/LabelsparklineWidget-D22MB7-4-4d4c54cc590572f96ebc.js +1 -0
- data/tools/dataextractor/LabelvalueWidget-_1JPbK-K-79535add803f699f912d.js +1 -0
- data/tools/dataextractor/{LabelvaluedescWidget-DeBRjYXs-7d13f0625327ab080392.js → LabelvaluedescWidget-BgduSJJb-2c9d371ecc2f493464fd.js} +1 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-C9PlEhWo-124291211bb9a7fb7a20.js +1 -0
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-Cay6AhoZ-aeb62c844e9d862bc2b3.js +1 -0
- data/tools/dataextractor/LabelvaluerangebarWidget-s_8IgY-C-299393edba519bae3a75.js +1 -0
- data/tools/dataextractor/{Layout-LSeXBY_W-523b3bdfa663af9d9dc2.js → Layout-D7RGn0Fe-4c6501b5b5c13bc5939b.js} +1 -1
- data/tools/dataextractor/{LedWidget-CH4Il9R7-84f6b5b3f3604db94a1e.js → LedWidget-DgMtvsiv-f9fb0a4ee2f71ef2a9f6.js} +1 -1
- data/tools/dataextractor/{LimitsBar-BelAQFD0-1c800ecbee755a7c8180.js → LimitsBar-CcOaAw0C-3ee7e5044b0ba18270a6.js} +1 -1
- data/tools/dataextractor/{LimitsbarWidget-PkPqlyxL-41cb2134202cfc229b0d.js → LimitsbarWidget-DpmJn1Lo-06311c5aa1a8fd9c3272.js} +1 -1
- data/tools/dataextractor/{LimitscolorWidget-BlA15g4A-ac374db2daee985c3708.js → LimitscolorWidget-BMXiEaDm-82722cde5d79a4a63dd5.js} +1 -1
- data/tools/dataextractor/{LimitscolumnWidget-PT917BA0-ec85efca8ebf5a868be1.js → LimitscolumnWidget-ufFMz6R--c471ef82b3a96efbb076.js} +1 -1
- data/tools/dataextractor/{LinegraphWidget-BW7kS_6G-5ff2b791254cc5b7db2a.js → LinegraphWidget-BC2wVOny-7d86e1f9b9bee5c66333.js} +1 -1
- data/tools/dataextractor/{MatrixbycolumnsWidget-BGNsZvjv-896c0c73f296fc47bc2b.js → MatrixbycolumnsWidget-DfUAeBnO-b55624295093260752b3.js} +1 -1
- data/tools/dataextractor/{OpenC3TimePicker-CkaALgy9-f3da4082559cd932f4f8.js → OpenC3TimePicker-DpkbfbgC-b9b15927c58cff1786d9.js} +1 -1
- data/tools/dataextractor/{ProgressbarWidget-Cy_ad8mb-1df695c5267162e765d7.js → ProgressbarWidget-D3ndYnq_-3586c760d2e8861c4010.js} +1 -1
- data/tools/dataextractor/{RadiobuttonWidget-aJBIz45y-801a2c33babce797526f.js → RadiobuttonWidget-CP0S9nWW-7982529538978f6d02c1.js} +1 -1
- data/tools/dataextractor/{RadiogroupWidget-DNRlJnPE-a36bed855246f97bd481.js → RadiogroupWidget-BXHfA21T-dd31b0768cdf93c1cabc.js} +1 -1
- data/tools/dataextractor/{RangebarWidget-h4YItqPF-280ea4eef24736bdbb85.js → RangebarWidget-Bv2DqkPo-ec5662b730343afaa28e.js} +1 -1
- data/tools/dataextractor/{RollupWidget-CnxDQRQ0-6358e8358a580c5921d0.js → RollupWidget-o_huYU0x-8a7a96915fa5538ce930.js} +1 -1
- data/tools/dataextractor/{ScrollwindowWidget-DFkTJ2Ue-cb731315321666ce3bce.js → ScrollwindowWidget-DdjaML6D-b4480561f3da8583459b.js} +1 -1
- data/tools/dataextractor/{SignalWidget-jYpXSIfD-c768dd15f02c955f8b39.js → SignalWidget-Dd54y28I-ad29f9a3ddb39bc8e712.js} +1 -1
- data/tools/dataextractor/SpacerWidget-GPFYtIG1-9dd77eb1e2a7304cf299.js +1 -0
- data/tools/dataextractor/{SparklineWidget-CVf1TtjV-1fe0a1f3a17091ff0b62.js → SparklineWidget-f11nrlLS-92deda7a9b6298571159.js} +1 -1
- data/tools/dataextractor/TabbookWidget-DeaC27yC-a92ec7a904c37d283bab.js +1 -0
- data/tools/dataextractor/{TargetPacketItemChooser-CS2Vvi2U-33c8290f414a2fa4a3d2.js → TargetPacketItemChooser-BoBqvs3T-341c7c9e84a220b1a0d3.js} +1 -1
- data/tools/dataextractor/{TextboxWidget-B0Y1W7GP-1bcbf7550300c331597a.js → TextboxWidget-tL41zWUX-75750425b2582c87e1a4.js} +1 -1
- data/tools/dataextractor/TextfieldWidget-D1qj14Qi-0858b199ec7f9902291c.js +1 -0
- data/tools/dataextractor/TimeWidget-CSVGNong-12f265007f01523c523a.js +1 -0
- data/tools/dataextractor/TitleWidget-CLx-tuYT-e469f1843cd091fea225.js +1 -0
- data/tools/dataextractor/{VWidget-0KwtSssI-de3422ba8381ba405cbe.js → VWidget-CxnaMF0w-a4302069e065dead5397.js} +1 -1
- data/tools/dataextractor/ValueWidget-BYgpXfDo-9f7bb34efd4d22fd774e.js +1 -0
- data/tools/dataextractor/ValuelimitsbarWidget-Dc9-VNZ3-42880e7e026ad3e9e259.js +1 -0
- data/tools/dataextractor/ValuelimitscolumnWidget-b7W8K3mR-c331b0200587603b6c9e.js +1 -0
- data/tools/dataextractor/ValuerangebarWidget-DmhczZQb-c8c6852c06a1fb11c936.js +1 -0
- data/tools/dataextractor/{VerticalWidget-0UbbE2g3-adcb27032c4f6fa2fbfe.js → VerticalWidget-BvsVh0Ob-32ffa67d963ba10b5185.js} +1 -1
- data/tools/dataextractor/VerticalboxWidget-ClTCDCQN-b36d02475eee09ac8fa2.js +1 -0
- data/tools/dataextractor/{Widget-CGePksBA-7989ab8fd0278679400c.js → Widget-DRhVdCLP-3d6dd25fe49a64f4c89c.js} +1 -1
- data/tools/dataextractor/main-7641c12765b47b03f01d.js +1490 -0
- data/tools/dataextractor/main.js +1 -1
- metadata +73 -73
- data/tools/dataextractor/ArrayWidget-D2UrA5Db-1c55b514e63b95e490f6.js +0 -2
- data/tools/dataextractor/BlockWidget-C-WB0Q2m-e1a936c86d9896422505.js +0 -2
- data/tools/dataextractor/CanvasdotWidget-B42YizA1-890ec798f4b45d558907.js +0 -1
- data/tools/dataextractor/CanvaslineWidget-DaHxgGyM-4b7e326afc628efa9af7.js +0 -1
- data/tools/dataextractor/CheckbuttonWidget-BK4SgIu7-773142e6557fb0f58a78.js +0 -1
- data/tools/dataextractor/Graph-BTtGIbYG-52d7fea4217161d294a4.js +0 -1
- data/tools/dataextractor/HorizontalboxWidget-CL1xEhDj-2dd7af897f322c232db4.js +0 -1
- data/tools/dataextractor/HorizontallineWidget-DPiADCAy-d4be2847dc5bacd22c4c.js +0 -1
- data/tools/dataextractor/LabelledWidget-Dt9miRtB-bb76d04fcf2b737b5427.js +0 -1
- data/tools/dataextractor/LabelsparklineWidget-BByxev6X-4dad3009fa3f0d9431c1.js +0 -1
- data/tools/dataextractor/LabelvalueWidget-BM6L9bVw-59a90e09c9e467c44e76.js +0 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-CqV0-c3G-51ce8510c0eaa914f0b3.js +0 -1
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-Bz0PKTIV-62a95b407e98ab69b8f0.js +0 -1
- data/tools/dataextractor/LabelvaluerangebarWidget-DKuAJHLm-4d25d7a8a2989a7f9778.js +0 -1
- data/tools/dataextractor/SpacerWidget-CUqvml6o-de2112756e057c724689.js +0 -1
- data/tools/dataextractor/TabbookWidget-CTUEpDnn-c73cbfe51c07bb486d65.js +0 -1
- data/tools/dataextractor/TextfieldWidget-B8TAf9oU-2216d2290bef09e3d7ef.js +0 -1
- data/tools/dataextractor/TimeWidget-DewVXks0-da9657b4ea49f337b77c.js +0 -1
- data/tools/dataextractor/TitleWidget-BAq2LGJF-ae630acb77cf4c766ebc.js +0 -1
- data/tools/dataextractor/ValueWidget-BGNqaaRs-7f8ecf0b5a905c91d823.js +0 -1
- data/tools/dataextractor/ValuelimitsbarWidget-B6mH4PdF-4a0a3408f6142f31fece.js +0 -1
- data/tools/dataextractor/ValuelimitscolumnWidget-DlX90_-6-6ab61b02182d88318289.js +0 -1
- data/tools/dataextractor/ValuerangebarWidget-C9xyLOJO-a10f1bcce7dea09a14bb.js +0 -1
- data/tools/dataextractor/VerticalboxWidget-efbeOAKE-7cafb64c5c613da26835.js +0 -1
- data/tools/dataextractor/main-92b16557aa3a51ee770f.js +0 -1490
|
@@ -0,0 +1,1490 @@
|
|
|
1
|
+
System.register(["vue","vue-router","pinia","single-spa","vuetify"],(function(Mn,tt){"use strict";var _t,Tn,no,Lt,ut,Xr,cr,gf,mf,zs,ka,yl,Ar,Zr,yo,bl,js,wl,xl,vf,yf,bf,ru,wf,xf,Cf,kf,Af,iu,_f,Sf,$f,Mf,Tf,ou,Ef;return{setters:[Mt=>{_t=Mt.resolveComponent,Tn=Mt.openBlock,no=Mt.createBlock,Lt=Mt.withCtx,ut=Mt.createVNode,Xr=Mt.createElementBlock,cr=Mt.createElementVNode,gf=Mt.useCssVars,mf=Mt.defineAsyncComponent,zs=Mt.h,ka=Mt.normalizeStyle,yl=Mt.Fragment,Ar=Mt.createTextVNode,Zr=Mt.toDisplayString,yo=Mt.createCommentVNode,bl=Mt.withKeys,js=Mt.withModifiers,wl=Mt.withDirectives,xl=Mt.vShow,vf=Mt.defineComponent,yf=Mt.warn,bf=Mt.inject,ru=Mt.computed,wf=Mt.shallowRef,xf=Mt.watchEffect,Cf=Mt.normalizeClass,kf=Mt.getCurrentInstance,Af=Mt.provide,iu=Mt.createApp,_f=Mt.mergeProps},Mt=>{Sf=Mt.createRouter,$f=Mt.createWebHistory},Mt=>{Mf=Mt.defineStore,Tf=Mt.createPinia},Mt=>{ou=Mt.getMountedApps},Mt=>{Ef=Mt.createVuetify}],execute:(function(){Mn({C:uu,E:Gf,F:qf,O:Wf,P:Aa,T:Kf,c:Sr,g:ro,h:Dr,i:lu,j:Us,n:dy,o:Bf,p:Hs,r:Pf});var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function If(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(v){return Object.getOwnPropertyDescriptor(t,v).enumerable}))),e.push.apply(e,r)}return e}function ns(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?If(Object(e),!0).forEach((function(r){q0(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):If(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function q0(t,n,e){return(n=(function(r){var v=(function(p,g){if(rs(p)!=="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var h=w.call(p,g);if(rs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)})(r,"string");return rs(v)==="symbol"?v:String(v)})(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function rs(t){return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rs(t)}(function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var n=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,v=String(e),p=v.length,g=-1,w="",h=v.charCodeAt(0);++g<p;)(r=v.charCodeAt(g))!=0?w+=r>=1&&r<=31||r==127||g==0&&r>=48&&r<=57||g==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":g==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+v.charAt(g):v.charAt(g):w+="�";return w};t.CSS||(t.CSS={}),t.CSS.escape=n})(Mt);var G0={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Y0(t){if(rs(t)!=="object")throw new Error("single-spa-vue requires a configuration object");var n=ns(ns({},G0),t);if(!n.Vue&&!n.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!n.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(n.appOptions.el&&typeof n.appOptions.el!="string"&&!(n.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(rs(n.appOptions.el)));n.createApp=n.createApp||n.Vue&&n.Vue.createApp;var e={};return{bootstrap:X0.bind(null,n,e),mount:Z0.bind(null,n,e),unmount:J0.bind(null,n,e),update:Q0.bind(null,n,e)}}function X0(t){return t.loadRootComponent?t.loadRootComponent().then((function(n){return t.rootComponent=n})):Promise.resolve()}function Z0(t,n,e){var r={};return Promise.resolve().then((function(){return(function(v,p){return typeof v.appOptions=="function"?v.appOptions(p):Promise.resolve(ns({},v.appOptions))})(t,e).then((function(v){var p;if(e.domElement&&!v.el&&(v.el=e.domElement),v.el)if(typeof v.el=="string"){if(!(p=document.querySelector(v.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(v.el))}else(p=v.el).id||(p.id="single-spa-application:".concat(e.name)),v.el="#".concat(CSS.escape(p.id));else{var g="single-spa-application:".concat(e.name);v.el="#".concat(CSS.escape(g)),(p=document.getElementById(g))||((p=document.createElement("div")).id=g,document.body.appendChild(p))}if(!t.replaceMode&&(v.el=v.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",p.appendChild(w)}r.domEl=p,v.render||v.template||!t.rootComponent||(v.render=function(d){return d(t.rootComponent)}),v.data||(v.data={});var h=v.data;if(v.data=function(){return ns(ns({},typeof h=="function"?h.call(this,this):h),e)},t.createApp){if(r.vueInstance=t.createApp(v),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return r.root=r.vueInstance.mount(v.el),n[e.name]=r,r.vueInstance}));r.root=r.vueInstance.mount(v.el)}else if(r.vueInstance=new t.Vue(v),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return n[e.name]=r,r.vueInstance}));return n[e.name]=r,r.vueInstance}))}))}function Q0(t,n,e){return Promise.resolve().then((function(){var r=n[e.name],v=ns(ns({},t.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var g in v)p[g]=v[g]}))}function J0(t,n,e){return Promise.resolve().then((function(){var r=n[e.name];t.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)}))}const ew=Mn("_",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),tw={};function nw(t,n){const e=_t("router-view"),r=_t("v-app");return Tn(),no(r,{id:"innerapp"},{default:Lt(()=>[ut(e)]),_:1})}const rw=ew(tw,[["render",nw]]),KN="modulepreload",qN=function(t){return"/"+t},GN={},nt=function(n,e,r){let v=Promise.resolve();function p(g){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=g,window.dispatchEvent(w),!w.defaultPrevented)throw g}return v.then(g=>{for(const w of g||[])w.status==="rejected"&&p(w.reason);return n().catch(p)})},Rf=function(t){!t.name!=="NotFound"&&(t.path=`/tools/dataextractor/${t.path.replace(/^\//,"")}`),t.children?.forEach(Rf)},Do=Mn("d",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),iw="/icons/customIcons.svg",su={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return iw+"#"+this.icon}}},Lf=()=>{gf(t=>({v4ccb3d08:t.color}))},Of=su.setup;su.setup=Of?(t,n)=>(Lf(),Of(t,n)):Lf;const ow={class:"cosmos-custom-icon"},sw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},aw=["href"];function lw(t,n,e,r,v,p){return Tn(),Xr("span",ow,[(Tn(),Xr("svg",sw,[cr("use",{href:p.iconSrc},null,8,aw)]))])}const cw=Do(su,[["render",lw],["__scopeId","data-v-54b83b01"]]),Cl=6e4,au=36e5,uw=1e3,Nf=Symbol.for("constructDateFrom");Mn({m:Cl,l:au,L:uw});function ro(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Nf in t?t[Nf](n):t instanceof Date?new t.constructor(n):new Date(n)}function Dr(t,n){return ro(n||t,t)}let hw={};function Hs(){return hw}function Us(t,n){const e=Hs(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,v=Dr(t,n?.in),p=v.getDay(),g=(p<r?7:0)+p-r;return v.setDate(v.getDate()-g),v.setHours(0,0,0,0),v}function Aa(t,n){return Us(t,{...n,weekStartsOn:1})}function Df(t,n){const e=Dr(t,n?.in),r=e.getFullYear(),v=ro(e,0);v.setFullYear(r+1,0,4),v.setHours(0,0,0,0);const p=Aa(v),g=ro(e,0);g.setFullYear(r,0,4),g.setHours(0,0,0,0);const w=Aa(g);return e.getTime()>=p.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function lu(t){const n=Dr(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function dw(t,...n){const e=ro.bind(null,n.find(r=>typeof r=="object"));return n.map(e)}function Ff(t,n){const e=Dr(t,n?.in);return e.setHours(0,0,0,0),e}function fw(t,n,e){const[r,v]=dw(e?.in,t,n),p=Ff(r),g=Ff(v),w=+p-lu(p),h=+g-lu(g);return Math.round((w-h)/864e5)}function pw(t,n){const e=Df(t,n),r=ro(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Aa(r)}function gw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Pf(t){return!(!gw(t)&&typeof t!="number"||isNaN(+Dr(t)))}function mw(t,n){const e=Dr(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const vw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yw=(t,n,e)=>{let r;const v=vw[t];return typeof v=="string"?r=v:n===1?r=v.one:r=v.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function cu(t){return(n={})=>{const e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const bw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ww={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cw={date:cu({formats:bw,defaultWidth:"full"}),time:cu({formats:ww,defaultWidth:"full"}),dateTime:cu({formats:xw,defaultWidth:"full"})},kw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Aw=(t,n,e,r)=>kw[t];function _a(t){return(n,e)=>{const r=e?.context?String(e.context):"standalone";let v;if(r==="formatting"&&t.formattingValues){const g=t.defaultFormattingWidth||t.defaultWidth,w=e?.width?String(e.width):g;v=t.formattingValues[w]||t.formattingValues[g]}else{const g=t.defaultWidth,w=e?.width?String(e.width):t.defaultWidth;v=t.values[w]||t.values[g]}const p=t.argumentCallback?t.argumentCallback(n):n;return v[p]}}const _w={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$w={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ew={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Iw=(t,n)=>{const e=Number(t),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Rw={ordinalNumber:Iw,era:_a({values:_w,defaultWidth:"wide"}),quarter:_a({values:Sw,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_a({values:$w,defaultWidth:"wide"}),day:_a({values:Mw,defaultWidth:"wide"}),dayPeriod:_a({values:Tw,defaultWidth:"wide",formattingValues:Ew,defaultFormattingWidth:"wide"})};function Sa(t){return(n,e={})=>{const r=e.width,v=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],p=n.match(v);if(!p)return null;const g=p[0],w=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(w)?Ow(w,l=>l.test(g)):Lw(w,l=>l.test(g));let d;d=t.valueCallback?t.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=n.slice(g.length);return{value:d,rest:a}}}function Lw(t,n){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function Ow(t,n){for(let e=0;e<t.length;e++)if(n(t[e]))return e}function Nw(t){return(n,e={})=>{const r=n.match(t.matchPattern);if(!r)return null;const v=r[0],p=n.match(t.parsePattern);if(!p)return null;let g=t.valueCallback?t.valueCallback(p[0]):p[0];g=e.valueCallback?e.valueCallback(g):g;const w=n.slice(v.length);return{value:g,rest:w}}}const Dw=/^(\d+)(th|st|nd|rd)?/i,Fw=/\d+/i,Pw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ww={any:[/^b/i,/^(a|c)/i]},Bw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zw={any:[/1/i,/2/i,/3/i,/4/i]},jw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Hw={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Uw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Gw={ordinalNumber:Nw({matchPattern:Dw,parsePattern:Fw,valueCallback:t=>parseInt(t,10)}),era:Sa({matchPatterns:Pw,defaultMatchWidth:"wide",parsePatterns:Ww,defaultParseWidth:"any"}),quarter:Sa({matchPatterns:Bw,defaultMatchWidth:"wide",parsePatterns:zw,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Sa({matchPatterns:jw,defaultMatchWidth:"wide",parsePatterns:Hw,defaultParseWidth:"any"}),day:Sa({matchPatterns:Uw,defaultMatchWidth:"wide",parsePatterns:Vw,defaultParseWidth:"any"}),dayPeriod:Sa({matchPatterns:Kw,defaultMatchWidth:"any",parsePatterns:qw,defaultParseWidth:"any"})},Yw=Mn("f",{code:"en-US",formatDistance:yw,formatLong:Cw,formatRelative:Aw,localize:Rw,match:Gw,options:{weekStartsOn:0,firstWeekContainsDate:1}});function Xw(t,n){const e=Dr(t,n?.in);return fw(e,mw(e))+1}function Wf(t,n){const e=Dr(t,n?.in),r=+Aa(e)-+pw(e);return Math.round(r/6048e5)+1}function uu(t,n){const e=Dr(t,n?.in),r=e.getFullYear(),v=Hs(),p=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,g=ro(n?.in||t,0);g.setFullYear(r+1,0,p),g.setHours(0,0,0,0);const w=Us(g,n),h=ro(n?.in||t,0);h.setFullYear(r,0,p),h.setHours(0,0,0,0);const d=Us(h,n);return+e>=+w?r+1:+e>=+d?r:r-1}function Zw(t,n){const e=Hs(),r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,v=uu(t,n),p=ro(n?.in||t,0);return p.setFullYear(v,0,r),p.setHours(0,0,0,0),Us(p,n)}function Bf(t,n){const e=Dr(t,n?.in),r=+Us(e,n)-+Zw(e,n);return Math.round(r/6048e5)+1}function ln(t,n){const e=t<0?"-":"",r=Math.abs(t).toString().padStart(n,"0");return e+r}const Fo={y(t,n){const e=t.getFullYear(),r=e>0?e:1-e;return ln(n==="yy"?r%100:r,n.length)},M(t,n){const e=t.getMonth();return n==="M"?String(e+1):ln(e+1,2)},d(t,n){return ln(t.getDate(),n.length)},a(t,n){const e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];default:return e==="am"?"a.m.":"p.m."}},h(t,n){return ln(t.getHours()%12||12,n.length)},H(t,n){return ln(t.getHours(),n.length)},m(t,n){return ln(t.getMinutes(),n.length)},s(t,n){return ln(t.getSeconds(),n.length)},S(t,n){const e=n.length,r=t.getMilliseconds(),v=Math.trunc(r*Math.pow(10,e-3));return ln(v,n.length)}},Vs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zf={G:function(t,n,e){const r=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){const r=t.getFullYear(),v=r>0?r:1-r;return e.ordinalNumber(v,{unit:"year"})}return Fo.y(t,n)},Y:function(t,n,e,r){const v=uu(t,r),p=v>0?v:1-v;if(n==="YY"){const g=p%100;return ln(g,2)}return n==="Yo"?e.ordinalNumber(p,{unit:"year"}):ln(p,n.length)},R:function(t,n){const e=Df(t);return ln(e,n.length)},u:function(t,n){const e=t.getFullYear();return ln(e,n.length)},Q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return ln(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return ln(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){const r=t.getMonth();switch(n){case"M":case"MM":return Fo.M(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){const r=t.getMonth();switch(n){case"L":return String(r+1);case"LL":return ln(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){const v=Bf(t,r);return n==="wo"?e.ordinalNumber(v,{unit:"week"}):ln(v,n.length)},I:function(t,n,e){const r=Wf(t);return n==="Io"?e.ordinalNumber(r,{unit:"week"}):ln(r,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):Fo.d(t,n)},D:function(t,n,e){const r=Xw(t);return n==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):ln(r,n.length)},E:function(t,n,e){const r=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){const v=t.getDay(),p=(v-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(p);case"ee":return ln(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(v,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(v,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(v,{width:"short",context:"formatting"});default:return e.day(v,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){const v=t.getDay(),p=(v-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(p);case"cc":return ln(p,n.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(v,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(v,{width:"narrow",context:"standalone"});case"cccccc":return e.day(v,{width:"short",context:"standalone"});default:return e.day(v,{width:"wide",context:"standalone"})}},i:function(t,n,e){const r=t.getDay(),v=r===0?7:r;switch(n){case"i":return String(v);case"ii":return ln(v,n.length);case"io":return e.ordinalNumber(v,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){const r=t.getHours();let v;switch(r===12?v=Vs.noon:r===0?v=Vs.midnight:v=r/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},B:function(t,n,e){const r=t.getHours();let v;switch(r>=17?v=Vs.evening:r>=12?v=Vs.afternoon:r>=4?v=Vs.morning:v=Vs.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let r=t.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Fo.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):Fo.H(t,n)},K:function(t,n,e){const r=t.getHours()%12;return n==="Ko"?e.ordinalNumber(r,{unit:"hour"}):ln(r,n.length)},k:function(t,n,e){let r=t.getHours();return r===0&&(r=24),n==="ko"?e.ordinalNumber(r,{unit:"hour"}):ln(r,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):Fo.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):Fo.s(t,n)},S:function(t,n){return Fo.S(t,n)},X:function(t,n,e){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Hf(r);case"XXXX":case"XX":return is(r);default:return is(r,":")}},x:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"x":return Hf(r);case"xxxx":case"xx":return is(r);default:return is(r,":")}},O:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+jf(r,":");default:return"GMT"+is(r,":")}},z:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+jf(r,":");default:return"GMT"+is(r,":")}},t:function(t,n,e){const r=Math.trunc(+t/1e3);return ln(r,n.length)},T:function(t,n,e){return ln(+t,n.length)}};function jf(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.trunc(r/60),p=r%60;return p===0?e+String(v):e+String(v)+n+ln(p,2)}function Hf(t,n){return t%60===0?(t>0?"-":"+")+ln(Math.abs(t)/60,2):is(t,n)}function is(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=ln(Math.trunc(r/60),2),p=ln(r%60,2);return e+v+n+p}const Uf=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Vf=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},Qw=(t,n)=>{const e=t.match(/(P+)(p+)?/)||[],r=e[1],v=e[2];if(!v)return Uf(t,n);let p;switch(r){case"P":p=n.dateTime({width:"short"});break;case"PP":p=n.dateTime({width:"medium"});break;case"PPP":p=n.dateTime({width:"long"});break;default:p=n.dateTime({width:"full"});break}return p.replace("{{date}}",Uf(r,n)).replace("{{time}}",Vf(v,n))},Jw=Mn("D",{p:Vf,P:Qw}),ex=/^D+$/,tx=/^Y+$/,nx=["D","DD","YY","YYYY"];function Kf(t){return ex.test(t)}function qf(t){return tx.test(t)}function Gf(t,n,e){const r=rx(t,n,e);if(console.warn(r),nx.includes(t))throw new RangeError(r)}function rx(t,n,e){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ix=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ox=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sx=/^'([^]*?)'?$/,ax=/''/g,lx=/[a-zA-Z]/;function os(t,n,e){const r=Hs(),v=e?.locale??r.locale??Yw,p=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,g=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,w=Dr(t,e?.in);if(!Pf(w))throw new RangeError("Invalid time value");let h=n.match(ox).map(a=>{const l=a[0];if(l==="p"||l==="P"){const u=Jw[l];return u(a,v.formatLong)}return a}).join("").match(ix).map(a=>{if(a==="''")return{isToken:!1,value:"'"};const l=a[0];if(l==="'")return{isToken:!1,value:cx(a)};if(zf[l])return{isToken:!0,value:a};if(l.match(lx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:a}});v.localize.preprocessor&&(h=v.localize.preprocessor(w,h));const d={firstWeekContainsDate:p,weekStartsOn:g,locale:v};return h.map(a=>{if(!a.isToken)return a.value;const l=a.value;(!e?.useAdditionalWeekYearTokens&&qf(l)||!e?.useAdditionalDayOfYearTokens&&Kf(l))&&Gf(l,n,String(t));const u=zf[l[0]];return u(w,l,v.localize,d)}).join("")}function cx(t){const n=t.match(sx);return n?n[1].replace(ax,"'"):t}var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yf={exports:{}},Xf;function ux(){return Xf||(Xf=1,(function(t,n){(function(){var e="ace",r=(function(){return this})();!r&&typeof window<"u"&&(r=window);var v=function(a,l,u){if(typeof a!="string"){v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),v.modules[a]||(v.payloads[a]=u,v.modules[a]=null)};v.modules={},v.payloads={};var p=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,f=l.length;s<f;++s){var b=h(a,l[s]);if(b==null&&g.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},g=function(a,l){var u=p("",a,l);return u==null&&g.original?g.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=v.modules[l];if(!u){if(u=v.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return p(l,b,x)},f=u(s,c,i);c=f||i.exports,v.modules[l]=c,delete v.payloads[l]}u=v.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(v.original=l.define,l.define=v,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(g.original=l.require,l.require=g,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,v){function p(g,w,h){Object.defineProperty(g,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(g,w){return w=w||0,this.lastIndexOf(g,w)===w}),String.prototype.endsWith||p(String.prototype,"endsWith",function(g,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=g.length;var d=h.indexOf(g,w);return d!==-1&&d===w}),String.prototype.repeat||p(String.prototype,"repeat",function(g){for(var w="",h=this;g>0;)g&1&&(w+=h),(g>>=1)&&(h+=h);return w}),String.prototype.includes||p(String.prototype,"includes",function(g,w){return this.indexOf(g,w)!=-1}),Object.assign||(Object.assign=function(g){if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(g),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(g){return Object.keys(g).map(function(w){return g[w]})}),Array.prototype.find||p(Array.prototype,"find",function(g){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(g.call(h,a,d,this))return a}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(g){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(g.call(h,a,d,this))return d}}),Array.prototype.includes||p(Array.prototype,"includes",function(g,w){return this.indexOf(g,w)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(g){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=g,l++;return w}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,v){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,v){r.deepCopy=function p(g){if(typeof g!="object"||!g)return g;var w;if(Array.isArray(g)){w=[];for(var h=0;h<g.length;h++)w[h]=p(g[h]);return w}if(Object.prototype.toString.call(g)!=="[object Object]")return g;w={};for(var h in g)w[h]=p(g[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var p=/^\s\s*/,g=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(p,"")},r.stringTrimRight=function(w){return w.replace(g,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,v){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},g=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),w=p.userAgent||"",h=p.appName||"";r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,v){var p=e("./useragent"),g="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var f=document.createTextNode(c);return i&&i.appendChild(f),f}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var N=u(c[x],i,s);N&&b.push(N)}return b}var M=document.createElement(c[0]),_=c[1],C=1;_&&typeof _=="object"&&!Array.isArray(_)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],M,s);return C==2&&Object.keys(_).forEach(function(L){var D=_[L];L==="class"?M.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?M[L]=D:L==="ref"?s&&(s[D]=M):L==="style"?typeof D=="string"&&(M.style.cssText=D):D!=null&&M.setAttribute(L,D)}),i&&i.appendChild(M),M},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||g,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var f=i.indexOf(c);if(f==-1)break;s=!1,i.splice(f,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var f=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
|
|
2
|
+
/*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(f.createTextNode(u)),c&&(b.id=c),s==f&&(s=r.getDocumentHead(f)),s.insertBefore(b,s.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var i=parseFloat(u.style.left),s=+c.left;Math.abs(i-s)>1&&(u.style.left=2*i-s+"px")}if(u.style.right){var i=parseFloat(u.style.right),s=window.innerWidth-c.right;Math.abs(i-s)>1&&(u.style.right=2*i-s+"px")}if(u.style.top){var i=parseFloat(u.style.top),s=+c.top;Math.abs(i-s)>1&&(u.style.top=2*i-s+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),s=window.innerHeight-c.bottom;Math.abs(i-s)>1&&(u.style.bottom=2*i-s+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var i=r.createElement("ace_outer"),s=i.style;s.position="absolute",s.left="-10000px",s.overflow="hidden",s.width="200px",s.minWidth="0px",s.height="150px",s.display="block",i.appendChild(c);var f=u&&u.documentElement||document&&document.documentElement;if(!f)return 0;f.appendChild(i);var b=c.offsetWidth;s.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=i.clientWidth),f.removeChild(i),b-x},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,i){u[c]!==i&&(u[c]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,i){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(i)+"px)"}:r.translate=function(u,c,i){u.style.top=Math.round(i)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("./dom");r.get=function(g,w){var h=new XMLHttpRequest;h.open("GET",g,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},r.loadScript=function(g,w){var h=p.getDocumentHead(),d=document.createElement("script");d.src=g,h.appendChild(d),d.onload=d.onreadystatechange=function(a,l){(l||!d.readyState||d.readyState=="loaded"||d.readyState=="complete")&&(d=d.onload=d.onreadystatechange=null,l||w())}},r.qualifyURL=function(g){var w=document.createElement("a");return w.href=g,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,v){r.inherits=function(p,g){p.super_=g,p.prototype=Object.create(g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(p,g){for(var w in g)p[w]=g[w];return p},r.implement=function(p,g){r.mixin(p,g)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,v){var p={},g=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,d){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],l=this._defaultHandlers[h];if(!(!a.length&&!l)){(typeof d!="object"||!d)&&(d={}),d.type||(d.type=h),d.stopPropagation||(d.stopPropagation=g),d.preventDefault||(d.preventDefault=w),a=a.slice();for(var u=0;u<a.length&&(a[u](d,this),!d.propagationStopped);u++);if(l&&!d.defaultPrevented)return l(d,this)}},p._signal=function(h,d){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var l=0;l<a.length;l++)a[l](d,this)}},p.once=function(h,d){var a=this;if(this.on(h,function l(){a.off(h,l),d.apply(null,arguments)}),!d)return new Promise(function(l){d=l})},p.setDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var l=a[h],u=a._disabled_[h];u||(a._disabled_[h]=u=[]),u.push(l);var c=u.indexOf(d);c!=-1&&u.splice(c,1)}a[h]=d},p.removeDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a){var l=a._disabled_[h];if(a[h]==d)l&&this.setDefaultHandler(h,l.pop());else if(l){var u=l.indexOf(d);u!=-1&&l.splice(u,1)}}},p.on=p.addEventListener=function(h,d,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[h];return l||(l=this._eventRegistry[h]=[]),l.indexOf(d)==-1&&l[a?"unshift":"push"](d),d},p.off=p.removeListener=p.removeEventListener=function(h,d){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var l=a.indexOf(d);l!==-1&&a.splice(l,1)}},p.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},r.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,r,v){r.reportError=function(p,g){var w=new Error(p);w.data=g,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,v){var p={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=p}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,r,v){"no use strict";var p=e("./oop"),g=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,d={setOptions:function(i){Object.keys(i).forEach(function(s){this.setOption(s,i[s])},this)},getOptions:function(i){var s={};if(i)Array.isArray(i)||(i=Object.keys(i));else{var f=this.$options;i=Object.keys(f).filter(function(b){return!f[b].hidden})}return i.forEach(function(b){s[b]=this.getOption(b)},this),s},setOption:function(i,s){if(this["$"+i]!==s){var f=this.$options[i];if(!f)return a('misspelled option "'+i+'"');if(f.forwardTo)return this[f.forwardTo]&&this[f.forwardTo].setOption(i,s);f.handlesSet||(this["$"+i]=s),f&&f.set&&f.set.call(this,s)}},getOption:function(i){var s=this.$options[i];return s?s.forwardTo?this[s.forwardTo]&&this[s.forwardTo].getOption(i):s&&s.get?s.get.call(this):this["$"+i]:a('misspelled option "'+i+'"')}};function a(i){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,u,c=(function(){function i(){this.$defaultOptions={},l=h,u="dollarSigns"}return i.prototype.defineOptions=function(s,f,b){return s.$options||(this.$defaultOptions[f]=s.$options={}),Object.keys(b).forEach(function(x){var N=b[x];typeof N=="string"&&(N={forwardTo:N}),N.name||(N.name=x),s.$options[N.name]=N,"initialValue"in N&&(s["$"+N.name]=N.initialValue)}),p.implement(s,d),this},i.prototype.resetOptions=function(s){Object.keys(s.$options).forEach(function(f){var b=s.$options[f];"value"in b&&s.setOption(f,b.value)})},i.prototype.setDefaultValue=function(s,f,b){if(!s){for(s in this.$defaultOptions)if(this.$defaultOptions[s][f])break;if(!this.$defaultOptions[s][f])return!1}var x=this.$defaultOptions[s]||(this.$defaultOptions[s]={});x[f]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,f,b):x[f].value=b)},i.prototype.setDefaultValues=function(s,f){Object.keys(f).forEach(function(b){this.setDefaultValue(s,b,f[b])},this)},i.prototype.setMessages=function(s,f){l=s,f&&f.placeholders&&(u=f.placeholders)},i.prototype.nls=function(s,f,b){l[s]||(a("No message found for the key '"+s+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+f+"'."),l[f]||a("No message found for the default string '"+f+"' in the provided messages. Falling back to the default English message."));var x=l[s]||l[f]||f;return b&&(u==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(N,M){return M=="$"?"$":b[M]})),u==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(N,M){return b[M]}))),x},i})();c.prototype.warn=a,c.prototype.reportError=w,p.implement(c.prototype,g),r.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-tm .ace_gutter {
|
|
3
|
+
background: #f0f0f0;
|
|
4
|
+
color: #333;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ace-tm .ace_print-margin {
|
|
8
|
+
width: 1px;
|
|
9
|
+
background: #e8e8e8;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ace-tm .ace_fold {
|
|
13
|
+
background-color: #6B72E6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ace-tm {
|
|
17
|
+
background-color: #FFFFFF;
|
|
18
|
+
color: black;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ace-tm .ace_cursor {
|
|
22
|
+
color: black;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ace-tm .ace_invisible {
|
|
26
|
+
color: rgb(191, 191, 191);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ace-tm .ace_storage,
|
|
30
|
+
.ace-tm .ace_keyword {
|
|
31
|
+
color: blue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ace-tm .ace_constant {
|
|
35
|
+
color: rgb(197, 6, 11);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ace-tm .ace_constant.ace_buildin {
|
|
39
|
+
color: rgb(88, 72, 246);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ace-tm .ace_constant.ace_language {
|
|
43
|
+
color: rgb(88, 92, 246);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ace-tm .ace_constant.ace_library {
|
|
47
|
+
color: rgb(6, 150, 14);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ace-tm .ace_invalid {
|
|
51
|
+
background-color: rgba(255, 0, 0, 0.1);
|
|
52
|
+
color: red;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ace-tm .ace_support.ace_function {
|
|
56
|
+
color: rgb(60, 76, 114);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ace-tm .ace_support.ace_constant {
|
|
60
|
+
color: rgb(6, 150, 14);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ace-tm .ace_support.ace_type,
|
|
64
|
+
.ace-tm .ace_support.ace_class {
|
|
65
|
+
color: rgb(109, 121, 222);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ace-tm .ace_keyword.ace_operator {
|
|
69
|
+
color: rgb(104, 118, 135);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ace-tm .ace_string {
|
|
73
|
+
color: rgb(3, 106, 7);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ace-tm .ace_comment {
|
|
77
|
+
color: rgb(76, 136, 107);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ace-tm .ace_comment.ace_doc {
|
|
81
|
+
color: rgb(0, 102, 255);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
85
|
+
color: rgb(128, 159, 191);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ace-tm .ace_constant.ace_numeric {
|
|
89
|
+
color: rgb(0, 0, 205);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ace-tm .ace_variable {
|
|
93
|
+
color: rgb(49, 132, 149);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ace-tm .ace_xml-pe {
|
|
97
|
+
color: rgb(104, 104, 91);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
|
101
|
+
color: #0000A2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.ace-tm .ace_heading {
|
|
106
|
+
color: rgb(12, 7, 255);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ace-tm .ace_list {
|
|
110
|
+
color:rgb(185, 6, 144);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ace-tm .ace_meta.ace_tag {
|
|
114
|
+
color:rgb(0, 22, 142);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ace-tm .ace_string.ace_regex {
|
|
118
|
+
color: rgb(255, 0, 0)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
|
122
|
+
background: rgb(181, 213, 255);
|
|
123
|
+
}
|
|
124
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
125
|
+
box-shadow: 0 0 3px 0px white;
|
|
126
|
+
}
|
|
127
|
+
.ace-tm .ace_marker-layer .ace_step {
|
|
128
|
+
background: rgb(252, 255, 0);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
|
132
|
+
background: rgb(164, 229, 101);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
|
136
|
+
margin: -1px 0 0 -1px;
|
|
137
|
+
border: 1px solid rgb(192, 192, 192);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
|
141
|
+
background: rgba(0, 0, 0, 0.07);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ace-tm .ace_gutter-active-line {
|
|
145
|
+
background-color : #dcdcdc;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
149
|
+
background: rgb(250, 250, 255);
|
|
150
|
+
border: 1px solid rgb(200, 200, 250);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ace-tm .ace_indent-guide {
|
|
154
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ace-tm .ace_indent-guide-active {
|
|
158
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
159
|
+
}
|
|
160
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,v){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,v){"no use strict";var p=e("./lib/lang"),g=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;v.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return p.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var s=c.split("/");i=i||s[s.length-2]||"";var f=i=="snippets"?"/":"-",b=s[s.length-1];if(i=="worker"&&f=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&s.length>1&&(b=s[s.length-2]);var N=d[i+"Path"];return N==null?N=d.basePath:f=="/"&&(i=f=""),N&&N.slice(-1)!="/"&&(N+="/"),N+i+f+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var a=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var s;if(Array.isArray(c))var f=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(N){if(N&&!r.$loading[b])return i&&i(N);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var M=function(){a(b,function(_,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return M();g.loadScript(r.moduleUrl(b,f),M),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(N){N.default?x(N.default):x(N)});else{try{s=this.$require(b)}catch{}x(s||r.$loaded[b])}},r.$require=function(c){if(typeof v.require=="function"){var i="require";return v[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,v){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(d,a){e([d],function(l){a(null,l)})});var g=(function(){return this||typeof window<"u"&&window})();v.exports=function(d){p.init=w,p.$require=e,d.require=e},w(!0);function w(d){if(!(!g||!g.document)){p.set("packaged",d||e.packaged||v.packaged||g.define&&(void 0).packaged);var a={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),s=0;s<i.length;s++){var f=i[s],b=f.src||f.getAttribute("src");if(b){for(var x=f.attributes,N=0,M=x.length;N<M;N++){var _=x[N];_.name.indexOf("data-ace-")===0&&(a[h(_.name.replace(/^data-ace-/,""))]=_.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var L in a)typeof a[L]<"u"&&p.set(L,a[L])}}function h(d){return d.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,v){var p=(function(){function g(w,h,d,a){this.start={row:w,column:h},this.end={row:d,column:a}}return g.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(w,h){return this.compare(w,h)==0},g.prototype.compareRange=function(w){var h,d=w.end,a=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},g.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},g.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},g.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},g.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},g.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},g.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},g.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},g.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},g.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},g.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},g.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},g.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},g.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},g.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return g.fromPoints(a||this.start,d||this.end)},g.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var a={row:w,column:h};else var l={row:w,column:h};return g.fromPoints(a||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new g(h.row,h.column,d.row,d.column)},g.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},g})();p.fromPoints=function(g,w){return new p(g.row,g.column,w.row,w.column)},p.comparePoints=function(g,w){return g.row-w.row||g.column-w.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,v){for(var p=e("./oop"),g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,g.PRINTABLE_KEYS[48+h]=""+h,g.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,g.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,g.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];r.$codeToKeyCode=w,g.PRINTABLE_KEYS[173]="-";for(var u in g.FUNCTION_KEYS){var c=g.FUNCTION_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}for(var u in g.PRINTABLE_KEYS){var c=g.PRINTABLE_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}p.mixin(g,g.MODIFIER_KEYS),p.mixin(g,g.PRINTABLE_KEYS),p.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,(function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)g.KEY_MODS[s]=i.filter(function(f){return s&g.KEY_MODS[f]}).join("-")+"-"})(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",p.mixin(r,g),r.default=r,r.keyCodeToString=function(i){var s=g[i];return typeof s!="string"&&(s=String.fromCharCode(i)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var p=e("./keys"),g=e("./useragent"),w=null,h=0,d;function a(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&a(),d}function u(N,M,_){this.elem=N,this.type=M,this.callback=_}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(N,M,_,C){N.addEventListener(M,_,l()),C&&C.$toDestroy.push(new u(N,M,_))},i=r.removeListener=function(N,M,_){N.removeEventListener(M,_,l())};r.stopEvent=function(N){return r.stopPropagation(N),r.preventDefault(N),!1},r.stopPropagation=function(N){N.stopPropagation&&N.stopPropagation()},r.preventDefault=function(N){N.preventDefault&&N.preventDefault()},r.getButton=function(N){return N.type=="dblclick"?0:N.type=="contextmenu"||g.isMac&&N.ctrlKey&&!N.altKey&&!N.shiftKey?2:N.button},r.capture=function(N,M,_){var C=N&&N.ownerDocument||document;function L(D){M&&M(D),_&&_(D),i(C,"mousemove",M),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",M),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(N,M,_){c(N,"wheel",function(C){var L=.15,D=C.deltaX||0,I=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=I*L;break;case C.DOM_DELTA_LINE:var E=15;C.wheelX=D*E,C.wheelY=I*E;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=D*z,C.wheelY=I*z;break}M(C)},_)},r.addMultiMouseDownListener=function(N,M,_,C,L){var D=0,I,E,z,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,g.isIE){var k=Math.abs($.clientX-I)>5||Math.abs($.clientY-E)>5;(!z||k)&&(D=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},M[D-1]||600),D==1&&(I=$.clientX,E=$.clientY)}if($._clicks=D,_[C]("mousedown",$),D>4)D=0;else if(D>1)return _[C](P[D],$)}Array.isArray(N)||(N=[N]),N.forEach(function($){c($,"mousedown",O,L)})};function s(N){return 0|(N.ctrlKey?1:0)|(N.altKey?2:0)|(N.shiftKey?4:0)|(N.metaKey?8:0)}r.getModifierString=function(N){return p.KEY_MODS[s(N)]};function f(N,M,_){var C=s(M);if(!_&&M.code&&(_=p.$codeToKeyCode[M.code]||_),!g.isMac&&w){if(M.getModifierState&&(M.getModifierState("OS")||M.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(_===18||_===17){var L=M.location;if(_===17&&L===1)w[_]==1&&(h=M.timeStamp);else if(_===18&&C===3&&L===2){var D=M.timeStamp-h;D<50&&(w.altGr=!0)}}}if(_ in p.MODIFIER_KEYS&&(_=-1),!(!C&&_===13&&M.location===3&&(N(M,C,-_),M.defaultPrevented))){if(g.isChromeOS&&C&8){if(N(M,C,_),M.defaultPrevented)return;C&=-9}return!C&&!(_ in p.FUNCTION_KEYS)&&!(_ in p.PRINTABLE_KEYS)?!1:N(M,C,_)}}r.addCommandKeyListener=function(N,M,_){var C=null;c(N,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var D=f(M,L,L.keyCode);return C=L.defaultPrevented,D},_),c(N,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},_),c(N,"keyup",function(L){w[L.keyCode]=null},_),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!g.isOldIE){var x=1;r.nextTick=function(N,M){M=M||window;var _="zero-timeout-message-"+x++,C=function(L){L.data==_&&(r.stopPropagation(L),i(M,"message",C),N())};c(M,"message",C),M.postMessage(_,"*")}}r.$idleBlocked=!1,r.onIdle=function(N,M){return setTimeout(function _(){r.$idleBlocked?setTimeout(_,100):N()},M)},r.$idleBlockId=null,r.blockIdle=function(N){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},N||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(N){setTimeout(N,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,v){var p;v.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,v){var p=e("../lib/event"),g=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,s=e("../lib/keys"),f=s.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,N=w.isMobile,M=(function(){function _(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",N||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),p.addListener(this.text,"blur",function(I){D.ignoreFocusEvents||(L.onBlur(I),D.$isFocused=!1)},L),p.addListener(this.text,"focus",function(I){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(I),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var I=L.curOp,E=I&&I.command&&I.command.name;if(E!="insertstring"){var z=E&&(I.docChanged||I.selectionChanged);D.inComposition&&z&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,p.addCommandKeyListener(this.text,function(I,E,z){if(!D.inComposition)return L.onCommandKey(I,E,z)},L),p.addListener(this.text,"select",this.onSelect.bind(this),L),p.addListener(this.text,"input",this.onInput.bind(this),L),p.addListener(this.text,"cut",this.onCut.bind(this),L),p.addListener(this.text,"copy",this.onCopy.bind(this),L),p.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&p.addListener(C,"keydown",function(I){if(!(w.isMac&&!I.metaKey||!I.ctrlKey))switch(I.keyCode){case 67:D.onCopy(I);break;case 86:D.onPaste(I);break;case 88:D.onCut(I);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),p.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),p.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),p.addListener(this.text,"keyup",this.onKeyup.bind(this),L),p.addListener(this.text,"keydown",this.syncComposition.bind(this),L),p.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,p.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),p.addListener(this.text,"mousedown",function(I){I.preventDefault(),D.onContextMenuClose()},L),p.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),p.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return _.prototype.addIosSelectionHandler=function(C,L,D){var I=this,E=null,z=!1;D.addEventListener("keydown",function(O){E&&clearTimeout(E),z=!0},!0),D.addEventListener("keyup",function(O){E=setTimeout(function(){z=!1},100)},!0);var P=function(O){if(document.activeElement===D&&!(z||I.inComposition||L.$mouseHandler.isMousePressed)&&!I.copied){var $=D.selectionStart,k=D.selectionEnd,R=null,B=0;if($==0?R=s.up:$==1?R=s.home:k>I.lastSelectionEnd&&I.lastValue[k]==`
|
|
161
|
+
`?R=s.end:$<I.lastSelectionStart&&I.lastValue[$-1]==" "?(R=s.left,B=f.option):$<I.lastSelectionStart||$==I.lastSelectionStart&&I.lastSelectionEnd!=I.lastSelectionStart&&$==k?R=s.left:k>I.lastSelectionEnd&&I.lastValue.slice(0,k).split(`
|
|
162
|
+
`).length>2?R=s.down:k>I.lastSelectionEnd&&I.lastValue[k-1]==" "?(R=s.right,B=f.option):(k>I.lastSelectionEnd||k==I.lastSelectionEnd&&I.lastSelectionEnd!=I.lastSelectionStart&&$==k)&&(R=s.right),$!==k&&(B|=f.shift),R){var U=L.onCommandKey({},B,R);if(!U&&L.commands){R=s.keyCodeToString(R);var q=L.commands.findKeyCommand(B,R);q&&L.execCommand(q)}I.lastSelectionStart=$,I.lastSelectionEnd=k,I.resetSelection("")}}};document.addEventListener("selectionchange",P),L.on("destroy",function(){document.removeEventListener("selectionchange",P)})},_.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},_.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},_.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},_.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},_.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var L=this.host.getSelectionRange();L.end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},_.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},_.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},_.prototype.onCut=function(C){this.doCopy(C,!0)},_.prototype.onCopy=function(C){this.doCopy(C,!1)},_.prototype.onPaste=function(C){var L=this.handleClipboardData(C);a.pasteCancelled()||(typeof L=="string"?(L&&this.host.onPaste(L,C),w.isIE&&setTimeout(this.resetSelection),p.preventDefault(C)):(this.text.value="",this.pasted=!0))},_.prototype.doCopy=function(C,L){var D=this,I=this.host.getCopyText();if(!I)return p.preventDefault(C);this.handleClipboardData(C,I)?(b&&(this.resetSelection(I),this.copied=I,setTimeout(function(){D.copied=!1},10)),L?this.host.onCut():this.host.onCopy(),p.preventDefault(C)):(this.copied=!0,this.text.value=I,this.text.select(),setTimeout(function(){D.copied=!1,D.resetSelection(),L?D.host.onCut():D.host.onCopy()}))},_.prototype.handleClipboardData=function(C,L,D){var I=C.clipboardData||window.clipboardData;if(!(!I||l)){var E=u||D?"Text":"text/plain";try{return L?I.setData(E,L)!==!1:I.getData(E)}catch(z){if(!D)return this.handleClipboardData(z,L,!0)}}},_.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var L=this.text.value,D=this.sendText(L,!0);(L.length>i+100||x.test(D)||N&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},_.prototype.sendText=function(C,L){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var D=this.text.selectionStart,I=this.text.selectionEnd,E=this.lastSelectionStart,z=this.lastValue.length-this.lastSelectionEnd,P=C,O=C.length-D,$=C.length-I,k=0;E>0&&this.lastValue[k]==C[k];)k++,E--;for(P=P.slice(k),k=1;z>0&&this.lastValue.length-k>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-k]==C[C.length-k];)k++,z--;O-=k-1,$-=k-1;var R=P.length-k+1;if(R<0&&(E=-R,R=0),P=P.slice(0,R),!L&&!P&&!O&&!E&&!z&&!$)return"";this.sendingText=!0;var B=!1;return w.isAndroid&&P==". "&&(P=" ",B=!0),P&&!E&&!z&&!O&&!$||this.commandMode?this.host.onTextInput(P):this.host.onTextInput(P,{extendLeft:E,extendRight:z,restoreStart:O,restoreEnd:$}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=D,this.lastSelectionEnd=I,this.lastRestoreEnd=$,B?`
|
|
163
|
+
`:P},_.prototype.onSelect=function(C){var L=this;if(!this.inComposition){var D=function(I){return I.selectionStart===0&&I.selectionEnd>=L.lastValue.length&&I.value===L.lastValue&&L.lastValue&&I.selectionEnd!==L.lastSelectionEnd};this.copied?this.copied=!1:D(this.text)?(this.host.selectAll(),this.resetSelection()):N&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},_.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var L=`
|
|
164
|
+
ab`+C+`cde fg
|
|
165
|
+
`;L!=this.text.value&&(this.text.value=this.lastValue=L);var D=4,I=4+(C.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=D||this.lastSelectionEnd!=I)&&this.text.setSelectionRange(D,I),this.lastSelectionStart=D,this.lastSelectionEnd=I}},_.prototype.$resetSelection=function(){var C=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var L=0,D=0,I="",E=function(q,Q){for(var ee=Q,ae=1;ae<=q-C.rowStart&&ae<2*C.numberOfExtraLines+1;ae++)ee+=C.host.session.getLine(q-ae).length+1;return ee};if(this.host.session){var z=this.host.selection,P=z.getRange(),O=z.cursor.row;O===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):O===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(O<this.rowStart-1||O>this.rowEnd+1)&&(this.rowStart=O>this.numberOfExtraLines?O-this.numberOfExtraLines:0,this.rowEnd=O>this.numberOfExtraLines?O+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var $=[],k=this.rowStart;k<=this.rowEnd;k++)$.push(this.host.session.getLine(k));if(I=$.join(`
|
|
166
|
+
`),L=E(P.start.row,P.start.column),D=E(P.end.row,P.end.column),P.start.row<this.rowStart){var R=this.host.session.getLine(this.rowStart-1);L=P.start.row<this.rowStart-1?0:L,D+=R.length+1,I=R+`
|
|
167
|
+
`+I}else if(P.end.row>this.rowEnd){var B=this.host.session.getLine(this.rowEnd+1);D=P.end.row>this.rowEnd+1?B.length:P.end.column,D+=I.length+1,I=I+`
|
|
168
|
+
`+B}else N&&O>0&&(I=`
|
|
169
|
+
`+I,D+=1,L+=1);I.length>i&&(L<i&&D<i?I=I.slice(0,i):(I=`
|
|
170
|
+
`,L==D?L=D=0:(L=0,D=1)));var U=I+`
|
|
171
|
+
|
|
172
|
+
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},_.prototype.setHost=function(C){this.host=C},_.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},_.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=g("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},_.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",g("text-input.aria-roledescription","editor")),this.setAriaLabel())},_.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var I=[];if(D)for(var E=this.text.parentElement;E&&E.nodeType==1;)I.push(E),E.setAttribute("ace_nocontext","true"),!E.parentElement&&E.getRootNode?E=E.getRootNode().host:E=E.parentElement;this.text.focus({preventScroll:!0}),D&&I.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},_.prototype.blur=function(){this.text.blur()},_.prototype.isFocused=function(){return this.$isFocused},_.prototype.setInputHandler=function(C){this.inputHandler=C},_.prototype.getInputHandler=function(){return this.inputHandler},_.prototype.getElement=function(){return this.text},_.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},_.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},_.prototype.setCopyWithEmptySelection=function(C){},_.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},_.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var I=this.host.container.getBoundingClientRect(),E=h.computedStyle(this.host.container),z=I.top+(parseInt(E.borderTopWidth)||0),P=I.left+(parseInt(E.borderLeftWidth)||0),O=I.bottom-z-this.text.clientHeight-2,$=function(k){h.translate(D.text,k.clientX-P-2,Math.min(k.clientY-z-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&p.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},_.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},_})();r.TextInput=M,r.$setUserAgentForTests=function(_,C){N=_,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,v){var p=e("../lib/useragent"),g=0,w=550,h=(function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(s){u[s]=this[s]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var s=this.editor,f=u.getButton();if(f!==0){var b=s.getSelectionRange(),x=b.isEmpty();(x||f==1)&&s.selection.moveToPosition(i),f==2&&(s.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i);if(s==-1)u=this.$clickSelection.end;else if(s==1)u=this.$clickSelection.start;else{var f=a(this.$clickSelection,i,c.session);i=f.cursor,u=f.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y),f=i.selection[u](s.row,s.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(f.start),x=this.$clickSelection.comparePoint(f.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(f.end.row!=s.row||f.end.column!=s.column)&&(s=f.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(f.start.row!=s.row||f.start.column!=s.column)&&(s=f.end);else if(b==-1&&x==1)s=f.end,c=f.start;else{var N=a(this.$clickSelection,s,i.session);s=N.cursor,c=N.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>g||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,s=i.session,f=s.getBracketRange(c);f?(f.isEmpty()&&(f.start.column--,f.end.column++),this.setState("select")):(f=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=f,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var s=i.getSelectionRange();s.isMultiLine()&&s.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(s.start.row),this.$clickSelection.end=i.selection.getLineRange(s.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,s=u.domEvent.timeStamp,f=s-i.t,b=f?u.wheelX/f:i.vx,x=f?u.wheelY/f:i.vy;f<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var N=Math.abs(b/x),M=!1;if(N>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(M=!0),N<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(M=!0),M)i.allowed=s;else if(s-i.allowed<w){var _=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);_?(M=!0,i.allowed=s):i.allowed=0}if(i.t=s,i.vx=b,i.vy=x,M)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l})();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function a(l,u,c){if(l.start.row==l.end.row)var i=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/event"),g=e("../lib/useragent"),w=(function(){function h(d,a){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=a,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,a=d.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return g.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h})();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,v){r.preventParentScroll=function(p){p.stopPropagation();var g=p.currentTarget,w=g.scrollHeight>g.clientHeight;w||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,v){var p=this&&this.__extends||(function(){var s=function(f,b){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var M in N)Object.prototype.hasOwnProperty.call(N,M)&&(x[M]=N[M])},s(f,b)};return function(f,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");s(f,b);function x(){this.constructor=f}f.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}})(),g=this&&this.__values||function(s){var f=typeof Symbol=="function"&&Symbol.iterator,b=f&&s[f],x=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&x>=s.length&&(s=void 0),{value:s&&s[x++],done:!s}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=(function(){function s(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return s.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},s.prototype.getElement=function(){return this.$element||this.$init()},s.prototype.setText=function(f){this.getElement().textContent=f},s.prototype.setHtml=function(f){this.getElement().innerHTML=f},s.prototype.setPosition=function(f,b){this.getElement().style.left=f+"px",this.getElement().style.top=b+"px"},s.prototype.setClassName=function(f){w.addCssClass(this.getElement(),f)},s.prototype.setTheme=function(f){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),f.isDark&&w.addCssClass(this.getElement(),"ace_dark"),f.cssClass&&w.addCssClass(this.getElement(),f.cssClass),this.theme={isDark:f.isDark,cssClass:f.cssClass}},s.prototype.show=function(f,b,x){f!=null&&this.setText(f),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},s.prototype.hide=function(f){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},s.prototype.getHeight=function(){return this.getElement().offsetHeight},s.prototype.getWidth=function(){return this.getElement().offsetWidth},s.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},s})(),u=(function(){function s(){this.popups=[]}return s.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},s.prototype.removePopup=function(f){var b=this.popups.indexOf(f);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},s.prototype.updatePopups=function(){var f,b,x,N;this.popups.sort(function(P,O){return O.priority-P.priority});var M=[];try{for(var _=g(this.popups),C=_.next();!C.done;C=_.next()){var L=C.value,D=!0;try{for(var I=(x=void 0,g(M)),E=I.next();!E.done;E=I.next()){var z=E.value;if(this.doPopupsOverlap(z,L)){D=!1;break}}}catch(P){x={error:P}}finally{try{E&&!E.done&&(N=I.return)&&N.call(I)}finally{if(x)throw x.error}}D?M.push(L):L.hide()}}catch(P){f={error:P}}finally{try{C&&!C.done&&(b=_.return)&&b.call(_)}finally{if(f)throw f.error}}},s.prototype.doPopupsOverlap=function(f,b){var x=f.getElement().getBoundingClientRect(),N=b.getElement().getBoundingClientRect();return x.left<N.right&&x.right>N.left&&x.top<N.bottom&&x.bottom>N.top},s})(),c=new u;r.popupManager=c,r.Tooltip=l;var i=(function(s){p(f,s);function f(b){b===void 0&&(b=document.body);var x=s.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var N=x.getElement();return N.style.whiteSpace="pre-wrap",N.style.pointerEvents="auto",N.addEventListener("mouseout",x.onMouseOut),N.tabIndex=-1,N.addEventListener("blur",(function(){N.contains(document.activeElement)||this.hide()}).bind(x)),N.addEventListener("wheel",d),x}return f.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var N=x.$mouseHandler.isMousePressed;if(this.isOpen){var M=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(M.row,M.column)||N||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||N||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(b){var x=b.editor,N=b.getDocumentPosition(),M=x.session.getLine(N.row);if(N.column==M.length){var _=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(N.row,N.column);if(C.column!=_.column||C.row!=_.row)return!0}return!1},f.prototype.setDataProvider=function(b){this.$gatherData=b},f.prototype.showForRange=function(b,x,N,M){if(!(M&&M!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=_.textToScreenCoordinates(x.start.row,x.start.column),L=_.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(N),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},f.prototype.$setPosition=function(b,x,N,M){var _=10;N&&this.addMarker(M,b.session);var C=b.renderer,L=this.getElement(),D=L.offsetHeight,I=L.offsetWidth,E=x.pageY,z=x.pageX,P=window.innerHeight-E-C.lineHeight,O=this.$shouldPlaceAbove(D,E,P-_);L.style.maxHeight=(O?E:P)-_+"px",L.style.top=O?"":E+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-E+"px":"",L.style.left=Math.min(z,window.innerWidth-I-_)+"px"},f.prototype.$shouldPlaceAbove=function(b,x,N){return!(x-b<0&&x<N)},f.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},f.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},f})(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,v){var p=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(b[N]=x[N])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),g=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,f=s&&i[s],b=0;if(f)return f.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,a=e("../config").nls,l=e("../range").Range;function u(i){var s=i.editor,f=s.renderer.$gutterLayer;i.$tooltip=new c(s),i.$tooltip.addToEditor(s),i.$tooltip.setDataProvider(function(b,x){var N=b.getDocumentPosition().row;i.$tooltip.showTooltip(N)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!s.isFocused()||b.getButton()!=0)){var x=f.getRegion(b);if(x!="foldWidgets"){var N=b.getDocumentPosition().row,M=s.session.selection;if(b.getShiftKey())M.selectTo(N,0);else{if(b.domEvent.detail==2)return s.selectAll(),b.preventDefault();i.$clickSelection=s.selection.getLineRange(N)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=(function(i){p(s,i);function s(f){var b=i.call(this,f.container)||this;b.id="gt"+ ++s.$uid,b.editor=f,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return s.prototype.onDomMouseMove=function(f){var b=new h(f,this.editor);this.onMouseMove(b,this.editor)},s.prototype.onDomMouseOut=function(f){var b=new h(f,this.editor);this.onMouseOut(b)},s.prototype.addToEditor=function(f){var b=f.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,f)},s.prototype.removeFromEditor=function(f){var b=f.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,f)},s.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(f){var b,x=this.editor.renderer.$gutterLayer,N=x.$annotations[f],M;N?M={displayText:Array.from(N.displayText),type:Array.from(N.type)}:M={displayText:[],type:[]};var _=x.session.getFoldLine(f);if(_&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,I=f+1;I<=_.end.row;I++)if(x.$annotations[I])for(var E=0;E<x.$annotations[I].text.length;E++){var z=x.$annotations[I].type[E];C[z].push(x.$annotations[I].text[E]),(!D||L[z]<L[D])&&(D=z)}if(["error","security","warning"].includes(D)){var P="".concat(s.annotationsToSummaryString(C)," in folded code.");M.displayText.push(P),M.type.push(D+"_fold")}}if(M.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=0;I<M.displayText.length;I++){var k=w.createElement("span"),R=w.createElement("span");(b=R.classList).add.apply(b,["ace_".concat(M.type[I]),$]),R.setAttribute("aria-label","".concat(s.annotationLabels[M.type[I].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(w.createTextNode(" ")),k.appendChild(R),k.appendChild(w.createTextNode(M.displayText[I])),k.appendChild(w.createElement("br")),O[M.type[I].replace("_fold","")].push(k)}var B=w.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(f);U&&U.setAttribute("aria-describedby",this.id);var q=l.fromPoints({row:f,column:0},{row:f,column:0});this.showForRange(this.editor,q,B),this.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},s.prototype.$setPosition=function(f,b,x,N){var M=this.$findCellByRow(N.start.row);if(M){var _=M&&M.element,C=_&&_.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,f,D,!1,N)}}}},s.prototype.$shouldPlaceAbove=function(f,b,x){return x<f},s.prototype.$findLinkedAnnotationNode=function(f){var b=this.$findCellByRow(f);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},s.prototype.$findCellByRow=function(f){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===f})},s.prototype.hide=function(f){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,f)}},s.annotationsToSummaryString=function(f){var b,x,N=[],M=["error","security","warning","info","hint"];try{for(var _=g(M),C=_.next();!C.done;C=_.next()){var L=C.value;if(f[L].length){var D=f[L].length===1?s.annotationLabels[L].singular:s.annotationLabels[L].plural;N.push("".concat(f[L].length," ").concat(D))}}}catch(I){b={error:I}}finally{try{C&&!C.done&&(x=_.return)&&x.call(_)}finally{if(b)throw b.error}}return N.join(", ")},s.prototype.isOutsideOfText=function(f){var b=f.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(f.clientX>=x.left&&f.clientX<=x.right&&f.clientY>=x.top&&f.clientY<=x.bottom)},s})(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,a=5;function l(c){var i=c.editor,s=p.createElement("div");s.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",s.textContent=" ";var f=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];f.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,N,M,_,C,L,D=0,I,E,z,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var ce=this;return setTimeout(function(){ce.startSelect(),ce.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(s),se.setDragImage&&se.setDragImage(s,0,0),setTimeout(function(){i.container.removeChild(s)}),se.clearData(),se.setData("Text",i.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,E=!1,this.setState(null),!i.getReadOnly()){var ce=ne.dataTransfer.dropEffect;!I&&ce=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!ee(ne.dataTransfer)))return N=ne.clientX,M=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=I=ae(ne),g.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!ee(ne.dataTransfer)))return N=ne.clientX,M=ne.clientY,x||(B(),D++),q!==null&&(q=null),ne.dataTransfer.dropEffect=I=ae(ne),g.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),I=null,g.preventDefault(ne)},this.onDrop=function(ne){if(L){var ce=ne.dataTransfer;if(E)switch(I){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=ce.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),I=null}return U(),g.preventDefault(ne)}},g.addListener(b,"dragstart",this.onDragStart.bind(c),i),g.addListener(b,"dragend",this.onDragEnd.bind(c),i),g.addListener(b,"dragenter",this.onDragEnter.bind(c),i),g.addListener(b,"dragover",this.onDragOver.bind(c),i),g.addListener(b,"dragleave",this.onDragLeave.bind(c),i),g.addListener(b,"drop",this.onDrop.bind(c),i);function $(ne,ce){var se=Date.now(),de=!ce||ne.row!=ce.row,me=!ce||ne.column!=ce.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,O={x:N,y:M};else{var $e=u(O.x,O.y,N,M);$e>a?P=null:se-P>=d&&(i.renderer.scrollCursorIntoView(),P=null)}}function k(ne,ce){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,$e=i.renderer.scroller.getBoundingClientRect(),Me={x:{left:N-$e.left,right:$e.right-N},y:{top:M-$e.top,bottom:$e.bottom-M}},Te=Math.min(Me.x.left,Me.x.right),Ze=Math.min(Me.y.top,Me.y.bottom),qe={row:ne.row,column:ne.column};Te/me<=2&&(qe.column+=Me.x.left<Me.x.right?-3:2),Ze/de<=1&&(qe.row+=Me.y.top<Me.y.bottom?-1:1);var it=ne.row!=qe.row,ct=ne.column!=qe.column,et=!ce||ne.row!=ce.row;it||ct&&!et?z?se-z>=h&&i.renderer.scrollCursorIntoView(qe):z=se:z=null}function R(){var ne=L;L=i.renderer.screenToTextCoordinates(N,M),$(L,ne),k(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),R(),_=setInterval(R,20),D=0,g.addListener(document,"mousemove",Q)}function U(){clearInterval(_),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!E&&i.$resetCursorStyle(),C=null,L=null,D=0,z=null,P=null,g.removeListener(document,"mousemove",Q)}var q=null;function Q(){q==null&&(q=setTimeout(function(){q!=null&&x&&U()},20))}function ee(ne){var ce=ne.types;return!ce||Array.prototype.some.call(ce,function(se){return se=="text/plain"||se=="Text"})}function ae(ne){var ce=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var $e="none";return de&&ce.indexOf(me)>=0?$e="copy":se.indexOf(me)>=0?$e="move":ce.indexOf(me)>=0&&($e="copy"),$e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var s=w.isWin?"default":"move";c.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&i.dragDrop()}if(this.state==="dragWait"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,s=c.inSelection(),f=c.getButton(),b=c.domEvent.detail||1;if(b===1&&f===0&&s){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var N=i.container;N.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,s,f){return Math.sqrt(Math.pow(s-c,2)+Math.pow(f-i,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,v){var p=e("./mouse_event").MouseEvent,g=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var a="scroll",l,u,c,i,s,f,b=0,x,N=0,M=0,_=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,k=!1,R=function(){var q=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.buildDom(k?["span",!q&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(q){return d.commands.canExecute(q,d)},U=function(q){var Q=q.target.getAttribute("action");if(Q=="more"||!k)return k=!k,R();Q=="paste"?$.readText().then(function(ee){d.execCommand(Q,ee)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",k=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){a="menu",q.stopPropagation(),q.preventDefault(),d.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function I(){if(!d.getOption("enableMobileMenu")){L&&E();return}L||D();var $=d.selection.cursor,k=d.renderer.textToScreenCoordinates($.row,$.column),R=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=k.pageY-U.top-3+"px",k.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=R+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",E)}function E($){L&&(L.style.display="none"),d.off("input",E)}function z(){s=null,clearTimeout(s);var $=d.selection.getRange(),k=$.contains(x.row,x.column);($.isEmpty()||!k)&&(d.selection.moveToPosition(x),d.selection.selectWord()),a="wait",I()}function P(){s=null,clearTimeout(s),d.selection.moveToPosition(x);var $=N>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),a="wait"}g.addListener(h,"contextmenu",function($){if(C){var k=d.textInput.getElement();k.focus()}},d),g.addListener(h,"touchstart",function($){var k=$.touches;if(s||k.length>1){clearTimeout(s),s=null,c=-1,a="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var R=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var q=k[0],Q=q.clientX,ee=q.clientY;Math.abs(l-Q)+Math.abs(u-ee)>R&&(c=-1),l=$.clientX=Q,u=$.clientY=ee,M=_=0;var ae=new p($,d);if(x=ae.getDocumentPosition(),U-c<500&&k.length==1&&!b)N++,$.preventDefault(),$.button=0,P();else{N=0;var ne=d.selection.cursor,ce=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(ce,!0),me=d.renderer.scroller.getBoundingClientRect(),$e=d.renderer.layerConfig.offset,Me=d.renderer.scrollLeft,Te=function(it,ct){return it=it/B,ct=ct/R-.75,it*it+ct*ct};if($.clientX<me.left){a="zoom";return}var Ze=Te($.clientX-me.left-se.left+Me,$.clientY-me.top-se.top+$e),qe=Te($.clientX-me.left-de.left+Me,$.clientY-me.top-de.top+$e);Ze<3.5&&qe<3.5&&(a=Ze>qe?"cursor":"anchor"),qe<3.5?a="anchor":Ze<3.5?a="cursor":a="scroll",s=setTimeout(z,450)}c=U},d),g.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,f&&clearInterval(f),a=="zoom"?(a="",b=0):s?(d.selection.moveToPosition(x),b=0,I()):a=="scroll"?(O(),E()):I(),clearTimeout(s),s=null},d),g.addListener(h,"touchmove",function($){s&&(clearTimeout(s),s=null);var k=$.touches;if(!(k.length>1||a=="zoom")){var R=k[0],B=l-R.clientX,U=u-R.clientY;if(a=="wait")if(B*B+U*U>4)a="cursor";else return $.preventDefault();l=R.clientX,u=R.clientY,$.clientX=R.clientX,$.clientY=R.clientY;var q=$.timeStamp,Q=q-i;if(i=q,a=="scroll"){var ee=new p($,d);ee.speed=1,ee.wheelX=B,ee.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(M=B/Q,_=U/Q),d._emit("mousewheel",ee),ee.propagationStopped||(M=_=0)}else{var ae=new p($,d),ne=ae.getDocumentPosition();a=="cursor"?d.selection.moveCursorToPosition(ne):a=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function O(){b+=60,f=setInterval(function(){b--<=0&&(clearInterval(f),f=null),Math.abs(M)<.01&&(M=0),Math.abs(_)<.01&&(_=0),b<20&&(M=.9*M),b<20&&(_=.9*_);var $=d.session.getScrollTop();d.renderer.scrollBy(10*M,10*_),$==d.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,v){var p=e("../lib/event"),g=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=(function(){function i(s){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var f=this;this.editor=s,new w(this),new h(this),new a(this);var b=function(M){var _=!document.hasFocus||!document.hasFocus()||!s.isFocused()&&document.activeElement==(s.textInput&&s.textInput.getElement());_&&window.focus(),s.focus(),setTimeout(function(){s.isFocused()||s.focus()})},x=s.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),s),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),s),p.addMultiMouseDownListener([x,s.renderer.scrollBarV&&s.renderer.scrollBarV.inner,s.renderer.scrollBarH&&s.renderer.scrollBarH.inner,s.textInput&&s.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",s),p.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel"),s),l(s.container,s);var N=s.renderer.$gutter;p.addListener(N,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),s),p.addListener(N,"click",this.onMouseEvent.bind(this,"gutterclick"),s),p.addListener(N,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),s),p.addListener(N,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),s),p.addListener(x,"mousedown",b,s),p.addListener(N,"mousedown",b,s),g.isIE&&s.renderer.scrollBarV&&(p.addListener(s.renderer.scrollBarV.element,"mousedown",b,s),p.addListener(s.renderer.scrollBarH.element,"mousedown",b,s)),s.on("mousemove",function(M){if(!(f.state||f.$dragDelay||!f.$dragEnabled)){var _=s.renderer.screenToTextCoordinates(M.x,M.y),C=s.session.selection.getRange(),L=s.renderer;!C.isEmpty()&&C.insideStart(_.row,_.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},s)}return i.prototype.onMouseEvent=function(s,f){this.editor.session&&this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseMove=function(s,f){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseWheel=function(s,f){var b=new d(f,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=f.wheelX,b.wheelY=f.wheelY,this.editor._emit(s,b)},i.prototype.setState=function(s){this.state=s},i.prototype.captureMouse=function(s,f){this.x=s.x,this.y=s.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var N=this,M=!0,_=function(E){if(E){if(g.isWebKit&&!E.which&&N.releaseMouse)return N.releaseMouse();N.x=E.clientX,N.y=E.clientY,f&&f(E),N.mouseEvent=new d(E,N.editor),N.$mouseMoved=!0}},C=function(E){b.off("beforeEndOperation",I),M=!1,b.session&&L(),N[N.state+"End"]&&N[N.state+"End"](E),N.state="",N.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),N.$onCaptureMouseMove=N.releaseMouse=null,E&&N.onMouseEvent("mouseup",E),b.endOperation()},L=function(){N[N.state]&&N[N.state](),N.$mouseMoved=!1},D=function(){M&&(L(),p.nextFrame(D))};if(g.isOldIE&&s.domEvent.type=="dblclick")return setTimeout(function(){C(s)});var I=function(E){N.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(N[N.state+"End"]&&N[N.state+"End"](),N.state="",N.releaseMouse())};b.on("beforeEndOperation",I),b.startOperation({command:{name:"mouse"}}),N.$onCaptureMouseMove=_,N.releaseMouse=p.capture(this.editor.container,_,C),D()},i.prototype.cancelContextMenu=function(){var s=(function(f){f&&f.domEvent&&f.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",s),f&&f.domEvent&&p.stopEvent(f.domEvent))}).bind(this);setTimeout(s,10),this.editor.on("nativecontextmenu",s)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i})();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:g.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h){h.on("click",function(d){var a=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(a.row,a.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&p.hasCssClass(c,"ace_inline_button")&&p.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var s=u.getFoldAt(l,u.getLine(l).length,1);s?u.removeFold(s):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w})();r.FoldHandler=g}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,v){var p=e("../lib/keys"),g=e("../lib/event"),w=(function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var a=this.$handlers;if(a[a.length-1]!=d){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,a){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(d):this.$handlers.splice(a,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var a=this.$handlers.indexOf(d);return a==-1?!1:(this.$handlers.splice(a,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,a=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,a,l,u){for(var c,i=!1,s=this.$editor.commands,f=this.$handlers.length;f--&&(c=this.$handlers[f].handleKeyboard(this.$data,d,a,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=s.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&g.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=s.exec("insertstring",this.$editor,a)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,a,l){var u=p.keyCodeToString(l);return this.$callKeyboardHandlers(a,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h})();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,v){var p=0,g=0,w=!1,h=!1,d=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,s=1,f=2,b=3,x=4,N=5,M=6,_=7,C=8,L=9,D=10,I=11,E=12,z=13,P=14,O=15,$=16,k=17,R=18,B=[R,R,R,R,R,R,R,R,R,M,N,M,C,N,R,R,R,R,R,R,R,R,R,R,R,R,R,R,N,N,N,M,C,x,x,I,I,I,x,x,x,x,x,D,L,D,L,L,f,f,f,f,f,f,f,f,f,f,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,R,R,R,R,R,R,N,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,L,x,I,I,I,I,x,x,x,x,i,x,x,R,x,x,I,I,f,f,x,i,x,x,x,f,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,R,R,R,i,s,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,N,z,P,O,$,k,L,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function q(ne,ce,se,de){var me=p?l:a,$e=null,Me=null,Te=null,Ze=0,qe=null,it=null,ct=-1,et=null,Bt=null,pr=[];if(!de)for(et=0,de=[];et<se;et++)de[et]=ae(ne[et]);for(g=p,w=!1,h=!1,d=!1,Bt=0;Bt<se;Bt++){if($e=Ze,pr[Bt]=Me=ee(ne,de,pr,Bt),Ze=me[$e][Me],qe=Ze&240,Ze&=15,ce[Bt]=Te=me[Ze][5],qe>0)if(qe==16){for(et=ct;et<Bt;et++)ce[et]=1;ct=-1}else ct=-1;if(it=me[Ze][6],it)ct==-1&&(ct=Bt);else if(ct>-1){for(et=ct;et<Bt;et++)ce[et]=Te;ct=-1}de[Bt]==N&&(ce[Bt]=0),g|=Te}if(d){for(et=0;et<se;et++)if(de[et]==M){ce[et]=p;for(var At=et-1;At>=0&&de[At]==C;At--)ce[At]=p}}}function Q(ne,ce,se){if(!(g<ne)){if(ne==1&&p==c&&!h){se.reverse();return}for(var de=se.length,me=0,$e,Me,Te,Ze;me<de;){if(ce[me]>=ne){for($e=me+1;$e<de&&ce[$e]>=ne;)$e++;for(Me=me,Te=$e-1;Me<Te;Me++,Te--)Ze=se[Me],se[Me]=se[Te],se[Te]=Ze;me=$e}me++}}}function ee(ne,ce,se,de){var me=ce[de],$e,Me,Te,Ze;switch(me){case i:case s:w=!1;case x:case b:return me;case f:return w?b:f;case _:return w=!0,s;case C:return x;case L:return de<1||de+1>=ce.length||($e=se[de-1])!=f&&$e!=b||(Me=ce[de+1])!=f&&Me!=b?x:(w&&(Me=b),Me==$e?Me:x);case D:return $e=de>0?se[de-1]:N,$e==f&&de+1<ce.length&&ce[de+1]==f?f:x;case I:if(de>0&&se[de-1]==f)return f;if(w)return x;for(Ze=de+1,Te=ce.length;Ze<Te&&ce[Ze]==I;)Ze++;return Ze<Te&&ce[Ze]==f?f:x;case E:for(Te=ce.length,Ze=de+1;Ze<Te&&ce[Ze]==E;)Ze++;if(Ze<Te){var qe=ne[de],it=qe>=1425&&qe<=2303||qe==64286;if($e=ce[Ze],it&&($e==s||$e==_))return s}return de<1||($e=ce[de-1])==N?x:se[de-1];case N:return w=!1,h=!0,p;case M:return d=!0,x;case z:case P:case $:case k:case O:w=!1;case R:return x}}function ae(ne){var ce=ne.charCodeAt(0),se=ce>>8;return se==0?ce>191?i:B[ce]:se==5?/[\u0591-\u05f4]/.test(ne)?s:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?E:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:ce==1642?I:/[\u06f0-\u06f9]/.test(ne)?f:_:se==32&&ce<=8287?U[ce&255]:se==254&&ce>=65136?_:x}r.L=i,r.R=s,r.EN=f,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,ce,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),$e=new Array(de.length),Me=[];p=se?c:u,q(de,Me,de.length,ce);for(var Te=0;Te<me.length;me[Te]=Te,Te++);Q(2,Me,me),Q(1,Me,me);for(var Te=0;Te<me.length-1;Te++)ce[Te]===b?Me[Te]=r.AN:Me[Te]===s&&(ce[Te]>_&&ce[Te]<z||ce[Te]===x||ce[Te]===R)?Me[Te]=r.ON_R:Te>0&&de[Te-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Te])&&(Me[Te-1]=Me[Te]=r.R_H,Te++);de[de.length-1]===r.DOT&&(Me[de.length-1]=r.B),de[0]===""&&(Me[0]=r.RLE);for(var Te=0;Te<me.length;Te++)$e[Te]=Me[me[Te]];return{logicalFromVisual:me,bidiLevels:$e}},r.hasBidiCharacters=function(ne,ce){for(var se=!1,de=0;de<ne.length;de++)ce[de]=ae(ne.charAt(de)),!se&&(ce[de]==s||ce[de]==_||ce[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,ce){for(var se=0;se<ce.logicalFromVisual.length;se++)if(ce.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,v){var p=e("./lib/bidiutil"),g=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=(function(){function d(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(a.getValue())}return d.prototype.isBidiRow=function(a,l,u){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
|
|
173
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(a=this.session.$docRowCache[u])}return a},d.prototype.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-a-1),u===c);)c=u,a++;else a=this.currentRow;return a},d.prototype.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var u=a===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[a];i&&(l===void 0&&(l=this.getSplitIndex()),l>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=l<i.length?this.line.substring(i[l-1],i[l]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[l]),l==i.length&&(this.line+=this.showInvisibles?c:p.DOT))}else this.line+=this.showInvisibles?c:p.DOT;var s=this.session,f=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,N){return x===" "||s.isFullWidth(x.charCodeAt(0))?(b=x===" "?s.getScreenTabSize(N+f):2,f+=b-1,g.stringRepeat(p.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var a=[];p.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,u=a.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=l,this.charWidths[p.R]=this.charWidths[p.AN]=u,this.charWidths[p.R_H]=u*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},d.prototype.setEolChar=function(a){this.EOL=a},d.prototype.setContentWidth=function(a){this.contentWidth=a},d.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(a,l){for(var u=a.getCursorPosition(),c=a.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&a.session.getLine(c).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(c,0,1):l&&a.session.getLine(c).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:c},a.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=a>l?this.session.getOverwrite()?a:a-1:l,c=p.getVisualFromLogicalIdx(u,this.bidiMap),i=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&a<=l&&i[c]%2!==0&&c++;for(var f=0;f<c;f++)s+=this.charWidths[i[f]];return!this.session.getOverwrite()&&a>l&&i[c]%2===0&&(s+=this.charWidths[i[c]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},d.prototype.getSelections=function(a,l){var u=this.bidiMap,c=u.bidiLevels,i,s=[],f=0,b=Math.min(a,l)-this.wrapIndent,x=Math.max(a,l)-this.wrapIndent,N=!1,M=!1,_=0;this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,L=0;L<c.length;L++)C=u.logicalFromVisual[L],i=c[L],N=C>=b&&C<x,N&&!M?_=f:!N&&M&&s.push({left:_,width:f-_}),f+=this.charWidths[i],M=N;if(N&&L===c.length&&s.push({left:_,width:f-_}),this.isRtlDir)for(var D=0;D<s.length;D++)s[D].left+=this.rtlLineOffset;return s},d.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,i=0,s=this.bidiMap.bidiLevels,f=this.charWidths[s[i]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+f/2;){if(c+=f,i===s.length-1){f=0;break}f=this.charWidths[s[++i]]}return i>0&&s[i-1]%2!==0&&s[i]%2===0?(u<c&&i--,l=this.bidiMap.logicalFromVisual[i]):i>0&&s[i-1]%2===0&&s[i]%2!==0?l=1+(u>c?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===s.length-1&&f===0&&s[i-1]%2===0||!this.isRtlDir&&i===0&&s[i]%2!==0?l=1+this.bidiMap.logicalFromVisual[i]:(i>0&&s[i-1]%2!==0&&f!==0&&i--,l=this.bidiMap.logicalFromVisual[i]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},d})();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=(function(){function a(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},a.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?h.fromPoints(u,u):this.isBackwards()?h.fromPoints(u,l):h.fromPoints(l,u)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(l,u){var c=u?l.end:l.start,i=u?l.start:l.end;this.$setSelection(c.row,c.column,i.row,i.column)},a.prototype.$setSelection=function(l,u,c,i){if(!this.$silent){var s=this.$isEmpty,f=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||f)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},a.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},a.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},a.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},a.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},a.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,i,s=this.session.getFoldLine(c);return s?(c=s.start.row,i=s.end.row):i=c,u===!0?new h(c,0,i,this.session.getLine(i).length):new h(c,0,i+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(l,u,c){var i=l.column,s=l.column+u;return c<0&&(i=l.column-u,s=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(i,s).split(" ").length-1==u},a.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),i=this.session.screenToDocumentPosition(c,0),s=this.session.getDisplayLine(l,null,i.row,i.column),f=s.match(/^\s*/);f[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(i.column+=f[0].length),this.moveCursorToPosition(i)},a.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var i=c.search(/\s+$/);i>0&&(u.column=i)}}this.moveCursorTo(u.row,u.column)},a.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(l,u,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if(this.session.nonTokenRe.exec(i)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var i=this.session.getFoldStringAt(l,u,-1);i==null&&(i=this.doc.getLine(l).substring(0,u));var s=g.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(u-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(s)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.$shortWordEndIndex=function(l){var u=0,c,i=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&i.test(c);)u++;if(u<1){for(s.lastIndex=0;(c=l[u])&&!s.test(c);)if(s.lastIndex=0,u++,i.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&i.test(c);)u++;if(u>2)break}}}return s.lastIndex=0,u},a.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u),s=this.session.getFoldAt(l,u,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(u==c.length){var f=this.doc.getLength();do l++,i=this.doc.getLine(l);while(l<f&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),u=0}var b=this.$shortWordEndIndex(i);this.moveCursorTo(l,u+b)},a.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var i=this.session.getLine(l).substring(0,u);if(u===0){do l--,i=this.doc.getLine(l);while(l>0&&/^\s*$/.test(i));u=i.length,/\s+$/.test(i)||(i="")}var s=g.stringReverse(i),f=this.$shortWordEndIndex(s);return this.moveCursorTo(l,u-f)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var s=this.session.lineWidgets[this.lead.row];l<0?l-=s.rowsAbove||0:l>0&&(l+=s.rowCount-(s.rowsAbove||0))}var f=this.session.screenToDocumentPosition(c.row+l,c.column,i);l!==0&&u===0&&f.row===this.lead.row&&(f.column,this.lead.column),this.moveCursorTo(f.row,f.column+u,u===0)},a.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},a.prototype.moveCursorTo=function(l,u,c){var i=this.session.getFoldAt(l,u,1);i&&(l=i.start.row,u=i.start.column),this.$keepDesiredColumnOnChange=!0;var s=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(s.charAt(u))&&s.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(l,u,c){var i=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(i.row,i.column,c)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},a.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(u,c)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},a.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},a.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var c=h.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},a.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},a})();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,p.implement(d.prototype,w),r.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,v){var p=e("./lib/report_error").reportError,g=2e3,w=(function(){function h(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var a in this.states){for(var l=this.states[a],u=[],c=0,i=this.matchMappings[a]={defaultToken:"text"},s="g",f=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&s.indexOf("i")===-1&&(s+="i"),x.unicode&&s.indexOf("u")===-1&&(s+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var N=x.regex,M=new RegExp("(?:("+N+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||M==1?x.token=x.token[0]:M-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:M-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(M>1?x.onMatch=this.$applyToken:x.onMatch=x.token),M>1&&(/\\\d/.test(x.regex)?N=x.regex.replace(/\\([0-9]+)/g,function(_,C){return"\\"+(parseInt(C,10)+c+1)}):(M=1,N=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&f.push(x)),i[c]=b,c+=M,u.push(N),x.onMatch||(x.onMatch=null)}}u.length||(i[0]=0,u.push("$")),f.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,s)},this),this.regExps[a]=new RegExp("("+u.join(")|(")+")|($)",s)}}return h.prototype.$setMaxTokenCount=function(d){g=d|0},h.prototype.$applyToken=function(d){var a=this.splitRegex.exec(d).slice(1),l=this.token.apply(this,a);if(typeof l=="string")return[{type:l,value:d}];for(var u=[],c=0,i=l.length;c<i;c++)a[c]&&(u[u.length]={type:l[c],value:a[c]});return u},h.prototype.$arrayTokens=function(d){if(!d)return[];var a=this.splitRegex.exec(d);if(!a)return"text";for(var l=[],u=this.tokenArray,c=0,i=u.length;c<i;c++)a[c+1]&&(l[l.length]={type:u[c],value:a[c+1]});return l},h.prototype.removeCapturingGroups=function(d){var a=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return a},h.prototype.createSplitterRegexp=function(d,a){if(d.indexOf("(?=")!=-1){var l=0,u=!1,c={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,s,f,b,x,N){return u?u=x!="]":x?u=!0:b?(l==c.stack&&(c.end=N+1,c.stack=-1),l--):f&&(l++,f.length!=1&&(c.stack=l,c.start=N)),i}),c.end!=null&&/^\)*$/.test(d.substr(c.end))&&(d=d.substring(0,c.start)+d.substr(c.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(a||"").replace("g",""))},h.prototype.getLineTokens=function(d,a){if(a&&typeof a!="string"){var l=a.slice(0);a=l[0],a==="#tmp"&&(l.shift(),a=l.shift())}else var l=[];var u=a||"start",c=this.states[u];c||(u="start",c=this.states[u]);var i=this.matchMappings[u],s=this.regExps[u];s.lastIndex=0;for(var f,b=[],x=0,N=0,M={type:null,value:""};f=s.exec(d);){var _=i.defaultToken,C=null,L=f[0],D=s.lastIndex;if(D-L.length>x){var I=d.substring(x,D-L.length);M.type==_?M.value+=I:(M.type&&b.push(M),M={type:_,value:I})}for(var E=0;E<f.length-2;E++)if(f[E+1]!==void 0){C=c[i[E]],C.onMatch?_=C.onMatch(L,u,l,d):_=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),i=this.matchMappings[u],x=D,s=this.regExps[u],s.lastIndex=D),C.consumeLineEnd&&(x=D);break}if(L){if(typeof _=="string")(!C||C.merge!==!1)&&M.type===_?M.value+=L:(M.type&&b.push(M),M={type:_,value:L});else if(_){M.type&&b.push(M),M={type:null,value:""};for(var E=0;E<_.length;E++)b.push(_[E])}}if(x==d.length)break;if(x=D,N++>g){for(N>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:d});x<d.length;)M.type&&b.push(M),M={value:d.substring(x,x+=500),type:"overflow"};u="start",l=[];break}}return M.type&&b.push(M),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:b,state:l.length?l:u}},h})();w.prototype.reportError=p,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){var p=e("../lib/deep_copy").deepCopy,g;g=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,a){if(!a){for(var l in d)this.$rules[l]=d[l];return}for(var l in d){for(var u=d[l],c=0;c<u.length;c++){var i=u[c];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(a)!==0&&(i.next=a+i.next),i.nextState&&i.nextState.indexOf(a)!==0&&(i.nextState=a+i.nextState))}this.$rules[a+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(d,a,l,u,c){var i=typeof d=="function"?new d().getRules():d;if(u)for(var s=0;s<u.length;s++)u[s]=a+u[s];else{u=[];for(var f in i)u.push(a+f)}if(this.addRules(i,a),l)for(var b=Array.prototype[c?"push":"unshift"],s=0;s<u.length;s++)b.apply(this.$rules[u[s]],p(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(d,a){return(d!="start"||a.length)&&a.unshift(this.nextState,d),this.nextState},h=function(d,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var d=0,a=this.$rules;function l(u){var c=a[u];c.processed=!0;for(var i=0;i<c.length;i++){var s=c[i],f=null;Array.isArray(s)&&(f=s,s={}),!s.regex&&s.start&&(s.regex=s.start,s.next||(s.next=[]),s.next.push({defaultToken:s.token},{token:s.token+".end",regex:s.end||s.start,next:"pop"}),s.token=s.token+".start",s.push=!0);var b=s.next||s.push;if(b&&Array.isArray(b)){var x=s.stateName;x||(x=s.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=d++)),a[x]=b,s.next=x,l(x)}else b=="pop"&&(s.next=h);if(s.push&&(s.nextState=s.next||s.push,s.next=w,delete s.push),s.rules)for(var N in s.rules)a[N]?a[N].push&&a[N].push.apply(a[N],s.rules[N]):a[N]=s.rules[N];var M=typeof s=="string"?s:s.include;if(M&&(M==="$self"&&(M="start"),Array.isArray(M)?f=M.map(function(C){return a[C]}):f=a[M]),f){var _=[i,1].concat(f);s.noEscape&&(_=_.filter(function(C){return!C.next})),c.splice.apply(c,_),i--}s.keywordMap&&(s.token=this.createKeywordMapper(s.keywordMap,s.defaultToken||"text",s.caseInsensitive),delete s.defaultToken)}}Object.keys(a).forEach(l,this)},this.createKeywordMapper=function(d,a,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(i){for(var s=d[i],f=s.split(u||"|"),b=f.length;b--;){var x=f[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=i}},this),d=null,l?function(i){return c[i.toLowerCase()]||a}:function(i){return c[i]||a}},this.getKeywords=function(){return this.$keywords}}).call(g.prototype),r.TextHighlightRules=g}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,v){var p;p=function(){this.$behaviours={}},(function(){this.add=function(g,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[g]:this.$behaviours[g]={}}this.$behaviours[g][w]=h},this.addBehaviours=function(g){for(var w in g)for(var h in g[w])this.add(w,h,g[w][h])},this.remove=function(g){this.$behaviours&&this.$behaviours[g]&&delete this.$behaviours[g]},this.inherit=function(g,w){if(typeof g=="function")var h=new g().getBehaviours(w);else var h=g.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(g){if(g){for(var w={},h=0;h<g.length;h++)this.$behaviours[g[h]]&&(w[g[h]]=this.$behaviours[g[h]]);return w}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,v){var p=e("./range").Range,g=(function(){function w(h,d,a){this.$session=h,this.$row=d,this.$rowTokens=h.getTokens(d);var l=h.getTokenAt(d,a);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,d=this.$tokenIndex,a=h[d].start;if(a!==void 0)return a;for(a=0;d>0;)d-=1,a+=h[d].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new p(this.$row,d,this.$row,d+h.value.length)},w})();r.TokenIterator=g}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,v){var p=e("../../lib/oop"),g=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},c={'"':'"',"'":"'"},i=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,u.rangeCount!=b.multiSelect.rangeCount&&(u={rangeCount:b.multiSelect.rangeCount})),u[x])return l=u[x];l=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(b,x,N,M){var _=b.end.row-b.start.row;return{text:N+x+M,selection:[0,b.start.column+1,_,b.end.column+(_?0:1)]}},f;f=function(b){b=b||{},this.add("braces","insertion",function(x,N,M,_,C){var L=M.getCursorPosition(),D=_.doc.getLine(L.row);if(C=="{"){i(M);var I=M.getSelectionRange(),E=_.doc.getTextRange(I),z=_.getTokenAt(L.row,L.column);if(E!==""&&E!=="{"&&M.getWrapBehavioursEnabled())return s(I,E,"{","}");if(z&&/(?:string)\.quasi|\.xml/.test(z.type)){var P=[/tag\-(?:open|name)/,/attribute\-name/];return P.some(function(q){return q.test(z.type)})||/(string)\.quasi/.test(z.type)&&z.value[L.column-z.start-1]!=="$"?void 0:(f.recordAutoInsert(M,_,"}"),{text:"{}",selection:[1,1]})}else if(f.isSaneInsertion(M,_))return/[\]\}\)]/.test(D[L.column])||M.inMultiSelectMode||b.braces?(f.recordAutoInsert(M,_,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(M,_,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(M);var O=D.substring(L.column,L.column+1);if(O=="}"){var $=_.$findOpeningBracket("}",{column:L.column+1,row:L.row});if($!==null&&f.isAutoInsertedClosing(L,D,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
|
174
|
+
`||C==`\r
|
|
175
|
+
`){i(M);var k="";f.isMaybeInsertedClosing(L,D)&&(k=h.stringRepeat("}",l.maybeInsertedBrackets),f.clearMaybeInsertedClosing());var O=D.substring(L.column,L.column+1);if(O==="}"){var R=_.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!R)return null;var B=this.$getIndent(_.getLine(R.row))}else if(k)var B=this.$getIndent(D);else{f.clearMaybeInsertedClosing();return}var U=B+_.getTabString();return{text:`
|
|
176
|
+
`+U+`
|
|
177
|
+
`+B+k,selection:[1,U.length,1,U.length]}}else f.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,N,M,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="{"){i(M);var D=_.doc.getLine(C.start.row),I=D.substring(C.end.column,C.end.column+1);if(I=="}")return C.end.column++,C;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,N,M,_,C){if(C=="("){i(M);var L=M.getSelectionRange(),D=_.doc.getTextRange(L);if(D!==""&&M.getWrapBehavioursEnabled())return s(L,D,"(",")");if(f.isSaneInsertion(M,_))return f.recordAutoInsert(M,_,")"),{text:"()",selection:[1,1]}}else if(C==")"){i(M);var I=M.getCursorPosition(),E=_.doc.getLine(I.row),z=E.substring(I.column,I.column+1);if(z==")"){var P=_.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(P!==null&&f.isAutoInsertedClosing(I,E,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,N,M,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="("){i(M);var D=_.doc.getLine(C.start.row),I=D.substring(C.start.column+1,C.start.column+2);if(I==")")return C.end.column++,C}}),this.add("brackets","insertion",function(x,N,M,_,C){if(C=="["){i(M);var L=M.getSelectionRange(),D=_.doc.getTextRange(L);if(D!==""&&M.getWrapBehavioursEnabled())return s(L,D,"[","]");if(f.isSaneInsertion(M,_))return f.recordAutoInsert(M,_,"]"),{text:"[]",selection:[1,1]}}else if(C=="]"){i(M);var I=M.getCursorPosition(),E=_.doc.getLine(I.row),z=E.substring(I.column,I.column+1);if(z=="]"){var P=_.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(P!==null&&f.isAutoInsertedClosing(I,E,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,N,M,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="["){i(M);var D=_.doc.getLine(C.start.row),I=D.substring(C.start.column+1,C.start.column+2);if(I=="]")return C.end.column++,C}}),this.add("string_dquotes","insertion",function(x,N,M,_,C){var L=_.$mode.$quotes||c;if(C.length==1&&L[C]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(C)!=-1)return;i(M);var D=C,I=M.getSelectionRange(),E=_.doc.getTextRange(I);if(E!==""&&(E.length!=1||!L[E])&&M.getWrapBehavioursEnabled())return s(I,E,D,D);if(!E){var z=M.getCursorPosition(),P=_.doc.getLine(z.row),O=P.substring(z.column-1,z.column),$=P.substring(z.column,z.column+1),k=_.getTokenAt(z.row,z.column),R=_.getTokenAt(z.row,z.column+1);if(O=="\\"&&k&&/escape/.test(k.type))return null;var B=k&&/string|escape/.test(k.type),U=!R||/string|escape/.test(R.type),q;if($==D)q=B!==U,q&&/string\.end/.test(R.type)&&(q=!1);else{if(B&&!U||B&&U)return null;var Q=_.$mode.tokenRe;Q.lastIndex=0;var ee=Q.test(O);Q.lastIndex=0;var ae=Q.test($),ne=_.$mode.$pairQuotesAfter,ce=ne&&ne[D]&&ne[D].test(O);if(!ce&&ee||ae||$&&!/[\s;,.})\]\\]/.test($))return null;var se=P[z.column-2];if(O==D&&(se==D||Q.test(se)))return null;q=!0}return{text:q?D+D:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,N,M,_,C){var L=_.$mode.$quotes||c,D=_.doc.getTextRange(C);if(!C.isMultiLine()&&L.hasOwnProperty(D)){i(M);var I=_.doc.getLine(C.start.row),E=I.substring(C.start.column+1,C.start.column+2);if(E==D)return C.end.column++,C}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,N,M,_,C){if(x==="doc-start"&&(C===`
|
|
178
|
+
`||C===`\r
|
|
179
|
+
`)&&M.selection.isEmpty()){var L=M.getCursorPosition();if(L.column===0)return;for(var D=_.doc.getLine(L.row),I=_.doc.getLine(L.row+1),E=_.getTokens(L.row),z=0,P=0;P<E.length;P++){z+=E[P].value.length;var O=E[P];if(z>=L.column){if(z===L.column){if(!/\.doc/.test(O.type))return;if(/\*\//.test(O.value)){var $=E[P+1];if(!$||!/\.doc/.test($.type))return}}var k=L.column-(z-O.value.length),R=O.value.indexOf("*/"),B=O.value.indexOf("/**",R>-1?R+2:0);if(B!==-1&&k>B&&k<B+3||R!==-1&&B!==-1&&k>=R&&k<=B||!/\.doc/.test(O.type))return;break}}var U=this.$getIndent(D);if(/\s*\*/.test(I))return/^\s*\*/.test(D)?{text:C+U+"* ",selection:[1,2+U.length,1,2+U.length]}:{text:C+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(D.substring(0,L.column)))return{text:C+U+" * "+C+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})},f.isSaneInsertion=function(b,x){var N=b.getCursorPosition(),M=new w(x,N.row,N.column);if(!this.$matchTokenType(M.getCurrentToken()||"text",d)){if(/[)}\]]/.test(b.session.getLine(N.row)[N.column]))return!0;var _=new w(x,N.row,N.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",d))return!1}return M.stepForward(),M.getCurrentTokenRow()!==N.row||this.$matchTokenType(M.getCurrentToken()||"text",a)},f.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},f.recordAutoInsert=function(b,x,N){var M=b.getCursorPosition(),_=x.doc.getLine(M.row);this.isAutoInsertedClosing(M,_,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=M.row,l.autoInsertedLineEnd=N+_.substr(M.column),l.autoInsertedBrackets++},f.recordMaybeInsert=function(b,x,N){var M=b.getCursorPosition(),_=x.doc.getLine(M.row);this.isMaybeInsertedClosing(M,_)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=M.row,l.maybeInsertedLineStart=_.substr(0,M.column)+N,l.maybeInsertedLineEnd=_.substr(M.column),l.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(b,x,N){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&N===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},p.inherits(f,g),r.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(e,r,v){for(var p=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],g=0,w=[],h=0;h<p.length;h+=2)w.push(g+=p[h]),p[h+1]&&w.push(45,g+=p[h+1]);r.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,r,v){var p=e("../config"),g=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,d=e("../unicode"),a=e("../lib/lang"),l=e("../token_iterator").TokenIterator,u=e("../range").Range,c;c=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+d.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+d.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new g(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(i,s,f,b){var x=s.doc,N=!0,M=!0,_=1/0,C=s.getTabSize(),L=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var D=this.lineCommentStart.map(a.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var D=a.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;D=new RegExp("^(\\s*)(?:"+D+") ?"),L=s.getUseSoftTabs();var E=function(q,Q){var ee=q.match(D);if(ee){var ae=ee[1].length,ne=ee[0].length;!$(q,ae,ne)&&ee[0][ne-1]==" "&&ne--,x.removeInLine(Q,ae,ne)}},z=I+" ",P=function(q,Q){(!N||/\S/.test(q))&&($(q,_,_)?x.insertInLine({row:Q,column:_},z):x.insertInLine({row:Q,column:_},I))},O=function(q,Q){return D.test(q)},$=function(q,Q,ee){for(var ae=0;Q--&&q.charAt(Q)==" ";)ae++;if(ae%C!=0)return!1;for(var ae=0;q.charAt(ee++)==" ";)ae++;return C>2?ae%C!=C-1:ae%C==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,k=this.blockComment.end,D=new RegExp("^(\\s*)(?:"+a.escapeRegExp(I)+")"),R=new RegExp("(?:"+a.escapeRegExp(k)+")\\s*$"),P=function(ce,se){O(ce,se)||(!N||/\S/.test(ce))&&(x.insertInLine({row:se,column:ce.length},k),x.insertInLine({row:se,column:_},I))},E=function(ce,se){var de;(de=ce.match(R))&&x.removeInLine(se,ce.length-de[0].length,ce.length),(de=ce.match(D))&&x.removeInLine(se,de[1].length,de[0].length)},O=function(ce,se){if(D.test(ce))return!0;for(var de=s.getTokens(se),me=0;me<de.length;me++)if(de[me].type==="comment")return!0}}function B(q){for(var Q=f;Q<=b;Q++)q(x.getLine(Q),Q)}var U=1/0;B(function(q,Q){var ee=q.search(/\S/);ee!==-1?(ee<_&&(_=ee),M&&!O(q,Q)&&(M=!1)):U>q.length&&(U=q.length)}),_==1/0&&(_=U,N=!1,M=!1),L&&_%C!=0&&(_=Math.floor(_/C)*C),B(M?E:P)},this.toggleBlockComment=function(i,s,f,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var N=new l(s,b.row,b.column),M=N.getCurrentToken();s.selection;var _=s.selection.toOrientedRange(),C,L;if(M&&/comment/.test(M.type)){for(var D,I;M&&/comment/.test(M.type);){var E=M.value.indexOf(x.start);if(E!=-1){var z=N.getCurrentTokenRow(),P=N.getCurrentTokenColumn()+E;D=new u(z,P,z,P+x.start.length);break}M=N.stepBackward()}for(var N=new l(s,b.row,b.column),M=N.getCurrentToken();M&&/comment/.test(M.type);){var E=M.value.indexOf(x.end);if(E!=-1){var z=N.getCurrentTokenRow(),P=N.getCurrentTokenColumn()+E;I=new u(z,P,z,P+x.end.length);break}M=N.stepForward()}I&&s.remove(I),D&&(s.remove(D),C=D.start.row,L=-x.start.length)}else L=x.start.length,C=f.start.row,s.insert(f.end,x.end),s.insert(f.start,x.start);_.start.row==C&&(_.start.column+=L),_.end.row==C&&(_.end.column+=L),s.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(i,s,f){return this.$getIndent(s)},this.checkOutdent=function(i,s,f){return!1},this.autoOutdent=function(i,s,f){},this.$getIndent=function(i){return i.match(/^\s*/)[0]},this.createWorker=function(i){return null},this.createModeDelegates=function(i){this.$embeds=[],this.$modes={};for(var s in i)if(i[s]){var f=i[s],b=f.prototype.$id,x=p.$modes[b];x||(p.$modes[b]=x=new f),p.$modes[s]||(p.$modes[s]=x),this.$embeds.push(s),this.$modes[s]=x}for(var N=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],M=function(L){(function(D){var I=N[L],E=D[I];D[N[L]]=function(){return this.$delegator(I,arguments,E)}})(_)},_=this,s=0;s<N.length;s++)M(s)},this.$delegator=function(i,s,f){var b=s[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],N=this.$modes[x];if(N)return N[i].apply(N,[b[1]].concat([].slice.call(s,1)))}b=b[0]||"start"}for(var M=0;M<this.$embeds.length;M++)if(this.$modes[this.$embeds[M]]){var _=b.split(this.$embeds[M]);if(!_[0]&&_[1]){s[0]=_[1];var N=this.$modes[this.$embeds[M]];return N[i].apply(N,s)}}var C=f.apply(this,s);return f?C:void 0},this.transformAction=function(i,s,f,b,x){if(this.$behaviour){var N=this.$behaviour.getBehaviours();for(var M in N)if(N[M][s]){var _=N[M][s].apply(this,arguments);if(_)return _}}},this.getKeywords=function(i){if(!this.completionKeywords){var s=this.$tokenizer.rules,f=[];for(var b in s)for(var x=s[b],N=0,M=x.length;N<M;N++)if(typeof x[N].token=="string")/keyword|support|storage/.test(x[N].token)&&f.push(x[N].regex);else if(typeof x[N].token=="object"){for(var _=0,C=x[N].token.length;_<C;_++)if(/keyword|support|storage/.test(x[N].token[_])){var b=x[N].regex.match(/\(.+?\)/g)[_];f.push(b.substr(1,b.length-2))}}this.completionKeywords=f}return i?f.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(i,s,f,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(N){return{name:N,value:N,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),r.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("./lib/dom"),g=(function(){function w(h){this.session=h,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return w.prototype.getRowLength=function(h){var d;return this.lineWidgets?d=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:d=0,!this.$useWrapMode||!this.$wrapData[h]?1+d:this.$wrapData[h].length+1+d},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(d){d&&d.rowCount&&!d.hidden&&(h+=d.rowCount)}),h},w.prototype.$onChangeEditor=function(h){this.attach(h.editor)},w.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(h){var d=this.editor;if(d){this.editor=null,d.widgetManager=null,d.renderer.off("beforeRender",this.measureWidgets),d.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},w.prototype.updateOnFold=function(h,d){var a=d.lineWidgets;if(!(!a||!h.action)){for(var l=h.data,u=l.start.row,c=l.end.row,i=h.action=="add",s=u+1;s<c;s++)a[s]&&(a[s].hidden=i);a[c]&&(i?a[u]?a[c].hidden=i:a[u]=a[c]:(a[u]==a[c]&&(a[u]=void 0),a[c].hidden=i))}},w.prototype.updateOnChange=function(h){var d=this.session.lineWidgets;if(d){var a=h.start.row,l=h.end.row-a;if(l!==0)if(h.action=="remove"){var u=d.splice(a+1,l);!d[a]&&u[u.length-1]&&(d[a]=u.pop()),u.forEach(function(i){i&&this.removeLineWidget(i)},this),this.$updateRows()}else{var c=new Array(l);d[a]&&d[a].column!=null&&h.start.column>d[a].column&&a++,c.unshift(a,0),d.splice.apply(d,c),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var d=!0;h.forEach(function(a,l){if(a)for(d=!1,a.row=l;a.$oldWidget;)a.$oldWidget.row=l,a=a.$oldWidget}),d&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var d=this.session.lineWidgets[h.row];return d&&(h.$oldWidget=d,d.el&&d.el.parentNode&&(d.el.parentNode.removeChild(d.el),d._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},w.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var d=this.editor.renderer;h.html&&!h.el&&(h.el=p.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=p.createElement("div"),h.el.textContent=h.text),h.el&&(p.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&p.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",d.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/d.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var l=this.session.lineWidgets;h.row==a.end.row&&!l[a.start.row]?l[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,d),this.onWidgetChanged(h),h},w.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var d=this.session.lineWidgets[h.row];if(d==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;d;){if(d.$oldWidget==h){d.$oldWidget=h.$oldWidget;break}d=d.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var d=this.session.lineWidgets,a=d&&d[h],l=[];a;)l.push(a),a=a.$oldWidget;return l},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,d){var a=this.session._changedWidgets,l=d.layerConfig;if(!(!a||!a.length)){for(var u=1/0,c=0;c<a.length;c++){var i=a[c];if(!(!i||!i.el)&&i.session==this.session){if(!i._inDocument){if(this.session.lineWidgets[i.row]!=i)continue;i._inDocument=!0,d.container.appendChild(i.el)}i.h=i.el.offsetHeight,i.fixedWidth||(i.w=i.el.offsetWidth,i.screenWidth=Math.ceil(i.w/l.characterWidth));var s=i.h/l.lineHeight;i.coverLine&&(s-=this.session.getRowLineCount(i.row),s<0&&(s=0)),i.rowCount!=s&&(i.rowCount=s,i.row<u&&(u=i.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(h,d){var a=d.layerConfig,l=this.session.lineWidgets;if(l){for(var u=Math.min(this.firstRow,a.firstRow),c=Math.max(this.lastRow,a.lastRow,l.length);u>0&&!l[u];)u--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,d.$cursorLayer.config=a;for(var i=u;i<=c;i++){var s=l[i];if(!(!s||!s.el)){if(s.hidden){s.el.style.top=-100-(s.pixelHeight||0)+"px";continue}s._inDocument||(s._inDocument=!0,d.container.appendChild(s.el));var f=d.$cursorLayer.getPixelPosition({row:i,column:0},!0).top;s.coverLine||(f+=a.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=f-a.offset+"px";var b=s.coverGutter?0:d.gutterWidth;s.fixedWidth||(b-=d.scrollLeft),s.el.style.left=b+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=a.width+2*a.padding+"px"),s.fixedWidth?s.el.style.right=d.scrollBar.getWidth()+"px":s.el.style.right=""}}}},w})();r.LineWidgets=g}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,v){r.applyDelta=function(p,g,w){var h=g.start.row,d=g.start.column,a=p[h]||"";switch(g.action){case"insert":var l=g.lines;if(l.length===1)p[h]=a.substring(0,d)+g.lines[0]+a.substring(d);else{var u=[h,1].concat(g.lines);p.splice.apply(p,u),p[h]=a.substring(0,d)+p[h],p[h+g.lines.length-1]+=a.substring(d)}break;case"remove":var c=g.end.column,i=g.end.row;h===i?p[h]=a.substring(0,d)+a.substring(c):p.splice(h,i-h+1,a.substring(0,d)+p[i].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/event_emitter").EventEmitter,w=(function(){function a(l,u,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,c)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var u=d(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},a.prototype.setPosition=function(l,u,c){var i;if(c?i={row:l,column:u}:i=this.$clipPositionToDocument(l,u),!(this.row==i.row&&this.column==i.column)){var s={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:s,value:i})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(l,u){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,u))),u<0&&(c.column=0),c},a})();w.prototype.$insertRight=!1,p.implement(w.prototype,g);function h(a,l,u){var c=u?a.column<=l.column:a.column<l.column;return a.row<l.row||a.row==l.row&&c}function d(a,l,u){var c=a.action=="insert",i=(c?1:-1)*(a.end.row-a.start.row),s=(c?1:-1)*(a.end.column-a.start.column),f=a.start,b=c?f:a.end;return h(l,f,u)?{row:l.row,column:l.column}:h(b,l,!u)?{row:l.row+i,column:l.column+(l.row==b.row?s:0)}:{row:f.row,column:f.column}}r.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,r,v){var p=e("./lib/oop"),g=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=e("./anchor").Anchor,a=(function(){function l(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return l.prototype.setValue=function(u){var c=this.getLength()-1;this.remove(new h(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},u||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(u,c){return new d(this,u,c)},l.prototype.$detectNewLine=function(u){var c=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
|
180
|
+
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
181
|
+
`;case"unix":return`
|
|
182
|
+
`;default:return this.$autoNewLine||`
|
|
183
|
+
`}},l.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(u){return u==`\r
|
|
184
|
+
`||u=="\r"||u==`
|
|
185
|
+
`},l.prototype.getLine=function(u){return this.$lines[u]||""},l.prototype.getLines=function(u,c){return this.$lines.slice(u,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(u){var c;if(u.start.row===u.end.row)c=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{c=this.getLines(u.start.row,u.end.row),c[0]=(c[0]||"").substring(u.start.column);var i=c.length-1;u.end.row-u.start.row==i&&(c[i]=c[i].substring(0,u.end.column))}return c},l.prototype.insertLines=function(u,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,c)},l.prototype.removeLines=function(u,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,c)},l.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},l.prototype.insert=function(u,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(u,this.$split(c))},l.prototype.insertInLine=function(u,c){var i=this.clippedPos(u.row,u.column),s=this.pos(u.row,u.column+c.length);return this.applyDelta({start:i,end:s,action:"insert",lines:[c]},!0),this.clonePos(s)},l.prototype.clippedPos=function(u,c){var i=this.getLength();u===void 0?u=i:u<0?u=0:u>=i&&(u=i-1,c=void 0);var s=this.getLine(u);return c==null&&(c=s.length),c=Math.min(Math.max(c,0),s.length),{row:u,column:c}},l.prototype.clonePos=function(u){return{row:u.row,column:u.column}},l.prototype.pos=function(u,c){return{row:u,column:c}},l.prototype.$clipPosition=function(u){var c=this.getLength();return u.row>=c?(u.row=Math.max(0,c-1),u.column=this.getLine(c-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},l.prototype.insertFullLines=function(u,c){u=Math.min(Math.max(u,0),this.getLength());var i=0;u<this.getLength()?(c=c.concat([""]),i=0):(c=[""].concat(c),u--,i=this.$lines[u].length),this.insertMergedLines({row:u,column:i},c)},l.prototype.insertMergedLines=function(u,c){var i=this.clippedPos(u.row,u.column),s={row:i.row+c.length-1,column:(c.length==1?i.column:0)+c[c.length-1].length};return this.applyDelta({start:i,end:s,action:"insert",lines:c}),this.clonePos(s)},l.prototype.remove=function(u){var c=this.clippedPos(u.start.row,u.start.column),i=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:c,end:i,action:"remove",lines:this.getLinesForRange({start:c,end:i})}),this.clonePos(c)},l.prototype.removeInLine=function(u,c,i){var s=this.clippedPos(u,c),f=this.clippedPos(u,i);return this.applyDelta({start:s,end:f,action:"remove",lines:this.getLinesForRange({start:s,end:f})},!0),this.clonePos(s)},l.prototype.removeFullLines=function(u,c){u=Math.min(Math.max(0,u),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var i=c==this.getLength()-1&&u>0,s=c<this.getLength()-1,f=i?u-1:u,b=i?this.getLine(f).length:0,x=s?c+1:c,N=s?0:this.getLine(x).length,M=new h(f,b,x,N),_=this.$lines.slice(u,c+1);return this.applyDelta({start:M.start,end:M.end,action:"remove",lines:this.getLinesForRange(M)}),_},l.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(u,c){if(u instanceof h||(u=h.fromPoints(u.start,u.end)),c.length===0&&u.isEmpty())return u.start;if(c==this.getTextRange(u))return u.end;this.remove(u);var i;return c?i=this.insert(u.start,c):i=u.start,i},l.prototype.applyDeltas=function(u){for(var c=0;c<u.length;c++)this.applyDelta(u[c])},l.prototype.revertDeltas=function(u){for(var c=u.length-1;c>=0;c--)this.revertDelta(u[c])},l.prototype.applyDelta=function(u,c){var i=u.action=="insert";(i?u.lines.length<=1&&!u.lines[0]:!h.comparePoints(u.start,u.end))||(i&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(g(this.$lines,u,c),this._signal("change",u)))},l.prototype.$safeApplyDelta=function(u){var c=this.$lines.length;(u.action=="remove"&&u.start.row<c&&u.end.row<c||u.action=="insert"&&u.start.row<=c)&&this.applyDelta(u)},l.prototype.$splitAndapplyLargeDelta=function(u,c){for(var i=u.lines,s=i.length-c+1,f=u.start.row,b=u.start.column,x=0,N=0;x<s;x=N){N+=c-1;var M=i.slice(x,N);M.push(""),this.applyDelta({start:this.pos(f+x,b),end:this.pos(f+N,b=0),action:u.action,lines:M},!0)}u.lines=i.slice(x),u.start.row=f+x,u.start.column=b,this.applyDelta(u,!0)},l.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},l.prototype.indexToPosition=function(u,c){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=c||0,b=i.length;f<b;f++)if(u-=i[f].length+s,u<0)return{row:f,column:u+i[f].length+s};return{row:b-1,column:u+i[b-1].length+s}},l.prototype.positionToIndex=function(u,c){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=0,b=Math.min(u.row,i.length),x=c||0;x<b;++x)f+=i[x].length+s;return f+u.column},l.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},l})();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",p.implement(a.prototype,w),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/event_emitter").EventEmitter,w=(function(){function h(d,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=d;var l=this;this.$worker=function(){if(l.running){for(var u=new Date,c=l.currentLine,i=-1,s=l.doc,f=c;l.lines[c];)c++;var b=s.getLength(),x=0;for(l.running=!1;c<b;){l.$tokenizeRow(c),i=c;do c++;while(l.lines[c]);if(x++,x%5===0&&new Date-u>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,i==-1&&(i=c),f<=i&&l.fireUpdateEvent(f,i)}}}return h.prototype.setTokenizer=function(d){this.tokenizer=d,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(d){this.doc=d,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(d,a){var l={first:d,last:a};this._signal("update",{data:l})},h.prototype.start=function(d){this.currentLine=Math.min(d||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(d){var a=d.start.row,l=d.end.row-a;if(l===0)this.lines[a]=null;else if(d.action=="remove")this.lines.splice(a,l+1,null),this.states.splice(a,l+1,null);else{var u=Array(l+1);u.unshift(a,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(d){return this.lines[d]||this.$tokenizeRow(d)},h.prototype.getState=function(d){return this.currentLine==d&&this.$tokenizeRow(d),this.states[d]||"start"},h.prototype.$tokenizeRow=function(d){var a=this.doc.getLine(d),l=this.states[d-1],u=this.tokenizer.getLineTokens(a,l,d);return this.states[d]+""!=u.state+""?(this.states[d]=u.state,this.lines[d+1]=null,this.currentLine>d+1&&(this.currentLine=d+1)):this.currentLine==d&&(this.currentLine=d+1),this.lines[d]=u.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h})();p.implement(w.prototype,g),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,v){var p=e("./lib/lang"),g=e("./range").Range,w=(function(){function h(d,a,l){l===void 0&&(l="text"),this.setRegexp(d),this.clazz=a,this.type=l,this.docLen=0}return h.prototype.setRegexp=function(d){this.regExp+""!=d+""&&(this.regExp=d,this.cache=[])},h.prototype.update=function(d,a,l,u){if(this.regExp){for(var c=u.firstRow,i=u.lastRow,s={},f=l.$editor&&l.$editor.$search,b=f&&f.$isMultilineSearch(l.$editor.getLastSearchOptions()),x=c;x<=i;x++){var N=this.cache[x];if(N==null||l.getValue().length!=this.docLen){if(b){N=[];var M=f.$multiLineForward(l,this.regExp,x,i);if(M){var _=M.endRow<=i?M.endRow-1:i;_>x&&(x=_),N.push(new g(M.startRow,M.startCol,M.endRow,M.endCol))}N.length>this.MAX_RANGES&&(N=N.slice(0,this.MAX_RANGES))}else N=p.getMatchOffsets(l.getLine(x),this.regExp),N.length>this.MAX_RANGES&&(N=N.slice(0,this.MAX_RANGES)),N=N.map(function(I){return new g(x,I.offset,x,I.offset+I.length)});this.cache[x]=N.length?N:""}if(N.length!==0)for(var C=N.length;C--;){var L=N[C].toScreenRange(l),D=L.toString();s[D]||(s[D]=!0,a.drawSingleLineMarker(d,L,this.clazz,u))}}this.docLen=l.getValue().length}},h})();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,v){var p=(function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(C){this.$session=C},_.prototype.add=function(C,L,D){if(!this.$fromUndo&&C!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),L===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),C.id=this.$rev=++this.$maxRev}(C.action=="remove"||C.action=="insert")&&(this.$lastDelta=C),this.lastDeltas.push(C)}},_.prototype.addSelection=function(C,L){this.selections.push({value:C,rev:L||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(C,L){L==null&&(L=this.$rev+1);for(var D=this.$undoStack,I=D.length;I--;){var E=D[I][0];if(E.id<=C)break;E.id<L&&(E.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(C,L){for(var D=this.selections,I=D.length;I--;){var E=D[I];if(E.rev<C)return L&&(E=D[I+1]),E}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(C,L){L==null&&(L=this.$rev+1);for(var D=this.$undoStack,I=null,E=0,z=D.length;z--;){var P=D[z][0];if(P.id<L&&!I&&(I=z+1),P.id<=C){E=z+1;break}}return D.slice(E,I)},_.prototype.getChangedRanges=function(C,L){L==null&&(L=this.$rev+1)},_.prototype.getChangedLines=function(C,L){L==null&&(L=this.$rev+1)},_.prototype.undo=function(C,L){this.lastDeltas=null;var D=this.$undoStack;if(g(D,D.length)){C||(C=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=D.pop(),E=null;return I&&(E=C.undoChanges(I,L),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E}},_.prototype.redo=function(C,L){if(this.lastDeltas=null,C||(C=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var D=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);M(this.$redoStack,D),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(z){z[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),E=null;return I&&(E=C.redoChanges(I,L),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E},_.prototype.$syncRev=function(){var C=this.$undoStack,L=C[C.length-1],D=L&&L[0].id||0;this.$redoStackBaseRev=D,this.$rev=D},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(C){C==null&&(C=this.$rev),this.mark=C},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(C){this.reset(),this.$undoStack=C.$undoStack,this.$redoStack=C.$redoStack},_.prototype.$prettyPrint=function(C){return C?l(C):l(this.$undoStack)+`
|
|
186
|
+
---
|
|
187
|
+
`+l(this.$redoStack)},_})();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function g(_,C){for(var L=C;L--;){var D=_[L];if(D&&!D[0].ignore){for(;L<C-1;){var I=i(_[L],_[L+1]);_[L]=I[0],_[L+1]=I[1],L++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function d(_){return{row:_.row,column:_.column}}function a(_){return{start:d(_.start),end:d(_.end),action:_.action,lines:_.lines.slice()}}function l(_){if(_=_||this,Array.isArray(_))return _.map(l).join(`
|
|
188
|
+
`);var C="";return _.action?(C=_.action=="insert"?"+":"-",C+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?C=_.value.map(u).join(`
|
|
189
|
+
`):C=u(_.value)),_.start&&(C+=u(_)),(_.id||_.rev)&&(C+=" ("+(_.id||_.rev)+")"),C}function u(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function c(_,C){var L=_.action=="insert",D=C.action=="insert";if(L&&D)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.start,_.start)<=0)f(_,C,1);else return null;else if(L&&!D)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.end,_.start)<=0)f(_,C,-1);else return null;else if(!L&&D)if(h(C.start,_.start)>=0)f(C,_,1);else if(h(C.start,_.start)<=0)f(_,C,1);else return null;else if(!L&&!D)if(h(C.start,_.start)>=0)f(C,_,1);else if(h(C.end,_.start)<=0)f(_,C,-1);else return null;return[C,_]}function i(_,C){for(var L=_.length;L--;)for(var D=0;D<C.length;D++)if(!c(_[L],C[D])){for(;L<_.length;){for(;D--;)c(C[D],_[L]);D=C.length,L++}return[_,C]}return _.selectionBefore=C.selectionBefore=_.selectionAfter=C.selectionAfter=null,[C,_]}function s(_,C){var L=_.action=="insert",D=C.action=="insert";if(L&&D)h(_.start,C.start)<0?f(C,_,1):f(_,C,1);else if(L&&!D)h(_.start,C.end)>=0?f(_,C,-1):(h(_.start,C.start)<=0||f(_,w.fromPoints(C.start,_.start),-1),f(C,_,1));else if(!L&&D)h(C.start,_.end)>=0?f(C,_,-1):(h(C.start,_.start)<=0||f(C,w.fromPoints(_.start,C.start),-1),f(_,C,1));else if(!L&&!D)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.end,_.start)<=0)f(_,C,-1);else{var I,E;return h(_.start,C.start)<0&&(I=_,_=x(_,C.start)),h(_.end,C.end)>0&&(E=x(_,C.end)),b(C.end,_.start,_.end,-1),E&&!I&&(_.lines=E.lines,_.start=E.start,_.end=E.end,E=_),[C,I,E].filter(Boolean)}return[C,_]}function f(_,C,L){b(_.start,C.start,C.end,L),b(_.end,C.start,C.end,L)}function b(_,C,L,D){_.row==(D==1?C:L).row&&(_.column+=D*(L.column-C.column)),_.row+=D*(L.row-C.row)}function x(_,C){var L=_.lines,D=_.end;_.end=d(C);var I=_.end.row-_.start.row,E=L.splice(I,L.length),z=I?C.column:C.column-_.start.column;L.push(E[0].substring(0,z)),E[0]=E[0].substr(z);var P={start:d(C),end:D,lines:E,action:_.action};return P}function N(_,C){C=a(C);for(var L=_.length;L--;){for(var D=_[L],I=0;I<D.length;I++){var E=D[I],z=s(E,C);C=z[0],z.length!=2&&(z[2]?(D.splice(I+1,1,z[1],z[2]),I++):z[1]||(D.splice(I,1),I--))}D.length||_.splice(L,1)}return _}function M(_,C){for(var L=0;L<C.length;L++)for(var D=C[L],I=0;I<D.length;I++)N(_,D[I])}r.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=(function(){function w(h,d){this.foldData=h,Array.isArray(d)?this.folds=d:d=this.folds=[d];var a=d[d.length-1];this.range=new p(d[0].start.row,d[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(d){d.start.row+=h,d.end.row+=h})},w.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(d,a){return-d.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},w.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},w.prototype.walk=function(h,d,a){var l=0,u=this.folds,c,i,s,f=!0;d==null&&(d=this.end.row,a=this.end.column);for(var b=0;b<u.length;b++){if(c=u[b],i=c.range.compareStart(d,a),i==-1){h(null,d,a,l,f);return}if(s=h(null,c.start.row,c.start.column,l,f),s=!s&&h(c.placeholder,c.start.row,c.start.column,l),s||i===0)return;f=!c.sameRow,l=c.end.column}h(null,d,a,l,f)},w.prototype.getNextFoldTo=function(h,d){for(var a,l,u=0;u<this.folds.length;u++){if(a=this.folds[u],l=a.range.compareEnd(h,d),l==-1)return{fold:a,kind:"after"};if(l===0)return{fold:a,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,d,a){var l=this.getNextFoldTo(h,d),u,c;if(l){if(u=l.fold,l.kind=="inside"&&u.start.column!=d&&u.start.row!=h)window.console&&window.console.log(h,d,u);else if(u.start.row==h){c=this.folds;var i=c.indexOf(u);for(i===0&&(this.start.column+=a),i;i<c.length;i++){if(u=c[i],u.start.column+=a,!u.sameRow)return;u.end.column+=a}this.end.column+=a}}},w.prototype.split=function(h,d){var a=this.getNextFoldTo(h,d);if(!a||a.kind=="inside")return null;var l=a.fold,u=this.folds,c=this.foldData,i=u.indexOf(l),s=u[i-1];this.end.row=s.end.row,this.end.column=s.end.column,u=u.splice(i,u.length-i);var f=new w(c,u);return c.splice(c.indexOf(this)+1,0,f),f},w.prototype.merge=function(h){for(var d=h.folds,a=0;a<d.length;a++)this.addFold(d[a]);var l=this.foldData;l.splice(l.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(d){h.push(" "+d.toString())}),h.push("]"),h.join(`
|
|
190
|
+
`)},w.prototype.idxToPosition=function(h){for(var d=0,a=0;a<this.folds.length;a++){var l=this.folds[a];if(h-=l.start.column-d,h<0)return{row:l.start.row,column:l.start.column+h};if(h-=l.placeholder.length,h<0)return l.start;d=l.end.column}return{row:this.end.row,column:this.end.column+h}},w})();r.FoldLine=g}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,v){var p=e("./range").Range,g=p.comparePoints,w=(function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(d,a,l){for(var u=this.ranges,c=l||0;c<u.length;c++){var i=u[c],s=g(d,i.end);if(!(s>0)){var f=g(d,i.start);return s===0?a&&f!==0?-c-2:c:f>0||f===0&&!a?c:-c-1}}return-c-1},h.prototype.add=function(d){var a=!d.isEmpty(),l=this.pointIndex(d.start,a);l<0&&(l=-l-1);var u=this.pointIndex(d.end,a,l);return u<0?u=-u-1:u++,this.ranges.splice(l,u-l,d)},h.prototype.addList=function(d){for(var a=[],l=d.length;l--;)a.push.apply(a,this.add(d[l]));return a},h.prototype.substractPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var d=[],a=this.ranges;a=a.sort(function(s,f){return g(s.start,f.start)});for(var l=a[0],u,c=1;c<a.length;c++){u=l,l=a[c];var i=g(u.end,l.start);i<0||i==0&&!u.isEmpty()&&!l.isEmpty()||(g(u.end,l.end)<0&&(u.end.row=l.end.row,u.end.column=l.end.column),a.splice(c,1),d.push(l),l=u,c--)}return this.ranges=a,d},h.prototype.contains=function(d,a){return this.pointIndex({row:d,column:a})>=0},h.prototype.containsPoint=function(d){return this.pointIndex(d)>=0},h.prototype.rangeAtPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(d,a){var l=this.ranges;if(l[0].start.row>a||l[l.length-1].start.row<d)return[];var u=this.pointIndex({row:d,column:0});u<0&&(u=-u-1);var c=this.pointIndex({row:a,column:0},u);c<0&&(c=-c-1);for(var i=[],s=u;s<c;s++)i.push(l[s]);return i},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(d){this.session&&this.detach(),this.session=d,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(d){for(var a=d.start,l=d.end,u=a.row,c=l.row,i=this.ranges,s=0,f=i.length;s<f;s++){var b=i[s];if(b.end.row>=u)break}if(d.action=="insert")for(var x=c-u,N=-a.column+l.column;s<f;s++){var b=i[s];if(b.start.row>u)break;if(b.start.row==u&&b.start.column>=a.column&&(b.start.column==a.column&&this.$bias<=0||(b.start.column+=N,b.start.row+=x)),b.end.row==u&&b.end.column>=a.column){if(b.end.column==a.column&&this.$bias<0)continue;b.end.column==a.column&&N>0&&s<f-1&&b.end.column>b.start.column&&b.end.column==i[s+1].start.column&&(b.end.column-=N),b.end.column+=N,b.end.row+=x}}else for(var x=u-c,N=a.column-l.column;s<f;s++){var b=i[s];if(b.start.row>c)break;b.end.row<c&&(u<b.end.row||u==b.end.row&&a.column<b.end.column)?(b.end.row=u,b.end.column=a.column):b.end.row==c?b.end.column<=l.column?(x||b.end.column>a.column)&&(b.end.column=a.column,b.end.row=a.row):(b.end.column+=N,b.end.row+=x):b.end.row>c&&(b.end.row+=x),b.start.row<c&&(u<b.start.row||u==b.start.row&&a.column<b.start.column)?(b.start.row=u,b.start.column=a.column):b.start.row==c?b.start.column<=l.column?(x||b.start.column>a.column)&&(b.start.column=a.column,b.start.row=a.row):(b.start.column+=N,b.start.row+=x):b.start.row>c&&(b.start.row+=x)}if(x!=0&&s<f)for(;s<f;s++){var b=i[s];b.start.row+=x,b.end.row+=x}},h})();w.prototype.comparePoints=g,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,v){var p=this&&this.__extends||(function(){var u=function(c,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},u(c,i)};return function(c,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");u(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),g=e("../range_list").RangeList,w=(function(u){p(c,u);function c(i,s){var f=u.call(this)||this;return f.foldLine=null,f.placeholder=s,f.range=i,f.start=i.start,f.end=i.end,f.sameRow=i.start.row==i.end.row,f.subFolds=f.ranges=[],f}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(i){this.foldLine=i,this.subFolds.forEach(function(s){s.setFoldLine(i)})},c.prototype.clone=function(){var i=this.range.clone(),s=new c(i,this.placeholder);return this.subFolds.forEach(function(f){s.subFolds.push(f.clone())}),s.collapseChildren=this.collapseChildren,s},c.prototype.addSubFold=function(i){if(!this.range.isEqual(i)){d(i,this.start);for(var s=i.start.row,f=i.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(s,f),x==1);b++);var N=this.subFolds[b],M=0;if(x==0){if(N.range.containsRange(i))return N.addSubFold(i);M=1}for(var s=i.range.end.row,f=i.range.end.column,_=b,x=-1;_<this.subFolds.length&&(x=this.subFolds[_].range.compare(s,f),x==1);_++);x==0&&_++;for(var C=this.subFolds.splice(b,_-b,i),L=x==0?C.length-1:C.length,D=M;D<L;D++)i.addSubFold(C[D]);return i.setFoldLine(this.foldLine),i}},c.prototype.restoreRange=function(i){return l(i,this.start)},c})(g);function h(u,c){u.row-=c.row,u.row==0&&(u.column-=c.column)}function d(u,c){h(u.start,c),h(u.end,c)}function a(u,c){u.row==0&&(u.column+=c.column),u.row+=c.row}function l(u,c){a(u.start,c),a(u.end,c)}r.Fold=w}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,r,v){var p=e("../range").Range,g=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,d=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(l,u,c){var i=this.getFoldLine(l);if(!i)return null;for(var s=i.folds,f=0;f<s.length;f++){var b=s[f].range;if(b.contains(l,u)){if(c==1&&b.isEnd(l,u)&&!b.isEmpty()||c==-1&&b.isStart(l,u)&&!b.isEmpty())continue;return s[f]}}},this.getFoldsInRange=function(l){var u=l.start,c=l.end,i=this.$foldData,s=[];u.column+=1,c.column-=1;for(var f=0;f<i.length;f++){var b=i[f].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=i[f].folds,N=0;N<x.length;N++){var M=x[N];if(b=M.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;s.push(M)}}}}return u.column-=1,c.column+=1,s},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var u=[];l.forEach(function(i){u=u.concat(this.getFoldsInRange(i))},this)}else var u=this.getFoldsInRange(l);return u},this.getAllFolds=function(){for(var l=[],u=this.$foldData,c=0;c<u.length;c++)for(var i=0;i<u[c].folds.length;i++)l.push(u[c].folds[i]);return l},this.getFoldStringAt=function(l,u,c,i){if(i=i||this.getFoldLine(l),!i)return null;for(var s={end:{column:0}},f,b,x=0;x<i.folds.length;x++){b=i.folds[x];var N=b.range.compareEnd(l,u);if(N==-1){f=this.getLine(b.start.row).substring(s.end.column,b.start.column);break}else if(N===0)return null;s=b}return f||(f=this.getLine(b.start.row).substring(s.end.column)),c==-1?f.substring(0,u-s.end.column):c==1?f.substring(u-s.end.column):f},this.getFoldLine=function(l,u){var c=this.$foldData,i=0;for(u&&(i=c.indexOf(u)),i==-1&&(i=0),i;i<c.length;i++){var s=c[i];if(s.start.row<=l&&s.end.row>=l)return s;if(s.end.row>l)return null}return null},this.getNextFoldLine=function(l,u){var c=this.$foldData,i=0;for(u&&(i=c.indexOf(u)),i==-1&&(i=0),i;i<c.length;i++){var s=c[i];if(s.end.row>=l)return s}return null},this.getFoldedRowCount=function(l,u){for(var c=this.$foldData,i=u-l+1,s=0;s<c.length;s++){var f=c[s],b=f.end.row,x=f.start.row;if(b>=u){x<u&&(x>=l?i-=u-x:i=0);break}else b>=l&&(x>=l?i-=b-x:i-=b-l+1)}return i},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(u,c){return u.start.row-c.start.row}),l},this.addFold=function(l,u){var c=this.$foldData,i=!1,s;l instanceof w?s=l:(s=new w(u,l),s.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(s.range);var f=s.start.row,b=s.start.column,x=s.end.row,N=s.end.column,M=this.getFoldAt(f,b,1),_=this.getFoldAt(x,N,-1);if(M&&_==M)return M.addSubFold(s);M&&!M.range.isStart(f,b)&&this.removeFold(M),_&&!_.range.isEnd(x,N)&&this.removeFold(_);var C=this.getFoldsInRange(s.range);C.length>0&&(this.removeFolds(C),s.collapseChildren||C.forEach(function(E){s.addSubFold(E)}));for(var L=0;L<c.length;L++){var D=c[L];if(x==D.start.row){D.addFold(s),i=!0;break}else if(f==D.end.row){if(D.addFold(s),i=!0,!s.sameRow){var I=c[L+1];if(I&&I.start.row==x){D.merge(I);break}}break}else if(x<=D.start.row)break}return i||(D=this.$addFoldLine(new g(this.$foldData,s))),this.$useWrapMode?this.$updateWrapData(D.start.row,D.start.row):this.$updateRowLengthCache(D.start.row,D.start.row),this.$modified=!0,this._signal("changeFold",{data:s,action:"add"}),s},this.addFolds=function(l){l.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(l){var u=l.foldLine,c=u.start.row,i=u.end.row,s=this.$foldData,f=u.folds;if(f.length==1)s.splice(s.indexOf(u),1);else if(u.range.isEnd(l.end.row,l.end.column))f.pop(),u.end.row=f[f.length-1].end.row,u.end.column=f[f.length-1].end.column;else if(u.range.isStart(l.start.row,l.start.column))f.shift(),u.start.row=f[0].start.row,u.start.column=f[0].start.column;else if(l.sameRow)f.splice(f.indexOf(l),1);else{var b=u.split(l.start.row,l.start.column);f=b.folds,f.shift(),b.start.row=f[0].start.row,b.start.column=f[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,i):this.$updateRowLengthCache(c,i)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var u=[],c=0;c<l.length;c++)u.push(l[c]);u.forEach(function(i){this.removeFold(i)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(u){l.restoreRange(u),this.addFold(u)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(l,u){var c,i;if(l==null)c=new p(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof l=="number")c=new p(l,0,l,this.getLine(l).length);else if("row"in l)c=p.fromPoints(l,l);else{if(Array.isArray(l))return i=[],l.forEach(function(f){i=i.concat(this.unfold(f))},this),i;c=l}i=this.getFoldsInRangeList(c);for(var s=i;i.length==1&&p.comparePoints(i[0].start,c.start)<0&&p.comparePoints(i[0].end,c.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(c);if(u!=!1?this.removeFolds(i):this.expandFolds(i),s.length)return s},this.isRowFolded=function(l,u){return!!this.getFoldLine(l,u)},this.getRowFoldEnd=function(l,u){var c=this.getFoldLine(l,u);return c?c.end.row:l},this.getRowFoldStart=function(l,u){var c=this.getFoldLine(l,u);return c?c.start.row:l},this.getFoldDisplayLine=function(l,u,c,i,s){i==null&&(i=l.start.row),s==null&&(s=0),u==null&&(u=l.end.row),c==null&&(c=this.getLine(u).length);var f=this.doc,b="";return l.walk(function(x,N,M,_){if(!(N<i)){if(N==i){if(M<s)return;_=Math.max(s,_)}x!=null?b+=x:b+=f.getLine(N).substring(_,M)}},u,c),b},this.getDisplayLine=function(l,u,c,i){var s=this.getFoldLine(l);if(s)return this.getFoldDisplayLine(s,l,u,c,i);var f;return f=this.doc.getLine(l),f.substring(i||0,u||f.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(u){var c=u.folds.map(function(i){return i.clone()});return new g(l,c)}),l},this.toggleFold=function(l){var u=this.selection,c=u.getRange(),i,s;if(c.isEmpty()){var f=c.start;if(i=this.getFoldAt(f.row,f.column),i){this.expandFold(i);return}else if(l){var b=this.getFoldLine(f.row);b&&this.expandFolds(b.folds);return}else(s=this.findMatchingBracket(f))?c.comparePoint(s)==1?c.end=s:(c.start=s,c.start.column++,c.end.column--):(s=this.findMatchingBracket({row:f.row,column:f.column+1}))?(c.comparePoint(s)==1?c.end=s:c.start=s,c.start.column++):c=this.getCommentFoldRange(f.row,f.column)||c}else{var x=this.getFoldsInRange(c);if(l&&x.length){this.expandFolds(x);return}else x.length==1&&(i=x[0])}if(i||(i=this.getFoldAt(c.start.row,c.start.column)),i&&i.range.toString()==c.toString()){this.expandFold(i);return}var N="...";if(!c.isMultiLine()){if(N=this.getTextRange(c),N.length<4)return;N=N.trim().substring(0,2)+".."}this.addFold(N,c)},this.getCommentFoldRange=function(l,u,c){var i=new h(this,l,u),s=i.getCurrentToken(),f=s&&s.type;if(s&&/^comment|string/.test(f)){f=f.match(/comment|string/)[0],f=="comment"&&(f+="|doc-start|\\.doc");var b=new RegExp(f),x=new p;if(c!=1){do s=i.stepBackward();while(s&&b.test(s.type));s=i.stepForward()}x.start.row=i.getCurrentTokenRow(),x.start.column=i.getCurrentTokenColumn()+s.value.length,i=new h(this,l,u);var N=this.getState(i.$row);if(c!=-1){var M=-1;do if(s=i.stepForward(),M==-1){var _=this.getState(i.$row);N.toString()!==_.toString()&&(M=i.$row)}else if(i.$row>M)break;while(s&&b.test(s.type));s=i.stepBackward()}else s=i.getCurrentToken();return x.end.row=i.getCurrentTokenRow(),x.end.column=i.getCurrentTokenColumn(),x.start.row==x.end.row&&x.start.column>x.end.column?void 0:x}},this.foldAll=function(l,u,c,i){c==null&&(c=1e5);var s=this.foldWidgets;if(s){u=u||this.getLength(),l=l||0;for(var f=l;f<u;f++)if(s[f]==null&&(s[f]=this.getFoldWidget(f)),s[f]=="start"&&!(i&&!i(f))){var b=this.getFoldWidgetRange(f);b&&b.isMultiLine()&&b.end.row<=u&&b.start.row>=l&&(f=b.end.row,b.collapseChildren=c,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(u){for(var c=l.getTokens(u),i=0;i<c.length;i++){var s=c[i];if(!(s.type=="text"&&/^\s+$/.test(s.value)))return!!/comment/.test(s.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(l,u){var c=this.foldWidgets;if(!c||u&&c[l])return{};for(var i=l-1,s;i>=0;){var f=c[i];if(f==null&&(f=c[i]=this.getFoldWidget(i)),f=="start"){var b=this.getFoldWidgetRange(i);if(s||(s=b),b&&b.end.row>=l)break}i--}return{range:i!==-1&&b,firstRange:s}},this.onFoldWidgetClick=function(l,u){u instanceof d&&(u=u.domEvent);var c={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},i=this.$toggleFoldWidget(l,c);if(!i){var s=u.target||u.srcElement;s&&/ace_fold-widget/.test(s.className)&&(s.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,u){if(this.getFoldWidget){var c=this.getFoldWidget(l),i=this.getLine(l),s=c==="end"?-1:1,f=this.getFoldAt(l,s===-1?0:i.length,s);if(f)return u.children||u.all?this.removeFold(f):this.expandFold(f),f;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(f=this.getFoldAt(b.start.row,b.start.column,1),f&&b.isEqual(f.range)))return this.removeFold(f),f;if(u.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var N=x.range.start.row+1,M=x.range.end.row;this.foldAll(N,M,u.all?1e4:0)}else u.children?(M=b?b.end.row:this.getLength(),this.foldAll(l+1,M,u.all?1e4:0)):b&&(u.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var c=this.$toggleFoldWidget(u,{});if(!c){var i=this.getParentFoldRangeData(u,!0);if(c=i.range||i.firstRange,c){u=c.start.row;var s=this.getFoldAt(u,this.getLine(u).length,1);s?this.removeFold(s):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var u=l.start.row,c=l.end.row-u;if(c===0)this.foldWidgets[u]=null;else if(l.action=="remove")this.foldWidgets.splice(u,c+1,null);else{var i=Array(c+1);i.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(l){var u=l.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}r.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,r,v){var p=e("../token_iterator").TokenIterator,g=e("../range").Range;function w(){this.findMatchingBracket=function(h,d){if(h.column==0)return null;var a=d||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var l=a.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h):null},this.getBracketRange=function(h){var d=this.getLine(h.row),a=!0,l,u=d.charAt(h.column-1),c=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(c||(u=d.charAt(h.column),h={row:h.row,column:h.column+1},c=u&&u.match(/([\(\[\{])|([\)\]\}])/),a=!1),!c)return null;if(c[1]){var i=this.$findClosingBracket(c[1],h);if(!i)return null;l=g.fromPoints(h,i),a||(l.end.column++,l.start.column--),l.cursor=l.end}else{var i=this.$findOpeningBracket(c[2],h);if(!i)return null;l=g.fromPoints(i,h),a||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(h,d){var a=this.getLine(h.row),l=/([\(\[\{])|([\)\]\}])/,u=!d&&a.charAt(h.column-1),c=u&&u.match(l);if(c||(u=(d===void 0||d)&&a.charAt(h.column),h={row:h.row,column:h.column+1},c=u&&u.match(l)),!c)return null;var i=new g(h.row,h.column-1,h.row,h.column),s=c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h);if(!s)return[i];var f=new g(s.row,s.column,s.row,s.column+1);return[i,f]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,d,a){var l=this.$brackets[h],u=1,c=new p(this,d.row,d.column),i=c.getCurrentToken();if(i||(i=c.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var s=d.column-c.getCurrentTokenColumn()-2,f=i.value;;){for(;s>=0;){var b=f.charAt(s);if(b==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:s+c.getCurrentTokenColumn()}}else b==h&&(u+=1);s-=1}do i=c.stepBackward();while(i&&!a.test(i.type));if(i==null)break;f=i.value,s=f.length-1}return null}},this.$findClosingBracket=function(h,d,a){var l=this.$brackets[h],u=1,c=new p(this,d.row,d.column),i=c.getCurrentToken();if(i||(i=c.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var s=d.column-c.getCurrentTokenColumn();;){for(var f=i.value,b=f.length;s<b;){var x=f.charAt(s);if(x==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:s+c.getCurrentTokenColumn()}}else x==h&&(u+=1);s+=1}do i=c.stepForward();while(i&&!a.test(i.type));if(i==null)break;s=0}return null}},this.getMatchingTags=function(h){var d=new p(this,h.row,h.column),a=this.$findTagName(d);if(a){var l=d.stepBackward();return l.value==="<"?this.$findClosingTag(d,a):this.$findOpeningTag(d,a)}},this.$findTagName=function(h){var d=h.getCurrentToken(),a=!1,l=!1;if(d&&d.type.indexOf("tag-name")===-1)do l?d=h.stepBackward():d=h.stepForward(),d&&(d.value==="/>"?l=!0:d.type.indexOf("tag-name")!==-1&&(a=!0));while(d&&!a);return d},this.$findClosingTag=function(h,d){var a,l=d.value,u=d.value,c=0,i=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);d=h.stepForward();var s=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length),f=!1;do{if(a=d,a.type.indexOf("tag-close")!==-1&&!f){var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d=h.stepForward(),d){if(d.value===">"&&!f){var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d.type.indexOf("tag-name")!==-1){if(l=d.value,u===l){if(a.value==="<")c++;else if(a.value==="</"&&(c--,c<0)){h.stepBackward();var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);d=h.stepForward();var N=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),d&&d.value===">")var M=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(u===l&&d.value==="/>"&&(c--,c<0))var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),N=x,M=N,b=new g(s.end.row,s.end.column,s.end.row,s.end.column+1)}}while(d&&c>=0);if(i&&b&&x&&M&&s&&N)return{openTag:new g(i.start.row,i.start.column,b.end.row,b.end.column),closeTag:new g(x.start.row,x.start.column,M.end.row,M.end.column),openTagName:s,closeTagName:N}},this.$findOpeningTag=function(h,d){var a=h.getCurrentToken(),l=d.value,u=0,c=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+2,f=new g(c,i,c,s);h.stepForward();var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),!(!d||d.value!==">")){var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(d=a,c=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+d.value.length,a=h.stepBackward(),d){if(d.type.indexOf("tag-name")!==-1){if(l===d.value)if(a.value==="<"){if(u++,u>0){var N=new g(c,i,c,s),M=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do d=h.stepForward();while(d&&d.value!==">");var _=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&u--}else if(d.value==="/>"){for(var C=0,L=a;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===l){u--;break}else if(L.value==="<")break;L=h.stepBackward(),C++}for(var D=0;D<C;D++)h.stepForward()}}while(a&&u<=0);if(M&&_&&f&&x&&N&&b)return{openTag:new g(M.start.row,M.start.column,_.end.row,_.end.column),closeTag:new g(f.start.row,f.start.column,x.end.row,x.end.column),openTagName:N,closeTagName:b}}}}r.BracketMatch=w}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),d=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,c=e("./line_widgets").LineWidgets,i=e("./document").Document,s=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,b=e("./undomanager").UndoManager,x=(function(){function P(O,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++P.$uid,this.$foldData.toString=function(){return this.join(`
|
|
191
|
+
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new s(new l().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(R){k._signal("tokenizerUpdate",R)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof O!="object"||!O.getLine)&&(O=new i(O)),this.setDocument(O),this.selection=new a(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),h.resetOptions(this),this.setMode($),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return P.prototype.$initOperationListeners=function(){var O=this;this.curOp=null,this.on("change",function(){O.curOp||(O.startOperation(),O.curOp.selectionBefore=O.$lastSel),O.curOp.docChanged=!0},!0),this.on("changeSelection",function(){O.curOp||(O.startOperation(),O.curOp.selectionBefore=O.$lastSel),O.curOp.selectionChanged=!0},!0),this.$operationResetTimer=g.delayedCall(this.endOperation.bind(this,!0))},P.prototype.startOperation=function(O){if(this.curOp){if(!O||this.curOp.command)return;this.prevOp=this.curOp}O||(O={}),this.$operationResetTimer.schedule(),this.curOp={command:O.command||{},args:O.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",O)},P.prototype.endOperation=function(O){if(this.curOp){if(O&&O.returnValue===!1){this.curOp=null,this._signal("endOperation",O);return}if(O==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",O)}},P.prototype.setDocument=function(O){this.doc&&this.doc.off("change",this.$onChange),this.doc=O,O.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},P.prototype.getDocument=function(){return this.doc},Object.defineProperty(P.prototype,"widgetManager",{get:function(){var O=new c(this);return this.widgetManager=O,this.$editor&&O.attach(this.$editor),O},set:function(O){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:O})},enumerable:!1,configurable:!0}),P.prototype.$resetRowCache=function(O){if(!O){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,k=this.$getRowCacheIndex(this.$docRowCache,O)+1;$>k&&(this.$docRowCache.splice(k,$),this.$screenRowCache.splice(k,$))},P.prototype.$getRowCacheIndex=function(O,$){for(var k=0,R=O.length-1;k<=R;){var B=k+R>>1,U=O[B];if($>U)k=B+1;else if($<U)R=B-1;else return B}return k-1},P.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},P.prototype.onChangeFold=function(O){var $=O.data;this.$resetRowCache($.start.row)},P.prototype.onChange=function(O){this.$modified=!0,this.$bidiHandler.onChange(O),this.$resetRowCache(O.start.row);var $=this.$updateInternalDataOnChange(O);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(O,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(O),this._signal("change",O)},P.prototype.onSelectionChange=function(){this._signal("changeSelection")},P.prototype.setValue=function(O){this.doc.setValue(O),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},P.fromJSON=function(O){typeof O=="string"&&(O=JSON.parse(O));var $=new b;$.$undoStack=O.history.undo,$.$redoStack=O.history.redo,$.mark=O.history.mark,$.$rev=O.history.rev;var k=new P(O.value);return O.folds.forEach(function(R){k.addFold("...",u.fromPoints(R.start,R.end))}),k.setAnnotations(O.annotations),k.setBreakpoints(O.breakpoints),k.setMode(O.mode),k.setScrollLeft(O.scrollLeft),k.setScrollTop(O.scrollTop),k.setUndoManager($),k.selection.fromJSON(O.selection),k},P.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(O){return O.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},P.prototype.toString=function(){return this.doc.getValue()},P.prototype.getSelection=function(){return this.selection},P.prototype.getState=function(O){return this.bgTokenizer.getState(O)},P.prototype.getTokens=function(O){return this.bgTokenizer.getTokens(O)},P.prototype.getTokenAt=function(O,$){var k=this.bgTokenizer.getTokens(O),R,B=0;if($==null){var U=k.length-1;B=this.getLine(O).length}else for(var U=0;U<k.length&&(B+=k[U].value.length,!(B>=$));U++);return R=k[U],R?(R.index=U,R.start=B-R.value.length,R):null},P.prototype.setUndoManager=function(O){if(this.$undoManager=O,this.$informUndoManager&&this.$informUndoManager.cancel(),O){var $=this;O.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=g.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},P.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},P.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},P.prototype.getTabString=function(){return this.getUseSoftTabs()?g.stringRepeat(" ",this.getTabSize()):" "},P.prototype.setUseSoftTabs=function(O){this.setOption("useSoftTabs",O)},P.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},P.prototype.setTabSize=function(O){this.setOption("tabSize",O)},P.prototype.getTabSize=function(){return this.$tabSize},P.prototype.isTabStop=function(O){return this.$useSoftTabs&&O.column%this.$tabSize===0},P.prototype.setNavigateWithinSoftTabs=function(O){this.setOption("navigateWithinSoftTabs",O)},P.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},P.prototype.setOverwrite=function(O){this.setOption("overwrite",O)},P.prototype.getOverwrite=function(){return this.$overwrite},P.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},P.prototype.addGutterDecoration=function(O,$){this.$decorations[O]||(this.$decorations[O]=""),this.$decorations[O]+=" "+$,this._signal("changeBreakpoint",{})},P.prototype.removeGutterCustomWidget=function(O){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(O)},P.prototype.addGutterCustomWidget=function(O,$){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(O,$)},P.prototype.removeGutterDecoration=function(O,$){this.$decorations[O]=(this.$decorations[O]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},P.prototype.getBreakpoints=function(){return this.$breakpoints},P.prototype.setBreakpoints=function(O){this.$breakpoints=[];for(var $=0;$<O.length;$++)this.$breakpoints[O[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},P.prototype.setBreakpoint=function(O,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[O]=$:delete this.$breakpoints[O],this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoint=function(O){delete this.$breakpoints[O],this._signal("changeBreakpoint",{})},P.prototype.addMarker=function(O,$,k,R){var B=this.$markerId++,U={range:O,type:k||"line",renderer:typeof k=="function"?k:null,clazz:$,inFront:!!R,id:B};return R?(this.$frontMarkers[B]=U,this._signal("changeFrontMarker")):(this.$backMarkers[B]=U,this._signal("changeBackMarker")),B},P.prototype.addDynamicMarker=function(O,$){if(O.update){var k=this.$markerId++;return O.id=k,O.inFront=!!$,$?(this.$frontMarkers[k]=O,this._signal("changeFrontMarker")):(this.$backMarkers[k]=O,this._signal("changeBackMarker")),O}},P.prototype.removeMarker=function(O){var $=this.$frontMarkers[O]||this.$backMarkers[O];if($){var k=$.inFront?this.$frontMarkers:this.$backMarkers;delete k[O],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},P.prototype.getMarkers=function(O){return O?this.$frontMarkers:this.$backMarkers},P.prototype.highlight=function(O){if(!this.$searchHighlight){var $=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(O)},P.prototype.highlightLines=function(O,$,k,R){typeof $!="number"&&(k=$,$=O),k||(k="ace_step");var B=new u(O,0,$,1/0);return B.id=this.addMarker(B,k,"fullLine",R),B},P.prototype.setAnnotations=function(O){this.$annotations=O,this._signal("changeAnnotation",{})},P.prototype.getAnnotations=function(){return this.$annotations||[]},P.prototype.clearAnnotations=function(){this.setAnnotations([])},P.prototype.$detectNewLine=function(O){var $=O.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
|
192
|
+
`},P.prototype.getWordRange=function(O,$){var k=this.getLine(O),R=!1;if($>0&&(R=!!k.charAt($-1).match(this.tokenRe)),R||(R=!!k.charAt($).match(this.tokenRe)),R)var B=this.tokenRe;else if(/^\s+$/.test(k.slice($-1,$+1)))var B=/\s/;else var B=this.nonTokenRe;var U=$;if(U>0){do U--;while(U>=0&&k.charAt(U).match(B));U++}for(var q=$;q<k.length&&k.charAt(q).match(B);)q++;return new u(O,U,O,q)},P.prototype.getAWordRange=function(O,$){for(var k=this.getWordRange(O,$),R=this.getLine(k.end.row);R.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},P.prototype.setNewLineMode=function(O){this.doc.setNewLineMode(O)},P.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},P.prototype.setUseWorker=function(O){this.setOption("useWorker",O)},P.prototype.getUseWorker=function(){return this.$useWorker},P.prototype.onReloadTokenizer=function(O){var $=O.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",O)},P.prototype.setMode=function(O,$){if(O&&typeof O=="object"){if(O.getTokenizer)return this.$onChangeMode(O);var k=O,R=k.path}else R=O||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[R]&&!k){this.$onChangeMode(this.$modes[R]),$&&$();return}this.$modeId=R,h.loadModule(["mode",R],(function(B){if(!this.destroyed){if(this.$modeId!==R)return $&&$();this.$modes[R]&&!k?this.$onChangeMode(this.$modes[R]):B&&B.Mode&&(B=new B.Mode(k),k||(this.$modes[R]=B,B.$id=R),this.$onChangeMode(B)),$&&$()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},P.prototype.$onChangeMode=function(O,$){if($||(this.$modeId=O.$id),this.$mode!==O){var k=this.$mode;this.$mode=O,this.$stopWorker(),this.$useWorker&&this.$startWorker();var R=O.getTokenizer();if(R.on!==void 0){var B=this.onReloadTokenizer.bind(this);R.on("update",B)}this.bgTokenizer.setTokenizer(R),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=O.tokenRe,this.nonTokenRe=O.nonTokenRe,$||(O.attachToSession&&O.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(O.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:k,mode:O}))}},P.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},P.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(O){h.warn("Could not load worker",O),this.$worker=null}},P.prototype.getMode=function(){return this.$mode},P.prototype.setScrollTop=function(O){this.$scrollTop===O||isNaN(O)||(this.$scrollTop=O,this._signal("changeScrollTop",O))},P.prototype.getScrollTop=function(){return this.$scrollTop},P.prototype.setScrollLeft=function(O){this.$scrollLeft===O||isNaN(O)||(this.$scrollLeft=O,this._signal("changeScrollLeft",O))},P.prototype.getScrollLeft=function(){return this.$scrollLeft},P.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},P.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var O=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>O&&(O=$.screenWidth)}),this.lineWidgetWidth=O},P.prototype.$computeWidth=function(O){if(this.$modified||O){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),k=this.$rowLengthCache,R=0,B=0,U=this.$foldData[B],q=U?U.start.row:1/0,Q=$.length,ee=0;ee<Q;ee++){if(ee>q){if(ee=U.end.row+1,ee>=Q)break;U=this.$foldData[B++],q=U?U.start.row:1/0}k[ee]==null&&(k[ee]=this.$getStringScreenWidth($[ee])[0]),k[ee]>R&&(R=k[ee])}this.screenWidth=R}},P.prototype.getLine=function(O){return this.doc.getLine(O)},P.prototype.getLines=function(O,$){return this.doc.getLines(O,$)},P.prototype.getLength=function(){return this.doc.getLength()},P.prototype.getTextRange=function(O){return this.doc.getTextRange(O||this.selection.getRange())},P.prototype.insert=function(O,$){return this.doc.insert(O,$)},P.prototype.remove=function(O){return this.doc.remove(O)},P.prototype.removeFullLines=function(O,$){return this.doc.removeFullLines(O,$)},P.prototype.undoChanges=function(O,$){if(O.length){this.$fromUndo=!0;for(var k=O.length-1;k!=-1;k--){var R=O[k];R.action=="insert"||R.action=="remove"?this.doc.revertDelta(R):R.folds&&this.addFolds(R.folds)}!$&&this.$undoSelect&&(O.selectionBefore?this.selection.fromJSON(O.selectionBefore):this.selection.setRange(this.$getUndoSelection(O,!0))),this.$fromUndo=!1}},P.prototype.redoChanges=function(O,$){if(O.length){this.$fromUndo=!0;for(var k=0;k<O.length;k++){var R=O[k];(R.action=="insert"||R.action=="remove")&&this.doc.$safeApplyDelta(R)}!$&&this.$undoSelect&&(O.selectionAfter?this.selection.fromJSON(O.selectionAfter):this.selection.setRange(this.$getUndoSelection(O,!1))),this.$fromUndo=!1}},P.prototype.setUndoSelect=function(O){this.$undoSelect=O},P.prototype.$getUndoSelection=function(O,$){function k(Q){return $?Q.action!=="insert":Q.action==="insert"}for(var R,B,U=0;U<O.length;U++){var q=O[U];if(q.start){if(!R){k(q)?R=u.fromPoints(q.start,q.end):R=u.fromPoints(q.start,q.start);continue}k(q)?(B=q.start,R.compare(B.row,B.column)==-1&&R.setStart(B),B=q.end,R.compare(B.row,B.column)==1&&R.setEnd(B)):(B=q.start,R.compare(B.row,B.column)==-1&&(R=u.fromPoints(q.start,q.start)))}}return R},P.prototype.replace=function(O,$){return this.doc.replace(O,$)},P.prototype.moveText=function(O,$,k){var R=this.getTextRange(O),B=this.getFoldsInRange(O),U=u.fromPoints($,$);if(!k){this.remove(O);var q=O.start.row-O.end.row,Q=q?-O.end.column:O.start.column-O.end.column;Q&&(U.start.row==O.end.row&&U.start.column>O.end.column&&(U.start.column+=Q),U.end.row==O.end.row&&U.end.column>O.end.column&&(U.end.column+=Q)),q&&U.start.row>=O.end.row&&(U.start.row+=q,U.end.row+=q)}if(U.end=this.insert(U.start,R),B.length){var ee=O.start,ae=U.start,q=ae.row-ee.row,Q=ae.column-ee.column;this.addFolds(B.map(function(se){return se=se.clone(),se.start.row==ee.row&&(se.start.column+=Q),se.end.row==ee.row&&(se.end.column+=Q),se.start.row+=q,se.end.row+=q,se}))}return U},P.prototype.indentRows=function(O,$,k){k=k.replace(/\t/g,this.getTabString());for(var R=O;R<=$;R++)this.doc.insertInLine({row:R,column:0},k)},P.prototype.outdentRows=function(O){for(var $=O.collapseRows(),k=new u(0,0,0,0),R=this.getTabSize(),B=$.start.row;B<=$.end.row;++B){var U=this.getLine(B);k.start.row=B,k.end.row=B;for(var q=0;q<R&&U.charAt(q)==" ";++q);q<R&&U.charAt(q)==" "?(k.start.column=q,k.end.column=q+1):(k.start.column=0,k.end.column=q),this.remove(k)}},P.prototype.$moveLines=function(O,$,k){if(O=this.getRowFoldStart(O),$=this.getRowFoldEnd($),k<0){var R=this.getRowFoldStart(O+k);if(R<0)return 0;var B=R-O}else if(k>0){var R=this.getRowFoldEnd($+k);if(R>this.doc.getLength()-1)return 0;var B=R-$}else{O=this.$clipRowToDocument(O),$=this.$clipRowToDocument($);var B=$-O+1}var U=new u(O,0,$,Number.MAX_VALUE),q=this.getFoldsInRange(U).map(function(ee){return ee=ee.clone(),ee.start.row+=B,ee.end.row+=B,ee}),Q=k==0?this.doc.getLines(O,$):this.doc.removeFullLines(O,$);return this.doc.insertFullLines(O+B,Q),q.length&&this.addFolds(q),B},P.prototype.moveLinesUp=function(O,$){return this.$moveLines(O,$,-1)},P.prototype.moveLinesDown=function(O,$){return this.$moveLines(O,$,1)},P.prototype.duplicateLines=function(O,$){return this.$moveLines(O,$,0)},P.prototype.$clipRowToDocument=function(O){return Math.max(0,Math.min(O,this.doc.getLength()-1))},P.prototype.$clipColumnToRow=function(O,$){return $<0?0:Math.min(this.doc.getLine(O).length,$)},P.prototype.$clipPositionToDocument=function(O,$){if($=Math.max(0,$),O<0)O=0,$=0;else{var k=this.doc.getLength();O>=k?(O=k-1,$=this.doc.getLine(k-1).length):$=Math.min(this.doc.getLine(O).length,$)}return{row:O,column:$}},P.prototype.$clipRangeToDocument=function(O){O.start.row<0?(O.start.row=0,O.start.column=0):O.start.column=this.$clipColumnToRow(O.start.row,O.start.column);var $=this.doc.getLength()-1;return O.end.row>$?(O.end.row=$,O.end.column=this.doc.getLine($).length):O.end.column=this.$clipColumnToRow(O.end.row,O.end.column),O},P.prototype.setUseWrapMode=function(O){if(O!=this.$useWrapMode){if(this.$useWrapMode=O,this.$modified=!0,this.$resetRowCache(0),O){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},P.prototype.getUseWrapMode=function(){return this.$useWrapMode},P.prototype.setWrapLimitRange=function(O,$){(this.$wrapLimitRange.min!==O||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:O,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},P.prototype.adjustWrapLimit=function(O,$){var k=this.$wrapLimitRange;k.max<0&&(k={min:$,max:$});var R=this.$constrainWrapLimit(O,k.min,k.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},P.prototype.$constrainWrapLimit=function(O,$,k){return $&&(O=Math.max($,O)),k&&(O=Math.min(k,O)),O},P.prototype.getWrapLimit=function(){return this.$wrapLimit},P.prototype.setWrapLimit=function(O){this.setWrapLimitRange(O,O)},P.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},P.prototype.$updateInternalDataOnChange=function(O){var $=this.$useWrapMode,k=O.action,R=O.start,B=O.end,U=R.row,q=B.row,Q=q-U,ee=null;if(this.$updating=!0,Q!=0)if(k==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(U,Q);var ae=this.$foldData;ee=this.getFoldsInRange(O),this.removeFolds(ee);var ne=this.getFoldLine(B.row),ce=0;if(ne){ne.addRemoveChars(B.row,B.column,R.column-B.column),ne.shiftRow(-Q);var se=this.getFoldLine(U);se&&se!==ne&&(se.merge(ne),ne=se),ce=ae.indexOf(ne)+1}for(ce;ce<ae.length;ce++){var ne=ae[ce];ne.start.row>=B.row&&ne.shiftRow(-Q)}q=U}else{var de=Array(Q);de.unshift(U,0);var me=$?this.$wrapData:this.$rowLengthCache;me.splice.apply(me,de);var ae=this.$foldData,ne=this.getFoldLine(U),ce=0;if(ne){var $e=ne.range.compareInside(R.row,R.column);$e==0?(ne=ne.split(R.row,R.column),ne&&(ne.shiftRow(Q),ne.addRemoveChars(q,0,B.column-R.column))):$e==-1&&(ne.addRemoveChars(U,0,B.column-R.column),ne.shiftRow(Q)),ce=ae.indexOf(ne)+1}for(ce;ce<ae.length;ce++){var ne=ae[ce];ne.start.row>=U&&ne.shiftRow(Q)}}else{Q=Math.abs(O.start.column-O.end.column),k==="remove"&&(ee=this.getFoldsInRange(O),this.removeFolds(ee),Q=-Q);var ne=this.getFoldLine(U);ne&&ne.addRemoveChars(U,R.column,Q)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(U,q):this.$updateRowLengthCache(U,q),ee},P.prototype.$updateRowLengthCache=function(O,$){this.$rowLengthCache[O]=null,this.$rowLengthCache[$]=null},P.prototype.$updateWrapData=function(O,$){var k=this.doc.getAllLines(),R=this.getTabSize(),B=this.$wrapData,U=this.$wrapLimit,q,Q,ee=O;for($=Math.min($,k.length-1);ee<=$;)Q=this.getFoldLine(ee,Q),Q?(q=[],Q.walk((function(ae,ne,ce,se){var de;if(ae!=null){de=this.$getDisplayTokens(ae,q.length),de[0]=_;for(var me=1;me<de.length;me++)de[me]=C}else de=this.$getDisplayTokens(k[ne].substring(se,ce),q.length);q=q.concat(de)}).bind(this),Q.end.row,k[Q.end.row].length+1),B[Q.start.row]=this.$computeWrapSplits(q,U,R),ee=Q.end.row+1):(q=this.$getDisplayTokens(k[ee]),B[ee]=this.$computeWrapSplits(q,U,R),ee++)},P.prototype.$computeWrapSplits=function(O,$,k){if(O.length==0)return[];var R=[],B=O.length,U=0,q=0,Q=this.$wrapAsCode,ee=this.$indentedSoftWrap,ae=$<=Math.max(2*k,8)||ee===!1?0:Math.floor($/2);function ne(){var $e=0;if(ae===0)return $e;if(ee)for(var Me=0;Me<O.length;Me++){var Te=O[Me];if(Te==D)$e+=1;else if(Te==I)$e+=k;else{if(Te==E)continue;break}}return Q&&ee!==!1&&($e+=k),Math.min($e,ae)}function ce($e){for(var Me=$e-U,Te=U;Te<$e;Te++){var Ze=O[Te];(Ze===12||Ze===2)&&(Me-=1)}R.length||(se=ne(),R.indent=se),q+=Me,R.push(q),U=$e}for(var se=0;B-U>$-se;){var de=U+$-se;if(O[de-1]>=D&&O[de]>=D){ce(de);continue}if(O[de]==_||O[de]==C){for(de;de!=U-1&&O[de]!=_;de--);if(de>U){ce(de);continue}for(de=U+$,de;de<O.length&&O[de]==C;de++);if(de==O.length)break;ce(de);continue}for(var me=Math.max(de-($-($>>2)),U-1);de>me&&O[de]<_;)de--;if(Q){for(;de>me&&O[de]<_;)de--;for(;de>me&&O[de]==L;)de--}else for(;de>me&&O[de]<D;)de--;if(de>me){ce(++de);continue}de=U+$,O[de]==M&&de--,ce(de-se)}return R},P.prototype.$getDisplayTokens=function(O,$){var k=[],R;$=$||0;for(var B=0;B<O.length;B++){var U=O.charCodeAt(B);if(U==9){R=this.getScreenTabSize(k.length+$),k.push(I);for(var q=1;q<R;q++)k.push(E)}else U==32?k.push(D):U>39&&U<48||U>57&&U<64?k.push(L):U>=4352&&z(U)?k.push(N,M):k.push(N)}return k},P.prototype.$getStringScreenWidth=function(O,$,k){if($==0)return[0,0];$==null&&($=1/0),k=k||0;var R,B;for(B=0;B<O.length&&(R=O.charCodeAt(B),R==9?k+=this.getScreenTabSize(k):R>=4352&&z(R)?k+=2:k+=1,!(k>$));B++);return[k,B]},P.prototype.getRowLength=function(O){var $=1;return this.lineWidgets&&($+=this.lineWidgets[O]&&this.lineWidgets[O].rowCount||0),!this.$useWrapMode||!this.$wrapData[O]?$:this.$wrapData[O].length+$},P.prototype.getRowLineCount=function(O){return!this.$useWrapMode||!this.$wrapData[O]?1:this.$wrapData[O].length+1},P.prototype.getRowWrapIndent=function(O){if(this.$useWrapMode){var $=this.screenToDocumentPosition(O,Number.MAX_VALUE),k=this.$wrapData[$.row];return k.length&&k[0]<$.column?k.indent:0}else return 0},P.prototype.getScreenLastRowColumn=function(O){var $=this.screenToDocumentPosition(O,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},P.prototype.getDocumentLastRowColumn=function(O,$){var k=this.documentToScreenRow(O,$);return this.getScreenLastRowColumn(k)},P.prototype.getDocumentLastRowColumnPosition=function(O,$){var k=this.documentToScreenRow(O,$);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},P.prototype.getRowSplitData=function(O){if(this.$useWrapMode)return this.$wrapData[O]},P.prototype.getScreenTabSize=function(O){return this.$tabSize-(O%this.$tabSize|0)},P.prototype.screenToDocumentRow=function(O,$){return this.screenToDocumentPosition(O,$).row},P.prototype.screenToDocumentColumn=function(O,$){return this.screenToDocumentPosition(O,$).column},P.prototype.screenToDocumentPosition=function(O,$,k){if(O<0)return{row:0,column:0};var R,ce=0,B=0,U,ne=0,q=0,Q=this.$screenRowCache,ee=this.$getRowCacheIndex(Q,O),ae=Q.length;if(ae&&ee>=0)var ne=Q[ee],ce=this.$docRowCache[ee],se=O>Q[ae-1];else var se=!ae;for(var de=this.getLength()-1,me=this.getNextFoldLine(ce),$e=me?me.start.row:1/0;ne<=O&&(q=this.getRowLength(ce),!(ne+q>O||ce>=de));)ne+=q,ce++,ce>$e&&(ce=me.end.row+1,me=this.getNextFoldLine(ce,me),$e=me?me.start.row:1/0),se&&(this.$docRowCache.push(ce),this.$screenRowCache.push(ne));if(me&&me.start.row<=ce)R=this.getFoldDisplayLine(me),ce=me.start.row;else{if(ne+q<=O||ce>de)return{row:de,column:this.getLine(de).length};R=this.getLine(ce),me=null}var Me=0,Te=Math.floor(O-ne);if(this.$useWrapMode){var Ze=this.$wrapData[ce];Ze&&(U=Ze[Te],Te>0&&Ze.length&&(Me=Ze.indent,B=Ze[Te-1]||Ze[Ze.length-1],R=R.substring(B)))}return k!==void 0&&this.$bidiHandler.isBidiRow(ne+Te,ce,Te)&&($=this.$bidiHandler.offsetToCol(k)),B+=this.$getStringScreenWidth(R,$-Me)[1],this.$useWrapMode&&B>=U&&(B=U-1),me?me.idxToPosition(B):{row:ce,column:B}},P.prototype.documentToScreenPosition=function(O,$){if(typeof $>"u")var k=this.$clipPositionToDocument(O.row,O.column);else k=this.$clipPositionToDocument(O,$);O=k.row,$=k.column;var ne=0,R=null,B=null;B=this.getFoldAt(O,$,1),B&&(O=B.start.row,$=B.start.column);var U,ae=0,q=this.$docRowCache,Q=this.$getRowCacheIndex(q,O),ee=q.length;if(ee&&Q>=0)var ae=q[Q],ne=this.$screenRowCache[Q],ce=O>q[ee-1];else var ce=!ee;for(var se=this.getNextFoldLine(ae),de=se?se.start.row:1/0;ae<O;){if(ae>=de){if(U=se.end.row+1,U>O)break;se=this.getNextFoldLine(U,se),de=se?se.start.row:1/0}else U=ae+1;ne+=this.getRowLength(ae),ae=U,ce&&(this.$docRowCache.push(ae),this.$screenRowCache.push(ne))}var me="";se&&ae>=de?(me=this.getFoldDisplayLine(se,O,$),R=se.start.row):(me=this.getLine(O).substring(0,$),R=O);var $e=0;if(this.$useWrapMode){var Me=this.$wrapData[R];if(Me){for(var Te=0;me.length>=Me[Te];)ne++,Te++;me=me.substring(Me[Te-1]||0,me.length),$e=Te>0?Me.indent:0}}return this.lineWidgets&&this.lineWidgets[ae]&&this.lineWidgets[ae].rowsAbove&&(ne+=this.lineWidgets[ae].rowsAbove),{row:ne,column:$e+this.$getStringScreenWidth(me)[0]}},P.prototype.documentToScreenColumn=function(O,$){return this.documentToScreenPosition(O,$).column},P.prototype.documentToScreenRow=function(O,$){return this.documentToScreenPosition(O,$).row},P.prototype.getScreenLength=function(){var O=0,$=null;if(this.$useWrapMode)for(var k=this.$wrapData.length,R=0,B=0,$=this.$foldData[B++],U=$?$.start.row:1/0;R<k;){var q=this.$wrapData[R];O+=q?q.length+1:1,R++,R>U&&(R=$.end.row+1,$=this.$foldData[B++],U=$?$.start.row:1/0)}else{O=this.getLength();for(var Q=this.$foldData,B=0;B<Q.length;B++)$=Q[B],O-=$.end.row-$.start.row}return this.lineWidgets&&(O+=this.$getWidgetScreenLength()),O},P.prototype.$setFontMetrics=function(O){this.$enableVarChar&&(this.$getStringScreenWidth=function($,k,R){if(k===0)return[0,0];k||(k=1/0),R=R||0;var B,U;for(U=0;U<$.length&&(B=$.charAt(U),B===" "?R+=this.getScreenTabSize(R):R+=O.getCharacterWidth(B),!(R>k));U++);return[R,U]})},P.prototype.getPrecedingCharacter=function(){var O=this.selection.getCursor();if(O.column===0)return O.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(O.row);return $[O.column-1]},P.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},P})();x.$uid=0,x.prototype.$modes=h.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=z,p.implement(x.prototype,d);var N=1,M=2,_=3,C=4,L=9,D=10,I=11,E=12;function z(P){return P<4352?!1:P>=4352&&P<=4447||P>=4515&&P<=4519||P>=4602&&P<=4607||P>=9001&&P<=9002||P>=11904&&P<=11929||P>=11931&&P<=12019||P>=12032&&P<=12245||P>=12272&&P<=12283||P>=12288&&P<=12350||P>=12353&&P<=12438||P>=12441&&P<=12543||P>=12549&&P<=12589||P>=12593&&P<=12686||P>=12688&&P<=12730||P>=12736&&P<=12771||P>=12784&&P<=12830||P>=12832&&P<=12871||P>=12880&&P<=13054||P>=13056&&P<=19903||P>=19968&&P<=42124||P>=42128&&P<=42182||P>=43360&&P<=43388||P>=44032&&P<=55203||P>=55216&&P<=55238||P>=55243&&P<=55291||P>=63744&&P<=64255||P>=65040&&P<=65049||P>=65072&&P<=65106||P>=65108&&P<=65126||P>=65128&&P<=65131||P>=65281&&P<=65376||P>=65504&&P<=65510}e("./edit_session/folding").Folding.call(x.prototype),e("./edit_session/bracket_match").BracketMatch.call(x.prototype),h.defineOptions(x.prototype,"session",{wrap:{set:function(P){if(!P||P=="off"?P=!1:P=="free"?P=!0:P=="printMargin"?P=-1:typeof P=="string"&&(P=parseInt(P,10)||!1),this.$wrap!=P)if(this.$wrap=P,!P)this.setUseWrapMode(!1);else{var O=typeof P=="number"?P:null;this.setWrapLimitRange(O,O),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(P){P=P=="auto"?this.$mode.type!="text":P!="text",P!=this.$wrapAsCode&&(this.$wrapAsCode=P,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(P){this.$useWorker=P,this.$stopWorker(),P&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(P){P=parseInt(P),P>0&&this.$tabSize!==P&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=P,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(P){this.setFoldStyle(P)},handlesSet:!0},overwrite:{set:function(P){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(P){this.doc.setNewLineMode(P)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(P){this.setMode(P)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,r,v){var p=e("./lib/lang"),g=e("./lib/oop"),w=e("./range").Range,h=(function(){function u(){this.$options={}}return u.prototype.set=function(c){return g.mixin(this.$options,c),this},u.prototype.getOptions=function(){return p.copyObject(this.$options)},u.prototype.setOptions=function(c){this.$options=c},u.prototype.find=function(c){var i=this.$options,s=this.$matchIterator(c,i);if(!s)return!1;var f=null;return s.forEach(function(b,x,N,M){return f=new w(b,x,N,M),x==M&&i.start&&i.start.start&&i.skipCurrent!=!1&&f.isEqual(i.start)?(f=null,!1):!0}),f},u.prototype.findAll=function(c){var i=this.$options;if(!i.needle)return[];this.$assembleRegExp(i);var s=i.range,f=s?c.getLines(s.start.row,s.end.row):c.doc.getAllLines(),b=[],x=i.re;if(i.$isMultiLine){var N=x.length,M=f.length-N,_;e:for(var C=x.offset||0;C<=M;C++){for(var L=0;L<N;L++)if(f[C+L].search(x[L])==-1)continue e;var D=f[C],I=f[C+N-1],E=D.length-D.match(x[0])[0].length,z=I.match(x[N-1])[0].length;_&&_.end.row===C&&_.end.column>E||(b.push(_=new w(C,E,C+N-1,z)),N>2&&(C=C+N-2))}}else for(var P,O=0;O<f.length;O++)if(this.$isMultilineSearch(i)){var $=f.length-1;if(P=this.$multiLineForward(c,x,O,$),P){var k=P.endRow<=$?P.endRow-1:$;k>O&&(O=k),b.push(new w(P.startRow,P.startCol,P.endRow,P.endCol))}}else{P=p.getMatchOffsets(f[O],x);for(var L=0;L<P.length;L++){var R=P[L];b.push(new w(O,R.offset,O,R.offset+R.length))}}if(s){for(var B=s.start.column,U=s.end.column,O=0,L=b.length-1;O<L&&b[O].start.column<B&&b[O].start.row==0;)O++;for(var q=s.end.row-s.start.row;O<L&&b[L].end.column>U&&b[L].end.row==q;)L--;for(b=b.slice(O,L+1),O=0,L=b.length;O<L;O++)b[O].start.row+=s.start.row,b[O].end.row+=s.start.row}return b},u.prototype.parseReplaceString=function(c){for(var i={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},s="",f=0,b=c.length;f<b;f++){var x=c.charCodeAt(f);if(x===i.Backslash){if(f++,f>=b){s+="\\";break}var N=c.charCodeAt(f);switch(N){case i.Backslash:s+="\\";break;case i.n:s+=`
|
|
193
|
+
`;break;case i.t:s+=" ";break}continue}if(x===i.DollarSign){if(f++,f>=b){s+="$";break}var M=c.charCodeAt(f);if(M===i.DollarSign){s+="$$";continue}if(M===i.Digit0||M===i.Ampersand){s+="$&";continue}if(i.Digit1<=M&&M<=i.Digit9){s+="$"+c[f];continue}}s+=c[f]}return s||c},u.prototype.replace=function(c,i){var s=this.$options,f=this.$assembleRegExp(s);if(s.$isMultiLine)return i;if(f){var b=this.$isMultilineSearch(s);b&&(c=c.replace(/\r\n|\r|\n/g,`
|
|
194
|
+
`));var x=f.exec(c);if(!x||!b&&x[0].length!=c.length)return null;if(i=s.regExp?this.parseReplaceString(i):i.replace(/\$/g,"$$$$"),i=c.replace(f,i),s.preserveCase){i=i.split("");for(var N=Math.min(c.length,c.length);N--;){var M=c[N];M&&M.toLowerCase()!=M?i[N]=i[N].toUpperCase():i[N]=i[N].toLowerCase()}i=i.join("")}return i}},u.prototype.$assembleRegExp=function(c,i){if(c.needle instanceof RegExp)return c.re=c.needle;var s=c.needle;if(!c.needle)return c.re=!1;c.regExp||(s=p.escapeRegExp(s));var f=c.caseSensitive?"gm":"gmi";try{new RegExp(s,"u"),c.$supportsUnicodeFlag=!0,f+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(s=d(s,c)),c.$isMultiLine=!i&&/[\n\r]/.test(s),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(s,f);try{var b=new RegExp(s,f)}catch{b=!1}return c.re=b},u.prototype.$assembleMultilineRegExp=function(c,i){for(var s=c.replace(/\r\n|\r|\n/g,`$
|
|
195
|
+
^`).split(`
|
|
196
|
+
`),f=[],b=0;b<s.length;b++)try{f.push(new RegExp(s[b],i))}catch{return!1}return f},u.prototype.$isMultilineSearch=function(c){return c.re&&/\\r\\n|\\r|\\n/.test(c.re.source)&&c.regExp&&!c.$isMultiLine},u.prototype.$multiLineForward=function(c,i,s,f){for(var b,x=l(c,s),N=s;N<=f;){for(var M=0;M<x&&!(N>f);M++){var _=c.getLine(N++);b=b==null?_:b+`
|
|
197
|
+
`+_}var C=i.exec(b);if(i.lastIndex=0,C){var L=b.slice(0,C.index).split(`
|
|
198
|
+
`),D=C[0].split(`
|
|
199
|
+
`),I=s+L.length-1,E=L[L.length-1].length,z=I+D.length-1,P=D.length==1?E+D[0].length:D[D.length-1].length;return{startRow:I,startCol:E,endRow:z,endCol:P}}}return null},u.prototype.$multiLineBackward=function(c,i,s,f,b){for(var x,N=l(c,f),M=c.getLine(f).length-s,_=f;_>=b;){for(var C=0;C<N&&_>=b;C++){var L=c.getLine(_--);x=x==null?L:L+`
|
|
200
|
+
`+x}var D=a(x,i,M);if(D){var I=x.slice(0,D.index).split(`
|
|
201
|
+
`),E=D[0].split(`
|
|
202
|
+
`),z=_+I.length,P=I[I.length-1].length,O=z+E.length-1,$=E.length==1?P+E[0].length:E[E.length-1].length;return{startRow:z,startCol:P,endRow:O,endCol:$}}}return null},u.prototype.$matchIterator=function(c,i){var s=this.$assembleRegExp(i);if(!s)return!1;var f=this.$isMultilineSearch(i),b=this.$multiLineForward,x=this.$multiLineBackward,N=i.backwards==!0,M=i.skipCurrent!=!1,_=s.unicode,C=i.range,L=i.start;L||(L=C?C[N?"end":"start"]:c.selection.getRange()),L.start&&(L=L[M!=N?"end":"start"]);var D=C?C.start.row:0,I=C?C.end.row:c.getLength()-1;if(N)var E=function(O){var $=L.row;if(!P($,L.column,O)){for($--;$>=D;$--)if(P($,Number.MAX_VALUE,O))return;if(i.wrap!=!1){for($=I,D=L.row;$>=D;$--)if(P($,Number.MAX_VALUE,O))return}}};else var E=function(O){var $=L.row;if(!P($,L.column,O)){for($=$+1;$<=I;$++)if(P($,0,O))return;if(i.wrap!=!1){for($=D,I=L.row;$<=I;$++)if(P($,0,O))return}}};if(i.$isMultiLine)var z=s.length,P=function(O,$,k){var R=N?O-z+1:O;if(!(R<0||R+z>c.getLength())){var B=c.getLine(R),U=B.search(s[0]);if(!(!N&&U<$||U===-1)){for(var q=1;q<z;q++)if(B=c.getLine(R+q),B.search(s[q])==-1)return;var Q=B.match(s[z-1])[0].length;if(!(N&&Q>$)&&k(R,U,R+z-1,Q))return!0}}};else if(N)var P=function(O,$,k){if(f){var R=x(c,s,$,O,D);if(!R)return!1;if(k(R.startRow,R.startCol,R.endRow,R.endCol))return!0}else{var B=c.getLine(O),U=[],q,Q=0;for(s.lastIndex=0;q=s.exec(B);){var ee=q[0].length;if(Q=q.index,!ee){if(Q>=B.length)break;s.lastIndex=Q+=p.skipEmptyMatch(B,Q,_)}if(q.index+ee>$)break;U.push(q.index,ee)}for(var ae=U.length-1;ae>=0;ae-=2){var ne=U[ae-1],ee=U[ae];if(k(O,ne,O,ne+ee))return!0}}};else var P=function(O,$,k){if(s.lastIndex=$,f){var R=b(c,s,O,I);if(R){var B=R.endRow<=I?R.endRow-1:I;B>O&&(O=B)}if(!R)return!1;if(k(R.startRow,R.startCol,R.endRow,R.endCol))return!0}else for(var U=c.getLine(O),q,Q;Q=s.exec(U);){var ee=Q[0].length;if(q=Q.index,k(O,q,O,q+ee))return!0;if(!ee&&(s.lastIndex=q+=p.skipEmptyMatch(U,q,_),q>=U.length))return!1}};return{forEach:E}},u})();function d(u,c){var i=p.supportsLookbehind();function s(N,M){M===void 0&&(M=!0);var _=i&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return _.test(N)||c.regExp?i&&c.$supportsUnicodeFlag?M?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(u),b=f[0],x=f[f.length-1];return s(b)+u+s(x,!1)}function a(u,c,i){for(var s=null,f=0;f<=u.length;){c.lastIndex=f;var b=c.exec(u);if(!b)break;var x=b.index+b[0].length;if(x>u.length-i)break;(!s||x>s.index+s[0].length)&&(s=b),f=b.index+1}return s}function l(u,c){var i=5e3,s={row:c,column:0},f=u.doc.positionToIndex(s),b=f+i,x=u.doc.indexToPosition(b),N=x.row;return N+1}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var p=this&&this.__extends||(function(){var u=function(c,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},u(c,i)};return function(c,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");u(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),g=e("../lib/keys"),w=e("../lib/useragent"),h=g.KEY_MODS,d=(function(){function u(c,i){this.$init(c,i,!1)}return u.prototype.$init=function(c,i,s){this.platform=i||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=s},u.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},u.prototype.removeCommand=function(c,i){var s=c&&(typeof c=="string"?c:c.name);c=this.commands[s],i||delete this.commands[s];var f=this.commandKeyBinding;for(var b in f){var x=f[b];if(x==c)delete f[b];else if(Array.isArray(x)){var N=x.indexOf(c);N!=-1&&(x.splice(N,1),x.length==1&&(f[b]=x[0]))}}},u.prototype.bindKey=function(c,i,s){if(typeof c=="object"&&c&&(s==null&&(s=c.position),c=c[this.platform]),!!c){if(typeof i=="function")return this.addCommand({exec:i,bindKey:c,name:i.name||c});c.split("|").forEach(function(f){var b="";if(f.indexOf(" ")!=-1){var x=f.split(/\s+/);f=x.pop(),x.forEach(function(_){var C=this.parseKeys(_),L=h[C.hashId]+C.key;b+=(b?" ":"")+L,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var N=this.parseKeys(f),M=h[N.hashId]+N.key;this._addCommandToBinding(b+M,i,s)},this)}},u.prototype._addCommandToBinding=function(c,i,s){var f=this.commandKeyBinding,b;if(!i)delete f[c];else if(!f[c]||this.$singleCommand)f[c]=i;else{Array.isArray(f[c])?(b=f[c].indexOf(i))!=-1&&f[c].splice(b,1):f[c]=[f[c]],typeof s!="number"&&(s=a(i));var x=f[c];for(b=0;b<x.length;b++){var N=x[b],M=a(N);if(M>s)break}x.splice(b,0,i)}},u.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(i){var s=c[i];if(s){if(typeof s=="string")return this.bindKey(s,i);typeof s=="function"&&(s={exec:s}),typeof s=="object"&&(s.name||(s.name=i),this.addCommand(s))}},this)},u.prototype.removeCommands=function(c){Object.keys(c).forEach(function(i){this.removeCommand(c[i])},this)},u.prototype.bindKeys=function(c){Object.keys(c).forEach(function(i){this.bindKey(i,c[i])},this)},u.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},u.prototype.parseKeys=function(c){var i=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(M){return M}),s=i.pop(),f=g[s];if(g.FUNCTION_KEYS[f])s=g.FUNCTION_KEYS[f].toLowerCase();else if(i.length){if(i.length==1&&i[0]=="shift")return{key:s.toUpperCase(),hashId:-1}}else return{key:s,hashId:-1};for(var b=0,x=i.length;x--;){var N=g.KEY_MODS[i[x]];if(N==null)return typeof console<"u"&&console.error("invalid modifier "+i[x]+" in "+c),!1;b|=N}return{key:s,hashId:b}},u.prototype.findKeyCommand=function(c,i){var s=h[c]+i;return this.commandKeyBinding[s]},u.prototype.handleKeyboard=function(c,i,s,f){if(!(f<0)){var b=h[i]+s,x=this.commandKeyBinding[b];return c.$keyChain&&(c.$keyChain+=" "+b,x=this.commandKeyBinding[c.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||b,{command:"null"}):(c.$keyChain&&((!i||i==4)&&s.length==1?c.$keyChain=c.$keyChain.slice(0,-b.length-1):(i==-1||f>0)&&(c.$keyChain="")),{command:x})}},u.prototype.getStatusText=function(c,i){return i.$keyChain||""},u})();function a(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var l=(function(u){p(c,u);function c(i,s){var f=u.call(this,i,s)||this;return f.$singleCommand=!0,f}return c})(d);l.call=function(u,c,i){d.prototype.$init.call(u,c,i,!0)},d.call=function(u,c,i){d.prototype.$init.call(u,c,i,!1)},r.HashHandler=l,r.MultiHashHandler=d}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var a=function(l,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(c[s]=i[s])},a(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(l,u);function c(){this.constructor=l}l.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}})(),g=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,d=(function(a){p(l,a);function l(u,c){var i=a.call(this,c,u)||this;return i.byName=i.commands,i.setDefaultHandler("exec",function(s){return s.args?s.command.exec(s.editor,s.args,s.event,!1):s.command.exec(s.editor,{},s.event,!0)}),i}return l.prototype.exec=function(u,c,i){if(Array.isArray(u)){for(var s=u.length;s--;)if(this.exec(u[s],c,i))return!0;return!1}typeof u=="string"&&(u=this.commands[u]);var f={editor:c,command:u,args:i};return this.canExecute(u,c)?(f.returnValue=this._emit("exec",f),this._signal("afterExec",f),f.returnValue!==!1):(this._signal("commandUnavailable",f),!1)},l.prototype.canExecute=function(u,c){return typeof u=="string"&&(u=this.commands[u]),!(!u||c&&c.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(c))},l.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,u):this.exec(c[0],u,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(u){return u.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l})(w);g.implement(d.prototype,h),r.CommandManager=d}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,v){var p=e("../lib/lang"),g=e("../config"),w=e("../range").Range;function h(a,l){return{win:a,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){g.loadModule("ace/ext/settings_menu",function(l){l.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(a,l){typeof l=="number"&&!isNaN(l)&&a.gotoLine(l),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:h("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(a){g.loadModule("ace/ext/searchbox",function(l){l.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:h("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:h("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(a,l){a.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:h("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:h("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(a,l){a.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(a,l){a.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(a,l){a.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:h(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var l=a.$copyWithEmptySelection&&a.selection.isEmpty(),u=l?a.selection.getLineRange():a.selection.getRange();a._emit("cut",u),u.isEmpty()||a.session.remove(u),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,l){a.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(a){g.loadModule("ace/ext/searchbox",function(l){l.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(a){var l=a.selection.getRange();l.start.column=0,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var l=a.selection.getRange();l.end.column=Number.MAX_VALUE,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,l){a.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,l){a.insert(p.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var l=a.selection.getRange();l.start.column=l.end.column=0,l.end.row++,a.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(a){for(var l=a.selection.isBackwards(),u=l?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),c=l?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),i=a.session.doc.getLine(u.row).length,s=a.session.doc.getTextRange(a.selection.getRange()),f=s.replace(/\n\s*/," ").length,b=a.session.doc.getLine(u.row),x=u.row+1;x<=c.row+1;x++){var N=p.stringTrimLeft(p.stringTrimRight(a.session.doc.getLine(x)));N.length!==0&&(N=" "+N),b+=N}c.row+1<a.session.doc.getLength()-1&&(b+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new w(u.row,0,c.row+2,0),b),f>0?(a.selection.moveCursorTo(u.row,u.column),a.selection.selectTo(u.row,u.column+f)):(i=a.session.doc.getLine(u.row).length>i?i+1:i,a.selection.moveCursorTo(u.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var l=a.session.doc.getLength()-1,u=a.session.doc.getLine(l).length,c=a.selection.rangeList.ranges,i=[];c.length<1&&(c=[a.selection.getRange()]);for(var s=0;s<c.length;s++)s==c.length-1&&(c[s].end.row===l&&c[s].end.column===u||i.push(new w(c[s].end.row,c[s].end.column,l,u))),s===0?c[s].start.row===0&&c[s].start.column===0||i.push(new w(0,0,c[s].start.row,c[s].start.column)):i.push(new w(c[s-1].end.row,c[s-1].end.column,c[s].start.row,c[s].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var s=0;s<i.length;s++)a.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
|
|
203
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var l=a.getCursorPosition();a.selection.moveTo(l.row-1,Number.MAX_VALUE),a.insert(`
|
|
204
|
+
`),l.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(a){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),a.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var d=1;d<9;d++)r.commands.push({name:"foldToLevel"+d,description:"Fold To Level "+d,level:d,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(e,r,v){var p=e("../lib/keys"),g=(function(){function h(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return h.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},h.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},h.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen){d.preventDefault(),d.keyCode===p.escape&&this.annotationTooltip.hide();return}if(d.target===this.element){if(d.keyCode!=p.enter)return;d.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldLaneWidget(l),c=this.$findNearestAnnotation(l);if(!(u===null&&c===null)){var i=this.$findClosestNumber(u,c,l);if(i===u)if(this.activeLane="fold",this.activeRowIndex=u,this.$isCustomWidgetVisible(u)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(d),setTimeout((function(){this.editor._signal("gutterkeydown",new w(d,this))}).bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(d){if(d.keyCode===p.tab){d.preventDefault();return}if(d.keyCode===p.escape){d.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(d.keyCode===p.up){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(d.keyCode===p.down){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(d.keyCode===p.left){d.preventDefault(),this.$switchLane("annotation");return}if(d.keyCode===p.right){d.preventDefault(),this.$switchLane("fold");return}if(d.keyCode===p.enter||d.keyCode===p.space){switch(d.preventDefault(),this.activeLane){case"fold":var a=this.$rowIndexToRow(this.activeRowIndex),l=this.editor.session.$gutterCustomWidgets[a];if(l)l.callbacks&&l.callbacks.onClick&&l.callbacks.onClick(d,a);else if(this.gutterLayer.session.foldWidgets[a]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),d),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0;break}return}},h.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},h.prototype.$isFoldWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getFoldWidget(d).style.display!=="none";return a&&l},h.prototype.$isCustomWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=!!this.$getCustomWidget(d);return a&&l},h.prototype.$isAnnotationVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getAnnotation(d).style.display!=="none";return a&&l},h.prototype.$getFoldWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[1]},h.prototype.$getCustomWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[3]},h.prototype.$getAnnotation=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[2]},h.prototype.$findNearestFoldLaneWidget=function(d){if(this.$isCustomWidgetVisible(d)||this.$isFoldWidgetVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isCustomWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(d+a))return d+a;if(d-a>=0&&this.$isFoldWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+a))return d+a}return null},h.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isAnnotationVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+a))return d+a}return null},h.prototype.$focusFoldWidget=function(d){if(d!=null){var a=this.$getFoldWidget(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$focusCustomWidget=function(d){if(d!=null){var a=this.$getCustomWidget(d);a&&(a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus())}},h.prototype.$focusAnnotation=function(d){if(d!=null){var a=this.$getAnnotation(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$blurFoldWidget=function(d){var a=this.$getFoldWidget(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$blurCustomWidget=function(d){var a=this.$getCustomWidget(d);a&&(a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur())},h.prototype.$blurAnnotation=function(d){var a=this.$getAnnotation(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveAnnotationUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$findClosestNumber=function(d,a,l){return d===null?a:a===null||Math.abs(l-d)<=Math.abs(l-a)?d:a},h.prototype.$switchLane=function(d){switch(d){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var l=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(l===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$isCustomWidgetVisible(l)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(d){var a=this.lines.get(d);return a?a.row:null},h.prototype.$rowToRowIndex=function(d){for(var a=0;a<this.lines.getLength();a++){var l=this.lines.get(a);if(l.row==d)return a}return null},h})();r.GutterKeyboardHandler=g;var w=(function(){function h(d,a){this.gutterKeyboardHandler=a,this.domEvent=d}return h.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h})();r.GutterKeyboardEvent=w}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(e,r,v){var p=this&&this.__values||function($){var k=typeof Symbol=="function"&&Symbol.iterator,R=k&&$[k],B=0;if(R)return R.call($);if($&&typeof $.length=="number")return{next:function(){return $&&B>=$.length&&($=void 0),{value:$&&$[B++],done:!$}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),d=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,i=e("./edit_session").EditSession,s=e("./search").Search,f=e("./range").Range,b=e("./lib/event_emitter").EventEmitter,x=e("./commands/command_manager").CommandManager,N=e("./commands/default_commands").commands,M=e("./config"),_=e("./token_iterator").TokenIterator,C=e("./keyboard/gutter_handler").GutterKeyboardHandler,L=e("./config").nls,D=e("./clipboard"),I=e("./lib/keys"),E=e("./lib/event"),z=e("./tooltip").HoverTooltip,P=(function(){function $(k,R,B){this.id="editor"+ ++$.$uid,this.session,this.$toDestroy=[];var U=k.getContainerElement();this.container=U,this.renderer=k,this.commands=new x(d.isMac?"mac":"win",N),typeof document=="object"&&(this.textInput=new a(k.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$search=new s().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(q,Q){Q._$emitInputEvent.schedule(31)}),this.setSession(R||B&&B.session||new i("")),M.resetOptions(this),B&&this.setOptions(B),M._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},$.prototype.startOperation=function(k){this.session.startOperation(k)},$.prototype.endOperation=function(k){this.session.endOperation(k)},$.prototype.onStartOperation=function(k){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,k||(this.previousCommand=null)},$.prototype.onEndOperation=function(k){if(this.curOp&&this.session){if(k&&k.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var R=this.curOp.command,B=R&&R.scrollIntoView;if(B){switch(B){case"center-animate":B="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var U=this.selection.getRange(),q=this.renderer.layerConfig;(U.start.row>=q.lastRow||U.end.row<=q.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}B=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(k){if(this.$mergeUndoDeltas){var R=this.prevOp,B=this.$mergeableCommands,U=R.command&&k.command.name==R.command.name;if(k.command.name=="insertstring"){var q=k.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),U=U&&this.mergeNextCommand&&(!/\s/.test(q)||/\s/.test(R.args)),this.mergeNextCommand=!0}else U=U&&B.indexOf(k.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(U=!1),U?this.session.mergeUndoDeltas=!0:B.indexOf(k.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(k,R){if(k&&typeof k=="string"&&k!="ace"){this.$keybindingId=k;var B=this;M.loadModule(["keybinding",k],function(U){B.$keybindingId==k&&B.keyBinding.setKeyboardHandler(U&&U.handler),R&&R()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(k),R&&R()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(k){if(this.session!=k){this.curOp&&this.endOperation(),this.curOp={};var R=this.session;if(R){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var B=this.session.getSelection();B.off("changeCursor",this.$onCursorChange),B.off("changeSelection",this.$onSelectionChange)}this.session=k,k?(this.$onDocumentChange=this.onDocumentChange.bind(this),k.on("change",this.$onDocumentChange),this.renderer.setSession(k),this.$onChangeMode=this.onChangeMode.bind(this),k.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),k.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),k.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),k.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),k.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),k.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=k.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(k)),this._signal("changeSession",{session:k,oldSession:R}),this.curOp=null,R&&R._signal("changeEditor",{oldEditor:this}),R&&(R.$editor=null),k&&k._signal("changeEditor",{editor:this}),k&&(k.$editor=this),k&&!k.destroyed&&k.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(k,R){return this.session.doc.setValue(k),R?R==1?this.navigateFileEnd():R==-1&&this.navigateFileStart():this.selectAll(),k},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(k){this.renderer.onResize(k)},$.prototype.setTheme=function(k,R){this.renderer.setTheme(k,R)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(k,R){this.renderer.setStyle(k,R)},$.prototype.unsetStyle=function(k){this.renderer.unsetStyle(k)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(k){this.setOption("fontSize",k)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var k=this;this.$highlightPending=!0,setTimeout(function(){k.$highlightPending=!1;var R=k.session;if(!(!R||R.destroyed)){R.$bracketHighlight&&(R.$bracketHighlight.markerIds.forEach(function(se){R.removeMarker(se)}),R.$bracketHighlight=null);var B=k.getCursorPosition(),U=k.getKeyboardHandler(),q=U&&U.$getDirectionForHighlight&&U.$getDirectionForHighlight(k),Q=R.getMatchingBracketRanges(B,q);if(!Q){var ee=new _(R,B.row,B.column),ae=ee.getCurrentToken();if(ae&&/\b(?:tag-open|tag-name)/.test(ae.type)){var ne=R.getMatchingTags(B);ne&&(Q=[ne.openTagName.isEmpty()?ne.openTag:ne.openTagName,ne.closeTagName.isEmpty()?ne.closeTag:ne.closeTagName])}}if(!Q&&R.$mode.getMatching&&(Q=R.$mode.getMatching(k.session)),!Q){k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide();return}var ce="ace_bracket";Array.isArray(Q)?Q.length==1&&(ce="ace_error_bracket"):Q=[Q],Q.length==2&&(f.comparePoints(Q[0].end,Q[1].start)==0?Q=[f.fromPoints(Q[0].start,Q[1].end)]:f.comparePoints(Q[0].start,Q[1].end)==0&&(Q=[f.fromPoints(Q[1].start,Q[0].end)])),R.$bracketHighlight={ranges:Q,markerIds:Q.map(function(se){return R.addMarker(se,ce,"text")})},k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(k){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",k))},$.prototype.onBlur=function(k){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",k))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(k){var R=this.session.$useWrapMode,B=k.start.row==k.end.row?k.end.row:1/0;this.renderer.updateLines(k.start.row,B,R),this._signal("change",k),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(k){var R=k.data;this.renderer.updateLines(R.first,R.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.prototype.$updateHighlightActiveLine=function(){var k=this.getSession(),R;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(R=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(R=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(R=!1)),k.$highlightLineMarker&&!R)k.removeMarker(k.$highlightLineMarker.id),k.$highlightLineMarker=null;else if(!k.$highlightLineMarker&&R){var B=new f(R.row,R.column,R.row,1/0);B.id=k.addMarker(B,"ace_active-line","screenLine"),k.$highlightLineMarker=B}else R&&(k.$highlightLineMarker.start.row=R.row,k.$highlightLineMarker.end.row=R.row,k.$highlightLineMarker.start.column=R.column,k._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(k){var R=this.session;if(R.$selectionMarker&&R.removeMarker(R.$selectionMarker),R.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var B=this.selection.getRange(),U=this.getSelectionStyle();R.$selectionMarker=R.addMarker(B,"ace_selection",U)}var q=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(q),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var k=this.session,R=this.getSelectionRange();if(!(R.isEmpty()||R.isMultiLine())){var B=R.start.column,U=R.end.column,q=k.getLine(R.start.row),Q=q.substring(B,U);if(!(Q.length>5e3||!/[\w\d]/.test(Q))){var ee=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Q}),ae=q.substring(B-1,U+1);if(ee.test(ae))return ee}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(k){this.renderer.updateText(),this._emit("changeMode",k)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var k=this.getSelectedText(),R=this.session.doc.getNewLineCharacter(),B=!1;if(!k&&this.$copyWithEmptySelection){B=!0;for(var U=this.selection.getAllRanges(),q=0;q<U.length;q++){var Q=U[q];q&&U[q-1].start.row==Q.start.row||(k+=this.session.getLine(Q.start.row)+R)}}var ee={text:k};return this._signal("copy",ee),D.lineMode=B?ee.text:!1,ee.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(k,R){var B={text:k,event:R};this.commands.exec("paste",this,B)},$.prototype.$handlePaste=function(k){typeof k=="string"&&(k={text:k}),this._signal("paste",k);var R=k.text,B=R===D.lineMode,U=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)B?U.insert({row:this.selection.lead.row,column:0},R):this.insert(R);else if(B)this.selection.rangeList.ranges.forEach(function(ce){U.insert({row:ce.start.row,column:0},R)});else{var q=R.split(/\r\n|\r|\n/),Q=this.selection.rangeList.ranges,ee=q.length==2&&(!q[0]||!q[1]);if(q.length!=Q.length||ee)return this.commands.exec("insertstring",this,R);for(var ae=Q.length;ae--;){var ne=Q[ae];ne.isEmpty()||U.remove(ne),U.insert(ne.start,q[ae])}}},$.prototype.execCommand=function(k,R){return this.commands.exec(k,this,R)},$.prototype.insert=function(k,R){var B=this.session,U=B.getMode(),q=this.getCursorPosition();if(this.getBehavioursEnabled()&&!R){var Q=U.transformAction(B.getState(q.row),"insertion",this,B,k);Q&&(k!==Q.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),k=Q.text)}if(k==" "&&(k=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&k.indexOf(`
|
|
205
|
+
`)==-1){var ee=f.fromPoints(q,q);ee.end.column+=k.length,this.session.remove(ee)}}else{var ee=this.getSelectionRange();q=this.session.remove(ee),this.clearSelection()}if(k==`
|
|
206
|
+
`||k==`\r
|
|
207
|
+
`){var se=B.getLine(q.row);if(q.column>se.search(/\S|$/)){var ae=se.substr(q.column).search(/\S|$/);B.doc.removeInLine(q.row,q.column,q.column+ae)}}this.clearSelection();var ne=q.column,ce=B.getState(q.row),se=B.getLine(q.row),de=U.checkOutdent(ce,se,k);if(B.insert(q,k),Q&&Q.selection&&(Q.selection.length==2?this.selection.setSelectionRange(new f(q.row,ne+Q.selection[0],q.row,ne+Q.selection[1])):this.selection.setSelectionRange(new f(q.row+Q.selection[0],Q.selection[1],q.row+Q.selection[2],Q.selection[3]))),this.$enableAutoIndent){if(B.getDocument().isNewLine(k)){var me=U.getNextLineIndent(ce,se.slice(0,q.column),B.getTabString());B.insert({row:q.row+1,column:0},me)}de&&U.autoOutdent(ce,B,q.row)}},$.prototype.autoIndent=function(){for(var k=this.session,R=k.getMode(),B=this.selection.isEmpty()?[new f(0,0,k.doc.getLength()-1,0)]:this.selection.getAllRanges(),U="",q="",Q="",ee=k.getTabString(),ae=0;ae<B.length;ae++)for(var ne=B[ae].start.row,ce=B[ae].end.row,se=ne;se<=ce;se++){se>0&&(U=k.getState(se-1),q=k.getLine(se-1),Q=R.getNextLineIndent(U,q,ee));var de=k.getLine(se),me=R.$getIndent(de);if(Q!==me){if(me.length>0){var $e=new f(se,0,se,me.length);k.remove($e)}Q.length>0&&k.insert({row:se,column:0},Q)}R.autoOutdent(U,k,se)}},$.prototype.onTextInput=function(k,R){if(!R)return this.keyBinding.onTextInput(k);this.startOperation({command:{name:"insertstring"}});var B=this.applyComposition.bind(this,k,R);this.selection.rangeCount?this.forEachSelection(B):B(),this.endOperation()},$.prototype.applyComposition=function(k,R){if(R.extendLeft||R.extendRight){var B=this.selection.getRange();B.start.column-=R.extendLeft,B.end.column+=R.extendRight,B.start.column<0&&(B.start.row--,B.start.column+=this.session.getLine(B.start.row).length+1),this.selection.setRange(B),!k&&!B.isEmpty()&&this.remove()}if((k||!this.selection.isEmpty())&&this.insert(k,!0),R.restoreStart||R.restoreEnd){var B=this.selection.getRange();B.start.column-=R.restoreStart,B.end.column-=R.restoreEnd,this.selection.setRange(B)}},$.prototype.onCommandKey=function(k,R,B){return this.keyBinding.onCommandKey(k,R,B)},$.prototype.setOverwrite=function(k){this.session.setOverwrite(k)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(k){this.setOption("scrollSpeed",k)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(k){this.setOption("dragDelay",k)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(k){this.setOption("selectionStyle",k)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(k){this.setOption("highlightActiveLine",k)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(k){this.setOption("highlightSelectedWord",k)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(k){this.renderer.setAnimatedScroll(k)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(k){this.renderer.setShowInvisibles(k)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(k){this.renderer.setDisplayIndentGuides(k)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(k){this.renderer.setHighlightIndentGuides(k)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(k){this.renderer.setShowPrintMargin(k)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(k){this.renderer.setPrintMarginColumn(k)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(k){this.setOption("readOnly",k)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(k){this.setOption("behavioursEnabled",k)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(k){this.setOption("wrapBehavioursEnabled",k)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(k){this.setOption("showFoldWidgets",k)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(k){this.selection.isEmpty()&&(k=="left"?this.selection.selectLeft():this.selection.selectRight());var R=this.getSelectionRange();if(this.getBehavioursEnabled()){var B=this.session,U=B.getState(R.start.row),q=B.getMode().transformAction(U,"deletion",this,B,R);if(R.end.column===0){var Q=B.getTextRange(R);if(Q[Q.length-1]==`
|
|
208
|
+
`){var ee=B.getLine(R.end.row);/^\s+$/.test(ee)&&(R.end.column=ee.length)}}q&&(R=q)}this.session.remove(R),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var k=this.getSelectionRange();k.start.column==k.end.column&&k.start.row==k.end.row&&(k.end.column=0,k.end.row++),this.session.remove(k),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var k=this.getCursorPosition();this.insert(`
|
|
209
|
+
`),this.moveCursorToPosition(k)},$.prototype.setGhostText=function(k,R){this.renderer.setGhostText(k,R)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var k=this.getCursorPosition(),R=k.column;if(R!==0){var B=this.session.getLine(k.row),U,q;R<B.length?(U=B.charAt(R)+B.charAt(R-1),q=new f(k.row,R-1,k.row,R+1)):(U=B.charAt(R-1)+B.charAt(R-2),q=new f(k.row,R-2,k.row,R)),this.session.replace(q,U),this.session.selection.moveToPosition(q.end)}}},$.prototype.toLowerCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),B=this.session.getTextRange(R);this.session.replace(R,B.toLowerCase()),this.selection.setSelectionRange(k)},$.prototype.toUpperCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),B=this.session.getTextRange(R);this.session.replace(R,B.toUpperCase()),this.selection.setSelectionRange(k)},$.prototype.indent=function(){var k=this.session,R=this.getSelectionRange();if(R.start.row<R.end.row){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}else if(R.start.column<R.end.column){var U=k.getTextRange(R);if(!/^\s+$/.test(U)){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}}var q=k.getLine(R.start.row),Q=R.start,ee=k.getTabSize(),ae=k.documentToScreenColumn(Q.row,Q.column);if(this.session.getUseSoftTabs())var ne=ee-ae%ee,ce=h.stringRepeat(" ",ne);else{for(var ne=ae%ee;q[R.start.column-1]==" "&≠)R.start.column--,ne--;this.selection.setSelectionRange(R),ce=" "}return this.insert(ce)},$.prototype.blockIndent=function(){var k=this.$getSelectedRows();this.session.indentRows(k.first,k.last," ")},$.prototype.blockOutdent=function(){var k=this.session.getSelection();this.session.outdentRows(k.getRange())},$.prototype.sortLines=function(){for(var k=this.$getSelectedRows(),R=this.session,B=[],U=k.first;U<=k.last;U++)B.push(R.getLine(U));B.sort(function(ee,ae){return ee.toLowerCase()<ae.toLowerCase()?-1:ee.toLowerCase()>ae.toLowerCase()?1:0});for(var q=new f(0,0,0,0),U=k.first;U<=k.last;U++){var Q=R.getLine(U);q.start.row=U,q.end.row=U,q.end.column=Q.length,R.replace(q,B[U-k.first])}},$.prototype.toggleCommentLines=function(){var k=this.session.getState(this.getCursorPosition().row),R=this.$getSelectedRows();this.session.getMode().toggleCommentLines(k,this.session,R.first,R.last)},$.prototype.toggleBlockComment=function(){var k=this.getCursorPosition(),R=this.session.getState(k.row),B=this.getSelectionRange();this.session.getMode().toggleBlockComment(R,this.session,B,k)},$.prototype.getNumberAt=function(k,R){var B=/[\-]?[0-9]+(?:\.[0-9]+)?/g;B.lastIndex=0;for(var U=this.session.getLine(k);B.lastIndex<R;){var q=B.exec(U);if(q.index<=R&&q.index+q[0].length>=R){var Q={value:q[0],start:q.index,end:q.index+q[0].length};return Q}}return null},$.prototype.modifyNumber=function(k){var R=this.selection.getCursor().row,B=this.selection.getCursor().column,U=new f(R,B-1,R,B),q=this.session.getTextRange(U);if(!isNaN(parseFloat(q))&&isFinite(q)){var Q=this.getNumberAt(R,B);if(Q){var ee=Q.value.indexOf(".")>=0?Q.start+Q.value.indexOf(".")+1:Q.end,ae=Q.start+Q.value.length-ee,ne=parseFloat(Q.value);ne*=Math.pow(10,ae),ee!==Q.end&&B<ee?k*=Math.pow(10,Q.end-B-1):k*=Math.pow(10,Q.end-B),ne+=k,ne/=Math.pow(10,ae);var ce=ne.toFixed(ae),se=new f(R,Q.start,R,Q.end);this.session.replace(se,ce),this.moveCursorTo(R,Math.max(Q.start+1,B+ce.length-Q.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var k=this.selection.getCursor().row,R=this.selection.getCursor().column;this.selection.selectWord();var B=this.getSelectedText(),U=this.selection.getWordRange().start.column,q=B.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Q=R-U-1;Q<0&&(Q=0);var ee=0,ae=0,ne=this;B.match(/[A-Za-z0-9_]+/)&&q.forEach(function(qe,it){ae=ee+qe.length,Q>=ee&&Q<=ae&&(B=qe,ne.selection.clearSelection(),ne.moveCursorTo(k,ee+U),ne.selection.selectTo(k,ae+U)),ee=ae});for(var ce=this.$toggleWordPairs,se,de=0;de<ce.length;de++)for(var me=ce[de],$e=0;$e<=1;$e++){var Me=+!$e,Te=B.match(new RegExp("^\\s?_?("+h.escapeRegExp(me[$e])+")\\s?$","i"));if(Te){var Ze=B.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(Te[1])+")($|\\s)","g"));Ze&&(se=B.replace(new RegExp(h.escapeRegExp(me[$e]),"i"),function(qe){var it=me[Me];return qe.toUpperCase()==qe?it=it.toUpperCase():qe.charAt(0).toUpperCase()==qe.charAt(0)&&(it=it.substr(0,0)+me[Me].charAt(0).toUpperCase()+it.substr(1)),it}),this.insert(se),se="")}}},$.prototype.findLinkAt=function(k,R){var B,U,q=this.session.getLine(k),Q=q.split(/((?:https?|ftp):\/\/[\S]+)/),ee=R;ee<0&&(ee=0);var ae=0,ne=0,ce;try{for(var se=p(Q),de=se.next();!de.done;de=se.next()){var me=de.value;if(ne=ae+me.length,ee>=ae&&ee<=ne&&me.match(/((?:https?|ftp):\/\/[\S]+)/)){ce=me.replace(/[\s:.,'";}\]]+$/,"");break}ae=ne}}catch($e){B={error:$e}}finally{try{de&&!de.done&&(U=se.return)&&U.call(se)}finally{if(B)throw B.error}}return ce},$.prototype.openLink=function(){var k=this.selection.getCursor(),R=this.findLinkAt(k.row,k.column);return R&&window.open(R,"_blank"),R!=null},$.prototype.removeLines=function(){var k=this.$getSelectedRows();this.session.removeFullLines(k.first,k.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var k=this.selection,R=this.session,B=k.getRange(),U=k.isBackwards();if(B.isEmpty()){var q=B.start.row;R.duplicateLines(q,q)}else{var Q=U?B.start:B.end,ee=R.insert(Q,R.getTextRange(B));B.start=Q,B.end=ee,k.setSelectionRange(B,U)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(k,R,B){return this.session.moveText(k,R,B)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(k,R){var B,U,q=this.selection;if(!q.inMultiSelectMode||this.inVirtualSelectionMode){var Q=q.toOrientedRange();B=this.$getSelectedRows(Q),U=this.session.$moveLines(B.first,B.last,R?0:k),R&&k==-1&&(U=0),Q.moveBy(U,0),q.fromOrientedRange(Q)}else{var ee=q.rangeList.ranges;q.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var ae=0,ne=0,ce=ee.length,se=0;se<ce;se++){var de=se;ee[se].moveBy(ae,0),B=this.$getSelectedRows(ee[se]);for(var me=B.first,$e=B.last;++se<ce;){ne&&ee[se].moveBy(ne,0);var Me=this.$getSelectedRows(ee[se]);if(R&&Me.first!=$e||!R&&Me.first>$e+1)break;$e=Me.last}for(se--,ae=this.session.$moveLines(me,$e,R?0:k),R&&k==-1&&(de=se+1);de<=se;)ee[de].moveBy(ae,0),de++;R||(ae=0),ne+=ae}q.fromOrientedRange(q.ranges[0]),q.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(k){return k=(k||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(k.start.row),last:this.session.getRowFoldEnd(k.end.row)}},$.prototype.onCompositionStart=function(k){this.renderer.showComposition(k)},$.prototype.onCompositionUpdate=function(k){this.renderer.setCompositionText(k)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(k){return k>=this.getFirstVisibleRow()&&k<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(k){return k>=this.renderer.getFirstFullyVisibleRow()&&k<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(k,R){var B=this.renderer,U=this.renderer.layerConfig,q=k*Math.floor(U.height/U.lineHeight);R===!0?this.selection.$moveSelection(function(){this.moveCursorBy(q,0)}):R===!1&&(this.selection.moveCursorBy(q,0),this.selection.clearSelection());var Q=B.scrollTop;B.scrollBy(0,q*U.lineHeight),R!=null&&B.scrollCursorIntoView(null,.5),B.animateScrolling(Q)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(k){this.renderer.scrollToRow(k)},$.prototype.scrollToLine=function(k,R,B,U){this.renderer.scrollToLine(k,R,B,U)},$.prototype.centerSelection=function(){var k=this.getSelectionRange(),R={row:Math.floor(k.start.row+(k.end.row-k.start.row)/2),column:Math.floor(k.start.column+(k.end.column-k.start.column)/2)};this.renderer.alignCursor(R,.5)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(k,R){this.selection.moveCursorTo(k,R)},$.prototype.moveCursorToPosition=function(k){this.selection.moveCursorToPosition(k)},$.prototype.jumpToMatching=function(k,R){var B=this.getCursorPosition(),U=new _(this.session,B.row,B.column),q=U.getCurrentToken(),Q=0;q&&q.type.indexOf("tag-name")!==-1&&(q=U.stepBackward());var ee=q||U.stepForward();if(ee){var ae,ne=!1,ce={},se=B.column-ee.start,de,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ee.value.match(/[{}()\[\]]/g)){for(;se<ee.value.length&&!ne;se++)if(me[ee.value[se]])switch(de=me[ee.value[se]]+"."+ee.type.replace("rparen","lparen"),isNaN(ce[de])&&(ce[de]=0),ee.value[se]){case"(":case"[":case"{":ce[de]++;break;case")":case"]":case"}":ce[de]--,ce[de]===-1&&(ae="bracket",ne=!0);break}}else ee.type.indexOf("tag-name")!==-1&&(isNaN(ce[ee.value])&&(ce[ee.value]=0),q.value==="<"&&Q>1?ce[ee.value]++:q.value==="</"&&ce[ee.value]--,ce[ee.value]===-1&&(ae="tag",ne=!0));ne||(q=ee,Q++,ee=U.stepForward(),se=0)}while(ee&&!ne);if(ae){var $e,Me;if(ae==="bracket")$e=this.session.getBracketRange(B),$e||($e=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()+se-1,U.getCurrentTokenRow(),U.getCurrentTokenColumn()+se-1),Me=$e.start,(R||Me.row===B.row&&Math.abs(Me.column-B.column)<2)&&($e=this.session.getBracketRange(Me)));else if(ae==="tag"){if(!ee||ee.type.indexOf("tag-name")===-1)return;if($e=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2,U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2),$e.compare(B.row,B.column)===0){var Te=this.session.getMatchingTags(B);Te&&(Te.openTag.contains(B.row,B.column)?($e=Te.closeTag,Me=$e.start):($e=Te.openTag,Te.closeTag.start.row===B.row&&Te.closeTag.start.column===B.column?Me=$e.end:Me=$e.start))}Me=Me||$e.start}Me=$e&&$e.cursor||Me,Me&&(k?$e&&R?this.selection.setRange($e):$e&&$e.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Me.row,Me.column):this.selection.moveTo(Me.row,Me.column))}}},$.prototype.gotoLine=function(k,R,B){this.selection.clearSelection(),this.session.unfold({row:k-1,column:R||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(k-1,R||0),this.isRowFullyVisible(k-1)||this.scrollToLine(k-1,!0,B)},$.prototype.navigateTo=function(k,R){this.selection.moveTo(k,R)},$.prototype.navigateUp=function(k){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(-k||-1,0)},$.prototype.navigateDown=function(k){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(k||1,0)},$.prototype.navigateLeft=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorLeft();else{var R=this.getSelectionRange().start;this.moveCursorToPosition(R)}this.clearSelection()},$.prototype.navigateRight=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorRight();else{var R=this.getSelectionRange().end;this.moveCursorToPosition(R)}this.clearSelection()},$.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},$.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},$.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},$.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},$.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},$.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},$.prototype.replace=function(k,R){R&&this.$search.set(R);var B=this.$search.find(this.session),U=0;return B&&(this.$tryReplace(B,k)&&(U=1),this.selection.setSelectionRange(B),this.renderer.scrollSelectionIntoView(B.start,B.end)),U},$.prototype.replaceAll=function(k,R){R&&this.$search.set(R);var B=this.$search.findAll(this.session),U=0;if(!B.length)return U;var q=this.getSelectionRange();this.selection.moveTo(0,0);for(var Q=B.length-1;Q>=0;--Q)this.$tryReplace(B[Q],k)&&U++;return this.selection.setSelectionRange(q),U},$.prototype.$tryReplace=function(k,R){var B=this.session.getTextRange(k);return R=this.$search.replace(B,R),R!==null?(k.end=this.session.replace(k,R),k):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(k,R,B){R||(R={}),typeof k=="string"||k instanceof RegExp?R.needle=k:typeof k=="object"&&g.mixin(R,k);var U=this.selection.getRange();R.needle==null&&(k=this.session.getTextRange(U)||this.$search.$options.needle,k||(U=this.session.getWordRange(U.start.row,U.start.column),k=this.session.getTextRange(U)),this.$search.set({needle:k})),this.$search.set(R),R.start||this.$search.set({start:U});var q=this.$search.find(this.session);if(R.preventScroll)return q;if(q)return this.revealRange(q,B),q;R.backwards?U.start=U.end:U.end=U.start,this.selection.setRange(U)},$.prototype.findNext=function(k,R){this.find({skipCurrent:!0,backwards:!1},k,R)},$.prototype.findPrevious=function(k,R){this.find(k,{skipCurrent:!0,backwards:!0},R)},$.prototype.revealRange=function(k,R){this.session.unfold(k),this.selection.setSelectionRange(k);var B=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(k.start,k.end,.5),R!==!1&&this.renderer.animateScrolling(B)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(k){k.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(k){if(k){var R,B=this,U=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var q=this.$scrollAnchor;q.style.cssText="position:absolute",this.container.insertBefore(q,this.container.firstChild);var Q=this.on("changeSelection",function(){U=!0}),ee=this.renderer.on("beforeRender",function(){U&&(R=B.renderer.container.getBoundingClientRect())}),ae=this.renderer.on("afterRender",function(){if(U&&R&&(B.isFocused()||B.searchBox&&B.searchBox.isFocused())){var ne=B.renderer,ce=ne.$cursorLayer.$pixelPos,se=ne.layerConfig,de=ce.top-se.offset;ce.top>=0&&de+R.top<0?U=!0:ce.top<se.height&&ce.top+R.top+se.lineHeight>window.innerHeight?U=!1:U=null,U!=null&&(q.style.top=de+"px",q.style.left=ce.left+"px",q.style.height=se.lineHeight+"px",q.scrollIntoView(U)),U=R=null}});this.setAutoScrollEditorIntoView=function(ne){ne||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",ae),this.renderer.off("beforeRender",ee))}}},$.prototype.$resetCursorStyle=function(){var k=this.$cursorStyle||"ace",R=this.renderer.$cursorLayer;R&&(R.setSmoothBlinking(/smooth/.test(k)),R.isBlinking=!this.$readOnly&&k!="wide",w.setCssClass(R.element,"ace_slim-cursors",/slim/.test(k)))},$.prototype.prompt=function(k,R,B){var U=this;M.loadModule("ace/ext/prompt",function(q){q.prompt(U,k,R,B)})},Object.defineProperty($.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new z(this.container))},set:function(k){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=k},enumerable:!1,configurable:!0}),$})();P.$uid=0,P.prototype.curOp=null,P.prototype.prevOp={},P.prototype.$mergeableCommands=["backspace","del","insertstring"],P.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],g.implement(P.prototype,b),M.defineOptions(P.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){var k=this;if(this.textInput.setReadOnly($),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(B){var U=!1;if(B&&B.type=="keydown"){if(B&&B.key&&!B.ctrlKey&&!B.metaKey&&(B.key==" "&&B.preventDefault(),U=B.key.length==1),!U)return}else B&&B.type!=="exec"&&(U=!0);if(U){var q=w.createElement("div");q.textContent=L("editor.tooltip.disable-editing","Editing is disabled"),k.hoverTooltip.isOpen||k.hoverTooltip.showForRange(k,k.getSelectionRange(),q)}else k.hoverTooltip&&k.hoverTooltip.isOpen&&k.hoverTooltip.hide()});var R=this.textInput.getElement();$?(E.addListener(R,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(E.removeListener(R,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback))}},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?O.attach(this):O.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?O.attach(this):O.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var k=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(k&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!k&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var R=w.createElement("div");R.className="ace_placeholder",R.textContent=this.$placeholder||"",this.renderer.placeholderNode=R,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!k&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var k={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(U){U.blur(),U.renderer.scroller.focus()},readOnly:!0},R=function(U){if(U.target==this.renderer.scroller&&U.keyCode===I.enter){U.preventDefault();var q=this.getCursorPosition().row;this.isRowVisible(q)||this.scrollToLine(q,!0,!0),this.focus()}},B;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(d.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",R.bind(this)),this.commands.addCommand(k),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",L("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",L("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),B||(B=new C(this)),B.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",R.bind(this)),this.commands.removeCommand(k),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),B&&B.removeListener())},initialValue:!1},textInputAriaLabel:{set:function($){this.$textInputAriaLabel=$},initialValue:""},enableMobileMenu:{set:function($){this.$enableMobileMenu=$},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var O={getText:function($,k){return(Math.abs($.selection.lead.row-k)||k+1+(k<9?"·":""))+""},getWidth:function($,k,R){return Math.max(k.toString().length,(R.lastRow+1).toString().length,2)*R.characterWidth},update:function($,k){k.renderer.$loop.schedule(k.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};r.Editor=P}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h,d){this.element=h,this.canvasHeight=d||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,d){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,d,a){var l=d.firstRowScreen*d.lineHeight,u=Math.floor(l/this.canvasHeight),c=a.documentToScreenRow(h,0)*d.lineHeight;return c-u*this.canvasHeight},w.prototype.computeLineHeight=function(h,d,a){return d.lineHeight*a.getRowLineCount(h)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(h){return this.cells[h]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var d=p.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.appendChild(d)}else this.cells.push(h),this.element.appendChild(h.element)},w.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var d=p.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(d,this.element.firstChild):this.element.appendChild(d)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},w.prototype.createCell=function(h,d,a,l){var u=this.cellCache.pop();if(!u){var c=p.createElement("div");l&&l(c),this.element.appendChild(c),u={element:c,text:"",row:h}}return u.row=h,u},w})();r.Lines=g}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,d=e("./lines").Lines,a=e("../config").nls,l=(function(){function c(i){this.$showCursorMarker=null,this.element=p.createElement("div"),this.element.className="ace_layer ace_gutter-layer",i.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new d(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(i){this.session&&this.session.off("change",this.$updateAnnotations),this.session=i,i&&i.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(i,s)},c.prototype.removeGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(i,s)},c.prototype.setAnnotations=function(i){this.$annotations=[];for(var s=0;s<i.length;s++){var f=i[s],b=f.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var N=f.text,M=f.text,_=f.type;N=N?w.escapeHTML(N):f.html||"",M=M||f.html||"",x.text.indexOf(N)===-1&&(x.text.push(N),x.type.push(_),x.displayText.push(M));var C=f.className;C?x.className=C:_==="error"?x.className=" ace_error":_==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":_==="info"&&!x.className?x.className=" ace_info":_==="hint"&&!x.className&&(x.className=" ace_hint")}},c.prototype.$updateAnnotations=function(i){if(this.$annotations.length){var s=i.start.row,f=i.end.row-s;if(f!==0)if(i.action=="remove")this.$annotations.splice(s,f+1,null);else{var b=new Array(f+1);b.unshift(s,1),this.$annotations.splice.apply(this.$annotations,b)}}},c.prototype.update=function(i){this.config=i;var s=this.session,f=i.firstRow,b=Math.min(i.lastRow+i.gutterOffset,s.getLength()-1);this.oldLastRow=b,this.config=i,this.$lines.moveContainer(i),this.$updateCursorRow();for(var x=s.getNextFoldLine(f),N=x?x.start.row:1/0,M=null,_=-1,C=f;;){if(C>N&&(C=x.end.row+1,x=s.getNextFoldLine(C,x),N=x?x.start.row:1/0),C>b){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}M=this.$lines.get(++_),M?M.row=C:(M=this.$lines.createCell(C,i,this.session,u),this.$lines.push(M)),this.$renderCell(M,i,x,C),C++}this._signal("afterRender"),this.$updateGutterWidth(i),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},c.prototype.$updateGutterWidth=function(i){var s=this.session,f=s.gutterRenderer||this.$renderer,b=s.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||s.$useWrapMode)&&(x=s.getLength()+b-1);var N=f?f.getWidth(s,x,i):x.toString().length*i.characterWidth,M=this.$padding||this.$computePadding();N+=M.left+M.right,N!==this.gutterWidth&&!isNaN(N)&&(this.gutterWidth=N,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",N))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},c.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!(this.$cursorCell&&this.$cursorCell.row==i)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var s=this.$lines.cells;this.$cursorCell=null;for(var f=0;f<s.length;f++){var b=s[f];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(f>0&&x&&x.start.row==s[f-1].row)b=s[f-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},c.prototype.$updateCursorMarker=function(){if(this.session){var i=this.session;this.$highlightElement||(this.$highlightElement=p.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var s=i.selection.cursor,f=this.config,b=this.$lines,x=f.firstRowScreen*f.lineHeight,N=Math.floor(x/b.canvasHeight),M=i.documentToScreenRow(s)*f.lineHeight,_=M-N*b.canvasHeight;p.setStyle(this.$highlightElement.style,"height",f.lineHeight+"px"),p.setStyle(this.$highlightElement.style,"top",_+"px")}},c.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=f,!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(b>f)for(var x=this.session.getFoldedRowCount(f+1,b);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLines(i,i.firstRow,s.firstRow-1)),f>b&&this.$lines.push(this.$renderLines(i,b+1,f)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},c.prototype.$renderLines=function(i,s,f){for(var b=[],x=s,N=this.session.getNextFoldLine(x),M=N?N.start.row:1/0;x>M&&(x=N.end.row+1,N=this.session.getNextFoldLine(x,N),M=N?N.start.row:1/0),!(x>f);){var _=this.$lines.createCell(x,i,this.session,u);this.$renderCell(_,i,N,x),b.push(_),x++}return b},c.prototype.$renderCell=function(i,s,f,b){var x=i.element,N=this.session,M=x.childNodes[0],_=x.childNodes[1],C=x.childNodes[2],L=x.childNodes[3],D=C.firstChild,I=N.$firstLineNumber,E=N.$breakpoints,z=N.$decorations,P=N.gutterRenderer||this.$renderer,O=this.$showFoldWidgets&&N.foldWidgets,$=f?f.start.row:Number.MAX_VALUE,k=s.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",B=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",U=(P?P.getText(N,b):b+I).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||f&&b<this.$cursorRow&&b>=$&&this.$cursorRow<=f.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),E[b]&&(R+=E[b]),z[b]&&(R+=z[b]),this.$annotations[b]&&b!==$&&(R+=this.$annotations[b].className),O){var q=O[b];q==null&&(q=O[b]=N.getFoldWidget(b))}if(q){var Q="ace_fold-widget ace_"+q,ee=q=="start"&&b==$&&b<f.end.row;if(ee){Q+=" ace_closed";for(var ae="",ne=!1,ce=b+1;ce<=f.end.row;ce++)if(this.$annotations[ce]){if(this.$annotations[ce].className===" ace_error"){ne=!0,ae=" ace_error_fold";break}this.$annotations[ce].className===" ace_security"?(ne=!0,ae=" ace_security_fold"):this.$annotations[ce].className===" ace_warning"&&ae!==" ace_security_fold"&&(ne=!0,ae=" ace_warning_fold")}R+=ae}else Q+=" ace_open";_.className!=Q&&(_.className=Q),p.setStyle(_.style,"height",k),p.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var se=N.getFoldWidgetRange(b);se?_.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[se.start.row+1,se.end.row+1])):f?_.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[f.start.row+1,f.end.row+1])):_.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),ee?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else _&&(p.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));var de=this.session.$gutterCustomWidgets[b];if(de?this.$addCustomWidget(b,de,i):L&&this.$removeCustomWidget(b,i),ne&&this.$showFoldedAnnotations){C.className="ace_gutter_annotation",D.className=B,D.className+=ae,p.setStyle(D.style,"height",k),p.setStyle(C.style,"display","block"),p.setStyle(C.style,"height",k);var me;switch(ae){case" ace_error_fold":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security_fold":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning_fold":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else if(this.$annotations[b]){C.className="ace_gutter_annotation",D.className=B,this.$useSvgGutterIcons?D.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),p.setStyle(D.style,"height",k),p.setStyle(C.style,"display","block"),p.setStyle(C.style,"height",k);var me;switch(this.$annotations[b].className){case" ace_error":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break;case" ace_info":me=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[U]);break;case" ace_hint":me=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else p.setStyle(C.style,"display","none"),C.removeAttribute("aria-label"),C.removeAttribute("role"),C.setAttribute("tabindex","0");return U!==M.data&&(M.data=U),x.className!=R&&(x.className=R),p.setStyle(i.element.style,"height",this.$lines.computeLineHeight(b,s,N)+"px"),p.setStyle(i.element.style,"top",this.$lines.computeLineTop(b,s,N)+"px"),i.text=U,C.style.display==="none"&&_.style.display==="none"&&!de?i.element.setAttribute("aria-hidden",!0):i.element.setAttribute("aria-hidden",!1),i},c.prototype.setHighlightGutterLine=function(i){this.$highlightGutterLine=i,!i&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},c.prototype.setShowLineNumbers=function(i){this.$renderer=!i&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(i){i?p.addCssClass(this.element,"ace_folding-enabled"):p.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=i,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$hideFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&p.setStyle(b.style,"display","none")}},c.prototype.$showFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&this.session.foldWidgets&&this.session.foldWidgets[f.row]&&p.setStyle(b.style,"display","inline-block")}},c.prototype.$getGutterCell=function(i){var s=this.$lines.cells,f=0,b=s.length-1;if(!(i<s[0].row||i>s[b].row)){for(;f<=b;){var x=Math.floor((f+b)/2),N=s[x];if(N.row>i)b=x-1;else if(N.row<i)f=x+1;else return N}return N}},c.prototype.$addCustomWidget=function(i,s,f){var b=s.className,x=s.label,N=s.title,M=s.callbacks;this.session.$gutterCustomWidgets[i]={className:b,label:x,title:N,callbacks:M},this.$hideFoldWidget(i,f);var _=f||this.$getGutterCell(i);if(_&&_.element){var C=_.element.querySelector(".ace_custom-widget");C&&C.remove(),C=p.createElement("span"),C.className="ace_custom-widget ".concat(b),C.setAttribute("tabindex","-1"),C.setAttribute("role","button"),C.setAttribute("aria-label",x),C.setAttribute("title",N),p.setStyle(C.style,"display","inline-block"),p.setStyle(C.style,"height","inherit"),M&&M.onClick&&C.addEventListener("click",function(L){M.onClick(L,i),L.stopPropagation()}),_.element.appendChild(C)}},c.prototype.$removeCustomWidget=function(i,s){delete this.session.$gutterCustomWidgets[i],this.$showFoldWidget(i,s);var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.querySelector(".ace_custom-widget");b&&f.element.removeChild(b)}},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var i=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(i.borderLeftWidth)||0)+(parseInt(i.paddingLeft)||0)+1,this.$padding.right=(parseInt(i.borderRightWidth)||0)+(parseInt(i.paddingRight)||0),this.$padding},c.prototype.getRegion=function(i){var s=this.$padding||this.$computePadding(),f=this.element.getBoundingClientRect();if(i.x<s.left+f.left)return"markers";if(this.$showFoldWidgets&&i.x>f.right-s.right)return"foldWidgets"},c})();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer=void 0,l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,g.implement(l.prototype,h);function u(c){var i=document.createTextNode("");c.appendChild(i);var s=p.createElement("span");c.appendChild(s);var f=p.createElement("span");c.appendChild(f);var b=p.createElement("span");return f.appendChild(b),c}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,v){var p=e("../range").Range,g=e("../lib/dom"),w=(function(){function d(a){this.element=g.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return d.prototype.setPadding=function(a){this.$padding=a},d.prototype.setSession=function(a){this.session=a},d.prototype.setMarkers=function(a){this.markers=a},d.prototype.elt=function(a,l){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=l,u.className=a},d.prototype.update=function(a){if(a){this.config=a,this.i=0;var l;for(var u in this.markers){var c=this.markers[u];if(!c.range){c.update(l,this,this.session,a);continue}var i=c.range.clipRows(a.firstRow,a.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),c.renderer){var s=this.$getTop(i.start.row,a),f=this.$padding+i.start.column*a.characterWidth;c.renderer(l,i,f,s,a)}else c.type=="fullLine"?this.drawFullLineMarker(l,i,c.clazz,a):c.type=="screenLine"?this.drawScreenLineMarker(l,i,c.clazz,a):i.isMultiLine()?c.type=="text"?this.drawTextMarker(l,i,c.clazz,a):this.drawMultiLineMarker(l,i,c.clazz,a):this.drawSingleLineMarker(l,i,c.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},d.prototype.$getTop=function(a,l){return(a-l.firstRowScreen)*l.lineHeight},d.prototype.drawTextMarker=function(a,l,u,c,i){for(var s=this.session,f=l.start.row,b=l.end.row,x=f,N=0,M=0,_=s.getScreenLastRowColumn(x),C=new p(x,l.start.column,x,M);x<=b;x++)C.start.row=C.end.row=x,C.start.column=x==f?l.start.column:s.getRowWrapIndent(x),C.end.column=_,N=M,M=_,_=x+1<b?s.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(a,C,u+(x==f?" ace_start":"")+" ace_br"+h(x==f||x==f+1&&l.start.column,N<M,M>_,x==b),c,x==b?0:1,i)},d.prototype.drawMultiLineMarker=function(a,l,u,c,i){var s=this.$padding,f=c.lineHeight,b=this.$getTop(l.start.row,c),x=s+l.start.column*c.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var N=l.clone();N.end.row=N.start.row,N.end.column=this.session.getLine(N.start.row).length,this.drawBidiSingleLineMarker(a,N,u+" ace_br1 ace_start",c,null,i)}else this.elt(u+" ace_br1 ace_start","height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+x+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var N=l.clone();N.start.row=N.end.row,N.start.column=0,this.drawBidiSingleLineMarker(a,N,u+" ace_br12",c,null,i)}else{b=this.$getTop(l.end.row,c);var M=l.end.column*c.characterWidth;this.elt(u+" ace_br12","height:"+f+"px;width:"+M+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}if(f=(l.end.row-l.start.row-1)*c.lineHeight,!(f<=0)){b=this.$getTop(l.start.row+1,c);var _=(l.start.column?1:0)|(l.end.column?0:8);this.elt(u+(_?" ace_br"+_:""),"height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}},d.prototype.drawSingleLineMarker=function(a,l,u,c,i,s){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(a,l,u,c,i,s);var f=c.lineHeight,b=(l.end.column+(i||0)-l.start.column)*c.characterWidth,x=this.$getTop(l.start.row,c),N=this.$padding+l.start.column*c.characterWidth;this.elt(u,"height:"+f+"px;width:"+b+"px;top:"+x+"px;left:"+N+"px;"+(s||""))},d.prototype.drawBidiSingleLineMarker=function(a,l,u,c,i,s){var f=c.lineHeight,b=this.$getTop(l.start.row,c),x=this.$padding,N=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);N.forEach(function(M){this.elt(u,"height:"+f+"px;width:"+(M.width+(i||0))+"px;top:"+b+"px;left:"+(x+M.left)+"px;"+(s||""))},this)},d.prototype.drawFullLineMarker=function(a,l,u,c,i){var s=this.$getTop(l.start.row,c),f=c.lineHeight;l.start.row!=l.end.row&&(f+=this.$getTop(l.end.row,c)-s),this.elt(u,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d.prototype.drawScreenLineMarker=function(a,l,u,c,i){var s=this.$getTop(l.start.row,c),f=c.lineHeight;this.elt(u,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d})();w.prototype.$padding=0;function h(d,a,l,u){return(d?1:0)|(a?2:0)|(l?4:0)|(u?8:0)}r.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,v){var p=new Set(["text","rparen","lparen"]);r.isTextToken=function(g){return p.has(g)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,d=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,l=e("./text_util").isTextToken,u=(function(){function c(i){this.dom=g,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",i.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return c.prototype.$updateEolChar=function(){var i=this.session.doc,s=i.getNewLineCharacter()==`
|
|
210
|
+
`&&i.getNewLineMode()!="windows",f=s?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=f)return this.EOL_CHAR=f,!0},c.prototype.setPadding=function(i){this.$padding=i,this.element.style.margin="0 "+i+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(i){this.$fontMetrics=i,this.$fontMetrics.on("changeCharacterSize",(function(s){this._signal("changeCharacterSize",s)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(i){this.session=i,i&&this.$computeTabString()},c.prototype.setShowInvisibles=function(i){return this.showInvisibles==i?!1:(this.showInvisibles=i,typeof i=="string"?(this.showSpaces=/tab/i.test(i),this.showTabs=/space/i.test(i),this.showEOL=/eol/i.test(i)):this.showSpaces=this.showTabs=this.showEOL=i,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(i){return this.displayIndentGuides==i?!1:(this.displayIndentGuides=i,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(i){return this.$highlightIndentGuides===i?!1:(this.$highlightIndentGuides=i,i)},c.prototype.$computeTabString=function(){var i=this.session.getTabSize();this.tabSize=i;for(var s=this.$tabStrings=[0],f=1;f<i+1;f++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=w.stringRepeat(this.TAB_CHAR,f),s.push(b)}else s.push(this.dom.createTextNode(w.stringRepeat(" ",f),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",N=this.showSpaces?" ace_invisible ace_invisible_space":"",M=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",C=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):M,b=this.dom.createElement("span");b.className=x+N,b.textContent=M,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+_,b.textContent=C,this.$tabStrings[" "]=b}},c.prototype.updateLines=function(i,s,f){if(this.config.lastRow!=i.lastRow||this.config.firstRow!=i.firstRow)return this.update(i);this.config=i;for(var b=Math.max(s,i.firstRow),x=Math.min(f,i.lastRow),N=this.element.childNodes,M=0,_=i.firstRow;_<b;_++){var C=this.session.getFoldLine(_);if(C)if(C.containsRow(b)){b=C.start.row;break}else _=C.end.row;M++}for(var L=!1,_=b,C=this.session.getNextFoldLine(_),D=C?C.start.row:1/0;_>D&&(_=C.end.row+1,C=this.session.getNextFoldLine(_,C),D=C?C.start.row:1/0),!(_>x);){var I=N[M++];if(I){this.dom.removeChildren(I),this.$renderLine(I,_,_==D?C:!1),L&&(I.style.top=this.$lines.computeLineTop(_,i,this.session)+"px");var E=i.lineHeight*this.session.getRowLength(_)+"px";I.style.height!=E&&(L=!0,I.style.height=E)}_++}if(L)for(;M<this.$lines.cells.length;){var z=this.$lines.cells[M++];z.element.style.top=this.$lines.computeLineTop(z.row,i,this.session)+"px"}},c.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=i.lastRow,b=s?s.lastRow:-1;if(!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(!s||s.lastRow<i.firstRow)return this.update(i);if(i.lastRow<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(s.lastRow>i.lastRow)for(var x=this.session.getFoldedRowCount(i.lastRow+1,s.lastRow);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLinesFragment(i,i.firstRow,s.firstRow-1)),i.lastRow>s.lastRow&&this.$lines.push(this.$renderLinesFragment(i,s.lastRow+1,i.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(i,s,f){for(var b=[],x=s,N=this.session.getNextFoldLine(x),M=N?N.start.row:1/0;x>M&&(x=N.end.row+1,N=this.session.getNextFoldLine(x,N),M=N?N.start.row:1/0),!(x>f);){var _=this.$lines.createCell(x,i,this.session),C=_.element;this.dom.removeChildren(C),g.setStyle(C.style,"height",this.$lines.computeLineHeight(x,i,this.session)+"px"),g.setStyle(C.style,"top",this.$lines.computeLineTop(x,i,this.session)+"px"),this.$renderLine(C,x,x==M?N:!1),this.$useLineGroups()?C.className="ace_line_group":C.className="ace_line",b.push(_),x++}return b},c.prototype.update=function(i){this.$lines.moveContainer(i),this.config=i;for(var s=i.firstRow,f=i.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(i,s,f))},c.prototype.$renderToken=function(i,s,f,b){for(var x=this,N=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,M=this.dom.createFragment(this.element),_,C=0;_=N.exec(b);){var L=_[1],D=_[2],I=_[3],E=_[4],z=_[5];if(!(!x.showSpaces&&D)){var P=C!=_.index?b.slice(C,_.index):"";if(C=_.index+_[0].length,P&&M.appendChild(this.dom.createTextNode(P,this.element)),L){var O=x.session.getScreenTabSize(s+_.index),$=x.$tabStrings[O].cloneNode(!0);$.charCount=1,M.appendChild($),s+=O-1}else if(D)if(x.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=w.stringRepeat(x.SPACE_CHAR,D.length),M.appendChild(k)}else M.appendChild(this.dom.createTextNode(D,this.element));else if(I){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=w.stringRepeat(x.SPACE_CHAR,I.length),M.appendChild(k)}else if(E){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=x.showSpaces?x.SPACE_CHAR:E,M.appendChild(k)}else if(z){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=z,M.appendChild(k)}}}if(M.appendChild(this.dom.createTextNode(C?b.slice(C):b,this.element)),l(f.type))i.appendChild(M);else{var R="ace_"+f.type.replace(/\./g," ace_"),k=this.dom.createElement("span");f.type=="fold"&&(k.style.width=f.value.length*this.config.characterWidth+"px",k.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),k.className=R,k.appendChild(M),i.appendChild(k)}return s+b.length},c.prototype.renderIndentGuide=function(i,s,f){var b=s.search(this.$indentGuideRe);if(b<=0||b>=f)return s;if(s[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,N=0;N<x;N++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}else if(s[0]==" "){for(var N=0;N<b;N++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}return this.$highlightIndentGuide(),s},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var i=this.session.doc.$lines;if(i){var s=this.session.selection.getCursor(),f=/^\s*/.exec(this.session.doc.getLine(s.row))[0].length,b=Math.floor(f/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:s.row};var x=this.session.$bracketHighlight;if(x){for(var N=this.session.$bracketHighlight.ranges,M=0;M<N.length;M++)if(s.row!==N[M].start.row){this.$highlightIndentGuideMarker.end=N[M].start.row+1,s.row>N[M].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&i[s.row]!==""&&s.column===i[s.row].length){this.$highlightIndentGuideMarker.dir=1;for(var M=s.row+1;M<i.length;M++){var _=i[M],C=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=M,C<=f))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var i=this.element.querySelectorAll(".ace_indent-guide-active"),s=0;s<i.length;s++)i[s].classList.remove("ace_indent-guide-active")},c.prototype.$setIndentGuideActive=function(i,s){var f=this.session.doc.getLine(i.row);if(f!==""){var b=i.element;if(i.element.classList&&i.element.classList.contains("ace_line_group"))if(i.element.childNodes.length>0)b=i.element.childNodes[0];else return;var x=b.childNodes;if(x){var N=x[s-1];N&&N.classList&&N.classList.contains("ace_indent-guide")&&N.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var i=this.$lines.cells;this.$clearActiveIndentGuide();var s=this.$highlightIndentGuideMarker.indentLevel;if(s!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var f=0;f<i.length;f++){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}else for(var f=i.length-1;f>=0;f--){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}}},c.prototype.$createLineElement=function(i){var s=this.dom.createElement("div");return s.className="ace_line",s.style.height=this.config.lineHeight+"px",s},c.prototype.$renderWrappedLine=function(i,s,f){var b=0,x=0,N=f[0],M=0,_=this.$createLineElement();i.appendChild(_);for(var C=0;C<s.length;C++){var L=s[C],D=L.value;if(C==0&&this.displayIndentGuides){if(b=D.length,D=this.renderIndentGuide(_,D,N),!D)continue;b-=D.length}if(b+D.length<N)M=this.$renderToken(_,M,L,D),b+=D.length;else{for(;b+D.length>=N;){M=this.$renderToken(_,M,L,D.substring(0,N-b)),D=D.substring(N-b),b=N,_=this.$createLineElement(),i.appendChild(_);var I=this.dom.createTextNode(w.stringRepeat(" ",f.indent),this.element);I.charCount=0,_.appendChild(I),x++,M=0,N=f[x]||Number.MAX_VALUE}D.length!=0&&(b+=D.length,M=this.$renderToken(_,M,L,D))}}f[f.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,M,null,"",!0)},c.prototype.$renderSimpleLine=function(i,s){for(var f=0,b=0;b<s.length;b++){var x=s[b],N=x.value;if(!(b==0&&this.displayIndentGuides&&(N=this.renderIndentGuide(i,N),!N))){if(f+N.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(i,f,x,N);f=this.$renderToken(i,f,x,N)}}},c.prototype.$renderOverflowMessage=function(i,s,f,b,x){f&&this.$renderToken(i,s,f,b.slice(0,this.MAX_LINE_LENGTH-s));var N=this.dom.createElement("span");N.className="ace_inline_button ace_keyword ace_toggle_wrap",N.textContent=x?"<hide>":"<click to see more...>",i.appendChild(N)},c.prototype.$renderLine=function(i,s,f){if(!f&&f!=!1&&(f=this.session.getFoldLine(s)),f)var b=this.$getFoldLineTokens(s,f);else var b=this.session.getTokens(s);var x=i;if(b.length){var N=this.session.getRowSplitData(s);if(N&&N.length){this.$renderWrappedLine(i,b,N);var x=i.lastChild}else{var x=i;this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x));if(this.showEOL&&x){f&&(s=f.end.row);var M=this.dom.createElement("span");M.className="ace_invisible ace_invisible_eol",M.textContent=s==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(M)}},c.prototype.$getFoldLineTokens=function(i,s){var f=this.session,b=[];function x(M,_,C){for(var L=0,D=0;D+M[L].value.length<_;)if(D+=M[L].value.length,L++,L==M.length)return;if(D!=_){var I=M[L].value.substring(_-D);I.length>C-_&&(I=I.substring(0,C-_)),b.push({type:M[L].type,value:I}),D=_+I.length,L+=1}for(;D<C&&L<M.length;){var I=M[L].value;I.length+D>C?b.push({type:M[L].type,value:I.substring(0,C-D)}):b.push(M[L]),D+=I.length,L+=1}}var N=f.getTokens(i);return s.walk(function(M,_,C,L,D){M!=null?b.push({type:"fold",value:M}):(D&&(N=f.getTokens(_)),N.length&&x(N,L,C))},s.end.row,this.session.getLine(s.end.row).length),b},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c})();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,p.implement(u.prototype,d),r.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var d=this.cursors,a=d.length;a--;)p.setStyle(d[a].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,d=h.length;d--;)h[d].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,p.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),p.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var d=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),d()},this.blinkInterval),d()}},w.prototype.getPixelPosition=function(h,d){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),l=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),u=(a.row-(d?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:u}},w.prototype.isCursorInView=function(h,d){return h.top>=0&&h.top<d.maxHeight},w.prototype.update=function(h){this.config=h;var d=this.session.$selectionMarkers,a=0,l=0;(d===void 0||d.length===0)&&(d=[{cursor:null}]);for(var a=0,u=d.length;a<u;a++){var c=this.getPixelPosition(d[a].cursor,!0);if(!((c.top>h.height+h.offset||c.top<0)&&a>1)){var i=this.cursors[l++]||this.addCursor(),s=i.style;this.drawCursor?this.drawCursor(i,c,h,d[a],this.session):this.isCursorInView(c,h)?(p.setStyle(s,"display","block"),p.translate(i,c.left,c.top),p.setStyle(s,"width",Math.round(h.characterWidth)+"px"),p.setStyle(s,"height",h.lineHeight+"px")):p.setStyle(s,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=c,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w})();g.prototype.$padding=0,g.prototype.drawCursor=null,r.Cursor=g}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(b[N]=x[N])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter,a=32768,l=(function(){function i(s,f){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+f,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return i.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},i})();g.implement(l.prototype,d);var u=(function(i){p(s,i);function s(f,b){var x=i.call(this,f,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=w.scrollbarWidth(f.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return s.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var f=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-f)/(this.coeff-f)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},s.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},s.prototype.setHeight=function(f){this.element.style.height=f+"px"},s.prototype.setScrollHeight=function(f){this.scrollHeight=f,f>a?(this.coeff=a/f,f=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=f+"px"},s.prototype.setScrollTop=function(f){this.scrollTop!=f&&(this.skipEvent=!0,this.scrollTop=f,this.element.scrollTop=f*this.coeff)},s})(l);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var c=(function(i){p(s,i);function s(f,b){var x=i.call(this,f,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return s.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},s.prototype.getHeight=function(){return this.isVisible?this.height:0},s.prototype.setWidth=function(f){this.element.style.width=f+"px"},s.prototype.setInnerWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollLeft=function(f){this.scrollLeft!=f&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=f)},s})(l);r.ScrollBar=u,r.ScrollBarV=u,r.ScrollBarH=c,r.VScrollBar=u,r.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var c=function(i,s){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(f[x]=b[x])},c(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");c(i,s);function f(){this.constructor=i}i.prototype=s===null?Object.create(s):(f.prototype=s.prototype,new f)}})(),g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
211
|
+
position: absolute;
|
|
212
|
+
background: rgba(128, 128, 128, 0.6);
|
|
213
|
+
-moz-box-sizing: border-box;
|
|
214
|
+
box-sizing: border-box;
|
|
215
|
+
border: 1px solid #bbb;
|
|
216
|
+
border-radius: 2px;
|
|
217
|
+
z-index: 8;
|
|
218
|
+
}
|
|
219
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
220
|
+
position: absolute;
|
|
221
|
+
z-index: 6;
|
|
222
|
+
background: none;
|
|
223
|
+
overflow: hidden!important;
|
|
224
|
+
}
|
|
225
|
+
.ace_editor>.ace_sb-v {
|
|
226
|
+
z-index: 6;
|
|
227
|
+
right: 0;
|
|
228
|
+
top: 0;
|
|
229
|
+
width: 12px;
|
|
230
|
+
}
|
|
231
|
+
.ace_editor>.ace_sb-v div {
|
|
232
|
+
z-index: 8;
|
|
233
|
+
right: 0;
|
|
234
|
+
width: 100%;
|
|
235
|
+
}
|
|
236
|
+
.ace_editor>.ace_sb-h {
|
|
237
|
+
bottom: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
height: 12px;
|
|
240
|
+
}
|
|
241
|
+
.ace_editor>.ace_sb-h div {
|
|
242
|
+
bottom: 0;
|
|
243
|
+
height: 100%;
|
|
244
|
+
}
|
|
245
|
+
.ace_editor>.ace_sb_grabbed {
|
|
246
|
+
z-index: 8;
|
|
247
|
+
background: #000;
|
|
248
|
+
}`,"ace_scrollbar.css",!1);var a=(function(){function c(i,s){this.element=w.createElement("div"),this.element.className="ace_sb"+s,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1},c})();g.implement(a.prototype,d);var l=(function(c){p(i,c);function i(s,f){var b=c.call(this,s,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=s,b.width=b.VScrollWidth,b.renderer=f,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientY,N=function(E){x=E.clientY},M=function(){clearInterval(D)},_=f.clientY,C=this.thumbTop,L=function(){if(x!==void 0){var E=b.scrollTopFromThumbTop(C+x-_);E!==b.scrollTop&&b._emit("scroll",{data:E})}};h.capture(this.inner,N,M);var D=setInterval(L,20);return h.preventDefault(f)}var I=f.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.height},i.prototype.scrollTopFromThumbTop=function(s){var f=s*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return f=f>>0,f<0?f=0:f>this.pageHeight-this.viewHeight&&(f=this.pageHeight-this.viewHeight),f},i.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},i.prototype.setHeight=function(s){this.height=Math.max(0,s),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},i.prototype.setScrollHeight=function(s,f){this.pageHeight===s&&!f||(this.pageHeight=s,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},i.prototype.setScrollTop=function(s){this.scrollTop=s,s<0&&(s=0),this.thumbTop=s*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},i})(a);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=(function(c){p(i,c);function i(s,f){var b=c.call(this,s,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=f,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientX,N=function(E){x=E.clientX},M=function(){clearInterval(D)},_=f.clientX,C=this.thumbLeft,L=function(){if(x!==void 0){var E=b.scrollLeftFromThumbLeft(C+x-_);E!==b.scrollLeft&&b._emit("scroll",{data:E})}};h.capture(this.inner,N,M);var D=setInterval(L,20);return h.preventDefault(f)}var I=f.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.isVisible?this.height:0},i.prototype.scrollLeftFromThumbLeft=function(s){var f=s*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return f=f>>0,f<0?f=0:f>this.pageWidth-this.viewWidth&&(f=this.pageWidth-this.viewWidth),f},i.prototype.setWidth=function(s){this.width=Math.max(0,s),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},i.prototype.setScrollWidth=function(s,f){this.pageWidth===s&&!f||(this.pageWidth=s,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},i.prototype.setScrollLeft=function(s){this.scrollLeft=s,s<0&&(s=0),this.thumbLeft=s*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},i})(a);u.prototype.setInnerWidth=u.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=u,r.VScrollBar=l,r.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,v){var p=e("./lib/event"),g=(function(){function w(h,d){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=d||window;var a=this;this._flush=function(l){a.pending=!1;var u=a.changes;if(u&&(p.blockIdle(100),a.changes=0,a.onRender(u)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return w.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var d=this.changes;return this.changes=0,d},w})();r.RenderLoop=g}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),d=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=512,u=typeof ResizeObserver=="function",c=200,i=(function(){function s(f){this.el=g.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=g.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=g.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),f.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",l),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()}return s.prototype.$setMeasureNodeStyles=function(f,b){f.width=f.height="auto",f.left=f.top="0px",f.visibility="hidden",f.position="absolute",f.whiteSpace="pre",d.isIE<8?f["font-family"]="inherit":f.font="inherit",f.overflow=b?"hidden":"visible"},s.prototype.checkForSizeChanges=function(f){if(f===void 0&&(f=this.$measureSizes()),f&&(this.$characterSize.width!==f.width||this.$characterSize.height!==f.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=f,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===f.width&&b.height===f.height,this._emit("changeCharacterSize",{data:f})}},s.prototype.$addObserver=function(){var f=this;this.$observer=new window.ResizeObserver(function(b){f.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},s.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var f=this;return this.$pollSizeChangesTimer=h.onIdle(function b(){f.checkForSizeChanges(),h.onIdle(b,500)},500)},s.prototype.setPolling=function(f){f?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},s.prototype.$measureSizes=function(f){var b={height:(f||this.$measureNode).clientHeight,width:(f||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},s.prototype.$measureCharWidth=function(f){this.$main.textContent=w.stringRepeat(f,l);var b=this.$main.getBoundingClientRect();return b.width/l},s.prototype.getCharacterWidth=function(f){var b=this.charSizes[f];return b===void 0&&(b=this.charSizes[f]=this.$measureCharWidth(f)/this.$characterSize.width),b},s.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},s.prototype.$getZoom=function(f){return!f||!f.parentElement?1:(Number(window.getComputedStyle(f).zoom)||1)*this.$getZoom(f.parentElement)},s.prototype.$initTransformMeasureNodes=function(){var f=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=g.buildDom([f(0,0),f(c,0),f(0,c),f(c,c)],this.el)},s.prototype.transformCoordinates=function(f,b){if(f){var x=this.$getZoom(this.el);f=C(1/x,f)}function N(Q,ee,ae){var ne=Q[1]*ee[0]-Q[0]*ee[1];return[(-ee[1]*ae[0]+ee[0]*ae[1])/ne,(+Q[1]*ae[0]-Q[0]*ae[1])/ne]}function M(Q,ee){return[Q[0]-ee[0],Q[1]-ee[1]]}function _(Q,ee){return[Q[0]+ee[0],Q[1]+ee[1]]}function C(Q,ee){return[Q*ee[0],Q*ee[1]]}this.els||this.$initTransformMeasureNodes();function L(Q){var ee=Q.getBoundingClientRect();return[ee.left,ee.top]}var D=L(this.els[0]),I=L(this.els[1]),E=L(this.els[2]),z=L(this.els[3]),P=N(M(z,I),M(z,E),M(_(I,E),_(z,D))),O=C(1+P[0],M(I,D)),$=C(1+P[1],M(E,D));if(b){var k=b,R=P[0]*k[0]/c+P[1]*k[1]/c+1,B=_(C(k[0],O),C(k[1],$));return _(C(1/R/c,B),D)}var U=M(f,D),q=N(M(O,C(P[0],U)),M($,C(P[1],U)),U);return C(c,q)},s})();i.prototype.$characterSize={width:0,height:0},p.implement(i.prototype,a),r.FontMetrics=i}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
249
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
|
250
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
|
251
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
252
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
253
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
254
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
255
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
256
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
257
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
258
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
259
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
260
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
261
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
262
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
263
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
.ace_editor {
|
|
267
|
+
position: relative;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
padding: 0;
|
|
270
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
271
|
+
direction: ltr;
|
|
272
|
+
text-align: left;
|
|
273
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
274
|
+
forced-color-adjust: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.ace_scroller {
|
|
278
|
+
position: absolute;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
top: 0;
|
|
281
|
+
bottom: 0;
|
|
282
|
+
background-color: inherit;
|
|
283
|
+
-ms-user-select: none;
|
|
284
|
+
-moz-user-select: none;
|
|
285
|
+
-webkit-user-select: none;
|
|
286
|
+
user-select: none;
|
|
287
|
+
cursor: text;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ace_content {
|
|
291
|
+
position: absolute;
|
|
292
|
+
box-sizing: border-box;
|
|
293
|
+
min-width: 100%;
|
|
294
|
+
contain: style size layout;
|
|
295
|
+
font-variant-ligatures: no-common-ligatures;
|
|
296
|
+
}
|
|
297
|
+
.ace_invisible {
|
|
298
|
+
font-variant-ligatures: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ace_keyboard-focus:focus {
|
|
302
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
303
|
+
outline: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ace_dragging .ace_scroller:before{
|
|
307
|
+
position: absolute;
|
|
308
|
+
top: 0;
|
|
309
|
+
left: 0;
|
|
310
|
+
right: 0;
|
|
311
|
+
bottom: 0;
|
|
312
|
+
content: '';
|
|
313
|
+
background: rgba(250, 250, 250, 0.01);
|
|
314
|
+
z-index: 1000;
|
|
315
|
+
}
|
|
316
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
|
317
|
+
background: rgba(0, 0, 0, 0.01);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ace_gutter {
|
|
321
|
+
position: absolute;
|
|
322
|
+
overflow : hidden;
|
|
323
|
+
width: auto;
|
|
324
|
+
top: 0;
|
|
325
|
+
bottom: 0;
|
|
326
|
+
left: 0;
|
|
327
|
+
cursor: default;
|
|
328
|
+
z-index: 4;
|
|
329
|
+
-ms-user-select: none;
|
|
330
|
+
-moz-user-select: none;
|
|
331
|
+
-webkit-user-select: none;
|
|
332
|
+
user-select: none;
|
|
333
|
+
contain: style size layout;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ace_gutter-active-line {
|
|
337
|
+
position: absolute;
|
|
338
|
+
left: 0;
|
|
339
|
+
right: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ace_scroller.ace_scroll-left:after {
|
|
343
|
+
content: "";
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 0;
|
|
346
|
+
right: 0;
|
|
347
|
+
bottom: 0;
|
|
348
|
+
left: 0;
|
|
349
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
350
|
+
pointer-events: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
354
|
+
position: absolute;
|
|
355
|
+
top: 0;
|
|
356
|
+
left: 0;
|
|
357
|
+
right: 0;
|
|
358
|
+
padding-left: 19px;
|
|
359
|
+
padding-right: 6px;
|
|
360
|
+
background-repeat: no-repeat;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
364
|
+
margin-left: -14px;
|
|
365
|
+
float: left;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
|
369
|
+
margin-left: -19px;
|
|
370
|
+
float: left;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
|
374
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
375
|
+
background-repeat: no-repeat;
|
|
376
|
+
background-position: 2px center;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
380
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
381
|
+
background-repeat: no-repeat;
|
|
382
|
+
background-position: 2px center;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
386
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
387
|
+
background-repeat: no-repeat;
|
|
388
|
+
background-position: 2px center;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
|
392
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ace_icon_svg.ace_error {
|
|
396
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
397
|
+
background-color: crimson;
|
|
398
|
+
}
|
|
399
|
+
.ace_icon_svg.ace_security {
|
|
400
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
401
|
+
background-color: crimson;
|
|
402
|
+
}
|
|
403
|
+
.ace_icon_svg.ace_warning {
|
|
404
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
405
|
+
background-color: darkorange;
|
|
406
|
+
}
|
|
407
|
+
.ace_icon_svg.ace_info {
|
|
408
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
409
|
+
background-color: royalblue;
|
|
410
|
+
}
|
|
411
|
+
.ace_icon_svg.ace_hint {
|
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
413
|
+
background-color: silver;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.ace_icon_svg.ace_error_fold {
|
|
417
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
418
|
+
background-color: crimson;
|
|
419
|
+
}
|
|
420
|
+
.ace_icon_svg.ace_security_fold {
|
|
421
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
422
|
+
background-color: crimson;
|
|
423
|
+
}
|
|
424
|
+
.ace_icon_svg.ace_warning_fold {
|
|
425
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
426
|
+
background-color: darkorange;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.ace_scrollbar {
|
|
430
|
+
contain: strict;
|
|
431
|
+
position: absolute;
|
|
432
|
+
right: 0;
|
|
433
|
+
bottom: 0;
|
|
434
|
+
z-index: 6;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ace_scrollbar-inner {
|
|
438
|
+
position: absolute;
|
|
439
|
+
cursor: text;
|
|
440
|
+
left: 0;
|
|
441
|
+
top: 0;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.ace_scrollbar-v{
|
|
445
|
+
overflow-x: hidden;
|
|
446
|
+
overflow-y: scroll;
|
|
447
|
+
top: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.ace_scrollbar-h {
|
|
451
|
+
overflow-x: scroll;
|
|
452
|
+
overflow-y: hidden;
|
|
453
|
+
left: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.ace_print-margin {
|
|
457
|
+
position: absolute;
|
|
458
|
+
height: 100%;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.ace_text-input {
|
|
462
|
+
position: absolute;
|
|
463
|
+
z-index: 0;
|
|
464
|
+
width: 0.5em;
|
|
465
|
+
height: 1em;
|
|
466
|
+
opacity: 0;
|
|
467
|
+
background: transparent;
|
|
468
|
+
-moz-appearance: none;
|
|
469
|
+
appearance: none;
|
|
470
|
+
border: none;
|
|
471
|
+
resize: none;
|
|
472
|
+
outline: none;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
font: inherit;
|
|
475
|
+
padding: 0 1px;
|
|
476
|
+
margin: 0 -1px;
|
|
477
|
+
contain: strict;
|
|
478
|
+
-ms-user-select: text;
|
|
479
|
+
-moz-user-select: text;
|
|
480
|
+
-webkit-user-select: text;
|
|
481
|
+
user-select: text;
|
|
482
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
|
483
|
+
white-space: pre!important;
|
|
484
|
+
}
|
|
485
|
+
.ace_text-input.ace_composition {
|
|
486
|
+
background: transparent;
|
|
487
|
+
color: inherit;
|
|
488
|
+
z-index: 1000;
|
|
489
|
+
opacity: 1;
|
|
490
|
+
}
|
|
491
|
+
.ace_composition_placeholder { color: transparent }
|
|
492
|
+
.ace_composition_marker {
|
|
493
|
+
border-bottom: 1px solid;
|
|
494
|
+
position: absolute;
|
|
495
|
+
border-radius: 0;
|
|
496
|
+
margin-top: 1px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
[ace_nocontext=true] {
|
|
500
|
+
transform: none!important;
|
|
501
|
+
filter: none!important;
|
|
502
|
+
clip-path: none!important;
|
|
503
|
+
mask : none!important;
|
|
504
|
+
contain: none!important;
|
|
505
|
+
perspective: none!important;
|
|
506
|
+
mix-blend-mode: initial!important;
|
|
507
|
+
z-index: auto;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.ace_layer {
|
|
511
|
+
z-index: 1;
|
|
512
|
+
position: absolute;
|
|
513
|
+
overflow: hidden;
|
|
514
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
515
|
+
word-wrap: normal;
|
|
516
|
+
white-space: pre;
|
|
517
|
+
height: 100%;
|
|
518
|
+
width: 100%;
|
|
519
|
+
box-sizing: border-box;
|
|
520
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
521
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
|
522
|
+
pointer-events: none;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ace_gutter-layer {
|
|
526
|
+
position: relative;
|
|
527
|
+
width: auto;
|
|
528
|
+
text-align: right;
|
|
529
|
+
pointer-events: auto;
|
|
530
|
+
height: 1000000px;
|
|
531
|
+
contain: style size layout;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.ace_text-layer {
|
|
535
|
+
font: inherit !important;
|
|
536
|
+
position: absolute;
|
|
537
|
+
height: 1000000px;
|
|
538
|
+
width: 1000000px;
|
|
539
|
+
contain: style size layout;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
543
|
+
contain: style size layout;
|
|
544
|
+
position: absolute;
|
|
545
|
+
top: 0;
|
|
546
|
+
left: 0;
|
|
547
|
+
right: 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.ace_hidpi .ace_text-layer,
|
|
551
|
+
.ace_hidpi .ace_gutter-layer,
|
|
552
|
+
.ace_hidpi .ace_content,
|
|
553
|
+
.ace_hidpi .ace_gutter {
|
|
554
|
+
contain: strict;
|
|
555
|
+
}
|
|
556
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
|
557
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
558
|
+
contain: strict;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.ace_cjk {
|
|
562
|
+
display: inline-block;
|
|
563
|
+
text-align: center;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.ace_cursor-layer {
|
|
567
|
+
z-index: 4;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.ace_cursor {
|
|
571
|
+
z-index: 4;
|
|
572
|
+
position: absolute;
|
|
573
|
+
box-sizing: border-box;
|
|
574
|
+
border-left: 2px solid;
|
|
575
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
576
|
+
transform: translatez(0);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.ace_multiselect .ace_cursor {
|
|
580
|
+
border-left-width: 1px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.ace_slim-cursors .ace_cursor {
|
|
584
|
+
border-left-width: 1px;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ace_overwrite-cursors .ace_cursor {
|
|
588
|
+
border-left-width: 0;
|
|
589
|
+
border-bottom: 1px solid;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ace_hidden-cursors .ace_cursor {
|
|
593
|
+
opacity: 0.2;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
597
|
+
opacity: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.ace_smooth-blinking .ace_cursor {
|
|
601
|
+
transition: opacity 0.18s;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.ace_animate-blinking .ace_cursor {
|
|
605
|
+
animation-duration: 1000ms;
|
|
606
|
+
animation-timing-function: step-end;
|
|
607
|
+
animation-name: blink-ace-animate;
|
|
608
|
+
animation-iteration-count: infinite;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
612
|
+
animation-duration: 1000ms;
|
|
613
|
+
animation-timing-function: ease-in-out;
|
|
614
|
+
animation-name: blink-ace-animate-smooth;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@keyframes blink-ace-animate {
|
|
618
|
+
from, to { opacity: 1; }
|
|
619
|
+
60% { opacity: 0; }
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
@keyframes blink-ace-animate-smooth {
|
|
623
|
+
from, to { opacity: 1; }
|
|
624
|
+
45% { opacity: 1; }
|
|
625
|
+
60% { opacity: 0; }
|
|
626
|
+
85% { opacity: 0; }
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
630
|
+
position: absolute;
|
|
631
|
+
z-index: 3;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ace_marker-layer .ace_selection {
|
|
635
|
+
position: absolute;
|
|
636
|
+
z-index: 5;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.ace_marker-layer .ace_bracket {
|
|
640
|
+
position: absolute;
|
|
641
|
+
z-index: 6;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.ace_marker-layer .ace_error_bracket {
|
|
645
|
+
position: absolute;
|
|
646
|
+
border-bottom: 1px solid #DE5555;
|
|
647
|
+
border-radius: 0;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ace_marker-layer .ace_active-line {
|
|
651
|
+
position: absolute;
|
|
652
|
+
z-index: 2;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.ace_marker-layer .ace_selected-word {
|
|
656
|
+
position: absolute;
|
|
657
|
+
z-index: 4;
|
|
658
|
+
box-sizing: border-box;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.ace_line .ace_fold {
|
|
662
|
+
box-sizing: border-box;
|
|
663
|
+
|
|
664
|
+
display: inline-block;
|
|
665
|
+
height: 11px;
|
|
666
|
+
margin-top: -2px;
|
|
667
|
+
vertical-align: middle;
|
|
668
|
+
|
|
669
|
+
background-image:
|
|
670
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
671
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
672
|
+
background-repeat: no-repeat, repeat-x;
|
|
673
|
+
background-position: center center, top left;
|
|
674
|
+
color: transparent;
|
|
675
|
+
|
|
676
|
+
border: 1px solid black;
|
|
677
|
+
border-radius: 2px;
|
|
678
|
+
|
|
679
|
+
cursor: pointer;
|
|
680
|
+
pointer-events: auto;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ace_dark .ace_fold {
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.ace_fold:hover{
|
|
687
|
+
background-image:
|
|
688
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
689
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ace_tooltip {
|
|
693
|
+
background-color: #f5f5f5;
|
|
694
|
+
border: 1px solid gray;
|
|
695
|
+
border-radius: 1px;
|
|
696
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
697
|
+
color: black;
|
|
698
|
+
padding: 3px 4px;
|
|
699
|
+
position: fixed;
|
|
700
|
+
z-index: 999999;
|
|
701
|
+
box-sizing: border-box;
|
|
702
|
+
cursor: default;
|
|
703
|
+
white-space: pre-wrap;
|
|
704
|
+
word-wrap: break-word;
|
|
705
|
+
line-height: normal;
|
|
706
|
+
font-style: normal;
|
|
707
|
+
font-weight: normal;
|
|
708
|
+
letter-spacing: normal;
|
|
709
|
+
pointer-events: none;
|
|
710
|
+
overflow: auto;
|
|
711
|
+
max-width: min(33em, 66vw);
|
|
712
|
+
overscroll-behavior: contain;
|
|
713
|
+
}
|
|
714
|
+
.ace_tooltip pre {
|
|
715
|
+
white-space: pre-wrap;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.ace_tooltip.ace_dark {
|
|
719
|
+
background-color: #636363;
|
|
720
|
+
color: #fff;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.ace_tooltip:focus {
|
|
724
|
+
outline: 1px solid #5E9ED6;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.ace_icon {
|
|
728
|
+
display: inline-block;
|
|
729
|
+
width: 18px;
|
|
730
|
+
vertical-align: top;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.ace_icon_svg {
|
|
734
|
+
display: inline-block;
|
|
735
|
+
width: 12px;
|
|
736
|
+
vertical-align: top;
|
|
737
|
+
-webkit-mask-repeat: no-repeat;
|
|
738
|
+
-webkit-mask-size: 12px;
|
|
739
|
+
-webkit-mask-position: center;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
743
|
+
padding-right: 13px;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.ace_fold-widget, .ace_custom-widget {
|
|
747
|
+
box-sizing: border-box;
|
|
748
|
+
|
|
749
|
+
margin: 0 -12px 0 1px;
|
|
750
|
+
display: none;
|
|
751
|
+
width: 11px;
|
|
752
|
+
vertical-align: top;
|
|
753
|
+
|
|
754
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
755
|
+
background-repeat: no-repeat;
|
|
756
|
+
background-position: center;
|
|
757
|
+
|
|
758
|
+
border-radius: 3px;
|
|
759
|
+
|
|
760
|
+
border: 1px solid transparent;
|
|
761
|
+
cursor: pointer;
|
|
762
|
+
pointer-events: auto;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.ace_custom-widget {
|
|
766
|
+
background: none;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ace_folding-enabled .ace_fold-widget {
|
|
770
|
+
display: inline-block;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.ace_fold-widget.ace_end {
|
|
774
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.ace_fold-widget.ace_closed {
|
|
778
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.ace_fold-widget:hover {
|
|
782
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
783
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
784
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.ace_fold-widget:active {
|
|
788
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
789
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
790
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Dark version for fold widgets
|
|
794
|
+
*/
|
|
795
|
+
.ace_dark .ace_fold-widget {
|
|
796
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
797
|
+
}
|
|
798
|
+
.ace_dark .ace_fold-widget.ace_end {
|
|
799
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
800
|
+
}
|
|
801
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
|
802
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
803
|
+
}
|
|
804
|
+
.ace_dark .ace_fold-widget:hover {
|
|
805
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
806
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
807
|
+
}
|
|
808
|
+
.ace_dark .ace_fold-widget:active {
|
|
809
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.ace_inline_button {
|
|
813
|
+
border: 1px solid lightgray;
|
|
814
|
+
display: inline-block;
|
|
815
|
+
margin: -1px 8px;
|
|
816
|
+
padding: 0 5px;
|
|
817
|
+
pointer-events: auto;
|
|
818
|
+
cursor: pointer;
|
|
819
|
+
}
|
|
820
|
+
.ace_inline_button:hover {
|
|
821
|
+
border-color: gray;
|
|
822
|
+
background: rgba(200,200,200,0.2);
|
|
823
|
+
display: inline-block;
|
|
824
|
+
pointer-events: auto;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.ace_fold-widget.ace_invalid {
|
|
828
|
+
background-color: #FFB4B4;
|
|
829
|
+
border-color: #DE5555;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
|
833
|
+
transition: opacity 0.4s ease 0.05s;
|
|
834
|
+
opacity: 0;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
838
|
+
transition: opacity 0.05s ease 0.05s;
|
|
839
|
+
opacity:1;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.ace_underline {
|
|
843
|
+
text-decoration: underline;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.ace_bold {
|
|
847
|
+
font-weight: bold;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.ace_nobold .ace_bold {
|
|
851
|
+
font-weight: normal;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.ace_italic {
|
|
855
|
+
font-style: italic;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
.ace_error-marker {
|
|
860
|
+
background-color: rgba(255, 0, 0,0.2);
|
|
861
|
+
position: absolute;
|
|
862
|
+
z-index: 9;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.ace_highlight-marker {
|
|
866
|
+
background-color: rgba(255, 255, 0,0.2);
|
|
867
|
+
position: absolute;
|
|
868
|
+
z-index: 8;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.ace_mobile-menu {
|
|
872
|
+
position: absolute;
|
|
873
|
+
line-height: 1.5;
|
|
874
|
+
border-radius: 4px;
|
|
875
|
+
-ms-user-select: none;
|
|
876
|
+
-moz-user-select: none;
|
|
877
|
+
-webkit-user-select: none;
|
|
878
|
+
user-select: none;
|
|
879
|
+
background: white;
|
|
880
|
+
box-shadow: 1px 3px 2px grey;
|
|
881
|
+
border: 1px solid #dcdcdc;
|
|
882
|
+
color: black;
|
|
883
|
+
}
|
|
884
|
+
.ace_dark > .ace_mobile-menu {
|
|
885
|
+
background: #333;
|
|
886
|
+
color: #ccc;
|
|
887
|
+
box-shadow: 1px 3px 2px grey;
|
|
888
|
+
border: 1px solid #444;
|
|
889
|
+
|
|
890
|
+
}
|
|
891
|
+
.ace_mobile-button {
|
|
892
|
+
padding: 2px;
|
|
893
|
+
cursor: pointer;
|
|
894
|
+
overflow: hidden;
|
|
895
|
+
}
|
|
896
|
+
.ace_mobile-button:hover {
|
|
897
|
+
background-color: #eee;
|
|
898
|
+
opacity:1;
|
|
899
|
+
}
|
|
900
|
+
.ace_mobile-button:active {
|
|
901
|
+
background-color: #ddd;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.ace_placeholder {
|
|
905
|
+
position: relative;
|
|
906
|
+
font-family: arial;
|
|
907
|
+
transform: scale(0.9);
|
|
908
|
+
transform-origin: left;
|
|
909
|
+
white-space: pre;
|
|
910
|
+
opacity: 0.7;
|
|
911
|
+
margin: 0 10px;
|
|
912
|
+
z-index: 1;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.ace_ghost_text {
|
|
916
|
+
opacity: 0.5;
|
|
917
|
+
font-style: italic;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.ace_ghost_text_container > div {
|
|
921
|
+
white-space: pre;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.ghost_text_line_wrapped::after {
|
|
925
|
+
content: "↩";
|
|
926
|
+
position: absolute;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
|
930
|
+
margin: 0px 4px
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.ace_screenreader-only {
|
|
934
|
+
position:absolute;
|
|
935
|
+
left:-10000px;
|
|
936
|
+
top:auto;
|
|
937
|
+
width:1px;
|
|
938
|
+
height:1px;
|
|
939
|
+
overflow:hidden;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.ace_hidden_token {
|
|
943
|
+
display: none;
|
|
944
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=(function(){function d(a,l){this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(a)}return d.prototype.$createCanvas=function(){this.canvas=p.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},d.prototype.setScrollBarV=function(a){this.$createCanvas(),this.scrollbarV=a,a.element.appendChild(this.canvas),this.setDimensions()},d.prototype.$updateDecorators=function(a){if(typeof this.canvas.getContext!="function")return;var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(a);var u=this.canvas.getContext("2d");function c(O,$){return O.priority<$.priority?-1:O.priority>$.priority?1:0}var i=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),i){var s={info:1,warning:2,error:3};i.forEach(function(O){O.priority=s[O.type]||null}),i=i.sort(c);for(var f=0;f<i.length;f++){var b=i[f].row,x=this.getVerticalOffsetForRow(b),N=x+this.lineHeight,M=Math.round(this.heightRatio*x),_=Math.round(this.heightRatio*N),C=Math.round((M+_)/2),L=_-C;L<this.halfMinDecorationHeight&&(L=this.halfMinDecorationHeight),C-L<0&&(C=L),C+L>this.canvasHeight&&(C=this.canvasHeight-L);var D=C-L,I=C+L,E=I-D;u.fillStyle=l[i[f].type]||null,u.fillRect(0,D,Math.round(this.oneZoneWidth-1),E)}}var z=this.renderer.session.selection.getCursor();if(z){var P=Math.round(this.getVerticalOffsetForRow(z.row)*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,P,this.canvasWidth,2)}},d.prototype.getVerticalOffsetForRow=function(a){a=a|0;var l=this.renderer.session.documentToScreenRow(a,0)*this.lineHeight;return l},d.prototype.setDimensions=function(a){a=a||this.renderer.layerConfig,this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},d.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},d.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},d})();g.implement(h.prototype,w),r.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),d=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,i=e("./scrollbar").VScrollBar,s=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,b=e("./renderloop").RenderLoop,x=e("./layer/font_metrics").FontMetrics,N=e("./lib/event_emitter").EventEmitter,M=e("./css/editor-css"),_=e("./layer/decorators").Decorator,C=e("./lib/useragent"),L=e("./layer/text_util").isTextToken;g.importCssString(M,"ace_editor.css",!1);var D=(function(){function I(E,z){var P=this;this.container=E||g.createElement("div"),g.addCssClass(this.container,"ace_editor"),g.HI_DPI&&g.addCssClass(this.container,"ace_hidpi"),this.setTheme(z),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=g.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=g.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=g.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new d(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var O=this.$textLayer=new l(this.content);this.canvas=O.element,this.$markerFront=new a(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new i(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function($){P.$scrollAnimation||P.session.setScrollTop($.data-P.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){P.$scrollAnimation||P.session.setScrollLeft($.data-P.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){P.updateCharacterSize(),P.onResize(!0,P.gutterWidth,P.$size.width,P.$size.height),P._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!C.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return I.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),g.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},I.prototype.updateLines=function(E,z,P){if(z===void 0&&(z=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<z&&(this.$changedLines.lastRow=z)):this.$changedLines={firstRow:E,lastRow:z},this.$changedLines.lastRow<this.layerConfig.firstRow)if(P)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(E){E?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(E,z,P,O){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var $=this.container;O||(O=$.clientHeight||$.scrollHeight),!O&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",O=$.clientHeight||$.scrollHeight),P||(P=$.clientWidth||$.scrollWidth);var k=this.$updateCachedSize(E,z,P,O);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!P&&!O)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?this.$renderChanges(k|this.$changes,!0):this.$loop.schedule(k|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(E,z,P,O){O-=this.$extraHeight||0;var $=0,k=this.$size,R={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(O&&(E||k.height!=O)&&(k.height=O,$|=this.CHANGE_SIZE,k.scrollerHeight=k.height,this.$horizScroll&&(k.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(k.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),P&&(E||k.width!=P)){$|=this.CHANGE_SIZE,k.width=P,z==null&&(z=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=z,g.setStyle(this.scrollBarH.element.style,"left",z+"px"),g.setStyle(this.scroller.style,"left",z+this.margin.left+"px"),k.scrollerWidth=Math.max(0,P-z-this.scrollBarV.getWidth()-this.margin.h),g.setStyle(this.$gutter.style,"left",this.margin.left+"px");var B=this.scrollBarV.getWidth()+"px";g.setStyle(this.scrollBarH.element.style,"right",B),g.setStyle(this.scroller.style,"right",B),g.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&($|=this.CHANGE_FULL)}return k.$dirty=!P||!O,$&&this._signal("resize",R),$},I.prototype.onGutterResize=function(E){var z=this.$showGutter?E:0;z!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,z,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},I.prototype.adjustWrapLimit=function(){var E=this.$size.scrollerWidth-this.$padding*2,z=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(z,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},I.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},I.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=g.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=g.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,this.content.firstChild)}var z=this.$printMarginEl.style;z.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",z.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var E=this.textarea.style,z=this.$composition;if(!this.$keepTextAreaAtCursor&&!z){g.translate(this.textarea,-100,0);return}var P=this.$cursorLayer.$pixelPos;if(P){z&&z.markerRange&&(P=this.$cursorLayer.getPixelPosition(z.markerRange.start,!0));var O=this.layerConfig,$=P.top,k=P.left;$-=O.offset;var R=z&&z.useTextareaForIME||C.isMobile?this.lineHeight:1;if($<0||$>O.height-R){g.translate(this.textarea,0,0);return}var B=1,U=this.$size.height-R;if(!z)$+=this.lineHeight;else if(z.useTextareaForIME){var q=this.textarea.value;B=this.characterWidth*this.session.$getStringScreenWidth(q)[0]}else $+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-B&&(k=this.$size.scrollerWidth-B),k+=this.gutterWidth+this.margin.left,g.setStyle(E,"height",R+"px"),g.setStyle(E,"width",B+"px"),g.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-B),Math.min($,U))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var E=this.layerConfig,z=E.lastRow,P=this.session.documentToScreenRow(z,0)*E.lineHeight;return P-this.session.getScrollTop()>E.height-E.lineHeight?z-1:z},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(E,z,P,O){var $=this.scrollMargin;$.top=E|0,$.bottom=z|0,$.right=O|0,$.left=P|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},I.prototype.setMargin=function(E,z,P,O){var $=this.margin;$.top=E|0,$.bottom=z|0,$.right=O|0,$.left=P|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(E){this.setOption("hScrollBarAlwaysVisible",E)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},I.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,z=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(z-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-z&&(E=this.scrollTop+z,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(E,z){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!z){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var P=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=this.$computeLayerConfig()|this.$loop.clear(),P.firstRow!=this.layerConfig.firstRow&&P.firstRowScreen==this.layerConfig.firstRowScreen){var O=this.scrollTop+(P.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;O>0&&(this.scrollTop=O,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}P=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),g.translate(this.content,-this.scrollLeft,-P.offset);var $=P.width+2*this.$padding+"px",k=P.minHeight+"px";g.setStyle(this.content.style,"width",$),g.setStyle(this.content.style,"height",k)}if(E&this.CHANGE_H_SCROLL&&(g.translate(this.content,-this.scrollLeft,-P.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),E&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update(P):this.$textLayer.scrollLines(P),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update(P):this.$gutterLayer.scrollLines(P)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update(P),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(P),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(P),this._signal("afterRender",E)},I.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,z=this.$maxLines*this.lineHeight,P=Math.min(z,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(P+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&P>this.$maxPixelHeight&&(P=this.$maxPixelHeight);var O=P<=2*this.lineHeight,$=!O&&E>z;if(P!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var k=this.container.clientWidth;this.container.style.height=P+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,P),this.desiredHeight=P,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var E=this.session,z=this.$size,P=z.height<=2*this.lineHeight,O=this.session.getScreenLength(),$=O*this.lineHeight,k=this.$getLongestLine(),R=!P&&(this.$hScrollBarAlwaysVisible||z.scrollerWidth-k-2*this.$padding<0),B=this.$horizScroll!==R;B&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var U=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),P=z.height<=2*this.lineHeight);var q=z.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(z.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=Q;var ee=this.scrollMargin;this.session.setScrollTop(Math.max(-ee.top,Math.min(this.scrollTop,$-z.scrollerHeight+ee.bottom))),this.session.setScrollLeft(Math.max(-ee.left,Math.min(this.scrollLeft,k+2*this.$padding-z.scrollerWidth+ee.right)));var ae=!P&&(this.$vScrollBarAlwaysVisible||z.scrollerHeight-$+Q<0||this.scrollTop>ee.top),ne=U!==ae;ne&&(this.$vScroll=ae,this.scrollBarV.setVisible(ae));var ce=this.scrollTop%this.lineHeight,se=Math.ceil(q/this.lineHeight)-1,de=Math.max(0,Math.round((this.scrollTop-ce)/this.lineHeight)),me=de+se,$e,Me,Te=this.lineHeight;de=E.screenToDocumentRow(de,0);var Ze=E.getFoldLine(de);Ze&&(de=Ze.start.row),$e=E.documentToScreenRow(de,0),Me=E.getRowLength(de)*Te,me=Math.min(E.screenToDocumentRow(me,0),E.getLength()-1),q=z.scrollerHeight+E.getRowLength(me)*Te+Me,ce=this.scrollTop-$e*Te,ce<0&&$e>0&&($e=Math.max(0,$e+Math.floor(ce/Te)),ce=this.scrollTop-$e*Te);var qe=0;return(this.layerConfig.width!=k||B)&&(qe=this.CHANGE_H_SCROLL),(B||ne)&&(qe|=this.$updateCachedSize(!0,this.gutterWidth,z.width,z.height),this._signal("scrollbarVisibilityChanged"),ne&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:de,firstRowScreen:$e,lastRow:me,lineHeight:Te,characterWidth:this.characterWidth,minHeight:q,maxHeight:$,offset:ce,gutterOffset:Te?Math.max(0,Math.ceil((ce+z.height-z.scrollerHeight)/Te)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),qe},I.prototype.$updateLines=function(){if(this.$changedLines){var E=this.$changedLines.firstRow,z=this.$changedLines.lastRow;this.$changedLines=null;var P=this.layerConfig;if(!(E>P.lastRow+1)&&!(z<P.firstRow)){if(z===1/0){this.$showGutter&&this.$gutterLayer.update(P),this.$textLayer.update(P);return}return this.$textLayer.updateLines(P,E,z),!0}}},I.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(E,z){this.$gutterLayer.addGutterDecoration(E,z)},I.prototype.removeGutterDecoration=function(E,z){this.$gutterLayer.removeGutterDecoration(E,z)},I.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(E,z,P){this.scrollCursorIntoView(E,P),this.scrollCursorIntoView(z,P)},I.prototype.scrollCursorIntoView=function(E,z,P){if(this.$size.scrollerHeight!==0){var O=this.$cursorLayer.getPixelPosition(E),$=O.left,k=O.top,R=P&&P.top||0,B=P&&P.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var U=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;U+R>k?(z&&U+R>k+this.lineHeight&&(k-=z*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):U+this.$size.scrollerHeight-B<k+this.lineHeight&&(z&&U+this.$size.scrollerHeight-B<k-this.lineHeight&&(k+=z*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+B-this.$size.scrollerHeight));var q=this.scrollLeft,Q=2*this.layerConfig.characterWidth;$-Q<q?($-=Q,$<this.$padding+Q&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=Q,q+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):q<=this.$padding&&$-q<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(E){this.session.setScrollTop(E*this.lineHeight)},I.prototype.alignCursor=function(E,z){typeof E=="number"&&(E={row:E,column:0});var P=this.$cursorLayer.getPixelPosition(E),O=this.$size.scrollerHeight-this.lineHeight,$=P.top-O*(z||0);return this.session.setScrollTop($),$},I.prototype.$calcSteps=function(E,z){var P=0,O=this.STEPS,$=[],k=function(R,B,U){return U*(Math.pow(R-1,3)+1)+B};for(P=0;P<O;++P)$.push(k(P/this.STEPS,E,z-E));return $},I.prototype.scrollToLine=function(E,z,P,O){var $=this.$cursorLayer.getPixelPosition({row:E,column:0}),k=$.top;z&&(k-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(k),P!==!1&&this.animateScrolling(R,O)},I.prototype.animateScrolling=function(E,z){var P=this.scrollTop;if(!this.$animatedScroll)return;var O=this;if(E==P)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(E=$[0],E==P))return}var k=O.$calcSteps(E,P);this.$scrollAnimation={from:E,to:P,steps:k},clearInterval(this.$timer),O.session.setScrollTop(k.shift()),O.session.$scrollTop=P;function R(){O.$timer=clearInterval(O.$timer),O.$scrollAnimation=null,O.$stopAnimation=!1,z&&z()}this.$timer=setInterval(function(){if(O.$stopAnimation){R();return}if(!O.session)return clearInterval(O.$timer);k.length?(O.session.setScrollTop(k.shift()),O.session.$scrollTop=P):P!=null?(O.session.$scrollTop=-1,O.session.setScrollTop(P),P=null):R()},10)},I.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},I.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(E,z){this.session.setScrollTop(z),this.session.setScrollLeft(E)},I.prototype.scrollBy=function(E,z){z&&this.session.setScrollTop(this.session.getScrollTop()+z),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},I.prototype.isScrollableBy=function(E,z){if(z<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||z>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(E,z){var P;if(this.$hasCssTransforms){P={top:0,left:0};var O=this.$fontMetrics.transformCoordinates([E,z]);E=O[1]-this.gutterWidth-this.margin.left,z=O[0]}else P=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-P.left-this.$padding,k=$/this.characterWidth,R=Math.floor((z+this.scrollTop-P.top)/this.lineHeight),B=this.$blockCursor?Math.floor(k):Math.round(k);return{row:R,column:B,side:k-B>0?1:-1,offsetX:$}},I.prototype.screenToTextCoordinates=function(E,z){var P;if(this.$hasCssTransforms){P={top:0,left:0};var O=this.$fontMetrics.transformCoordinates([E,z]);E=O[1]-this.gutterWidth-this.margin.left,z=O[0]}else P=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-P.left-this.$padding,k=$/this.characterWidth,R=this.$blockCursor?Math.floor(k):Math.round(k),B=Math.floor((z+this.scrollTop-P.top)/this.lineHeight);return this.session.screenToDocumentPosition(B,Math.max(R,0),$)},I.prototype.textToScreenCoordinates=function(E,z){var P=this.scroller.getBoundingClientRect(),O=this.session.documentToScreenPosition(E,z),$=this.$padding+(this.session.$bidiHandler.isBidiRow(O.row,E)?this.session.$bidiHandler.getPosLeft(O.column):Math.round(O.column*this.characterWidth)),k=O.row*this.lineHeight;return{pageX:P.left+$-this.scrollLeft,pageY:P.top+k-this.scrollTop}},I.prototype.visualizeFocus=function(){g.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){g.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(g.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(E){var z=this.session.selection.cursor;this.addToken(E,"composition_placeholder",z.row,z.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),g.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(E,z){var P=this.session.selection.cursor,O=z||{row:P.row,column:P.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(E,O);this.addToken($[0].text,"ghost_text",O.row,O.column),this.$ghostText={text:E,position:{row:O.row,column:O.column}};var k=g.createElement("div");if($.length>1){var R=this.hideTokensAfterPosition(O.row,O.column),B;$.slice(1).forEach(function(ne){var ce=g.createElement("div"),se=g.createElement("span");se.className="ace_ghost_text",ne.wrapped&&(ce.className="ghost_text_line_wrapped"),ne.text.length===0&&(ne.text=" "),se.appendChild(g.createTextNode(ne.text)),ce.appendChild(se),k.appendChild(ce),B=ce}),R.forEach(function(ne){var ce=g.createElement("span");L(ne.type)||(ce.className="ace_"+ne.type.replace(/\./g," ace_")),ce.appendChild(g.createTextNode(ne.value)),B.appendChild(ce)}),this.$ghostTextWidget={el:k,row:O.row,column:O.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var U=this.$cursorLayer.getPixelPosition(O,!0),q=this.container,Q=q.getBoundingClientRect().height,ee=$.length*this.lineHeight,ae=ee<Q-U.top;if(ae)return;ee<Q?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(O.row)}},I.prototype.$calculateWrappedTextChunks=function(E,z){var P=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(P/this.characterWidth)-2;O=O<=0?60:O;for(var $=E.split(/\r?\n/),k=[],R=0;R<$.length;R++){var B=this.session.$getDisplayTokens($[R],z.column),U=this.session.$computeWrapSplits(B,O,this.session.$tabSize);if(U.length>0){var q=0;U.push($[R].length);for(var Q=0;Q<U.length;Q++){var ee=$[R].slice(q,U[Q]);k.push({text:ee,wrapped:!0}),q=U[Q]}}else k.push({text:$[R],wrapped:!1})}return k},I.prototype.removeGhostText=function(){if(this.$ghostText){var E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(E,z,P,O){var $=this.session;$.bgTokenizer.lines[P]=null;var k={type:z,value:E},R=$.getTokens(P);if(O==null||!R.length)R.push(k);else for(var B=0,U=0;U<R.length;U++){var q=R[U];if(B+=q.value.length,O<=B){var Q=q.value.length-(B-O),ee=q.value.slice(0,Q),ae=q.value.slice(Q);R.splice(U,1,{type:q.type,value:ee},k,{type:q.type,value:ae});break}}this.updateLines(P,P)},I.prototype.hideTokensAfterPosition=function(E,z){for(var P=this.session.getTokens(E),O=0,$=!1,k=[],R=0;R<P.length;R++){var B=P[R];if(O+=B.value.length,B.type!=="ghost_text"){if($){k.push({type:B.type,value:B.value}),B.type="hidden_token";continue}O===z&&($=!0)}}return this.updateLines(E,E),k},I.prototype.removeExtraToken=function(E,z){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},I.prototype.setTheme=function(E,z){var P=this;if(this.$themeId=E,P._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var O=E||this.$options.theme.initialValue;h.loadModule(["theme",O],$)}else $(E);function $(k){if(P.$themeId!=E)return z&&z();if(!k||!k.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");k.$id&&(P.$themeId=k.$id),g.importCssString(k.cssText,k.cssClass,P.container),P.theme&&g.removeCssClass(P.container,P.theme.cssClass);var R="padding"in k?k.padding:"padding"in(P.theme||{})?4:P.$padding;if(P.$padding&&R!=P.$padding&&P.setPadding(R),P.$gutterLayer){var B=k.$showGutterCursorMarker;B&&!P.$gutterLayer.$showCursorMarker?P.$gutterLayer.$showCursorMarker="theme":!B&&P.$gutterLayer.$showCursorMarker=="theme"&&(P.$gutterLayer.$showCursorMarker=null)}P.$theme=k.cssClass,P.theme=k,g.addCssClass(P.container,k.cssClass),g.setCssClass(P.container,"ace_dark",k.isDark),P.$size&&(P.$size.width=0,P.$updateSizeAsync()),P._dispatchEvent("themeLoaded",{theme:k}),z&&z(),C.isSafari&&P.scroller&&(P.scroller.style.background="red",P.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(E,z){g.setCssClass(this.container,E,z!==!1)},I.prototype.unsetStyle=function(E){g.removeCssClass(this.container,E)},I.prototype.setCursorStyle=function(E){g.setStyle(this.scroller.style,"cursor",E)},I.prototype.setMouseCursor=function(E){g.setStyle(this.scroller.style,"cursor",E)},I.prototype.attachToShadowRoot=function(){g.importCssString(M,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(E){var z=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),E===!0?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new s(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollTop(P.data-z.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollLeft(P.data-z.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new i(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollTop(P.data-z.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollLeft(P.data-z.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=w.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(z){var P=z[0].contentRect.width,O=z[0].contentRect.height;Math.abs(E.$size.width-P)>1||Math.abs(E.$size.height-O)>1?E.$resizeTimer.delay():E.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I})();D.prototype.CHANGE_CURSOR=1,D.prototype.CHANGE_MARKER=2,D.prototype.CHANGE_GUTTER=4,D.prototype.CHANGE_SCROLL=8,D.prototype.CHANGE_LINES=16,D.prototype.CHANGE_TEXT=32,D.prototype.CHANGE_SIZE=64,D.prototype.CHANGE_MARKER_BACK=128,D.prototype.CHANGE_MARKER_FRONT=256,D.prototype.CHANGE_FULL=512,D.prototype.CHANGE_H_SCROLL=1024,D.prototype.$changes=0,D.prototype.$padding=null,D.prototype.$frozen=!1,D.prototype.STEPS=8,p.implement(D.prototype,N),h.defineOptions(D.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){g.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!C.isMobile&&!C.isIE}}),r.VirtualRenderer=D}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function d(c){var i="importScripts('"+g.qualifyURL(c)+"');";try{return new Blob([i],{type:"application/javascript"})}catch{var s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,f=new s;return f.append(i),f.getBlob("application/javascript")}}function a(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var i=d(c),s=window.URL||window.webkitURL,f=s.createObjectURL(i);return new Worker(f)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,w),this.$createWorkerFromOldConfig=function(c,i,s,f,b){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)f=f||h.moduleUrl(i,"worker");else{var x=this.$normalizePath;f=f||x(e.toUrl("ace/worker/worker.js",null,"_"));var N={};c.forEach(function(M){N[M]=x(e.toUrl(M,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(f),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:N,module:i,classname:s}),this.$worker},this.onMessage=function(c){var i=c.data;switch(i.type){case"event":this._signal(i.name,{data:i.data});break;case"call":var s=this.callbacks[i.id];s&&(s(i.data),delete this.callbacks[i.id]);break;case"error":this.reportError(i.data);break;case"log":window.console&&console.log&&console.log.apply(console,i.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return g.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,i){this.$worker.postMessage({command:c,args:i})},this.call=function(c,i,s){if(s){var f=this.callbackId++;this.callbacks[f]=s,i.push(f)}this.send(c,i)},this.emit=function(c,i){try{i.data&&i.data.err&&(i.data.err={message:i.data.err.message,stack:i.data.err.stack,code:i.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:i.data}})}catch(s){console.error(s.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var u=function(c,i,s){var f=null,b=!1,x=Object.create(w),N=[],M=new l({messageBuffer:N,terminate:function(){},postMessage:function(C){N.push(C),f&&(b?setTimeout(_):_())}});M.setEmitSync=function(C){b=C};var _=function(){var C=N.shift();C.command?f[C.command].apply(f,C.args):C.event&&x._signal(C.event,C.data)};return x.postMessage=function(C){M.onMessage({data:C})},x.callback=function(C,L){this.postMessage({type:"call",id:L,data:C})},x.emit=function(C,L){this.postMessage({type:"event",name:C,data:L})},h.loadModule(["worker",i],function(C){for(f=new C[s](x);N.length;)_()}),M};r.UIWorkerClient=u,r.WorkerClient=l,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,v){var p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=(function(){function d(a,l,u,c,i,s){var f=this;this.length=l,this.session=a,this.doc=a.getDocument(),this.mainClass=i,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){f.onCursorChange()})},this.$pos=u;var b=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return d.prototype.setup=function(){var a=this,l=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=u.addMarker(new p(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var s=l.createAnchor(i.row,i.column);s.$insertRight=!0,s.detach(),a.others.push(s)}),u.setUndoSelect(!1)},d.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,l=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=a.addMarker(new p(u.row,u.column,u.row,u.column+l.length),l.othersClass,null,!1)})}},d.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a<this.others.length;a++)this.session.removeMarker(this.others[a].markerId)}},d.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var l=a;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var u=a.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,i=l.start.column-this.pos.column;if(this.updateAnchors(a),c&&(this.length+=u),c&&!this.session.$fromUndo){if(a.action==="insert")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.insertMergedLines(b,a.lines)}else if(a.action==="remove")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.remove(new p(b.row,b.column,b.row,b.column-u))}}this.$updating=!1,this.updateMarkers()}},d.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var l=this.others.length;l--;)this.others[l].onChange(a);this.updateMarkers()},d.prototype.updateMarkers=function(){if(!this.$updating){var a=this,l=this.session,u=function(i,s){l.removeMarker(i.markerId),i.markerId=l.addMarker(new p(i.row,i.column,i.row,i.column+a.length),s,null,!1)};u(this.pos,this.mainClass);for(var c=this.others.length;c--;)u(this.others[c],this.othersClass)}},d.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},d.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},d.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),l=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,u=0;u<l;u++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},d})();w.implement(h.prototype,g),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/event"),g=e("../lib/useragent");function w(d,a){return d.row==a.row&&d.column==a.column}function h(d){var a=d.domEvent,l=a.altKey,u=a.shiftKey,c=a.ctrlKey,i=d.getAccelKey(),s=d.getButton();if(c&&g.isMac&&(s=a.button),d.editor.inMultiSelectMode&&s==2){d.editor.textInput.onContextMenu(d.domEvent);return}if(!c&&!l&&!i){s===0&&d.editor.inMultiSelectMode&&d.editor.exitMultiSelectMode();return}if(s===0){var f=d.editor,b=f.selection,x=f.inMultiSelectMode,N=d.getDocumentPosition(),M=b.getCursor(),_=d.inSelection()||b.isEmpty()&&w(N,M),C=d.x,L=d.y,D=function(ee){C=ee.clientX,L=ee.clientY},I=f.session,E=f.renderer.pixelToScreenCoordinates(C,L),z=E,P;if(f.$mouseHandler.$enableJumpToDef)c&&l||i&&l?P=u?"block":"add":l&&f.$blockSelectEnabled&&(P="block");else if(i&&!l){if(P="add",!x&&u)return}else l&&f.$blockSelectEnabled&&(P="block");if(P&&g.isMac&&a.ctrlKey&&f.$mouseHandler.cancelContextMenu(),P=="add"){if(!x&&_)return;if(!x){var O=b.toOrientedRange();f.addSelectionMarker(O)}var $=b.rangeList.rangeAtPoint(N);f.inVirtualSelectionMode=!0,u&&($=null,O=b.ranges[0]||O,f.removeSelectionMarker(O)),f.once("mouseup",function(){var ee=b.toOrientedRange();$&&ee.isEmpty()&&w($.cursor,ee.cursor)?b.substractPoint(ee.cursor):(u?b.substractPoint(O.cursor):O&&(f.removeSelectionMarker(O),b.addRange(O)),b.addRange(ee)),f.inVirtualSelectionMode=!1})}else if(P=="block"){d.stop(),f.inVirtualSelectionMode=!0;var k,R=[],B=function(){var ee=f.renderer.pixelToScreenCoordinates(C,L),ae=I.screenToDocumentPosition(ee.row,ee.column,ee.offsetX);w(z,ee)&&w(ae,b.lead)||(z=ee,f.selection.moveToPosition(ae),f.renderer.scrollCursorIntoView(),f.removeSelectionMarkers(R),R=b.rectangularRangeBlock(z,E),f.$mouseHandler.$clickSelection&&R.length==1&&R[0].isEmpty()&&(R[0]=f.$mouseHandler.$clickSelection.clone()),R.forEach(f.addSelectionMarker,f),f.updateSelectionMarkers())};x&&!i?b.toSingleRange():!x&&i&&(k=b.toOrientedRange(),f.addSelectionMarker(k)),u?E=I.documentToScreenPosition(b.lead):b.moveToPosition(N),z={row:-1,column:-1};var U=function(ee){B(),clearInterval(Q),f.removeSelectionMarkers(R),R.length||(R=[b.toOrientedRange()]),k&&(f.removeSelectionMarker(k),b.toSingleRange(k));for(var ae=0;ae<R.length;ae++)b.addRange(R[ae]);f.inVirtualSelectionMode=!1,f.$mouseHandler.$clickSelection=null},q=B;p.capture(f.container,D,U);var Q=setInterval(function(){q()},20);return d.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,v){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(g){g.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(g){g.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(g){g.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(g){g.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(g){g.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(g){g.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(g){g.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(g){g.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(g){g.multiSelect.rangeCount>1?g.multiSelect.joinSelections():g.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(g){g.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(g){g.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(g){g.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(g){g.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(g){return g&&g.inMultiSelectMode}}];var p=e("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new p(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,r,v){var p=e("./range_list").RangeList,g=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,d=e("./lib/event"),a=e("./lib/lang"),l=e("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=e("./search").Search,c=new u;function i(M,_,C){return c.$options.wrap=!0,c.$options.needle=_,c.$options.backwards=C==-1,c.find(M)}var s=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(s.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(M,_){if(M){if(!this.inMultiSelectMode&&this.rangeCount===0){var C=this.toOrientedRange();if(this.rangeList.add(C),this.rangeList.add(M),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange(M);this.rangeList.removeAll(),this.rangeList.add(C),this.$onAddRange(C)}M.cursor||(M.cursor=M.end);var L=this.rangeList.add(M);return this.$onAddRange(M),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(M)}},this.toSingleRange=function(M){M=M||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),M&&this.fromOrientedRange(M)},this.substractPoint=function(M){var _=this.rangeList.substractPoint(M);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var M=this.rangeList.merge();M.length&&this.$onRemoveRange(M)},this.$onAddRange=function(M){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(M),this._signal("addRange",{range:M})},this.$onRemoveRange=function(M){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();M.push(_),this.rangeCount=0}for(var C=M.length;C--;){var L=this.ranges.indexOf(M[C]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:M}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var M=this.ranges.length?this.ranges:[this.getRange()],_=[],C=0;C<M.length;C++){var L=M[C],D=L.start.row,I=L.end.row;if(D===I)_.push(L.clone());else{for(_.push(new g(D,L.start.column,D,this.session.getLine(D).length));++D<I;)_.push(this.getLineRange(D,!0));_.push(new g(I,0,I,L.end.column))}C==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var C=_.length;C--;)this.addRange(_[C])},this.joinSelections=function(){var M=this.rangeList.ranges,_=M[M.length-1],C=g.fromPoints(M[0].start,_.end);this.toSingleRange(),this.setSelectionRange(C,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var M=this.rangeList.ranges,_=M[M.length-1],C=g.fromPoints(M[0].start,_.end);this.toSingleRange(),this.setSelectionRange(C,_.cursor==_.start)}else{var L=this.session.documentToScreenPosition(this.cursor),D=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(L,D);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(M,_,C){var L=[],D=M.column<_.column;if(D)var I=M.column,E=_.column,z=M.offsetX,P=_.offsetX;else var I=_.column,E=M.column,z=_.offsetX,P=M.offsetX;var O=M.row<_.row;if(O)var $=M.row,k=_.row;else var $=_.row,k=M.row;I<0&&(I=0),$<0&&($=0),$==k&&(C=!0);for(var R,B=$;B<=k;B++){var U=g.fromPoints(this.session.screenToDocumentPosition(B,I,z),this.session.screenToDocumentPosition(B,E,P));if(U.isEmpty()){if(R&&b(U.end,R))break;R=U.end}U.cursor=D?U.start:U.end,L.push(U)}if(O&&L.reverse(),!C){for(var q=L.length-1;L[q].isEmpty()&&q>0;)q--;if(q>0)for(var Q=0;L[Q].isEmpty();)Q++;for(var ee=q;ee>=Q;ee--)L[ee].isEmpty()&&L.splice(ee,1)}return L}}).call(w.prototype);var f=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(M){M.cursor||(M.cursor=M.end);var _=this.getSelectionStyle();return M.marker=this.session.addMarker(M,"ace_selection",_),this.session.$selectionMarkers.push(M),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,M},this.removeSelectionMarker=function(M){if(M.marker){this.session.removeMarker(M.marker);var _=this.session.$selectionMarkers.indexOf(M);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(M){for(var _=this.session.$selectionMarkers,C=M.length;C--;){var L=M[C];if(L.marker){this.session.removeMarker(L.marker);var D=_.indexOf(L);D!=-1&&_.splice(D,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function(M){this.addSelectionMarker(M.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(M){this.removeSelectionMarkers(M.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(M){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(M){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(M){var _=M.command,C=M.editor;if(C.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?L=C.forEachSelection(_,M.args):_.multiSelectAction=="forEachLine"?L=C.forEachSelection(_,M.args,!0):_.multiSelectAction=="single"?(C.exitMultiSelectMode(),L=_.exec(C,M.args||{})):L=_.multiSelectAction(C,M.args||{});else{var L=_.exec(C,M.args||{});C.multiSelect.addRange(C.multiSelect.toOrientedRange()),C.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(M,_,C){if(!this.inVirtualSelectionMode){var L=C&&C.keepOrder,D=C==!0||C&&C.$byLines,I=this.session,E=this.selection,z=E.rangeList,P=(L?E:z).ranges,O;if(!P.length)return M.exec?M.exec(this,_||{}):M(this,_||{});var $=E._eventRegistry;E._eventRegistry={};var k=new w(I);this.inVirtualSelectionMode=!0;for(var R=P.length;R--;){if(D)for(;R>0&&P[R].start.row==P[R-1].end.row;)R--;k.fromOrientedRange(P[R]),k.index=R,this.selection=I.selection=k;var B=M.exec?M.exec(this,_||{}):M(this,_||{});!O&&B!==void 0&&(O=B),k.toOrientedRange(P[R])}k.detach(),this.selection=I.selection=E,this.inVirtualSelectionMode=!1,E._eventRegistry=$,E.mergeOverlappingRanges(),E.ranges[0]&&E.fromOrientedRange(E.ranges[0]);var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),O}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var M="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,C=[],L=0;L<_.length;L++)C.push(this.session.getTextRange(_[L]));var D=this.session.getDocument().getNewLineCharacter();M=C.join(D),M.length==(C.length-1)*D.length&&(M="")}else this.selection.isEmpty()||(M=this.session.getTextRange(this.getSelectionRange()));return M},this.$checkMultiselectChange=function(M,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var C=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var L=_==this.multiSelect.anchor?C.cursor==C.start?C.end:C.start:C.cursor;L.row!=_.row||this.session.$clipPositionToDocument(L.row,L.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(M,_,C){if(_=_||{},_.needle=M||_.needle,_.needle==null){var L=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(L)}this.$search.set(_);var D=this.$search.findAll(this.session);if(!D.length)return 0;var I=this.multiSelect;C||I.toSingleRange(D[0]);for(var E=D.length;E--;)I.addRange(D[E],!0);return L&&I.rangeList.rangeAtPoint(L.start)&&I.addRange(L,!0),D.length},this.selectMoreLines=function(M,_){var C=this.selection.toOrientedRange(),L=C.cursor==C.end,D=this.session.documentToScreenPosition(C.cursor);this.selection.$desiredColumn&&(D.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(D.row+M,D.column);if(C.isEmpty())var z=I;else var E=this.session.documentToScreenPosition(L?C.end:C.start),z=this.session.screenToDocumentPosition(E.row+M,E.column);if(L){var P=g.fromPoints(I,z);P.cursor=P.start}else{var P=g.fromPoints(z,I);P.cursor=P.end}if(P.desiredColumn=D.column,!this.selection.inMultiSelectMode)this.selection.addRange(C);else if(_)var O=C.cursor;this.selection.addRange(P),O&&this.selection.substractPoint(O)},this.transposeSelections=function(M){for(var _=this.session,C=_.multiSelect,L=C.ranges,D=L.length;D--;){var I=L[D];if(I.isEmpty()){var E=_.getWordRange(I.start.row,I.start.column);I.start.row=E.start.row,I.start.column=E.start.column,I.end.row=E.end.row,I.end.column=E.end.column}}C.mergeOverlappingRanges();for(var z=[],D=L.length;D--;){var I=L[D];z.unshift(_.getTextRange(I))}M<0?z.unshift(z.pop()):z.push(z.shift());for(var D=L.length;D--;){var I=L[D],P=I.clone();_.replace(I,z[D]),I.start.row=P.start.row,I.start.column=P.start.column}C.fromOrientedRange(C.ranges[0])},this.selectMore=function(M,_,C){var L=this.session,D=L.multiSelect,I=D.toOrientedRange();if(!(I.isEmpty()&&(I=L.getWordRange(I.start.row,I.start.column),I.cursor=M==-1?I.start:I.end,this.multiSelect.addRange(I),C))){var E=L.getTextRange(I),z=i(L,E,M);z&&(z.cursor=M==-1?z.start:z.end,this.session.unfold(z),this.multiSelect.addRange(z),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var M=this.session,_=M.multiSelect,C=_.ranges,L=-1,D=C.filter(function(q){if(q.cursor.row==L)return!0;L=q.cursor.row});if(!C.length||D.length==C.length-1){var I=this.selection.getRange(),E=I.start.row,z=I.end.row,P=E==z;if(P){var O=this.session.getLength(),$;do $=this.session.getLine(z);while(/[=:]/.test($)&&++z<O);do $=this.session.getLine(E);while(/[=:]/.test($)&&--E>0);E<0&&(E=0),z>=O&&(z=O-1)}var k=this.session.removeFullLines(E,z);k=this.$reAlignText(k,P),this.session.insert({row:E,column:0},k.join(`
|
|
945
|
+
`)+`
|
|
946
|
+
`),P||(I.start.column=0,I.end.column=k[k.length-1].length),this.selection.setRange(I)}else{D.forEach(function(q){_.substractPoint(q.cursor)});var R=0,B=1/0,U=C.map(function(q){var Q=q.cursor,ee=M.getLine(Q.row),ae=ee.substr(Q.column).search(/\S/g);return ae==-1&&(ae=0),Q.column>R&&(R=Q.column),ae<B&&(B=ae),ae});C.forEach(function(q,Q){var ee=q.cursor,ae=R-ee.column,ne=U[Q]-B;ae>ne?M.insert(ee,a.stringRepeat(" ",ae-ne)):M.remove(new g(ee.row,ee.column,ee.row,ee.column-ae+ne)),q.start.column=q.end.column=R,q.start.row=q.end.row=ee.row,q.cursor=q.end}),_.fromOrientedRange(C[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(M,_){var C=!0,L=!0,D,I,E;return M.map(function(k){var R=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?D==null?(D=R[1].length,I=R[2].length,E=R[3].length,R):(D+I+E!=R[1].length+R[2].length+R[3].length&&(L=!1),D!=R[1].length&&(C=!1),D>R[1].length&&(D=R[1].length),I<R[2].length&&(I=R[2].length),E>R[3].length&&(E=R[3].length),R):[k]}).map(_?P:C?L?O:P:$);function z(k){return a.stringRepeat(" ",k)}function P(k){return k[2]?z(D)+k[2]+z(I-k[2].length+E)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function O(k){return k[2]?z(D+I-k[2].length)+k[2]+z(E)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function $(k){return k[2]?z(D)+k[2]+z(E)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(f.prototype);function b(M,_){return M.row==_.row&&M.column==_.column}r.onSessionChange=function(M){var _=M.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var C=M.oldSession;C&&(C.multiSelect.off("addRange",this.$onAddRange),C.multiSelect.off("removeRange",this.$onRemoveRange),C.multiSelect.off("multiSelect",this.$onMultiSelect),C.multiSelect.off("singleSelect",this.$onSingleSelect),C.multiSelect.lead.off("change",this.$checkMultiselectChange),C.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(M){M.$multiselectOnSessionChange||(M.$onAddRange=M.$onAddRange.bind(M),M.$onRemoveRange=M.$onRemoveRange.bind(M),M.$onMultiSelect=M.$onMultiSelect.bind(M),M.$onSingleSelect=M.$onSingleSelect.bind(M),M.$multiselectOnSessionChange=r.onSessionChange.bind(M),M.$checkMultiselectChange=M.$checkMultiselectChange.bind(M),M.$multiselectOnSessionChange(M),M.on("changeSession",M.$multiselectOnSessionChange),M.on("mousedown",h),M.commands.addCommands(l.defaultCommands),N(M))}function N(M){if(!M.textInput)return;var _=M.textInput.getElement(),C=!1;d.addListener(_,"keydown",function(D){var I=D.keyCode==18&&!(D.ctrlKey||D.shiftKey||D.metaKey);M.$blockSelectEnabled&&I?C||(M.renderer.setMouseCursor("crosshair"),C=!0):C&&L()},M),d.addListener(_,"keyup",L,M),d.addListener(_,"blur",L,M);function L(D){C&&(M.renderer.setMouseCursor(""),C=!1)}}r.MultiSelect=x,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(M){x(this),M?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(M){this.$blockSelectEnabled=M},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,v){var p=e("../../range").Range,g=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,d){var a=w.getLine(d);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(w,h,d){return null},this.indentationBlock=function(w,h,d){var a=/\S/,l=w.getLine(h),u=l.search(a);if(u!=-1){for(var c=d||l.length,i=w.getLength(),s=h,f=h;++h<i;){var b=w.getLine(h).search(a);if(b!=-1){if(b<=u){var x=w.getTokenAt(h,0);if(!x||x.type!=="string")break}f=h}}if(f>s){var N=w.getLine(f).length;return new p(s,c,f,N)}}},this.openingBracketBlock=function(w,h,d,a,l){var u={row:d,column:a+1},c=w.$findClosingBracket(h,u,l);if(c){var i=w.foldWidgets[c.row];return i==null&&(i=w.getFoldWidget(c.row)),i=="start"&&c.row>u.row&&(c.row--,c.column=w.getLine(c.row).length),p.fromPoints(u,c)}},this.closingBracketBlock=function(w,h,d,a,l){var u={row:d,column:a},c=w.$findOpeningBracket(h,u);if(c)return c.column++,u.column--,p.fromPoints(c,u)}}).call(g.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,v){var p=e("../lib/dom"),g=e("../range").Range,w=e("../config").nls;function h(a,l,u){for(var c=0,i=a.length-1;c<=i;){var s=c+i>>1,f=u(l,a[s]);if(f>0)c=s+1;else if(f<0)i=s-1;else return s}return-(c+1)}function d(a,l,u){var c=a.getAnnotations().sort(g.comparePoints);if(c.length){var i=h(c,{row:l,column:-1},g.comparePoints);i<0&&(i=-i-1),i>=c.length?i=u>0?0:c.length-1:i===0&&u<0&&(i=c.length-1);var s=c[i];if(!(!s||!u)){if(s.row===l){do s=c[i+=u];while(s&&s.row===l);if(!s)return c.slice()}var f=[];l=s.row;do f[u<0?"unshift":"push"](s),s=c[i+=u];while(s&&s.row==l);return f.length&&f}}}r.showErrorMarker=function(a,l){var u=a.session,c=a.getCursorPosition(),i=c.row,s=u.widgetManager.getWidgetsAtRow(i).filter(function(D){return D.type=="errorMarker"})[0];s?s.destroy():i-=l;var f=d(u,i,l),b;if(f){var x=f[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,b=a.renderer.$gutterLayer.$annotations[c.row]}else{if(s)return;b={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(c.row),a.selection.moveToPosition(c);var N={row:c.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},M=N.el.appendChild(p.createElement("div")),_=N.el.appendChild(p.createElement("div"));_.className="error_widget_arrow "+b.className;var C=a.renderer.$cursorLayer.getPixelPosition(c).left;_.style.left=C+a.renderer.gutterWidth-5+"px",N.el.className="error_widget_wrapper",M.className="error_widget "+b.className,b.displayText.forEach(function(D,I){M.appendChild(p.createTextNode(D)),I<b.displayText.length-1&&M.appendChild(p.createElement("br"))}),M.appendChild(p.createElement("div"));var L=function(D,I,E){if(I===0&&(E==="esc"||E==="return"))return N.destroy(),{command:"null"}};N.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(L),u.widgetManager.removeLineWidget(N),a.off("changeSelection",N.destroy),a.off("changeSession",N.destroy),a.off("mouseup",N.destroy),a.off("change",N.destroy))},a.keyBinding.addKeyboardHandler(L),a.on("changeSelection",N.destroy),a.on("changeSession",N.destroy),a.on("mouseup",N.destroy),a.on("change",N.destroy),a.session.widgetManager.addLineWidget(N),N.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:N.el.offsetHeight})},p.importCssString(`
|
|
947
|
+
.error_widget_wrapper {
|
|
948
|
+
background: inherit;
|
|
949
|
+
color: inherit;
|
|
950
|
+
border:none
|
|
951
|
+
}
|
|
952
|
+
.error_widget {
|
|
953
|
+
border-top: solid 2px;
|
|
954
|
+
border-bottom: solid 2px;
|
|
955
|
+
margin: 5px 0;
|
|
956
|
+
padding: 10px 40px;
|
|
957
|
+
white-space: pre-wrap;
|
|
958
|
+
}
|
|
959
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
960
|
+
border-color: #ff5a5a
|
|
961
|
+
}
|
|
962
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
963
|
+
border-color: #F1D817
|
|
964
|
+
}
|
|
965
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
966
|
+
border-color: #5a5a5a
|
|
967
|
+
}
|
|
968
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
969
|
+
border-color: #5aaa5a
|
|
970
|
+
}
|
|
971
|
+
.error_widget_arrow {
|
|
972
|
+
position: absolute;
|
|
973
|
+
border: solid 5px;
|
|
974
|
+
border-top-color: transparent!important;
|
|
975
|
+
border-right-color: transparent!important;
|
|
976
|
+
border-left-color: transparent!important;
|
|
977
|
+
top: -5px;
|
|
978
|
+
}
|
|
979
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,r,v){e("./loader_build")(r);var p=e("./lib/dom"),g=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,d=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),r.config=e("./config"),r.edit=function(u,c){if(typeof u=="string"){var i=u;if(u=document.getElementById(i),!u)throw new Error("ace.edit can't find div #"+i)}if(u&&u.env&&u.env.editor instanceof w)return u.env.editor;var s="";if(u&&/input|textarea/i.test(u.tagName)){var f=u;s=f.value,u=p.createElement("pre"),f.parentNode.replaceChild(u,f)}else u&&(s=u.textContent,u.innerHTML="");var b=r.createEditSession(s),x=new w(new a(u),b,c),N={document:b,editor:x,onResize:x.resize.bind(x,null)};return f&&(N.textarea=f),x.on("destroy",function(){N.editor.container.env=null}),x.container.env=x.env=N,x},r.createEditSession=function(u,c){var i=new h(u,c);return i.setUndoManager(new d),i},r.Range=g,r.Editor=w,r.EditSession=h,r.UndoManager=d,r.VirtualRenderer=a;var l=r.config.version;r.version=l}),(function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=(function(){return this})();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var v in e)e.hasOwnProperty(v)&&(r.ace[v]=e[v]);r.ace.default=r.ace,t&&(t.exports=r.ace)})})()})(Yf)),Yf.exports}var YN=Mn("b",ux()),Zf={exports:{}},Qf;function hx(){return Qf||(Qf=1,(function(t,n){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},d=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},u=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},i=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},s=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},f=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",N="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",M="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",_=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":N,"variable.language":M,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),C=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,L={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(D,I,E){E.length&&(E=[]);var z=D[D.length-1];return E.unshift(z,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(D,I,E){E.length&&(E=[]);var z=D[D.length-1];return E.unshift(z,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(D,I,E){E.length&&(E=[]);var z=D[D.length-1];return E.unshift(z,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(D,I,E){E.length&&(E=[]);var z=D[D.length-1];return E.unshift(z,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(D,I,E){E.length&&(E=[]);var z=D[D.length-1];return E.unshift(z,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},s,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+C+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},u,c,w,h,i,d,a,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:_,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(D,I,E){var z=D[2]=="-"||D[2]=="~"?"indentedHeredoc":"heredoc",P=D.split(this.splitRegex);return E.push(z,P[3]),[{type:"constant",value:P[1]},{type:"string",value:P[2]},{type:"support.class",value:P[3]},{type:"string",value:P[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(D,I,E){return D===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(D,I,E){return D===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(D,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:D}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(D,I,E){return this.next="",D=="}"&&E.length>1&&E[1]!="start"&&(E.shift(),this.next=E.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,I,E){return E.length&&D===E[0]?(E.unshift(D,I),this.token):"string"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,I,E){return E.length&&D===L[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,I,E){return E.length&&D===E[0]?(E.unshift(D,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,I,E){return E.length&&D===L[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,I,E){return E.length&&D===E[0]?(E.unshift(D,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,I,E){return E.length&&D===L[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,I,E){return E.length&&D===E[0]?(E.unshift(D,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,I,E){return E.length&&D===L[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(D,I,E){return E.length&&D===E[0]?(E.unshift(D,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(D,I,E){return E.length&&D[0]===L[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};p.inherits(f,g),r.RubyHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,d=r.FoldMode=function(){};p.inherits(d,g),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(a,l,u){var c=a.getLine(u),i=this.foldingStartMarker.test(c),s=this.foldingStopMarker.test(c);if(i&&!s){var f=c.match(this.foldingStartMarker);if(f[1]){if((f[1]=="if"||f[1]=="else"||f[1]=="while"||f[1]=="until"||f[1]=="unless")&&(f[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||f[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(a.getTokenAt(u,f.index+2).type==="keyword")return"start"}else if(!f[3]||a.getTokenAt(u,f.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!s||i&&s)return"";var f=c.match(this.foldingStopMarker);if(f[3]==="end"){if(a.getTokenAt(u,f.index+1).type==="keyword")return"end"}else if(!f[1]||a.getTokenAt(u,f.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,u){var c=a.doc.getLine(u),i=this.foldingStartMarker.exec(c);if(i)return i[1]||i[3]?this.rubyBlock(a,u,i.index+2):this.openingBracketBlock(a,"{",u,i.index);var i=this.foldingStopMarker.exec(c);if(i)return i[3]==="end"&&a.getTokenAt(u,i.index+1).type==="keyword"?this.rubyBlock(a,u,i.index+1):i[1]==="=end"&&a.getTokenAt(u,i.index+1).type==="comment.multiline"?this.rubyBlock(a,u,i.index+1):this.closingBracketBlock(a,"}",u,i.index+i[0].length)},this.rubyBlock=function(a,l,u,c){var i=new h(a,l,u),s=i.getCurrentToken();if(!(!s||s.type!="keyword"&&s.type!="comment.multiline")){var f=s.value,b=a.getLine(l);switch(s.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);if(!x.test(b))return;var N=this.indentKeywords[f];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var N=1;break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");if(!x.test(b))return;var N=1;break;default:var N=this.indentKeywords[f]}var M=[f];if(N){var _=N===-1?a.getLine(l-1).length:a.getLine(l).length,C=l,L=[];if(L.push(i.getCurrentTokenRange()),i.step=N===-1?i.stepBackward:i.stepForward,s.type=="comment.multiline"){for(;s=i.step();)if(s.type==="comment.multiline"){if(N==1){if(_=6,s.value=="=end")break}else if(s.value=="=begin")break}}else for(;s=i.step();){var D=!1;if(s.type==="keyword"){var I=N*this.indentKeywords[s.value];switch(b=a.getLine(i.getCurrentTokenRow()),s.value){case"do":for(var E=i.$tokenIndex-1;E>=0;E--){var z=i.$rowTokens[E];if(z&&(z.value=="while"||z.value=="until"||z.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");(!x.test(b)||f=="case")&&(I=0,D=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);x.test(b)||(I=0,D=!0);break;case"when":(/\sthen\s/.test(b)||f=="case")&&(I=0,D=!0)}if(I>0)M.unshift(s.value);else if(I<=0&&D===!1){if(M.shift(),!M.length&&((f=="while"||f=="until"||f=="for")&&s.value!="do"||s.value=="do"&&N==-1&&I!=0||s.value!="do"))break;I===0&&M.unshift(s.value)}}}if(!s)return null;if(c)return L.push(i.getCurrentTokenRange()),L;var l=i.getCurrentTokenRow();if(N===-1){if(s.type==="comment.multiline")var P=6;else var P=a.getLine(l).length;return new w(l,P,C-1,_)}return new w(C,_,l-1,a.getLine(l-1).length)}}}}).call(d.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../range").Range,a=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};p.inherits(l,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),N=c.match(/^\s*(class|def|module)\s.*$/),M=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),_=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||N||M||_)&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return/^\s+(end|else|rescue|ensure)$/.test(c+i)||this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){var s=c.getLine(i);if(/}/.test(s))return this.$outdent.autoOutdent(c,i);var f=this.$getIndent(s),b=c.getLine(i-1),x=this.$getIndent(b),N=c.getTabString();x.length<=f.length&&f.slice(-N.length)==N&&c.remove(new d(i,f.length-N.length,i,f.length))},this.getMatching=function(u,c,i){if(c==null){var s=u.selection.lead;i=s.column,c=s.row}var f=u.getTokenAt(c,i);if(f&&f.value in this.indentKeywords)return this.foldingRules.rubyBlock(u,c,i,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/ruby"],function(e){t&&(t.exports=e)})})()})(Zf)),Zf.exports}hx();var Jf={exports:{}},ep;function dx(){return ep||(ep=1,(function(t,n){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",d="True|False|None|NotImplemented|Ellipsis|__debug__",a="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":d,keyword:h},"identifier"),u="[uU]?",c="[rR]",i="[fF]",s="(?:[rR][fF]|[fF][rR])",f="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",N="(?:0[bB][01]+)",M="(?:"+f+"|"+b+"|"+x+"|"+N+")",_="(?:[eE][+-]?\\d+)",C="(?:\\.\\d+)",L="(?:\\d+)",D="(?:(?:"+L+"?"+C+")|(?:"+L+"\\.))",I="(?:(?:"+D+"|"+L+")"+_+")",E="(?:"+I+"|"+D+")",z=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:u+'"{3}',next:"qqstring3"},{token:"string",regex:u+'"(?=.)',next:"qqstring"},{token:"string",regex:u+"'{3}",next:"qstring3"},{token:"string",regex:u+"'(?=.)",next:"qstring"},{token:"string",regex:c+'"{3}',next:"rawqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rawqqstring"},{token:"string",regex:c+"'{3}",next:"rawqstring3"},{token:"string",regex:c+"'(?=.)",next:"rawqstring"},{token:"string",regex:i+'"{3}',next:"fqqstring3"},{token:"string",regex:i+'"(?=.)',next:"fqqstring"},{token:"string",regex:i+"'{3}",next:"fqstring3"},{token:"string",regex:i+"'(?=.)",next:"fqstring"},{token:"string",regex:s+'"{3}',next:"rfqqstring3"},{token:"string",regex:s+'"(?=.)',next:"rfqqstring"},{token:"string",regex:s+"'{3}",next:"rfqstring3"},{token:"string",regex:s+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+E+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:E},{token:"constant.numeric",regex:M+"[lL]\\b"},{token:"constant.numeric",regex:M+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(w,g),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(w,g),(function(){this.getFoldWidgetRange=function(h,d,a){var l=h.getLine(a),u=l.match(this.foldingStartMarker);if(u)return u[1]?this.openingBracketBlock(h,u[1],a,u.index):u[2]?this.indentationBlock(h,a,u.index+u[2].length):this.indentationBlock(h,a)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,d=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(a,g),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
980
|
+
`&&i!=="\r"&&i!==`
|
|
981
|
+
`)return!1;var s=this.getTokenizer().getLineTokens(c.trim(),u).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(u,c,i){i+=1;var s=this.$getIndent(c.getLine(i)),f=c.getTabString();s.slice(-f.length)==f&&c.remove(new d(i,s.length-f.length,i,s.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/python"],function(e){t&&(t.exports=e)})})()})(Jf)),Jf.exports}dx();var tp={exports:{}},np;function fx(){return np||(np=1,(function(t,n){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{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:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};p.inherits(w,g),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var c=this._getFoldWidgetBase(d,a,l);return!c&&this.startRegionRe.test(u)?"start":c},this.getFoldWidgetRange=function(d,a,l,u){var c=d.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(d,c,l);var i=c.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(u?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=c.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),u=l.search(/\S/),c=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(u>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(u==b)break}s=a}}return new g(c,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var u=a.search(/\s*$/),c=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<c;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new g(i,u,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new d};p.inherits(l,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c);if(u=="start"){var f=c.match(/^.*[\{\(\[]\s*$/);f&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){this.$outdent.autoOutdent(c,i)},this.createWorker=function(u){var c=new a(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(u.getDocument()),c.on("annotate",function(i){u.setAnnotations(i.data)}),c.on("terminate",function(){u.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/json"],function(e){t&&(t.exports=e)})})()})(tp)),tp.exports}fx();var rp={exports:{}},ip;function px(){return ip||(ip=1,(function(t,n){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop");e("../lib/lang");var g=e("./text_highlight_rules").TextHighlightRules,w=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=r.supportFunction="rgb|rgba|url|attr|counter|counters",d=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",i=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",s=function(){var f=this.createKeywordMapper({"support.function":h,"support.constant":d,"support.type":w,"support.constant.color":a,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:i},{include:"url"},{token:f,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(s,g),r.CssHighlightRules=s}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(w,g),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,r,v){function p(){var u=a.replace("\\d","\\d\\-"),c={onMatch:function(s,f,b){var x=s.charAt(1)=="/"?2:1;return x==1?(f!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&f==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:s.slice(0,x)},{type:"meta.tag.tag-name.xml",value:s.substr(x)}]},regex:"</?(?:"+u+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var i={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[i,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(s,f,b){return f==b[0]&&b.shift(),s.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:s}]},nextState:"jsx"},i,g("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function g(u){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,d=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",l=function(u){var c={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},i=this.createKeywordMapper(c,"identifier"),s="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",f="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),g("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+s+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:i,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),g("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[g("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!u||!u.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(N,M,_){if(this.next=N=="{"?this.nextState:"",N=="{"&&_.length)_.unshift("start",M);else if(N=="}"&&_.length&&(_.shift(),this.next=_.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return N=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:f},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!u||u.jsx!=0)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,d),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(h){var d="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+d+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:d},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+d+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+d+":)?"+d+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:d},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,d,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:d+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,u,c){return c.splice(0),this.token}}],this.embedRules(h,d,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(g.prototype),p.inherits(w,g),r.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,d=e("./xml_highlight_rules").XmlHighlightRules,a=g.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){d.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(u,c){var i=a[c];return["meta.tag.punctuation."+(u=="<"?"":"end-")+"tag-open.xml","meta.tag"+(i?"."+i:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};p.inherits(l,d),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,v){var p=e("../config").$modes,g=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,d=e("./html_highlight_rules").HtmlHighlightRules,a=function(u){return"(?:[^"+w.escapeRegExp(u)+"\\\\]|\\\\.)*"},l=function(){d.call(this);var u={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(i,s,f,b){var x=i.match(/^(\s*)([`~]+)(.*)/),N=/[\w-]+|$/.exec(x[3])[0];return p[N]||(N=""),f.unshift("githubblock",[],[x[1],x[2],N],s),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(i,s,f,b){var x=f[1],N=f[2][0],M=f[2][1],_=f[2][2],C=/^(\s*)(`+|~+)\s*$/.exec(i);if(C&&C[1].length<N.length+3&&C[2].length>=M.length&&C[2][0]==M[0])return f.splice(0,3),this.next=f.shift(),this.token;if(this.next="",_&&p[_]){var L=p[_].getTokenizer().getLineTokens(i,x.slice(0));return f[1]=L.state,L.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(i){return"markup.heading."+i.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},u,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+a("]")+")(\\]\\s*\\[)("+a("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+a("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+a('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},u,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};g.inherits(l,h),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=e("../../range").Range,h=r.FoldMode=function(){};p.inherits(h,g),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);return this.foldingStartMarker.test(u)?u[0]=="`"&&d.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(d,a,l){function u(D){return N=d.getTokens(D)[0],N&&N.type.lastIndexOf(M,0)===0}function c(){var D=N.value[0];return D=="="?6:D=="-"?5:7-N.value.search(/[^#]|$/)}var i=d.getLine(l),s=i.length,f=d.getLength(),b=l,x=l;if(i.match(this.foldingStartMarker)){if(i[0]=="`"){if(d.bgTokenizer.getState(l)!=="start"){for(;++l<f&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(b,s,l,0)}for(;l-- >0&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(l,i.length,b,0)}var N,M="markup.heading";if(u(l)){for(var _=c();++l<f;)if(u(l)){var C=c();if(C>=_)break}if(x=l-(!N||["=","-"].indexOf(N.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(d.getLine(x));)x--;if(x>b){var L=d.getLine(x).length;return new w(b,s,x,L)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,v){function p(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var g=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,d=function(){this.add("string_dquotes","insertion",function(a,l,u,c,i){if(i=='"'||i=="'"){var s=i,f=c.doc.getTextRange(u.getSelectionRange());if(f!==""&&f!=="'"&&f!='"'&&u.getWrapBehavioursEnabled())return{text:s+f+s,selection:!1};var b=u.getCursorPosition(),x=c.doc.getLine(b.row),N=x.substring(b.column,b.column+1),M=new h(c,b.row,b.column),_=M.getCurrentToken();if(N==s&&(p(_,"attribute-value")||p(_,"string")))return{text:"",selection:[1,1]};if(_||(_=M.stepBackward()),!_)return;for(;p(_,"tag-whitespace")||p(_,"whitespace");)_=M.stepBackward();var C=!N||N.match(/\s/);if(p(_,"attribute-equals")&&(C||N==">")||p(_,"decl-attribute-equals")&&(C||N=="?"))return{text:s+s,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,u,c,i){var s=c.doc.getTextRange(i);if(!i.isMultiLine()&&(s=='"'||s=="'")){var f=c.doc.getLine(i.start.row),b=f.substring(i.start.column+1,i.start.column+2);if(b==s)return i.end.column++,i}}),this.add("autoclosing","insertion",function(a,l,u,c,i){if(i==">"){var s=u.getSelectionRange().start,f=new h(c,s.row,s.column),b=f.getCurrentToken()||f.stepBackward();if(!b||!(p(b,"tag-name")||p(b,"tag-whitespace")||p(b,"attribute-name")||p(b,"attribute-equals")||p(b,"attribute-value"))||p(b,"reference.attribute-value"))return;if(p(b,"attribute-value")){var x=f.getCurrentTokenColumn()+b.value.length;if(s.column<x)return;if(s.column==x){var N=f.stepForward();if(N&&p(N,"attribute-value"))return;f.stepBackward()}}if(/^\s*>/.test(c.getLine(s.row).slice(s.column)))return;for(;!p(b,"tag-name");)if(b=f.stepBackward(),b.value=="<"){b=f.stepForward();break}var M=f.getCurrentTokenRow(),_=f.getCurrentTokenColumn();if(p(f.stepBackward(),"end-tag-open"))return;var C=b.value;return M==s.row&&(C=C.substring(0,s.column-_)),this.voidElements&&this.voidElements.hasOwnProperty(C.toLowerCase())?void 0:{text:"></"+C+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,u,c,i){if(i==`
|
|
982
|
+
`){var s=u.getCursorPosition(),f=c.getLine(s.row),b=new h(c,s.row,s.column),x=b.getCurrentToken();if(p(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var N=x.value,M=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[N]||!this.voidElements){var _=c.getTokenAt(s.row,s.column+1),f=c.getLine(M),C=this.$getIndent(f),L=C+c.getTabString();return _&&_.value==="</"?{text:`
|
|
983
|
+
`+L+`
|
|
984
|
+
`+C,selection:[1,L.length,1,L.length]}:{text:`
|
|
985
|
+
`+L}}}}})};g.inherits(d,w),r.XmlBehaviour=d}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,r,v){var p=e("../../lib/oop"),g=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,d=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,u,c,i,s){if(s==">"){var f=c.getSelectionRange().start,b=new g(i,f.row,f.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(d,w),r.JavaScriptBehaviour=d}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){function p(l,u){return l&&l.type&&l.type.lastIndexOf(u+".xml")>-1}var g=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,d=r.FoldMode=function(l,u){h.call(this),this.voidElements=l||{},this.optionalEndTags=g.mixin({},this.voidElements),u&&g.mixin(this.optionalEndTags,u)};g.inherits(d,h);var a=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,u,c){var i=this._getFirstTagInLine(l,c);return i?i.closing||!i.tagName&&i.selfClosing?u==="markbeginend"?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())||this._findEndTagInLine(l,c,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(l,c)},this.getCommentFoldWidget=function(l,u){return/comment/.test(l.getState(u))&&/<!-/.test(l.getLine(u))?"start":""},this._getFirstTagInLine=function(l,u){for(var c=l.getTokens(u),i=new a,s=0;s<c.length;s++){var f=c[s];if(p(f,"tag-open")){if(i.end.column=i.start.column+f.value.length,i.closing=p(f,"end-tag-open"),f=c[++s],!f)return null;if(i.tagName=f.value,f.value===""){if(f=c[++s],!f)return null;i.tagName=f.value}for(i.end.column+=f.value.length,s++;s<c.length;s++)if(f=c[s],i.end.column+=f.value.length,p(f,"tag-close")){i.selfClosing=f.value=="/>";break}return i}if(p(f,"tag-close"))return i.selfClosing=f.value=="/>",i;i.start.column+=f.value.length}return null},this._findEndTagInLine=function(l,u,c,i){for(var s=l.getTokens(u),f=0,b=0;b<s.length;b++){var x=s[b];if(f+=x.value.length,!(f<i-1)&&p(x,"end-tag-open")&&(x=s[b+1],p(x,"tag-name")&&x.value===""&&(x=s[b+2]),x&&x.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,u,c){var i=this._getFirstTagInLine(l,c);if(!i)return this.getCommentFoldWidget(l,c)&&l.getCommentFoldRange(c,l.getLine(c).length);var s=l.getMatchingTags({row:c,column:0});if(s)return new w(s.openTag.end.row,s.openTag.end.column,s.closeTag.start.row,s.closeTag.start.column)}}).call(d.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var c=this._getFoldWidgetBase(d,a,l);return!c&&this.startRegionRe.test(u)?"start":c},this.getFoldWidgetRange=function(d,a,l,u){var c=d.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(d,c,l);var i=c.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(u?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=c.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),u=l.search(/\S/),c=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(u>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(u==b)break}s=a}}return new g(c,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var u=a.search(/\s*$/),c=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<c;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new g(i,u,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,v){var p=e("../../lib/oop"),g=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end))),this.xmlFoldMode=new g};p.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=this.getFoldWidgetBase(d,a,l);return u||this.xmlFoldMode.getFoldWidget(d,a,l)},this.getFoldWidgetRange=function(d,a,l,u){var c=this.getFoldWidgetRangeBase(d,a,l,u);return c||this.xmlFoldMode.getFoldWidgetRange(d,a,l)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,l=e("./folding/javascript").FoldMode,u=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new l};p.inherits(u,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,i,s){var f=this.$getIndent(i),b=this.getTokenizer().getLineTokens(i,c),x=b.tokens,N=b.state;if(x.length&&x[x.length-1].type=="comment")return f;if(c=="start"||c=="no_regex"){var M=i.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);M&&(f+=s)}else if(c=="doc-start"&&(N=="start"||N=="no_regex"))return"";return f},this.checkOutdent=function(c,i,s){return this.$outdent.checkOutdent(i,s)},this.autoOutdent=function(c,i,s){this.$outdent.autoOutdent(i,s)},this.createWorker=function(c){var i=new d(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return i.attachToDocument(c.getDocument()),i.on("annotate",function(s){c.setAnnotations(s.data)}),i.on("terminate",function(){c.clearAnnotations()}),i},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(u.prototype),r.Mode=u}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,v){var p={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},g=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var d=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});p.hasOwnProperty(d)||(p[d]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,d,a){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var l=h.getLine(d.row).substr(0,d.column),u=/\([^)]*$/.test(l);return u&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,h,d,a):this.getPropertyCompletions(w,h,d,a,u)}return[]},this.getPropertyCompletions=function(w,h,d,a,l){l=l||!1;var u=Object.keys(p);return u.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,d,a){var l=h.getLine(d.row).substr(0,d.column),u=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!u)return[];var c=[];return u in p&&typeof p[u]=="object"&&(c=Object.keys(p[u])),c.map(function(i){return{caption:i,snippet:i,meta:"property value",score:1e6}})}}).call(g.prototype),r.CssCompletions=g}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,r,v){var p=e("../../lib/oop");e("../behaviour").Behaviour;var g=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(g),this.add("colon","insertion",function(d,a,l,u,c){if(c===":"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=new w(u,i.row,i.column),f=s.getCurrentToken();if(f&&f.value.match(/\s+/)&&(f=s.stepBackward()),f&&f.type==="support.type"){var b=u.doc.getLine(i.row),x=b.substring(i.column,i.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(i.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(d,a,l,u,c){var i=u.doc.getTextRange(c);if(!c.isMultiLine()&&i===":"){var s=l.getCursorPosition(),f=new w(u,s.row,s.column),b=f.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=f.stepBackward()),b&&b.type==="support.type"){var x=u.doc.getLine(c.start.row),N=x.substring(c.end.column,c.end.column+1);if(N===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(d,a,l,u,c){if(c===";"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=u.doc.getLine(i.row),f=s.substring(i.column,i.column+1);if(f===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(d,a,l,u,c){if(c==="!"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=u.doc.getLine(i.row);if(/^\s*(;|}|$)/.test(s.substring(i.column)))return{text:"!important",selection:[10,10]}}})};p.inherits(h,g),r.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new u};p.inherits(c,g),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(i,s,f){var b=this.$getIndent(s),x=this.getTokenizer().getLineTokens(s,i).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var N=s.match(/^.*\{\s*$/);return N&&(b+=f),b},this.checkOutdent=function(i,s,f){return this.$outdent.checkOutdent(s,f)},this.autoOutdent=function(i,s,f){this.$outdent.autoOutdent(s,f)},this.getCompletions=function(i,s,f,b){return this.$completer.getCompletions(i,s,f,b)},this.createWorker=function(i){var s=new d(["ace"],"ace/mode/css_worker","Worker");return s.attachToDocument(i.getDocument()),s.on("annotate",function(f){i.setAnnotations(f.data)}),s.on("terminate",function(){i.clearAnnotations()}),s},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=r.FoldMode=function(h,d){this.defaultMode=h,this.subModes=d};p.inherits(w,g),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var d in this.subModes)if(h.indexOf(d)===0)return this.subModes[d];return null},this.$tryMode=function(h,d,a,l){var u=this.$getMode(h);return u?u.getFoldWidget(d,a,l):""},this.getFoldWidget=function(h,d,a){return this.$tryMode(h.getState(a-1),h,d,a)||this.$tryMode(h.getState(a),h,d,a)||this.defaultMode.getFoldWidget(h,d,a)},this.getFoldWidgetRange=function(h,d,a){var l=this.$getMode(h.getState(a-1));return(!l||!l.getFoldWidget(h,d,a))&&(l=this.$getMode(h.getState(a))),(!l||!l.getFoldWidget(h,d,a))&&(l=this.defaultMode),l.getFoldWidgetRange(h,d,a)}}).call(w.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,v){var p=e("../../lib/oop"),g=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,d=r.FoldMode=function(a,l){g.call(this,new w(a,l),{"js-":new h,"css-":new h})};p.inherits(d,g)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,v){function p(s,f){return s.type.lastIndexOf(f+".xml")>-1}function g(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!p(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function w(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!p(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var h=e("../token_iterator").TokenIterator,d=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],a=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=d.concat(a),u={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(u),i=function(){};(function(){this.getCompletions=function(s,f,b,x){var N=f.getTokenAt(b.row,b.column);if(!N)return[];if(p(N,"tag-name")||p(N,"tag-open")||p(N,"end-tag-open"))return this.getTagCompletions(s,f,b,x);if(p(N,"tag-whitespace")||p(N,"attribute-name"))return this.getAttributeCompletions(s,f,b,x);if(p(N,"attribute-value"))return this.getAttributeValueCompletions(s,f,b,x);var M=f.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(M)?this.getHTMLEntityCompletions(s,f,b,x):[]},this.getTagCompletions=function(s,f,b,x){return c.map(function(N){return{value:N,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(s,f,b,x){var N=g(f,b);if(!N)return[];var M=l;return N in u&&(M=M.concat(Object.keys(u[N]))),M.map(function(_){return{caption:_,snippet:_+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(s,f,b,x){var N=g(f,b),M=w(f,b);if(!N)return[];var _=[];return N in u&&M in u[N]&&typeof u[N][M]=="object"&&(_=Object.keys(u[N][M])),_.map(function(C){return{caption:C,snippet:C,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(s,f,b,x){var N=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return N.map(function(M){return{caption:M,snippet:M,meta:"html entity",score:1e6}})}}).call(i.prototype),r.HtmlCompletions=i}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,d=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,u=e("./folding/html").FoldMode,c=e("./html_completions").HtmlCompletions,i=e("../worker/worker_client").WorkerClient,s=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],f=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":h,"css-":d}),this.foldingRules=new u(this.voidElements,g.arrayToMap(f))};p.inherits(b,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=g.arrayToMap(s),this.getNextLineIndent=function(x,N,M){return this.$getIndent(N)},this.checkOutdent=function(x,N,M){return!1},this.getCompletions=function(x,N,M,_){return this.$completer.getCompletions(x,N,M,_)},this.createWorker=function(x){if(this.constructor==b){var N=new i(["ace"],"ace/mode/html_worker","Worker");return N.attachToDocument(x.getDocument()),this.fragmentContext&&N.call("setOptions",[{context:this.fragmentContext}]),N.on("error",function(M){x.setAnnotations(M.data)}),N.on("terminate",function(){x.clearAnnotations()}),N}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),r.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",d=function(){var a=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",u="(?:\\.\\d+)",c="(?:\\d+)",i="(?:(?:"+c+"?"+u+")|(?:"+c+"\\.))",s="(?:(?:"+i+"|"+c+"))",f="(?:"+s+"|"+i+")",b="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",N="(?:"+x+"(?==))",M="(?:\\$(?:SHLVL|\\$|\\!|\\?))",_="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(C,L,D){var I=C[2]=="-"?"indentedHeredoc":"heredoc",E=C.split(this.splitRegex);return D.push(I,E[4]),[{type:"constant",value:E[1]},{type:"text",value:E[2]},{type:"string",value:E[3]},{type:"support.class",value:E[4]},{type:"string",value:E[5]}]},rules:{heredoc:[{onMatch:function(C,L,D){return C===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(C,L,D){return C===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(C,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:C}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:M},{token:"variable",regex:N},{include:"variables"},{token:"support.function",regex:_},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:f},{token:"constant.numeric",regex:l+"\\b"},{token:a,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};p.inherits(d,g),r.ShHighlightRules=d}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,d=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=w,this.foldingRules=new d,this.$behaviour=this.$defaultBehaviour};p.inherits(a,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
986
|
+
`&&i!=="\r"&&i!==`
|
|
987
|
+
`)return!1;var s=this.getTokenizer().getLineTokens(c.trim(),u).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(u,c,i){i+=1;var s=this.$getIndent(c.getLine(i)),f=c.getTabString();s.slice(-f.length)==f&&c.remove(new h(i,s.length-f.length,i,s.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,d=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=h,this.$behaviour=new d,this.foldingRules=new a};p.inherits(u,w),(function(){this.voidElements=g.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(c){var i=new l(["ace"],"ace/mode/xml_worker","Worker");return i.attachToDocument(c.getDocument()),i.on("error",function(s){c.setAnnotations(s.data)}),i.on("terminate",function(){c.clearAnnotations()}),i},this.$id="ace/mode/xml"}).call(u.prototype),r.Mode=u}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,r,v){var p=e("../lib/oop"),g=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,d=e("./folding/markdown").FoldMode,a=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new d,this.$behaviour=new g({braces:!0})};p.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,u,c){if(l=="listblock"){var i=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(u);if(!i)return"";var s=i[2];return s||(s=parseInt(i[3],10)+1+"."),i[1]+s+i[4]}return this.$getIndent(u)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/markdown"],function(e){t&&(t.exports=e)})})()})(rp)),rp.exports}px();var op={exports:{}},sp;function gx(){return sp||(sp=1,(function(t,n){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-twilight .ace_gutter {
|
|
988
|
+
background: #232323;
|
|
989
|
+
color: #E2E2E2
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.ace-twilight .ace_print-margin {
|
|
993
|
+
width: 1px;
|
|
994
|
+
background: #232323
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.ace-twilight {
|
|
998
|
+
background-color: #141414;
|
|
999
|
+
color: #F8F8F8
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.ace-twilight .ace_cursor {
|
|
1003
|
+
color: #A7A7A7
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
|
1007
|
+
background: rgba(221, 240, 255, 0.20)
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1011
|
+
box-shadow: 0 0 3px 0px #141414;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
|
1015
|
+
background: rgb(102, 82, 0)
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1019
|
+
margin: -1px 0 0 -1px;
|
|
1020
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1024
|
+
background: rgba(255, 255, 255, 0.031)
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.ace-twilight .ace_gutter-active-line {
|
|
1028
|
+
background-color: rgba(255, 255, 255, 0.031)
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1032
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.ace-twilight .ace_invisible {
|
|
1036
|
+
color: rgba(255, 255, 255, 0.25)
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.ace-twilight .ace_keyword,
|
|
1040
|
+
.ace-twilight .ace_meta {
|
|
1041
|
+
color: #CDA869
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.ace-twilight .ace_constant,
|
|
1045
|
+
.ace-twilight .ace_constant.ace_character,
|
|
1046
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1047
|
+
.ace-twilight .ace_constant.ace_other,
|
|
1048
|
+
.ace-twilight .ace_heading,
|
|
1049
|
+
.ace-twilight .ace_markup.ace_heading,
|
|
1050
|
+
.ace-twilight .ace_support.ace_constant {
|
|
1051
|
+
color: #CF6A4C
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
|
1055
|
+
color: #F8F8F8;
|
|
1056
|
+
background-color: rgba(86, 45, 86, 0.75)
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1060
|
+
text-decoration: underline;
|
|
1061
|
+
font-style: italic;
|
|
1062
|
+
color: #D2A8A1
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.ace-twilight .ace_support {
|
|
1066
|
+
color: #9B859D
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.ace-twilight .ace_fold {
|
|
1070
|
+
background-color: #AC885B;
|
|
1071
|
+
border-color: #F8F8F8
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.ace-twilight .ace_support.ace_function {
|
|
1075
|
+
color: #DAD085
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.ace-twilight .ace_list,
|
|
1079
|
+
.ace-twilight .ace_markup.ace_list,
|
|
1080
|
+
.ace-twilight .ace_storage {
|
|
1081
|
+
color: #F9EE98
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1085
|
+
.ace-twilight .ace_meta.ace_tag {
|
|
1086
|
+
color: #AC885B
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.ace-twilight .ace_string {
|
|
1090
|
+
color: #8F9D6A
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.ace-twilight .ace_string.ace_regexp {
|
|
1094
|
+
color: #E9C062
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.ace-twilight .ace_comment {
|
|
1098
|
+
font-style: italic;
|
|
1099
|
+
color: #5F5A60
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.ace-twilight .ace_variable {
|
|
1103
|
+
color: #7587A6
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.ace-twilight .ace_xml-pe {
|
|
1107
|
+
color: #494949
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.ace-twilight .ace_indent-guide {
|
|
1111
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.ace-twilight .ace_indent-guide-active {
|
|
1115
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1116
|
+
}
|
|
1117
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,v){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=e("./twilight-css");var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),(function(){ace.require(["ace/theme/twilight"],function(e){t&&(t.exports=e)})})()})(op)),op.exports}gx();var ap={exports:{}},lp;function mx(){return lp||(lp=1,(function(t,n){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,r,v){function p(C){var L=new Date().toLocaleString("en-us",C);return L.length==1?"0"+L:L}var g=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,d=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,u=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,i=e("./clipboard"),s={CURRENT_WORD:function(C){return C.session.getTextRange(C.session.getWordRange())},SELECTION:function(C,L,D){var I=C.session.getTextRange();return D?I.replace(/\n\r?([ \t]*\S)/g,`
|
|
1118
|
+
`+D+"$1"):I},CURRENT_LINE:function(C){return C.session.getLine(C.getCursorPosition().row)},PREV_LINE:function(C){return C.session.getLine(C.getCursorPosition().row-1)},LINE_INDEX:function(C){return C.getCursorPosition().row},LINE_NUMBER:function(C){return C.getCursorPosition().row+1},SOFT_TABS:function(C){return C.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(C){return C.session.getTabSize()},CLIPBOARD:function(C){return i.getText&&i.getText()},FILENAME:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0]},FILENAME_BASE:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(C){return this.FILEPATH(C).replace(/[^/\\]*$/,"")},FILEPATH:function(C){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(C){var L=C.session.$mode||{};return L.blockComment&&L.blockComment.start||""},BLOCK_COMMENT_END:function(C){var L=C.session.$mode||{};return L.blockComment&&L.blockComment.end||""},LINE_COMMENT:function(C){var L=C.session.$mode||{};return L.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};s.SELECTED_TEXT=s.SELECTION;var f=(function(){function C(){this.snippetMap={},this.snippetNameMap={},this.variables=s}return C.prototype.getTokenizer=function(){return C.$tokenizer||this.createTokenizer()},C.prototype.createTokenizer=function(){function L(E){return E=E.substr(1),/^\d+$/.test(E)?[{tabstopId:parseInt(E,10)}]:[{text:E}]}function D(E){return"(?:[^\\\\"+E+"]|\\\\.)"}var I={regex:"/("+D("/")+"+)/",onMatch:function(E,z,P){var O=P[0];return O.fmtString=!0,O.guard=E.slice(1,-1),O.flag="",""},next:"formatString"};return C.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(E,z,P){var O=E[1];return(O=="}"&&P.length||"`$\\".indexOf(O)!=-1)&&(E=O),[E]}},{regex:/}/,onMatch:function(E,z,P){return[P.length?P.shift():E]}},{regex:/\$(?:\d+|\w+)/,onMatch:L},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(E,z,P){var O=L(E.substr(1));return P.unshift(O[0]),O},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+D("\\|")+"*\\|",onMatch:function(E,z,P){var O=E.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return P[0].choices=O,[O[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(E,z,P){return P.length&&P[0].expectElse?(P[0].expectElse=!1,P[0].ifEnd={elseEnd:P[0]},[P[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(E,z,P){var O=E[1];return O=="}"&&P.length||"`$\\".indexOf(O)!=-1?E=O:O=="n"?E=`
|
|
1119
|
+
`:O=="t"?E=" ":"ulULE".indexOf(O)!=-1&&(E={changeCase:O,local:O>"a"}),[E]}},{regex:"/\\w*}",onMatch:function(E,z,P){var O=P.shift();return O&&(O.flag=E.slice(1,-1)),this.next=O&&O.tabstopId?"start":"",[O||E]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(E,z,P){return[{text:E.slice(1)}]}},{regex:/\${\w+/,onMatch:function(E,z,P){var O={text:E.slice(2)};return P.unshift(O),[O]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(E,z,P){var O=P.shift();return this.next=O&&O.tabstopId?"start":"",[O||E]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(E,z,P){var O=P[0];return O.formatFunction=E.slice(2,-1),[P.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(E,z,P){E[1]=="+"&&(P[0].ifEnd=P[0]),E[1]=="?"&&(P[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),C.$tokenizer},C.prototype.tokenizeTmSnippet=function(L,D){return this.getTokenizer().getLineTokens(L,D).tokens.map(function(I){return I.value||I})},C.prototype.getVariableValue=function(L,D,I){if(/^\d+$/.test(D))return(this.variables.__||{})[D]||"";if(/^[A-Z]\d+$/.test(D))return(this.variables[D[0]+"__"]||{})[D.substr(1)]||"";if(D=D.replace(/^TM_/,""),!this.variables.hasOwnProperty(D))return"";var E=this.variables[D];return typeof E=="function"&&(E=this.variables[D](L,D,I)),E??""},C.prototype.tmStrFormat=function(L,D,I){if(!D.fmt)return L;var E=D.flag||"",z=D.guard;z=new RegExp(z,E.replace(/[^gim]/g,""));var P=typeof D.fmt=="string"?this.tokenizeTmSnippet(D.fmt,"formatString"):D.fmt,O=this,$=L.replace(z,function(){var k=O.variables.__;O.variables.__=[].slice.call(arguments);for(var R=O.resolveVariables(P,I),B="E",U=0;U<R.length;U++){var q=R[U];if(typeof q=="object")if(R[U]="",q.changeCase&&q.local){var Q=R[U+1];Q&&typeof Q=="string"&&(q.changeCase=="u"?R[U]=Q[0].toUpperCase():R[U]=Q[0].toLowerCase(),R[U+1]=Q.substr(1))}else q.changeCase&&(B=q.changeCase);else B=="U"?R[U]=q.toUpperCase():B=="L"&&(R[U]=q.toLowerCase())}return O.variables.__=k,R.join("")});return $},C.prototype.tmFormatFunction=function(L,D,I){return D.formatFunction=="upcase"?L.toUpperCase():D.formatFunction=="downcase"?L.toLowerCase():L},C.prototype.resolveVariables=function(L,D){function I(B){var U=L.indexOf(B,O+1);U!=-1&&(O=U)}for(var E=[],z="",P=!0,O=0;O<L.length;O++){var $=L[O];if(typeof $=="string"){E.push($),$==`
|
|
1120
|
+
`?(P=!0,z=""):P&&(z=/^\t*/.exec($)[0],P=/\S/.test($));continue}if($){if(P=!1,$.fmtString){var k=L.indexOf($,O+1);k==-1&&(k=L.length),$.fmt=L.slice(O+1,k),O=k}if($.text){var R=this.getVariableValue(D,$.text,z)+"";$.fmtString&&(R=this.tmStrFormat(R,$,D)),$.formatFunction&&(R=this.tmFormatFunction(R,$,D)),R&&!$.ifEnd?(E.push(R),I($)):!R&&$.ifEnd&&I($.ifEnd)}else $.elseEnd?I($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&E.push($)}}return E},C.prototype.getDisplayTextForSnippet=function(L,D){var I=b.call(this,L,D);return I.text},C.prototype.insertSnippetForSelection=function(L,D,I){I===void 0&&(I={});var E=b.call(this,L,D,I),z=L.getSelectionRange(),P=L.session.replace(z,E.text),O=new x(L),$=L.inVirtualSelectionMode&&L.selection.index;O.addTabstops(E.tabstops,z.start,P,$)},C.prototype.insertSnippet=function(L,D,I){I===void 0&&(I={});var E=this;if(L.inVirtualSelectionMode)return E.insertSnippetForSelection(L,D,I);L.forEachSelection(function(){E.insertSnippetForSelection(L,D,I)},null,{keepOrder:!0}),L.tabstopManager&&L.tabstopManager.tabNext()},C.prototype.$getScope=function(L){var D=L.session.$mode.$id||"";if(D=D.split("/").pop(),D==="html"||D==="php"){D==="php"&&!L.session.$mode.inlinePhp&&(D="html");var I=L.getCursorPosition(),E=L.session.getState(I.row);typeof E=="object"&&(E=E[0]),E.substring&&(E.substring(0,3)=="js-"?D="javascript":E.substring(0,4)=="css-"?D="css":E.substring(0,4)=="php-"&&(D="php"))}return D},C.prototype.getActiveScopes=function(L){var D=this.$getScope(L),I=[D],E=this.snippetMap;return E[D]&&E[D].includeScopes&&I.push.apply(I,E[D].includeScopes),I.push("_"),I},C.prototype.expandWithTab=function(L,D){var I=this,E=L.forEachSelection(function(){return I.expandSnippetForSelection(L,D)},null,{keepOrder:!0});return E&&L.tabstopManager&&L.tabstopManager.tabNext(),E},C.prototype.expandSnippetForSelection=function(L,D){var I=L.getCursorPosition(),E=L.session.getLine(I.row),z=E.substring(0,I.column),P=E.substr(I.column),O=this.snippetMap,$;return this.getActiveScopes(L).some(function(k){var R=O[k];return R&&($=this.findMatchingSnippet(R,z,P)),!!$},this),$?(D&&D.dryRun||(L.session.doc.removeInLine(I.row,I.column-$.replaceBefore.length,I.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(L,$.content),this.variables.M__=this.variables.T__=null),!0):!1},C.prototype.findMatchingSnippet=function(L,D,I){for(var E=L.length;E--;){var z=L[E];if(!(z.startRe&&!z.startRe.test(D))&&!(z.endRe&&!z.endRe.test(I))&&!(!z.startRe&&!z.endRe))return z.matchBefore=z.startRe?z.startRe.exec(D):[""],z.matchAfter=z.endRe?z.endRe.exec(I):[""],z.replaceBefore=z.triggerRe?z.triggerRe.exec(D)[0]:"",z.replaceAfter=z.endTriggerRe?z.endTriggerRe.exec(I)[0]:"",z}},C.prototype.register=function(L,D){function I(k){return k&&!/^\^?\(.*\)\$?$|^\\b$/.test(k)&&(k="(?:"+k+")"),k||""}function E(k,R,B){return k=I(k),R=I(R),k=R+k,k&&k[k.length-1]!="$"&&(k+="$"),new RegExp(k)}function z(k){k.scope||(k.scope=D||"_"),D=k.scope,P[D]||(P[D]=[],O[D]={});var R=O[D];if(k.name){var B=R[k.name];B&&$.unregister(B),R[k.name]=k}P[D].push(k),k.prefix&&(k.tabTrigger=k.prefix),!k.content&&k.body&&(k.content=Array.isArray(k.body)?k.body.join(`
|
|
1121
|
+
`):k.body),k.tabTrigger&&!k.trigger&&(!k.guard&&/^\w/.test(k.tabTrigger)&&(k.guard="\\b"),k.trigger=d.escapeRegExp(k.tabTrigger)),!(!k.trigger&&!k.guard&&!k.endTrigger&&!k.endGuard)&&(k.startRe=E(k.trigger,k.guard),k.triggerRe=new RegExp(k.trigger),k.endRe=E(k.endTrigger,k.endGuard),k.endTriggerRe=new RegExp(k.endTrigger))}var P=this.snippetMap,O=this.snippetNameMap,$=this;L||(L=[]),Array.isArray(L)?L.forEach(z):Object.keys(L).forEach(function(k){z(L[k])}),this._signal("registerSnippets",{scope:D})},C.prototype.unregister=function(L,D){function I(P){var O=z[P.scope||D];if(O&&O[P.name]){delete O[P.name];var $=E[P.scope||D],k=$&&$.indexOf(P);k>=0&&$.splice(k,1)}}var E=this.snippetMap,z=this.snippetNameMap;L.content?I(L):Array.isArray(L)&&L.forEach(I)},C.prototype.parseSnippetFile=function(L){L=L.replace(/\r/g,"");for(var D=[],I={},E=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,z;z=E.exec(L);){if(z[1])try{I=JSON.parse(z[1]),D.push(I)}catch{}if(z[4])I.content=z[4].replace(/^\t/gm,""),D.push(I),I={};else{var P=z[2],O=z[3];if(P=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=$.exec(O)[1],I.trigger=$.exec(O)[1],I.endTrigger=$.exec(O)[1],I.endGuard=$.exec(O)[1]}else P=="snippet"?(I.tabTrigger=O.match(/^\S*/)[0],I.name||(I.name=O)):P&&(I[P]=O)}}return D},C.prototype.getSnippetByName=function(L,D){var I=this.snippetNameMap,E;return this.getActiveScopes(D).some(function(z){var P=I[z];return P&&(E=P[L]),!!E},this),E},C})();w.implement(f.prototype,h);var b=function(C,L,D){function I(de){for(var me=[],$e=0;$e<de.length;$e++){var Me=de[$e];if(typeof Me=="object"){if(R[Me.tabstopId])continue;var Te=de.lastIndexOf(Me,$e-1);Me=me[Te]||{tabstopId:Me.tabstopId}}me[$e]=Me}return me}D===void 0&&(D={});var E=C.getCursorPosition(),z=C.session.getLine(E.row),P=C.session.getTabString(),O=z.match(/^\s*/)[0];E.column<O.length&&(O=O.slice(0,E.column)),L=L.replace(/\r/g,"");var $=this.tokenizeTmSnippet(L);$=this.resolveVariables($,C),$=$.map(function(de){return de==`
|
|
1122
|
+
`&&!D.excludeExtraIndent?de+O:typeof de=="string"?de.replace(/\t/g,P):de});var k=[];$.forEach(function(de,me){if(typeof de=="object"){var $e=de.tabstopId,Me=k[$e];if(Me||(Me=k[$e]=[],Me.index=$e,Me.value="",Me.parents={}),Me.indexOf(de)===-1){de.choices&&!Me.choices&&(Me.choices=de.choices),Me.push(de);var Te=$.indexOf(de,me+1);if(Te!==-1){var Ze=$.slice(me+1,Te),qe=Ze.some(function(it){return typeof it=="object"});qe&&!Me.value?Me.value=Ze:Ze.length&&(!Me.value||typeof Me.value!="string")&&(Me.value=Ze.join(""))}}}}),k.forEach(function(de){de.length=0});for(var R={},B=0;B<$.length;B++){var U=$[B];if(typeof U=="object"){var q=U.tabstopId,Q=k[q],ee=$.indexOf(U,B+1);if(R[q]){R[q]===U&&(delete R[q],Object.keys(R).forEach(function(de){Q.parents[de]=!0}));continue}R[q]=U;var ae=Q.value;typeof ae!="string"?ae=I(ae):U.fmt&&(ae=this.tmStrFormat(ae,U,C)),$.splice.apply($,[B+1,Math.max(0,ee-B)].concat(ae,U)),Q.indexOf(U)===-1&&Q.push(U)}}var ne=0,ce=0,se="";return $.forEach(function(de){if(typeof de=="string"){var me=de.split(`
|
|
1123
|
+
`);me.length>1?(ce=me[me.length-1].length,ne+=me.length-1):ce+=de.length,se+=de}else de&&(de.start?de.end={row:ne,column:ce}:de.start={row:ne,column:ce})}),{text:se,tabstops:k,tokens:$}},x=(function(){function C(L){if(this.index=0,this.ranges=[],this.tabstops=[],L.tabstopManager)return L.tabstopManager;L.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=d.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(L)}return C.prototype.attach=function(L){this.$openTabstops=null,this.selectedTabstop=null,this.editor=L,this.session=L.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},C.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},C.prototype.onChange=function(L){for(var D=L.action[0]=="r",I=this.selectedTabstop||{},E=I.parents||{},z=this.tabstops.slice(),P=0;P<z.length;P++){var O=z[P],$=O==I||E[O.index];if(O.rangeList.$bias=$?0:1,L.action=="remove"&&O!==I){var k=O.parents&&O.parents[I.index],R=O.rangeList.pointIndex(L.start,k);R=R<0?-R-1:R+1;var B=O.rangeList.pointIndex(L.end,k);B=B<0?-B-1:B-1;for(var U=O.rangeList.ranges.slice(R,B),q=0;q<U.length;q++)this.removeRange(U[q])}O.rangeList.$onChange(L)}var Q=this.session;!this.$inChange&&D&&Q.getLength()==1&&!Q.getValue()&&this.detach()},C.prototype.updateLinkedFields=function(){var L=this.selectedTabstop;if(!(!L||!L.hasLinkedRanges||!L.firstNonLinked)){this.$inChange=!0;for(var D=this.session,I=D.getTextRange(L.firstNonLinked),E=0;E<L.length;E++){var z=L[E];if(z.linked){var P=z.original,O=r.snippetManager.tmStrFormat(I,P,this.editor);D.replace(z,O)}}this.$inChange=!1}},C.prototype.onAfterExec=function(L){L.command&&!L.command.readOnly&&this.updateLinkedFields()},C.prototype.onChangeSelection=function(){if(this.editor){for(var L=this.editor.selection.lead,D=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),E=0;E<this.ranges.length;E++)if(!this.ranges[E].linked){var z=this.ranges[E].contains(L.row,L.column),P=I||this.ranges[E].contains(D.row,D.column);if(z&&P)return}this.detach()}},C.prototype.onChangeSession=function(){this.detach()},C.prototype.tabNext=function(L){var D=this.tabstops.length,I=this.index+(L||1);I=Math.min(Math.max(I,1),D),I==D&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},C.prototype.selectTabstop=function(L){this.$openTabstops=null;var D=this.tabstops[this.index];if(D&&this.addTabstopMarkers(D),this.index=L,D=this.tabstops[this.index],!(!D||!D.length)){this.selectedTabstop=D;var I=D.firstNonLinked||D;if(D.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var E=this.editor.multiSelect;E.toSingleRange(I);for(var z=0;z<D.length;z++)D.hasLinkedRanges&&D[z].linked||E.addRange(D[z].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},C.prototype.addTabstops=function(L,D,I){var E=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!L[0]){var z=a.fromPoints(I,I);M(z.start,D),M(z.end,D),L[0]=[z],L[0].index=0}var P=this.index,O=[P+1,0],$=this.ranges,k=this.snippetId=(this.snippetId||0)+1;L.forEach(function(R,B){var U=this.$openTabstops[B]||R;U.snippetId=k;for(var q=0;q<R.length;q++){var Q=R[q],ee=a.fromPoints(Q.start,Q.end||Q.start);N(ee.start,D),N(ee.end,D),ee.original=Q,ee.tabstop=U,$.push(ee),U!=R?U.unshift(ee):U[q]=ee,Q.fmtString||U.firstNonLinked&&E?(ee.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=ee)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===R&&(O.push(U),this.$openTabstops[B]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new l,U.rangeList.$bias=0,U.rangeList.addList(U)},this),O.length>2&&(this.tabstops.length&&O.push(O.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,O))},C.prototype.addTabstopMarkers=function(L){var D=this.session;L.forEach(function(I){I.markerId||(I.markerId=D.addMarker(I,"ace_snippet-marker","text"))})},C.prototype.removeTabstopMarkers=function(L){var D=this.session;L.forEach(function(I){D.removeMarker(I.markerId),I.markerId=null})},C.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var L=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&L--,this.tabstops.forEach(function(D){D.snippetId===L?this.addTabstopMarkers(D):this.removeTabstopMarkers(D)},this)}},C.prototype.removeRange=function(L){var D=L.tabstop.indexOf(L);D!=-1&&L.tabstop.splice(D,1),D=this.ranges.indexOf(L),D!=-1&&this.ranges.splice(D,1),D=L.tabstop.rangeList.ranges.indexOf(L),D!=-1&&L.tabstop.splice(D,1),this.session.removeMarker(L.markerId),L.tabstop.length||(D=this.tabstops.indexOf(L.tabstop),D!=-1&&this.tabstops.splice(D,1),this.tabstops.length||this.detach())},C})();x.prototype.keyboardHandler=new u,x.prototype.keyboardHandler.bindKeys({Tab:function(C){r.snippetManager&&r.snippetManager.expandWithTab(C)||(C.tabstopManager.tabNext(1),C.renderer.scrollCursorIntoView())},"Shift-Tab":function(C){C.tabstopManager.tabNext(-1),C.renderer.scrollCursorIntoView()},Esc:function(C){C.tabstopManager.detach()}});var N=function(C,L){C.row==0&&(C.column+=L.column),C.row+=L.row},M=function(C,L){C.row==L.row&&(C.column-=L.column),C.row-=L.row};g.importCssString(`
|
|
1124
|
+
.ace_snippet-marker {
|
|
1125
|
+
-moz-box-sizing: border-box;
|
|
1126
|
+
box-sizing: border-box;
|
|
1127
|
+
background: rgba(194, 193, 208, 0.09);
|
|
1128
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1129
|
+
position: absolute;
|
|
1130
|
+
}`,"snippets.css",!1),r.snippetManager=new f;var _=e("./editor").Editor;(function(){this.insertSnippet=function(C,L){return r.snippetManager.insertSnippet(this,C,L)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(_.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,r,v){var p=e("../virtual_renderer").VirtualRenderer,g=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),d=e("../lib/lang"),a=e("../lib/dom"),l=e("../config").nls,u=e("./../lib/useragent"),c=function(N){return"suggest-aria-id:".concat(N)},i=u.isSafari?"menu":"listbox",s=u.isSafari?"menuitem":"option",f=u.isSafari?"aria-current":"aria-selected",b=function(N){var M=new p(N);M.$maxLines=4;var _=new g(M);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},x=(function(){function N(M){var _=a.createElement("div"),C=b(_);M&&M.appendChild(_),_.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var L=function(){};C.focus=L,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=L,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function($){var k=$.getDocumentPosition();C.selection.moveToPosition(k),E.start.row=E.end.row=k.row,$.stop()});var D,I=new w(-1,0,-1,1/0),E=new w(-1,0,-1,1/0);E.id=C.session.addMarker(E,"ace_active-line","fullLine"),C.setSelectOnHover=function($){$?I.id&&(C.session.removeMarker(I.id),I.id=null):I.id=C.session.addMarker(I,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function($){if(!D){D=$;return}if(!(D.x==$.x&&D.y==$.y)){D=$,D.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var k=D.getDocumentPosition().row;I.start.row!=k&&(I.id||C.setRow(k),P(k))}}),C.renderer.on("beforeRender",function(){if(D&&I.start.row!=-1){D.$pos=null;var $=D.getDocumentPosition().row;I.id||C.setRow($),P($,!0)}}),C.renderer.on("afterRender",function(){for(var $=C.renderer.$textLayer,k=$.config.firstRow,R=$.config.lastRow;k<=R;k++){var B=$.element.childNodes[k-$.config.firstRow];B.setAttribute("role",s),B.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",C.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",k+1);var U=C.getData(k);if(U){var q="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");B.setAttribute("aria-label",q)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(ee){ee.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var $=C.getRow(),k=C.renderer.$textLayer,R=k.element.childNodes[$-k.config.firstRow],B=document.activeElement;if(R!==C.selectedNode&&C.selectedNode&&(a.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(f),C.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),C.selectedNode=R,R){var U=c($);a.addCssClass(R,"ace_selected"),R.id=U,k.element.setAttribute("aria-activedescendant",U),B.setAttribute("aria-activedescendant",U),R.setAttribute(f,"true")}});var z=function(){P(-1)},P=function($,k){$!==I.start.row&&(I.start.row=I.end.row=$,k||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return I.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,z()}),C.on("hide",z),C.on("changeSelection",z),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function($){var k=C.data[$];return typeof k=="string"?k:k&&k.value||""};var O=C.session.bgTokenizer;return O.$tokenizeRow=function($){function k(de,me){de&&B.push({type:(R.className||"")+(me||""),value:de})}var R=C.data[$],B=[];if(!R)return B;typeof R=="string"&&(R={value:R});for(var U=R.caption||R.value||R.name,q=U.toLowerCase(),Q=(C.filterText||"").toLowerCase(),ee=0,ae=0,ne=0;ne<=Q.length;ne++)if(ne!=ae&&(R.matchMask&1<<ne||ne==Q.length)){var ce=Q.slice(ae,ne);ae=ne;var se=q.indexOf(ce,ee);if(se==-1)continue;k(U.slice(ee,se),""),ee=se+ce.length,k(U.slice(se,ee),"completion-highlight")}return k(U.slice(ee,U.length),""),B.push({type:"completion-spacer",value:" "}),R.meta&&B.push({type:"completion-meta",value:R.meta}),R.message&&B.push({type:"completion-message",value:R.message}),B},O.$updateOnChange=L,O.start=L,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function($,k){C.filterText=k||"",C.setValue(d.stringRepeat(`
|
|
1131
|
+
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return E.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(C.selection.clearSelection(),E.start.row=E.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,k,R,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===R)return!0;var U=this.container,q=this.renderer.scrollBar.width||10,Q=window.innerHeight-q,ee=window.innerWidth-q,ae=this.renderer,ne=ae.$maxLines*k*1.4,ce={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-k,de=$.top-3*this.$borderSize;R||(de<=se||se>=ne?R="bottom":R="top"),R==="top"?(ce.bottom=$.top-this.$borderSize,ce.top=ce.bottom-ne):R==="bottom"&&(ce.top=$.top+k+this.$borderSize,ce.bottom=ce.top+ne);var me=ce.top>=0&&ce.bottom<=Q;if(!B&&!me)return!1;me?ae.$maxPixelHeight=null:R==="top"?ae.$maxPixelHeight=de:ae.$maxPixelHeight=se,R==="top"?(U.style.top="",U.style.bottom=Q+q-ce.bottom+"px",C.isTopdown=!1):(U.style.top=ce.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var $e=$.left;return $e+U.offsetWidth>ee&&($e=ee-U.offsetWidth),U.style.left=$e+"px",U.style.right="",a.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=R,!0},C.show=function($,k,R){this.tryShow($,k,R?"bottom":void 0,!0)},C.goTo=function($){var k=this.getRow(),R=this.session.getLength()-1;switch($){case"up":k=k<=0?R:k-1;break;case"down":k=k>=R?-1:k+1;break;case"start":k=0;break;case"end":k=R}this.setRow(k)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return N})();a.importCssString(`
|
|
1132
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1133
|
+
background-color: #CAD6FA;
|
|
1134
|
+
z-index: 1;
|
|
1135
|
+
}
|
|
1136
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1137
|
+
background-color: #3a674e;
|
|
1138
|
+
}
|
|
1139
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1140
|
+
border: 1px solid #abbffe;
|
|
1141
|
+
margin-top: -1px;
|
|
1142
|
+
background: rgba(233,233,253,0.4);
|
|
1143
|
+
position: absolute;
|
|
1144
|
+
z-index: 2;
|
|
1145
|
+
}
|
|
1146
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1147
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1148
|
+
background: rgba(58, 103, 78, 0.62);
|
|
1149
|
+
}
|
|
1150
|
+
.ace_completion-meta {
|
|
1151
|
+
opacity: 0.5;
|
|
1152
|
+
margin-left: 0.9em;
|
|
1153
|
+
}
|
|
1154
|
+
.ace_completion-message {
|
|
1155
|
+
margin-left: 0.9em;
|
|
1156
|
+
color: blue;
|
|
1157
|
+
}
|
|
1158
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1159
|
+
color: #2d69c7;
|
|
1160
|
+
}
|
|
1161
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1162
|
+
color: #93ca12;
|
|
1163
|
+
}
|
|
1164
|
+
.ace_editor.ace_autocomplete {
|
|
1165
|
+
width: 300px;
|
|
1166
|
+
z-index: 200000;
|
|
1167
|
+
border: 1px lightgray solid;
|
|
1168
|
+
position: fixed;
|
|
1169
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1170
|
+
line-height: 1.4;
|
|
1171
|
+
background: #fefefe;
|
|
1172
|
+
color: #111;
|
|
1173
|
+
}
|
|
1174
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
|
1175
|
+
border: 1px #484747 solid;
|
|
1176
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1177
|
+
line-height: 1.4;
|
|
1178
|
+
background: #25282c;
|
|
1179
|
+
color: #c1c1c1;
|
|
1180
|
+
}
|
|
1181
|
+
.ace_autocomplete .ace_text-layer {
|
|
1182
|
+
width: calc(100% - 8px);
|
|
1183
|
+
}
|
|
1184
|
+
.ace_autocomplete .ace_line {
|
|
1185
|
+
display: flex;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
}
|
|
1188
|
+
.ace_autocomplete .ace_line > * {
|
|
1189
|
+
min-width: 0;
|
|
1190
|
+
flex: 0 0 auto;
|
|
1191
|
+
}
|
|
1192
|
+
.ace_autocomplete .ace_line .ace_ {
|
|
1193
|
+
flex: 0 1 auto;
|
|
1194
|
+
overflow: hidden;
|
|
1195
|
+
text-overflow: ellipsis;
|
|
1196
|
+
}
|
|
1197
|
+
.ace_autocomplete .ace_completion-spacer {
|
|
1198
|
+
flex: 1;
|
|
1199
|
+
}
|
|
1200
|
+
.ace_autocomplete.ace_loading:after {
|
|
1201
|
+
content: "";
|
|
1202
|
+
position: absolute;
|
|
1203
|
+
top: 0px;
|
|
1204
|
+
height: 2px;
|
|
1205
|
+
width: 8%;
|
|
1206
|
+
background: blue;
|
|
1207
|
+
z-index: 100;
|
|
1208
|
+
animation: ace_progress 3s infinite linear;
|
|
1209
|
+
animation-delay: 300ms;
|
|
1210
|
+
transform: translateX(-100%) scaleX(1);
|
|
1211
|
+
}
|
|
1212
|
+
@keyframes ace_progress {
|
|
1213
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
|
1214
|
+
50% { transform: translateX(625%) scaleX(2) }
|
|
1215
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
|
1216
|
+
}
|
|
1217
|
+
@media (prefers-reduced-motion) {
|
|
1218
|
+
.ace_autocomplete.ace_loading:after {
|
|
1219
|
+
transform: translateX(625%) scaleX(2);
|
|
1220
|
+
animation: none;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,v){var p=(function(){function g(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return g.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[d-a.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},g.prototype.destroy=function(){this.screenReaderDiv.remove()},g.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);d.appendChild(a),w.appendChild(d)}return w},g})();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,v){var p=e("../snippets").snippetManager,g=e("./inline_screenreader").AceInlineScreenReader,w=(function(){function h(){this.editor=null}return h.prototype.show=function(d,a,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new g(d));var u=a.snippet?p.getDisplayTextForSnippet(d,a.snippet):a.value;return a.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h})();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,v){r.parForEach=function(g,w,h){var d=0,a=g.length;a===0&&h();for(var l=0;l<a;l++)w(g[l],function(u,c){d++,d===a&&h(u,c)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(g,w,h){h=h||p;for(var d=[],a=w-1;a>=0&&h.test(g[a]);a--)d.push(g[a]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(g,w,h){h=h||p;for(var d=[],a=w;a<g.length&&h.test(g[a]);a++)d.push(g[a]);return d},r.getCompletionPrefix=function(g){var w=g.getCursorPosition(),h=g.session.getLine(w.row),d;return g.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(g,h){var h=h??g.session.getPrecedingCharacter();return g.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,v){var p=e("./keyboard/hash_handler").HashHandler,g=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),s=e("./lib/scroll").preventParentScroll,f=function(M,_){_.completer&&_.completer.destroy()},b=(function(){function M(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var _=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!_||this.editor.completers.length===0||(this.completions=new N(M.completionsForLoading),this.openPopup(this.editor,_.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(M,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),M.prototype.$init=function(){return this.popup=new g(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(_){this.insertMatch(),_.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},M.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},M.prototype.getPopup=function(){return this.popup||this.$init()},M.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},M.prototype.$seen=function(_){!this.hasSeen.has(_)&&_&&_.completer&&_.completer.onSeen&&typeof _.completer.onSeen=="function"&&(_.completer.onSeen(this.editor,_),this.hasSeen.add(_))},M.prototype.$onPopupChange=function(_){if(this.inlineRenderer&&this.inlineEnabled){var C=_?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},M.prototype.$updateGhostText=function(_){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,I=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,_,I)?this.$seen(_):this.inlineRenderer.hide()},M.prototype.$onPopupRender=function(){var _=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!_||L.hideInlinePreview)&&this.$seen(L)}},M.prototype.$onPopupShow=function(_){this.$onPopupChange(_),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},M.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var _=this.editor.container.parentNode,C=[];_;)C.push(_),_.addEventListener("scroll",this.onLayoutChange,{passive:!0}),_=_.parentNode;this.$elements=C}},M.prototype.unObserveLayoutChanges=function(){var _=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",_.onLayoutChange,{passive:!0})}),this.$elements=null},M.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},M.prototype.$updatePopupPosition=function(){var _=this.editor,C=_.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var I=_.container.getBoundingClientRect();D.top+=I.top-C.layerConfig.offset,D.left+=I.left-_.renderer.scrollLeft,D.left+=C.gutterWidth;var E={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(E.top+=C.$ghostTextWidget.el.offsetHeight);var z=_.container.getBoundingClientRect().bottom-L,P=z<E.top?{top:z,left:E.left}:E;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},M.prototype.openPopup=function(_,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),I=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),_.keyBinding.addKeyboardHandler(this.keyboardHandler);var E;this.stickySelection&&(E=this.popup.data.indexOf(I)),(!E||E===-1)&&(E=0),this.popup.setRow(this.autoSelect?E:-1),E===D&&I!==this.completions.filtered[E]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(E===D&&z){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(_.getTheme()),this.popup.setFontSize(_.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},M.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},M.prototype.changeListener=function(_){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},M.prototype.blurListener=function(_){var C=document.activeElement,L=this.editor.textInput.getElement(),D=_.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(_.relatedTarget),I=this.popup&&this.popup.container;C!=L&&C.parentNode!=I&&!D&&C!=this.tooltipNode&&_.relatedTarget!=L&&this.detach()},M.prototype.mousedownListener=function(_){this.detach()},M.prototype.mousewheelListener=function(_){this.popup&&!this.popup.isMouseOver&&this.detach()},M.prototype.mouseOutListener=function(_){this.popup.isOpen&&this.$updatePopupPosition()},M.prototype.goTo=function(_){this.popup.goTo(_)},M.prototype.insertMatch=function(_,C){if(_||(_=this.popup.getData(this.popup.getRow())),!_)return!1;if(_.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,_,L.filterText,C);return this.completions==L&&this.detach(),D},M.prototype.showPopup=function(_,C){this.editor&&this.detach(),this.activated=!0,this.editor=_,_.completer!=this&&(_.completer&&_.completer.detach(),_.completer=this),_.on("changeSelection",this.changeListener),_.on("blur",this.blurListener),_.on("mousedown",this.mousedownListener),_.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},M.prototype.getCompletionProvider=function(_){return this.completionProvider||(this.completionProvider=new x(_)),this.completionProvider},M.prototype.gatherCompletions=function(_,C){return this.getCompletionProvider().gatherCompletions(_,C)},M.prototype.updateCompletions=function(_,C){if(_&&this.base&&this.completions){var D=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:D});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,_);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new N(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",_)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),I=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-I.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:D}).provideCompletions(this.editor,E,(function(z,P,O){var $=P.filtered,k=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var R=!this.autoShown&&this.emptyMessage;if(typeof R=="function"&&(R=this.emptyMessage(k)),R){var B=[{caption:R,value:""}];this.completions=new N(B),this.openPopup(this.editor,k,_),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==k&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new N(M.completionsForLoading.concat($),P.filterText):P,this.openPopup(this.editor,k,_),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},M.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},M.prototype.updateDocTooltip=function(){var _=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[_.getHoveredRow()]||C[_.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,E=0;E<I;E++){var z=this.editor.completers[E];if(z.getDocTooltip&&L.completerId===z.id){D=z.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},M.prototype.showDocTooltip=function(_){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",s));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;_.docHTML?L.innerHTML=_.docHTML:_.docText&&(L.textContent=_.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,I=D.container.getBoundingClientRect(),E=400,z=300,P=D.renderer.scrollBar.width||10,O=I.left,$=window.innerWidth-I.right-P,k=D.isTopdown?window.innerHeight-P-I.bottom:I.top,R=[Math.min($/E,1),Math.min(O/E,1),Math.min(k/z,1)*.9],B=Math.max.apply(Math,R),U=L.style;U.display="block",B==R[0]||R[0]>=1?(U.left=I.right+1+"px",U.right="",U.maxWidth=E*B+"px",U.top=I.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-I.top,z)+"px"):B==R[1]||R[1]>=1?(U.right=window.innerWidth-I.left+"px",U.left="",U.maxWidth=E*B+"px",U.top=I.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-I.top,z)+"px"):B==R[2]&&(U.left=I.left+"px",U.right="",U.maxWidth=Math.min(E,window.innerWidth-I.left)+"px",D.isTopdown?(U.top=I.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-I.bottom,z)+"px"):(U.top="",U.bottom=window.innerHeight-I.top+"px",U.maxHeight=Math.min(I.top,z)+"px")),l.$fixPositionBug(L)},M.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var _=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==_&&this.editor.focus(),this.tooltipNode=null,_.parentNode&&_.parentNode.removeChild(_)}},M.prototype.onTooltipClick=function(_){for(var C=_.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},M.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var _=this.popup.container;_&&_.parentNode&&_.parentNode.removeChild(_)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",f),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},M.for=function(_){return _.completer instanceof M||(_.completer&&(_.completer.destroy(),_.completer=null),c.get("sharedPopups")?(M.$sharedInstance||(M.$sharedInstance=new M),_.completer=M.$sharedInstance):(_.completer=new M,_.once("destroy",f))),_.completer},M})();b.prototype.commands={Up:function(M){M.completer.goTo("up")},Down:function(M){M.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(M){M.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(M){M.completer.goTo("end")},Esc:function(M){M.completer.detach()},Return:function(M){return M.completer.insertMatch()},"Shift-Return":function(M){M.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(M){var _=M.completer.insertMatch();if(_||M.tabstopManager)return _;M.completer.goTo("down")},Backspace:function(M){M.execCommand("backspace");var _=d.getCompletionPrefix(M);!_&&M.completer&&M.completer.detach()},PageUp:function(M){M.completer.popup.gotoPageUp()},PageDown:function(M){M.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(M,_){var C=b.for(M);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(M,_),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=(function(){function M(_){this.initialPosition=_,this.active=!0}return M.prototype.insertByIndex=function(_,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(_,this.completions.filtered[C],L)},M.prototype.insertMatch=function(_,C,L){if(!C)return!1;if(_.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(_,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,I=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,I+=C.range.end.column-this.initialPosition.pos.column),D||I){var E;_.selection.getAllRanges?E=_.selection.getAllRanges():E=[_.getSelectionRange()];for(var z=0,P;P=E[z];z++)P.start.column-=D,P.end.column+=I,_.session.remove(P)}C.snippet?u.insertSnippet(_,C.snippet):this.$insertString(_,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(_,C),C.command&&C.command==="startAutocomplete"&&_.execCommand(C.command)}return _.endOperation(),!0},M.prototype.$insertString=function(_,C){var L=C.value||C;_.execCommand("insertstring",L)},M.prototype.gatherCompletions=function(_,C){var L=_.getSession(),D=_.getCursorPosition(),I=d.getCompletionPrefix(_),E=[];this.completers=_.completers;var z=_.completers.length;return _.completers.forEach(function(P,O){P.getCompletions(_,L,D,I,function($,k){P.hideInlinePreview&&(k=k.map(function(R){return Object.assign(R,{hideInlinePreview:P.hideInlinePreview})})),!$&&k&&(E=E.concat(k)),C(null,{prefix:d.getCompletionPrefix(_),matches:E,finished:--z===0})})}),!0},M.prototype.provideCompletions=function(_,C,L){var D=(function(P){var O=P.prefix,$=P.matches;this.completions=new N($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),I=!0,E=null;if(this.gatherCompletions(_,(function(P,O){if(this.active){P&&(L(P,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(I){E=O;return}D(O)}}}).bind(this)),I=!1,E){var z=E;E=null,D(z)}},M.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(_){typeof _.cancel=="function"&&_.cancel()})},M})(),N=(function(){function M(_,C){this.all=_,this.filtered=_,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return M.prototype.setFilter=function(_){if(_.length>this.filterText&&_.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=_,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,I){return I.exactMatch-D.exactMatch||I.$score-D.$score||(D.caption||D.value).localeCompare(I.caption||I.value)});var L=null;C=C.filter(function(D){var I=D.snippet||D.caption||D.value;return I===L?!1:(L=I,!0)}),this.filtered=C},M.prototype.filterCompletions=function(_,C){var L=[],D=C.toUpperCase(),I=C.toLowerCase();e:for(var E=0,z;z=_[E];E++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var P=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(P){var O=-1,$=0,k=0,R,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(I);if(U>-1)k=U;else for(var q=0;q<C.length;q++){var Q=P.indexOf(I[q],O+1),ee=P.indexOf(D[q],O+1);if(R=Q>=0&&(ee<0||Q<ee)?Q:ee,R<0)continue e;B=R-O-1,B>0&&(O===-1&&(k+=10),k+=B,$|=1<<q),O=R}}z.matchMask=$,z.exactMatch=k?0:1,z.$score=(z.score||0)-k,L.push(z)}}return L},M})();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=N}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,v){var p=(function(){function g(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return g.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},g.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},g.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},g.prototype.update=function(w,h,d,a){if(!(!this.markers||!this.markers.length))for(var l=a.firstRow,u=a.lastRow,c,i=0,s=0,f=0;f<this.markers.length;f++){var b=this.markers[f];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===s?i++:(s=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var N=x.toScreenRange(d);if(N.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,N,b.className,a):N.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,N,b.className,a):h.drawTextMarker(w,N,b.className,a):h.drawSingleLineMarker(w,N,b.className+" ace_br15",a)}}}},g})();p.prototype.MAX_MARKERS=1e4,r.MarkerGroup=p}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,v){function p(d,a){var l=d.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function g(d,a){var l=p(d,a),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(s,f){if(!(!s||s===i)){var b=Math.abs(l-f),x=u.length-b;c[s]?c[s]=Math.max(x,c[s]):c[s]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.id="textCompleter",r.getCompletions=function(d,a,l,u,c){var i=g(a,l),s=Object.keys(i);c(null,s.map(function(f){return{caption:f,value:f,score:i[f],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,v){var p=e("../snippets").snippetManager,g=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),a=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(I,E,z,P,O){if(E.$mode.completer)return E.$mode.completer.getCompletions(I,E,z,P,O);var $=I.session.getState(z.row),k=E.$mode.getCompletions($,E,z,P);k=k.map(function(R){return R.completerId=u.id,R}),O(null,k)},id:"keywordCompleter"},c=function(I){var E={};return I.replace(/\${(\d+)(:(.*?))?}/g,function(z,P,O,$){return E[P]=$||""}).replace(/\$(\d+?)/g,function(z,P){return E[P]})},i={getCompletions:function(I,E,z,P,O){var $=[],k=E.getTokenAt(z.row,z.column);k&&k.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=p.getActiveScopes(I);var R=p.snippetMap,B=[];$.forEach(function(U){for(var q=R[U]||[],Q=q.length;Q--;){var ee=q[Q],ae=ee.name||ee.tabTrigger;ae&&B.push({caption:ae,snippet:ee.content,meta:ee.tabTrigger&&!ee.name?ee.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(I){I.snippet&&!I.docHTML&&(I.docHTML=["<b>",h.escapeHTML(I.caption),"</b>","<hr></hr>",h.escapeHTML(c(I.snippet))].join(""))},id:"snippetCompleter"},s=[i,l,u];r.setCompleters=function(I){s.length=0,I&&s.push.apply(s,I)},r.addCompleter=function(I){s.push(I)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var f={name:"expandSnippet",exec:function(I){return p.expandWithTab(I)},bindKey:"Tab"},b=function(I,E){x(E.session.$mode)},x=function(I){typeof I=="string"&&(I=w.$modes[I]),I&&(p.files||(p.files={}),N(I.$id,I.snippetFileId),I.modes&&I.modes.forEach(x))},N=function(I,E){!E||!I||p.files[I]||(p.files[I]={},w.loadModule(E,function(z){z&&(p.files[I]=z,!z.snippets&&z.snippetText&&(z.snippets=p.parseSnippetFile(z.snippetText)),p.register(z.snippets||[],z.scope),z.includeScopes&&(p.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},M=function(I){var E=I.editor,z=E.completer&&E.completer.activated;if(I.command.name==="backspace")z&&!d.getCompletionPrefix(E)&&E.completer.detach();else if(I.command.name==="insertstring"&&!z){_=I;var P=I.editor.$liveAutocompletionDelay;P?C.delay(P):L(I)}},_,C=h.delayedCall(function(){L(_)},0),L=function(I){var E=I.editor,z=d.getCompletionPrefix(E),P=I.args,O=d.triggerAutocomplete(E,P);if(z&&z.length>=E.$liveAutocompletionThreshold||O){var $=g.for(E);$.autoShown=!0,$.showPopup(E)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(I){I?(g.for(this),this.completers||(this.completers=Array.isArray(I)?I:s),this.commands.addCommand(g.startCommand)):this.commands.removeCommand(g.startCommand)},value:!1},enableLiveAutocompletion:{set:function(I){I?(this.completers||(this.completers=Array.isArray(I)?I:s),this.commands.on("afterExec",M)):this.commands.off("afterExec",M)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(I){I?(this.commands.addCommand(f),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(f),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=a}),(function(){ace.require(["ace/ext/language_tools"],function(e){t&&(t.exports=e)})})()})(ap)),ap.exports}mx();var cp={exports:{}},up;function vx(){return up||(up=1,(function(t,n){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
1224
|
+
|
|
1225
|
+
/* ------------------------------------------------------------------------------------------
|
|
1226
|
+
* Editor Search Form
|
|
1227
|
+
* --------------------------------------------------------------------------------------- */
|
|
1228
|
+
.ace_search {
|
|
1229
|
+
background-color: #ddd;
|
|
1230
|
+
color: #666;
|
|
1231
|
+
border: 1px solid #cbcbcb;
|
|
1232
|
+
border-top: 0 none;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
margin: 0;
|
|
1235
|
+
padding: 4px 6px 0 4px;
|
|
1236
|
+
position: absolute;
|
|
1237
|
+
top: 0;
|
|
1238
|
+
z-index: 99;
|
|
1239
|
+
white-space: normal;
|
|
1240
|
+
}
|
|
1241
|
+
.ace_search.left {
|
|
1242
|
+
border-left: 0 none;
|
|
1243
|
+
border-radius: 0px 0px 5px 0px;
|
|
1244
|
+
left: 0;
|
|
1245
|
+
}
|
|
1246
|
+
.ace_search.right {
|
|
1247
|
+
border-radius: 0px 0px 0px 5px;
|
|
1248
|
+
border-right: 0 none;
|
|
1249
|
+
right: 0;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.ace_search_form, .ace_replace_form {
|
|
1253
|
+
margin: 0 20px 4px 0;
|
|
1254
|
+
overflow: hidden;
|
|
1255
|
+
line-height: 1.9;
|
|
1256
|
+
}
|
|
1257
|
+
.ace_replace_form {
|
|
1258
|
+
margin-right: 0;
|
|
1259
|
+
}
|
|
1260
|
+
.ace_search_form.ace_nomatch {
|
|
1261
|
+
outline: 1px solid red;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.ace_search_field {
|
|
1265
|
+
border-radius: 3px 0 0 3px;
|
|
1266
|
+
background-color: white;
|
|
1267
|
+
color: black;
|
|
1268
|
+
border: 1px solid #cbcbcb;
|
|
1269
|
+
border-right: 0 none;
|
|
1270
|
+
outline: 0;
|
|
1271
|
+
padding: 0;
|
|
1272
|
+
font-size: inherit;
|
|
1273
|
+
margin: 0;
|
|
1274
|
+
line-height: inherit;
|
|
1275
|
+
padding: 0 6px;
|
|
1276
|
+
min-width: 17em;
|
|
1277
|
+
vertical-align: top;
|
|
1278
|
+
min-height: 1.8em;
|
|
1279
|
+
box-sizing: content-box;
|
|
1280
|
+
}
|
|
1281
|
+
.ace_searchbtn {
|
|
1282
|
+
border: 1px solid #cbcbcb;
|
|
1283
|
+
line-height: inherit;
|
|
1284
|
+
display: inline-block;
|
|
1285
|
+
padding: 0 6px;
|
|
1286
|
+
background: #fff;
|
|
1287
|
+
border-right: 0 none;
|
|
1288
|
+
border-left: 1px solid #dcdcdc;
|
|
1289
|
+
cursor: pointer;
|
|
1290
|
+
margin: 0;
|
|
1291
|
+
position: relative;
|
|
1292
|
+
color: #666;
|
|
1293
|
+
}
|
|
1294
|
+
.ace_searchbtn:last-child {
|
|
1295
|
+
border-radius: 0 3px 3px 0;
|
|
1296
|
+
border-right: 1px solid #cbcbcb;
|
|
1297
|
+
}
|
|
1298
|
+
.ace_searchbtn:disabled {
|
|
1299
|
+
background: none;
|
|
1300
|
+
cursor: default;
|
|
1301
|
+
}
|
|
1302
|
+
.ace_searchbtn:hover {
|
|
1303
|
+
background-color: #eef1f6;
|
|
1304
|
+
}
|
|
1305
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1306
|
+
padding: 0px 0.7em
|
|
1307
|
+
}
|
|
1308
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1309
|
+
content: "";
|
|
1310
|
+
border: solid 2px #888;
|
|
1311
|
+
width: 0.5em;
|
|
1312
|
+
height: 0.5em;
|
|
1313
|
+
border-width: 2px 0 0 2px;
|
|
1314
|
+
display:inline-block;
|
|
1315
|
+
transform: rotate(-45deg);
|
|
1316
|
+
}
|
|
1317
|
+
.ace_searchbtn.next:after {
|
|
1318
|
+
border-width: 0 2px 2px 0 ;
|
|
1319
|
+
}
|
|
1320
|
+
.ace_searchbtn_close {
|
|
1321
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1322
|
+
border-radius: 50%;
|
|
1323
|
+
border: 0 none;
|
|
1324
|
+
color: #656565;
|
|
1325
|
+
cursor: pointer;
|
|
1326
|
+
font: 16px/16px Arial;
|
|
1327
|
+
padding: 0;
|
|
1328
|
+
height: 14px;
|
|
1329
|
+
width: 14px;
|
|
1330
|
+
top: 9px;
|
|
1331
|
+
right: 7px;
|
|
1332
|
+
position: absolute;
|
|
1333
|
+
}
|
|
1334
|
+
.ace_searchbtn_close:hover {
|
|
1335
|
+
background-color: #656565;
|
|
1336
|
+
background-position: 50% 100%;
|
|
1337
|
+
color: white;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.ace_button {
|
|
1341
|
+
margin-left: 2px;
|
|
1342
|
+
cursor: pointer;
|
|
1343
|
+
-webkit-user-select: none;
|
|
1344
|
+
-moz-user-select: none;
|
|
1345
|
+
-o-user-select: none;
|
|
1346
|
+
-ms-user-select: none;
|
|
1347
|
+
user-select: none;
|
|
1348
|
+
overflow: hidden;
|
|
1349
|
+
opacity: 0.7;
|
|
1350
|
+
border: 1px solid rgba(100,100,100,0.23);
|
|
1351
|
+
padding: 1px;
|
|
1352
|
+
box-sizing: border-box!important;
|
|
1353
|
+
color: black;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.ace_button:hover {
|
|
1357
|
+
background-color: #eee;
|
|
1358
|
+
opacity:1;
|
|
1359
|
+
}
|
|
1360
|
+
.ace_button:active {
|
|
1361
|
+
background-color: #ddd;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.ace_button.checked {
|
|
1365
|
+
border-color: #3399ff;
|
|
1366
|
+
opacity:1;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.ace_search_options{
|
|
1370
|
+
margin-bottom: 3px;
|
|
1371
|
+
text-align: right;
|
|
1372
|
+
-webkit-user-select: none;
|
|
1373
|
+
-moz-user-select: none;
|
|
1374
|
+
-o-user-select: none;
|
|
1375
|
+
-ms-user-select: none;
|
|
1376
|
+
user-select: none;
|
|
1377
|
+
clear: both;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.ace_search_counter {
|
|
1381
|
+
float: left;
|
|
1382
|
+
font-family: arial;
|
|
1383
|
+
padding: 0 8px;
|
|
1384
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/ext/searchbox","ace/ext/searchbox","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),d=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=e("../config").nls,u=999;p.importCssString(h,"ace_searchbox",!1);var c=(function(){function f(b,x,N){this.activeInput,this.element=p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(b),p.importCssString(h,"ace_searchbox",b.container),w.addListener(this.element,"touchstart",function(M){M.stopPropagation()},b)}return f.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},f.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},f.prototype.onEditorInput=function(){this.find(!1,!1,!0)},f.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},f.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;w.addListener(b,"mousedown",function(N){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(N)}),w.addListener(b,"click",function(N){var M=N.target||N.srcElement,_=M.getAttribute("action");_&&x[_]?x[_]():x.$searchBarKb.commands[_]&&x.$searchBarKb.commands[_].exec(x),w.stopPropagation(N)}),w.addCommandKeyListener(b,function(N,M,_){var C=a.keyCodeToString(_),L=x.$searchBarKb.findKeyCommand(M,C);L&&L.exec&&(L.exec(x),w.stopEvent(N))}),this.$onChange=g.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},f.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},f.prototype.$syncOptions=function(b){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},f.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},f.prototype.find=function(b,x,N){if(this.editor.session){var M=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:N,range:this.searchRange}),_=!M&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",_),this.editor._emit("findSearchBox",{match:!_}),this.highlight(),this.updateCounter()}},f.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,N=x.unicode,M=0,_=0;if(x){var C=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue();b.$search.$isMultilineSearch(b.getLastSearchOptions())&&(C=C.replace(/\r\n|\r|\n/g,`
|
|
1385
|
+
`),b.session.doc.$autoNewLine=`
|
|
1386
|
+
`);var L=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(L-=b.session.doc.positionToIndex(this.searchRange.start));for(var D=x.lastIndex=0,I;(I=x.exec(C))&&(M++,D=I.index,D<=L&&_++,!(M>u||!I[0]&&(x.lastIndex=D+=g.skipEmptyMatch(C,D,N),D>=C.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[_,M>u?u+"+":M])},f.prototype.findNext=function(){this.find(!0,!1)},f.prototype.findPrev=function(){this.find(!0,!0)},f.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},f.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},f.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},f.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},f.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},f.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=x,this.editor.$search.$options.regExp&&(b=g.escapeRegExp(b)),b!=null&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},f.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},f})(),i=new d;i.bindKeys({"Ctrl-f|Command-f":function(f){var b=f.isReplace=!f.isReplace;f.replaceBox.style.display=b?"":"none",f.replaceOption.checked=!1,f.$syncOptions(),f.searchInput.focus()},"Ctrl-H|Command-Option-F":function(f){f.editor.getReadOnly()||(f.replaceOption.checked=!0,f.$syncOptions(),f.replaceInput.focus())},"Ctrl-G|Command-G":function(f){f.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(f){f.findPrev()},esc:function(f){setTimeout(function(){f.hide()})},Return:function(f){f.activeInput==f.replaceInput&&f.replace(),f.findNext()},"Shift-Return":function(f){f.activeInput==f.replaceInput&&f.replace(),f.findPrev()},"Alt-Return":function(f){f.activeInput==f.replaceInput&&f.replaceAll(),f.findAll()},Tab:function(f){(f.activeInput==f.replaceInput?f.searchInput:f.replaceInput).focus()}}),i.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(f){f.regExpOption.checked=!f.regExpOption.checked,f.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(f){f.caseSensitiveOption.checked=!f.caseSensitiveOption.checked,f.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(f){f.wholeWordOption.checked=!f.wholeWordOption.checked,f.$syncOptions()}},{name:"toggleReplace",exec:function(f){f.replaceOption.checked=!f.replaceOption.checked,f.$syncOptions()}},{name:"searchInSelection",exec:function(f){f.searchOption.checked=!f.searchRange,f.setSearchRange(f.searchOption.checked&&f.editor.getSelectionRange()),f.$syncOptions()}}]);var s=new d([{bindKey:"Esc",name:"closeSearchBar",exec:function(f){f.searchBox.hide()}}]);c.prototype.$searchBarKb=i,c.prototype.$closeSearchBarKb=s,r.SearchBox=c,r.Search=function(f,b){var x=f.searchBox||new c(f),N=f.session.selection.getRange(),M=N.isMultiLine()?"":f.session.getTextRange(N);x.show(M,b)}}),(function(){ace.require(["ace/ext/searchbox"],function(e){t&&(t.exports=e)})})()})(cp)),cp.exports}vx();function hp(t,n){return function(){return t.apply(n,arguments)}}const{toString:yx}=Object.prototype,{getPrototypeOf:hu}=Object,{iterator:Al,toStringTag:dp}=Symbol,_l=(t=>n=>{const e=yx.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Bi=t=>(t=t.toLowerCase(),n=>_l(n)===t),Sl=t=>n=>typeof n===t,{isArray:Ks}=Array,qs=Sl("undefined");function $a(t){return t!==null&&!qs(t)&&t.constructor!==null&&!qs(t.constructor)&&Qr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const fp=Bi("ArrayBuffer");function bx(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&fp(t.buffer),n}const wx=Sl("string"),Qr=Sl("function"),pp=Sl("number"),Ma=t=>t!==null&&typeof t=="object",xx=t=>t===!0||t===!1,$l=t=>{if(_l(t)!=="object")return!1;const n=hu(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(dp in t)&&!(Al in t)},Cx=t=>{if(!Ma(t)||$a(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},kx=Bi("Date"),Ax=Bi("File"),_x=t=>!!(t&&typeof t.uri<"u"),Sx=t=>t&&typeof t.getParts<"u",$x=Bi("Blob"),Mx=Bi("FileList"),Tx=t=>Ma(t)&&Qr(t.pipe);function Ex(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gp=Ex(),mp=typeof gp.FormData<"u"?gp.FormData:void 0,Ix=t=>{let n;return t&&(mp&&t instanceof mp||Qr(t.append)&&((n=_l(t))==="formdata"||n==="object"&&Qr(t.toString)&&t.toString()==="[object FormData]"))},Rx=Bi("URLSearchParams"),[Lx,Ox,Nx,Dx]=["ReadableStream","Request","Response","Headers"].map(Bi),Fx=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ta(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),Ks(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if($a(t))return;const p=e?Object.getOwnPropertyNames(t):Object.keys(t),g=p.length;let w;for(r=0;r<g;r++)w=p[r],n.call(null,t[w],w,t)}}function vp(t,n){if($a(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const ss=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yp=t=>!qs(t)&&t!==ss;function du(){const{caseless:t,skipUndefined:n}=yp(this)&&this||{},e={},r=(v,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=t&&vp(e,p)||p;$l(e[g])&&$l(v)?e[g]=du(e[g],v):$l(v)?e[g]=du({},v):Ks(v)?e[g]=v.slice():(!n||!qs(v))&&(e[g]=v)};for(let v=0,p=arguments.length;v<p;v++)arguments[v]&&Ta(arguments[v],r);return e}const Px=(t,n,e,{allOwnKeys:r}={})=>(Ta(n,(v,p)=>{e&&Qr(v)?Object.defineProperty(t,p,{value:hp(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,p,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Wx=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Bx=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},zx=(t,n,e,r)=>{let v,p,g;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),p=v.length;p-- >0;)g=v[p],(!r||r(g,t,n))&&!w[g]&&(n[g]=t[g],w[g]=!0);t=e!==!1&&hu(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},jx=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},Hx=t=>{if(!t)return null;if(Ks(t))return t;let n=t.length;if(!pp(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},Ux=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&hu(Uint8Array)),Vx=(t,n)=>{const e=(t&&t[Al]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},Kx=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},qx=Bi("HTMLFormElement"),Gx=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),bp=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),Yx=Bi("RegExp"),wp=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};Ta(e,(v,p)=>{let g;(g=n(v,p,t))!==!1&&(r[p]=g||v)}),Object.defineProperties(t,r)},Xx=t=>{wp(t,(n,e)=>{if(Qr(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(Qr(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Zx=(t,n)=>{const e={},r=v=>{v.forEach(p=>{e[p]=!0})};return Ks(t)?r(t):r(String(t).split(n)),e},Qx=()=>{},Jx=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function e1(t){return!!(t&&Qr(t.append)&&t[dp]==="FormData"&&t[Al])}const t1=t=>{const n=new Array(10),e=(r,v)=>{if(Ma(r)){if(n.indexOf(r)>=0)return;if($a(r))return r;if(!("toJSON"in r)){n[v]=r;const p=Ks(r)?[]:{};return Ta(r,(g,w)=>{const h=e(g,v+1);!qs(h)&&(p[w]=h)}),n[v]=void 0,p}}return r};return e(t,0)},n1=Bi("AsyncFunction"),r1=t=>t&&(Ma(t)||Qr(t))&&Qr(t.then)&&Qr(t.catch),xp=((t,n)=>t?setImmediate:n?((e,r)=>(ss.addEventListener("message",({source:v,data:p})=>{v===ss&&p===e&&r.length&&r.shift()()},!1),v=>{r.push(v),ss.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Qr(ss.postMessage)),i1=typeof queueMicrotask<"u"?queueMicrotask.bind(ss):typeof process<"u"&&process.nextTick||xp,o1=t=>t!=null&&Qr(t[Al]),Ae={isArray:Ks,isArrayBuffer:fp,isBuffer:$a,isFormData:Ix,isArrayBufferView:bx,isString:wx,isNumber:pp,isBoolean:xx,isObject:Ma,isPlainObject:$l,isEmptyObject:Cx,isReadableStream:Lx,isRequest:Ox,isResponse:Nx,isHeaders:Dx,isUndefined:qs,isDate:kx,isFile:Ax,isReactNativeBlob:_x,isReactNative:Sx,isBlob:$x,isRegExp:Yx,isFunction:Qr,isStream:Tx,isURLSearchParams:Rx,isTypedArray:Ux,isFileList:Mx,forEach:Ta,merge:du,extend:Px,trim:Fx,stripBOM:Wx,inherits:Bx,toFlatObject:zx,kindOf:_l,kindOfTest:Bi,endsWith:jx,toArray:Hx,forEachEntry:Vx,matchAll:Kx,isHTMLForm:qx,hasOwnProperty:bp,hasOwnProp:bp,reduceDescriptors:wp,freezeMethods:Xx,toObjectSet:Zx,toCamelCase:Gx,noop:Qx,toFiniteNumber:Jx,findKey:vp,global:ss,isContextDefined:yp,isSpecCompliantForm:e1,toJSONObject:t1,isAsyncFn:n1,isThenable:r1,setImmediate:xp,asap:i1,isIterable:o1};let mt=class H0 extends Error{static from(n,e,r,v,p,g){const w=new H0(n.message,e||n.code,r,v,p);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),g&&Object.assign(w,g),w}constructor(n,e,r,v,p){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),p&&(this.response=p,this.status=p.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ae.toJSONObject(this.config),code:this.code,status:this.status}}};mt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",mt.ERR_BAD_OPTION="ERR_BAD_OPTION",mt.ECONNABORTED="ECONNABORTED",mt.ETIMEDOUT="ETIMEDOUT",mt.ERR_NETWORK="ERR_NETWORK",mt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",mt.ERR_DEPRECATED="ERR_DEPRECATED",mt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",mt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",mt.ERR_CANCELED="ERR_CANCELED",mt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",mt.ERR_INVALID_URL="ERR_INVALID_URL";const s1=null;function fu(t){return Ae.isPlainObject(t)||Ae.isArray(t)}function Cp(t){return Ae.endsWith(t,"[]")?t.slice(0,-2):t}function pu(t,n,e){return t?t.concat(n).map(function(r,v){return r=Cp(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function a1(t){return Ae.isArray(t)&&!t.some(fu)}const l1=Ae.toFlatObject(Ae,{},null,function(t){return/^is[A-Z]/.test(t)});function Ml(t,n,e){if(!Ae.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=Ae.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Ae.isUndefined(i[c])});const r=e.metaTokens,v=e.visitor||d,p=e.dots,g=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(n);if(!Ae.isFunction(v))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Ae.isDate(c))return c.toISOString();if(Ae.isBoolean(c))return c.toString();if(!w&&Ae.isBlob(c))throw new mt("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(c)||Ae.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let f=c;if(Ae.isReactNative(n)&&Ae.isReactNativeBlob(c))return n.append(pu(s,i,p),h(c)),!1;if(c&&!s&&typeof c=="object"){if(Ae.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Ae.isArray(c)&&a1(c)||(Ae.isFileList(c)||Ae.endsWith(i,"[]"))&&(f=Ae.toArray(c)))return i=Cp(i),f.forEach(function(b,x){!(Ae.isUndefined(b)||b===null)&&n.append(g===!0?pu([i],x,p):g===null?i:i+"[]",h(b))}),!1}return fu(c)?!0:(n.append(pu(s,i,p),h(c)),!1)}const a=[],l=Object.assign(l1,{defaultVisitor:d,convertValue:h,isVisitable:fu});function u(c,i){if(!Ae.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Ae.forEach(c,function(s,f){(!(Ae.isUndefined(s)||s===null)&&v.call(n,s,Ae.isString(f)?f.trim():f,i,l))===!0&&u(s,i?i.concat(f):[f])}),a.pop()}}if(!Ae.isObject(t))throw new TypeError("data must be an object");return u(t),n}function kp(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return n[e]})}function gu(t,n){this._pairs=[],t&&Ml(t,this,n)}const Ap=gu.prototype;Ap.append=function(t,n){this._pairs.push([t,n])},Ap.toString=function(t){const n=t?function(e){return t.call(this,e,kp)}:kp;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function c1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _p(t,n,e){if(!n)return t;const r=e&&e.encode||c1,v=Ae.isFunction(e)?{serialize:e}:e,p=v&&v.serialize;let g;if(p?g=p(n,v):g=Ae.isURLSearchParams(n)?n.toString():new gu(n,v).toString(r),g){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+g}return t}class Sp{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Ae.forEach(this.handlers,function(e){e!==null&&n(e)})}}const mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},u1=typeof URLSearchParams<"u"?URLSearchParams:gu,h1=typeof FormData<"u"?FormData:null,d1=typeof Blob<"u"?Blob:null,f1={isBrowser:!0,classes:{URLSearchParams:u1,FormData:h1,Blob:d1},protocols:["http","https","file","blob","url","data"]},vu=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,p1=vu&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),g1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m1=vu&&window.location.href||"http://localhost",v1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vu,hasStandardBrowserEnv:p1,hasStandardBrowserWebWorkerEnv:g1,navigator:yu,origin:m1},Symbol.toStringTag,{value:"Module"})),_r={...v1,...f1};function y1(t,n){return Ml(t,new _r.classes.URLSearchParams,{visitor:function(e,r,v,p){return _r.isNode&&Ae.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...n})}function b1(t){return Ae.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function w1(t){const n={},e=Object.keys(t);let r;const v=e.length;let p;for(r=0;r<v;r++)p=e[r],n[p]=t[p];return n}function $p(t){function n(e,r,v,p){let g=e[p++];if(g==="__proto__")return!0;const w=Number.isFinite(+g),h=p>=e.length;return g=!g&&Ae.isArray(v)?v.length:g,h?(Ae.hasOwnProp(v,g)?v[g]=[v[g],r]:v[g]=r,!w):((!v[g]||!Ae.isObject(v[g]))&&(v[g]=[]),n(e,r,v[g],p)&&Ae.isArray(v[g])&&(v[g]=w1(v[g])),!w)}if(Ae.isFormData(t)&&Ae.isFunction(t.entries)){const e={};return Ae.forEachEntry(t,(r,v)=>{n(b1(r),v,e,0)}),e}return null}function x1(t,n,e){if(Ae.isString(t))try{return(n||JSON.parse)(t),Ae.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const Ea={transitional:mu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=Ae.isObject(t);if(v&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return r?JSON.stringify($p(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t)||Ae.isReadableStream(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(v){if(e.indexOf("application/x-www-form-urlencoded")>-1)return y1(t,this.formSerializer).toString();if((p=Ae.isFileList(t))||e.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Ml(p?{"files[]":t}:t,g&&new g,this.formSerializer)}}return v||r?(n.setContentType("application/json",!1),x1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ea.transitional,e=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Ae.isResponse(t)||Ae.isReadableStream(t))return t;if(t&&Ae.isString(t)&&(e&&!this.responseType||r)){const v=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(p){if(v)throw p.name==="SyntaxError"?mt.from(p,mt.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_r.classes.FormData,Blob:_r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],t=>{Ea.headers[t]={}});const C1=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k1=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
1387
|
+
`).forEach(function(p){v=p.indexOf(":"),e=p.substring(0,v).trim().toLowerCase(),r=p.substring(v+1).trim(),!(!e||n[e]&&C1[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},Mp=Symbol("internals");function Ia(t){return t&&String(t).trim().toLowerCase()}function Tl(t){return t===!1||t==null?t:Ae.isArray(t)?t.map(Tl):String(t).replace(/[\r\n]+$/,"")}function A1(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const _1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bu(t,n,e,r,v){if(Ae.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!Ae.isString(n)){if(Ae.isString(r))return n.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(n)}}function S1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function $1(t,n){const e=Ae.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,p,g){return this[r].call(this,n,v,p,g)},configurable:!0})})}let Jr=class{constructor(t){t&&this.set(t)}set(t,n,e){const r=this;function v(g,w,h){const d=Ia(w);if(!d)throw new Error("header name must be a non-empty string");const a=Ae.findKey(r,d);(!a||r[a]===void 0||h===!0||h===void 0&&r[a]!==!1)&&(r[a||w]=Tl(g))}const p=(g,w)=>Ae.forEach(g,(h,d)=>v(h,d,w));if(Ae.isPlainObject(t)||t instanceof this.constructor)p(t,n);else if(Ae.isString(t)&&(t=t.trim())&&!_1(t))p(k1(t),n);else if(Ae.isObject(t)&&Ae.isIterable(t)){let g={},w,h;for(const d of t){if(!Ae.isArray(d))throw TypeError("Object iterator must return a key-value pair");g[h=d[0]]=(w=g[h])?Ae.isArray(w)?[...w,d[1]]:[w,d[1]]:d[1]}p(g,n)}else t!=null&&v(n,t,e);return this}get(t,n){if(t=Ia(t),t){const e=Ae.findKey(this,t);if(e){const r=this[e];if(!n)return r;if(n===!0)return A1(r);if(Ae.isFunction(n))return n.call(this,r,e);if(Ae.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ia(t),t){const e=Ae.findKey(this,t);return!!(e&&this[e]!==void 0&&(!n||bu(this,this[e],e,n)))}return!1}delete(t,n){const e=this;let r=!1;function v(p){if(p=Ia(p),p){const g=Ae.findKey(e,p);g&&(!n||bu(e,e[g],g,n))&&(delete e[g],r=!0)}}return Ae.isArray(t)?t.forEach(v):v(t),r}clear(t){const n=Object.keys(this);let e=n.length,r=!1;for(;e--;){const v=n[e];(!t||bu(this,this[v],v,t,!0))&&(delete this[v],r=!0)}return r}normalize(t){const n=this,e={};return Ae.forEach(this,(r,v)=>{const p=Ae.findKey(e,v);if(p){n[p]=Tl(r),delete n[v];return}const g=t?S1(v):String(v).trim();g!==v&&delete n[v],n[g]=Tl(r),e[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ae.forEach(this,(e,r)=>{e!=null&&e!==!1&&(n[r]=t&&Ae.isArray(e)?e.join(", "):e)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
1388
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach(r=>e.set(r)),e}static accessor(t){const n=(this[Mp]=this[Mp]={accessors:{}}).accessors,e=this.prototype;function r(v){const p=Ia(v);n[p]||($1(e,v),n[p]=!0)}return Ae.isArray(t)?t.forEach(r):r(t),this}};Jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Jr.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),Ae.freezeMethods(Jr);function wu(t,n){const e=this||Ea,r=n||e,v=Jr.from(r.headers);let p=r.data;return Ae.forEach(t,function(g){p=g.call(e,p,v.normalize(),n?n.status:void 0)}),v.normalize(),p}function Tp(t){return!!(t&&t.__CANCEL__)}let Ra=class extends mt{constructor(t,n,e){super(t??"canceled",mt.ERR_CANCELED,n,e),this.name="CanceledError",this.__CANCEL__=!0}};function Ep(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new mt("Request failed with status code "+e.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function M1(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function T1(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,p=0,g;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[p];g||(g=h),e[v]=w,r[v]=h;let a=p,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===p&&(p=(p+1)%t),h-g<n)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function E1(t,n){let e=0,r=1e3/n,v,p;const g=(w,h=Date.now())=>{e=h,v=null,p&&(clearTimeout(p),p=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?g(w,h):(v=w,p||(p=setTimeout(()=>{p=null,g(v)},r-d)))},()=>v&&g(v)]}const El=(t,n,e=3)=>{let r=0;const v=T1(50,250);return E1(p=>{const g=p.loaded,w=p.lengthComputable?p.total:void 0,h=g-r,d=v(h),a=g<=w;r=g;const l={loaded:g,total:w,progress:w?g/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-g)/d:void 0,event:p,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},Ip=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},Rp=t=>(...n)=>Ae.asap(()=>t(...n)),I1=_r.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,_r.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL(_r.origin),_r.navigator&&/(msie|trident)/i.test(_r.navigator.userAgent)):()=>!0,R1=_r.hasStandardBrowserEnv?{write(t,n,e,r,v,p,g){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];Ae.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Ae.isString(r)&&w.push(`path=${r}`),Ae.isString(v)&&w.push(`domain=${v}`),p===!0&&w.push("secure"),Ae.isString(g)&&w.push(`SameSite=${g}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function L1(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function O1(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Lp(t,n,e){let r=!L1(n);return t&&(r||e==!1)?O1(t,n):n}const Op=t=>t instanceof Jr?{...t}:t;function as(t,n){n=n||{};const e={};function r(d,a,l,u){return Ae.isPlainObject(d)&&Ae.isPlainObject(a)?Ae.merge.call({caseless:u},d,a):Ae.isPlainObject(a)?Ae.merge({},a):Ae.isArray(a)?a.slice():a}function v(d,a,l,u){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function p(d,a){if(!Ae.isUndefined(a))return r(void 0,a)}function g(d,a){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in n)return r(d,a);if(l in t)return r(void 0,d)}const h={url:p,method:p,data:p,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:w,headers:(d,a,l)=>v(Op(d),Op(a),l,!0)};return Ae.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=Ae.hasOwnProp(h,d)?h[d]:v,l=a(t[d],n[d],d);Ae.isUndefined(l)&&a!==w||(e[d]=l)}),e}const Np=t=>{const n=as({},t);let{data:e,withXSRFToken:r,xsrfHeaderName:v,xsrfCookieName:p,headers:g,auth:w}=n;if(n.headers=g=Jr.from(g),n.url=_p(Lp(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),w&&g.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Ae.isFormData(e)){if(_r.hasStandardBrowserEnv||_r.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(Ae.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&g.set(a,l)})}}if(_r.hasStandardBrowserEnv&&(r&&Ae.isFunction(r)&&(r=r(n)),r||r!==!1&&I1(n.url))){const h=v&&p&&R1.read(p);h&&g.set(v,h)}return n},N1=typeof XMLHttpRequest<"u",D1=N1&&function(t){return new Promise(function(n,e){const r=Np(t);let v=r.data;const p=Jr.from(r.headers).normalize();let{responseType:g,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=Jr.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),N={data:!g||g==="text"||g==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};Ep(function(M){n(M),i()},function(M){e(M),i()},N),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new mt("Request aborted",mt.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const N=x&&x.message?x.message:"Network Error",M=new mt(N,mt.ERR_NETWORK,t,s);M.event=x||null,e(M),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const N=r.transitional||mu;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new mt(x,N.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,t,s)),s=null},v===void 0&&p.setContentType(null),"setRequestHeader"in s&&Ae.forEach(p.toJSON(),function(x,N){s.setRequestHeader(N,x)}),Ae.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),g&&g!=="json"&&(s.responseType=r.responseType),h&&([l,c]=El(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=El(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new Ra(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=M1(r.url);if(b&&_r.protocols.indexOf(b)===-1){e(new mt("Unsupported protocol "+b+":",mt.ERR_BAD_REQUEST,t));return}s.send(v||null)})},F1=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const p=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof mt?a:new Ra(a instanceof Error?a.message:a))}};let g=n&&setTimeout(()=>{g=null,p(new mt(`timeout of ${n}ms exceeded`,mt.ETIMEDOUT))},n);const w=()=>{t&&(g&&clearTimeout(g),g=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),t=null)};t.forEach(d=>d.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>Ae.asap(w),h}},P1=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},W1=async function*(t,n){for await(const e of B1(t))yield*P1(e,n)},B1=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},Dp=(t,n,e,r)=>{const v=W1(t,n);let p=0,g,w=h=>{g||(g=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},Fp=64*1024,{isFunction:Il}=Ae,z1=(({Request:t,Response:n})=>({Request:t,Response:n}))(Ae.global),{ReadableStream:Pp,TextEncoder:Wp}=Ae.global,Bp=(t,...n)=>{try{return!!t(...n)}catch{return!1}},j1=t=>{t=Ae.merge.call({skipUndefined:!0},z1,t);const{fetch:n,Request:e,Response:r}=t,v=n?Il(n):typeof fetch=="function",p=Il(e),g=Il(r);if(!v)return!1;const w=v&&Il(Pp),h=v&&(typeof Wp=="function"?(i=>s=>i.encode(s))(new Wp):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=p&&w&&Bp(()=>{let i=!1;const s=new Pp,f=new e(_r.origin,{body:s,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return s.cancel(),i&&!f}),a=g&&w&&Bp(()=>Ae.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new mt(`Response type '${i}' is not supported`,mt.ERR_NOT_SUPPORT,f)})});const u=async i=>{if(i==null)return 0;if(Ae.isBlob(i))return i.size;if(Ae.isSpecCompliantForm(i))return(await new e(_r.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(i)||Ae.isArrayBuffer(i))return i.byteLength;if(Ae.isURLSearchParams(i)&&(i=i+""),Ae.isString(i))return(await h(i)).byteLength},c=async(i,s)=>Ae.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:N,timeout:M,onDownloadProgress:_,onUploadProgress:C,responseType:L,headers:D,withCredentials:I="same-origin",fetchOptions:E}=Np(i),z=n||fetch;L=L?(L+"").toLowerCase():"text";let P=F1([x,N&&N.toAbortSignal()],M),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await c(D,b))!==0){let ee=new e(s,{method:"POST",body:b,duplex:"half"}),ae;if(Ae.isFormData(b)&&(ae=ee.headers.get("content-type"))&&D.setContentType(ae),ee.body){const[ne,ce]=Ip(k,El(Rp(C)));b=Dp(ee.body,Fp,ne,ce)}}Ae.isString(I)||(I=I?"include":"omit");const R=p&&"credentials"in e.prototype,B={...E,signal:P,method:f.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:R?I:void 0};O=p&&new e(s,B);let U=await(p?z(O,E):z(s,B));const q=a&&(L==="stream"||L==="response");if(a&&(_||q&&$)){const ee={};["status","statusText","headers"].forEach(se=>{ee[se]=U[se]});const ae=Ae.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=_&&Ip(ae,El(Rp(_),!0))||[];U=new r(Dp(U.body,Fp,ne,()=>{ce&&ce(),$&&$()}),ee)}L=L||"text";let Q=await l[Ae.findKey(l,L)||"text"](U,i);return!q&&$&&$(),await new Promise((ee,ae)=>{Ep(ee,ae,{data:Q,headers:Jr.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(R){throw $&&$(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new mt("Network Error",mt.ERR_NETWORK,i,O,R&&R.response),{cause:R.cause||R}):mt.from(R,R&&R.code,i,O,R&&R.response)}}},H1=new Map,zp=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,p=[r,v,e];let g=p.length,w=g,h,d,a=H1;for(;w--;)h=p[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:j1(n)),a=d;return d};zp();const xu={http:s1,xhr:D1,fetch:{get:zp}};Ae.forEach(xu,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const jp=t=>`- ${t}`,U1=t=>Ae.isFunction(t)||t===null||t===!1;function V1(t,n){t=Ae.isArray(t)?t:[t];const{length:e}=t;let r,v;const p={};for(let g=0;g<e;g++){r=t[g];let w;if(v=r,!U1(r)&&(v=xu[(w=String(r)).toLowerCase()],v===void 0))throw new mt(`Unknown adapter '${w}'`);if(v&&(Ae.isFunction(v)||(v=v.get(n))))break;p[w||"#"+g]=v}if(!v){const g=Object.entries(p).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?g.length>1?`since :
|
|
1389
|
+
`+g.map(jp).join(`
|
|
1390
|
+
`):" "+jp(g[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const Hp={getAdapter:V1,adapters:xu};function Cu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ra(null,t)}function Up(t){return Cu(t),t.headers=Jr.from(t.headers),t.data=wu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Hp.getAdapter(t.adapter||Ea.adapter,t)(t).then(function(n){return Cu(t),n.data=wu.call(t,t.transformResponse,n),n.headers=Jr.from(n.headers),n},function(n){return Tp(n)||(Cu(t),n&&n.response&&(n.response.data=wu.call(t,t.transformResponse,n.response),n.response.headers=Jr.from(n.response.headers))),Promise.reject(n)})}const Vp="1.14.0",Rl={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Rl[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const Kp={};Rl.transitional=function(t,n,e){function r(v,p){return"[Axios v"+Vp+"] Transitional option '"+v+"'"+p+(e?". "+e:"")}return(v,p,g)=>{if(t===!1)throw new mt(r(p," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!Kp[p]&&(Kp[p]=!0,console.warn(r(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,p,g):!0}},Rl.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function K1(t,n,e){if(typeof t!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const p=r[v],g=n[p];if(g){const w=t[p],h=w===void 0||g(w,p,t);if(h!==!0)throw new mt("option "+p+" must be "+h,mt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new mt("Unknown option "+p,mt.ERR_BAD_OPTION)}}const Ll={assertOptions:K1,validators:Rl},_i=Ll.validators;let ls=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sp,response:new Sp}}async request(t,n){try{return await this._request(t,n)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const v=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?v&&!String(e.stack).endsWith(v.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
|
1391
|
+
`+v):e.stack=v}catch{}}throw e}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=as(this.defaults,n);const{transitional:e,paramsSerializer:r,headers:v}=n;e!==void 0&&Ll.assertOptions(e,{silentJSONParsing:_i.transitional(_i.boolean),forcedJSONParsing:_i.transitional(_i.boolean),clarifyTimeoutError:_i.transitional(_i.boolean),legacyInterceptorReqResOrdering:_i.transitional(_i.boolean)},!1),r!=null&&(Ae.isFunction(r)?n.paramsSerializer={serialize:r}:Ll.assertOptions(r,{encode:_i.function,serialize:_i.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ll.assertOptions(n,{baseUrl:_i.spelling("baseURL"),withXsrfToken:_i.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=v&&Ae.merge(v.common,v[n.method]);v&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete v[c]}),n.headers=Jr.concat(p,v);const g=[];let w=!0;this.interceptors.request.forEach(function(c){if(typeof c.runWhen=="function"&&c.runWhen(n)===!1)return;w=w&&c.synchronous;const i=n.transitional||mu;i&&i.legacyInterceptorReqResOrdering?g.unshift(c.fulfilled,c.rejected):g.push(c.fulfilled,c.rejected)});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let d,a=0,l;if(!w){const c=[Up.bind(this),void 0];for(c.unshift(...g),c.push(...h),l=c.length,d=Promise.resolve(n);a<l;)d=d.then(c[a++],c[a++]);return d}l=g.length;let u=n;for(;a<l;){const c=g[a++],i=g[a++];try{u=c(u)}catch(s){i.call(this,s);break}}try{d=Up.call(this,u)}catch(c){return Promise.reject(c)}for(a=0,l=h.length;a<l;)d=d.then(h[a++],h[a++]);return d}getUri(t){t=as(this.defaults,t);const n=Lp(t.baseURL,t.url,t.allowAbsoluteUrls);return _p(n,t.params,t.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){ls.prototype[t]=function(n,e){return this.request(as(e||{},{method:t,url:n,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,p){return this.request(as(p||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}ls.prototype[t]=n(),ls.prototype[t+"Form"]=n(!0)});let q1=class U0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](v);r._listeners=null}),this.promise.then=v=>{let p;const g=new Promise(w=>{r.subscribe(w),p=w}).then(v);return g.cancel=function(){r.unsubscribe(p)},g},n(function(v,p,g){r.reason||(r.reason=new Ra(v,p,g),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new U0(function(e){n=e}),cancel:n}}};function G1(t){return function(n){return t.apply(null,n)}}function Y1(t){return Ae.isObject(t)&&t.isAxiosError===!0}const ku={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ku).forEach(([t,n])=>{ku[n]=t});function qp(t){const n=new ls(t),e=hp(ls.prototype.request,n);return Ae.extend(e,ls.prototype,n,{allOwnKeys:!0}),Ae.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return qp(as(t,r))},e}const zn=qp(Ea);zn.Axios=ls,zn.CanceledError=Ra,zn.CancelToken=q1,zn.isCancel=Tp,zn.VERSION=Vp,zn.toFormData=Ml,zn.AxiosError=mt,zn.Cancel=zn.CanceledError,zn.all=function(t){return Promise.all(t)},zn.spread=G1,zn.isAxiosError=Y1,zn.mergeConfig=as,zn.AxiosHeaders=Jr,zn.formToJSON=t=>$p(Ae.isHTMLForm(t)?new FormData(t):t),zn.getAdapter=Hp.getAdapter,zn.HttpStatusCode=ku,zn.default=zn;const{Axios:XN,AxiosError:ZN,CanceledError:QN,isCancel:JN,CancelToken:e2,VERSION:t2,all:n2,Cancel:r2,isAxiosError:i2,spread:o2,toFormData:s2,AxiosHeaders:a2,HttpStatusCode:l2,formToJSON:c2,getAdapter:u2,mergeConfig:h2}=zn,Au=zn.create({baseURL:location.origin,timeout:6e4,params:{}});Au.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let n=`HTTP ${t.response.status} - `;t.response?.statusText&&(n+=`${t.response.statusText} `),t.response?.config?.data&&(n+=`${t.response.config.data} `),t.response?.data?.message?n+=`${t.response.data.message}`:t.response?.data?.exception?n+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(n+=`${t.response.data.error.class} `),n+=`${t.response.data.error.message}`):n+=`${t.response?.data}`;const{$cosmosNotify:e}=window;throw e&&e.serious({title:"Network error",body:n}),t}else throw t});const Ol=async function(t,n,{data:e,params:r={},headers:v,noAuth:p=!1,noScope:g=!1,onUploadProgress:w=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}v.Authorization=localStorage.openc3Token}return v.manual=!0,!g&&!r.scope&&(r.scope=window.openc3Scope),Au({method:t,url:n,data:e,params:r,headers:v,onUploadProgress:w})},_u={Accept:"application/json"},Gp={..._u,"Content-Type":"application/json"},X1=Mn("y",{get:function(t,{params:n,headers:e=_u,noScope:r,noAuth:v,onUploadProgress:p}={}){return Ol("get",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:p})},put:function(t,{data:n,params:e,headers:r=Gp,noScope:v,noAuth:p,onUploadProgress:g}={}){return Ol("put",t,{data:n,params:e,headers:r,noScope:v,noAuth:p,onUploadProgress:g})},post:function(t,{data:n,params:e,headers:r=Gp,noScope:v,noAuth:p,onUploadProgress:g}={}){return Ol("post",t,{data:n,params:e,headers:r,noScope:v,noAuth:p,onUploadProgress:g})},delete:function(t,{params:n,headers:e=_u,noScope:r,noAuth:v,onUploadProgress:p}={}){return Ol("delete",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:p})}});let Nl=()=>({emit(t,...n){for(let e=this.events[t]||[],r=0,v=e.length;r<v;r++)e[r](...n)},events:{},on(t,n){return(this.events[t]||=[]).push(n),()=>{this.events[t]=this.events[t]?.filter(e=>n!==e)}}});class La extends Error{constructor(n,e){n instanceof Error?(super(n.message),this.cause=n):super(n),this.reason=e,this.name="ReasonError"}}class Su extends La{constructor(n){super("Rejected",n),this.name="SubscriptionRejectedError"}}class Z1 extends La{constructor(n){super(n||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}let zi=class extends La{constructor(n,e){e?super(n,e):super("Disconnected",n),this.name="DisconnectedError"}};class Q1 extends zi{constructor(n){super(n,"stale_connection"),this.name="StaleConnectionError"}}function Yp(t){return t?`{${Object.keys(t).sort().filter(n=>t[n]!==void 0).map(n=>{let e=JSON.stringify(t[n]);return`${JSON.stringify(n)}:${e}`}).join(",")}}`:""}class J1{constructor(n){this.channel=n,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",n=>{if(n.type==="info"){this._state||(this._state=this.stateFromInfo(n));return}this._state&&(n.type==="join"?this._state[n.id]=n.info:n.type==="leave"&&delete this._state[n.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(n=>n()),this.listeners.length=0}async join(n,e){if(!this._info)return this._info={id:String(n),info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let n=await this.channel.perform("$presence:leave");return delete this._info,n}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let n=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(n),this._state}finally{delete this._promise}}stateFromInfo(n){return n.records.reduce((e,{id:r,info:v})=>(e[r]=v,e),{})}}const cs=Symbol("state");class Xp{constructor(n={}){this.emitter=Nl(),this.params=Object.freeze(n),this.presence=new J1(this),this.initialConnect=!0,this[cs]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Yp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[cs]}attached(n){if(this.receiver){if(this.receiver!==n)throw Error("Already connected to a different receiver");return!1}return this.receiver=n,!0}connecting(){this[cs]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[cs]="connected";let n=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(){if(this.state==="connected")throw Error("Already connected");this[cs]="connected";let n=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:n})}disconnected(n){this.state==="disconnected"||this.state==="closed"||(this[cs]="disconnected",this.presence.reset(),this.emit("disconnect",n))}closed(n){this.state!=="closed"&&(this[cs]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",n))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(n,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,n,e)}async send(n){return this.perform(void 0,n)}async whisper(n){try{await this.perform("$whisper",n)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(n,e){this.emit("message",n,e)}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}emit(n,...e){return this.emitter.emit(n,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((n,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(v=>v()),n()})),r.push(this.on("close",v=>{r.forEach(p=>p()),e(v||new La("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class eC{constructor(n){this.id=n,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(n){this.channels.includes(n)||this.channels.push(n)}remove(n){let e=this.channels.indexOf(n);e>-1&&this.channels.splice(e,1)}notify(n,...e){this.state=n==="restored"?"connected":n,e.length===1?this.channels.forEach(r=>r[n](e[0])):this.channels.forEach(r=>r[n]())}pending(n){this._checkIntent(n);let e=this._pendings[0];return!e||e.intent!==n?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(n){this._checkIntent(n);let e,r={promise:new Promise(p=>{e=p}),intent:n,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},v=this._pendingTop;return this._pendings.push(r),v&&await v.promise,this.gvl&&await this.gvl.acquire(r,n),r.acquired=!0,r}close(n){this.disposed=!0,this.intent=void 0,this.notify("closed",n)}_checkIntent(n){if(!(n==="unsubscribed"||n==="subscribed"))throw Error(`Unknown subscription intent: ${n}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(n){let e=this._pendingTop;return!e||e.acquired||e.intent!==n?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class tC{constructor(){this.queue=[]}async acquire(n,e){e==="subscribed"&&(this.queue.push(n.promise.then(()=>{this.queue.splice(this.queue.indexOf(n),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class nC{constructor(n){n.concurrentSubscribes===!1&&(this.glv=new tC),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(n){return this._subscriptions[n]}create(n,{subscribe:e,unsubscribe:r}){let v=this._subscriptions[n]=new eC(n);return v.remoteId=this._localToRemote[n],v.subscriber=e,v.unsubscriber=r,v.gvl=this.glv,v}remove(n){delete this._subscriptions[n],delete this._localToRemote[n]}storeRemoteId(n,e){this._localToRemote[n]=e;let r=this.get(n);r&&(r.remoteId=e)}}class rC{constructor(n={}){this.subscriptions=new nC(n),this._pendingMessages=[],this._remoteToLocal={}}subscribe(n,e){this._remoteToLocal[e]=n,this.subscriptions.storeRemoteId(n,e),this.flush(e)}unsubscribe(n){let e=this.subscriptions.get(n);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(n)}transmit(n,e,r){let v=this._remoteToLocal[n];if(!v){this._pendingMessages.push([n,e,r]);return}let p=this.subscriptions.get(v);p&&p.channels.forEach(g=>{g.receive(e,r)})}notify(n,e,r){let v=this._remoteToLocal[n];if(!v)return;let p=this.subscriptions.get(v);p&&p.channels.forEach(g=>g.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(n=>n.channels)}flush(n){let e=[];for(let r of this._pendingMessages)r[0]===n?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const Zp={debug:0,info:1,warn:2,error:3};class Qp{constructor(n){this.level=n||"warn"}log(n,e,r){Zp[n]<Zp[this.level]||this.writeLogEntry(n,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(n,e){this.log("debug",n,e)}info(n,e){this.log("info",n,e)}warn(n,e){this.log("warn",n,e)}error(n,e){this.log("error",n,e)}}class Oa extends Qp{writeLogEntry(){}}class iC{encode(n){return JSON.stringify(n)}decode(n){try{return JSON.parse(n)}catch{}}}let oC=0;class Jp{constructor(n={}){let{logger:e}=n;this.logger=e||new Oa,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=n.subscribeCooldownInterval||250,this.subscribeRetryInterval=n.subscribeRetryInterval||5e3}attached(n){this.cable=n}subscribe(n,e){let r={channel:n};e&&Object.assign(r,e);let v=Yp(r);if(this.pendingUnsubscriptions[v]){let g=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${g}`,v),new Promise(w=>{setTimeout(()=>{w(this.subscribe(n,e))},g)})}if(this.pendingSubscriptions[v])return this.logger.warn("subscription is already pending, skipping",v),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((g,w)=>{let h=++oC;this.pendingSubscriptions[v]={resolve:g,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(v)),this.maybeRetrySubscribe(h,v,p)})}buildSubscribeRequest(n){return{command:"subscribe",identifier:n}}maybeRetrySubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(n,e,r))},r)}maybeExpireSubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(delete this.pendingSubscriptions[e],v.reject(new Z1(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(n){return this.cable.send({command:"unsubscribe",identifier:n}),this.pendingUnsubscriptions[n]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[n]},this.subscribeCooldownInterval),Promise.resolve()}perform(n,e,r){return e==="$whisper"?this.whisper(n,r):(r||(r={}),r.action||=e,this.cable.send({command:"message",identifier:n,data:JSON.stringify(r)}),Promise.resolve())}whisper(n,e){return this.cable.send({command:"whisper",identifier:n,data:e}),Promise.resolve()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v,reason:p,reconnect:g}=n;if(e==="ping")return this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="welcome"){let w=n.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new zi(p);this.reset(w),g===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Su)):this.logger.error("subscription not found",{type:e,identifier:r})}if(v)return{identifier:r,message:v};this.logger.warn(`unknown message type: ${e}`,{message:n})}reset(n){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(n);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const eg=()=>Date.now()/1e3|0;class sC extends Jp{constructor(n={}){super(n),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=n.historyTimestamp,this.disableSessionRecovery=n.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=eg()),this.sessionId=void 0,this.sendPongs=n.pongs}reset(n){for(let e in this.pendingPresence)this.pendingPresence[e].reject(n);return this.pendingPresence={},super.reset()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v}=n;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(n);if(e==="reject_subscription")return super.receive(n);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(n);if(e==="ping")return this.restoreSince&&(this.restoreSince=eg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",n),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",n),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=n.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),n.restored){let p=n.restored_ids||Object.keys(this.subscriptionStreams);for(let g of p)this.cable.send({identifier:g,command:"history",history:this.historyRequestFor(g)}),this.presenceInfo[g]&&this.cable.send({identifier:g,command:"join",presence:this.presenceInfo[g]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=v.type;if(p==="info"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.resolve(v))}else if(p==="error"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:v}}if(v){let p=this.trackStreamPosition(r,n.stream_id,n.epoch,n.offset);return{identifier:r,message:v,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:n})}perform(n,e,r){switch(e){case"$presence:join":return this.join(n,r);case"$presence:leave":return this.leave(n,r);case"$presence:info":return this.presence(n,r)}return super.perform(n,e,r)}unsubscribe(n){return delete this.presenceInfo[n],super.unsubscribe(n)}buildSubscribeRequest(n){let e=super.buildSubscribeRequest(n),r=this.historyRequestFor(n);r&&(e.history=r,this.pendingHistory[n]=!0);let v=this.presenceInfo[n];return v&&(e.presence=v),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(n){let e={},r=!1;if(this.subscriptionStreams[n])for(let v of this.subscriptionStreams[n]){let p=this.streamsPositions[v];p&&(r=!0,e[v]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(n,e,r,v){if(!(!e||!r))return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),this.subscriptionStreams[n].add(e),this.streamsPositions[e]={epoch:r,offset:v},{stream:e,epoch:r,offset:v}}async sendPong(){await new Promise(n=>setTimeout(n,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(n,e){return this.presenceInfo[n]=e,this.cable.send({command:"join",identifier:n,presence:e}),Promise.resolve()}async leave(n,e){return delete this.presenceInfo[n],this.cable.send({command:"leave",identifier:n,presence:e}),Promise.resolve()}presence(n,e){return this.pendingPresence[n]?(this.logger.warn("presence is already pending, skipping",n),Promise.reject(Error("presence request is already pending"))):new Promise((r,v)=>{this.pendingPresence[n]={resolve:r,reject:v},this.cable.send({command:"presence",identifier:n,data:e})})}}class aC extends La{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class tg extends Xp{static identifier="__ghost__";constructor(n,e){super(e),this.channelId=n}set channelId(n){this._channelId=n}get channelId(){return this._channelId}}const lC="$pubsub";class ng extends Xp{static identifier=lC;async perform(n,e){if(n.startsWith("$"))return super.perform(n,e);throw Error("not implemented")}}const us=Symbol("state");let cC=class{constructor({transport:t,protocol:n,encoder:e,logger:r,lazy:v,hubOptions:p,performFailures:g,transportConfigurator:w}){this.emitter=Nl(),this.transport=t,this.encoder=e,this.logger=r||new Oa,this.protocol=n,this.performFailures=g||"throw",this.protocol.attached(this),this.hub=new rC(p||{}),this[us]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,v===!1&&this.connect().catch(()=>{})}get state(){return this[us]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[us]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(e){this.handleClose(e)}return n}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[us]="connected",this.recovering&&this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",new zi("recovery_failed"))),this.hub.subscriptions.all().forEach(n=>this._resubscribe(n));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[us]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new zi("recovery_failed")),this._resubscribe(r))});let n=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}notify(t,n,e){n&&typeof n!="string"&&(e=n,n=void 0),n?this.hub.notify(n,"info",{type:t,data:e}):this.emit("info",{type:t,data:e})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new zi(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[us]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(n=>n.notify("connecting")):this.hub.subscriptions.all().forEach(n=>{n.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let n;t&&(n=t instanceof zi?t:new zi(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[us]="closed";let e=n||new zi("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",n)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let n=this.encoder.decode(t);if(n===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",n);let e=this.protocol.receive(n);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:v,message:p,meta:g}=e;r?this.hub.notify(v,r,p):this.hub.transmit(v,p,g)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let n=this.encoder.encode(t);if(n===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(n)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let n=new ng({stream_name:t});return this.subscribe(n)}streamFromSigned(t){let n=new ng({signed_stream_name:t});return this.subscribe(n)}subscribeTo(t,n){let e,r;return typeof t=="string"&&(r=t,t=tg),e=r?new t(r,n):new t(n),this.subscribe(e)}subscribe(t){if(!t.attached(this))return t;let n=t.identifier;t.connecting();let e=this.hub.subscriptions.get(n)||this.hub.subscriptions.create(n,{subscribe:r=>this._subscribe(r,t.channelId,t.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(t),e.intent==="subscribed"&&e.state==="connected"&&t.connected(),e.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,n,e){let r=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let v=await t.acquire("subscribed");if(v.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),v.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),v.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),v.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),t.notify("connected"),v.release();return}let p={identifier:n,params:e};this.logger.debug("subscribing",p);try{let g=await this.protocol.subscribe(n,e);this.hub.subscribe(r,g),this.logger.debug("subscribed",{...p,remoteId:g}),t.notify("connected")}catch(g){if(g){if(g instanceof Su&&this.logger.warn("rejected",p),g instanceof zi){this.logger.debug("disconnected during subscription; will retry on connect",p),v.release();return}this.logger.error("failed to subscribe",{error:g,...p})}t.close(g),this.hub.unsubscribe(r)}v.release()}unsubscribe(t){let n=t.identifier,e=this.hub.subscriptions.get(n);if(!e)throw Error(`Subscription not found: ${n}`);e.remove(t),t.closed(),e.maybeUnsubscribe()}async _unsubscribe(t){let n=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:n});let e=await t.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:n}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:n}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:n,intent:t.intent}),e.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:n}),e.release();return}let r=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:n}),t.close(),this.hub.unsubscribe(n),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:n})}catch(v){v&&(v instanceof zi?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:n,error:v}):this.logger.error("unsubscribe failed",{id:n,error:v}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(n)):t.state="closed",e.release()}async perform(t,n,e){if(this.performFailures==="throw")return this._perform(t,n,e);try{return await this._perform(t,n,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(t,n,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new aC;let r=this.hub.subscriptions.get(t);if(!r)throw Error(`Subscription not found: ${t}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let v=r.remoteId,p={id:v,action:n,payload:e};this.logger.debug("perform",p);try{let g=await this.protocol.perform(v,n,e);return g&&this.logger.debug("perform result",{message:g,request:p}),g}catch(g){throw this.logger.error("perform failed",{error:g,request:p}),g}}on(t,n){return this.emitter.on(t,n)}once(t,n){let e=this.emitter.on(t,(...r)=>{e(),n(...r)});return e}emit(t,...n){return this.emitter.emit(t,...n)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,n)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),t()})),e.push(this.on("close",r=>{e.forEach(v=>v()),n(r)})),e.push(this.on("disconnect",r=>{e.forEach(v=>v()),n(r)}))}),this._pendingConnect)}};const uC={maxMissingPings:2,maxReconnectAttempts:1/0},Gs=()=>Date.now(),rg=(t,n)=>{n=n||{};let{backoffRate:e,jitterRatio:r,maxInterval:v}=n;return e=e||2,r===void 0&&(r=.5),p=>{let g=t*e**p,w=g*e,h=g+(w-g)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),v&&v<h&&(h=v),h}};let ig=class{constructor({pingInterval:t,...n}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(n=Object.assign({},uC,n),this.strategy=n.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=n.maxMissingPings,this.maxReconnectAttempts=n.maxReconnectAttempts,this.logger=n.logger||new Oa,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Gs()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Gs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Gs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Gs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Gs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=Gs()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Q1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class hC{constructor(n,e={}){this.transports=n,this.transport=null,this.emitter=Nl(),this.unbind=[],this.logger=e.logger||new Oa}displayName(){return"fallbacked transport"}async open(){for(let n=0;n<this.transports.length;n++){let e=this.transports[n];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(n){if(!this.transport)throw new Error("No transport is open");this.transport.send(n)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(n,e){this.transports.forEach(r=>{r.setParam(n,e)})}setToken(n,e){this.transports.forEach(r=>{r.setToken(n,e)})}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(n=>n()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",n=>{this.emitter.emit("data",n)}),this.transport.on("close",n=>{this.emitter.emit("close",n)}),this.transport.on("error",n=>{this.emitter.emit("error",n)}))}}class dC{constructor(n,e={}){this.url=n;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Nl();let{format:v,subprotocol:p,authStrategy:g}=e;this.format=v||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=g||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let n=this.subprotocol;return this.authStrategy==="sub-protocol"&&(n=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,n,this.connectionOptions):this.ws=new this.Impl(this.url,n),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let v=[];v.push(this.once("open",()=>{v.forEach(p=>p()),e()})),v.push(this.once("close",()=>{v.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(n){this.url=n}setParam(n,e){let r=new URL(this.url);r.searchParams.set(n,e);let v=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(v)}setToken(n,e="jid"){if(this.authStrategy==="param")this.setParam(e,n);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(v=>v.toLowerCase()===r)||r,this.connectionOptions.headers[r]=n}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${n}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(n){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(n)}close(){this.ws?this.onclose():this.connected=!1}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}initListeners(){this.ws.onerror=n=>{this.connected&&this.emitter.emit("error",n.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=n=>{let e=n.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class fC{constructor(n){this.channel=n}notify(n,...e){typeof this[n]=="function"&&this[n](...e)}perform(n,e={}){this.channel.perform(n,e)}send(n){this.channel.send(n)}whisper(n){return this.channel.whisper(n)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class pC extends tg{constructor(n,e,r){super(n,e),this.subscription=new fC(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:v})=>this.subscription.notify("connected",{reconnected:v})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",v=>this.subscription.notify("received",v)),this.on("close",v=>{v&&v instanceof Su?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class gC{constructor(n){this.cable=n}create(n,e){let r,v;typeof n=="object"?(r=n.channel,delete n.channel,v=n):(r=n,v={});let p=new pC(r,v,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(n){return this.cable.hub.channels.filter(e=>e.identifier===n).map(e=>e.subscription)}}class mC{constructor(n){this.cable=n,this.subscriptions=new gC(n)}send(n){return this.cable.send(n)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const og={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function vC(t,n){if(typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),n=n||{},!t&&!n.transport)throw Error("URL or transport must be specified");n=Object.assign({},og,n);let{protocol:e,websocketImplementation:r,websocketFormat:v,websocketOptions:p,websocketAuthStrategy:g,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:N,historyTimestamp:M,protocolOptions:_,concurrentSubscribes:C,performFailures:L,transportConfigurator:D,auth:I}=n;if(d=d||new Oa(h),typeof e=="string"){x=x||e;let P=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(_=_||{},P==="actioncable-v1")e=new Jp({logger:d,..._});else if(P==="actioncable-v1-ext")e=new sC({logger:d,historyTimestamp:M,..._});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new iC,v=v||"text";else if(O==="msgpack"){if(v="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(v=v||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");a=a||new dC(t,{websocketImplementation:r,websocketOptions:p,subprotocol:x,authStrategy:g,format:v}),w&&(a=new hC([a,...w],{logger:d})),I&&I.token&&a.setToken(I.token,I.param||"jid"),s=s||rg(i),c!==!1&&(c=c||new ig({pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,logger:d}));let E={concurrentSubscribes:C},z=new cC({protocol:e,transport:a,encoder:l,logger:d,lazy:u,hubOptions:E,performFailures:L,transportConfigurator:D});return c&&(c.watch(z),z.monitor=c),N&&yC(z,async()=>{try{await N(a)}catch(P){return d.error("Failed to refresh authentication token: "+P),!1}return z.connect().catch(()=>{}),!0}),z}function yC(t,n){let e=!1;t.on("connect",()=>e=!1),t.on("close",async r=>{if(r){if(e){t.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await n())}})}class bC extends Qp{writeLogEntry(n,e,r){r?console[n](e,r):console[n](e)}}class wC extends ig{watch(n){super.watch(n),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let n=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=v=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:v})},r=()=>this.disconnect(new zi("page_frozen"));document.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",n,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(n){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:n.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(n))}}const xC=["cable","action-cable"],CC="/cable",Dl=(t,n)=>{for(let e of xC){let r=t.head.querySelector(`meta[name='${e}-${n}']`);if(r)return r.getAttribute("content")}},sg=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,kC=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"url");if(t)return sg(t)}return sg(CC)},AC=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"history-timestamp");if(t)return t|0}},_C=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token")},SC=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token-param")};function $C(t,n){typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),t=t||kC(),n=n||{},n.historyTimestamp||=AC();let e=_C();if(e){let d=SC();n.auth=Object.assign({token:e,param:d},n.auth||{})}n=Object.assign({},og,n);let{logLevel:r,logger:v,pingInterval:p,reconnectStrategy:g,maxMissingPings:w,maxReconnectAttempts:h}=n;return v=n.logger=n.logger||new bC(r),g=n.reconnectStrategy=n.reconnectStrategy||rg(p),n.monitor!==!1&&(n.monitor=n.monitor||new wC({pingInterval:p,reconnectStrategy:g,maxMissingPings:w,maxReconnectAttempts:h,logger:v})),vC(t,n)}function MC(t,n){let e=$C(t,n);return new mC(e)}class TC{constructor(n="/openc3-api/cable",e="/openc3-api/auth/otp"){this._cable=null,this._url=n,this._otpUrl=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(n,e,r={},v={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>(p&&OpenC3Auth.setTokens(),X1.get(this._otpUrl,{params:{scope:e}}))).then(({data:p})=>{if(this._cable==null){const g=new URL(this._url,document.baseURI);g.searchParams.set("scope",e),g.searchParams.set("authorization",p),this._cable=MC(g.href)}return this._cable.subscriptions.create({channel:n,...v},r)})}recordPing(){}}Mn("W",TC);class EC{constructor(n,e,r="",v=""){this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=e,this.usage=r,this.url=v}}Mn("A",EC);function Na(t){return IC.test(t)}const IC=/^-?[0-9]+$/;function ag(t){return RC.test(t)}const RC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function lg(t,n){if(Na(t))return Number.isSafeInteger(Number.parseInt(t,10));const e=Number.parseFloat(t),r=String(e);if(t===r)return!0;const v=cg(t),p=cg(r);return!!(v===p||n?.approx===!0&&!Na(t)&&p.length>=14&&v.startsWith(p.substring(0,14)))}let Da=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function LC(t){if(lg(t,{approx:!1}))return;if(Na(t))return Da.truncate_integer;const n=Number.parseFloat(t);return Number.isFinite(n)?n===0?Da.underflow:Da.truncate_float:Da.overflow}function cg(t){const{start:n,end:e}=OC(t),r=t.substring(n,e),v=r.indexOf(".");return v===-1?r:r.substring(0,v)+r.substring(v+1)}function OC(t){let n=0;for(t[0]==="-"&&n++;t[n]==="0"||t[n]===".";)n++;let e=t.lastIndexOf("e");for(e===-1&&(e=t.lastIndexOf("E")),e===-1&&(e=t.length);(t[e-1]==="0"||t[e-1]===".")&&e>n;)e--;return{start:n,end:e}}class NC{isLosslessNumber=!0;constructor(n){if(!ag(n))throw new Error(`Invalid number (value: "${n}")`);this.value=n}valueOf(){const n=LC(this.value);if(n===void 0||n===Da.truncate_float)return Number.parseFloat(this.value);if(Na(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${n} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function DC(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function FC(t){return new NC(t)}function PC(t,n){return $u({"":t},"",t,n)}function $u(t,n,e,r){return Array.isArray(e)?r.call(t,n,BC(e,r)):e&&typeof e=="object"&&!DC(e)?r.call(t,n,WC(e,r)):r.call(t,n,e)}function WC(t,n){for(const e of Object.keys(t)){const r=$u(t,e,t[e],n);r!==void 0?t[e]=r:delete t[e]}return t}function BC(t,n){for(let e=0;e<t.length;e++)t[e]=$u(t,String(e),t[e],n);return t}function zC(t,n,e){const r=typeof e=="function"?{parseNumber:e}:e,v=r?.parseNumber??FC,p=r?.onDuplicateKey??L;let g=0;const w=a();return b(w),N(),n?PC(w,n):w;function h(){if(t.charCodeAt(g)===qC){g++,u();const B={};let U=!0;for(;g<t.length&&t.charCodeAt(g)!==hg;){U?U=!1:(s(),u());const q=g,Q=c();if(Q===void 0){C();return}u(),f();const ee=a();if(ee===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Mu(ee,B[Q])){const ae=p({key:Q,position:q+1,oldValue:B[Q],newValue:ee});ae!==void 0&&(B[Q]=ae)}else B[Q]=ee}return t.charCodeAt(g)!==hg&&D(),g++,B}}function d(){if(t.charCodeAt(g)===GC){g++,u();const B=[];let U=!0;for(;g<t.length&&t.charCodeAt(g)!==dg;){U?U=!1:s();const q=a();x(q),B.push(q)}return t.charCodeAt(g)!==dg&&I(),g++,B}}function a(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(t.slice(g,g+B.length)===B)return g+=B.length,U}function u(){for(;jC(t.charCodeAt(g));)g++}function c(){if(t.charCodeAt(g)===Tu){g++;let B="";for(;g<t.length&&t.charCodeAt(g)!==Tu;){if(t.charCodeAt(g)===KC){const U=t[g+1],q=VC[U];q!==void 0?(B+=q,g++):U==="u"?Fl(t.charCodeAt(g+2))&&Fl(t.charCodeAt(g+3))&&Fl(t.charCodeAt(g+4))&&Fl(t.charCodeAt(g+5))?(B+=String.fromCharCode(Number.parseInt(t.slice(g+2,g+6),16)),g+=5):O(g):z(g)}else UC(t.charCodeAt(g))?B+=t[g]:E(t[g]);g++}return _(),g++,B}}function i(){const B=g;if(t.charCodeAt(g)===fg&&(g++,M(B)),t.charCodeAt(g)===Eu)g++;else if(HC(t.charCodeAt(g)))for(g++;Pl(t.charCodeAt(g));)g++;if(t.charCodeAt(g)===nk)for(g++,M(B);Pl(t.charCodeAt(g));)g++;if(t.charCodeAt(g)===ak||t.charCodeAt(g)===sk)for(g++,(t.charCodeAt(g)===fg||t.charCodeAt(g)===JC)&&g++,M(B);Pl(t.charCodeAt(g));)g++;if(g>B)return v(t.slice(B,g))}function s(){if(t.charCodeAt(g)!==tk)throw new SyntaxError(`Comma ',' expected after value ${R()}`);g++}function f(){if(t.charCodeAt(g)!==rk)throw new SyntaxError(`Colon ':' expected after property name ${R()}`);g++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${R()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${R()}`)}function N(){if(g<t.length)throw new SyntaxError(`Expected end of input ${R()}`)}function M(B){if(!Pl(t.charCodeAt(g))){const U=t.slice(B,g);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${R()}`)}}function _(){if(t.charCodeAt(g)!==Tu)throw new SyntaxError(`End of string '"' expected ${R()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${R()}`)}function L(B){let{key:U,position:q}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${q}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${R()}`)}function I(){throw new SyntaxError(`Array item or end of array ']' expected ${R()}`)}function E(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function z(B){const U=t.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function O(B){const U=t.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${g}`}function k(){return g<t.length?`but got '${t[g]}'`:"but reached end of input"}function R(){return`${k()} ${$()}`}}function jC(t){return t===YC||t===XC||t===ZC||t===QC}function Fl(t){return t>=Eu&&t<=Iu||t>=ik&&t<=lk||t>=ok&&t<=ck}function Pl(t){return t>=Eu&&t<=Iu}function HC(t){return t>=ek&&t<=Iu}function UC(t){return t>=32&&t<=1114111}function Mu(t,n){return t===n?!0:Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((e,r)=>Mu(e,n[r])):ug(t)&&ug(n)?[...new Set([...Object.keys(t),...Object.keys(n)])].every(e=>Mu(t[e],n[e])):!1}function ug(t){return typeof t=="object"&&t!==null}const VC={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1392
|
+
`,r:"\r",t:" "},KC=92,qC=123,hg=125,GC=91,dg=93,YC=32,XC=10,ZC=9,QC=13,Tu=34,JC=43,fg=45,Eu=48,ek=49,Iu=57,tk=44,nk=46,rk=58,ik=65,ok=97,sk=69,ak=101,lk=70,ck=102;function pg(t,n,e,r){return v(t);function v(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!ag(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h?.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return p(h);if(h&&typeof h=="object")return g(h)}function p(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?a+=v(u):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function g(h,d){if(typeof h.toJSON=="function")return pg(h.toJSON(),n,e,void 0);const a=Array.isArray(n)?n.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,u="{";for(const c of a){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const s=JSON.stringify(c);u+=`${s}:`,u+=v(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function uk(t){return Na(t)&&!lg(t)?BigInt(t):parseFloat(t)}class hs{id=1;constructor(){}async exec(n,e,r={},v={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,v.manual=!0,(await Au.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...v},timeout:p,transformRequest:[(g,w)=>pg(g)],transformResponse:[g=>{try{return zC(g,void 0,uk)}catch{const w=typeof g=="string"?g.substring(0,200):String(g),h=new Error(`Server returned non-JSON response: ${w}`);throw h.name="ServerError",h}}]})).data.result}catch(g){let w=new Error;throw g.response?(w.name=g.response.data.error.data.class,w.message=g.response.data.error.data.message,w.object=g.response.data.error):g.request?(w.name="Request error",w.message="Request error, no response received"):w=g,w}}decode_openc3_type(n){if(n!==null&&typeof n=="object"&&n.json_class=="Float"&&n.raw){if(n.raw=="NaN")return NaN;if(n.raw=="Infinity")return 1/0;if(n.raw=="-Infinity")return-1/0}return null}encode_openc3_type(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(n=>{n&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(n){return this.exec("set_offline_access",[n])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(n,e,r,v,p){return this.exec("map_target_to_interface",[n,e],{cmd_only:r,tlm_only:v,unmap_old:p})}unmap_target_from_interface(n,e,r,v){return this.exec("unmap_target_from_interface",[n,e],{cmd_only:r,tlm_only:v})}connect_interface(n,...e){return e.length>0?this.exec("connect_interface",[n,...e]):this.exec("connect_interface",[n])}disconnect_interface(n){return this.exec("disconnect_interface",[n])}interface_cmd(n,e,...r){return this.exec("interface_cmd",[n,e,...r])}interface_target_enable(n,e,r=!1,v=!1){return this.exec("interface_target_enable",[n,e],{cmd_only:r,tlm_only:v})}interface_target_disable(n,e,r=!1,v=!1){return this.exec("interface_target_disable",[n,e],{cmd_only:r,tlm_only:v})}interface_details(n){return this.exec("interface_details",[n])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(n,e,r,v,p){return this.exec("map_target_to_router",[n,e],{cmd_only:r,tlm_only:v,unmap_old:p})}unmap_target_from_router(n,e,r,v){return this.exec("unmap_target_from_router",[n,e],{cmd_only:r,tlm_only:v})}connect_router(n){return this.exec("connect_router",[n])}disconnect_router(n){return this.exec("disconnect_router",[n])}router_target_enable(n,e,r=!1,v=!1){return this.exec("router_target_enable",[n,e],{cmd_only:r,tlm_only:v})}router_target_disable(n,e,r=!1,v=!1){return this.exec("router_target_disable",[n,e],{cmd_only:r,tlm_only:v})}router_details(n){return this.exec("router_details",[n])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(n){return this.exec("get_tlm_cnts",[n])}get_item(n,e,r){return this.exec("get_item",[n,e,r])}get_param(n,e,r){return this.exec("get_param",[n,e,r])}get_parameter(n,e,r){return this.exec("get_param",[n,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(n){return this.exec("set_limits_set",[n])}get_target(n){return this.exec("get_target",[n])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(n,e){return this.exec("get_tlm",[n,e])}get_telemetry(n,e){return this.exec("get_tlm",[n,e])}get_all_tlm(n){return this.exec("get_all_tlm",[n])}get_all_telemetry(n){return this.exec("get_all_tlm",[n])}get_all_tlm_names(n,e=!1){return this.exec("get_all_tlm_names",[n],{hidden:e})}get_all_telemetry_names(n){return this.exec("get_all_tlm_names",[n])}get_all_tlm_item_names(n){return this.exec("get_all_tlm_item_names",[n])}async get_tlm_packet(n,e,r,v=30){const p=await this.exec("get_tlm_packet",[n,e],{type:r,stale_time:v});if(p!=null){let g=p.length,w=null;for(let h=0;h<g;h++)w=this.decode_openc3_type(p[h][1]),w!==null&&(p[h][1]=w)}return p}get_packet_derived_items(n,e){return this.exec("get_packet_derived_items",[n,e])}get_tlm_buffer(n,e){return this.exec("get_tlm_buffer",[n,e])}get_tlm_available(n){return this.exec("get_tlm_available",[n])}async get_tlm_values(n,e=30,r=null,v=null,p=null){let g={stale_time:e};r!==null&&(g.cache_timeout=r),v!==null&&(g.start_time=v.toISOString()),p!==null&&(g.end_time=p.toISOString());const w=await this.exec("get_tlm_values",[n],g,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(n,e,r){return this.exec("get_limits",[n,e,r])}async tlm(n,e,r,v="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[n]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(e))p=await this.exec("tlm",[n],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED or FORMATTED.`,w}else p=await this.exec("tlm",[n,e,r],{type:v});let g=this.decode_openc3_type(p);return g!==null&&(p=g),p}async inject_tlm(n,e,r=null,v="CONVERTED"){await this.exec("inject_tlm",[n,e,r],{type:v})}set_tlm(n,e,r,v){return this.exec("set_tlm",[n,e,r],{type:v})}override_tlm(n,e,r,v){return this.exec("override_tlm",[n,e,r],{type:v})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(n,e,r,v){return this.exec("normalize_tlm",[n,e,r],{type:v})}get_all_cmds(n){return this.exec("get_all_cmds",[n])}get_all_commands(n){return this.exec("get_all_cmds",[n])}get_all_cmd_names(n,e=!1){return this.exec("get_all_cmd_names",[n],{hidden:e})}get_all_command_names(n){return this.exec("get_all_cmd_names",[n])}get_cmd(n,e){return this.exec("get_cmd",[n,e])}get_command(n,e){return this.exec("get_cmd",[n,e])}get_cmd_cnts(n){return this.exec("get_cmd_cnts",[n])}get_cmd_value(n,e,r,v="CONVERTED"){return this.exec("get_cmd_value",[n,e,r,v])}get_cmd_buffer(n,e){return this.exec("get_cmd_buffer",[n,e])}_cmd(n,e,r,v,p,g={}){let w=null;for(let h in v)Object.prototype.hasOwnProperty.call(v,h)&&(w=this.encode_openc3_type(v[h]),w!==null&&(v[h]=w));return this.exec(n,[e,r,v],g,p)}get_cmd_hazardous(n,e,r,v={}){return e===void 0?this.exec("get_cmd_hazardous",n,{},v):this._cmd("get_cmd_hazardous",n,e,r,v)}cmd(n,e,r,v={},p={}){return e===void 0?this.exec("cmd",n,p,v):this._cmd("cmd",n,e,r,v,p)}cmd_no_range_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_range_check",n,p,v):this._cmd("cmd_no_range_check",n,e,r,v,p)}cmd_raw(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw",n,p,v):this._cmd("cmd_raw",n,e,r,v,p)}cmd_raw_no_range_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_range_check",n,p,v):this._cmd("cmd_raw_no_range_check",n,e,r,v,p)}cmd_no_hazardous_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_hazardous_check",n,p,v):this._cmd("cmd_no_hazardous_check",n,e,r,v,p)}cmd_no_checks(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_checks",n,p,v):this._cmd("cmd_no_checks",n,e,r,v,p)}cmd_raw_no_hazardous_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",n,p,v):this._cmd("cmd_raw_no_hazardous_check",n,e,r,v,p)}cmd_raw_no_checks(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_checks",n,p,v):this._cmd("cmd_raw_no_checks",n,e,r,v,p)}build_cmd(n,e,r,v={},p={}){return e===void 0?this.exec("build_cmd",n,p,v):this._cmd("build_cmd",n,e,r,v,p)}build_command(n,e,r,v={},p={}){return e===void 0?this.exec("build_cmd",n,p,v):this._cmd("build_cmd",n,e,r,v,p)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(n,e){return this.exec("send_raw",[n,e])}list_configs(n){return this.exec("list_configs",[n])}load_config(n,e){return this.exec("load_config",[n,e])}save_config(n,e,r){return this.exec("save_config",[n,e,r])}delete_config(n,e){return this.exec("delete_config",[n,e])}enable_limits(n,e,r){return this.exec("enable_limits",[n,e,r])}disable_limits(n,e,r){return this.exec("disable_limits",[n,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(n){return this.exec("get_overall_limits_state",[n])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(n,e){return this.exec("get_setting",[n],e)}get_settings(n,e){return this.exec("get_settings",n,e)}set_setting(n,e){return this.exec("set_setting",[n,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(n,e){return this.exec("set_setting",[n,e])}get_metrics(){return this.exec("get_metrics",[])}open_tab(n){window.open(n,"_blank")}async hashString(n){if(window.isSecureContext){const e=new TextEncoder().encode(n),r=await crypto.subtle.digest("SHA-256",e),v=new Uint8Array(r);return Array.from(v).map(p=>p.toString(16).padStart(2,"0")).join("")}}}Mn("z",hs);var gg={exports:{}},mg;function hk(){return mg||(mg=1,(function(t,n){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,v){function p(d,a){function l(I,E,z){if(!(I.length<E)){var P=I.slice(0,E),O=I.slice(E),$=/^(?:(\s+)|(\S+)(\s+))/.exec(O),k=/(?:(\s+)|(\s+)(\S+))$/.exec(P),R=0,B=0;if(k&&!k[2]&&(R=E-k[1].length,B=E),$&&!$[2]&&(R||(R=E),B=E+$[1].length),R)return{start:R,end:B};if(k&&k[2]&&k.index>z)return{start:k.index,end:k.index+k[2].length};if($&&$[2])return R=E+$[2].length,{start:R,end:R+$[3].length}}}for(var u=a.column||d.getOption("printMarginColumn"),c=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),f=d.session;i<=s;){var b=f.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var N=/^\s*/.exec(b)[0];f.replace(new w(i,x.start,i,x.end),`
|
|
1393
|
+
`+N)}s++}else if(c&&/\S/.test(b)&&i!=s){var M=f.getLine(i+1);if(M&&/\S/.test(M)){var _=b.replace(/\s+$/,""),C=M.replace(/^\s+/,""),L=_+" "+C,x=l(L,u,5);if(x&&x.start>_.length||L.length<u){var D=new w(i,_.length,i+1,M.length-C.length);f.replace(D," "),i--,s--}else _.length<b.length&&f.remove(new w(i,_.length,i,b.length))}}i++}}function g(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var u=a.session.$undoManager.$lastDelta;p(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",g):this.commands.off("afterExec",g)},value:!1}}),r.hardWrap=p}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,v){function p(y){return{row:y.line,column:y.ch}}function g(y){return new Ne(y.row,y.column)}function w(y,S,A){if(S.line===A.line&&S.ch>=A.ch-1){var F=y.getLine(S.line),W=F.charCodeAt(S.ch);55296<=W&&W<=55551&&(A.ch+=1)}return{start:S,end:A}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),Be.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",lo),L(y),Be.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",lo),Be.off(y.getInputField(),"paste",a(y)),y.state.vim=null,rn&&clearTimeout(rn)}function a(y){var S=y.state.vim;return S.onPasteFn||(S.onPasteFn=function(){S.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Wn.enterInsertMode(y,{},S))}),S.onPasteFn}function l(y,S){return S>=y.firstLine()&&S<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return fa.test(y)}function s(y){return st.test(y)}function f(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,S){for(var A=0;A<S.length;A++)if(S[A]==y)return!0;return!1}function N(y,S,A,F,W){if(S===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(A||(A="string"),Ut[y]={type:A,defaultValue:S,callback:W},F)for(var j=0;j<F.length;j++)Ut[F[j]]=Ut[y];S&&M(y,S)}function M(y,S,A,F){var W=Ut[y];F=F||{};var j=F.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if(S&&S!==!0)return new Error("Invalid argument: "+y+"="+S);S!==!1&&(S=!0)}W.callback?(j!=="local"&&W.callback(S,void 0),j!=="global"&&A&&W.callback(S,A)):(j!=="local"&&(W.value=W.type=="boolean"?!!S:S),j!=="global"&&A&&(A.state.vim.options[y]={value:S}))}function _(y,S,A){var F=Ut[y];A=A||{};var W=A.scope;if(!F)return new Error("Unknown option: "+y);if(F.callback){var j=S&&F.callback(void 0,S);return W!=="global"&&j!==void 0?j:W!=="local"?F.callback():void 0}var j=W!=="global"&&S&&S.state.vim.options[y];return(j||W!=="local"&&F||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Pn()}function L(y){return y.state.vim||(y.state.vim={inputState:new $,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),y.state.vim}function D(){je={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Ii(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new q({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Ut){var S=Ut[y];S.value=S.defaultValue}}function I(y){function S(Y){typeof Y=="string"?Nt.value=Y:Nt=null}if(y[0]=="<"){var A=y.toLowerCase().slice(1,-1),F=A.split("-");if(A=F.pop()||"",A=="lt")y="<";else if(A=="space")y=" ";else if(A=="cr")y=`
|
|
1394
|
+
`;else if(Zi[A]){var W=Nt.value,j={key:Zi[A],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};Nt.onKeyDown&&Nt.onKeyDown(j,Nt.value,S),Nt&&Nt.onKeyUp&&Nt.onKeyUp(j,Nt.value,S);return}}if(y==`
|
|
1395
|
+
`){var K=Nt;Nt=null,K.onClose&&K.onClose(K.value)}else Nt.value=(Nt.value||"")+y}function E(y,S,A){var F=Ri;if(A){if(Ir.indexOf(A)!=-1)return;Ir.push(A),Ri=A.noremap!=0}try{for(var W=L(y),j=/<(?:[CSMA]-)*\w+>|./gi,K;K=j.exec(S);){var Y=K[0],Z=W.insertMode;if(Nt){I(Y);continue}var re=bt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var ue=Y.toLowerCase().slice(1,-1),ye=ue.split("-");if(ue=ye.pop()||"",ue=="lt")Y="<";else if(ue=="space")Y=" ";else if(ue=="cr")Y=`
|
|
1396
|
+
`;else{if(Zi.hasOwnProperty(ue)){Y=Zi[ue],Ms(y,Y);continue}Y=Y[0],j.lastIndex=K.index+1}}y.replaceSelection(Y)}}}finally{if(Ir.pop(),Ri=Ir.length?F:!1,!Ir.length&&Nt){var Ce=Nt;Nt=null,dr(y,Ce)}}}function z(y,S){var A=y.key;if(!Yn[A]){A.length>1&&A[0]=="n"&&(A=A.replace("Numpad","")),A=Rr[A]||A;var F="";if(y.ctrlKey&&(F+="C-"),y.altKey&&(F+="A-"),y.metaKey&&(F+="M-"),Be.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(F=F.slice(2)),(F||A.length>1)&&y.shiftKey&&(F+="S-"),S&&!S.expectLiteralNext&&A.length==1){if(On.keymap&&A in On.keymap)(On.remapCtrl!=0||!F)&&(A=On.keymap[A]);else if(A.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(A=W)}}return F+=A,F.length>1&&(F="<"+F+">"),F}}function P(y,S){On.string!==y&&(On=O(y)),On.remapCtrl=S}function O(y){function S(F){return F.split(/\\?(.)/).filter(Boolean)}var A={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(F){if(F){var W=F.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var j=S(W[1]),K=S(W[2]);if(j.length!==K.length)return;for(var Y=0;Y<j.length;++Y)A[j[Y]]=K[Y]}else if(W.length==1){var Z=S(F);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)A[Z[Y]]=Z[Y+1]}}}),{keymap:A,string:y}):{keymap:A,string:""}}function $(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function k(y,S){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,Be.signal(y,"vim-command-done",S)}function R(){this.removed=[],this.inserted=""}function B(y,S,A){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!S,this.blockwise=!!A}function U(y,S){var A=je.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");A[y]=S,Is.push(y)}function q(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function ee(y,S){_n[y]=S}function ae(y,S){for(var A=[],F=0;F<S;F++)A.push(y);return A}function ne(y,S){Yo[y]=S}function ce(y,S){Wn[y]=S}function se(y,S,A){var F=y.state.vim,W=F.insertMode||F.visualMode,j=Math.min(Math.max(y.firstLine(),S.line),y.lastLine()),K=y.getLine(j),Y=K.length-1+ +!!W,Z=Math.min(Math.max(0,S.ch),Y),re=K.charCodeAt(Z);if(56320<=re&&re<=57343){var ue=1;A&&A.line==j&&A.ch>Z&&(ue=-1),Z+=ue,Z>Y&&(Z-=2)}return new Ne(j,Z)}function de(y){var S={};for(var A in y)y.hasOwnProperty(A)&&(S[A]=y[A]);return S}function me(y,S,A){return typeof S=="object"&&(A=S.ch,S=S.line),new Ne(y.line+S,y.ch+A)}function $e(y,S,A,F){F.operator&&(A="operatorPending");for(var W,j=[],K=[],Y=Ri?S.length-_o:0,Z=Y;Z<S.length;Z++){var re=S[Z];A=="insert"&&re.context!="insert"||re.context&&re.context!=A||F.operator&&re.type=="action"||!(W=Me(y,re.keys))||(W=="partial"&&j.push(re),W=="full"&&K.push(re))}return{partial:j.length&&j,full:K.length&&K}}function Me(y,S){var A=S.slice(-11)=="<character>",F=S.slice(-10)=="<register>";if(A||F){var W=S.length-(A?11:10),j=y.slice(0,W),K=S.slice(0,W);return j==K&&y.length>W?"full":K.indexOf(j)==0?"partial":!1}return y==S?"full":S.indexOf(y)==0?"partial":!1}function Te(y){var S=/^.*(<[^>]+>)$/.exec(y),A=S?S[1]:y.slice(-1);if(A.length>1)switch(A){case"<CR>":A=`
|
|
1397
|
+
`;break;case"<Space>":A=" ";break;default:A=""}return A}function Ze(y,S,A){return function(){for(var F=0;F<A;F++)S(y)}}function qe(y){return new Ne(y.line,y.ch)}function it(y,S){return y.ch==S.ch&&y.line==S.line}function ct(y,S){return y.line<S.line?!0:y.line==S.line&&y.ch<S.ch}function et(y,S){return arguments.length>2&&(S=et.apply(void 0,Array.prototype.slice.call(arguments,1))),ct(y,S)?y:S}function Bt(y,S){return arguments.length>2&&(S=Bt.apply(void 0,Array.prototype.slice.call(arguments,1))),ct(y,S)?S:y}function pr(y,S,A){var F=ct(y,S),W=ct(S,A);return F&&W}function At(y,S){return y.getLine(S).length}function tr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function An(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function gr(y,S,A){var F=At(y,S),W=new Array(A-F+1).join(" ");y.setCursor(new Ne(S,F)),y.replaceRange(W,y.getCursor())}function fn(y,S){var A=[],F=y.listSelections(),W=qe(y.clipPos(S)),j=!it(S,W),K=y.getCursor("head"),Y=ht(F,K),Z=it(F[Y].head,F[Y].anchor),re=F.length-1,ue=re-Y>Y?re:0,ye=F[ue].anchor,Ce=Math.min(ye.line,W.line),ve=Math.max(ye.line,W.line),we=ye.ch,Oe=W.ch,Re=F[ue].head.ch-we,Ve=Oe-we;Re>0&&Ve<=0?(we++,j||Oe--):Re<0&&Ve>=0?(we--,Z||Oe++):Re<0&&Ve==-1&&(we--,Oe++);for(var at=Ce;at<=ve;at++){var Xe={anchor:new Ne(at,we),head:new Ne(at,Oe)};A.push(Xe)}return y.setSelections(A),S.ch=Oe,ye.ch=we,ye}function ur(y,S,A){for(var F=[],W=0;W<A;W++){var j=me(S,W,0);F.push({anchor:j,head:j})}y.setSelections(F,0)}function ht(y,S,A){for(var F=0;F<y.length;F++){var W=it(y[F].anchor,S),j=it(y[F].head,S);if(W||j)return F}return-1}function Ke(y,S){var A=S.lastSelection,F=function(){var j=y.listSelections(),K=j[0],Y=j[j.length-1],Z=ct(K.anchor,K.head)?K.anchor:K.head,re=ct(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var j=y.getCursor(),K=y.getCursor(),Y=A.visualBlock;if(Y){var Z=Y.width,re=Y.height;K=new Ne(j.line+re,j.ch+Z);for(var ue=[],ye=j.line;ye<K.line;ye++){var Ce=new Ne(ye,j.ch),ve=new Ne(ye,K.ch),we={anchor:Ce,head:ve};ue.push(we)}y.setSelections(ue)}else{var Oe=A.anchorMark.find(),Re=A.headMark.find(),Ve=Re.line-Oe.line,at=Re.ch-Oe.ch;K={line:K.line+Ve,ch:Ve?K.ch:at+K.ch},A.visualLine&&(j=new Ne(j.line,0),K=new Ne(K.line,At(y,K.line))),y.setSelection(j,K)}return[j,K]};return S.visualMode?F():W()}function St(y,S){var A=S.sel.anchor,F=S.sel.head;S.lastPastedText&&(F=y.posFromIndex(y.indexFromPos(A)+S.lastPastedText.length),S.lastPastedText=null),S.lastSelection={anchorMark:y.setBookmark(A),headMark:y.setBookmark(F),anchor:qe(A),head:qe(F),visualMode:S.visualMode,visualLine:S.visualLine,visualBlock:S.visualBlock}}function Qt(y,S,A,F){var W=y.state.vim.sel,j=F?S:W.head,K=F?S:W.anchor,Y;return ct(A,S)&&(Y=A,A=S,S=Y),ct(j,K)?(j=et(S,j),K=Bt(K,A)):(K=et(S,K),j=Bt(j,A),j=me(j,0,-1),j.ch==-1&&j.line!=y.firstLine()&&(j=new Ne(j.line-1,At(y,j.line-1)))),[K,j]}function En(y,S,W){var F=y.state.vim;S=S||F.sel;var W=W||F.visualLine?"line":F.visualBlock?"block":"char",j=jn(y,S,W);y.setSelections(j.ranges,j.primary)}function jn(y,S,A,F){var W=qe(S.head),j=qe(S.anchor);if(A=="char"){var K=!F&&!ct(S.head,S.anchor)?1:0,Y=ct(S.head,S.anchor)?1:0;return W=me(S.head,0,K),j=me(S.anchor,0,Y),{ranges:[{anchor:j,head:W}],primary:0}}if(A=="line"){if(ct(S.head,S.anchor))W.ch=0,j.ch=At(y,j.line);else{j.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=At(y,W.line)}return{ranges:[{anchor:j,head:W}],primary:0}}if(A=="block"){var re=Math.min(j.line,W.line),ue=j.ch,ye=Math.max(j.line,W.line),Ce=W.ch;ue<Ce?Ce+=1:ue+=1;for(var ve=ye-re+1,we=W.line==re?0:ve-1,Oe=[],Re=0;Re<ve;Re++)Oe.push({anchor:new Ne(re+Re,ue),head:new Ne(re+Re,Ce)});return{ranges:Oe,primary:we}}}function nr(y){var S=y.getCursor("head");return y.getSelection().length==1&&(S=et(S,y.getCursor("anchor"))),S}function pn(y,S){var A=y.state.vim;S!==!1&&y.setCursor(se(y,A.sel.head)),St(y,A),A.visualMode=!1,A.visualLine=!1,A.visualBlock=!1,A.insertMode||Be.signal(y,"vim-mode-change",{mode:"normal"})}function Dn(y,S,A){var F=y.getRange(S,A);if(/\n\s*$/.test(F)){var W=F.split(`
|
|
1398
|
+
`);W.pop();for(var j,j=W.pop();W.length>0&&j&&f(j);j=W.pop())A.line--,A.ch=0;j?(A.line--,A.ch=At(y,A.line)):A.ch=0}}function In(y,S,A){S.ch=0,A.ch=0,A.line++}function qt(y){if(!y)return 0;var S=y.search(/\S/);return S==-1?y.length:S}function cn(y,S,A){var F=S.inclusive,W=S.innerWord,j=S.bigWord,K=S.noSymbol,Y=S.multiline,Z=A||nr(y),re=y.getLine(Z.line),ue=re,ye=Z.line,Ce=ye,ve=Z.ch,we,Oe=K?So[0]:Ei[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(kn){return/\s/.test(kn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ni(y,Z,!0,j,!0);break}j?Oe=Ei[0]:(Oe=So[0],Oe(re.charAt(ve))||(Oe=So[1]))}for(var Re=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Re=we.to,Ce=we.line,ue=y.getLine(Ce),!ue&&Re==0&&Re++;else for(;Oe(re.charAt(Re))&&Re<re.length;)Re++;if(F){var at=Re,Xe=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Xe)for(;/\s/.test(ue.charAt(Re))&&Re<ue.length;)Re++;if(at==Re||Xe){for(var Je=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Xe&&(Ve=Je)}}return{start:new Ne(ye,Ve),end:new Ne(Ce,Re)}}function Mr(y,S,A){var F=S;if(!Be.findMatchingTag||!Be.findEnclosingTag)return{start:F,end:F};var W=Be.findMatchingTag(y,S)||Be.findEnclosingTag(y,S);return!W||!W.open||!W.close?{start:F,end:F}:A?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function jr(y,S,A){it(S,A)||je.jumpList.add(y,S,A)}function mr(y,S){je.lastCharacterSearch.increment=y,je.lastCharacterSearch.forward=S.forward,je.lastCharacterSearch.selectedCharacter=S.selectedCharacter}function mi(y,S,A,F){var W=qe(y.getCursor()),j=A?1:-1,K=A?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ue={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:F,reverseSymb:(A?{")":"(","}":"{"}:{"(":")","{":"}"})[F],forward:A,depth:0,curMoveThrough:!1},ye=bi[F];if(!ye)return W;var Ce=wi[ye].init,ve=wi[ye].isComplete;for(Ce&&Ce(ue);Z!==K&&S;){if(ue.index+=j,ue.nextCh=ue.lineText.charAt(ue.index),!ue.nextCh){if(Z+=j,ue.lineText=y.getLine(Z)||"",j>0)ue.index=0;else{var we=ue.lineText.length;ue.index=we>0?we-1:0}ue.nextCh=ue.lineText.charAt(ue.index)}ve(ue)&&(W.line=Z,W.ch=ue.index,S--)}return ue.nextCh||ue.curMoveThrough?new Ne(Z,ue.index):W}function ni(y,S,A,F,W){var j=S.line,K=S.ch,Y=y.getLine(j),Z=A?1:-1,re=F?Ei:So;if(W&&Y==""){if(j+=Z,Y=y.getLine(j),!l(y,j))return null;K=A?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:j};for(var ue=Z>0?Y.length:-1,ye=ue,Ce=ue;K!=ue;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(K))){for(ye=K;K!=ue&&re[we](Y.charAt(K));)K+=Z;if(Ce=K,ve=ye!=Ce,ye==S.ch&&j==S.line&&Ce==ye+Z)continue;return{from:Math.min(ye,Ce+1),to:Math.max(ye,Ce),line:j}}ve||(K+=Z)}if(j+=Z,!l(y,j))return null;Y=y.getLine(j),K=Z>0?0:Y.length}}function Hn(y,S,A,F,W,j){var K=qe(S),Y=[];(F&&!W||!F&&W)&&A++;for(var Z=!F||!W,re=0;re<A;re++){var ue=ni(y,S,F,j,Z);if(!ue){var ye=At(y,y.lastLine());Y.push(F?{line:y.lastLine(),from:ye,to:ye}:{line:0,from:0,to:0});break}Y.push(ue),S=new Ne(ue.line,F?ue.to-1:ue.from)}var Ce=Y.length!=A,ve=Y[0],we=Y.pop();return F&&!W?(!Ce&&(ve.from!=K.ch||ve.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.from)):F&&W?new Ne(we.line,we.to-1):!F&&W?(!Ce&&(ve.to!=K.ch||ve.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function Ki(y,S,A,F,W){var j=S,K=new Ne(j.line+A.repeat-1,1/0),Y=y.clipPos(K);return Y.ch--,W||(F.lastHPos=1/0,F.lastHSPos=y.charCoords(Y,"div").left),K}function Hr(y,S,A,F,W){for(var j=W||y.getCursor(),K=j.ch,Y,Z=0;Z<S;Z++){var re=y.getLine(j.line);if(Y=xn(K,re,F,A),Y==-1)return null;K=Y}return new Ne(y.getCursor().line,Y)}function xs(y,S){var A=y.getCursor().line;return se(y,new Ne(A,S-1))}function Ur(y,S,A,F){!x(A,fo)&&!tn.test(A)||(S.marks[A]&&S.marks[A].clear(),S.marks[A]=y.setBookmark(F))}function xn(y,S,A,F,W){var j;return F?(j=S.indexOf(A,y+1),j!=-1):(j=S.lastIndexOf(A,y-1),j!=-1),j}function vi(y,S,A,F,W){function j(Ve){return!/\S/.test(y.getLine(Ve))}function K(Ve,at,Xe){return Xe?j(Ve)!=j(Ve+at):!j(Ve)&&j(Ve+at)}function Y(Ve){F=F>0?1:-1;var at=y.ace.session.getFoldLine(Ve);at&&Ve+F>at.start.row&&Ve+F<at.end.row&&(F=(F>0?at.end.row:at.start.row)-Ve)}var Z=S.line,re=y.firstLine(),ue=y.lastLine(),ye,Ce,ve=Z;if(F){for(;re<=ve&&ve<=ue&&A>0;)Y(ve),K(ve,F)&&A--,ve+=F;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&K(Z,1,!0)){var Oe=we.sel.anchor;K(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Re=j(Z);for(ve=Z;ve<=ue&&A;ve++)K(ve,1,!0)&&(!W||j(ve)!=Re)&&A--;for(Ce=new Ne(ve,0),ve>ue&&!Re?Re=!0:W=!1,ve=Z;ve>re&&!((!W||j(ve)==Re||ve==Z)&&K(ve,-1,!0));ve--);return ye=new Ne(ve,0),{start:ye,end:Ce}}function xo(y,S,A,F,W){function j(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function K(re,ue,ye,Ce){var ve=re.getLine(ue),we={line:ve,ln:ue,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(j(we);we.line!==null&&f(we.line[we.pos]);)Oe=we.pos,j(we);return{ln:we.ln,pos:Oe+1}}j(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ue,ye,Ce){var ve=re.getLine(ue),we={line:ve,ln:ue,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(!f(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?f(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};j(we)}return we.line=ve,W&&f(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:S.line,pos:S.ch};A>0;)F<0?Z=Y(y,Z.ln,Z.pos,F):Z=K(y,Z.ln,Z.pos,F),A--;return new Ne(Z.ln,Z.pos)}function ri(y,S,A,F){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function j(Z,re,ue,ye){var Re=Z.getLine(re),Ce=Re==="",ve={line:Re,ln:re,pos:ue,dir:ye},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(Ce&&ve.line!==""&&!f(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!Ce&&(ve.pos===ve.line.length-1||f(ve.line[ve.pos+1]))&&(Ce=!0),W(Z,ve)}var Re=Z.getLine(we.ln);we.pos=0;for(var Ve=Re.length-1;Ve>=0;--Ve)if(!f(Re[Ve])){we.pos=Ve;break}return we}function K(Z,re,ue,ye){var Oe=Z.getLine(re),Ce={line:Oe,ln:re,pos:ue,dir:ye},ve={ln:Ce.ln,pos:null},we=Ce.line==="";for(W(Z,Ce);Ce.line!==null;){if(Ce.line===""&&!we)return ve.pos!==null?ve:{ln:Ce.ln,pos:Ce.pos};if(!(!b(Ce.line[Ce.pos])||ve.pos===null||Ce.ln===ve.ln&&Ce.pos+1===ve.pos))return ve;Ce.line!==""&&!f(Ce.line[Ce.pos])&&(we=!1,ve={ln:Ce.ln,pos:Ce.pos}),W(Z,Ce)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Re=0;Re<Oe.length;++Re)if(!f(Oe[Re])){ve.pos=Re;break}return ve}for(var Y={ln:S.line,pos:S.ch};A>0;)F<0?Y=K(y,Y.ln,Y.pos,F):Y=j(y,Y.ln,Y.pos,F),A--;return new Ne(Y.ln,Y.pos)}function Cn(y,S,A,F){var W=S,j,K,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[A],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[A],re=y.getLine(W.line).charAt(W.ch),ue=re===Z?1:0;if(j=y.scanForBracket(new Ne(W.line,W.ch+ue),-1,void 0,{bracketRegex:Y}),K=y.scanForBracket(new Ne(W.line,W.ch+ue),1,void 0,{bracketRegex:Y}),!j||!K)return null;if(j=j.pos,K=K.pos,j.line==K.line&&j.ch>K.ch||j.line>K.line){var ye=j;j=K,K=ye}return F?K.ch+=1:j.ch+=1,{start:j,end:K}}function vr(y,S,A,F){var W=qe(S),j=y.getLine(W.line),K=j.split(""),Y,Z,re,ue,ye=K.indexOf(A);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&K[W.ch]==A){var Ce=/string/.test(y.getTokenTypeAt(me(S,0,1))),ve=/string/.test(y.getTokenTypeAt(S)),we=Ce&&!ve;we||(Z=W.ch,--W.ch)}if(K[W.ch]==A&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)K[re]==A&&(Y=re+1);if(Y&&!Z)for(re=Y,ue=K.length;re<ue&&!Z;re++)K[re]==A&&(Z=re);return!Y||!Z?{start:W,end:W}:(F&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function Tr(){}function Rn(y){var S=y.state.vim;return S.searchState_||(S.searchState_=new Tr)}function vn(y){return ii(y,"/")}function hr(y){return so(y,"/")}function ii(y,S){var A=so(y,S)||[];if(!A.length)return[];var F=[];if(A[0]===0){for(var W=0;W<A.length;W++)typeof A[W]=="number"&&F.push(y.substring(A[W]+1,A[W+1]));return F}}function so(y,S){S||(S="/");for(var A=!1,F=[],W=0;W<y.length;W++){var j=y.charAt(W);!A&&j==S&&F.push(W),A=!A&&j=="\\"}return F}function ao(y){for(var S="|(){",A="}",F=!1,W=[],j=-1;j<y.length;j++){var K=y.charAt(j)||"",Y=y.charAt(j+1)||"",Z=Y&&S.indexOf(Y)!=-1;F?((K!=="\\"||!Z)&&W.push(K),F=!1):K==="\\"?(F=!0,Y&&A.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(K)):(W.push(K),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function zo(y){for(var S=!1,A=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",j=y.charAt(F+1)||"";Li[W+j]?(A.push(Li[W+j]),F++):S?(A.push(W),S=!1):W==="\\"?(S=!0,i(j)||j==="$"?A.push("$"):j!=="/"&&j!=="\\"&&A.push("\\")):(W==="$"&&A.push("$"),A.push(W),j==="/"&&A.push("\\"))}return A.join("")}function Er(y){for(var S=new Be.StringStream(y),A=[];!S.eol();){for(;S.peek()&&S.peek()!="\\";)A.push(S.next());var F=!1;for(var W in Rs)if(S.match(W,!0)){F=!0,A.push(Rs[W]);break}F||A.push(S.next())}return A.join("")}function oi(y,S,A){var F=je.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=hr(y),j,K;if(!W.length)j=y;else{j=y.substring(0,W[0]);var Y=y.substring(W[0]);K=Y.indexOf("i")!=-1}if(!j)return null;_("pcre")||(j=ao(j)),A&&(S=/^[^A-Z]*$/.test(j));var Z=new RegExp(j,S||K?"im":"m");return Z}function Vr(y){typeof y=="string"&&(y=document.createElement(y));for(var S,A=1;A<arguments.length;A++)if(S=arguments[A])if(typeof S!="object"&&(S=document.createTextNode(S)),S.nodeType)y.appendChild(S);else for(var F in S)Object.prototype.hasOwnProperty.call(S,F)&&(F[0]==="$"?y.style[F.slice(1)]=S[F]:y.setAttribute(F,S[F]));return y}function It(y,S){var A=Vr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},S);y.openNotification?y.openNotification(A,{bottom:!0,duration:5e3}):alert(A.innerText)}function Co(y,S){return Vr("div",{$display:"flex"},Vr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Vr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),S&&Vr("span",{$color:"#888"},S))}function dr(y,S){if(Ir.length){S.value||(S.value=""),Nt=S;return}var A=Co(S.prefix,S.desc);if(y.openDialog)y.openDialog(A,S.onClose,{onKeyDown:S.onKeyDown,onKeyUp:S.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:S.value});else{var F="";typeof S.prefix!="string"&&S.prefix&&(F+=S.prefix.textContent),S.desc&&(F+=" "+S.desc),S.onClose(prompt(F,""))}}function le(y,S){if(y instanceof RegExp&&S instanceof RegExp){for(var A=["global","multiline","ignoreCase","source"],F=0;F<A.length;F++){var W=A[F];if(y[W]!==S[W])return!1}return!0}return!1}function We(y,S,A,F){if(S){var W=Rn(y),j=oi(S,!!A,!!F);if(j)return Ot(y,j),le(j,W.getQuery())||W.setQuery(j),j}}function Fe(y){if(y.source.charAt(0)=="^")var S=!0;return{token:function(A){if(S&&!A.sol()){A.skipToEnd();return}var F=A.match(y,!1);if(F)return F[0].length==0?(A.next(),"searching"):!A.sol()&&(A.backUp(1),!y.exec(A.next()+F[0]))?(A.next(),null):(A.match(y),"searching");for(;!A.eol()&&(A.next(),!A.match(y,!1)););},query:y}}function Ot(y,S){clearTimeout(rn);var A=Rn(y);A.highlightTimeout=rn,rn=setTimeout(function(){if(y.state.vim){var F=Rn(y);F.highlightTimeout=null;var W=F.getOverlay();(!W||S!=W.query)&&(W&&y.removeOverlay(W),W=Fe(S),y.addOverlay(W),y.showMatchesOnScrollbar&&(F.getScrollbarAnnotate()&&F.getScrollbarAnnotate().clear(),F.setScrollbarAnnotate(y.showMatchesOnScrollbar(S))),F.setOverlay(W))}},50)}function zt(y,S,A,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),j=y.getSearchCursor(A,W),K=0;K<F;K++){var Y=j.find(S);if(K==0&&Y&&it(j.from(),W)){var Z=S?j.from():j.to();Y=j.find(S),Y&&!Y[0]&&it(j.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=j.find(S))}if(!Y&&(j=y.getSearchCursor(A,S?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!j.find(S)))return}return j.from()})}function Yt(y,S,A,F,W){return F===void 0&&(F=1),y.operation(function(){var j=y.getCursor(),K=y.getSearchCursor(A,j),Y=K.find(!S);!W.visualMode&&Y&&it(K.from(),j)&&K.find(!S);for(var Z=0;Z<F;Z++)if(Y=K.find(S),!Y&&(K=y.getSearchCursor(A,S?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!K.find(S)))return;return[K.from(),K.to()]})}function Un(y){var S=Rn(y);S.highlightTimeout&&(clearTimeout(S.highlightTimeout),S.highlightTimeout=null),y.removeOverlay(Rn(y).getOverlay()),S.setOverlay(null),S.getScrollbarAnnotate()&&(S.getScrollbarAnnotate().clear(),S.setScrollbarAnnotate(null))}function rr(y,S,A){return typeof y!="number"&&(y=y.line),S instanceof Array?x(y,S):typeof A=="number"?y>=S&&y<=A:y==S}function Fn(y){var S=y.ace.renderer;return{top:S.getFirstFullyVisibleRow(),bottom:S.getLastFullyVisibleRow()}}function yr(y,S,A){if(A=="'"||A=="`")return je.jumpList.find(y,-1)||new Ne(0,0);if(A==".")return gn(y);var F=S.marks[A];return F&&F.find()}function gn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var S=y.doc.history.done,A=S.length;A--;)if(S[A].changes)return qe(S[A].changes[0].to)}function qi(y,S,A,F,W,j,K,Y,Z){function re(){y.operation(function(){for(;!Oe;)ue(),Ce();ve()})}function ue(){var Xe=y.getRange(j.from(),j.to()),Je=Xe.replace(K,Y),kn=j.to().line;j.replace(Je),Ve=j.to().line,W+=Ve-kn,at=Ve<kn}function ye(){var Xe=Re&&qe(j.to()),Je=j.findNext();return Je&&!Je[0]&&Xe&&it(j.from(),Xe)&&(Je=j.findNext()),Je}function Ce(){for(;ye()&&rr(j.from(),F,W);)if(!(!A&&j.from().line==Ve&&!at)){y.scrollIntoView(j.from(),30),y.setSelection(j.from(),j.to()),Re=j.from(),Oe=!1;return}Oe=!0}function ve(Xe){if(Xe&&Xe(),y.focus(),Re){y.setCursor(Re);var Je=y.state.vim;Je.exMode=!1,Je.lastHPos=Je.lastHSPos=Re.ch}Z&&Z()}function we(Xe,Je,kn){Be.e_stop(Xe);var xt=z(Xe);switch(xt){case"y":ue(),Ce();break;case"n":Ce();break;case"a":var Gt=Z;Z=void 0,y.operation(re),Z=Gt;break;case"l":ue();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(kn)}return Oe&&ve(kn),!0}y.state.vim.exMode=!0;var Oe=!1,Re,Ve,at;if(Ce(),Oe){It(y,"No matches for "+K.source);return}if(!S){re(),Z&&Z();return}dr(y,{prefix:Vr("span","replace with ",Vr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function br(y,S){var A=y.state.vim,F=je.macroModeState,W=je.registerController.getRegister("."),j=F.isPlaying,K=F.lastInsertModeChanges;j||(y.off("change",Ho),A.insertEnd&&A.insertEnd.clear(),A.insertEnd=null,Be.off(y.getInputField(),"keydown",ko)),!j&&A.insertModeRepeat>1&&($s(y,A,A.insertModeRepeat-1,!0),A.lastEditInputState.repeatOverride=A.insertModeRepeat),delete A.insertModeRepeat,A.insertMode=!1,S||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(K.changes.join("")),Be.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&ir(F)}function jo(y){Ln.unshift(y)}function Cs(y,S,A,F,W){var j={keys:y,type:S};j[S]=A,j[S+"Args"]=F;for(var K in W)j[K]=W[K];jo(j)}function ks(y,S,A,F){var W=je.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Lr.processCommand(y,W.keyBuffer[0]),A.isPlaying=!1;return}var j=W.keyBuffer,K=0;A.isPlaying=!0,A.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<j.length;Y++)for(var Z=j[Y],re,ue;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ue=re[0],Z=Z.substring(re.index+ue.length),bt.handleKey(y,ue,"macro"),S.insertMode){var ye=W.insertModeChanges[K++].changes;je.macroModeState.lastInsertModeChanges.changes=ye,Vo(y,ye,1),br(y)}A.isPlaying=!1}function As(y,S){if(!y.isPlaying){var A=y.latestRegister,F=je.registerController.getRegister(A);F&&F.pushText(S)}}function ir(y){if(!y.isPlaying){var S=y.latestRegister,A=je.registerController.getRegister(S);A&&A.pushInsertModeChanges&&A.pushInsertModeChanges(y.lastInsertModeChanges)}}function _s(y,S){if(!y.isPlaying){var A=y.latestRegister,F=je.registerController.getRegister(A);F&&F.pushSearchQuery&&F.pushSearchQuery(S)}}function Ho(y,S){var A=je.macroModeState,F=A.lastInsertModeChanges;if(!A.isPlaying)for(var W=y.state.vim;S;){if(F.expectCursorActivityForChange=!0,F.ignoreCount>1)F.ignoreCount--;else if(S.origin=="+input"||S.origin=="paste"||S.origin===void 0){var j=y.listSelections().length;j>1&&(F.ignoreCount=j);var K=S.text.join(`
|
|
1399
|
+
`);if(F.maybeReset&&(F.changes=[],F.maybeReset=!1),K)if(y.state.overwrite&&!/\n/.test(K))F.changes.push([K]);else{if(K.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<K.length&&(F.changes.push([K,re]),K="")}}K&&F.changes.push(K)}}S=S.next}}function lo(y){var S=y.state.vim;if(S.insertMode){var A=je.macroModeState;if(A.isPlaying)return;var F=A.lastInsertModeChanges;F.expectCursorActivityForChange?F.expectCursorActivityForChange=!1:(F.maybeReset=!0,S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||Ss(y,S)}function Ss(y,S,A){var F=y.getCursor("anchor"),W=y.getCursor("head");if(S.visualMode&&!y.somethingSelected()?pn(y,!1):!S.visualMode&&!S.insertMode&&y.somethingSelected()&&(S.visualMode=!0,S.visualLine=!1,Be.signal(y,"vim-mode-change",{mode:"visual"})),S.visualMode){var j=ct(W,F)?0:-1,K=ct(W,F)?-1:0;W=me(W,0,j),F=me(F,0,K),S.sel={anchor:F,head:W},Ur(y,S,"<",et(W,F)),Ur(y,S,">",Bt(W,F))}else!S.insertMode&&!A&&(S.lastHPos=y.getCursor().ch)}function Uo(y,S){this.keyName=y,this.key=S.key,this.ctrlKey=S.ctrlKey,this.altKey=S.altKey,this.metaKey=S.metaKey,this.shiftKey=S.shiftKey}function ko(y){var S=je.macroModeState,A=S.lastInsertModeChanges,F=Be.keyName?Be.keyName(y):y.key;F&&(F.indexOf("Delete")!=-1||F.indexOf("Backspace")!=-1)&&(A.maybeReset&&(A.changes=[],A.maybeReset=!1),A.changes.push(new Uo(F,y)))}function $s(y,S,A,F){function W(){Y?yi.processAction(y,S,S.lastEditActionCommand):yi.evalInput(y,S)}function j(ue){if(K.lastInsertModeChanges.changes.length>0){ue=S.lastEditActionCommand?ue:1;var ye=K.lastInsertModeChanges;Vo(y,ye.changes,ue)}}var K=je.macroModeState;K.isPlaying=!0;var Y=!!S.lastEditActionCommand,Z=S.inputState;if(S.inputState=S.lastEditInputState,Y&&S.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<A;re++)W(),j(1);else F||W(),j(A);S.inputState=Z,S.insertMode&&!F&&br(y),K.isPlaying=!1}function Ms(y,S){Be.lookupKey(S,"vim-insert",function(A){return typeof A=="string"?Be.commands[A](y):A(y),!0})}function Vo(y,S,A){var F=y.getCursor("head"),W=je.macroModeState.lastInsertModeChanges.visualBlock;W&&(ur(y,F,W+1),A=y.listSelections().length,y.setCursor(F));for(var j=0;j<A;j++){W&&y.setCursor(me(F,j,0));for(var K=0;K<S.length;K++){var Y=S[K];if(Y instanceof Uo)Ms(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(F,0,1))}function ca(y,S,A,F){S.length>1&&S[0]=="n"&&(S=S.replace("numpad","")),S=po[S]||S;var W="";if(A.ctrlKey&&(W+="C-"),A.altKey&&(W+="A-"),(W||S.length>1)&&A.shiftKey&&(W+="S-"),F&&!F.expectLiteralNext&&S.length==1){if(On.keymap&&S in On.keymap)(On.remapCtrl!==!1||!W)&&(S=On.keymap[S]);else if(S.charCodeAt(0)>255){var j=A.code&&A.code.slice(-1)||"";A.shiftKey||(j=j.toLowerCase()),j&&(S=j)}}return W+=S,W.length>1&&(W="<"+W+">"),W}function co(y){var S=new y.constructor;return Object.keys(y).forEach(function(A){if(A!="insertEnd"){var F=y[A];Array.isArray(F)?F=F.slice():F&&typeof F=="object"&&F.constructor!=Object&&(F=co(F)),S[A]=F}}),y.sel&&(S.sel={head:y.sel.head&&qe(y.sel.head),anchor:y.sel.anchor&&qe(y.sel.anchor)}),S}function Ko(y,S,A){var F=!1,W=bt.maybeInitVimState_(y),j=W.visualBlock||W.wasInVisualBlock,K=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!K?W.wasInVisualBlock=!1:K&&W.visualBlock&&(W.wasInVisualBlock=!0),S=="<Esc>"&&!W.insertMode&&!W.visualMode&&K)y.ace.exitMultiSelectMode();else if(j||!K||y.ace.inVirtualSelectionMode)F=bt.handleKey(y,S,A);else{var Y=co(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ue=y.ace.selection;y.state.vim.lastHPos=ue.$desiredColumn==null?ue.lead.column:ue.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var ye=y.getCursor("head"),Ce=y.getCursor("anchor"),ve=ct(ye,Ce)?0:-1,we=ct(ye,Ce)?-1:0;ye=me(ye,0,ve),Ce=me(Ce,0,we),y.state.vim.sel.head=ye,y.state.vim.sel.anchor=Ce,F=wr(y,S,A),ue.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=co(Y)),re++}),y.curOp.cursorActivity&&!F&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return F&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&Ss(y,W,!0),F}function Gi(y,S){S.off("beforeEndOperation",Gi);var A=S.state.cm.vimCmd;A&&S.execCommand(A.exec?A:A.name,A.args),S.curOp=S.prevOp}var or=e("../range").Range,Ts=e("../lib/event_emitter").EventEmitter,Kr=e("../lib/dom"),ua=e("../lib/oop"),ha=e("../lib/keys"),qo=e("../lib/event"),Yi=e("../search").Search,Ao=e("../lib/useragent"),Go=e("../search_highlight").SearchHighlight,uo=e("../commands/multi_select_commands"),da=e("../mode/text").Mode.prototype.tokenRe,ho=e("../ext/hardwrap").hardWrap;e("../multi_select");var Be=function(y){this.ace=y,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};Be.Pos=function(y,S){if(!(this instanceof Ne))return new Ne(y,S);this.line=y,this.ch=S},Be.defineOption=function(y,S,A){},Be.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
|
|
1400
|
+
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},Be.keyMap={},Be.addClass=Be.rmClass=function(){},Be.e_stop=Be.e_preventDefault=qo.stopEvent,Be.keyName=function(y){var S=ha[y.keyCode]||y.key||"";return S.length==1&&(S=S.toUpperCase()),S=qo.getModifierString(y).replace(/(^|-)\w/g,function(A){return A.toUpperCase()})+S,S},Be.keyMap.default=function(y){return function(S){var A=S.ace.commands.commandKeyBinding[y.toLowerCase()];return A&&S.ace.execCommand(A)!==!1}},Be.lookupKey=function y(S,A,F){A||(A="default"),typeof A=="string"&&(A=Be.keyMap[A]||Be.keyMap.default);var W=typeof A=="function"?A(S):A[S];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&F(W))return"handled";if(A.fallthrough){if(!Array.isArray(A.fallthrough))return y(S,A.fallthrough,F);for(var j=0;j<A.fallthrough.length;j++){var K=y(S,A.fallthrough[j],F);if(K)return K}}},Be.findMatchingTag=function(y,S){return y.findMatchingTag(S)},Be.findEnclosingTag=function(y,S){},Be.signal=function(y,S,A){return y._signal(S,A)},Be.on=qo.addListener,Be.off=qo.removeListener,Be.isWordChar=function(y){return y<""?/^\w$/.test(y):(da.lastIndex=0,da.test(y))},(function(){ua.implement(Be.prototype,Ts),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(A){this.$lineHandleChanges&&this.$lineHandleChanges.push(A);var F={text:A.action[0]=="i"?A.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=F:W.lastChange=W.change=F,this.$updateMarkers(A)},this.onSelectionChange=function(){var A=this.curOp=this.curOp||{};A.cursorActivityHandlers||(A.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(uo.keyboardHandler)},this.operation=function(A,F){if(!F&&this.curOp||F&&this.curOp&&this.curOp.force)return A();if((F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var j=this.curOp=this.curOp||{};this.curOp.force=F;var K=A();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!j.cursorActivity&&!j.lastChange&&W&&(this.ace.prevOp=W)),(F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),K},this.onBeforeEndOperation=function(){var A=this.curOp;A&&(A.change&&this.signal("change",A.change,A),A&&A.cursorActivity&&this.signal("cursorActivity",null,A),this.curOp=null)},this.signal=function(A,F,W){var j=W?W[A+"Handlers"]:(this._eventRegistry||{})[A];if(j){j=j.slice();for(var K=0;K<j.length;K++)j[K](this,F)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(A,F){typeof A=="object"&&(F=A.ch,A=A.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:A,column:F}),this.ace.selection.moveTo(A,F),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(A){var F=this.ace.selection,W=A=="anchor"?F.isEmpty()?F.lead:F.anchor:A=="head"||!A?F.lead:F.getRange()[A];return g(W)},this.listSelections=function(A){var F=this.ace.multiSelect.rangeList.ranges;return!F.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:F.map(function(W){return{anchor:this.clipPos(g(W.cursor==W.end?W.start:W.end)),head:this.clipPos(g(W.cursor))}},this)},this.setSelections=function(A,F){var W=this.ace.multiSelect,j=A.map(function(re){var ue=p(re.anchor),ye=p(re.head),Ce=or.comparePoints(ue,ye)<0?new or.fromPoints(ue,ye):new or.fromPoints(ye,ue);return Ce.cursor=or.comparePoints(Ce.start,ye)?Ce.end:Ce.start,Ce});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(j[0]);return}F?j[F]&&j.push(j.splice(F,1)[0]):j=j.reverse(),W.toSingleRange(j[0].clone());for(var K=this.ace.session,Y=0;Y<j.length;Y++){var Z=K.$clipRangeToDocument(j[Y]);W.addRange(Z)}},this.setSelection=function(A,F,W){var j=this.ace.selection;j.moveTo(A.line,A.ch),j.selectTo(F.line,F.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(A){return!this.ace.selection.isEmpty()},this.clipPos=function(A){var F=this.ace.session.$clipPositionToDocument(A.line,A.ch);return g(F)},this.foldCode=function(A){this.ace.session.$toggleFoldWidget(A.line,{})},this.markText=function(A){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(A){var F=A.action=="insert",W=A.start,j=A.end,K=(j.row-W.row)*(F?1:-1),Y=(j.column-W.column)*(F?1:-1);F&&(j=W);for(var Z in this.marks){var re=this.marks[Z],ue=or.comparePoints(re,W);if(!(ue<0)){if(ue===0&&F)if(!re.$insertRight)ue=1;else{if(re.bias!=1){re.bias=-1;continue}ue=1}var ye=F?ue:or.comparePoints(re,j);if(ye>0){re.row+=K,re.column+=re.row==j.row?Y:0;continue}!F&&ye<=0&&(re.row=W.row,re.column=W.column,ye===0&&(re.bias=1))}}};var y=function(A,F,W,j){this.cm=A,this.id=F,this.row=W,this.column=j,A.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return g(this)},this.setBookmark=function(A,F){var W=new y(this,this.$uid++,A.line,A.ch);return(!F||!F.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(A,F){if(F=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,A)}},this.findPosV=function(A,F,W,j){if(W=="page"){var K=this.ace.renderer,Y=K.layerConfig;F*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(A.line,A.ch);j!=null&&(Z.column=j),Z.row+=F,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return g(re)}debugger},this.charCoords=function(A,F){if(F=="div"||!F){var W=this.ace.session.documentToScreenPosition(A.line,A.ch);return{left:W.column,top:W.row}}if(F=="local"){var j=this.ace.renderer,W=this.ace.session.documentToScreenPosition(A.line,A.ch),K=j.layerConfig.lineHeight,Y=j.layerConfig.characterWidth,Z=K*W.row;return{left:W.column*Y,top:Z,bottom:Z+K}}},this.coordsChar=function(A,F){var W=this.ace.renderer;if(F=="local"){var j=Math.max(0,Math.floor(A.top/W.lineHeight)),K=Math.max(0,Math.floor(A.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(j,K);return g(Y)}if(F=="div")throw"not implemented"},this.getSearchCursor=function(A,F,W){var j=!1,K=!1;A instanceof RegExp&&!A.global&&(j=!A.ignoreCase,A=A.source,K=!0),A=="\\n"&&(A=`
|
|
1401
|
+
`,K=!1);var Y=new Yi;F.ch==null&&(F.ch=Number.MAX_VALUE);var Z={row:F.line,column:F.ch},re=this,ue=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ye){Y.setOptions({needle:A,caseSensitive:j,wrap:!1,backwards:ye,regExp:K,start:ue||Z});var Ce=Y.find(re.ace.session);return ue=Ce,ue&&[!ue.isEmpty()]},from:function(){return ue&&g(ue.start)},to:function(){return ue&&g(ue.end)},replace:function(ye){ue&&(ue.end=re.ace.session.doc.replace(ue,ye))}}},this.scrollTo=function(A,F){var W=this.ace.renderer,j=W.layerConfig,K=j.maxHeight;K-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,F!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(F,K))),A!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(A,j.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(A,F){if(A){var W=this.ace.renderer,j={top:0,bottom:F};W.scrollCursorIntoView(p(A),W.lineHeight*2/W.$size.scrollerHeight,j)}},this.getLine=function(A){return this.ace.session.getLine(A)},this.getRange=function(A,F){return this.ace.session.getTextRange(new or(A.line,A.ch,F.line,F.ch))},this.replaceRange=function(A,F,W){W||(W=F);var j=new or(F.line,F.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(j),this.ace.session.replace(j,A)},this.replaceSelection=this.replaceSelections=function(A){var F=Array.isArray(A)&&A,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),F?A[0]||"":A);return}W.inVirtualSelectionMode=!0;var j=W.rangeList.ranges;j.length||(j=[this.ace.multiSelect.getRange()]);for(var K=j.length;K--;)this.ace.session.replace(j[K],F?A[K]||"":A);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(A){return this.getRange(A.anchor,A.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var S={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(A,F){switch(this.state[A]=F,A){case"indentWithTabs":A=S[A],F=!F;break;case"keyMap":this.state.$keyMap=F;return;default:A=S[A]}A&&this.ace.setOption(A,F)},this.getOption=function(A){var F,W=S[A];switch(W&&(F=this.ace.getOption(W)),A){case"indentWithTabs":return A=S[A],!F;case"keyMap":return this.state.$keyMap||"vim"}return W?F:this.state[A]},this.toggleOverwrite=function(A){return this.state.overwrite=A,this.ace.setOverwrite(A)},this.addOverlay=function(A){if(!this.$searchHighlight||!this.$searchHighlight.session){var F=new Go(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(F);F.id=W.id,F.session=this.ace.session,F.destroy=function(K){F.session.off("change",F.updateOnChange),F.session.off("changeEditor",F.destroy),F.session.removeMarker(F.id),F.session=null},F.updateOnChange=function(K){var Y=K.start.row;Y==K.end.row?F.cache[Y]=void 0:F.cache.splice(Y,F.cache.length)},F.session.on("changeEditor",F.destroy),F.session.on("change",F.updateOnChange)}var j=new RegExp(A.query.source,"gmi");this.$searchHighlight=A.highlight=F,this.$searchHighlight.setRegexp(j),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(A){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var A=this.ace.renderer,F=A.layerConfig;return{left:A.scrollLeft,top:A.scrollTop,height:F.maxHeight,width:F.width,clientHeight:F.height,clientWidth:F.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(A){return this.ace.setValue(A,-1)},this.getTokenTypeAt=function(A){var F=this.ace.session.getTokenAt(A.line,A.ch);return F&&/comment|string/.test(F.type)?"string":""},this.findMatchingBracket=function(A){var F=this.ace.session.findMatchingBracket(p(A));return{to:F&&g(F)}},this.findMatchingTag=function(A){var F=this.ace.session.getMatchingTags(p(A));if(F)return{open:{from:g(F.openTag.start),to:g(F.openTag.end)},close:{from:g(F.closeTag.start),to:g(F.closeTag.end)}}},this.indentLine=function(A,F){F===!0?this.ace.session.indentRows(A,A," "):F===!1&&this.ace.session.outdentRows(new or(A,0,A,0))},this.indexFromPos=function(A){return this.ace.session.doc.positionToIndex(p(A))},this.posFromIndex=function(A){return g(this.ace.session.doc.indexToPosition(A))},this.focus=function(A){return this.ace.textInput.focus()},this.blur=function(A){return this.ace.blur()},this.defaultTextHeight=function(A){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(A,F,W,j){var K=j.bracketRegex.source,Y=/paren|text|operator|tag/;if(F==1)var Z=this.ace.session.$findClosingBracket(K.slice(1,2),p(A),Y);else{var Z=this.ace.session.$findOpeningBracket(K.slice(-2,-1),{row:A.line,column:A.ch+1},Y);!Z&&j.bracketRegex&&j.bracketRegex.test(this.getLine(A.line)[A.ch-1])&&(Z={row:A.line,column:A.ch-1})}return Z&&{pos:g(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(A){if(Be.commands.hasOwnProperty(A))return Be.commands[A](this);if(A=="indentAuto")return this.ace.execCommand("autoindent");console.log(A+" is not implemented")},this.getLineNumber=function(A){var F=this.$lineHandleChanges;if(!F)return null;for(var W=A.row,j=0;j<F.length;j++){var K=F[j];if(K.start.row!=K.end.row){if(K.action[0]=="i")K.start.row<W&&(W+=K.end.row-K.start.row);else if(K.start.row<W){if(W<K.end.row||W==K.end.row&&K.start.column>0)return null;W-=K.end.row-K.start.row}}}return W},this.getLineHandle=function(A){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(A),row:A}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var A=this.ace.session.$undoManager;if(A&&A.$lastDelta)return g(A.$lastDelta.end)}}).call(Be.prototype);var Es=Be.StringStream=function(y,S){this.pos=this.start=0,this.string=y,this.tabSize=S||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Es.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(y){var S=this.string.charAt(this.pos);if(typeof y=="string")var A=S==y;else var A=S&&(y.test?y.test(S):y(S));if(A)return++this.pos,S},eatWhile:function(y){for(var S=this.pos;this.eat(y););return this.pos>S},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var S=this.string.indexOf(y,this.pos);if(S>-1)return this.pos=S,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,S,A){if(typeof y!="string"){var F=this.string.slice(this.pos).match(y);return F&&F.index>0?null:(F&&S!==!1&&(this.pos+=F[0].length),F)}var W=function(K){return A?K.toLowerCase():K},j=this.string.substr(this.pos,y.length);if(W(j)==W(y))return S!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,S){this.lineStart+=y;try{return S()}finally{this.lineStart-=y}}},Be.defineExtension=function(y,S){Be.prototype[y]=S},Kr.importCssString(`.normal-mode .ace_cursor{
|
|
1402
|
+
border: none;
|
|
1403
|
+
background-color: rgba(255,0,0,0.5);
|
|
1404
|
+
}
|
|
1405
|
+
.normal-mode .ace_hidden-cursors .ace_cursor{
|
|
1406
|
+
background-color: transparent;
|
|
1407
|
+
border: 1px solid red;
|
|
1408
|
+
opacity: 0.7
|
|
1409
|
+
}
|
|
1410
|
+
.ace_dialog {
|
|
1411
|
+
position: absolute;
|
|
1412
|
+
left: 0; right: 0;
|
|
1413
|
+
background: inherit;
|
|
1414
|
+
z-index: 15;
|
|
1415
|
+
padding: .1em .8em;
|
|
1416
|
+
overflow: hidden;
|
|
1417
|
+
color: inherit;
|
|
1418
|
+
}
|
|
1419
|
+
.ace_dialog-top {
|
|
1420
|
+
border-bottom: 1px solid #444;
|
|
1421
|
+
top: 0;
|
|
1422
|
+
}
|
|
1423
|
+
.ace_dialog-bottom {
|
|
1424
|
+
border-top: 1px solid #444;
|
|
1425
|
+
bottom: 0;
|
|
1426
|
+
}
|
|
1427
|
+
.ace_dialog input {
|
|
1428
|
+
border: none;
|
|
1429
|
+
outline: none;
|
|
1430
|
+
background: transparent;
|
|
1431
|
+
width: 20em;
|
|
1432
|
+
color: inherit;
|
|
1433
|
+
font-family: monospace;
|
|
1434
|
+
}`,"vimMode",!1),(function(){function y(A,F,W){var j=A.ace.container,K;return K=j.appendChild(document.createElement("div")),W?K.className="ace_dialog ace_dialog-bottom":K.className="ace_dialog ace_dialog-top",typeof F=="string"?K.innerHTML=F:K.appendChild(F),K}function S(A,F){A.state.currentNotificationClose&&A.state.currentNotificationClose(),A.state.currentNotificationClose=F}Be.defineExtension("openDialog",function(A,F,W){function j(ye){if(typeof ye=="string")re.value=ye;else{if(Y||ye&&ye.type=="blur"&&document.activeElement===re)return;Z.state.dialog==K&&(Z.state.dialog=null,Z.focus()),Y=!0,K.remove(),W.onClose&&W.onClose(K);var Ce=Z;Ce.state.vim&&(Ce.state.vim.status=null,Ce.ace._signal("changeStatus"),Ce.ace.renderer.$loop.schedule(Ce.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),S(this,null);var K=y(this,A,W.bottom),Y=!1,Z=this;this.state.dialog=K;var re=K.getElementsByTagName("input")[0],ue;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&Be.on(re,"input",function(ye){W.onInput(ye,re.value,j)}),W.onKeyUp&&Be.on(re,"keyup",function(ye){W.onKeyUp(ye,re.value,j)}),Be.on(re,"keydown",function(ye){W&&W.onKeyDown&&W.onKeyDown(ye,re.value,j)||(ye.keyCode==13&&F(re.value),(ye.keyCode==27||W.closeOnEnter!==!1&&ye.keyCode==13)&&(Be.e_stop(ye),j()))}),W.closeOnBlur!==!1&&Be.on(re,"blur",j),re.focus()):(ue=K.getElementsByTagName("button")[0])&&(Be.on(ue,"click",function(){j(),Z.focus()}),W.closeOnBlur!==!1&&Be.on(ue,"blur",j),ue.focus()),j}}),Be.defineExtension("openNotification",function(A,F){function W(){K||(K=!0,clearTimeout(Y),j.remove())}if(!this.virtualSelectionMode()){S(this,W);var j=y(this,A,F&&F.bottom),K=!1,Y,Z=F&&typeof F.duration<"u"?F.duration:5e3;return Be.on(j,"click",function(re){Be.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})})();var Ne=Be.Pos,Ln=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],_o=Ln.length,Xi=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],On=O(""),fa=/[\d]/,So=[Be.isWordChar,function(y){return y&&!Be.isWordChar(y)&&!/\s/.test(y)}],Ei=[function(y){return/\S/.test(y)}],fo=["<",">"],Is=["-",'"',".",":","_","/","+"],tn=/^\w$/,st;try{st=new RegExp("^[\\p{Lu}]$","u")}catch{st=/^[A-Z]$/}var Ut={};N("filetype",void 0,"string",["ft"],function(y,S){if(S!==void 0){if(y===void 0){var A=S.getOption("mode");return A=="null"?"":A}var A=y==""?"null":y;S.setOption("mode",A)}}),N("textwidth",80,"number",["tw"],function(y,S){if(S!==void 0){if(y===void 0){var A=S.getOption("textwidth");return A}var F=Math.round(y);F>1&&S.setOption("textwidth",F)}});var Ii=function(){function y(Z,re,ue){function ye(Oe){var Re=++W%F,Ve=Y[Re];Ve&&Ve.clear(),Y[Re]=Z.setBookmark(Oe)}var Ce=W%F,ve=Y[Ce];if(ve){var we=ve.find();we&&!it(we,re)&&ye(re)}else ye(re);ye(ue),j=W,K=W-F+1,K<0&&(K=0)}function S(Z,re){W+=re,W>j?W=j:W<K&&(W=K);var ue=Y[(F+W)%F];if(ue&&!ue.find()){var ye=re>0?1:-1,Ce,ve=Z.getCursor();do if(W+=ye,ue=Y[(F+W)%F],ue&&(Ce=ue.find())&&!it(ve,Ce))break;while(W<j&&W>K)}return ue}function A(Z,re){var ue=W,ye=S(Z,re);return W=ue,ye&&ye.find()}var F=100,W=-1,j=0,K=0,Y=new Array(F);return{cachedCursor:void 0,add:y,find:A,move:S}},Pn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=je.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,S){var A=je.registerController.getRegister(S);if(A){if(A.clear(),this.latestRegister=S,y.openDialog){var F=Vr("span",{class:"cm-vim-message"},"recording @"+S);this.onRecordingDone=y.openDialog(F,null,{bottom:!0})}this.isRecording=!0}}};var je,yn,bt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return je.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return je},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:Uo,map:function(y,S,A){Lr.map(y,S,A)},unmap:function(y,S){return Lr.unmap(y,S)},noremap:function(y,S,A){Lr.map(y,S,A,!0)},mapclear:function(y){var S=Ln.length,A=_o,F=Ln.slice(0,S-A);if(Ln=Ln.slice(S-A),y)for(var W=F.length-1;W>=0;W--){var j=F[W];if(y!==j.context)if(j.context)this._mapCommand(j);else{var K=["normal","insert","visual"];for(var Y in K)if(K[Y]!==y){var Z={};for(var re in j)Z[re]=j[re];Z.context=K[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:z,setOption:M,getOption:_,defineOption:N,defineEx:function(y,S,A){if(!S)S=y;else if(y.indexOf(S)!==0)throw new Error('(Vim.defineEx) "'+S+'" is not a prefix of "'+y+'", command not registered');sr[y]=A,Lr.commandMap_[S]={name:y,shortName:S,type:"api"}},handleKey:function(y,S,A){var F=this.findKey(y,S,A);if(typeof F=="function")return F()},multiSelectHandleKey:Ko,findKey:function(y,S,A){function F(){var re=je.macroModeState;if(re.isRecording){if(S=="q")return re.exitMacroRecordMode(),k(y),!0;A!="mapping"&&As(re,S)}}function W(){if(S=="<Esc>"){if(Y.visualMode)pn(y);else{if(!Y.insertMode)return;br(y)}return k(y),!0}}function j(){if(W())return!0;Y.inputState.keyBuffer.push(S);var re=Y.inputState.keyBuffer.join(""),ue=S.length==1,ye=yi.matchCommand(re,Ln,Y.inputState,"insert"),Ce=Y.inputState.changeQueue;if(ye.type=="none")return k(y),!1;if(ye.type=="partial"){if(ye.expectLiteralNext&&(Y.expectLiteralNext=!0),yn&&window.clearTimeout(yn),yn=ue&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&k(y)},_("insertModeEscKeysTimeout")),ue){var ve=y.listSelections();(!Ce||Ce.removed.length!=ve.length)&&(Ce=Y.inputState.changeQueue=new R),Ce.inserted+=S;for(var we=0;we<ve.length;we++){var Oe=et(ve[we].anchor,ve[we].head),Re=Bt(ve[we].anchor,ve[we].head),Ve=y.getRange(Oe,y.state.overwrite?me(Re,0,1):Re);Ce.removed[we]=(Ce.removed[we]||"")+Ve}}return!ue}if(Y.expectLiteralNext=!1,yn&&window.clearTimeout(yn),ye.command&&Ce){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var at=ve[we].head;y.replaceRange(Ce.removed[we]||"",me(at,0,-Ce.inserted.length),at,"+input")}je.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||k(y),ye.command}function K(){if(F()||W())return!0;Y.inputState.keyBuffer.push(S);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ue=/^(\d*)(.*)$/.exec(re);if(!ue)return k(y),!1;var ye=Y.visualMode?"visual":"normal",Ce=ue[2]||ue[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==Ce&&(Ce=Y.inputState.operatorShortcut);var ve=yi.matchCommand(Ce,Ln,Y.inputState,ye);return ve.type=="none"?(k(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(k(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ue=/^(\d*)(.*)$/.exec(re),ue[1]&&ue[1]!="0"&&Y.inputState.pushRepeatDigit(ue[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=j():Z=K(),Z===!1?!Y.insertMode&&S.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?E(y,Z.toKeys,Z):yi.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),bt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,S){Lr.processCommand(y,S)},defineMotion:ee,defineAction:ce,defineOperator:ne,mapCommand:Cs,_mapCommand:jo,defineRegister:U,exitVisualMode:pn,exitInsertMode:br},Ir=[],Ri=!1,Nt,Rr={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Yn={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Zi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Rr)).forEach(function(y){Zi[(Rr[y]||"").toLowerCase()]=Zi[y.toLowerCase()]=y}),N("langmap",void 0,"string",["lmap"],function(y,S){if(y===void 0)return On.string;P(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,S,A){this.keyBuffer=[y||""],this.linewise=!!S,this.blockwise=!!A},pushText:function(y,S){S&&(this.linewise||this.keyBuffer.push(`
|
|
1435
|
+
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Pn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},q.prototype={pushText:function(y,S,A,F,W){if(y!=="_"){F&&A.charAt(A.length-1)!==`
|
|
1436
|
+
`&&(A+=`
|
|
1437
|
+
`);var j=this.isValidRegister(y)?this.getRegister(y):null;if(!j){switch(S){case"yank":this.registers[0]=new B(A,F,W);break;case"delete":case"change":A.indexOf(`
|
|
1438
|
+
`)==-1?this.registers["-"]=new B(A,F):(this.shiftNumericRegisters_(),this.registers[1]=new B(A,F))}this.unnamedRegister.setText(A,F,W);return}var K=s(y);K?j.pushText(A,F):j.setText(A,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(A),this.unnamedRegister.setText(j.toString(),F)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,Is)||tn.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,S){var A=this.historyBuffer,F=S?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+F;S?W>=0:W<A.length;W+=F)for(var j=A[W],K=0;K<=j.length;K++)if(this.initialPrefix==j.substring(0,K))return this.iterator=W,j;if(W>=A.length)return this.iterator=A.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var S=this.historyBuffer.indexOf(y);S>-1&&this.historyBuffer.splice(S,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var yi={matchCommand:function(y,S,A,F){var W=$e(y,S,F,A);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var j,K=0;K<W.full.length;K++){var Y=W.full[K];j||(j=Y)}if(j.keys.slice(-11)=="<character>"||j.keys.slice(-10)=="<register>"){var Z=Te(y);if(!Z||Z.length>1)return{type:"clear"};A.selectedCharacter=Z}return{type:"full",command:j}},processCommand:function(y,S,A){switch(S.inputState.repeatOverride=A.repeatOverride,A.type){case"motion":this.processMotion(y,S,A);break;case"operator":this.processOperator(y,S,A);break;case"operatorMotion":this.processOperatorMotion(y,S,A);break;case"action":this.processAction(y,S,A);break;case"search":this.processSearch(y,S,A);break;case"ex":case"keyToEx":this.processEx(y,S,A);break}},processMotion:function(y,S,A){S.inputState.motion=A.motion,S.inputState.motionArgs=de(A.motionArgs),this.evalInput(y,S)},processOperator:function(y,S,A){var F=S.inputState;if(F.operator){if(F.operator==A.operator){F.motion="expandToLine",F.motionArgs={linewise:!0},this.evalInput(y,S);return}k(y)}F.operator=A.operator,F.operatorArgs=de(A.operatorArgs),A.keys.length>1&&(F.operatorShortcut=A.keys),A.exitVisualBlock&&(S.visualBlock=!1,En(y)),S.visualMode&&this.evalInput(y,S)},processOperatorMotion:function(y,S,A){var F=S.visualMode,W=de(A.operatorMotionArgs);W&&F&&W.visualLine&&(S.visualLine=!0),this.processOperator(y,S,A),F||this.processMotion(y,S,A)},processAction:function(y,S,A){var F=S.inputState,W=F.getRepeat(),j=!!W,K=de(A.actionArgs)||{};F.selectedCharacter&&(K.selectedCharacter=F.selectedCharacter),A.operator&&this.processOperator(y,S,A),A.motion&&this.processMotion(y,S,A),(A.motion||A.operator)&&this.evalInput(y,S),K.repeat=W||1,K.repeatIsExplicit=j,K.registerName=F.registerName,k(y),S.lastMotion=null,A.isEdit&&this.recordLastEdit(S,F,A),Wn[A.action](y,K,S)},processSearch:function(y,S,A){function F(Re,Ve,at){je.searchHistoryController.pushInput(Re),je.searchHistoryController.reset();try{We(y,Re,Ve,at)}catch{It(y,"Invalid regex: "+Re),k(y);return}yi.processMotion(y,S,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:A.searchArgs.toJumplist}})}function W(Re){F(Re,!0,!0);var Ve=je.macroModeState;Ve.isRecording&&_s(Ve,Re)}function j(Re,Ve,at){var Xe=z(Re),Je,kn;Xe=="<Up>"||Xe=="<Down>"?(Je=Xe=="<Up>",kn=Re.target?Re.target.selectionEnd:0,Ve=je.searchHistoryController.nextMatch(Ve,Je)||"",at(Ve),kn&&Re.target&&(Re.target.selectionEnd=Re.target.selectionStart=Math.min(kn,Re.target.value.length))):Xe&&Xe!="<Left>"&&Xe!="<Right>"&&je.searchHistoryController.reset();var xt;try{xt=We(y,Ve,!0,!0)}catch{}xt?y.scrollIntoView(zt(y,!Y,xt),30):(Un(y),y.scrollTo(ye.left,ye.top))}function K(Re,Ve,at){var Xe=z(Re);Xe=="<Esc>"||Xe=="<C-c>"||Xe=="<C-[>"||Xe=="<BS>"&&Ve==""?(je.searchHistoryController.pushInput(Ve),je.searchHistoryController.reset(),We(y,ue),Un(y),y.scrollTo(ye.left,ye.top),Be.e_stop(Re),k(y),at(),y.focus()):Xe=="<Up>"||Xe=="<Down>"?Be.e_stop(Re):Xe=="<C-u>"&&(Be.e_stop(Re),at(""))}if(y.getSearchCursor){var Y=A.searchArgs.forward,Z=A.searchArgs.wholeWordOnly;Rn(y).setReversed(!Y);var re=Y?"/":"?",ue=Rn(y).getQuery(),ye=y.getScrollInfo();switch(A.searchArgs.querySrc){case"prompt":var Ce=je.macroModeState;if(Ce.isPlaying){var Oe=Ce.replaySearchQueries.shift();F(Oe,!0,!1)}else dr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:j,onKeyDown:K});break;case"wordUnderCursor":var ve=cn(y,{noSymbol:!0}),we=!0;if(ve||(ve=cn(y,{noSymbol:!1}),we=!1),!ve){It(y,"No word under cursor"),k(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=An(Oe),je.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,S,A){function F(j){je.exCommandHistoryController.pushInput(j),je.exCommandHistoryController.reset(),Lr.processCommand(y,j),y.state.vim&&k(y)}function W(j,K,Y){var Z=z(j),re,ue;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&K=="")&&(je.exCommandHistoryController.pushInput(K),je.exCommandHistoryController.reset(),Be.e_stop(j),k(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(Be.e_stop(j),re=Z=="<Up>",ue=j.target?j.target.selectionEnd:0,K=je.exCommandHistoryController.nextMatch(K,re)||"",Y(K),ue&&j.target&&(j.target.selectionEnd=j.target.selectionStart=Math.min(ue,j.target.value.length))):Z=="<C-u>"?(Be.e_stop(j),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&je.exCommandHistoryController.reset()}A.type=="keyToEx"?Lr.processCommand(y,A.exArgs.input):S.visualMode?dr(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):dr(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,S){var A=S.inputState,F=A.motion,W=A.motionArgs||{},j=A.operator,K=A.operatorArgs||{},Y=A.registerName,Z=S.sel,re=qe(S.visualMode?se(y,Z.head):y.getCursor("head")),ue=qe(S.visualMode?se(y,Z.anchor):y.getCursor("anchor")),ye=qe(re),Ce=qe(ue),ve,we,Oe;if(j&&this.recordLastEdit(S,A),A.repeatOverride!==void 0?Oe=A.repeatOverride:Oe=A.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),A.selectedCharacter&&(W.selectedCharacter=K.selectedCharacter=A.selectedCharacter),W.repeat=Oe,k(y),F){var Re=_n[F](y,re,W,S,A);if(S.lastMotion=_n[F],!Re)return;if(W.toJumplist){!j&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=je.jumpList,at=Ve.cachedCursor;at?(jr(y,at,Re),delete Ve.cachedCursor):jr(y,re,Re)}Re instanceof Array?(we=Re[0],ve=Re[1]):ve=Re,ve||(ve=qe(re)),S.visualMode?((!S.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,ye)),we&&(we=se(y,we)),we=we||Ce,Z.anchor=we,Z.head=ve,En(y),Ur(y,S,"<",ct(we,ve)?we:ve),Ur(y,S,">",ct(we,ve)?ve:we)):j||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,ye),y.setCursor(ve.line,ve.ch))}if(j){if(K.lastSel){we=Ce;var Xe=K.lastSel,Je=Math.abs(Xe.head.line-Xe.anchor.line),kn=Math.abs(Xe.head.ch-Xe.anchor.ch);Xe.visualLine?ve=new Ne(Ce.line+Je,Ce.ch):Xe.visualBlock?ve=new Ne(Ce.line+Je,Ce.ch+kn):Xe.head.line==Xe.anchor.line?ve=new Ne(Ce.line,Ce.ch+kn):ve=new Ne(Ce.line+Je,Ce.ch),S.visualMode=!0,S.visualLine=Xe.visualLine,S.visualBlock=Xe.visualBlock,Z=S.sel={anchor:we,head:ve},En(y)}else S.visualMode&&(K.lastSel={anchor:qe(Z.anchor),head:qe(Z.head),visualBlock:S.visualBlock,visualLine:S.visualLine});var xt,Gt,Tt,Ct,Xn;if(S.visualMode){xt=et(Z.head,Z.anchor),Gt=Bt(Z.head,Z.anchor),Tt=S.visualLine||K.linewise,Ct=S.visualBlock?"block":Tt?"line":"char";var ar=w(y,xt,Gt);if(Xn=jn(y,{anchor:ar.start,head:ar.end},Ct),Tt){var Sn=Xn.ranges;if(Ct=="block")for(var V=0;V<Sn.length;V++)Sn[V].head.ch=At(y,Sn[V].head.line);else Ct=="line"&&(Sn[0].head=new Ne(Sn[0].head.line+1,0))}}else{if(xt=qe(we||Ce),Gt=qe(ve||ye),ct(Gt,xt)){var X=xt;xt=Gt,Gt=X}Tt=W.linewise||K.linewise,Tt?In(y,xt,Gt):W.forward&&Dn(y,xt,Gt),Ct="char";var ie=!W.inclusive||Tt,ar=w(y,xt,Gt);Xn=jn(y,{anchor:ar.start,head:ar.end},Ct,ie)}y.setSelections(Xn.ranges,Xn.primary),S.lastMotion=null,K.repeat=Oe,K.registerName=Y,K.linewise=Tt;var oe=Yo[j](y,K,Xn.ranges,Ce,ve);S.visualMode&&pn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,S,A){var F=je.macroModeState;F.isPlaying||(y.lastEditInputState=S,y.lastEditActionCommand=A,F.lastInsertModeChanges.changes=[],F.lastInsertModeChanges.expectCursorActivityForChange=!1,F.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},_n={moveToTopLine:function(y,S,A){var F=Fn(y).top+A.repeat-1;return new Ne(F,qt(y.getLine(F)))},moveToMiddleLine:function(y){var S=Fn(y),A=Math.floor((S.top+S.bottom)*.5);return new Ne(A,qt(y.getLine(A)))},moveToBottomLine:function(y,S,A){var F=Fn(y).bottom-A.repeat+1;return new Ne(F,qt(y.getLine(F)))},expandToLine:function(y,S,A){var F=S;return new Ne(F.line+A.repeat-1,1/0)},findNext:function(y,S,A){var F=Rn(y),W=F.getQuery();if(W){var j=!A.forward;return j=F.isReversed()?!j:j,Ot(y,W),zt(y,j,W,A.repeat)}},findAndSelectNextInclusive:function(y,S,A,F,W){var j=Rn(y),K=j.getQuery();if(K){var Y=!A.forward;Y=j.isReversed()?!Y:Y;var Z=Yt(y,Y,K,A.repeat,F);if(Z){if(W.operator)return Z;var re=Z[0],ue=new Ne(Z[1].line,Z[1].ch-1);if(F.visualMode){(F.visualLine||F.visualBlock)&&(F.visualLine=!1,F.visualBlock=!1,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var ye=F.sel.anchor;if(ye)return j.isReversed()?A.forward?[ye,re]:[ye,ue]:A.forward?[ye,ue]:[ye,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ue,re]:[re,ue]}}},goToMark:function(y,S,A,F){var W=yr(y,F,A.selectedCharacter);return W?A.linewise?{line:W.line,ch:qt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,S,A,F){if(F.visualBlock&&A.sameLine){var W=F.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[F.sel.head,F.sel.anchor]},jumpToMark:function(y,S,A,F){for(var W=S,j=0;j<A.repeat;j++){var K=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=A.forward?ct(Z,K):ct(K,Z);if(!re&&!(A.linewise&&Z.line==K.line)){var ue=it(K,W),ye=A.forward?pr(K,Z,W):pr(W,Z,K);(ue||ye)&&(W=Z)}}}return A.linewise&&(W=new Ne(W.line,qt(y.getLine(W.line)))),W},moveByCharacters:function(y,S,A){var F=S,W=A.repeat,j=A.forward?F.ch+W:F.ch-W;return new Ne(F.line,j)},moveByLines:function(y,S,A,F){var W=S,j=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:j=F.lastHPos;break;default:F.lastHPos=j}var K=A.repeat+(A.repeatOffset||0),Y=A.forward?W.line+K:W.line-K,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,S,A,F);if(Y>re&&W.line==re)return Ki(y,S,A,F,!0);var ue=y.ace.session.getFoldLine(Y);return ue&&(A.forward?Y>ue.start.row&&(Y=ue.end.row+1):Y=ue.start.row),A.toFirstChar&&(j=qt(y.getLine(Y)),F.lastHPos=j),F.lastHSPos=y.charCoords(new Ne(Y,j),"div").left,new Ne(Y,j)},moveByDisplayLines:function(y,S,A,F){var W=S;switch(F.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:F.lastHSPos=y.charCoords(W,"div").left}var j=A.repeat,Z=y.findPosV(W,A.forward?j:-j,"line",F.lastHSPos);if(Z.hitSide)if(A.forward)var K=y.charCoords(Z,"div"),Y={top:K.top+8,left:F.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=F.lastHSPos,Z=y.coordsChar(re,"div")}return F.lastHPos=Z.ch,Z},moveByPage:function(y,S,A){var F=S,W=A.repeat;return y.findPosV(F,A.forward?W:-W,"page")},moveByParagraph:function(y,S,A){var F=A.forward?1:-1;return vi(y,S,A.repeat,F)},moveBySentence:function(y,S,A){var F=A.forward?1:-1;return ri(y,S,A.repeat,F)},moveByScroll:function(y,S,A,F){var W=y.getScrollInfo(),j=null,K=A.repeat;K||(K=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(S,"local");if(A.repeat=K,j=_n.moveByDisplayLines(y,S,A,F),!j)return null;var Z=y.charCoords(j,"local");return y.scrollTo(null,W.top+Z.top-Y.top),j},moveByWords:function(y,S,A){return Hn(y,S,A.repeat,!!A.forward,!!A.wordEnd,!!A.bigWord)},moveTillCharacter:function(y,S,A){var F=A.repeat,W=Hr(y,F,A.forward,A.selectedCharacter,S),j=A.forward?-1:1;return mr(j,A),W?(W.ch+=j,W):null},moveToCharacter:function(y,S,A){var F=A.repeat;return mr(0,A),Hr(y,F,A.forward,A.selectedCharacter,S)||S},moveToSymbol:function(y,S,A){var F=A.repeat;return mi(y,F,A.forward,A.selectedCharacter)||S},moveToColumn:function(y,S,A,F){var W=A.repeat;return F.lastHPos=W-1,F.lastHSPos=y.charCoords(S,"div").left,xs(y,W)},moveToEol:function(y,S,A,F){return Ki(y,S,A,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,S){var A=S;return new Ne(A.line,qt(y.getLine(A.line)))},moveToMatchedSymbol:function(y,S){for(var A=S,F=A.line,W=A.ch,j=y.getLine(F),K;W<j.length;W++)if(K=j.charAt(W),K&&c(K)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<j.length){var Z=/[<>]/.test(j[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(F,W+1),{bracketRegex:Z});return re.to}return A},moveToStartOfLine:function(y,S){return new Ne(S.line,0)},moveToLineOrEdgeOfDocument:function(y,S,A){var F=A.forward?y.lastLine():y.firstLine();return A.repeatIsExplicit&&(F=A.repeat-y.getOption("firstLineNumber")),new Ne(F,qt(y.getLine(F)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var S=y.getCursor();return S.sticky=="before"&&S.ch--,S},textObjectManipulation:function(y,S,A,F){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},j={"'":!0,'"':!0,"`":!0},K=A.selectedCharacter;K=="b"?K="(":K=="B"&&(K="{");var Y=!A.textObjectInner,Z,re;if(W[K]){if(re=!0,Z=Cn(y,S,K,Y),!Z){var ue=y.getSearchCursor(new RegExp("\\"+K,"g"),S);ue.find()&&(Z=Cn(y,ue.from(),K,Y))}}else if(j[K])re=!0,Z=vr(y,S,K,Y);else if(K==="W"||K==="w")for(var ye=A.repeat||1;ye-- >0;){var Ce=cn(y,{inclusive:Y,innerWord:!Y,bigWord:K==="W",noSymbol:K==="W",multiline:!0},Z&&Z.end);Ce&&(Z||(Z=Ce),Z.end=Ce.end)}else if(K==="p")if(Z=vi(y,S,A.repeat,0,Y),A.linewise=!0,F.visualMode)F.visualLine||(F.visualLine=!0);else{var ve=F.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(K==="t")Z=Mr(y,S,Y);else if(K==="s"){var we=y.getLine(S.line);S.ch>0&&b(we[S.ch])&&(S.ch-=1);var Oe=xo(y,S,A.repeat,1,Y),Re=xo(y,S,A.repeat,-1,Y);f(y.getLine(Re.line)[Re.ch])&&f(y.getLine(Oe.line)[Oe.ch-1])&&(Re={line:Re.line,ch:Re.ch+1}),Z={start:Re,end:Oe}}return Z?y.state.vim.visualMode?Qt(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,S,A){var F=je.lastCharacterSearch,W=A.repeat,j=A.forward===F.forward,K=(F.increment?1:0)*(j?-1:1);y.moveH(-K,"char"),A.inclusive=!!j;var Y=Hr(y,W,j,F.selectedCharacter);return Y?(Y.ch+=K,Y):(y.moveH(K,"char"),S)}},Yo={change:function(y,S,A){var F,W,j=y.state.vim,K=A[0].anchor,Y=A[0].head;if(j.visualMode)if(S.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(K,Y),W=y.getSelection(),y.replaceSelection(""),F=K;else{W=y.getSelection();var Z=ae("",A.length);y.replaceSelections(Z),F=et(A[0].head,A[0].anchor)}else{W=y.getRange(K,Y);var re=j.lastEditInputState||{};if(re.motion=="moveByWords"&&!f(W)){var ue=/\s+$/.exec(W);ue&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ue[0].length),W=W.slice(0,-ue[0].length))}S.linewise&&(K=new Ne(K.line,qt(y.getLine(K.line))),Y.line>K.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",K,Y),F=K}je.registerController.pushText(S.registerName,"change",W,S.linewise,A.length>1),Wn.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,S,A){var F,W,j=y.state.vim;if(j.visualBlock){W=y.getSelection();var K=ae("",A.length);y.replaceSelections(K),F=et(A[0].head,A[0].anchor)}else{var Y=A[0].anchor,Z=A[0].head;S.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,At(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,S.linewise&&(F=_n.moveToFirstNonWhiteSpaceCharacter(y,Y))}return je.registerController.pushText(S.registerName,"delete",W,S.linewise,j.visualBlock),se(y,F)},indent:function(y,S,A){var F=y.state.vim,W=F.visualMode?S.repeat:1;if(F.visualBlock){for(var j=y.getOption("tabSize"),K=y.getOption("indentWithTabs")?" ":" ".repeat(j),Y,Z=A.length-1;Z>=0;Z--)if(Y=et(A[Z].anchor,A[Z].head),S.indentRight)y.replaceRange(K.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ue=0,ye=0;ye<W;ye++){var Ce=re[Y.ch+ue];if(Ce==" ")ue++;else{if(Ce!=" ")break;ue++;for(var ve=1;ve<K.length&&(Ce=re[Y.ch+ue],Ce===" ");ve++)ue++}}y.replaceRange("",Y,me(Y,0,ue))}return Y}if(y.indentMore)for(var ye=0;ye<W;ye++)S.indentRight?y.indentMore():y.indentLess();else{var we=A[0].anchor.line,Oe=F.visualBlock?A[A.length-1].anchor.line:A[0].head.line;S.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var ye=0;ye<W;ye++)y.indentLine(Z,S.indentRight)}return _n.moveToFirstNonWhiteSpaceCharacter(y,A[0].anchor)},indentAuto:function(y,S,A){return y.execCommand("indentAuto"),_n.moveToFirstNonWhiteSpaceCharacter(y,A[0].anchor)},hardWrap:function(y,S,A,F,W){if(y.hardWrap){var j=A[0].anchor.line,K=A[0].head.line;S.linewise&&K--;var Y=y.hardWrap({from:j,to:K});return Y>j&&S.linewise&&Y--,S.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,S,A,F,W){for(var j=y.getSelections(),K=[],Y=S.toLower,Z=0;Z<j.length;Z++){var re=j[Z],ue="";if(Y===!0)ue=re.toLowerCase();else if(Y===!1)ue=re.toUpperCase();else for(var ye=0;ye<re.length;ye++){var Ce=re.charAt(ye);ue+=s(Ce)?Ce.toLowerCase():Ce.toUpperCase()}K.push(ue)}return y.replaceSelections(K),S.shouldMoveCursor?W:!y.state.vim.visualMode&&S.linewise&&A[0].anchor.line+1==A[0].head.line?_n.moveToFirstNonWhiteSpaceCharacter(y,F):S.linewise?F:et(A[0].anchor,A[0].head)},yank:function(y,S,A,F){var W=y.state.vim,j=y.getSelection(),K=W.visualMode?et(W.sel.anchor,W.sel.head,A[0].head,A[0].anchor):F;return je.registerController.pushText(S.registerName,"yank",j,S.linewise,W.visualBlock),K}},Wn={jumpListWalk:function(y,S,A){if(!A.visualMode){var F=S.repeat,W=S.forward,j=je.jumpList,K=j.move(y,W?F:-F),Y=K?K.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,S,A){if(!A.visualMode){var F=S.repeat||1,W=y.defaultTextHeight(),j=y.getScrollInfo().top,K=W*F,Y=S.forward?j+K:j-K,Z=qe(y.getCursor()),re=y.charCoords(Z,"local");if(S.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ue=Y+y.getScrollInfo().clientHeight;ue<re.bottom?(Z.line-=(re.bottom-ue)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,S){var A=y.getCursor().line,F=y.charCoords(new Ne(A,0),"local"),W=y.getScrollInfo().clientHeight,j=F.top;switch(S.position){case"center":j=F.bottom-W/2;break;case"bottom":var K=new Ne(A,y.getLine(A).length-1),Y=y.charCoords(K,"local"),Z=Y.bottom-j;j=j-W+Z}y.scrollTo(null,j)},replayMacro:function(y,S,A){var F=S.selectedCharacter,W=S.repeat,j=je.macroModeState;for(F=="@"?F=j.latestRegister:j.latestRegister=F;W--;)ks(y,A,j,F)},enterMacroRecordMode:function(y,S){var A=je.macroModeState,F=S.selectedCharacter;je.registerController.isValidRegister(F)&&A.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,S,A){if(!y.getOption("readOnly")){A.insertMode=!0,A.insertModeRepeat=S&&S.repeat||1;var F=S?S.insertAt:null,W=A.sel,j=S.head||y.getCursor("head"),K=y.listSelections().length;if(F=="eol")j=new Ne(j.line,At(y,j.line));else if(F=="bol")j=new Ne(j.line,0);else if(F=="charAfter"){var Y=w(y,j,me(j,0,1));j=Y.end}else if(F=="firstNonBlank"){var Y=w(y,j,_n.moveToFirstNonWhiteSpaceCharacter(y,j));j=Y.end}else if(F=="startOfSelectedArea"){if(!A.visualMode)return;A.visualBlock?(j=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?j=W.head:j=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!A.visualMode)return;A.visualBlock?(j=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?j=me(W.head,0,1):j=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(A.visualMode)return}else F=="lastEdit"&&(j=gn(y)||j);y.setOption("disableInput",!1),S&&S.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})),je.macroModeState.isPlaying||(y.on("change",Ho),A.insertEnd&&A.insertEnd.clear(),A.insertEnd=y.setBookmark(j,{insertLeft:!0}),Be.on(y.getInputField(),"keydown",ko)),A.visualMode&&pn(y),ur(y,j,K)}},toggleVisualMode:function(y,S,A){var F=S.repeat,W=y.getCursor(),j;if(A.visualMode)A.visualLine^S.linewise||A.visualBlock^S.blockwise?(A.visualLine=!!S.linewise,A.visualBlock=!!S.blockwise,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""}),En(y)):pn(y);else{A.visualMode=!0,A.visualLine=!!S.linewise,A.visualBlock=!!S.blockwise,j=se(y,new Ne(W.line,W.ch+F-1));var K=w(y,W,j);A.sel={anchor:K.start,head:K.end},Be.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""}),En(y),Ur(y,A,"<",et(W,j)),Ur(y,A,">",Bt(W,j))}},reselectLastSelection:function(y,S,A){var F=A.lastSelection;if(A.visualMode&&St(y,A),F){var W=F.anchorMark.find(),j=F.headMark.find();if(!W||!j)return;A.sel={anchor:W,head:j},A.visualMode=!0,A.visualLine=F.visualLine,A.visualBlock=F.visualBlock,En(y),Ur(y,A,"<",et(W,j)),Ur(y,A,">",Bt(W,j)),Be.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""})}},joinLines:function(y,S,A){var F,W;if(A.visualMode){if(F=y.getCursor("anchor"),W=y.getCursor("head"),ct(W,F)){var j=W;W=F,F=j}W.ch=At(y,W.line)-1}else{var K=Math.max(S.repeat,2);F=y.getCursor(),W=se(y,new Ne(F.line+K-1,1/0))}for(var Y=0,Z=F.line;Z<W.line;Z++){Y=At(y,F.line);var re="",ue=0;if(!S.keepSpaces){var ye=y.getLine(F.line+1);ue=ye.search(/\S/),ue==-1?ue=ye.length:re=" "}y.replaceRange(re,new Ne(F.line,Y),new Ne(F.line+1,ue))}var Ce=se(y,new Ne(F.line,Y));A.visualMode&&pn(y,!1),y.setCursor(Ce)},newLineAndEnterInsertMode:function(y,S,A){A.insertMode=!0;var F=qe(y.getCursor());if(F.line===y.firstLine()&&!S.after)y.replaceRange(`
|
|
1439
|
+
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=S.after?F.line:F.line-1,F.ch=At(y,F.line),y.setCursor(F);var W=Be.commands.newlineAndIndentContinueComment||Be.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:S.repeat},A)},paste:function(y,S,A){var F=this,W=je.registerController.getRegister(S.registerName),j=function(){var K=W.toString();F.continuePaste(y,S,A,K,W)};S.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(K){F.continuePaste(y,S,A,K,W)},function(){j()}):j()},continuePaste:function(y,S,A,F,W){var j=qe(y.getCursor());if(F){if(S.matchIndent){var K=y.getOption("tabSize"),Y=function(Sn){var V=Sn.split(" ").length-1,X=Sn.split(" ").length-1;return V*K+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),ue=F.replace(/\n$/,""),ye=F!==ue,Ce=Y(F.match(/^\s*/)[0]),F=ue.replace(/^\s*/gm,function(Sn){var V=re+(Y(Sn)-Ce);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/K);return Array(X+1).join(" ")}return Array(V+1).join(" ")});F+=ye?`
|
|
1440
|
+
`:""}if(S.repeat>1)var F=Array(S.repeat+1).join(F);var ve=W.linewise,we=W.blockwise;if(we){F=F.split(`
|
|
1441
|
+
`),ve&&F.pop();for(var Oe=0;Oe<F.length;Oe++)F[Oe]=F[Oe]==""?" ":F[Oe];j.ch+=S.after?1:0,j.ch=Math.min(At(y,j.line),j.ch)}else ve?A.visualMode?F=A.visualLine?F.slice(0,-1):`
|
|
1442
|
+
`+F.slice(0,F.length-1)+`
|
|
1443
|
+
`:S.after?(F=`
|
|
1444
|
+
`+F.slice(0,F.length-1),j.ch=At(y,j.line)):j.ch=0:j.ch+=S.after?1:0;var Re;if(A.visualMode){A.lastPastedText=F;var Ve,at=Ke(y,A),Xe=at[0],Je=at[1],kn=y.getSelection(),xt=y.listSelections(),Gt=new Array(xt.length).join("1").split("1");A.lastSelection&&(Ve=A.lastSelection.headMark.find()),je.registerController.unnamedRegister.setText(kn),we?(y.replaceSelections(Gt),Je=new Ne(Xe.line+F.length-1,Xe.ch),y.setCursor(Xe),fn(y,Je),y.replaceSelections(F),Re=Xe):A.visualBlock?(y.replaceSelections(Gt),y.setCursor(Xe),y.replaceRange(F,Xe,Xe),Re=Xe):(y.replaceRange(F,Xe,Je),Re=y.posFromIndex(y.indexFromPos(Xe)+F.length-1)),Ve&&(A.lastSelection.headMark=y.setBookmark(Ve)),ve&&(Re.ch=0)}else if(we){y.setCursor(j);for(var Oe=0;Oe<F.length;Oe++){var Tt=j.line+Oe;Tt>y.lastLine()&&y.replaceRange(`
|
|
1445
|
+
`,new Ne(Tt,0));var Ct=At(y,Tt);Ct<j.ch&&gr(y,Tt,j.ch)}y.setCursor(j),fn(y,new Ne(j.line+F.length-1,j.ch)),y.replaceSelections(F),Re=j}else if(y.replaceRange(F,j),ve){var Tt=S.after?j.line+1:j.line;Re=new Ne(Tt,qt(y.getLine(Tt)))}else Re=qe(j),/\n/.test(F)||(Re.ch+=F.length-(S.after?1:0));A.visualMode&&pn(y,!1),y.setCursor(Re)}},undo:function(y,S){y.operation(function(){Ze(y,Be.commands.undo,S.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,S){Ze(y,Be.commands.redo,S.repeat)()},setRegister:function(y,S,A){A.inputState.registerName=S.selectedCharacter},insertRegister:function(y,S,A){var F=S.selectedCharacter,W=je.registerController.getRegister(F),j=W&&W.toString();j&&y.replaceSelection(j)},oneNormalCommand:function(y,S,A){br(y,!0),A.insertModeReturn=!0,Be.on(y,"vim-command-done",function F(){A.visualMode||(A.insertModeReturn&&(A.insertModeReturn=!1,A.insertMode||Wn.enterInsertMode(y,{},A)),Be.off(y,"vim-command-done",F))})},setMark:function(y,S,A){var F=S.selectedCharacter;Ur(y,A,F,y.getCursor())},replace:function(y,S,A){var F=S.selectedCharacter,W=y.getCursor(),j,K,Y=y.listSelections();if(A.visualMode)W=y.getCursor("start"),K=y.getCursor("end");else{var Z=y.getLine(W.line);j=W.ch+S.repeat,j>Z.length&&(j=Z.length),K=new Ne(W.line,j)}var re=w(y,W,K);if(W=re.start,K=re.end,F==`
|
|
1446
|
+
`)A.visualMode||y.replaceRange("",W,K),(Be.commands.newlineAndIndentContinueComment||Be.commands.newlineAndIndent)(y);else{var ue=y.getRange(W,K);if(ue=ue.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ue=ue.replace(/[^\n]/g,F),A.visualBlock){var ye=new Array(y.getOption("tabSize")+1).join(" ");ue=y.getSelection(),ue=ue.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ue=ue.replace(/\t/g,ye).replace(/[^\n]/g,F).split(`
|
|
1447
|
+
`),y.replaceSelections(ue)}else y.replaceRange(ue,W,K);A.visualMode?(W=ct(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(W),pn(y,!1)):y.setCursor(me(K,0,-1))}},incrementNumberToken:function(y,S){for(var A=y.getCursor(),F=y.getLine(A.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,j,K,Y,Z;(j=W.exec(F))!==null&&(K=j.index,Y=K+j[0].length,!(A.ch<Y)););if(!(!S.backtrack&&Y<=A.ch)&&j){var re=j[2]||j[4],ue=j[3]||j[5],ye=S.increase?1:-1,Ce={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(j[1]+ue,Ce)+ye*S.repeat;Z=ve.toString(Ce);var we=re?new Array(ue.length-Z.length+1+j[1].length).join("0"):"";Z.charAt(0)==="-"?Z="-"+re+we+Z.substr(1):Z=re+we+Z;var Oe=new Ne(A.line,K),Re=new Ne(A.line,Y);y.replaceRange(Z,Oe,Re),y.setCursor(new Ne(A.line,K+Z.length-1))}},repeatLastEdit:function(y,S,A){var F=A.lastEditInputState;if(F){var W=S.repeat;W&&S.repeatIsExplicit?A.lastEditInputState.repeatOverride=W:W=A.lastEditInputState.repeatOverride||W,$s(y,A,W,!1)}},indent:function(y,S){y.indentLine(y.getCursor().line,S.indentRight)},exitInsertMode:br},bi={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},wi={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var S=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,S}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var S=y.lineText.match(/^#(\w+)/)[1];if(S==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if(S==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if(S==="else"&&y.depth===0)return!0}return!1}}};N("pcre",!0,"boolean"),Tr.prototype={getQuery:function(){return je.query},setQuery:function(y){je.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return je.isReversed},setReversed:function(y){je.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var Li={"\\n":`
|
|
1448
|
+
`,"\\r":"\r","\\t":" "},Rs={"\\/":"/","\\\\":"\\","\\n":`
|
|
1449
|
+
`,"\\r":"\r","\\t":" ","\\&":"&"},rn=0,pa=function(){this.buildCommandMap_()};pa.prototype={processCommand:function(y,S,A){var F=this;y.operation(function(){y.curOp.isVimOp=!0,F._processCommand(y,S,A)})},_processCommand:function(y,S,A){var F=y.state.vim,W=je.registerController.getRegister(":"),j=W.toString(),K=new Be.StringStream(S);W.setText(S);var Y=A||{};Y.input=S;try{this.parseInput_(y,K,Y)}catch(ue){throw It(y,ue.toString()),ue}F.visualMode&&pn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(j),this.parseCommandArgs_(K,Y,Z),Z.type=="exToKey"){E(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){It(y,'Not an editor command ":'+S+'"');return}try{sr[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ue){throw It(y,ue.toString()),ue}},parseInput_:function(y,S,A){if(S.eatWhile(":"),S.eat("%")?(A.line=y.firstLine(),A.lineEnd=y.lastLine()):(A.line=this.parseLineSpec_(y,S),A.line!==void 0&&S.eat(",")&&(A.lineEnd=this.parseLineSpec_(y,S))),A.line==null)if(y.state.vim.visualMode){var F=yr(y,y.state.vim,"<");A.selectionLine=F&&F.line,F=yr(y,y.state.vim,">"),A.selectionLineEnd=F&&F.line}else A.selectionLine=y.getCursor().line;else A.selectionLine=A.line,A.selectionLineEnd=A.lineEnd;var W=S.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?A.commandName=W[1]:A.commandName=S.match(/.*/)[0],A},parseLineSpec_:function(y,S){var A=S.match(/^(\d+)/);if(A)return parseInt(A[1],10)-1;switch(S.next()){case".":return this.parseLineSpecOffset_(S,y.getCursor().line);case"$":return this.parseLineSpecOffset_(S,y.lastLine());case"'":var F=S.next(),W=yr(y,y.state.vim,F);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(S,W.line);case"-":case"+":return S.backUp(1),this.parseLineSpecOffset_(S,y.getCursor().line);default:return S.backUp(1),void 0}},parseLineSpecOffset_:function(y,S){var A=y.match(/^([+-])?(\d+)/);if(A){var F=parseInt(A[2],10);A[1]=="-"?S-=F:S+=F}return S},parseCommandArgs_:function(y,S,A){if(!y.eol()){S.argString=y.match(/.*/)[0];var F=A.argDelimiter||/\s+/,W=tr(S.argString).split(F);W.length&&W[0]&&(S.args=W)}},matchCommand_:function(y){for(var S=y.length;S>0;S--){var A=y.substring(0,S);if(this.commandMap_[A]){var F=this.commandMap_[A];if(F.name.indexOf(y)===0)return F}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Xi.length;y++){var S=Xi[y],A=S.shortName||S.name;this.commandMap_[A]=S}},map:function(y,S,A,F){if(y!=":"&&y.charAt(0)==":"){if(A)throw Error("Mode not supported for ex mappings");var W=y.substring(1);S!=":"&&S.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:S.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:S,user:!0}}else{var j={keys:y,type:"keyToKey",toKeys:S,noremap:!!F};A&&(j.context=A),Ln.unshift(j)}},unmap:function(y,S){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var A=y.substring(1);if(this.commandMap_[A]&&this.commandMap_[A].user)return delete this.commandMap_[A],!0}else for(var F=y,W=0;W<Ln.length;W++)if(F==Ln[W].keys&&Ln[W].context===S)return Ln.splice(W,1),!0}};var sr={colorscheme:function(y,S){if(!S.args||S.args.length<1){It(y,y.getOption("theme"));return}y.setOption("theme",S.args[0])},map:function(y,S,A,F){var W=S.args;if(!W||W.length<2){y&&It(y,"Invalid mapping: "+S.input);return}Lr.map(W[0],W[1],A,F)},imap:function(y,S){this.map(y,S,"insert")},nmap:function(y,S){this.map(y,S,"normal")},vmap:function(y,S){this.map(y,S,"visual")},omap:function(y,S){this.map(y,S,"operatorPending")},noremap:function(y,S){this.map(y,S,void 0,!0)},inoremap:function(y,S){this.map(y,S,"insert",!0)},nnoremap:function(y,S){this.map(y,S,"normal",!0)},vnoremap:function(y,S){this.map(y,S,"visual",!0)},onoremap:function(y,S){this.map(y,S,"operatorPending",!0)},unmap:function(y,S,A){var F=S.args;(!F||F.length<1||!Lr.unmap(F[0],A))&&y&&It(y,"No such mapping: "+S.input)},mapclear:function(y,S){bt.mapclear()},imapclear:function(y,S){bt.mapclear("insert")},nmapclear:function(y,S){bt.mapclear("normal")},vmapclear:function(y,S){bt.mapclear("visual")},omapclear:function(y,S){bt.mapclear("operatorPending")},move:function(y,S){yi.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:S.line+1})},set:function(y,S){var A=S.args,F=S.setCfg||{};if(!A||A.length<1){y&&It(y,"Invalid mapping: "+S.input);return}var W=A[0].split("="),j=W[0],K=W[1],Y=!1,Z=!1;if(j.charAt(j.length-1)=="?"){if(K)throw Error("Trailing characters: "+S.argString);j=j.substring(0,j.length-1),Y=!0}else j.charAt(j.length-1)=="!"&&(j=j.substring(0,j.length-1),Z=!0);K===void 0&&j.substring(0,2)=="no"&&(j=j.substring(2),K=!1);var re=Ut[j]&&Ut[j].type=="boolean";if(re&&(Z?K=!_(j,y,F):K==null&&(K=!0)),!re&&K===void 0||Y){var ue=_(j,y,F);ue instanceof Error?It(y,ue.message):ue===!0||ue===!1?It(y," "+(ue?"":"no")+j):It(y," "+j+"="+ue)}else{var ye=M(j,K,y,F);ye instanceof Error&&It(y,ye.message)}},setlocal:function(y,S){S.setCfg={scope:"local"},this.set(y,S)},setglobal:function(y,S){S.setCfg={scope:"global"},this.set(y,S)},registers:function(y,S){var A=S.args,F=je.registerController.registers,W=`----------Registers----------
|
|
1450
|
+
|
|
1451
|
+
`;if(A){var j;A=A.join("");for(var K=0;K<A.length;K++)if(j=A.charAt(K),!!je.registerController.isValidRegister(j)){var Y=F[j]||new B;W+='"'+j+" "+Y.toString()+`
|
|
1452
|
+
`}}else for(var j in F){var Z=F[j].toString();Z.length&&(W+='"'+j+" "+Z+`
|
|
1453
|
+
`)}It(y,W)},sort:function(y,S){function A(){if(S.argString){var Tt=new Be.StringStream(S.argString);if(Tt.eat("!")&&(j=!0),Tt.eol())return;if(!Tt.eatSpace())return"Invalid arguments";var Ct=Tt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Ct&&!Tt.eol())return"Invalid arguments";if(Ct[1]){K=Ct[1].indexOf("i")!=-1,Y=Ct[1].indexOf("u")!=-1;var Xn=Ct[1].indexOf("d")!=-1||Ct[1].indexOf("n")!=-1&&1,ar=Ct[1].indexOf("x")!=-1&&1,Sn=Ct[1].indexOf("o")!=-1&&1;if(Xn+ar+Sn>1)return"Invalid arguments";Z=Xn&&"decimal"||ar&&"hex"||Sn&&"octal"}Ct[2]&&(re=new RegExp(Ct[2].substr(1,Ct[2].length-2),K?"i":""))}}function F(Tt,Ct){if(j){var Xn;Xn=Tt,Tt=Ct,Ct=Xn}K&&(Tt=Tt.toLowerCase(),Ct=Ct.toLowerCase());var ar=Z&&Re.exec(Tt),Sn=Z&&Re.exec(Ct);return ar?(ar=parseInt((ar[1]+ar[2]).toLowerCase(),Ve),Sn=parseInt((Sn[1]+Sn[2]).toLowerCase(),Ve),ar-Sn):Tt<Ct?-1:1}function W(Tt,Ct){if(j){var Xn;Xn=Tt,Tt=Ct,Ct=Xn}return K&&(Tt[0]=Tt[0].toLowerCase(),Ct[0]=Ct[0].toLowerCase()),Tt[0]<Ct[0]?-1:1}var j,K,Y,Z,re,ue=A();if(ue){It(y,ue+": "+S.argString);return}var ye=S.line||y.firstLine(),Ce=S.lineEnd||S.line||y.lastLine();if(ye!=Ce){var ve=new Ne(ye,0),we=new Ne(Ce,At(y,Ce)),Oe=y.getRange(ve,we).split(`
|
|
1454
|
+
`),Re=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ve=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,at=[],Xe=[];if(Z||re)for(var Je=0;Je<Oe.length;Je++){var kn=re?Oe[Je].match(re):null;kn&&kn[0]!=""?at.push(kn):!re&&Re.exec(Oe[Je])?at.push(Oe[Je]):Xe.push(Oe[Je])}else Xe=Oe;if(at.sort(re?W:F),re)for(var Je=0;Je<at.length;Je++)at[Je]=at[Je].input;else Z||Xe.sort(F);if(Oe=j?at.concat(Xe):Xe.concat(at),Y){var xt=Oe,Gt;Oe=[];for(var Je=0;Je<xt.length;Je++)xt[Je]!=Gt&&Oe.push(xt[Je]),Gt=xt[Je]}y.replaceRange(Oe.join(`
|
|
1455
|
+
`),ve,we)}},vglobal:function(y,S){this.global(y,S)},normal:function(y,S){var A=S.argString;if(A&&A[0]=="!"&&(A=A.slice(1),Ri=!0),A=A.trimStart(),!A){It(y,"Argument is required.");return}var F=S.line;if(typeof F=="number")for(var W=isNaN(S.lineEnd)?F:S.lineEnd,j=F;j<=W;j++)y.setCursor(j,0),E(y,S.argString.trimStart()),y.state.vim.insertMode&&br(y,!0);else E(y,S.argString.trimStart()),y.state.vim.insertMode&&br(y,!0)},global:function(y,S){var A=S.argString;if(!A){It(y,"Regular Expression missing from global");return}var F=S.commandName[0]==="v";A[0]==="!"&&S.commandName[0]==="g"&&(F=!0,A=A.slice(1));var W=S.line!==void 0?S.line:y.firstLine(),j=S.lineEnd||S.line||y.lastLine(),K=vn(A),Y=A,Z;if(K.length&&(Y=K[0],Z=K.slice(1,K.length).join("/")),Y)try{We(y,Y,!0,!0)}catch{It(y,"Invalid regex: "+Y);return}for(var re=Rn(y).getQuery(),ue=[],ye=W;ye<=j;ye++){var Ce=y.getLine(ye),ve=re.test(Ce);ve!==F&&ue.push(Z?y.getLineHandle(ye):Ce)}if(!Z){It(y,ue.join(`
|
|
1456
|
+
`));return}var we=0,Oe=function(){if(we<ue.length){var Re=ue[we++],Ve=y.getLineNumber(Re);if(Ve==null){Oe();return}var at=Ve+1+Z;Lr.processCommand(y,at,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,S){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var A=S.argString,F=A?ii(A,A[0]):[],W,j="",K,Y,Z,re=!1,ue=!1;if(F.length)W=F[0],_("pcre")&&W!==""&&(W=new RegExp(W).source),j=F[1],j!==void 0&&(_("pcre")?j=Er(j.replace(/([^\\])&/g,"$1$$&")):j=zo(j),je.lastSubstituteReplacePart=j),K=F[2]?F[2].split(" "):[];else if(A&&A.length){It(y,"Substitutions should be of the form :s/pattern/replace/");return}if(K&&(Y=K[0],Z=parseInt(K[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ue=!0),_("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{We(y,W,!0,!0)}catch{It(y,"Invalid regex: "+W);return}if(j=j||je.lastSubstituteReplacePart,j===void 0){It(y,"No previous substitute regular expression");return}var ye=Rn(y),Ce=ye.getQuery(),ve=S.line!==void 0?S.line:y.getCursor().line,we=S.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Re=y.getSearchCursor(Ce,Oe);qi(y,re,ue,ve,we,Re,Ce,j,S.callback)},startinsert:function(y,S){E(y,S.argString=="!"?"A":"i",{})},redo:Be.commands.redo,undo:Be.commands.undo,write:function(y){Be.commands.save?Be.commands.save(y):y.save&&y.save()},nohlsearch:function(y){Un(y)},yank:function(y){var S=qe(y.getCursor()),A=S.line,F=y.getLine(A);je.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,S){var A=S.selectionLine,F=isNaN(S.selectionLineEnd)?A:S.selectionLineEnd;Yo.delete(y,{linewise:!0},[{anchor:new Ne(A,0),head:new Ne(F+1,0)}])},join:function(y,S){var A=S.selectionLine,F=isNaN(S.selectionLineEnd)?A:S.selectionLineEnd;y.setCursor(new Ne(A,0)),Wn.joinLines(y,{repeat:F-A},y.state.vim)},delmarks:function(y,S){if(!S.argString||!tr(S.argString)){It(y,"Argument required");return}for(var A=y.state.vim,F=new Be.StringStream(tr(S.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){It(y,"Invalid argument: "+S.argString.substring(W));return}var j=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){It(y,"Invalid argument: "+S.argString.substring(W));return}var K=j,Y=F.next();if(!(u(K)&&u(Y)||s(K)&&s(Y))){It(y,"Invalid argument: "+K+"-");return}var Z=K.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){It(y,"Invalid argument: "+S.argString.substring(W));return}for(var ue=0;ue<=re-Z;ue++){var ye=String.fromCharCode(Z+ue);delete A.marks[ye]}}else delete A.marks[j]}}},Lr=new pa;N("insertModeEscKeysTimeout",200,"number"),Be.Vim=bt;var po={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},wr=bt.handleKey.bind(bt);bt.handleKey=function(y,S,A){return y.operation(function(){return wr(y,S,A)},!0)},D(),r.CodeMirror=Be;var si=bt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,S,A,F,W){var j=this.state.vim||{},K=A.characterWidth,Y=A.lineHeight,Z=S.top,re=S.left;if(!j.insertMode){var ue=F.cursor?or.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ue&&re>K&&(re-=K)}!j.insertMode&&j.status&&(Y/=2,Z+=Y),Kr.translate(y,re,Z),Kr.setStyle(y.style,"width",K+"px"),Kr.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var S=y.state.cm,A=si(S);if(!A.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,S,A,F,W){var j=y.editor,K=j.state.cm,Y=si(K);if(F!=-1){if(Y.insertMode||(S==-1?(A.charCodeAt(0)>255&&y.inputKey&&(A=y.inputKey,A&&y.inputHash==4&&(A=A.toUpperCase())),y.inputChar=A):S==4||S==0?y.inputKey==A&&y.inputHash==S&&y.inputChar?(A=y.inputChar,S=-1):(y.inputChar=null,y.inputKey=A,y.inputHash=S):y.inputChar=y.inputKey=null),K.state.overwrite&&Y.insertMode&&A=="backspace"&&S==0)return{command:"gotoleft"};if(A=="c"&&S==1&&!Ao.isMac&&j.getCopyText())return j.once("copy",function(){Y.insertMode?j.selection.clearSelection():K.operation(function(){pn(K)})}),{command:"null",passEvent:!0};if(A=="esc"&&!Y.insertMode&&!Y.visualMode&&!K.ace.inMultiSelectMode){var Z=Rn(K),re=Z.getOverlay();re&&K.removeOverlay(re)}if(S==-1||S&1||S===0&&A.length>1){var ue=Y.insertMode,ye=ca(S,A,W||{},Y);Y.status==null&&(Y.status="");var Ce=Ko(K,ye,"user");return Y=si(K),Ce&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),K._signal("changeStatus"),!Ce&&(S!=-1||ue)?void 0:{command:"null",passEvent:!Ce}}}},attach:function(y){function S(){var F=si(A).insertMode;A.ace.renderer.setStyle("normal-mode",!F),y.textInput.setCommandMode(!F),y.renderer.$keepTextAreaAtCursor=F,y.renderer.$blockCursor=!F}y.state||(y.state={});var A=new Be(y);y.state.cm=A,y.$vimModeHandler=this,h(A),si(A).status=null,A.on("vim-command-done",function(){A.virtualSelectionMode()||(si(A).status=null,A.ace._signal("changeStatus"),A.ace.session.markUndoGroup())}),A.on("changeStatus",function(){A.ace.renderer.updateCursor(),A.ace._signal("changeStatus")}),A.on("vim-mode-change",function(){A.virtualSelectionMode()||(S(),A._signal("changeStatus"))}),S(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(A)},detach:function(y){var S=y.state.cm;d(S),S.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var S=y.state.cm,A=si(S);if(A.insertMode)return"INSERT";var F="";return A.visualMode&&(F+="VISUAL",A.visualLine&&(F+=" LINE"),A.visualBlock&&(F+=" BLOCK")),A.status&&(F+=(F?" ":"")+A.status),F}},bt.defineOption({name:"wrap",set:function(y,S){S&&S.ace.setOption("wrap",y)},type:"boolean"},!1),bt.defineEx("write","w",function(){console.log(":write is not implemented")}),Ln.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Ln.push({keys:"gq",type:"operator",operator:"hardWrap"}),bt.defineOperator("hardWrap",function(y,S,A,F,W){var j=A[0].anchor.line,K=A[0].head.line;return S.linewise&&K--,ho(y.ace,{startRow:j,endRow:K}),Ne(K,0)}),N("textwidth",void 0,"number",["tw"],function(y,S){if(S!==void 0){if(y===void 0){var A=S.ace.getOption("printMarginColumn");return A}var F=Math.round(y);F>1&&S.ace.setOption("printMarginColumn",F)}}),Wn.aceCommand=function(y,S,A){y.vimCmd=S,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Gi):Gi(null,y.ace)},Wn.fold=function(y,S,A){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(S.all?2:0)+(S.open?1:0)])},_o=Ln.length,r.handler.defaultKeymap=Ln,r.handler.actions=Wn,r.Vim=bt}),(function(){ace.require(["ace/keyboard/vim"],function(e){t&&(t.exports=e)})})()})(gg)),gg.exports}hk();var vg={},yg;function dk(){return yg||(yg=1,(function(t){(function(){var n={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return v(g(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function v(w,h){var d=1,a=w.length,l,u="",c,i,s,f,b,x,N,M;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(n.not_type.test(s.type)&&n.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),n.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(n.number.test(s.type)&&(N=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}n.json.test(s.type)?u+=l:(n.number.test(s.type)&&(!N||s.sign)?(M=N?"+":"-",l=l.toString().replace(n.sign,"")):M="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(M+l).length,f=s.width&&x>0?b.repeat(x):"",u+=s.align?M+l+f:b==="0"?M+f+l:f+M+l)}return u}var p=Object.create(null);function g(w){if(p[w])return p[w];for(var h=w,d,a=[],l=0;h;){if((d=n.text.exec(h))!==null)a.push(d[0]);else if((d=n.modulo.exec(h))!==null)a.push("%");else if((d=n.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=n.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=n.key_access.exec(c))!==null)u.push(i[1]);else if((i=n.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return p[w]=a}t.sprintf=e,t.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()})(vg)),vg}dk();var Wl={exports:{}},fk=Wl.exports,bg;function pk(){return bg||(bg=1,(function(t,n){(function(){var e,r="4.18.1",v=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",w="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",d="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",u=1,c=2,i=4,s=1,f=2,b=1,x=2,N=4,M=8,_=16,C=32,L=64,D=128,I=256,E=512,z=30,P="...",O=800,$=16,k=1,R=2,B=3,U=1/0,q=9007199254740991,Q=17976931348623157e292,ee=NaN,ae=4294967295,ne=ae-1,ce=ae>>>1,se=[["ary",D],["bind",b],["bindKey",x],["curry",M],["curryRight",_],["flip",E],["partial",C],["partialRight",L],["rearg",I]],de="[object Arguments]",me="[object Array]",$e="[object AsyncFunction]",Me="[object Boolean]",Te="[object Date]",Ze="[object DOMException]",qe="[object Error]",it="[object Function]",ct="[object GeneratorFunction]",et="[object Map]",Bt="[object Number]",pr="[object Null]",At="[object Object]",tr="[object Promise]",An="[object Proxy]",gr="[object RegExp]",fn="[object Set]",ur="[object String]",ht="[object Symbol]",Ke="[object Undefined]",St="[object WeakMap]",Qt="[object WeakSet]",En="[object ArrayBuffer]",jn="[object DataView]",nr="[object Float32Array]",pn="[object Float64Array]",Dn="[object Int8Array]",In="[object Int16Array]",qt="[object Int32Array]",cn="[object Uint8Array]",Mr="[object Uint8ClampedArray]",jr="[object Uint16Array]",mr="[object Uint32Array]",mi=/\b__p \+= '';/g,ni=/\b(__p \+=) '' \+/g,Hn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ki=/&(?:amp|lt|gt|quot|#39);/g,Hr=/[&<>"']/g,xs=RegExp(Ki.source),Ur=RegExp(Hr.source),xn=/<%-([\s\S]+?)%>/g,vi=/<%([\s\S]+?)%>/g,xo=/<%=([\s\S]+?)%>/g,ri=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cn=/^\w*$/,vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(Tr.source),vn=/^\s+/,hr=/\s/,ii=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,so=/\{\n\/\* \[wrapped with (.+)\] \*/,ao=/,? & /,zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Er=/[()=,{}\[\]\/\s]/,oi=/\\(\\)?/g,Vr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/\w*$/,Co=/^[-+]0x[0-9a-f]+$/i,dr=/^0b[01]+$/i,le=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Un="\\ud800-\\udfff",rr="\\u0300-\\u036f",Fn="\\ufe20-\\ufe2f",yr="\\u20d0-\\u20ff",gn=rr+Fn+yr,qi="\\u2700-\\u27bf",br="a-z\\xdf-\\xf6\\xf8-\\xff",jo="\\xac\\xb1\\xd7\\xf7",Cs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ks="\\u2000-\\u206f",As=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ir="A-Z\\xc0-\\xd6\\xd8-\\xde",_s="\\ufe0e\\ufe0f",Ho=jo+Cs+ks+As,lo="['’]",Ss="["+Un+"]",Uo="["+Ho+"]",ko="["+gn+"]",$s="\\d+",Ms="["+qi+"]",Vo="["+br+"]",ca="[^"+Un+Ho+$s+qi+br+ir+"]",co="\\ud83c[\\udffb-\\udfff]",Ko="(?:"+ko+"|"+co+")",Gi="[^"+Un+"]",or="(?:\\ud83c[\\udde6-\\uddff]){2}",Ts="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="["+ir+"]",ua="\\u200d",ha="(?:"+Vo+"|"+ca+")",qo="(?:"+Kr+"|"+ca+")",Yi="(?:"+lo+"(?:d|ll|m|re|s|t|ve))?",Ao="(?:"+lo+"(?:D|LL|M|RE|S|T|VE))?",Go=Ko+"?",uo="["+_s+"]?",da="(?:"+ua+"(?:"+[Gi,or,Ts].join("|")+")"+uo+Go+")*",ho="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Be="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Es=uo+Go+da,Ne="(?:"+[Ms,or,Ts].join("|")+")"+Es,Ln="(?:"+[Gi+ko+"?",ko,or,Ts,Ss].join("|")+")",_o=RegExp(lo,"g"),Xi=RegExp(ko,"g"),On=RegExp(co+"(?="+co+")|"+Ln+Es,"g"),fa=RegExp([Kr+"?"+Vo+"+"+Yi+"(?="+[Uo,Kr,"$"].join("|")+")",qo+"+"+Ao+"(?="+[Uo,Kr+ha,"$"].join("|")+")",Kr+"?"+ha+"+"+Yi,Kr+"+"+Ao,Be,ho,$s,Ne].join("|"),"g"),So=RegExp("["+ua+Un+gn+_s+"]"),Ei=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Is=-1,tn={};tn[nr]=tn[pn]=tn[Dn]=tn[In]=tn[qt]=tn[cn]=tn[Mr]=tn[jr]=tn[mr]=!0,tn[de]=tn[me]=tn[En]=tn[Me]=tn[jn]=tn[Te]=tn[qe]=tn[it]=tn[et]=tn[Bt]=tn[At]=tn[gr]=tn[fn]=tn[ur]=tn[St]=!1;var st={};st[de]=st[me]=st[En]=st[jn]=st[Me]=st[Te]=st[nr]=st[pn]=st[Dn]=st[In]=st[qt]=st[et]=st[Bt]=st[At]=st[gr]=st[fn]=st[ur]=st[ht]=st[cn]=st[Mr]=st[jr]=st[mr]=!0,st[qe]=st[it]=st[St]=!1;var Ut={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ii={"&":"&","<":"<",">":">",'"':""","'":"'"},Pn={"&":"&","<":"<",">":">",""":'"',"'":"'"},je={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,bt=parseInt,Ir=typeof Po=="object"&&Po&&Po.Object===Object&&Po,Ri=typeof self=="object"&&self&&self.Object===Object&&self,Nt=Ir||Ri||Function("return this")(),Rr=n&&!n.nodeType&&n,Yn=Rr&&!0&&t&&!t.nodeType&&t,Zi=Yn&&Yn.exports===Rr,yi=Zi&&Ir.process,_n=(function(){try{var ge=Yn&&Yn.require&&Yn.require("util").types;return ge||yi&&yi.binding&&yi.binding("util")}catch{}})(),Yo=_n&&_n.isArrayBuffer,Wn=_n&&_n.isDate,bi=_n&&_n.isMap,wi=_n&&_n.isRegExp,Li=_n&&_n.isSet,Rs=_n&&_n.isTypedArray;function rn(ge,Se,ke){switch(ke.length){case 0:return ge.call(Se);case 1:return ge.call(Se,ke[0]);case 2:return ge.call(Se,ke[0],ke[1]);case 3:return ge.call(Se,ke[0],ke[1],ke[2])}return ge.apply(Se,ke)}function pa(ge,Se,ke,Ue){for(var lt=-1,kt=ge==null?0:ge.length;++lt<kt;){var Jt=ge[lt];Se(Ue,Jt,ke(Jt),ge)}return Ue}function sr(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue&&Se(ge[ke],ke,ge)!==!1;);return ge}function Lr(ge,Se){for(var ke=ge==null?0:ge.length;ke--&&Se(ge[ke],ke,ge)!==!1;);return ge}function po(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue;)if(!Se(ge[ke],ke,ge))return!1;return!0}function wr(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length,lt=0,kt=[];++ke<Ue;){var Jt=ge[ke];Se(Jt,ke,ge)&&(kt[lt++]=Jt)}return kt}function si(ge,Se){var ke=ge==null?0:ge.length;return!!ke&&ye(ge,Se,0)>-1}function y(ge,Se,ke){for(var Ue=-1,lt=ge==null?0:ge.length;++Ue<lt;)if(ke(Se,ge[Ue]))return!0;return!1}function S(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length,lt=Array(Ue);++ke<Ue;)lt[ke]=Se(ge[ke],ke,ge);return lt}function A(ge,Se){for(var ke=-1,Ue=Se.length,lt=ge.length;++ke<Ue;)ge[lt+ke]=Se[ke];return ge}function F(ge,Se,ke,Ue){var lt=-1,kt=ge==null?0:ge.length;for(Ue&&kt&&(ke=ge[++lt]);++lt<kt;)ke=Se(ke,ge[lt],lt,ge);return ke}function W(ge,Se,ke,Ue){var lt=ge==null?0:ge.length;for(Ue&<&&(ke=ge[--lt]);lt--;)ke=Se(ke,ge[lt],lt,ge);return ke}function j(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue;)if(Se(ge[ke],ke,ge))return!0;return!1}var K=Oe("length");function Y(ge){return ge.split("")}function Z(ge){return ge.match(zo)||[]}function re(ge,Se,ke){var Ue;return ke(ge,function(lt,kt,Jt){if(Se(lt,kt,Jt))return Ue=kt,!1}),Ue}function ue(ge,Se,ke,Ue){for(var lt=ge.length,kt=ke+(Ue?1:-1);Ue?kt--:++kt<lt;)if(Se(ge[kt],kt,ge))return kt;return-1}function ye(ge,Se,ke){return Se===Se?wt(ge,Se,ke):ue(ge,ve,ke)}function Ce(ge,Se,ke,Ue){for(var lt=ke-1,kt=ge.length;++lt<kt;)if(Ue(ge[lt],Se))return lt;return-1}function ve(ge){return ge!==ge}function we(ge,Se){var ke=ge==null?0:ge.length;return ke?Xe(ge,Se)/ke:ee}function Oe(ge){return function(Se){return Se==null?e:Se[ge]}}function Re(ge){return function(Se){return ge==null?e:ge[Se]}}function Ve(ge,Se,ke,Ue,lt){return lt(ge,function(kt,Jt,Ft){ke=Ue?(Ue=!1,kt):Se(ke,kt,Jt,Ft)}),ke}function at(ge,Se){var ke=ge.length;for(ge.sort(Se);ke--;)ge[ke]=ge[ke].value;return ge}function Xe(ge,Se){for(var ke,Ue=-1,lt=ge.length;++Ue<lt;){var kt=Se(ge[Ue]);kt!==e&&(ke=ke===e?kt:ke+kt)}return ke}function Je(ge,Se){for(var ke=-1,Ue=Array(ge);++ke<ge;)Ue[ke]=Se(ke);return Ue}function kn(ge,Se){return S(Se,function(ke){return[ke,ge[ke]]})}function xt(ge){return ge&&ge.slice(0,dt(ge)+1).replace(vn,"")}function Gt(ge){return function(Se){return ge(Se)}}function Tt(ge,Se){return S(Se,function(ke){return ge[ke]})}function Ct(ge,Se){return ge.has(Se)}function Xn(ge,Se){for(var ke=-1,Ue=ge.length;++ke<Ue&&ye(Se,ge[ke],0)>-1;);return ke}function ar(ge,Se){for(var ke=ge.length;ke--&&ye(Se,ge[ke],0)>-1;);return ke}function Sn(ge,Se){for(var ke=ge.length,Ue=0;ke--;)ge[ke]===Se&&++Ue;return Ue}var V=Re(Ut),X=Re(Ii);function ie(ge){return"\\"+je[ge]}function oe(ge,Se){return ge==null?e:ge[Se]}function pe(ge){return So.test(ge)}function xe(ge){return Ei.test(ge)}function Ee(ge){for(var Se,ke=[];!(Se=ge.next()).done;)ke.push(Se.value);return ke}function Pe(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue,lt){ke[++Se]=[lt,Ue]}),ke}function ze(ge,Se){return function(ke){return ge(Se(ke))}}function He(ge,Se){for(var ke=-1,Ue=ge.length,lt=0,kt=[];++ke<Ue;){var Jt=ge[ke];(Jt===Se||Jt===l)&&(ge[ke]=l,kt[lt++]=ke)}return kt}function Ge(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue){ke[++Se]=Ue}),ke}function Qe(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue){ke[++Se]=[Ue,Ue]}),ke}function wt(ge,Se,ke){for(var Ue=ke-1,lt=ge.length;++Ue<lt;)if(ge[Ue]===Se)return Ue;return-1}function Xt(ge,Se,ke){for(var Ue=ke+1;Ue--;)if(ge[Ue]===Se)return Ue;return Ue}function Dt(ge){return pe(ge)?mn(ge):K(ge)}function yt(ge){return pe(ge)?$n(ge):Y(ge)}function dt(ge){for(var Se=ge.length;Se--&&hr.test(ge.charAt(Se)););return Se}var ot=Re(Pn);function mn(ge){for(var Se=On.lastIndex=0;On.test(ge);)++Se;return Se}function $n(ge){return ge.match(On)||[]}function Zn(ge){return ge.match(fa)||[]}var on=(function ge(Se){Se=Se==null?Nt:un.defaults(Nt.Object(),Se,un.pick(Nt,fo));var ke=Se.Array,Ue=Se.Date,lt=Se.Error,kt=Se.Function,Jt=Se.Math,Ft=Se.Object,ai=Se.RegExp,xr=Se.String,bn=Se.TypeError,Oi=ke.prototype,Cr=kt.prototype,$o=Ft.prototype,kc=Se["__core-js_shared__"],Ac=Cr.toString,sn=$o.hasOwnProperty,jT=0,Jy=(function(){var o=/[^.]+$/.exec(kc&&kc.keys&&kc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),_c=$o.toString,HT=Ac.call(Ft),UT=Nt._,VT=ai("^"+Ac.call(sn).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sc=Zi?Se.Buffer:e,Xo=Se.Symbol,$c=Se.Uint8Array,eb=Sc?Sc.allocUnsafe:e,Mc=ze(Ft.getPrototypeOf,Ft),tb=Ft.create,nb=$o.propertyIsEnumerable,Tc=Oi.splice,rb=Xo?Xo.isConcatSpreadable:e,il=Xo?Xo.iterator:e,Ls=Xo?Xo.toStringTag:e,Ec=(function(){try{var o=Ps(Ft,"defineProperty");return o({},"",{}),o}catch{}})(),KT=Se.clearTimeout!==Nt.clearTimeout&&Se.clearTimeout,qT=Ue&&Ue.now!==Nt.Date.now&&Ue.now,GT=Se.setTimeout!==Nt.setTimeout&&Se.setTimeout,Ic=Jt.ceil,Rc=Jt.floor,wd=Ft.getOwnPropertySymbols,YT=Sc?Sc.isBuffer:e,ib=Se.isFinite,XT=Oi.join,ZT=ze(Ft.keys,Ft),lr=Jt.max,Or=Jt.min,QT=Ue.now,JT=Se.parseInt,ob=Jt.random,eE=Oi.reverse,xd=Ps(Se,"DataView"),ol=Ps(Se,"Map"),Cd=Ps(Se,"Promise"),ga=Ps(Se,"Set"),sl=Ps(Se,"WeakMap"),al=Ps(Ft,"create"),Lc=sl&&new sl,ma={},tE=Ws(xd),nE=Ws(ol),rE=Ws(Cd),iE=Ws(ga),oE=Ws(sl),Oc=Xo?Xo.prototype:e,ll=Oc?Oc.valueOf:e,sb=Oc?Oc.toString:e;function J(o){if(Bn(o)&&!$t(o)&&!(o instanceof Vt)){if(o instanceof Ni)return o;if(sn.call(o,"__wrapped__"))return a0(o)}return new Ni(o)}var va=(function(){function o(){}return function(m){if(!Nn(m))return{};if(tb)return tb(m);o.prototype=m;var T=new o;return o.prototype=e,T}})();function Nc(){}function Ni(o,m){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=e}J.templateSettings={escape:xn,evaluate:vi,interpolate:xo,variable:"",imports:{_:J}},J.prototype=Nc.prototype,J.prototype.constructor=J,Ni.prototype=va(Nc.prototype),Ni.prototype.constructor=Ni;function Vt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function sE(){var o=new Vt(this.__wrapped__);return o.__actions__=li(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=li(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=li(this.__views__),o}function aE(){if(this.__filtered__){var o=new Vt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function lE(){var o=this.__wrapped__.value(),m=this.__dir__,T=$t(o),H=m<0,G=T?o.length:0,te=wI(0,G,this.__views__),he=te.start,fe=te.end,be=fe-he,Ie=H?fe:he-1,Le=this.__iteratees__,De=Le.length,Ye=0,rt=Or(be,this.__takeCount__);if(!T||!H&&G==be&&rt==be)return Eb(o,this.__actions__);var gt=[];e:for(;be--&&Ye<rt;){Ie+=m;for(var Rt=-1,ft=o[Ie];++Rt<De;){var jt=Le[Rt],Kt=jt.iteratee,ki=jt.type,Yr=Kt(ft);if(ki==R)ft=Yr;else if(!Yr){if(ki==k)continue e;break e}}gt[Ye++]=ft}return gt}Vt.prototype=va(Nc.prototype),Vt.prototype.constructor=Vt;function Os(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function cE(){this.__data__=al?al(null):{},this.size=0}function uE(o){var m=this.has(o)&&delete this.__data__[o];return this.size-=m?1:0,m}function hE(o){var m=this.__data__;if(al){var T=m[o];return T===d?e:T}return sn.call(m,o)?m[o]:e}function dE(o){var m=this.__data__;return al?m[o]!==e:sn.call(m,o)}function fE(o,m){var T=this.__data__;return this.size+=this.has(o)?0:1,T[o]=al&&m===e?d:m,this}Os.prototype.clear=cE,Os.prototype.delete=uE,Os.prototype.get=hE,Os.prototype.has=dE,Os.prototype.set=fE;function Mo(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function pE(){this.__data__=[],this.size=0}function gE(o){var m=this.__data__,T=Dc(m,o);if(T<0)return!1;var H=m.length-1;return T==H?m.pop():Tc.call(m,T,1),--this.size,!0}function mE(o){var m=this.__data__,T=Dc(m,o);return T<0?e:m[T][1]}function vE(o){return Dc(this.__data__,o)>-1}function yE(o,m){var T=this.__data__,H=Dc(T,o);return H<0?(++this.size,T.push([o,m])):T[H][1]=m,this}Mo.prototype.clear=pE,Mo.prototype.delete=gE,Mo.prototype.get=mE,Mo.prototype.has=vE,Mo.prototype.set=yE;function To(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function bE(){this.size=0,this.__data__={hash:new Os,map:new(ol||Mo),string:new Os}}function wE(o){var m=Gc(this,o).delete(o);return this.size-=m?1:0,m}function xE(o){return Gc(this,o).get(o)}function CE(o){return Gc(this,o).has(o)}function kE(o,m){var T=Gc(this,o),H=T.size;return T.set(o,m),this.size+=T.size==H?0:1,this}To.prototype.clear=bE,To.prototype.delete=wE,To.prototype.get=xE,To.prototype.has=CE,To.prototype.set=kE;function Ns(o){var m=-1,T=o==null?0:o.length;for(this.__data__=new To;++m<T;)this.add(o[m])}function AE(o){return this.__data__.set(o,d),this}function _E(o){return this.__data__.has(o)}Ns.prototype.add=Ns.prototype.push=AE,Ns.prototype.has=_E;function Qi(o){var m=this.__data__=new Mo(o);this.size=m.size}function SE(){this.__data__=new Mo,this.size=0}function $E(o){var m=this.__data__,T=m.delete(o);return this.size=m.size,T}function ME(o){return this.__data__.get(o)}function TE(o){return this.__data__.has(o)}function EE(o,m){var T=this.__data__;if(T instanceof Mo){var H=T.__data__;if(!ol||H.length<v-1)return H.push([o,m]),this.size=++T.size,this;T=this.__data__=new To(H)}return T.set(o,m),this.size=T.size,this}Qi.prototype.clear=SE,Qi.prototype.delete=$E,Qi.prototype.get=ME,Qi.prototype.has=TE,Qi.prototype.set=EE;function ab(o,m){var T=$t(o),H=!T&&Bs(o),G=!T&&!H&&ts(o),te=!T&&!H&&!G&&xa(o),he=T||H||G||te,fe=he?Je(o.length,xr):[],be=fe.length;for(var Ie in o)(m||sn.call(o,Ie))&&!(he&&(Ie=="length"||G&&(Ie=="offset"||Ie=="parent")||te&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Ro(Ie,be)))&&fe.push(Ie);return fe}function lb(o){var m=o.length;return m?o[Ld(0,m-1)]:e}function IE(o,m){return Yc(li(o),Ds(m,0,o.length))}function RE(o){return Yc(li(o))}function kd(o,m,T){(T!==e&&!eo(o[m],T)||T===e&&!(m in o))&&go(o,m,T)}function cl(o,m,T){var H=o[m];(!(sn.call(o,m)&&eo(H,T))||T===e&&!(m in o))&&go(o,m,T)}function Dc(o,m){for(var T=o.length;T--;)if(eo(o[T][0],m))return T;return-1}function LE(o,m,T,H){return Zo(o,function(G,te,he){m(H,G,T(G),he)}),H}function cb(o,m){return o&&vo(m,fr(m),o)}function OE(o,m){return o&&vo(m,ui(m),o)}function go(o,m,T){m=="__proto__"&&Ec?Ec(o,m,{configurable:!0,enumerable:!0,value:T,writable:!0}):o[m]=T}function Ad(o,m){for(var T=-1,H=m.length,G=ke(H),te=o==null;++T<H;)G[T]=te?e:sf(o,m[T]);return G}function Ds(o,m,T){return o===o&&(T!==e&&(o=o<=T?o:T),m!==e&&(o=o>=m?o:m)),o}function Di(o,m,T,H,G,te){var he,fe=m&u,be=m&c,Ie=m&i;if(T&&(he=G?T(o,H,G,te):T(o)),he!==e)return he;if(!Nn(o))return o;var Le=$t(o);if(Le){if(he=CI(o),!fe)return li(o,he)}else{var De=Nr(o),Ye=De==it||De==ct;if(ts(o))return Lb(o,fe);if(De==At||De==de||Ye&&!G){if(he=be||Ye?{}:Qb(o),!fe)return be?hI(o,OE(he,o)):uI(o,cb(he,o))}else{if(!st[De])return G?o:{};he=kI(o,De,fe)}}te||(te=new Qi);var rt=te.get(o);if(rt)return rt;te.set(o,he),$0(o)?o.forEach(function(ft){he.add(Di(ft,m,T,ft,o,te))}):_0(o)&&o.forEach(function(ft,jt){he.set(jt,Di(ft,m,T,jt,o,te))});var gt=Ie?be?Ud:Hd:be?ui:fr,Rt=Le?e:gt(o);return sr(Rt||o,function(ft,jt){Rt&&(jt=ft,ft=o[jt]),cl(he,jt,Di(ft,m,T,jt,o,te))}),he}function NE(o){var m=fr(o);return function(T){return ub(T,o,m)}}function ub(o,m,T){var H=T.length;if(o==null)return!H;for(o=Ft(o);H--;){var G=T[H],te=m[G],he=o[G];if(he===e&&!(G in o)||!te(he))return!1}return!0}function hb(o,m,T){if(typeof o!="function")throw new bn(g);return ml(function(){o.apply(e,T)},m)}function ul(o,m,T,H){var G=-1,te=si,he=!0,fe=o.length,be=[],Ie=m.length;if(!fe)return be;T&&(m=S(m,Gt(T))),H?(te=y,he=!1):m.length>=v&&(te=Ct,he=!1,m=new Ns(m));e:for(;++G<fe;){var Le=o[G],De=T==null?Le:T(Le);if(Le=H||Le!==0?Le:0,he&&De===De){for(var Ye=Ie;Ye--;)if(m[Ye]===De)continue e;be.push(Le)}else te(m,De,H)||be.push(Le)}return be}var Zo=Pb(mo),db=Pb(Sd,!0);function DE(o,m){var T=!0;return Zo(o,function(H,G,te){return T=!!m(H,G,te),T}),T}function Fc(o,m,T){for(var H=-1,G=o.length;++H<G;){var te=o[H],he=m(te);if(he!=null&&(fe===e?he===he&&!Ci(he):T(he,fe)))var fe=he,be=te}return be}function FE(o,m,T,H){var G=o.length;for(T=Et(T),T<0&&(T=-T>G?0:G+T),H=H===e||H>G?G:Et(H),H<0&&(H+=G),H=T>H?0:T0(H);T<H;)o[T++]=m;return o}function fb(o,m){var T=[];return Zo(o,function(H,G,te){m(H,G,te)&&T.push(H)}),T}function kr(o,m,T,H,G){var te=-1,he=o.length;for(T||(T=_I),G||(G=[]);++te<he;){var fe=o[te];m>0&&T(fe)?m>1?kr(fe,m-1,T,H,G):A(G,fe):H||(G[G.length]=fe)}return G}var _d=Wb(),pb=Wb(!0);function mo(o,m){return o&&_d(o,m,fr)}function Sd(o,m){return o&&pb(o,m,fr)}function Pc(o,m){return wr(m,function(T){return Lo(o[T])})}function Fs(o,m){m=Jo(m,o);for(var T=0,H=m.length;o!=null&&T<H;)o=o[Ji(m[T++])];return T&&T==H?o:e}function gb(o,m,T){var H=m(o);return $t(o)?H:A(H,T(o))}function qr(o){return o==null?o===e?Ke:pr:Ls&&Ls in Ft(o)?bI(o):RI(o)}function $d(o,m){return o>m}function PE(o,m){return o!=null&&sn.call(o,m)}function WE(o,m){return o!=null&&m in Ft(o)}function BE(o,m,T){return o>=Or(m,T)&&o<lr(m,T)}function Md(o,m,T){for(var H=T?y:si,G=o[0].length,te=o.length,he=te,fe=ke(te),be=1/0,Ie=[];he--;){var Le=o[he];he&&m&&(Le=S(Le,Gt(m))),be=Or(Le.length,be),fe[he]=!T&&(m||G>=120&&Le.length>=120)?new Ns(he&&Le):e}Le=o[0];var De=-1,Ye=fe[0];e:for(;++De<G&&Ie.length<be;){var rt=Le[De],gt=m?m(rt):rt;if(rt=T||rt!==0?rt:0,!(Ye?Ct(Ye,gt):H(Ie,gt,T))){for(he=te;--he;){var Rt=fe[he];if(!(Rt?Ct(Rt,gt):H(o[he],gt,T)))continue e}Ye&&Ye.push(gt),Ie.push(rt)}}return Ie}function zE(o,m,T,H){return mo(o,function(G,te,he){m(H,T(G),te,he)}),H}function hl(o,m,T){m=Jo(m,o),o=n0(o,m);var H=o==null?o:o[Ji(Pi(m))];return H==null?e:rn(H,o,T)}function mb(o){return Bn(o)&&qr(o)==de}function jE(o){return Bn(o)&&qr(o)==En}function HE(o){return Bn(o)&&qr(o)==Te}function dl(o,m,T,H,G){return o===m?!0:o==null||m==null||!Bn(o)&&!Bn(m)?o!==o&&m!==m:UE(o,m,T,H,dl,G)}function UE(o,m,T,H,G,te){var he=$t(o),fe=$t(m),be=he?me:Nr(o),Ie=fe?me:Nr(m);be=be==de?At:be,Ie=Ie==de?At:Ie;var Le=be==At,De=Ie==At,Ye=be==Ie;if(Ye&&ts(o)){if(!ts(m))return!1;he=!0,Le=!1}if(Ye&&!Le)return te||(te=new Qi),he||xa(o)?Yb(o,m,T,H,G,te):vI(o,m,be,T,H,G,te);if(!(T&s)){var rt=Le&&sn.call(o,"__wrapped__"),gt=De&&sn.call(m,"__wrapped__");if(rt||gt){var Rt=rt?o.value():o,ft=gt?m.value():m;return te||(te=new Qi),G(Rt,ft,T,H,te)}}return Ye?(te||(te=new Qi),yI(o,m,T,H,G,te)):!1}function VE(o){return Bn(o)&&Nr(o)==et}function Td(o,m,T,H){var G=T.length,te=G,he=!H;if(o==null)return!te;for(o=Ft(o);G--;){var fe=T[G];if(he&&fe[2]?fe[1]!==o[fe[0]]:!(fe[0]in o))return!1}for(;++G<te;){fe=T[G];var be=fe[0],Ie=o[be],Le=fe[1];if(he&&fe[2]){if(Ie===e&&!(be in o))return!1}else{var De=new Qi;if(H)var Ye=H(Ie,Le,be,o,m,De);if(!(Ye===e?dl(Le,Ie,s|f,H,De):Ye))return!1}}return!0}function vb(o){if(!Nn(o)||$I(o))return!1;var m=Lo(o)?VT:le;return m.test(Ws(o))}function KE(o){return Bn(o)&&qr(o)==gr}function qE(o){return Bn(o)&&Nr(o)==fn}function GE(o){return Bn(o)&&tu(o.length)&&!!tn[qr(o)]}function yb(o){return typeof o=="function"?o:o==null?hi:typeof o=="object"?$t(o)?xb(o[0],o[1]):wb(o):z0(o)}function Ed(o){if(!gl(o))return ZT(o);var m=[];for(var T in Ft(o))sn.call(o,T)&&T!="constructor"&&m.push(T);return m}function YE(o){if(!Nn(o))return II(o);var m=gl(o),T=[];for(var H in o)H=="constructor"&&(m||!sn.call(o,H))||T.push(H);return T}function Id(o,m){return o<m}function bb(o,m){var T=-1,H=ci(o)?ke(o.length):[];return Zo(o,function(G,te,he){H[++T]=m(G,te,he)}),H}function wb(o){var m=Kd(o);return m.length==1&&m[0][2]?e0(m[0][0],m[0][1]):function(T){return T===o||Td(T,o,m)}}function xb(o,m){return Gd(o)&&Jb(m)?e0(Ji(o),m):function(T){var H=sf(T,o);return H===e&&H===m?af(T,o):dl(m,H,s|f)}}function Wc(o,m,T,H,G){o!==m&&_d(m,function(te,he){if(G||(G=new Qi),Nn(te))XE(o,m,he,T,Wc,H,G);else{var fe=H?H(Xd(o,he),te,he+"",o,m,G):e;fe===e&&(fe=te),kd(o,he,fe)}},ui)}function XE(o,m,T,H,G,te,he){var fe=Xd(o,T),be=Xd(m,T),Ie=he.get(be);if(Ie){kd(o,T,Ie);return}var Le=te?te(fe,be,T+"",o,m,he):e,De=Le===e;if(De){var Ye=$t(be),rt=!Ye&&ts(be),gt=!Ye&&!rt&&xa(be);Le=be,Ye||rt||gt?$t(fe)?Le=fe:Vn(fe)?Le=li(fe):rt?(De=!1,Le=Lb(be,!0)):gt?(De=!1,Le=Ob(be,!0)):Le=[]:vl(be)||Bs(be)?(Le=fe,Bs(fe)?Le=E0(fe):(!Nn(fe)||Lo(fe))&&(Le=Qb(be))):De=!1}De&&(he.set(be,Le),G(Le,be,H,te,he),he.delete(be)),kd(o,T,Le)}function Cb(o,m){var T=o.length;if(T)return m+=m<0?T:0,Ro(m,T)?o[m]:e}function kb(o,m,T){m.length?m=S(m,function(te){return $t(te)?function(he){return Fs(he,te.length===1?te[0]:te)}:te}):m=[hi];var H=-1;m=S(m,Gt(pt()));var G=bb(o,function(te,he,fe){var be=S(m,function(Ie){return Ie(te)});return{criteria:be,index:++H,value:te}});return at(G,function(te,he){return cI(te,he,T)})}function ZE(o,m){return Ab(o,m,function(T,H){return af(o,H)})}function Ab(o,m,T){for(var H=-1,G=m.length,te={};++H<G;){var he=m[H],fe=Fs(o,he);T(fe,he)&&fl(te,Jo(he,o),fe)}return te}function QE(o){return function(m){return Fs(m,o)}}function Rd(o,m,T,H){var G=H?Ce:ye,te=-1,he=m.length,fe=o;for(o===m&&(m=li(m)),T&&(fe=S(o,Gt(T)));++te<he;)for(var be=0,Ie=m[te],Le=T?T(Ie):Ie;(be=G(fe,Le,be,H))>-1;)fe!==o&&Tc.call(fe,be,1),Tc.call(o,be,1);return o}function _b(o,m){for(var T=o?m.length:0,H=T-1;T--;){var G=m[T];if(T==H||G!==te){var te=G;Ro(G)?Tc.call(o,G,1):Dd(o,G)}}return o}function Ld(o,m){return o+Rc(ob()*(m-o+1))}function JE(o,m,T,H){for(var G=-1,te=lr(Ic((m-o)/(T||1)),0),he=ke(te);te--;)he[H?te:++G]=o,o+=T;return he}function Od(o,m){var T="";if(!o||m<1||m>q)return T;do m%2&&(T+=o),m=Rc(m/2),m&&(o+=o);while(m);return T}function Pt(o,m){return Zd(t0(o,m,hi),o+"")}function eI(o){return lb(Ca(o))}function tI(o,m){var T=Ca(o);return Yc(T,Ds(m,0,T.length))}function fl(o,m,T,H){if(!Nn(o))return o;m=Jo(m,o);for(var G=-1,te=m.length,he=te-1,fe=o;fe!=null&&++G<te;){var be=Ji(m[G]),Ie=T;if(be==="__proto__"||be==="constructor"||be==="prototype")return o;if(G!=he){var Le=fe[be];Ie=H?H(Le,be,fe):e,Ie===e&&(Ie=Nn(Le)?Le:Ro(m[G+1])?[]:{})}cl(fe,be,Ie),fe=fe[be]}return o}var Sb=Lc?function(o,m){return Lc.set(o,m),o}:hi,nI=Ec?function(o,m){return Ec(o,"toString",{configurable:!0,enumerable:!1,value:cf(m),writable:!0})}:hi;function rI(o){return Yc(Ca(o))}function Fi(o,m,T){var H=-1,G=o.length;m<0&&(m=-m>G?0:G+m),T=T>G?G:T,T<0&&(T+=G),G=m>T?0:T-m>>>0,m>>>=0;for(var te=ke(G);++H<G;)te[H]=o[H+m];return te}function iI(o,m){var T;return Zo(o,function(H,G,te){return T=m(H,G,te),!T}),!!T}function Bc(o,m,T){var H=0,G=o==null?H:o.length;if(typeof m=="number"&&m===m&&G<=ce){for(;H<G;){var te=H+G>>>1,he=o[te];he!==null&&!Ci(he)&&(T?he<=m:he<m)?H=te+1:G=te}return G}return Nd(o,m,hi,T)}function Nd(o,m,T,H){var G=0,te=o==null?0:o.length;if(te===0)return 0;m=T(m);for(var he=m!==m,fe=m===null,be=Ci(m),Ie=m===e;G<te;){var Le=Rc((G+te)/2),De=T(o[Le]),Ye=De!==e,rt=De===null,gt=De===De,Rt=Ci(De);if(he)var ft=H||gt;else Ie?ft=gt&&(H||Ye):fe?ft=gt&&Ye&&(H||!rt):be?ft=gt&&Ye&&!rt&&(H||!Rt):rt||Rt?ft=!1:ft=H?De<=m:De<m;ft?G=Le+1:te=Le}return Or(te,ne)}function $b(o,m){for(var T=-1,H=o.length,G=0,te=[];++T<H;){var he=o[T],fe=m?m(he):he;if(!T||!eo(fe,be)){var be=fe;te[G++]=he===0?0:he}}return te}function Mb(o){return typeof o=="number"?o:Ci(o)?ee:+o}function xi(o){if(typeof o=="string")return o;if($t(o))return S(o,xi)+"";if(Ci(o))return sb?sb.call(o):"";var m=o+"";return m=="0"&&1/o==-U?"-0":m}function Qo(o,m,T){var H=-1,G=si,te=o.length,he=!0,fe=[],be=fe;if(T)he=!1,G=y;else if(te>=v){var Ie=m?null:gI(o);if(Ie)return Ge(Ie);he=!1,G=Ct,be=new Ns}else be=m?[]:fe;e:for(;++H<te;){var Le=o[H],De=m?m(Le):Le;if(Le=T||Le!==0?Le:0,he&&De===De){for(var Ye=be.length;Ye--;)if(be[Ye]===De)continue e;m&&be.push(De),fe.push(Le)}else G(be,De,T)||(be!==fe&&be.push(De),fe.push(Le))}return fe}function Dd(o,m){m=Jo(m,o);var T=-1,H=m.length;if(!H)return!0;for(;++T<H;){var G=Ji(m[T]);if(G==="__proto__"&&!sn.call(o,"__proto__")||(G==="constructor"||G==="prototype")&&T<H-1)return!1}var te=n0(o,m);return te==null||delete te[Ji(Pi(m))]}function Tb(o,m,T,H){return fl(o,m,T(Fs(o,m)),H)}function zc(o,m,T,H){for(var G=o.length,te=H?G:-1;(H?te--:++te<G)&&m(o[te],te,o););return T?Fi(o,H?0:te,H?te+1:G):Fi(o,H?te+1:0,H?G:te)}function Eb(o,m){var T=o;return T instanceof Vt&&(T=T.value()),F(m,function(H,G){return G.func.apply(G.thisArg,A([H],G.args))},T)}function Fd(o,m,T){var H=o.length;if(H<2)return H?Qo(o[0]):[];for(var G=-1,te=ke(H);++G<H;)for(var he=o[G],fe=-1;++fe<H;)fe!=G&&(te[G]=ul(te[G]||he,o[fe],m,T));return Qo(kr(te,1),m,T)}function Ib(o,m,T){for(var H=-1,G=o.length,te=m.length,he={};++H<G;){var fe=H<te?m[H]:e;T(he,o[H],fe)}return he}function Pd(o){return Vn(o)?o:[]}function Wd(o){return typeof o=="function"?o:hi}function Jo(o,m){return $t(o)?o:Gd(o,m)?[o]:s0(an(o))}var oI=Pt;function es(o,m,T){var H=o.length;return T=T===e?H:T,!m&&T>=H?o:Fi(o,m,T)}var Rb=KT||function(o){return Nt.clearTimeout(o)};function Lb(o,m){if(m)return o.slice();var T=o.length,H=eb?eb(T):new o.constructor(T);return o.copy(H),H}function Bd(o){var m=new o.constructor(o.byteLength);return new $c(m).set(new $c(o)),m}function sI(o,m){var T=m?Bd(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.byteLength)}function aI(o){var m=new o.constructor(o.source,It.exec(o));return m.lastIndex=o.lastIndex,m}function lI(o){return ll?Ft(ll.call(o)):{}}function Ob(o,m){var T=m?Bd(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.length)}function Nb(o,m){if(o!==m){var T=o!==e,H=o===null,G=o===o,te=Ci(o),he=m!==e,fe=m===null,be=m===m,Ie=Ci(m);if(!fe&&!Ie&&!te&&o>m||te&&he&&be&&!fe&&!Ie||H&&he&&be||!T&&be||!G)return 1;if(!H&&!te&&!Ie&&o<m||Ie&&T&&G&&!H&&!te||fe&&T&&G||!he&&G||!be)return-1}return 0}function cI(o,m,T){for(var H=-1,G=o.criteria,te=m.criteria,he=G.length,fe=T.length;++H<he;){var be=Nb(G[H],te[H]);if(be){if(H>=fe)return be;var Ie=T[H];return be*(Ie=="desc"?-1:1)}}return o.index-m.index}function Db(o,m,T,H){for(var G=-1,te=o.length,he=T.length,fe=-1,be=m.length,Ie=lr(te-he,0),Le=ke(be+Ie),De=!H;++fe<be;)Le[fe]=m[fe];for(;++G<he;)(De||G<te)&&(Le[T[G]]=o[G]);for(;Ie--;)Le[fe++]=o[G++];return Le}function Fb(o,m,T,H){for(var G=-1,te=o.length,he=-1,fe=T.length,be=-1,Ie=m.length,Le=lr(te-fe,0),De=ke(Le+Ie),Ye=!H;++G<Le;)De[G]=o[G];for(var rt=G;++be<Ie;)De[rt+be]=m[be];for(;++he<fe;)(Ye||G<te)&&(De[rt+T[he]]=o[G++]);return De}function li(o,m){var T=-1,H=o.length;for(m||(m=ke(H));++T<H;)m[T]=o[T];return m}function vo(o,m,T,H){var G=!T;T||(T={});for(var te=-1,he=m.length;++te<he;){var fe=m[te],be=H?H(T[fe],o[fe],fe,T,o):e;be===e&&(be=o[fe]),G?go(T,fe,be):cl(T,fe,be)}return T}function uI(o,m){return vo(o,qd(o),m)}function hI(o,m){return vo(o,Xb(o),m)}function jc(o,m){return function(T,H){var G=$t(T)?pa:LE,te=m?m():{};return G(T,o,pt(H,2),te)}}function ya(o){return Pt(function(m,T){var H=-1,G=T.length,te=G>1?T[G-1]:e,he=G>2?T[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,he&&Gr(T[0],T[1],he)&&(te=G<3?e:te,G=1),m=Ft(m);++H<G;){var fe=T[H];fe&&o(m,fe,H,te)}return m})}function Pb(o,m){return function(T,H){if(T==null)return T;if(!ci(T))return o(T,H);for(var G=T.length,te=m?G:-1,he=Ft(T);(m?te--:++te<G)&&H(he[te],te,he)!==!1;);return T}}function Wb(o){return function(m,T,H){for(var G=-1,te=Ft(m),he=H(m),fe=he.length;fe--;){var be=he[o?fe:++G];if(T(te[be],be,te)===!1)break}return m}}function dI(o,m,T){var H=m&b,G=pl(o);function te(){var he=this&&this!==Nt&&this instanceof te?G:o;return he.apply(H?T:this,arguments)}return te}function Bb(o){return function(m){m=an(m);var T=pe(m)?yt(m):e,H=T?T[0]:m.charAt(0),G=T?es(T,1).join(""):m.slice(1);return H[o]()+G}}function ba(o){return function(m){return F(W0(P0(m).replace(_o,"")),o,"")}}function pl(o){return function(){var m=arguments;switch(m.length){case 0:return new o;case 1:return new o(m[0]);case 2:return new o(m[0],m[1]);case 3:return new o(m[0],m[1],m[2]);case 4:return new o(m[0],m[1],m[2],m[3]);case 5:return new o(m[0],m[1],m[2],m[3],m[4]);case 6:return new o(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new o(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var T=va(o.prototype),H=o.apply(T,m);return Nn(H)?H:T}}function fI(o,m,T){var H=pl(o);function G(){for(var te=arguments.length,he=ke(te),fe=te,be=wa(G);fe--;)he[fe]=arguments[fe];var Ie=te<3&&he[0]!==be&&he[te-1]!==be?[]:He(he,be);if(te-=Ie.length,te<T)return Vb(o,m,Hc,G.placeholder,e,he,Ie,e,e,T-te);var Le=this&&this!==Nt&&this instanceof G?H:o;return rn(Le,this,he)}return G}function zb(o){return function(m,T,H){var G=Ft(m);if(!ci(m)){var te=pt(T,3);m=fr(m),T=function(fe){return te(G[fe],fe,G)}}var he=o(m,T,H);return he>-1?G[te?m[he]:he]:e}}function jb(o){return Io(function(m){var T=m.length,H=T,G=Ni.prototype.thru;for(o&&m.reverse();H--;){var te=m[H];if(typeof te!="function")throw new bn(g);if(G&&!he&&qc(te)=="wrapper")var he=new Ni([],!0)}for(H=he?H:T;++H<T;){te=m[H];var fe=qc(te),be=fe=="wrapper"?Vd(te):e;be&&Yd(be[0])&&be[1]==(D|M|C|I)&&!be[4].length&&be[9]==1?he=he[qc(be[0])].apply(he,be[3]):he=te.length==1&&Yd(te)?he[fe]():he.thru(te)}return function(){var Ie=arguments,Le=Ie[0];if(he&&Ie.length==1&&$t(Le))return he.plant(Le).value();for(var De=0,Ye=T?m[De].apply(this,Ie):Le;++De<T;)Ye=m[De].call(this,Ye);return Ye}})}function Hc(o,m,T,H,G,te,he,fe,be,Ie){var Le=m&D,De=m&b,Ye=m&x,rt=m&(M|_),gt=m&E,Rt=Ye?e:pl(o);function ft(){for(var jt=arguments.length,Kt=ke(jt),ki=jt;ki--;)Kt[ki]=arguments[ki];if(rt)var Yr=wa(ft),Ai=Sn(Kt,Yr);if(H&&(Kt=Db(Kt,H,G,rt)),te&&(Kt=Fb(Kt,te,he,rt)),jt-=Ai,rt&&jt<Ie){var Kn=He(Kt,Yr);return Vb(o,m,Hc,ft.placeholder,T,Kt,Kn,fe,be,Ie-jt)}var to=De?T:this,No=Ye?to[o]:o;return jt=Kt.length,fe?Kt=LI(Kt,fe):gt&&jt>1&&Kt.reverse(),Le&&be<jt&&(Kt.length=be),this&&this!==Nt&&this instanceof ft&&(No=Rt||pl(No)),No.apply(to,Kt)}return ft}function Hb(o,m){return function(T,H){return zE(T,o,m(H),{})}}function Uc(o,m){return function(T,H){var G;if(T===e&&H===e)return m;if(T!==e&&(G=T),H!==e){if(G===e)return H;typeof T=="string"||typeof H=="string"?(T=xi(T),H=xi(H)):(T=Mb(T),H=Mb(H)),G=o(T,H)}return G}}function zd(o){return Io(function(m){return m=S(m,Gt(pt())),Pt(function(T){var H=this;return o(m,function(G){return rn(G,H,T)})})})}function Vc(o,m){m=m===e?" ":xi(m);var T=m.length;if(T<2)return T?Od(m,o):m;var H=Od(m,Ic(o/Dt(m)));return pe(m)?es(yt(H),0,o).join(""):H.slice(0,o)}function pI(o,m,T,H){var G=m&b,te=pl(o);function he(){for(var fe=-1,be=arguments.length,Ie=-1,Le=H.length,De=ke(Le+be),Ye=this&&this!==Nt&&this instanceof he?te:o;++Ie<Le;)De[Ie]=H[Ie];for(;be--;)De[Ie++]=arguments[++fe];return rn(Ye,G?T:this,De)}return he}function Ub(o){return function(m,T,H){return H&&typeof H!="number"&&Gr(m,T,H)&&(T=H=e),m=Oo(m),T===e?(T=m,m=0):T=Oo(T),H=H===e?m<T?1:-1:Oo(H),JE(m,T,H,o)}}function Kc(o){return function(m,T){return typeof m=="string"&&typeof T=="string"||(m=Wi(m),T=Wi(T)),o(m,T)}}function Vb(o,m,T,H,G,te,he,fe,be,Ie){var Le=m&M,De=Le?he:e,Ye=Le?e:he,rt=Le?te:e,gt=Le?e:te;m|=Le?C:L,m&=~(Le?L:C),m&N||(m&=-4);var Rt=[o,m,G,rt,De,gt,Ye,fe,be,Ie],ft=T.apply(e,Rt);return Yd(o)&&r0(ft,Rt),ft.placeholder=H,i0(ft,o,m)}function jd(o){var m=Jt[o];return function(T,H){if(T=Wi(T),H=H==null?0:Or(Et(H),292),H&&ib(T)){var G=(an(T)+"e").split("e"),te=m(G[0]+"e"+(+G[1]+H));return G=(an(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-H))}return m(T)}}var gI=ga&&1/Ge(new ga([,-0]))[1]==U?function(o){return new ga(o)}:df;function Kb(o){return function(m){var T=Nr(m);return T==et?Pe(m):T==fn?Qe(m):kn(m,o(m))}}function Eo(o,m,T,H,G,te,he,fe){var be=m&x;if(!be&&typeof o!="function")throw new bn(g);var Ie=H?H.length:0;if(Ie||(m&=-97,H=G=e),he=he===e?he:lr(Et(he),0),fe=fe===e?fe:Et(fe),Ie-=G?G.length:0,m&L){var Le=H,De=G;H=G=e}var Ye=be?e:Vd(o),rt=[o,m,T,H,G,Le,De,te,he,fe];if(Ye&&EI(rt,Ye),o=rt[0],m=rt[1],T=rt[2],H=rt[3],G=rt[4],fe=rt[9]=rt[9]===e?be?0:o.length:lr(rt[9]-Ie,0),!fe&&m&(M|_)&&(m&=-25),!m||m==b)var gt=dI(o,m,T);else m==M||m==_?gt=fI(o,m,fe):(m==C||m==(b|C))&&!G.length?gt=pI(o,m,T,H):gt=Hc.apply(e,rt);var Rt=Ye?Sb:r0;return i0(Rt(gt,rt),o,m)}function qb(o,m,T,H){return o===e||eo(o,$o[T])&&!sn.call(H,T)?m:o}function Gb(o,m,T,H,G,te){return Nn(o)&&Nn(m)&&(te.set(m,o),Wc(o,m,e,Gb,te),te.delete(m)),o}function mI(o){return vl(o)?e:o}function Yb(o,m,T,H,G,te){var he=T&s,fe=o.length,be=m.length;if(fe!=be&&!(he&&be>fe))return!1;var Ie=te.get(o),Le=te.get(m);if(Ie&&Le)return Ie==m&&Le==o;var De=-1,Ye=!0,rt=T&f?new Ns:e;for(te.set(o,m),te.set(m,o);++De<fe;){var gt=o[De],Rt=m[De];if(H)var ft=he?H(Rt,gt,De,m,o,te):H(gt,Rt,De,o,m,te);if(ft!==e){if(ft)continue;Ye=!1;break}if(rt){if(!j(m,function(jt,Kt){if(!Ct(rt,Kt)&&(gt===jt||G(gt,jt,T,H,te)))return rt.push(Kt)})){Ye=!1;break}}else if(!(gt===Rt||G(gt,Rt,T,H,te))){Ye=!1;break}}return te.delete(o),te.delete(m),Ye}function vI(o,m,T,H,G,te,he){switch(T){case jn:if(o.byteLength!=m.byteLength||o.byteOffset!=m.byteOffset)return!1;o=o.buffer,m=m.buffer;case En:return!(o.byteLength!=m.byteLength||!te(new $c(o),new $c(m)));case Me:case Te:case Bt:return eo(+o,+m);case qe:return o.name==m.name&&o.message==m.message;case gr:case ur:return o==m+"";case et:var fe=Pe;case fn:var be=H&s;if(fe||(fe=Ge),o.size!=m.size&&!be)return!1;var Ie=he.get(o);if(Ie)return Ie==m;H|=f,he.set(o,m);var Le=Yb(fe(o),fe(m),H,G,te,he);return he.delete(o),Le;case ht:if(ll)return ll.call(o)==ll.call(m)}return!1}function yI(o,m,T,H,G,te){var he=T&s,fe=Hd(o),be=fe.length,Ie=Hd(m),Le=Ie.length;if(be!=Le&&!he)return!1;for(var De=be;De--;){var Ye=fe[De];if(!(he?Ye in m:sn.call(m,Ye)))return!1}var rt=te.get(o),gt=te.get(m);if(rt&>)return rt==m&>==o;var Rt=!0;te.set(o,m),te.set(m,o);for(var ft=he;++De<be;){Ye=fe[De];var jt=o[Ye],Kt=m[Ye];if(H)var ki=he?H(Kt,jt,Ye,m,o,te):H(jt,Kt,Ye,o,m,te);if(!(ki===e?jt===Kt||G(jt,Kt,T,H,te):ki)){Rt=!1;break}ft||(ft=Ye=="constructor")}if(Rt&&!ft){var Yr=o.constructor,Ai=m.constructor;Yr!=Ai&&"constructor"in o&&"constructor"in m&&!(typeof Yr=="function"&&Yr instanceof Yr&&typeof Ai=="function"&&Ai instanceof Ai)&&(Rt=!1)}return te.delete(o),te.delete(m),Rt}function Io(o){return Zd(t0(o,e,u0),o+"")}function Hd(o){return gb(o,fr,qd)}function Ud(o){return gb(o,ui,Xb)}var Vd=Lc?function(o){return Lc.get(o)}:df;function qc(o){for(var m=o.name+"",T=ma[m],H=sn.call(ma,m)?T.length:0;H--;){var G=T[H],te=G.func;if(te==null||te==o)return G.name}return m}function wa(o){var m=sn.call(J,"placeholder")?J:o;return m.placeholder}function pt(){var o=J.iteratee||uf;return o=o===uf?yb:o,arguments.length?o(arguments[0],arguments[1]):o}function Gc(o,m){var T=o.__data__;return SI(m)?T[typeof m=="string"?"string":"hash"]:T.map}function Kd(o){for(var m=fr(o),T=m.length;T--;){var H=m[T],G=o[H];m[T]=[H,G,Jb(G)]}return m}function Ps(o,m){var T=oe(o,m);return vb(T)?T:e}function bI(o){var m=sn.call(o,Ls),T=o[Ls];try{o[Ls]=e;var H=!0}catch{}var G=_c.call(o);return H&&(m?o[Ls]=T:delete o[Ls]),G}var qd=wd?function(o){return o==null?[]:(o=Ft(o),wr(wd(o),function(m){return nb.call(o,m)}))}:ff,Xb=wd?function(o){for(var m=[];o;)A(m,qd(o)),o=Mc(o);return m}:ff,Nr=qr;(xd&&Nr(new xd(new ArrayBuffer(1)))!=jn||ol&&Nr(new ol)!=et||Cd&&Nr(Cd.resolve())!=tr||ga&&Nr(new ga)!=fn||sl&&Nr(new sl)!=St)&&(Nr=function(o){var m=qr(o),T=m==At?o.constructor:e,H=T?Ws(T):"";if(H)switch(H){case tE:return jn;case nE:return et;case rE:return tr;case iE:return fn;case oE:return St}return m});function wI(o,m,T){for(var H=-1,G=T.length;++H<G;){var te=T[H],he=te.size;switch(te.type){case"drop":o+=he;break;case"dropRight":m-=he;break;case"take":m=Or(m,o+he);break;case"takeRight":o=lr(o,m-he);break}}return{start:o,end:m}}function xI(o){var m=o.match(so);return m?m[1].split(ao):[]}function Zb(o,m,T){m=Jo(m,o);for(var H=-1,G=m.length,te=!1;++H<G;){var he=Ji(m[H]);if(!(te=o!=null&&T(o,he)))break;o=o[he]}return te||++H!=G?te:(G=o==null?0:o.length,!!G&&tu(G)&&Ro(he,G)&&($t(o)||Bs(o)))}function CI(o){var m=o.length,T=new o.constructor(m);return m&&typeof o[0]=="string"&&sn.call(o,"index")&&(T.index=o.index,T.input=o.input),T}function Qb(o){return typeof o.constructor=="function"&&!gl(o)?va(Mc(o)):{}}function kI(o,m,T){var H=o.constructor;switch(m){case En:return Bd(o);case Me:case Te:return new H(+o);case jn:return sI(o,T);case nr:case pn:case Dn:case In:case qt:case cn:case Mr:case jr:case mr:return Ob(o,T);case et:return new H;case Bt:case ur:return new H(o);case gr:return aI(o);case fn:return new H;case ht:return lI(o)}}function AI(o,m){var T=m.length;if(!T)return o;var H=T-1;return m[H]=(T>1?"& ":"")+m[H],m=m.join(T>2?", ":" "),o.replace(ii,`{
|
|
1457
|
+
/* [wrapped with `+m+`] */
|
|
1458
|
+
`)}function _I(o){return $t(o)||Bs(o)||!!(rb&&o&&o[rb])}function Ro(o,m){var T=typeof o;return m=m??q,!!m&&(T=="number"||T!="symbol"&&Fe.test(o))&&o>-1&&o%1==0&&o<m}function Gr(o,m,T){if(!Nn(T))return!1;var H=typeof m;return(H=="number"?ci(T)&&Ro(m,T.length):H=="string"&&m in T)?eo(T[m],o):!1}function Gd(o,m){if($t(o))return!1;var T=typeof o;return T=="number"||T=="symbol"||T=="boolean"||o==null||Ci(o)?!0:Cn.test(o)||!ri.test(o)||m!=null&&o in Ft(m)}function SI(o){var m=typeof o;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?o!=="__proto__":o===null}function Yd(o){var m=qc(o),T=J[m];if(typeof T!="function"||!(m in Vt.prototype))return!1;if(o===T)return!0;var H=Vd(T);return!!H&&o===H[0]}function $I(o){return!!Jy&&Jy in o}var MI=kc?Lo:pf;function gl(o){var m=o&&o.constructor,T=typeof m=="function"&&m.prototype||$o;return o===T}function Jb(o){return o===o&&!Nn(o)}function e0(o,m){return function(T){return T==null?!1:T[o]===m&&(m!==e||o in Ft(T))}}function TI(o){var m=Jc(o,function(H){return T.size===a&&T.clear(),H}),T=m.cache;return m}function EI(o,m){var T=o[1],H=m[1],G=T|H,te=G<(b|x|D),he=H==D&&T==M||H==D&&T==I&&o[7].length<=m[8]||H==(D|I)&&m[7].length<=m[8]&&T==M;if(!(te||he))return o;H&b&&(o[2]=m[2],G|=T&b?0:N);var fe=m[3];if(fe){var be=o[3];o[3]=be?Db(be,fe,m[4]):fe,o[4]=be?He(o[3],l):m[4]}return fe=m[5],fe&&(be=o[5],o[5]=be?Fb(be,fe,m[6]):fe,o[6]=be?He(o[5],l):m[6]),fe=m[7],fe&&(o[7]=fe),H&D&&(o[8]=o[8]==null?m[8]:Or(o[8],m[8])),o[9]==null&&(o[9]=m[9]),o[0]=m[0],o[1]=G,o}function II(o){var m=[];if(o!=null)for(var T in Ft(o))m.push(T);return m}function RI(o){return _c.call(o)}function t0(o,m,T){return m=lr(m===e?o.length-1:m,0),function(){for(var H=arguments,G=-1,te=lr(H.length-m,0),he=ke(te);++G<te;)he[G]=H[m+G];G=-1;for(var fe=ke(m+1);++G<m;)fe[G]=H[G];return fe[m]=T(he),rn(o,this,fe)}}function n0(o,m){return m.length<2?o:Fs(o,Fi(m,0,-1))}function LI(o,m){for(var T=o.length,H=Or(m.length,T),G=li(o);H--;){var te=m[H];o[H]=Ro(te,T)?G[te]:e}return o}function Xd(o,m){if(!(m==="constructor"&&typeof o[m]=="function")&&m!="__proto__")return o[m]}var r0=o0(Sb),ml=GT||function(o,m){return Nt.setTimeout(o,m)},Zd=o0(nI);function i0(o,m,T){var H=m+"";return Zd(o,AI(H,OI(xI(H),T)))}function o0(o){var m=0,T=0;return function(){var H=QT(),G=$-(H-T);if(T=H,G>0){if(++m>=O)return arguments[0]}else m=0;return o.apply(e,arguments)}}function Yc(o,m){var T=-1,H=o.length,G=H-1;for(m=m===e?H:m;++T<m;){var te=Ld(T,G),he=o[te];o[te]=o[T],o[T]=he}return o.length=m,o}var s0=TI(function(o){var m=[];return o.charCodeAt(0)===46&&m.push(""),o.replace(vr,function(T,H,G,te){m.push(G?te.replace(oi,"$1"):H||T)}),m});function Ji(o){if(typeof o=="string"||Ci(o))return o;var m=o+"";return m=="0"&&1/o==-U?"-0":m}function Ws(o){if(o!=null){try{return Ac.call(o)}catch{}try{return o+""}catch{}}return""}function OI(o,m){return sr(se,function(T){var H="_."+T[0];m&T[1]&&!si(o,H)&&o.push(H)}),o.sort()}function a0(o){if(o instanceof Vt)return o.clone();var m=new Ni(o.__wrapped__,o.__chain__);return m.__actions__=li(o.__actions__),m.__index__=o.__index__,m.__values__=o.__values__,m}function NI(o,m,T){(T?Gr(o,m,T):m===e)?m=1:m=lr(Et(m),0);var H=o==null?0:o.length;if(!H||m<1)return[];for(var G=0,te=0,he=ke(Ic(H/m));G<H;)he[te++]=Fi(o,G,G+=m);return he}function DI(o){for(var m=-1,T=o==null?0:o.length,H=0,G=[];++m<T;){var te=o[m];te&&(G[H++]=te)}return G}function FI(){var o=arguments.length;if(!o)return[];for(var m=ke(o-1),T=arguments[0],H=o;H--;)m[H-1]=arguments[H];return A($t(T)?li(T):[T],kr(m,1))}var PI=Pt(function(o,m){return Vn(o)?ul(o,kr(m,1,Vn,!0)):[]}),WI=Pt(function(o,m){var T=Pi(m);return Vn(T)&&(T=e),Vn(o)?ul(o,kr(m,1,Vn,!0),pt(T,2)):[]}),BI=Pt(function(o,m){var T=Pi(m);return Vn(T)&&(T=e),Vn(o)?ul(o,kr(m,1,Vn,!0),e,T):[]});function zI(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Et(m),Fi(o,m<0?0:m,H)):[]}function jI(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Et(m),m=H-m,Fi(o,0,m<0?0:m)):[]}function HI(o,m){return o&&o.length?zc(o,pt(m,3),!0,!0):[]}function UI(o,m){return o&&o.length?zc(o,pt(m,3),!0):[]}function VI(o,m,T,H){var G=o==null?0:o.length;return G?(T&&typeof T!="number"&&Gr(o,m,T)&&(T=0,H=G),FE(o,m,T,H)):[]}function l0(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var G=T==null?0:Et(T);return G<0&&(G=lr(H+G,0)),ue(o,pt(m,3),G)}function c0(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var G=H-1;return T!==e&&(G=Et(T),G=T<0?lr(H+G,0):Or(G,H-1)),ue(o,pt(m,3),G,!0)}function u0(o){var m=o==null?0:o.length;return m?kr(o,1):[]}function KI(o){var m=o==null?0:o.length;return m?kr(o,U):[]}function qI(o,m){var T=o==null?0:o.length;return T?(m=m===e?1:Et(m),kr(o,m)):[]}function GI(o){for(var m=-1,T=o==null?0:o.length,H={};++m<T;){var G=o[m];go(H,G[0],G[1])}return H}function h0(o){return o&&o.length?o[0]:e}function YI(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var G=T==null?0:Et(T);return G<0&&(G=lr(H+G,0)),ye(o,m,G)}function XI(o){var m=o==null?0:o.length;return m?Fi(o,0,-1):[]}var ZI=Pt(function(o){var m=S(o,Pd);return m.length&&m[0]===o[0]?Md(m):[]}),QI=Pt(function(o){var m=Pi(o),T=S(o,Pd);return m===Pi(T)?m=e:T.pop(),T.length&&T[0]===o[0]?Md(T,pt(m,2)):[]}),JI=Pt(function(o){var m=Pi(o),T=S(o,Pd);return m=typeof m=="function"?m:e,m&&T.pop(),T.length&&T[0]===o[0]?Md(T,e,m):[]});function eR(o,m){return o==null?"":XT.call(o,m)}function Pi(o){var m=o==null?0:o.length;return m?o[m-1]:e}function tR(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var G=H;return T!==e&&(G=Et(T),G=G<0?lr(H+G,0):Or(G,H-1)),m===m?Xt(o,m,G):ue(o,ve,G,!0)}function nR(o,m){return o&&o.length?Cb(o,Et(m)):e}var rR=Pt(d0);function d0(o,m){return o&&o.length&&m&&m.length?Rd(o,m):o}function iR(o,m,T){return o&&o.length&&m&&m.length?Rd(o,m,pt(T,2)):o}function oR(o,m,T){return o&&o.length&&m&&m.length?Rd(o,m,e,T):o}var sR=Io(function(o,m){var T=o==null?0:o.length,H=Ad(o,m);return _b(o,S(m,function(G){return Ro(G,T)?+G:G}).sort(Nb)),H});function aR(o,m){var T=[];if(!(o&&o.length))return T;var H=-1,G=[],te=o.length;for(m=pt(m,3);++H<te;){var he=o[H];m(he,H,o)&&(T.push(he),G.push(H))}return _b(o,G),T}function Qd(o){return o==null?o:eE.call(o)}function lR(o,m,T){var H=o==null?0:o.length;return H?(T&&typeof T!="number"&&Gr(o,m,T)?(m=0,T=H):(m=m==null?0:Et(m),T=T===e?H:Et(T)),Fi(o,m,T)):[]}function cR(o,m){return Bc(o,m)}function uR(o,m,T){return Nd(o,m,pt(T,2))}function hR(o,m){var T=o==null?0:o.length;if(T){var H=Bc(o,m);if(H<T&&eo(o[H],m))return H}return-1}function dR(o,m){return Bc(o,m,!0)}function fR(o,m,T){return Nd(o,m,pt(T,2),!0)}function pR(o,m){var T=o==null?0:o.length;if(T){var H=Bc(o,m,!0)-1;if(eo(o[H],m))return H}return-1}function gR(o){return o&&o.length?$b(o):[]}function mR(o,m){return o&&o.length?$b(o,pt(m,2)):[]}function vR(o){var m=o==null?0:o.length;return m?Fi(o,1,m):[]}function yR(o,m,T){return o&&o.length?(m=T||m===e?1:Et(m),Fi(o,0,m<0?0:m)):[]}function bR(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Et(m),m=H-m,Fi(o,m<0?0:m,H)):[]}function wR(o,m){return o&&o.length?zc(o,pt(m,3),!1,!0):[]}function xR(o,m){return o&&o.length?zc(o,pt(m,3)):[]}var CR=Pt(function(o){return Qo(kr(o,1,Vn,!0))}),kR=Pt(function(o){var m=Pi(o);return Vn(m)&&(m=e),Qo(kr(o,1,Vn,!0),pt(m,2))}),AR=Pt(function(o){var m=Pi(o);return m=typeof m=="function"?m:e,Qo(kr(o,1,Vn,!0),e,m)});function _R(o){return o&&o.length?Qo(o):[]}function SR(o,m){return o&&o.length?Qo(o,pt(m,2)):[]}function $R(o,m){return m=typeof m=="function"?m:e,o&&o.length?Qo(o,e,m):[]}function Jd(o){if(!(o&&o.length))return[];var m=0;return o=wr(o,function(T){if(Vn(T))return m=lr(T.length,m),!0}),Je(m,function(T){return S(o,Oe(T))})}function f0(o,m){if(!(o&&o.length))return[];var T=Jd(o);return m==null?T:S(T,function(H){return rn(m,e,H)})}var MR=Pt(function(o,m){return Vn(o)?ul(o,m):[]}),TR=Pt(function(o){return Fd(wr(o,Vn))}),ER=Pt(function(o){var m=Pi(o);return Vn(m)&&(m=e),Fd(wr(o,Vn),pt(m,2))}),IR=Pt(function(o){var m=Pi(o);return m=typeof m=="function"?m:e,Fd(wr(o,Vn),e,m)}),RR=Pt(Jd);function LR(o,m){return Ib(o||[],m||[],cl)}function OR(o,m){return Ib(o||[],m||[],fl)}var NR=Pt(function(o){var m=o.length,T=m>1?o[m-1]:e;return T=typeof T=="function"?(o.pop(),T):e,f0(o,T)});function p0(o){var m=J(o);return m.__chain__=!0,m}function DR(o,m){return m(o),o}function Xc(o,m){return m(o)}var FR=Io(function(o){var m=o.length,T=m?o[0]:0,H=this.__wrapped__,G=function(te){return Ad(te,o)};return m>1||this.__actions__.length||!(H instanceof Vt)||!Ro(T)?this.thru(G):(H=H.slice(T,+T+(m?1:0)),H.__actions__.push({func:Xc,args:[G],thisArg:e}),new Ni(H,this.__chain__).thru(function(te){return m&&!te.length&&te.push(e),te}))});function PR(){return p0(this)}function WR(){return new Ni(this.value(),this.__chain__)}function BR(){this.__values__===e&&(this.__values__=M0(this.value()));var o=this.__index__>=this.__values__.length,m=o?e:this.__values__[this.__index__++];return{done:o,value:m}}function zR(){return this}function jR(o){for(var m,T=this;T instanceof Nc;){var H=a0(T);H.__index__=0,H.__values__=e,m?G.__wrapped__=H:m=H;var G=H;T=T.__wrapped__}return G.__wrapped__=o,m}function HR(){var o=this.__wrapped__;if(o instanceof Vt){var m=o;return this.__actions__.length&&(m=new Vt(this)),m=m.reverse(),m.__actions__.push({func:Xc,args:[Qd],thisArg:e}),new Ni(m,this.__chain__)}return this.thru(Qd)}function UR(){return Eb(this.__wrapped__,this.__actions__)}var VR=jc(function(o,m,T){sn.call(o,T)?++o[T]:go(o,T,1)});function KR(o,m,T){var H=$t(o)?po:DE;return T&&Gr(o,m,T)&&(m=e),H(o,pt(m,3))}function qR(o,m){var T=$t(o)?wr:fb;return T(o,pt(m,3))}var GR=zb(l0),YR=zb(c0);function XR(o,m){return kr(Zc(o,m),1)}function ZR(o,m){return kr(Zc(o,m),U)}function QR(o,m,T){return T=T===e?1:Et(T),kr(Zc(o,m),T)}function g0(o,m){var T=$t(o)?sr:Zo;return T(o,pt(m,3))}function m0(o,m){var T=$t(o)?Lr:db;return T(o,pt(m,3))}var JR=jc(function(o,m,T){sn.call(o,T)?o[T].push(m):go(o,T,[m])});function eL(o,m,T,H){o=ci(o)?o:Ca(o),T=T&&!H?Et(T):0;var G=o.length;return T<0&&(T=lr(G+T,0)),nu(o)?T<=G&&o.indexOf(m,T)>-1:!!G&&ye(o,m,T)>-1}var tL=Pt(function(o,m,T){var H=-1,G=typeof m=="function",te=ci(o)?ke(o.length):[];return Zo(o,function(he){te[++H]=G?rn(m,he,T):hl(he,m,T)}),te}),nL=jc(function(o,m,T){go(o,T,m)});function Zc(o,m){var T=$t(o)?S:bb;return T(o,pt(m,3))}function rL(o,m,T,H){return o==null?[]:($t(m)||(m=m==null?[]:[m]),T=H?e:T,$t(T)||(T=T==null?[]:[T]),kb(o,m,T))}var iL=jc(function(o,m,T){o[T?0:1].push(m)},function(){return[[],[]]});function oL(o,m,T){var H=$t(o)?F:Ve,G=arguments.length<3;return H(o,pt(m,4),T,G,Zo)}function sL(o,m,T){var H=$t(o)?W:Ve,G=arguments.length<3;return H(o,pt(m,4),T,G,db)}function aL(o,m){var T=$t(o)?wr:fb;return T(o,eu(pt(m,3)))}function lL(o){var m=$t(o)?lb:eI;return m(o)}function cL(o,m,T){(T?Gr(o,m,T):m===e)?m=1:m=Et(m);var H=$t(o)?IE:tI;return H(o,m)}function uL(o){var m=$t(o)?RE:rI;return m(o)}function hL(o){if(o==null)return 0;if(ci(o))return nu(o)?Dt(o):o.length;var m=Nr(o);return m==et||m==fn?o.size:Ed(o).length}function dL(o,m,T){var H=$t(o)?j:iI;return T&&Gr(o,m,T)&&(m=e),H(o,pt(m,3))}var fL=Pt(function(o,m){if(o==null)return[];var T=m.length;return T>1&&Gr(o,m[0],m[1])?m=[]:T>2&&Gr(m[0],m[1],m[2])&&(m=[m[0]]),kb(o,kr(m,1),[])}),Qc=qT||function(){return Nt.Date.now()};function pL(o,m){if(typeof m!="function")throw new bn(g);return o=Et(o),function(){if(--o<1)return m.apply(this,arguments)}}function v0(o,m,T){return m=T?e:m,m=o&&m==null?o.length:m,Eo(o,D,e,e,e,e,m)}function y0(o,m){var T;if(typeof m!="function")throw new bn(g);return o=Et(o),function(){return--o>0&&(T=m.apply(this,arguments)),o<=1&&(m=e),T}}var ef=Pt(function(o,m,T){var H=b;if(T.length){var G=He(T,wa(ef));H|=C}return Eo(o,H,m,T,G)}),b0=Pt(function(o,m,T){var H=b|x;if(T.length){var G=He(T,wa(b0));H|=C}return Eo(m,H,o,T,G)});function w0(o,m,T){m=T?e:m;var H=Eo(o,M,e,e,e,e,e,m);return H.placeholder=w0.placeholder,H}function x0(o,m,T){m=T?e:m;var H=Eo(o,_,e,e,e,e,e,m);return H.placeholder=x0.placeholder,H}function C0(o,m,T){var H,G,te,he,fe,be,Ie=0,Le=!1,De=!1,Ye=!0;if(typeof o!="function")throw new bn(g);m=Wi(m)||0,Nn(T)&&(Le=!!T.leading,De="maxWait"in T,te=De?lr(Wi(T.maxWait)||0,m):te,Ye="trailing"in T?!!T.trailing:Ye);function rt(Kn){var to=H,No=G;return H=G=e,Ie=Kn,he=o.apply(No,to),he}function gt(Kn){return Ie=Kn,fe=ml(jt,m),Le?rt(Kn):he}function Rt(Kn){var to=Kn-be,No=Kn-Ie,j0=m-to;return De?Or(j0,te-No):j0}function ft(Kn){var to=Kn-be,No=Kn-Ie;return be===e||to>=m||to<0||De&&No>=te}function jt(){var Kn=Qc();if(ft(Kn))return Kt(Kn);fe=ml(jt,Rt(Kn))}function Kt(Kn){return fe=e,Ye&&H?rt(Kn):(H=G=e,he)}function ki(){fe!==e&&Rb(fe),Ie=0,H=be=G=fe=e}function Yr(){return fe===e?he:Kt(Qc())}function Ai(){var Kn=Qc(),to=ft(Kn);if(H=arguments,G=this,be=Kn,to){if(fe===e)return gt(be);if(De)return Rb(fe),fe=ml(jt,m),rt(be)}return fe===e&&(fe=ml(jt,m)),he}return Ai.cancel=ki,Ai.flush=Yr,Ai}var gL=Pt(function(o,m){return hb(o,1,m)}),mL=Pt(function(o,m,T){return hb(o,Wi(m)||0,T)});function vL(o){return Eo(o,E)}function Jc(o,m){if(typeof o!="function"||m!=null&&typeof m!="function")throw new bn(g);var T=function(){var H=arguments,G=m?m.apply(this,H):H[0],te=T.cache;if(te.has(G))return te.get(G);var he=o.apply(this,H);return T.cache=te.set(G,he)||te,he};return T.cache=new(Jc.Cache||To),T}Jc.Cache=To;function eu(o){if(typeof o!="function")throw new bn(g);return function(){var m=arguments;switch(m.length){case 0:return!o.call(this);case 1:return!o.call(this,m[0]);case 2:return!o.call(this,m[0],m[1]);case 3:return!o.call(this,m[0],m[1],m[2])}return!o.apply(this,m)}}function yL(o){return y0(2,o)}var bL=oI(function(o,m){m=m.length==1&&$t(m[0])?S(m[0],Gt(pt())):S(kr(m,1),Gt(pt()));var T=m.length;return Pt(function(H){for(var G=-1,te=Or(H.length,T);++G<te;)H[G]=m[G].call(this,H[G]);return rn(o,this,H)})}),tf=Pt(function(o,m){var T=He(m,wa(tf));return Eo(o,C,e,m,T)}),k0=Pt(function(o,m){var T=He(m,wa(k0));return Eo(o,L,e,m,T)}),wL=Io(function(o,m){return Eo(o,I,e,e,e,m)});function xL(o,m){if(typeof o!="function")throw new bn(g);return m=m===e?m:Et(m),Pt(o,m)}function CL(o,m){if(typeof o!="function")throw new bn(g);return m=m==null?0:lr(Et(m),0),Pt(function(T){var H=T[m],G=es(T,0,m);return H&&A(G,H),rn(o,this,G)})}function kL(o,m,T){var H=!0,G=!0;if(typeof o!="function")throw new bn(g);return Nn(T)&&(H="leading"in T?!!T.leading:H,G="trailing"in T?!!T.trailing:G),C0(o,m,{leading:H,maxWait:m,trailing:G})}function AL(o){return v0(o,1)}function _L(o,m){return tf(Wd(m),o)}function SL(){if(!arguments.length)return[];var o=arguments[0];return $t(o)?o:[o]}function $L(o){return Di(o,i)}function ML(o,m){return m=typeof m=="function"?m:e,Di(o,i,m)}function TL(o){return Di(o,u|i)}function EL(o,m){return m=typeof m=="function"?m:e,Di(o,u|i,m)}function IL(o,m){return m==null||ub(o,m,fr(m))}function eo(o,m){return o===m||o!==o&&m!==m}var RL=Kc($d),LL=Kc(function(o,m){return o>=m}),Bs=mb((function(){return arguments})())?mb:function(o){return Bn(o)&&sn.call(o,"callee")&&!nb.call(o,"callee")},$t=ke.isArray,OL=Yo?Gt(Yo):jE;function ci(o){return o!=null&&tu(o.length)&&!Lo(o)}function Vn(o){return Bn(o)&&ci(o)}function NL(o){return o===!0||o===!1||Bn(o)&&qr(o)==Me}var ts=YT||pf,DL=Wn?Gt(Wn):HE;function FL(o){return Bn(o)&&o.nodeType===1&&!vl(o)}function PL(o){if(o==null)return!0;if(ci(o)&&($t(o)||typeof o=="string"||typeof o.splice=="function"||ts(o)||xa(o)||Bs(o)))return!o.length;var m=Nr(o);if(m==et||m==fn)return!o.size;if(gl(o))return!Ed(o).length;for(var T in o)if(sn.call(o,T))return!1;return!0}function WL(o,m){return dl(o,m)}function BL(o,m,T){T=typeof T=="function"?T:e;var H=T?T(o,m):e;return H===e?dl(o,m,e,T):!!H}function nf(o){if(!Bn(o))return!1;var m=qr(o);return m==qe||m==Ze||typeof o.message=="string"&&typeof o.name=="string"&&!vl(o)}function zL(o){return typeof o=="number"&&ib(o)}function Lo(o){if(!Nn(o))return!1;var m=qr(o);return m==it||m==ct||m==$e||m==An}function A0(o){return typeof o=="number"&&o==Et(o)}function tu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=q}function Nn(o){var m=typeof o;return o!=null&&(m=="object"||m=="function")}function Bn(o){return o!=null&&typeof o=="object"}var _0=bi?Gt(bi):VE;function jL(o,m){return o===m||Td(o,m,Kd(m))}function HL(o,m,T){return T=typeof T=="function"?T:e,Td(o,m,Kd(m),T)}function UL(o){return S0(o)&&o!=+o}function VL(o){if(MI(o))throw new lt(p);return vb(o)}function KL(o){return o===null}function qL(o){return o==null}function S0(o){return typeof o=="number"||Bn(o)&&qr(o)==Bt}function vl(o){if(!Bn(o)||qr(o)!=At)return!1;var m=Mc(o);if(m===null)return!0;var T=sn.call(m,"constructor")&&m.constructor;return typeof T=="function"&&T instanceof T&&Ac.call(T)==HT}var rf=wi?Gt(wi):KE;function GL(o){return A0(o)&&o>=-q&&o<=q}var $0=Li?Gt(Li):qE;function nu(o){return typeof o=="string"||!$t(o)&&Bn(o)&&qr(o)==ur}function Ci(o){return typeof o=="symbol"||Bn(o)&&qr(o)==ht}var xa=Rs?Gt(Rs):GE;function YL(o){return o===e}function XL(o){return Bn(o)&&Nr(o)==St}function ZL(o){return Bn(o)&&qr(o)==Qt}var QL=Kc(Id),JL=Kc(function(o,m){return o<=m});function M0(o){if(!o)return[];if(ci(o))return nu(o)?yt(o):li(o);if(il&&o[il])return Ee(o[il]());var m=Nr(o),T=m==et?Pe:m==fn?Ge:Ca;return T(o)}function Oo(o){if(!o)return o===0?o:0;if(o=Wi(o),o===U||o===-U){var m=o<0?-1:1;return m*Q}return o===o?o:0}function Et(o){var m=Oo(o),T=m%1;return m===m?T?m-T:m:0}function T0(o){return o?Ds(Et(o),0,ae):0}function Wi(o){if(typeof o=="number")return o;if(Ci(o))return ee;if(Nn(o)){var m=typeof o.valueOf=="function"?o.valueOf():o;o=Nn(m)?m+"":m}if(typeof o!="string")return o===0?o:+o;o=xt(o);var T=dr.test(o);return T||We.test(o)?bt(o.slice(2),T?2:8):Co.test(o)?ee:+o}function E0(o){return vo(o,ui(o))}function eO(o){return o?Ds(Et(o),-q,q):o===0?o:0}function an(o){return o==null?"":xi(o)}var tO=ya(function(o,m){if(gl(m)||ci(m)){vo(m,fr(m),o);return}for(var T in m)sn.call(m,T)&&cl(o,T,m[T])}),I0=ya(function(o,m){vo(m,ui(m),o)}),R0=ya(function(o,m,T,H){vo(m,ui(m),o,H)}),of=ya(function(o,m,T,H){vo(m,fr(m),o,H)}),nO=Io(Ad);function rO(o,m){var T=va(o);return m==null?T:cb(T,m)}var iO=Pt(function(o,m){o=Ft(o);var T=-1,H=m.length,G=H>2?m[2]:e;for(G&&Gr(m[0],m[1],G)&&(H=1);++T<H;)for(var te=m[T],he=ui(te),fe=-1,be=he.length;++fe<be;){var Ie=he[fe],Le=o[Ie];(Le===e||eo(Le,$o[Ie])&&!sn.call(o,Ie))&&(o[Ie]=te[Ie])}return o}),oO=Pt(function(o){return o.push(e,Gb),rn(L0,e,o)});function sO(o,m){return re(o,pt(m,3),mo)}function aO(o,m){return re(o,pt(m,3),Sd)}function lO(o,m){return o==null?o:_d(o,pt(m,3),ui)}function cO(o,m){return o==null?o:pb(o,pt(m,3),ui)}function uO(o,m){return o&&mo(o,pt(m,3))}function hO(o,m){return o&&Sd(o,pt(m,3))}function dO(o){return o==null?[]:Pc(o,fr(o))}function fO(o){return o==null?[]:Pc(o,ui(o))}function sf(o,m,T){var H=o==null?e:Fs(o,m);return H===e?T:H}function pO(o,m){return o!=null&&Zb(o,m,PE)}function af(o,m){return o!=null&&Zb(o,m,WE)}var gO=Hb(function(o,m,T){m!=null&&typeof m.toString!="function"&&(m=_c.call(m)),o[m]=T},cf(hi)),mO=Hb(function(o,m,T){m!=null&&typeof m.toString!="function"&&(m=_c.call(m)),sn.call(o,m)?o[m].push(T):o[m]=[T]},pt),vO=Pt(hl);function fr(o){return ci(o)?ab(o):Ed(o)}function ui(o){return ci(o)?ab(o,!0):YE(o)}function yO(o,m){var T={};return m=pt(m,3),mo(o,function(H,G,te){go(T,m(H,G,te),H)}),T}function bO(o,m){var T={};return m=pt(m,3),mo(o,function(H,G,te){go(T,G,m(H,G,te))}),T}var wO=ya(function(o,m,T){Wc(o,m,T)}),L0=ya(function(o,m,T,H){Wc(o,m,T,H)}),xO=Io(function(o,m){var T={};if(o==null)return T;var H=!1;m=S(m,function(te){return te=Jo(te,o),H||(H=te.length>1),te}),vo(o,Ud(o),T),H&&(T=Di(T,u|c|i,mI));for(var G=m.length;G--;)Dd(T,m[G]);return T});function CO(o,m){return O0(o,eu(pt(m)))}var kO=Io(function(o,m){return o==null?{}:ZE(o,m)});function O0(o,m){if(o==null)return{};var T=S(Ud(o),function(H){return[H]});return m=pt(m),Ab(o,T,function(H,G){return m(H,G[0])})}function AO(o,m,T){m=Jo(m,o);var H=-1,G=m.length;for(G||(G=1,o=e);++H<G;){var te=o==null?e:o[Ji(m[H])];te===e&&(H=G,te=T),o=Lo(te)?te.call(o):te}return o}function _O(o,m,T){return o==null?o:fl(o,m,T)}function SO(o,m,T,H){return H=typeof H=="function"?H:e,o==null?o:fl(o,m,T,H)}var N0=Kb(fr),D0=Kb(ui);function $O(o,m,T){var H=$t(o),G=H||ts(o)||xa(o);if(m=pt(m,4),T==null){var te=o&&o.constructor;G?T=H?new te:[]:Nn(o)?T=Lo(te)?va(Mc(o)):{}:T={}}return(G?sr:mo)(o,function(he,fe,be){return m(T,he,fe,be)}),T}function MO(o,m){return o==null?!0:Dd(o,m)}function TO(o,m,T){return o==null?o:Tb(o,m,Wd(T))}function EO(o,m,T,H){return H=typeof H=="function"?H:e,o==null?o:Tb(o,m,Wd(T),H)}function Ca(o){return o==null?[]:Tt(o,fr(o))}function IO(o){return o==null?[]:Tt(o,ui(o))}function RO(o,m,T){return T===e&&(T=m,m=e),T!==e&&(T=Wi(T),T=T===T?T:0),m!==e&&(m=Wi(m),m=m===m?m:0),Ds(Wi(o),m,T)}function LO(o,m,T){return m=Oo(m),T===e?(T=m,m=0):T=Oo(T),o=Wi(o),BE(o,m,T)}function OO(o,m,T){if(T&&typeof T!="boolean"&&Gr(o,m,T)&&(m=T=e),T===e&&(typeof m=="boolean"?(T=m,m=e):typeof o=="boolean"&&(T=o,o=e)),o===e&&m===e?(o=0,m=1):(o=Oo(o),m===e?(m=o,o=0):m=Oo(m)),o>m){var H=o;o=m,m=H}if(T||o%1||m%1){var G=ob();return Or(o+G*(m-o+yn("1e-"+((G+"").length-1))),m)}return Ld(o,m)}var NO=ba(function(o,m,T){return m=m.toLowerCase(),o+(T?F0(m):m)});function F0(o){return lf(an(o).toLowerCase())}function P0(o){return o=an(o),o&&o.replace(Ot,V).replace(Xi,"")}function DO(o,m,T){o=an(o),m=xi(m);var H=o.length;T=T===e?H:Ds(Et(T),0,H);var G=T;return T-=m.length,T>=0&&o.slice(T,G)==m}function FO(o){return o=an(o),o&&Ur.test(o)?o.replace(Hr,X):o}function PO(o){return o=an(o),o&&Rn.test(o)?o.replace(Tr,"\\$&"):o}var WO=ba(function(o,m,T){return o+(T?"-":"")+m.toLowerCase()}),BO=ba(function(o,m,T){return o+(T?" ":"")+m.toLowerCase()}),zO=Bb("toLowerCase");function jO(o,m,T){o=an(o),m=Et(m);var H=m?Dt(o):0;if(!m||H>=m)return o;var G=(m-H)/2;return Vc(Rc(G),T)+o+Vc(Ic(G),T)}function HO(o,m,T){o=an(o),m=Et(m);var H=m?Dt(o):0;return m&&H<m?o+Vc(m-H,T):o}function UO(o,m,T){o=an(o),m=Et(m);var H=m?Dt(o):0;return m&&H<m?Vc(m-H,T)+o:o}function VO(o,m,T){return T||m==null?m=0:m&&(m=+m),JT(an(o).replace(vn,""),m||0)}function KO(o,m,T){return(T?Gr(o,m,T):m===e)?m=1:m=Et(m),Od(an(o),m)}function qO(){var o=arguments,m=an(o[0]);return o.length<3?m:m.replace(o[1],o[2])}var GO=ba(function(o,m,T){return o+(T?"_":"")+m.toLowerCase()});function YO(o,m,T){return T&&typeof T!="number"&&Gr(o,m,T)&&(m=T=e),T=T===e?ae:T>>>0,T?(o=an(o),o&&(typeof m=="string"||m!=null&&!rf(m))&&(m=xi(m),!m&&pe(o))?es(yt(o),0,T):o.split(m,T)):[]}var XO=ba(function(o,m,T){return o+(T?" ":"")+lf(m)});function ZO(o,m,T){return o=an(o),T=T==null?0:Ds(Et(T),0,o.length),m=xi(m),o.slice(T,T+m.length)==m}function QO(o,m,T){var H=J.templateSettings;T&&Gr(o,m,T)&&(m=e),o=an(o),m=of({},m,H,qb);var G=of({},m.imports,H.imports,qb),te=fr(G),he=Tt(G,te);sr(te,function(ft){if(Er.test(ft))throw new lt(h)});var fe,be,Ie=0,Le=m.interpolate||zt,De="__p += '",Ye=ai((m.escape||zt).source+"|"+Le.source+"|"+(Le===xo?Vr:zt).source+"|"+(m.evaluate||zt).source+"|$","g"),rt="//# sourceURL="+(sn.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Is+"]")+`
|
|
1459
|
+
`;o.replace(Ye,function(ft,jt,Kt,ki,Yr,Ai){return Kt||(Kt=ki),De+=o.slice(Ie,Ai).replace(Yt,ie),jt&&(fe=!0,De+=`' +
|
|
1460
|
+
__e(`+jt+`) +
|
|
1461
|
+
'`),Yr&&(be=!0,De+=`';
|
|
1462
|
+
`+Yr+`;
|
|
1463
|
+
__p += '`),Kt&&(De+=`' +
|
|
1464
|
+
((__t = (`+Kt+`)) == null ? '' : __t) +
|
|
1465
|
+
'`),Ie=Ai+ft.length,ft}),De+=`';
|
|
1466
|
+
`;var gt=sn.call(m,"variable")&&m.variable;if(!gt)De=`with (obj) {
|
|
1467
|
+
`+De+`
|
|
1468
|
+
}
|
|
1469
|
+
`;else if(Er.test(gt))throw new lt(w);De=(be?De.replace(mi,""):De).replace(ni,"$1").replace(Hn,"$1;"),De="function("+(gt||"obj")+`) {
|
|
1470
|
+
`+(gt?"":`obj || (obj = {});
|
|
1471
|
+
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(be?`, __j = Array.prototype.join;
|
|
1472
|
+
function print() { __p += __j.call(arguments, '') }
|
|
1473
|
+
`:`;
|
|
1474
|
+
`)+De+`return __p
|
|
1475
|
+
}`;var Rt=B0(function(){return kt(te,rt+"return "+De).apply(e,he)});if(Rt.source=De,nf(Rt))throw Rt;return Rt}function JO(o){return an(o).toLowerCase()}function eN(o){return an(o).toUpperCase()}function tN(o,m,T){if(o=an(o),o&&(T||m===e))return xt(o);if(!o||!(m=xi(m)))return o;var H=yt(o),G=yt(m),te=Xn(H,G),he=ar(H,G)+1;return es(H,te,he).join("")}function nN(o,m,T){if(o=an(o),o&&(T||m===e))return o.slice(0,dt(o)+1);if(!o||!(m=xi(m)))return o;var H=yt(o),G=ar(H,yt(m))+1;return es(H,0,G).join("")}function rN(o,m,T){if(o=an(o),o&&(T||m===e))return o.replace(vn,"");if(!o||!(m=xi(m)))return o;var H=yt(o),G=Xn(H,yt(m));return es(H,G).join("")}function iN(o,m){var T=z,H=P;if(Nn(m)){var G="separator"in m?m.separator:G;T="length"in m?Et(m.length):T,H="omission"in m?xi(m.omission):H}o=an(o);var te=o.length;if(pe(o)){var he=yt(o);te=he.length}if(T>=te)return o;var fe=T-Dt(H);if(fe<1)return H;var be=he?es(he,0,fe).join(""):o.slice(0,fe);if(G===e)return be+H;if(he&&(fe+=be.length-fe),rf(G)){if(o.slice(fe).search(G)){var Ie,Le=be;for(G.global||(G=ai(G.source,an(It.exec(G))+"g")),G.lastIndex=0;Ie=G.exec(Le);)var De=Ie.index;be=be.slice(0,De===e?fe:De)}}else if(o.indexOf(xi(G),fe)!=fe){var Ye=be.lastIndexOf(G);Ye>-1&&(be=be.slice(0,Ye))}return be+H}function oN(o){return o=an(o),o&&xs.test(o)?o.replace(Ki,ot):o}var sN=ba(function(o,m,T){return o+(T?" ":"")+m.toUpperCase()}),lf=Bb("toUpperCase");function W0(o,m,T){return o=an(o),m=T?e:m,m===e?xe(o)?Zn(o):Z(o):o.match(m)||[]}var B0=Pt(function(o,m){try{return rn(o,e,m)}catch(T){return nf(T)?T:new lt(T)}}),aN=Io(function(o,m){return sr(m,function(T){T=Ji(T),go(o,T,ef(o[T],o))}),o});function lN(o){var m=o==null?0:o.length,T=pt();return o=m?S(o,function(H){if(typeof H[1]!="function")throw new bn(g);return[T(H[0]),H[1]]}):[],Pt(function(H){for(var G=-1;++G<m;){var te=o[G];if(rn(te[0],this,H))return rn(te[1],this,H)}})}function cN(o){return NE(Di(o,u))}function cf(o){return function(){return o}}function uN(o,m){return o==null||o!==o?m:o}var hN=jb(),dN=jb(!0);function hi(o){return o}function uf(o){return yb(typeof o=="function"?o:Di(o,u))}function fN(o){return wb(Di(o,u))}function pN(o,m){return xb(o,Di(m,u))}var gN=Pt(function(o,m){return function(T){return hl(T,o,m)}}),mN=Pt(function(o,m){return function(T){return hl(o,T,m)}});function hf(o,m,T){var H=fr(m),G=Pc(m,H);T==null&&!(Nn(m)&&(G.length||!H.length))&&(T=m,m=o,o=this,G=Pc(m,fr(m)));var te=!(Nn(T)&&"chain"in T)||!!T.chain,he=Lo(o);return sr(G,function(fe){var be=m[fe];o[fe]=be,he&&(o.prototype[fe]=function(){var Ie=this.__chain__;if(te||Ie){var Le=o(this.__wrapped__),De=Le.__actions__=li(this.__actions__);return De.push({func:be,args:arguments,thisArg:o}),Le.__chain__=Ie,Le}return be.apply(o,A([this.value()],arguments))})}),o}function vN(){return Nt._===this&&(Nt._=UT),this}function df(){}function yN(o){return o=Et(o),Pt(function(m){return Cb(m,o)})}var bN=zd(S),wN=zd(po),xN=zd(j);function z0(o){return Gd(o)?Oe(Ji(o)):QE(o)}function CN(o){return function(m){return o==null?e:Fs(o,m)}}var kN=Ub(),AN=Ub(!0);function ff(){return[]}function pf(){return!1}function _N(){return{}}function SN(){return""}function $N(){return!0}function MN(o,m){if(o=Et(o),o<1||o>q)return[];var T=ae,H=Or(o,ae);m=pt(m),o-=ae;for(var G=Je(H,m);++T<o;)m(T);return G}function TN(o){return $t(o)?S(o,Ji):Ci(o)?[o]:li(s0(an(o)))}function EN(o){var m=++jT;return an(o)+m}var IN=Uc(function(o,m){return o+m},0),RN=jd("ceil"),LN=Uc(function(o,m){return o/m},1),ON=jd("floor");function NN(o){return o&&o.length?Fc(o,hi,$d):e}function DN(o,m){return o&&o.length?Fc(o,pt(m,2),$d):e}function FN(o){return we(o,hi)}function PN(o,m){return we(o,pt(m,2))}function WN(o){return o&&o.length?Fc(o,hi,Id):e}function BN(o,m){return o&&o.length?Fc(o,pt(m,2),Id):e}var zN=Uc(function(o,m){return o*m},1),jN=jd("round"),HN=Uc(function(o,m){return o-m},0);function UN(o){return o&&o.length?Xe(o,hi):0}function VN(o,m){return o&&o.length?Xe(o,pt(m,2)):0}return J.after=pL,J.ary=v0,J.assign=tO,J.assignIn=I0,J.assignInWith=R0,J.assignWith=of,J.at=nO,J.before=y0,J.bind=ef,J.bindAll=aN,J.bindKey=b0,J.castArray=SL,J.chain=p0,J.chunk=NI,J.compact=DI,J.concat=FI,J.cond=lN,J.conforms=cN,J.constant=cf,J.countBy=VR,J.create=rO,J.curry=w0,J.curryRight=x0,J.debounce=C0,J.defaults=iO,J.defaultsDeep=oO,J.defer=gL,J.delay=mL,J.difference=PI,J.differenceBy=WI,J.differenceWith=BI,J.drop=zI,J.dropRight=jI,J.dropRightWhile=HI,J.dropWhile=UI,J.fill=VI,J.filter=qR,J.flatMap=XR,J.flatMapDeep=ZR,J.flatMapDepth=QR,J.flatten=u0,J.flattenDeep=KI,J.flattenDepth=qI,J.flip=vL,J.flow=hN,J.flowRight=dN,J.fromPairs=GI,J.functions=dO,J.functionsIn=fO,J.groupBy=JR,J.initial=XI,J.intersection=ZI,J.intersectionBy=QI,J.intersectionWith=JI,J.invert=gO,J.invertBy=mO,J.invokeMap=tL,J.iteratee=uf,J.keyBy=nL,J.keys=fr,J.keysIn=ui,J.map=Zc,J.mapKeys=yO,J.mapValues=bO,J.matches=fN,J.matchesProperty=pN,J.memoize=Jc,J.merge=wO,J.mergeWith=L0,J.method=gN,J.methodOf=mN,J.mixin=hf,J.negate=eu,J.nthArg=yN,J.omit=xO,J.omitBy=CO,J.once=yL,J.orderBy=rL,J.over=bN,J.overArgs=bL,J.overEvery=wN,J.overSome=xN,J.partial=tf,J.partialRight=k0,J.partition=iL,J.pick=kO,J.pickBy=O0,J.property=z0,J.propertyOf=CN,J.pull=rR,J.pullAll=d0,J.pullAllBy=iR,J.pullAllWith=oR,J.pullAt=sR,J.range=kN,J.rangeRight=AN,J.rearg=wL,J.reject=aL,J.remove=aR,J.rest=xL,J.reverse=Qd,J.sampleSize=cL,J.set=_O,J.setWith=SO,J.shuffle=uL,J.slice=lR,J.sortBy=fL,J.sortedUniq=gR,J.sortedUniqBy=mR,J.split=YO,J.spread=CL,J.tail=vR,J.take=yR,J.takeRight=bR,J.takeRightWhile=wR,J.takeWhile=xR,J.tap=DR,J.throttle=kL,J.thru=Xc,J.toArray=M0,J.toPairs=N0,J.toPairsIn=D0,J.toPath=TN,J.toPlainObject=E0,J.transform=$O,J.unary=AL,J.union=CR,J.unionBy=kR,J.unionWith=AR,J.uniq=_R,J.uniqBy=SR,J.uniqWith=$R,J.unset=MO,J.unzip=Jd,J.unzipWith=f0,J.update=TO,J.updateWith=EO,J.values=Ca,J.valuesIn=IO,J.without=MR,J.words=W0,J.wrap=_L,J.xor=TR,J.xorBy=ER,J.xorWith=IR,J.zip=RR,J.zipObject=LR,J.zipObjectDeep=OR,J.zipWith=NR,J.entries=N0,J.entriesIn=D0,J.extend=I0,J.extendWith=R0,hf(J,J),J.add=IN,J.attempt=B0,J.camelCase=NO,J.capitalize=F0,J.ceil=RN,J.clamp=RO,J.clone=$L,J.cloneDeep=TL,J.cloneDeepWith=EL,J.cloneWith=ML,J.conformsTo=IL,J.deburr=P0,J.defaultTo=uN,J.divide=LN,J.endsWith=DO,J.eq=eo,J.escape=FO,J.escapeRegExp=PO,J.every=KR,J.find=GR,J.findIndex=l0,J.findKey=sO,J.findLast=YR,J.findLastIndex=c0,J.findLastKey=aO,J.floor=ON,J.forEach=g0,J.forEachRight=m0,J.forIn=lO,J.forInRight=cO,J.forOwn=uO,J.forOwnRight=hO,J.get=sf,J.gt=RL,J.gte=LL,J.has=pO,J.hasIn=af,J.head=h0,J.identity=hi,J.includes=eL,J.indexOf=YI,J.inRange=LO,J.invoke=vO,J.isArguments=Bs,J.isArray=$t,J.isArrayBuffer=OL,J.isArrayLike=ci,J.isArrayLikeObject=Vn,J.isBoolean=NL,J.isBuffer=ts,J.isDate=DL,J.isElement=FL,J.isEmpty=PL,J.isEqual=WL,J.isEqualWith=BL,J.isError=nf,J.isFinite=zL,J.isFunction=Lo,J.isInteger=A0,J.isLength=tu,J.isMap=_0,J.isMatch=jL,J.isMatchWith=HL,J.isNaN=UL,J.isNative=VL,J.isNil=qL,J.isNull=KL,J.isNumber=S0,J.isObject=Nn,J.isObjectLike=Bn,J.isPlainObject=vl,J.isRegExp=rf,J.isSafeInteger=GL,J.isSet=$0,J.isString=nu,J.isSymbol=Ci,J.isTypedArray=xa,J.isUndefined=YL,J.isWeakMap=XL,J.isWeakSet=ZL,J.join=eR,J.kebabCase=WO,J.last=Pi,J.lastIndexOf=tR,J.lowerCase=BO,J.lowerFirst=zO,J.lt=QL,J.lte=JL,J.max=NN,J.maxBy=DN,J.mean=FN,J.meanBy=PN,J.min=WN,J.minBy=BN,J.stubArray=ff,J.stubFalse=pf,J.stubObject=_N,J.stubString=SN,J.stubTrue=$N,J.multiply=zN,J.nth=nR,J.noConflict=vN,J.noop=df,J.now=Qc,J.pad=jO,J.padEnd=HO,J.padStart=UO,J.parseInt=VO,J.random=OO,J.reduce=oL,J.reduceRight=sL,J.repeat=KO,J.replace=qO,J.result=AO,J.round=jN,J.runInContext=ge,J.sample=lL,J.size=hL,J.snakeCase=GO,J.some=dL,J.sortedIndex=cR,J.sortedIndexBy=uR,J.sortedIndexOf=hR,J.sortedLastIndex=dR,J.sortedLastIndexBy=fR,J.sortedLastIndexOf=pR,J.startCase=XO,J.startsWith=ZO,J.subtract=HN,J.sum=UN,J.sumBy=VN,J.template=QO,J.times=MN,J.toFinite=Oo,J.toInteger=Et,J.toLength=T0,J.toLower=JO,J.toNumber=Wi,J.toSafeInteger=eO,J.toString=an,J.toUpper=eN,J.trim=tN,J.trimEnd=nN,J.trimStart=rN,J.truncate=iN,J.unescape=oN,J.uniqueId=EN,J.upperCase=sN,J.upperFirst=lf,J.each=g0,J.eachRight=m0,J.first=h0,hf(J,(function(){var o={};return mo(J,function(m,T){sn.call(J.prototype,T)||(o[T]=m)}),o})(),{chain:!1}),J.VERSION=r,sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){J[o].placeholder=J}),sr(["drop","take"],function(o,m){Vt.prototype[o]=function(T){T=T===e?1:lr(Et(T),0);var H=this.__filtered__&&!m?new Vt(this):this.clone();return H.__filtered__?H.__takeCount__=Or(T,H.__takeCount__):H.__views__.push({size:Or(T,ae),type:o+(H.__dir__<0?"Right":"")}),H},Vt.prototype[o+"Right"]=function(T){return this.reverse()[o](T).reverse()}}),sr(["filter","map","takeWhile"],function(o,m){var T=m+1,H=T==k||T==B;Vt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:pt(G,3),type:T}),te.__filtered__=te.__filtered__||H,te}}),sr(["head","last"],function(o,m){var T="take"+(m?"Right":"");Vt.prototype[o]=function(){return this[T](1).value()[0]}}),sr(["initial","tail"],function(o,m){var T="drop"+(m?"":"Right");Vt.prototype[o]=function(){return this.__filtered__?new Vt(this):this[T](1)}}),Vt.prototype.compact=function(){return this.filter(hi)},Vt.prototype.find=function(o){return this.filter(o).head()},Vt.prototype.findLast=function(o){return this.reverse().find(o)},Vt.prototype.invokeMap=Pt(function(o,m){return typeof o=="function"?new Vt(this):this.map(function(T){return hl(T,o,m)})}),Vt.prototype.reject=function(o){return this.filter(eu(pt(o)))},Vt.prototype.slice=function(o,m){o=Et(o);var T=this;return T.__filtered__&&(o>0||m<0)?new Vt(T):(o<0?T=T.takeRight(-o):o&&(T=T.drop(o)),m!==e&&(m=Et(m),T=m<0?T.dropRight(-m):T.take(m-o)),T)},Vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Vt.prototype.toArray=function(){return this.take(ae)},mo(Vt.prototype,function(o,m){var T=/^(?:filter|find|map|reject)|While$/.test(m),H=/^(?:head|last)$/.test(m),G=J[H?"take"+(m=="last"?"Right":""):m],te=H||/^find/.test(m);G&&(J.prototype[m]=function(){var he=this.__wrapped__,fe=H?[1]:arguments,be=he instanceof Vt,Ie=fe[0],Le=be||$t(he),De=function(jt){var Kt=G.apply(J,A([jt],fe));return H&&Ye?Kt[0]:Kt};Le&&T&&typeof Ie=="function"&&Ie.length!=1&&(be=Le=!1);var Ye=this.__chain__,rt=!!this.__actions__.length,gt=te&&!Ye,Rt=be&&!rt;if(!te&&Le){he=Rt?he:new Vt(this);var ft=o.apply(he,fe);return ft.__actions__.push({func:Xc,args:[De],thisArg:e}),new Ni(ft,Ye)}return gt&&Rt?o.apply(this,fe):(ft=this.thru(De),gt?H?ft.value()[0]:ft.value():ft)})}),sr(["pop","push","shift","sort","splice","unshift"],function(o){var m=Oi[o],T=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",H=/^(?:pop|shift)$/.test(o);J.prototype[o]=function(){var G=arguments;if(H&&!this.__chain__){var te=this.value();return m.apply($t(te)?te:[],G)}return this[T](function(he){return m.apply($t(he)?he:[],G)})}}),mo(Vt.prototype,function(o,m){var T=J[m];if(T){var H=T.name+"";sn.call(ma,H)||(ma[H]=[]),ma[H].push({name:m,func:T})}}),ma[Hc(e,x).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=sE,Vt.prototype.reverse=aE,Vt.prototype.value=lE,J.prototype.at=FR,J.prototype.chain=PR,J.prototype.commit=WR,J.prototype.next=BR,J.prototype.plant=jR,J.prototype.reverse=HR,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=UR,J.prototype.first=J.prototype.head,il&&(J.prototype[il]=zR),J}),un=on();Yn?((Yn.exports=un)._=un,Rr._=un):Nt._=un}).call(fk)})(Wl,Wl.exports)),Wl.exports}var gk=pk();Mn("s",kl(gk)).debounce(function(){this.rebuildDisplayText()},300);var wg={exports:{}},xg;function mk(){return xg||(xg=1,(function(t,n){(function(){ace.require(["ace/mode/text"],function(e){t&&(t.exports=e)})})()})(wg)),wg.exports}mk();const vk=!0,Qn="u-",yk="uplot",bk=Qn+"hz",wk=Qn+"vt",xk=Qn+"title",Ck=Qn+"wrap",kk=Qn+"under",Ak=Qn+"over",_k=Qn+"axis",ds=Qn+"off",Sk=Qn+"select",$k=Qn+"cursor-x",Mk=Qn+"cursor-y",Tk=Qn+"cursor-pt",Ek=Qn+"legend",Ik=Qn+"live",Rk=Qn+"inline",Lk=Qn+"series",Ok=Qn+"marker",Cg=Qn+"label",Nk=Qn+"value",Fa="width",Pa="height",Wa="top",kg="bottom",Ys="left",Ru="right",Lu="#000",Ag=Lu+"0",Ou="mousemove",_g="mousedown",Nu="mouseup",Sg="mouseenter",$g="mouseleave",Mg="dblclick",Dk="resize",Fk="scroll",Tg="change",Bl="dppxchange",Du="--",Xs=typeof window<"u",Fu=Xs?document:null,Zs=Xs?window:null,Pk=Xs?navigator:null;let en,zl;function Pu(){let t=devicePixelRatio;en!=t&&(en=t,zl&&zu(Tg,zl,Pu),zl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),fs(Tg,zl,Pu),Zs.dispatchEvent(new CustomEvent(Bl)))}function di(t,n){if(n!=null){let e=t.classList;!e.contains(n)&&e.add(n)}}function Wu(t,n){let e=t.classList;e.contains(n)&&e.remove(n)}function wn(t,n,e){t.style[n]=e+"px"}function ji(t,n,e,r){let v=Fu.createElement(t);return n!=null&&di(v,n),e?.insertBefore(v,r),v}function Si(t,n){return ji("div",t,n)}const Eg=new WeakMap;function io(t,n,e,r,v){let p="translate("+n+"px,"+e+"px)",g=Eg.get(t);p!=g&&(t.style.transform=p,Eg.set(t,p),n<0||e<0||n>r||e>v?di(t,ds):Wu(t,ds))}const Ig=new WeakMap;function Rg(t,n,e){let r=n+e,v=Ig.get(t);r!=v&&(Ig.set(t,r),t.style.background=n,t.style.borderColor=e)}const Lg=new WeakMap;function Og(t,n,e,r){let v=n+""+e,p=Lg.get(t);v!=p&&(Lg.set(t,v),t.style.height=e+"px",t.style.width=n+"px",t.style.marginLeft=r?-n/2+"px":0,t.style.marginTop=r?-e/2+"px":0)}const Bu={passive:!0},Wk={...Bu,capture:!0};function fs(t,n,e,r){n.addEventListener(t,e,r?Wk:Bu)}function zu(t,n,e,r){n.removeEventListener(t,e,Bu)}Xs&&Pu();function Hi(t,n,e,r){let v;e=e||0,r=r||n.length-1;let p=r<=2147483647;for(;r-e>1;)v=p?e+r>>1:pi((e+r)/2),n[v]<t?e=v:r=v;return t-n[e]<=n[r]-t?e:r}function Ng(t){return(n,e,r)=>{let v=-1,p=-1;for(let g=e;g<=r;g++)if(t(n[g])){v=g;break}for(let g=r;g>=e;g--)if(t(n[g])){p=g;break}return[v,p]}}const Dg=t=>t!=null,Fg=t=>t!=null&&t>0,jl=Ng(Dg),Bk=Ng(Fg);function zk(t,n,e,r=0,v=!1){let p=v?Bk:jl,g=v?Fg:Dg;[n,e]=p(t,n,e);let w=t[n],h=t[n];if(n>-1)if(r==1)w=t[n],h=t[e];else if(r==-1)w=t[e],h=t[n];else for(let d=n;d<=e;d++){let a=t[d];g(a)&&(a<w?w=a:a>h&&(h=a))}return[w??hn,h??-hn]}function Hl(t,n,e,r){let v=Bg(t),p=Bg(n);t==n&&(v==-1?(t*=e,n/=e):(t/=e,n*=e));let g=e==10?bo:zg,w=v==1?pi:$i,h=p==1?$i:pi,d=w(g(Jn(t))),a=h(g(Jn(n))),l=Qs(e,d),u=Qs(e,a);return e==10&&(d<0&&(l=dn(l,-d)),a<0&&(u=dn(u,-a))),r||e==2?(t=l*v,n=u*p):(t=Gg(t,l),n=Kl(n,u)),[t,n]}function ju(t,n,e,r){let v=Hl(t,n,e,r);return t==0&&(v[0]=0),n==0&&(v[1]=0),v}const Hu=.1,Pg={mode:3,pad:Hu},Ba={pad:0,soft:null,mode:0},jk={min:Ba,max:Ba};function Ul(t,n,e,r){return ql(e)?Wg(t,n,e):(Ba.pad=e,Ba.soft=r?0:null,Ba.mode=r?3:0,Wg(t,n,jk))}function Zt(t,n){return t??n}function Hk(t,n,e){for(n=Zt(n,0),e=Zt(e,t.length-1);n<=e;){if(t[n]!=null)return!0;n++}return!1}function Wg(t,n,e){let r=e.min,v=e.max,p=Zt(r.pad,0),g=Zt(v.pad,0),w=Zt(r.hard,-hn),h=Zt(v.hard,hn),d=Zt(r.soft,hn),a=Zt(v.soft,-hn),l=Zt(r.mode,0),u=Zt(v.mode,0),c=n-t,i=bo(c),s=Fr(Jn(t),Jn(n)),f=bo(s),b=Jn(f-i);(c<1e-24||b>10)&&(c=0,(t==0||n==0)&&(c=1e-24,l==2&&d!=hn&&(p=0),u==2&&a!=-hn&&(g=0)));let x=c||s||1e3,N=bo(x),M=Qs(10,pi(N)),_=x*(c==0?t==0?.1:1:p),C=dn(Gg(t-_,M/10),24),L=t>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:hn,D=Fr(w,C<L&&t>=L?L:Ui(L,C)),I=x*(c==0?n==0?.1:1:g),E=dn(Kl(n+I,M/10),24),z=n<=a&&(u==1||u==3&&E>=a||u==2&&E<=a)?a:-hn,P=Ui(h,E>z&&n<=z?z:Fr(z,E));return D==P&&D==0&&(P=100),[D,P]}const Uk=new Intl.NumberFormat(Xs?Pk.language:"en-US"),Uu=t=>Uk.format(t),fi=Math,Vl=fi.PI,Jn=fi.abs,pi=fi.floor,er=fi.round,$i=fi.ceil,Ui=fi.min,Fr=fi.max,Qs=fi.pow,Bg=fi.sign,bo=fi.log10,zg=fi.log2,Vk=(t,n=1)=>fi.sinh(t)*n,Vu=(t,n=1)=>fi.asinh(t/n),hn=1/0;function jg(t){return(bo((t^t>>31)-(t>>31))|0)+1}function Ku(t,n,e){return Ui(Fr(t,n),e)}function Hg(t){return typeof t=="function"}function Ht(t){return Hg(t)?t:()=>t}const Kk=()=>{},Ug=t=>t,Vg=(t,n)=>n,qk=t=>null,Kg=t=>!0,qg=(t,n)=>t==n,Gk=/\.\d*?(?=9{6,}|0{6,})/gm,ps=t=>{if(Xg(t)||Wo.has(t))return t;const n=`${t}`,e=n.match(Gk);if(e==null)return t;let r=e[0].length-1;if(n.indexOf("e-")!=-1){let[v,p]=n.split("e");return+`${ps(v)}e${p}`}return dn(t,r)};function gs(t,n){return ps(dn(ps(t/n))*n)}function Kl(t,n){return ps($i(ps(t/n))*n)}function Gg(t,n){return ps(pi(ps(t/n))*n)}function dn(t,n=0){if(Xg(t))return t;let e=10**n,r=t*e*(1+Number.EPSILON);return er(r)/e}const Wo=new Map;function Yg(t){return((""+t).split(".")[1]||"").length}function za(t,n,e,r){let v=[],p=r.map(Yg);for(let g=n;g<e;g++){let w=Jn(g),h=dn(Qs(t,g),w);for(let d=0;d<r.length;d++){let a=t==10?+`${r[d]}e${g}`:r[d]*h,l=(g>=0?0:w)+(g>=p[d]?0:p[d]),u=t==10?a:dn(a,l);v.push(u),Wo.set(u,l)}}return v}const ja={},qu=[],Js=[null,null],Bo=Array.isArray,Xg=Number.isInteger,Yk=t=>t===void 0;function Zg(t){return typeof t=="string"}function ql(t){let n=!1;if(t!=null){let e=t.constructor;n=e==null||e==Object}return n}function Xk(t){return t!=null&&typeof t=="object"}const Zk=Object.getPrototypeOf(Uint8Array),Qg="__proto__";function ea(t,n=ql){let e;if(Bo(t)){let r=t.find(v=>v!=null);if(Bo(r)||n(r)){e=Array(t.length);for(let v=0;v<t.length;v++)e[v]=ea(t[v],n)}else e=t.slice()}else if(t instanceof Zk)e=t.slice();else if(n(t)){e={};for(let r in t)r!=Qg&&(e[r]=ea(t[r],n))}else e=t;return e}function qn(t){let n=arguments;for(let e=1;e<n.length;e++){let r=n[e];for(let v in r)v!=Qg&&(ql(t[v])?qn(t[v],ea(r[v])):t[v]=ea(r[v]))}return t}const Qk=0,Jk=1,eA=2;function tA(t,n,e){for(let r=0,v,p=-1;r<n.length;r++){let g=n[r];if(g>p){for(v=g-1;v>=0&&t[v]==null;)t[v--]=null;for(v=g+1;v<e&&t[v]==null;)t[p=v++]=null}}}function nA(t,n){if(oA(t)){let g=t[0].slice();for(let w=1;w<t.length;w++)g.push(...t[w].slice(1));return sA(g[0])||(g=iA(g)),g}let e=new Set;for(let g=0;g<t.length;g++){let w=t[g][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((g,w)=>g-w)],v=r[0].length,p=new Map;for(let g=0;g<v;g++)p.set(r[0][g],g);for(let g=0;g<t.length;g++){let w=t[g],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(v).fill(void 0),u=n?n[g][d]:Jk,c=[];for(let i=0;i<a.length;i++){let s=a[i],f=p.get(h[i]);s===null?u!=Qk&&(l[f]=s,u==eA&&c.push(f)):l[f]=s}tA(l,c,v),r.push(l)}}return r}const rA=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function iA(t){let n=t[0],e=n.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,g)=>n[p]-n[g]);let v=[];for(let p=0;p<t.length;p++){let g=t[p],w=Array(e);for(let h=0;h<e;h++)w[h]=g[r[h]];v.push(w)}return v}function oA(t){let n=t[0][0],e=n.length;for(let r=1;r<t.length;r++){let v=t[r][0];if(v.length!=e)return!1;if(v!=n){for(let p=0;p<e;p++)if(v[p]!=n[p])return!1}}return!0}function sA(t,n=100){const e=t.length;if(e<=1)return!0;let r=0,v=e-1;for(;r<=v&&t[r]==null;)r++;for(;v>=r&&t[v]==null;)v--;if(v<=r)return!0;const p=Fr(1,pi((v-r+1)/n));for(let g=t[r],w=r+p;w<=v;w+=p){const h=t[w];if(h!=null){if(h<=g)return!1;g=h}}return!0}const Jg=["January","February","March","April","May","June","July","August","September","October","November","December"],em=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function tm(t){return t.slice(0,3)}const aA=em.map(tm),lA=Jg.map(tm),cA={MMMM:Jg,MMM:lA,WWWW:em,WWW:aA};function Ha(t){return(t<10?"0":"")+t}function uA(t){return(t<10?"00":t<100?"0":"")+t}const hA={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,n)=>n.MMMM[t.getMonth()],MMM:(t,n)=>n.MMM[t.getMonth()],MM:t=>Ha(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>Ha(t.getDate()),D:t=>t.getDate(),WWWW:(t,n)=>n.WWWW[t.getDay()],WWW:(t,n)=>n.WWW[t.getDay()],HH:t=>Ha(t.getHours()),H:t=>t.getHours(),h:t=>{let n=t.getHours();return n==0?12:n>12?n-12:n},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>Ha(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>Ha(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>uA(t.getMilliseconds())};function Gu(t,n){n=n||cA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,v;for(;v=r.exec(t);)e.push(v[0][0]=="{"?hA[v[1]]:v[0]);return p=>{let g="";for(let w=0;w<e.length;w++)g+=typeof e[w]=="string"?e[w]:e[w](p,n);return g}}const dA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function fA(t,n){let e;return n=="UTC"||n=="Etc/UTC"?e=new Date(+t+t.getTimezoneOffset()*6e4):n==dA?e=t:(e=new Date(t.toLocaleString("en-US",{timeZone:n})),e.setMilliseconds(t.getMilliseconds())),e}const nm=t=>t%1==0,Gl=[1,2,2.5,5],pA=za(10,-32,0,Gl),rm=za(10,0,32,Gl),gA=rm.filter(nm),ms=pA.concat(rm),Yu=`
|
|
1476
|
+
`,im="{YYYY}",om=Yu+im,sm="{M}/{D}",Ua=Yu+sm,Yl=Ua+"/{YY}",am="{aa}",mA="{h}:{mm}",ta=mA+am,lm=Yu+ta,cm=":{ss}",nn=null;function um(t){let n=t*1e3,e=n*60,r=e*60,v=r*24,p=v*30,g=v*365,w=(t==1?za(10,0,3,Gl).filter(nm):za(10,-3,0,Gl)).concat([n,n*5,n*10,n*15,n*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,v,v*2,v*3,v*4,v*5,v*6,v*7,v*8,v*9,v*10,v*15,p,p*2,p*3,p*4,p*6,g,g*2,g*5,g*10,g*25,g*50,g*100]);const h=[[g,im,nn,nn,nn,nn,nn,nn,1],[v*28,"{MMM}",om,nn,nn,nn,nn,nn,1],[v,sm,om,nn,nn,nn,nn,nn,1],[r,"{h}"+am,Yl,nn,Ua,nn,nn,nn,1],[e,ta,Yl,nn,Ua,nn,nn,nn,1],[n,cm,Yl+" "+ta,nn,Ua+" "+ta,nn,lm,nn,1],[t,cm+".{fff}",Yl+" "+ta,nn,Ua+" "+ta,nn,lm,nn,1]];function d(a){return(l,u,c,i,s,f)=>{let b=[],x=s>=g,N=s>=p&&s<g,M=a(c),_=dn(M*t,3),C=Xu(M.getFullYear(),x?0:M.getMonth(),N||x?1:M.getDate()),L=dn(C*t,3);if(N||x){let D=N?s/p:0,I=x?s/g:0,E=_==L?_:dn(Xu(C.getFullYear()+I,C.getMonth()+D,1)*t,3),z=new Date(er(E/t)),P=z.getFullYear(),O=z.getMonth();for(let $=0;E<=i;$++){let k=Xu(P+I*$,O+D*$,1),R=k-a(dn(k*t,3));E=dn((+k+R)*t,3),E<=i&&b.push(E)}}else{let D=s>=v?v:s,I=pi(c)-pi(_),E=L+I+Kl(_-L,D);b.push(E);let z=a(E),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=s/r,$=l.axes[u]._space,k=f/$;for(;E=dn(E+s,t==1?0:3),!(E>i);)if(O>1){let R=pi(dn(P+O,6))%24,B=a(E).getHours()-R;B>1&&(B=-1),E-=B*r,P=(P+O)%24;let U=b[b.length-1];dn((E-U)/s,3)*k>=.7&&b.push(E)}else b.push(E)}return b}}return[w,h,d]}const[vA,yA,bA]=um(1),[wA,xA,CA]=um(.001);za(2,-53,53,[1]);function hm(t,n){return t.map(e=>e.map((r,v)=>v==0||v==8||r==null?r:n(v==1||e[8]==0?r:e[1]+r)))}function dm(t,n){return(e,r,v,p,g)=>{let w=n.find(i=>g>=i[0])||n[n.length-1],h,d,a,l,u,c;return r.map(i=>{let s=t(i),f=s.getFullYear(),b=s.getMonth(),x=s.getDate(),N=s.getHours(),M=s.getMinutes(),_=s.getSeconds(),C=f!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||N!=l&&w[5]||M!=u&&w[6]||_!=c&&w[7]||w[1];return h=f,d=b,a=x,l=N,u=M,c=_,C(s)})}}function kA(t,n){let e=Gu(n);return(r,v,p,g,w)=>v.map(h=>e(t(h)))}function Xu(t,n,e){return new Date(t,n,e)}function fm(t,n){return n(t)}const AA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function pm(t,n){return(e,r,v,p)=>p==null?Du:n(t(r))}function _A(t,n){let e=t.series[n];return e.width?e.stroke(t,n):e.points.width?e.points.stroke(t,n):null}function SA(t,n){return t.series[n].fill(t,n)}const $A={show:!0,live:!0,isolate:!1,mount:Kk,markers:{show:!0,width:2,stroke:_A,fill:SA,dash:"solid"},idx:null,idxs:null,values:[]};function MA(t,n){let e=t.cursor.points,r=Si(),v=e.size(t,n);wn(r,Fa,v),wn(r,Pa,v);let p=v/-2;wn(r,"marginLeft",p),wn(r,"marginTop",p);let g=e.width(t,n,v);return g&&wn(r,"borderWidth",g),r}function TA(t,n){let e=t.series[n].points;return e._fill||e._stroke}function EA(t,n){let e=t.series[n].points;return e._stroke||e._fill}function IA(t,n){return t.series[n].points.size}const Zu=[0,0];function RA(t,n,e){return Zu[0]=n,Zu[1]=e,Zu}function Xl(t,n,e,r=!0){return v=>{v.button==0&&(!r||v.target==n)&&e(v)}}function Qu(t,n,e,r=!0){return v=>{(!r||v.target==n)&&e(v)}}const LA={show:!0,x:!0,y:!0,lock:!1,move:RA,points:{one:!1,show:MA,size:IA,width:0,stroke:EA,fill:TA},bind:{mousedown:Xl,mouseup:Xl,click:Xl,dblclick:Xl,mousemove:Qu,mouseleave:Qu,mouseenter:Qu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,n)=>{n.stopPropagation(),n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,n,e,r,v)=>r-v,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},gm={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ju=qn({},gm,{filter:Vg}),mm=qn({},Ju,{size:10}),vm=qn({},gm,{show:!1}),eh='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ym="bold "+eh,bm=1.5,wm={show:!0,scale:"x",stroke:Lu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:ym,side:2,grid:Ju,ticks:mm,border:vm,font:eh,lineGap:bm,rotate:0},OA="Value",NA="Time",xm={show:!0,scale:"x",auto:!1,sorted:1,min:hn,max:-hn,idxs:[]};function DA(t,n,e,r,v){return n.map(p=>p==null?"":Uu(p))}function FA(t,n,e,r,v,p,g){let w=[],h=Wo.get(v)||0;e=g?e:dn(Kl(e,v),h);for(let d=e;d<=r;d=dn(d+v,h))w.push(Object.is(d,-0)?0:d);return w}function th(t,n,e,r,v,p,g){const w=[],h=t.scales[t.axes[n].scale].log,d=h==10?bo:zg,a=pi(d(e));v=Qs(h,a),h==10&&(v=ms[Hi(v,ms)]);let l=e,u=v*h;h==10&&(u=ms[Hi(u,ms)]);do w.push(l),l=l+v,h==10&&!Wo.has(l)&&(l=dn(l,Wo.get(v))),l>=u&&(v=l,u=v*h,h==10&&(u=ms[Hi(u,ms)]));while(l<=r);return w}function PA(t,n,e,r,v,p,g){let w=t.scales[t.axes[n].scale].asinh,h=r>w?th(t,n,Fr(w,e),r,v):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?th(t,n,Fr(w,-r),-e,v):[w]).reverse().map(a=>-a).concat(d,h)}const Cm=/./,WA=/[12357]/,BA=/[125]/,km=/1/,nh=(t,n,e,r)=>t.map((v,p)=>n==4&&v==0||p%r==0&&e.test(v.toExponential()[v<0?1:0])?v:null);function zA(t,n,e,r,v){let p=t.axes[e],g=p.scale,w=t.scales[g],h=t.valToPos,d=p._space,a=h(10,g),l=h(9,g)-a>=d?Cm:h(7,g)-a>=d?WA:h(5,g)-a>=d?BA:km;if(l==km){let u=Jn(h(1,g)-a);if(u<d)return nh(n.slice().reverse(),w.distr,l,$i(d/u)).reverse()}return nh(n,w.distr,l,1)}function jA(t,n,e,r,v){let p=t.axes[e],g=p.scale,w=p._space,h=t.valToPos,d=Jn(h(1,g)-h(2,g));return d<w?nh(n.slice().reverse(),3,Cm,$i(w/d)).reverse():n}function HA(t,n,e,r){return r==null?Du:n==null?"":Uu(n)}const Am={show:!0,scale:"y",stroke:Lu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:ym,side:3,grid:Ju,ticks:mm,border:vm,font:eh,lineGap:bm,rotate:0};function UA(t,n){let e=3+(t||1)*2;return dn(e*n,3)}function VA(t,n){let{scale:e,idxs:r}=t.series[0],v=t._data[0],p=t.valToPos(v[r[0]],e,!0),g=t.valToPos(v[r[1]],e,!0),w=Jn(g-p),h=t.series[n],d=w/(h.points.space*en);return r[1]-r[0]<=d}const _m={scale:null,auto:!0,sorted:0,min:hn,max:-hn},Sm=(t,n,e,r,v)=>v,$m={show:!0,auto:!0,sorted:0,gaps:Sm,alpha:1,facets:[qn({},_m,{scale:"x"}),qn({},_m,{scale:"y"})]},Mm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Sm,alpha:1,points:{show:VA,filter:null},values:null,min:hn,max:-hn,idxs:[],path:null,clip:null};function KA(t,n,e,r,v){return e/10}const Tm={time:vk,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},qA=qn({},Tm,{time:!1,ori:1}),Em={};function Im(t,n){let e=Em[t];return e||(e={key:t,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(v=>v!=r)},pub(r,v,p,g,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=v&&e.plots[a].pub(r,v,p,g,w,h,d)}},t!=null&&(Em[t]=e)),e}const na=1,rh=2;function vs(t,n,e){const r=t.mode,v=t.series[n],p=r==2?t._data[n]:t._data,g=t.scales,w=t.bbox;let h=p[0],d=r==2?p[1]:p[n],a=r==2?g[v.facets[0].scale]:g[t.series[0].scale],l=r==2?g[v.facets[1].scale]:g[v.scale],u=w.left,c=w.top,i=w.width,s=w.height,f=t.valToPosH,b=t.valToPosV;return a.ori==0?e(v,h,d,a,l,f,b,u,c,i,s,Ql,ra,ec,Om,Dm):e(v,h,d,a,l,b,f,c,u,s,i,Jl,ia,sh,Nm,Fm)}function ih(t,n){let e=0,r=0,v=Zt(t.bands,qu);for(let p=0;p<v.length;p++){let g=v[p];g.series[0]==n?e=g.dir:g.series[1]==n&&(g.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function GA(t,n,e,r,v){let p=t.mode,g=t.series[n],w=p==2?g.facets[1].scale:g.scale,h=t.scales[w];return v==-1?h.min:v==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function wo(t,n,e,r,v,p){return vs(t,n,(g,w,h,d,a,l,u,c,i,s,f)=>{let b=g.pxRound;const x=d.dir*(d.ori==0?1:-1),N=d.ori==0?ra:ia;let M,_;x==1?(M=e,_=r):(M=r,_=e);let C=b(l(w[M],d,s,c)),L=b(u(h[M],a,f,i)),D=b(l(w[_],d,s,c)),I=b(u(p==1?a.max:a.min,a,f,i)),E=new Path2D(v);return N(E,D,I),N(E,C,I),N(E,C,L),E})}function Zl(t,n,e,r,v,p){let g=null;if(t.length>0){g=new Path2D;const w=n==0?ec:sh;let h=e;for(let l=0;l<t.length;l++){let u=t[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(g,h,r,c,r+p),h=u[1]}}let d=e+v-h,a=10;d>0&&w(g,h,r-a/2,d,r+p+a)}return g}function YA(t,n,e){let r=t[t.length-1];r&&r[0]==n?r[1]=e:t.push([n,e])}function oh(t,n,e,r,v,p,g){let w=[],h=t.length;for(let d=v==1?e:r;d>=e&&d<=r;d+=v)if(n[d]===null){let a=d,l=d;if(v==1)for(;++d<=r&&n[d]===null;)l=d;else for(;--d>=e&&n[d]===null;)l=d;let u=p(t[a]),c=l==a?u:p(t[l]),i=a-v;u=g<=0&&i>=0&&i<h?p(t[i]):u;let s=l+v;c=g>=0&&s>=0&&s<h?p(t[s]):c,c>=u&&w.push([u,c])}return w}function Rm(t){return t==0?Ug:t==1?er:n=>gs(n,t)}function Lm(t){let n=t==0?Ql:Jl,e=t==0?(v,p,g,w,h,d)=>{v.arcTo(p,g,w,h,d)}:(v,p,g,w,h,d)=>{v.arcTo(g,p,h,w,d)},r=t==0?(v,p,g,w,h)=>{v.rect(p,g,w,h)}:(v,p,g,w,h)=>{v.rect(g,p,h,w)};return(v,p,g,w,h,d=0,a=0)=>{d==0&&a==0?r(v,p,g,w,h):(d=Ui(d,w/2,h/2),a=Ui(a,w/2,h/2),n(v,p+d,g),e(v,p+w,g,p+w,g+h,d),e(v,p+w,g+h,p,g+h,a),e(v,p,g+h,p,g,a),e(v,p,g,p+w,g,d),v.closePath())}}const Ql=(t,n,e)=>{t.moveTo(n,e)},Jl=(t,n,e)=>{t.moveTo(e,n)},ra=(t,n,e)=>{t.lineTo(n,e)},ia=(t,n,e)=>{t.lineTo(e,n)},ec=Lm(0),sh=Lm(1),Om=(t,n,e,r,v,p)=>{t.arc(n,e,r,v,p)},Nm=(t,n,e,r,v,p)=>{t.arc(e,n,r,v,p)},Dm=(t,n,e,r,v,p,g)=>{t.bezierCurveTo(n,e,r,v,p,g)},Fm=(t,n,e,r,v,p,g)=>{t.bezierCurveTo(e,n,v,r,g,p)};function Pm(t){return(n,e,r,v,p)=>vs(n,e,(g,w,h,d,a,l,u,c,i,s,f)=>{let{pxRound:b,points:x}=g,N,M;d.ori==0?(N=Ql,M=Om):(N=Jl,M=Nm);const _=dn(x.width*en,3);let C=(x.size-x.width)/2*en,L=dn(C*2,3),D=new Path2D,I=new Path2D,{left:E,top:z,width:P,height:O}=n.bbox;ec(I,E-L,z-L,P+L*2,O+L*2);const $=k=>{if(h[k]!=null){let R=b(l(w[k],d,s,c)),B=b(u(h[k],a,f,i));N(D,R+C,B),M(D,R,B,C,0,Vl*2)}};if(p)p.forEach($);else for(let k=r;k<=v;k++)$(k);return{stroke:_>0?D:null,fill:D,clip:I,flags:na|rh}})}function Wm(t){return(n,e,r,v,p,g)=>{r!=v&&(p!=r&&g!=r&&t(n,e,r),p!=v&&g!=v&&t(n,e,v),t(n,e,g))}}const XA=Wm(ra),ZA=Wm(ia);function Bm(t){const n=Zt(t?.alignGaps,0);return(e,r,v,p)=>vs(e,r,(g,w,h,d,a,l,u,c,i,s,f)=>{[v,p]=jl(h,v,p);let b=g.pxRound,x=P=>b(l(P,d,s,c)),N=P=>b(u(P,a,f,i)),M,_;d.ori==0?(M=ra,_=XA):(M=ia,_=ZA);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},D=L.stroke;let I=!1;if(p-v>=s*4){let P=ae=>e.posToVal(ae,d.key,!0),O=null,$=null,k,R,B,U=x(w[C==1?v:p]),q=x(w[v]),Q=x(w[p]),ee=P(C==1?q+1:Q-1);for(let ae=C==1?v:p;ae>=v&&ae<=p;ae+=C){let ne=w[ae],ce=(C==1?ne<ee:ne>ee)?U:x(ne),se=h[ae];ce==U?se!=null?(R=se,O==null?(M(D,ce,N(R)),k=O=$=R):R<O?O=R:R>$&&($=R)):se===null&&(I=!0):(O!=null&&_(D,U,N(O),N($),N(k),N(R)),se!=null?(R=se,M(D,ce,N(R)),O=$=k=R):(O=$=null,se===null&&(I=!0)),U=ce,ee=P(U+C))}O!=null&&O!=$&&B!=U&&_(D,U,N(O),N($),N(k),N(R))}else for(let P=C==1?v:p;P>=v&&P<=p;P+=C){let O=h[P];O===null?I=!0:O!=null&&M(D,x(w[P]),N(O))}let[E,z]=ih(e,r);if(g.fill!=null||E!=0){let P=L.fill=new Path2D(D),O=g.fillTo(e,r,g.min,g.max,E),$=N(O),k=x(w[v]),R=x(w[p]);C==-1&&([R,k]=[k,R]),M(P,R,$),M(P,k,$)}if(!g.spanGaps){let P=[];I&&P.push(...oh(w,h,v,p,C,x,n)),L.gaps=P=g.gaps(e,r,v,p,P),L.clip=Zl(P,d.ori,c,i,s,f)}return z!=0&&(L.band=z==2?[wo(e,r,v,p,D,-1),wo(e,r,v,p,D,1)]:wo(e,r,v,p,D,z)),L})}function QA(t){const n=Zt(t.align,1),e=Zt(t.ascDesc,!1),r=Zt(t.alignGaps,0),v=Zt(t.extend,!1);return(p,g,w,h)=>vs(p,g,(d,a,l,u,c,i,s,f,b,x,N)=>{[w,h]=jl(l,w,h);let M=d.pxRound,{left:_,width:C}=p.bbox,L=Q=>M(i(Q,u,x,f)),D=Q=>M(s(Q,c,N,b)),I=u.ori==0?ra:ia;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},z=E.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(l[P==1?w:h]),$=L(a[P==1?w:h]),k=$,R=$;v&&n==-1&&(R=_,I(z,R,O)),I(z,$,O);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let ee=l[Q];if(ee==null)continue;let ae=L(a[Q]),ne=D(ee);n==1?I(z,ae,O):I(z,k,ne),I(z,ae,ne),O=ne,k=ae}let B=k;v&&n==1&&(B=_+C,I(z,B,O));let[U,q]=ih(p,g);if(d.fill!=null||U!=0){let Q=E.fill=new Path2D(z),ee=d.fillTo(p,g,d.min,d.max,U),ae=D(ee);I(Q,B,ae),I(Q,R,ae)}if(!d.spanGaps){let Q=[];Q.push(...oh(a,l,w,h,P,L,r));let ee=d.width*en/2,ae=e||n==1?ee:-ee,ne=e||n==-1?-ee:ee;Q.forEach(ce=>{ce[0]+=ae,ce[1]+=ne}),E.gaps=Q=d.gaps(p,g,w,h,Q),E.clip=Zl(Q,u.ori,f,b,x,N)}return q!=0&&(E.band=q==2?[wo(p,g,w,h,z,-1),wo(p,g,w,h,z,1)]:wo(p,g,w,h,z,q)),E})}function zm(t,n,e,r,v,p,g=hn){if(t.length>1){let w=null;for(let h=0,d=1/0;h<t.length;h++)if(n[h]!==void 0){if(w!=null){let a=Jn(t[h]-t[w]);a<d&&(d=a,g=Jn(e(t[h],r,v,p)-e(t[w],r,v,p)))}w=h}}return g}function JA(t){t=t||ja;const n=Zt(t.size,[.6,hn,1]),e=t.align||0,r=t.gap||0;let v=t.radius;v=v==null?[0,0]:typeof v=="number"?[v,0]:v;const p=Ht(v),g=1-n[0],w=Zt(n[1],hn),h=Zt(n[2],1),d=Zt(t.disp,ja),a=Zt(t.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,f)=>vs(c,i,(b,x,N,M,_,C,L,D,I,E,z)=>{let P=b.pxRound,O=e,$=r*en,k=w*en,R=h*en,B,U;M.ori==0?[B,U]=p(c,i):[U,B]=p(c,i);const q=M.dir*(M.ori==0?1:-1);let Q=M.ori==0?ec:sh,ee=M.ori==0?a:(Ke,St,Qt,En,jn,nr,pn)=>{a(Ke,St,Qt,jn,En,pn,nr)},ae=Zt(c.bands,qu).find(Ke=>Ke.series[0]==i),ne=ae!=null?ae.dir:0,ce=b.fillTo(c,i,b.min,b.max,ne),se=P(L(ce,_,z,I)),de,me,$e,Me=E,Te=P(b.width*en),Ze=!1,qe=null,it=null,ct=null,et=null;l!=null&&(Te==0||u!=null)&&(Ze=!0,qe=l.values(c,i,s,f),it=new Map,new Set(qe).forEach(Ke=>{Ke!=null&&it.set(Ke,new Path2D)}),Te>0&&(ct=u.values(c,i,s,f),et=new Map,new Set(ct).forEach(Ke=>{Ke!=null&&et.set(Ke,new Path2D)})));let{x0:Bt,size:pr}=d;if(Bt!=null&&pr!=null){O=1,x=Bt.values(c,i,s,f),Bt.unit==2&&(x=x.map(St=>c.posToVal(D+St*E,M.key,!0)));let Ke=pr.values(c,i,s,f);pr.unit==2?me=Ke[0]*E:me=C(Ke[0],M,E,D)-C(0,M,E,D),Me=zm(x,N,C,M,E,D,Me),$e=Me-me+$}else Me=zm(x,N,C,M,E,D,Me),$e=Me*g+$,me=Me-$e;$e<1&&($e=0),Te>=me/2&&(Te=0),$e<5&&(P=Ug);let At=$e>0,tr=Me-$e-(At?Te:0);me=P(Ku(tr,R,k)),de=(O==0?me/2:O==q?0:me)-O*q*((O==0?$/2:0)+(At?Te/2:0));const An={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},gr=Ze?null:new Path2D;let fn=null;if(ae!=null)fn=c.data[ae.series[1]];else{let{y0:Ke,y1:St}=d;Ke!=null&&St!=null&&(N=St.values(c,i,s,f),fn=Ke.values(c,i,s,f))}let ur=B*me,ht=U*me;for(let Ke=q==1?s:f;Ke>=s&&Ke<=f;Ke+=q){let St=N[Ke];if(St==null)continue;if(fn!=null){let qt=fn[Ke]??0;if(St-qt==0)continue;se=L(qt,_,z,I)}let Qt=M.distr!=2||d!=null?x[Ke]:Ke,En=C(Qt,M,E,D),jn=L(Zt(St,ce),_,z,I),nr=P(En-de),pn=P(Fr(jn,se)),Dn=P(Ui(jn,se)),In=pn-Dn;if(St!=null){let qt=St<0?ht:ur,cn=St<0?ur:ht;Ze?(Te>0&&ct[Ke]!=null&&Q(et.get(ct[Ke]),nr,Dn+pi(Te/2),me,Fr(0,In-Te),qt,cn),qe[Ke]!=null&&Q(it.get(qe[Ke]),nr,Dn+pi(Te/2),me,Fr(0,In-Te),qt,cn)):Q(gr,nr,Dn+pi(Te/2),me,Fr(0,In-Te),qt,cn),ee(c,i,Ke,nr-Te/2,Dn,me+Te,In)}}return Te>0?An.stroke=Ze?et:gr:Ze||(An._fill=b.width==0?b._fill:b._stroke??b._fill,An.width=0),An.fill=Ze?it:gr,An})}function e_(t,n){const e=Zt(n?.alignGaps,0);return(r,v,p,g)=>vs(r,v,(w,h,d,a,l,u,c,i,s,f,b)=>{[p,g]=jl(d,p,g);let x=w.pxRound,N=B=>x(u(B,a,f,i)),M=B=>x(c(B,l,b,s)),_,C,L;a.ori==0?(_=Ql,L=ra,C=Dm):(_=Jl,L=ia,C=Fm);const D=a.dir*(a.ori==0?1:-1);let I=N(h[D==1?p:g]),E=I,z=[],P=[];for(let B=D==1?p:g;B>=p&&B<=g;B+=D)if(d[B]!=null){let U=h[B],q=N(U);z.push(E=q),P.push(M(d[B]))}const O={stroke:t(z,P,_,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:na},$=O.stroke;let[k,R]=ih(r,v);if(w.fill!=null||k!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,v,w.min,w.max,k),q=M(U);L(B,E,q),L(B,I,q)}if(!w.spanGaps){let B=[];B.push(...oh(h,d,p,g,D,N,e)),O.gaps=B=w.gaps(r,v,p,g,B),O.clip=Zl(B,a.ori,i,s,f,b)}return R!=0&&(O.band=R==2?[wo(r,v,p,g,$,-1),wo(r,v,p,g,$,1)]:wo(r,v,p,g,$,R)),O})}function t_(t){return e_(n_,t)}function n_(t,n,e,r,v,p){const g=t.length;if(g<2)return null;const w=new Path2D;if(e(w,t[0],n[0]),g==2)r(w,t[1],n[1]);else{let h=Array(g),d=Array(g-1),a=Array(g-1),l=Array(g-1);for(let u=0;u<g-1;u++)a[u]=n[u+1]-n[u],l[u]=t[u+1]-t[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<g-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[g-1]=d[g-2];for(let u=0;u<g-1;u++)v(w,t[u]+l[u]/3,n[u]+h[u]*l[u]/3,t[u+1]-l[u]/3,n[u+1]-h[u+1]*l[u]/3,t[u+1],n[u+1])}return w}const ah=new Set;function jm(){for(let t of ah)t.syncRect(!0)}Xs&&(fs(Dk,Zs,jm),fs(Fk,Zs,jm,!0),fs(Bl,Zs,()=>{Sr.pxRatio=en}));const r_=Bm(),i_=Pm();function Hm(t,n,e,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((v,p)=>lh(v,p,n,e))}function o_(t,n){return t.map((e,r)=>r==0?{}:qn({},n,e))}function lh(t,n,e,r){return qn({},n==0?e:r,t)}function Um(t,n,e){return n==null?Js:[n,e]}const s_=Um;function a_(t,n,e){return n==null?Js:Ul(n,e,Hu,!0)}function Vm(t,n,e,r){return n==null?Js:Hl(n,e,t.scales[r].log,!1)}const l_=Vm;function Km(t,n,e,r){return n==null?Js:ju(n,e,t.scales[r].log,!1)}const c_=Km;function u_(t,n,e,r,v){let p=Fr(jg(t),jg(n)),g=n-t,w=Hi(v/r*g,e);do{let h=e[w],d=r*h/g;if(d>=v&&p+(h<5?Wo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function qm(t){let n,e;return t=t.replace(/(\d+)px/,(r,v)=>(n=er((e=+v)*en))+"px"),[t,n,e]}function h_(t){t.show&&[t.font,t.labelFont].forEach(n=>{let e=dn(n[2]*en,1);n[0]=n[0].replace(/[0-9.]+px/,e+"px"),n[1]=e})}function Sr(t,n,e){const r={mode:Zt(t.mode,1)},v=r.mode;function p(V,X,ie,oe){let pe=X.valToPct(V);return oe+ie*(X.dir==-1?1-pe:pe)}function g(V,X,ie,oe){let pe=X.valToPct(V);return oe+ie*(X.dir==-1?pe:1-pe)}function w(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):g(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=g;let h=!1;r.status=0;const d=r.root=Si(yk);if(t.id!=null&&(d.id=t.id),di(d,t.class),t.title){let V=Si(xk,d);V.textContent=t.title}const a=ji("canvas"),l=r.ctx=a.getContext("2d"),u=Si(Ck,d);fs("click",u,V=>{V.target===i&&(st!=Ei||Ut!=fo)&&Pn.click(r,V)},!0);const c=r.under=Si(kk,u);u.appendChild(a);const i=r.over=Si(Ak,u);t=ea(t);const s=+Zt(t.pxAlign,1),f=Rm(s);(t.plugins||[]).forEach(V=>{V.opts&&(t=V.opts(r,t)||t)});const b=t.ms||.001,x=r.series=v==1?Hm(t.series||[],xm,Mm,!1):o_(t.series||[null],$m),N=r.axes=Hm(t.axes||[],wm,Am,!0),M=r.scales={},_=r.bands=t.bands||[];_.forEach(V=>{V.fill=Ht(V.fill||null),V.dir=Zt(V.dir,-1)});const C=v==2?x[1].facets[0].scale:x[0].scale,L={axes:qo,series:$s},D=(t.drawOrder||["axes","series"]).map(V=>L[V]);function I(V){const X=V.distr==3?ie=>bo(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>Vu(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:pe,_max:xe}=V,Ee=xe-pe;return(oe-pe)/Ee}}function E(V){let X=M[V];if(X==null){let ie=(t.scales||ja)[V]||ja;if(ie.from!=null){E(ie.from);let oe=qn({},M[ie.from],ie,{key:V});oe.valToPct=I(oe),M[V]=oe}else{X=M[V]=qn({},V==C?Tm:qA,ie),X.key=V;let oe=X.time,pe=X.range,xe=Bo(pe);if((V!=C||v==2&&!oe)&&(xe&&(pe[0]==null||pe[1]==null)&&(pe={min:pe[0]==null?Pg:{mode:1,hard:pe[0],soft:pe[0]},max:pe[1]==null?Pg:{mode:1,hard:pe[1],soft:pe[1]}},xe=!1),!xe&&ql(pe))){let Ee=pe;pe=(Pe,ze,He)=>ze==null?Js:Ul(ze,He,Ee)}X.range=Ht(pe||(oe?s_:V==C?X.distr==3?l_:X.distr==4?c_:Um:X.distr==3?Vm:X.distr==4?Km:a_)),X.auto=Ht(xe?!1:X.auto),X.clamp=Ht(X.clamp||KA),X._min=X._max=null,X.valToPct=I(X)}}}E("x"),E("y"),v==1&&x.forEach(V=>{E(V.scale)}),N.forEach(V=>{E(V.scale)});for(let V in t.scales)E(V);const z=M[C],P=z.distr;let O,$;z.ori==0?(di(d,bk),O=p,$=g):(di(d,wk),O=g,$=p);const k={};for(let V in M){let X=M[V];(X.min!=null||X.max!=null)&&(k[V]={min:X.min,max:X.max},X.min=X.max=null)}const R=t.tzDate||(V=>new Date(er(V/b))),B=t.fmtDate||Gu,U=b==1?bA(R):CA(R),q=dm(R,hm(b==1?yA:xA,B)),Q=pm(R,fm(AA,B)),ee=[],ae=r.legend=qn({},$A,t.legend),ne=r.cursor=qn({},LA,{drag:{y:v==2}},t.cursor),ce=ae.show,se=ne.show,de=ae.markers;ae.idxs=ee,de.width=Ht(de.width),de.dash=Ht(de.dash),de.stroke=Ht(de.stroke),de.fill=Ht(de.fill);let me,$e,Me,Te=[],Ze=[],qe,it=!1,ct={};if(ae.live){const V=x[1]?x[1].values:null;it=V!=null,qe=it?V(r,1,0):{_:0};for(let X in qe)ct[X]=Du}if(ce)if(me=ji("table",Ek,d),Me=ji("tbody",null,me),ae.mount(r,me),it){$e=ji("thead",null,me,Me);let V=ji("tr",null,$e);ji("th",null,V);for(var et in qe)ji("th",Cg,V).textContent=et}else di(me,Rk),ae.live&&di(me,Ik);const Bt={show:!0},pr={show:!1};function At(V,X){if(X==0&&(it||!ae.live||v==2))return Js;let ie=[],oe=ji("tr",Lk,Me,Me.childNodes[X]);di(oe,V.class),V.show||di(oe,ds);let pe=ji("th",null,oe);if(de.show){let Pe=Si(Ok,pe);if(X>0){let ze=de.width(r,X);ze&&(Pe.style.border=ze+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Si(Cg,pe);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),An("click",pe,Pe=>{if(ne._lock)return;ri(Pe);let ze=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=ae.isolate){let He=x.some((Ge,Qe)=>Qe>0&&Qe!=ze&&Ge.show);x.forEach((Ge,Qe)=>{Qe>0&&Yn(Qe,He?Qe==ze?Bt:pr:Bt,!0,xt.setSeries)})}else Yn(ze,{show:!V.show},!0,xt.setSeries)},!1),Tr&&An(Sg,pe,Pe=>{ne._lock||(ri(Pe),Yn(x.indexOf(V),Li,!0,xt.setSeries))},!1));for(var Ee in qe){let Pe=ji("td",Nk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const tr=new Map;function An(V,X,ie,oe=!0){const pe=tr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(fs(V,X,pe[V]=xe),tr.set(X,pe))}function gr(V,X,ie){const oe=tr.get(X)||{};for(let pe in oe)(V==null||pe==V)&&(zu(pe,X,oe[pe]),delete oe[pe]);V==null&&tr.delete(X)}let fn=0,ur=0,ht=0,Ke=0,St=0,Qt=0,En=St,jn=Qt,nr=ht,pn=Ke,Dn=0,In=0,qt=0,cn=0;r.bbox={};let Mr=!1,jr=!1,mr=!1,mi=!1,ni=!1,Hn=!1;function Ki(V,X,ie){(ie||V!=r.width||X!=r.height)&&Hr(V,X),Yi(!1),mr=!0,jr=!0,ho()}function Hr(V,X){r.width=fn=ht=V,r.height=ur=Ke=X,St=Qt=0,vi(),xo();let ie=r.bbox;Dn=ie.left=gs(St*en,.5),In=ie.top=gs(Qt*en,.5),qt=ie.width=gs(ht*en,.5),cn=ie.height=gs(Ke*en,.5)}const xs=3;function Ur(){let V=!1,X=0;for(;!V;){X++;let ie=ua(X),oe=ha(X);V=X==xs||ie&&oe,V||(Hr(r.width,r.height),jr=!0)}}function xn({width:V,height:X}){Ki(V,X)}r.setSize=xn;function vi(){let V=!1,X=!1,ie=!1,oe=!1;N.forEach((pe,xe)=>{if(pe.show&&pe._show){let{side:Ee,_size:Pe}=pe,ze=Ee%2,He=pe.label!=null?pe.labelSize:0,Ge=Pe+He;Ge>0&&(ze?(ht-=Ge,Ee==3?(St+=Ge,oe=!0):ie=!0):(Ke-=Ge,Ee==0?(Qt+=Ge,V=!0):X=!0))}}),oi[0]=V,oi[1]=ie,oi[2]=X,oi[3]=oe,ht-=dr[1]+dr[3],St+=dr[3],Ke-=dr[2]+dr[0],Qt+=dr[0]}function xo(){let V=St+ht,X=Qt+Ke,ie=St,oe=Qt;function pe(xe,Ee){switch(xe){case 1:return V+=Ee,V-Ee;case 2:return X+=Ee,X-Ee;case 3:return ie-=Ee,ie+Ee;case 0:return oe-=Ee,oe+Ee}}N.forEach((xe,Ee)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=pe(Pe,xe._size),xe.label!=null&&(xe._lpos=pe(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=Ht(V.prox),oe=V.bias??=0;ne.dataIdx=(pe,xe,Ee,Pe)=>{if(xe==0)return Ee;let ze=Ee,He=ie(pe,xe,Ee,Pe)??hn,Ge=He>=0&&He<hn,Qe=z.ori==0?ht:Ke,wt=ne.left,Xt=n[0],Dt=n[xe];if(X.has(Dt[Ee])){ze=null;let yt=null,dt=null,ot;if(oe==0||oe==-1)for(ot=Ee;yt==null&&ot-- >0;)X.has(Dt[ot])||(yt=ot);if(oe==0||oe==1)for(ot=Ee;dt==null&&ot++<Dt.length;)X.has(Dt[ot])||(dt=ot);if(yt!=null||dt!=null)if(Ge){let mn=yt==null?-1/0:O(Xt[yt],z,Qe,0),$n=dt==null?1/0:O(Xt[dt],z,Qe,0),Zn=wt-mn,on=$n-wt;Zn<=on?Zn<=He&&(ze=yt):on<=He&&(ze=dt)}else ze=dt==null?yt:yt==null?dt:Ee-yt<=dt-Ee?yt:dt}else Ge&&Jn(wt-O(Xt[Ee],z,Qe,0))>He&&(ze=null);return ze}}const ri=V=>{ne.event=V};ne.idxs=ee,ne._lock=!1;let Cn=ne.points;Cn.show=Ht(Cn.show),Cn.size=Ht(Cn.size),Cn.stroke=Ht(Cn.stroke),Cn.width=Ht(Cn.width),Cn.fill=Ht(Cn.fill);const vr=r.focus=qn({},t.focus||{alpha:.3},ne.focus),Tr=vr.prox>=0,Rn=Tr&&Cn.one;let vn=[],hr=[],ii=[];function so(V,X){let ie=Cn.show(r,X);if(ie instanceof HTMLElement)return di(ie,Tk),di(ie,V.class),io(ie,-10,-10,ht,Ke),i.insertBefore(ie,vn[X]),ie}function ao(V,X){if(v==1||X>0){let ie=v==1&&M[V.scale].time,oe=V.value;V.value=ie?Zg(oe)?pm(R,fm(oe,B)):oe||Q:oe||HA,V.label=V.label||(ie?NA:OA)}if(Rn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||r_||qk,V.fillTo=Ht(V.fillTo||GA),V.pxAlign=+Zt(V.pxAlign,s),V.pxRound=Rm(V.pxAlign),V.stroke=Ht(V.stroke||null),V.fill=Ht(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=UA(Fr(1,V.width),1),oe=V.points=qn({},{size:ie,width:Fr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:i_,_stroke:null,_fill:null},V.points);oe.show=Ht(oe.show),oe.filter=Ht(oe.filter),oe.fill=Ht(oe.fill),oe.stroke=Ht(oe.stroke),oe.paths=Ht(oe.paths),oe.pxAlign=V.pxAlign}if(ce){let ie=At(V,X);Te.splice(X,0,ie[0]),Ze.splice(X,0,ie[1]),ae.values.push(null)}if(se){ee.splice(X,0,null);let ie=null;Rn?X==0&&(ie=so(V,X)):X>0&&(ie=so(V,X)),vn.splice(X,0,ie),hr.splice(X,0,0),ii.splice(X,0,0)}Je("addSeries",X)}function zo(V,X){X=X??x.length,V=v==1?lh(V,X,xm,Mm):lh(V,X,{},$m),x.splice(X,0,V),ao(x[X],X)}r.addSeries=zo;function Er(V){if(x.splice(V,1),ce){ae.values.splice(V,1),Ze.splice(V,1);let X=Te.splice(V,1)[0];gr(null,X.firstChild),X.remove()}se&&(ee.splice(V,1),vn.splice(V,1)[0].remove(),hr.splice(V,1),ii.splice(V,1)),Je("delSeries",V)}r.delSeries=Er;const oi=[!1,!1,!1,!1];function Vr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=M[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=M[V.scale]);let pe=oe.time;V.size=Ht(V.size),V.space=Ht(V.space),V.rotate=Ht(V.rotate),Bo(V.incrs)&&V.incrs.forEach(Ee=>{!Wo.has(Ee)&&Wo.set(Ee,Yg(Ee))}),V.incrs=Ht(V.incrs||(oe.distr==2?gA:pe?b==1?vA:wA:ms)),V.splits=Ht(V.splits||(pe&&oe.distr==1?U:oe.distr==3?th:oe.distr==4?PA:FA)),V.stroke=Ht(V.stroke),V.grid.stroke=Ht(V.grid.stroke),V.ticks.stroke=Ht(V.ticks.stroke),V.border.stroke=Ht(V.border.stroke);let xe=V.values;V.values=Bo(xe)&&!Bo(xe[0])?Ht(xe):pe?Bo(xe)?dm(R,hm(xe,B)):Zg(xe)?kA(R,xe):xe||q:xe||DA,V.filter=Ht(V.filter||(oe.distr>=3&&oe.log==10?zA:oe.distr==3&&oe.log==2?jA:Vg)),V.font=qm(V.font),V.labelFont=qm(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(oi[X]=!0,V._el=Si(_k,u))}}function It(V,X,ie,oe){let[pe,xe,Ee,Pe]=ie,ze=X%2,He=0;return ze==0&&(Pe||xe)&&(He=X==0&&!pe||X==2&&!Ee?er(wm.size/3):0),ze==1&&(pe||Ee)&&(He=X==1&&!xe||X==3&&!Pe?er(Am.size/2):0),He}const Co=r.padding=(t.padding||[It,It,It,It]).map(V=>Ht(Zt(V,It))),dr=r._padding=Co.map((V,X)=>V(r,X,oi,0));let le,We=null,Fe=null;const Ot=v==1?x[0].idxs:null;let zt=null,Yt=!1;function Un(V,X){if(n=V??[],r.data=r._data=n,v==2){le=0;for(let ie=1;ie<x.length;ie++)le+=n[ie][0].length}else{n.length==0&&(r.data=r._data=n=[[]]),zt=n[0],le=zt.length;let ie=n;if(P==2){ie=n.slice();let oe=ie[0]=Array(le);for(let pe=0;pe<le;pe++)oe[pe]=pe}r._data=n=ie}if(Yi(!0),Je("setData"),P==2&&(mr=!0),X!==!1){let ie=z;ie.auto(r,Yt)?rr():Rr(C,ie.min,ie.max),mi=mi||ne.left>=0,Hn=!0,ho()}}r.setData=Un;function rr(){Yt=!0;let V,X;v==1&&(le>0?(We=Ot[0]=0,Fe=Ot[1]=le-1,V=n[0][We],X=n[0][Fe],P==2?(V=We,X=Fe):V==X&&(P==3?[V,X]=Hl(V,V,z.log,!1):P==4?[V,X]=ju(V,V,z.log,!1):z.time?X=V+er(86400/b):[V,X]=Ul(V,X,Hu,!0))):(We=Ot[0]=V=null,Fe=Ot[1]=X=null)),Rr(C,V,X)}let Fn,yr,gn,qi,br,jo,Cs,ks,As,ir;function _s(V,X,ie,oe,pe,xe){V??=Ag,ie??=qu,oe??="butt",pe??=Ag,xe??="round",V!=Fn&&(l.strokeStyle=Fn=V),pe!=yr&&(l.fillStyle=yr=pe),X!=gn&&(l.lineWidth=gn=X),xe!=br&&(l.lineJoin=br=xe),oe!=jo&&(l.lineCap=jo=oe),ie!=qi&&l.setLineDash(qi=ie)}function Ho(V,X,ie,oe){X!=yr&&(l.fillStyle=yr=X),V!=Cs&&(l.font=Cs=V),ie!=ks&&(l.textAlign=ks=ie),oe!=As&&(l.textBaseline=As=oe)}function lo(V,X,ie,oe,pe=0){if(oe.length>0&&V.auto(r,Yt)&&(X==null||X.min==null)){let xe=Zt(We,0),Ee=Zt(Fe,oe.length-1),Pe=ie.min==null?zk(oe,xe,Ee,pe,V.distr==3):[ie.min,ie.max];V.min=Ui(V.min,ie.min=Pe[0]),V.max=Fr(V.max,ie.max=Pe[1])}}const Ss={min:null,max:null};function Uo(){for(let oe in M){let pe=M[oe];k[oe]==null&&(pe.min==null||k[C]!=null&&pe.auto(r,Yt))&&(k[oe]=Ss)}for(let oe in M){let pe=M[oe];k[oe]==null&&pe.from!=null&&k[pe.from]!=null&&(k[oe]=Ss)}k[C]!=null&&Yi(!0);let V={};for(let oe in k){let pe=k[oe];if(pe!=null){let xe=V[oe]=ea(M[oe],Xk);if(pe.min!=null)qn(xe,pe);else if(oe!=C||v==2)if(le==0&&xe.from==null){let Ee=xe.range(r,null,null,oe);xe.min=Ee[0],xe.max=Ee[1]}else xe.min=hn,xe.max=-hn}}if(le>0){x.forEach((oe,pe)=>{if(v==1){let xe=oe.scale,Ee=k[xe];if(Ee==null)return;let Pe=V[xe];if(pe==0){let ze=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=ze[0],Pe.max=ze[1],We=Hi(Pe.min,n[0]),Fe=Hi(Pe.max,n[0]),Fe-We>1&&(n[0][We]<Pe.min&&We++,n[0][Fe]>Pe.max&&Fe--),oe.min=zt[We],oe.max=zt[Fe]}else oe.show&&oe.auto&&lo(Pe,Ee,oe,n[pe],oe.sorted);oe.idxs[0]=We,oe.idxs[1]=Fe}else if(pe>0&&oe.show&&oe.auto){let[xe,Ee]=oe.facets,Pe=xe.scale,ze=Ee.scale,[He,Ge]=n[pe],Qe=V[Pe],wt=V[ze];Qe!=null&&lo(Qe,k[Pe],xe,He,xe.sorted),wt!=null&&lo(wt,k[ze],Ee,Ge,Ee.sorted),oe.min=Ee.min,oe.max=Ee.max}});for(let oe in V){let pe=V[oe],xe=k[oe];if(pe.from==null&&(xe==null||xe.min==null)){let Ee=pe.range(r,pe.min==hn?null:pe.min,pe.max==-hn?null:pe.max,oe);pe.min=Ee[0],pe.max=Ee[1]}}}for(let oe in V){let pe=V[oe];if(pe.from!=null){let xe=V[pe.from];if(xe.min==null)pe.min=pe.max=null;else{let Ee=pe.range(r,xe.min,xe.max,oe);pe.min=Ee[0],pe.max=Ee[1]}}}let X={},ie=!1;for(let oe in V){let pe=V[oe],xe=M[oe];if(xe.min!=pe.min||xe.max!=pe.max){xe.min=pe.min,xe.max=pe.max;let Ee=xe.distr;xe._min=Ee==3?bo(xe.min):Ee==4?Vu(xe.min,xe.asinh):Ee==100?xe.fwd(xe.min):xe.min,xe._max=Ee==3?bo(xe.max):Ee==4?Vu(xe.max,xe.asinh):Ee==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,pe)=>{v==2?pe>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)mr=!0,Je("setScale",oe);se&&ne.left>=0&&(mi=Hn=!0)}for(let oe in k)k[oe]=null}function ko(V){let X=Ku(We-1,0,le-1),ie=Ku(Fe+1,0,le-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<le-1;)ie++;return[X,ie]}function $s(){if(le>0){let V=x.some(X=>X._focus)&&ir!=vr.alpha;V&&(l.globalAlpha=ir=vr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Ms(ie,!1),Ms(ie,!0),X._paths==null)){let oe=ir;ir!=X.alpha&&(l.globalAlpha=ir=X.alpha);let pe=v==2?[0,n[ie][0].length-1]:ko(n[ie]);X._paths=X.paths(r,ie,pe[0],pe[1]),ir!=oe&&(l.globalAlpha=ir=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=ir;ir!=X.alpha&&(l.globalAlpha=ir=X.alpha),X._paths!=null&&Vo(ie,!1);{let pe=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,We,Fe,pe),Ee=X.points.filter(r,ie,xe,pe);(xe||Ee)&&(X.points._paths=X.points.paths(r,ie,We,Fe,Ee),Vo(ie,!0))}ir!=oe&&(l.globalAlpha=ir=oe),Je("drawSeries",ie)}}),V&&(l.globalAlpha=ir=1)}}function Ms(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Vo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:pe,clip:xe,flags:Ee,_stroke:Pe=ie._stroke,_fill:ze=ie._fill,_width:He=ie.width}=ie._paths;He=dn(He*en,3);let Ge=null,Qe=He%2/2;X&&ze==null&&(ze=He>0?"#fff":Pe);let wt=ie.pxAlign==1&&Qe>0;if(wt&&l.translate(Qe,Qe),!X){let Xt=Dn-He/2,Dt=In-He/2,yt=qt+He,dt=cn+He;Ge=new Path2D,Ge.rect(Xt,Dt,yt,dt)}X?Ko(Pe,He,ie.dash,ie.cap,ze,oe,pe,Ee,xe):ca(V,Pe,He,ie.dash,ie.cap,ze,oe,pe,Ee,Ge,xe),wt&&l.translate(-Qe,-Qe)}function ca(V,X,ie,oe,pe,xe,Ee,Pe,ze,He,Ge){let Qe=!1;ze!=0&&_.forEach((wt,Xt)=>{if(wt.series[0]==V){let Dt=x[wt.series[1]],yt=n[wt.series[1]],dt=(Dt._paths||ja).band;Bo(dt)&&(dt=wt.dir==1?dt[0]:dt[1]);let ot,mn=null;Dt.show&&dt&&Hk(yt,We,Fe)?(mn=wt.fill(r,Xt)||xe,ot=Dt._paths.clip):dt=null,Ko(X,ie,oe,pe,mn,Ee,Pe,ze,He,Ge,ot,dt),Qe=!0}}),Qe||Ko(X,ie,oe,pe,xe,Ee,Pe,ze,He,Ge)}const co=na|rh;function Ko(V,X,ie,oe,pe,xe,Ee,Pe,ze,He,Ge,Qe){_s(V,X,ie,oe,pe),(ze||He||Qe)&&(l.save(),ze&&l.clip(ze),He&&l.clip(He)),Qe?(Pe&co)==co?(l.clip(Qe),Ge&&l.clip(Ge),or(pe,Ee),Gi(V,xe,X)):Pe&rh?(or(pe,Ee),l.clip(Qe),Gi(V,xe,X)):Pe&na&&(l.save(),l.clip(Qe),Ge&&l.clip(Ge),or(pe,Ee),l.restore(),Gi(V,xe,X)):(or(pe,Ee),Gi(V,xe,X)),(ze||He||Qe)&&l.restore()}function Gi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,pe)=>{l.strokeStyle=Fn=pe,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function or(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=yr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function Ts(V,X,ie,oe){let pe=N[V],xe;if(oe<=0)xe=[0,0];else{let Ee=pe._space=pe.space(r,V,X,ie,oe),Pe=pe._incrs=pe.incrs(r,V,X,ie,oe,Ee);xe=u_(X,ie,Pe,oe,Ee)}return pe._found=xe}function Kr(V,X,ie,oe,pe,xe,Ee,Pe,ze,He){let Ge=Ee%2/2;s==1&&l.translate(Ge,Ge),_s(Pe,Ee,ze,He,Pe),l.beginPath();let Qe,wt,Xt,Dt,yt=pe+(oe==0||oe==3?-xe:xe);ie==0?(wt=pe,Dt=yt):(Qe=pe,Xt=yt);for(let dt=0;dt<V.length;dt++)X[dt]!=null&&(ie==0?Qe=Xt=V[dt]:wt=Dt=V[dt],l.moveTo(Qe,wt),l.lineTo(Xt,Dt));l.stroke(),s==1&&l.translate(-Ge,-Ge)}function ua(V){let X=!0;return N.forEach((ie,oe)=>{if(!ie.show)return;let pe=M[ie.scale];if(pe.min==null){ie._show&&(X=!1,ie._show=!1,Yi(!1));return}else ie._show||(X=!1,ie._show=!0,Yi(!1));let xe=ie.side,Ee=xe%2,{min:Pe,max:ze}=pe,[He,Ge]=Ts(oe,Pe,ze,Ee==0?ht:Ke);if(Ge==0)return;let Qe=pe.distr==2,wt=ie._splits=ie.splits(r,oe,Pe,ze,He,Ge,Qe),Xt=pe.distr==2?wt.map(ot=>zt[ot]):wt,Dt=pe.distr==2?zt[wt[1]]-zt[wt[0]]:He,yt=ie._values=ie.values(r,ie.filter(r,Xt,oe,Ge,Dt),oe,Ge,Dt);ie._rotate=xe==2?ie.rotate(r,yt,oe,Ge):0;let dt=ie._size;ie._size=$i(ie.size(r,yt,oe,V)),dt!=null&&ie._size!=dt&&(X=!1)}),X}function ha(V){let X=!0;return Co.forEach((ie,oe)=>{let pe=ie(r,oe,oi,V);pe!=dr[oe]&&(X=!1),dr[oe]=pe}),X}function qo(){for(let V=0;V<N.length;V++){let X=N[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,pe,xe,Ee=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[ze,He]=X._found;if(X.label!=null){let xr=X.labelGap*Pe,bn=er((X._lpos+xr)*en);Ho(X.labelFont[0],Ee,"center",ie==2?Wa:kg),l.save(),oe==1?(pe=xe=0,l.translate(bn,er(In+cn/2)),l.rotate((ie==3?-Vl:Vl)/2)):(pe=er(Dn+qt/2),xe=bn);let Oi=Hg(X.label)?X.label(r,V,ze,He):X.label;l.fillText(Oi,pe,xe),l.restore()}if(He==0)continue;let Ge=M[X.scale],Qe=oe==0?qt:cn,wt=oe==0?Dn:In,Xt=X._splits,Dt=Ge.distr==2?Xt.map(xr=>zt[xr]):Xt,yt=Ge.distr==2?zt[Xt[1]]-zt[Xt[0]]:ze,dt=X.ticks,ot=X.border,mn=dt.show?dt.size:0,$n=er(mn*en),Zn=er((X.alignTo==2?X._size-mn-X.gap:X.gap)*en),on=X._rotate*-Vl/180,un=f(X._pos*en),ge=($n+Zn)*Pe,Se=un+ge;xe=oe==0?Se:0,pe=oe==1?Se:0;let ke=X.font[0],Ue=X.align==1?Ys:X.align==2?Ru:on>0?Ys:on<0?Ru:oe==0?"center":ie==3?Ru:Ys,lt=on||oe==1?"middle":ie==2?Wa:kg;Ho(ke,Ee,Ue,lt);let kt=X.font[1]*X.lineGap,Jt=Xt.map(xr=>f(w(xr,Ge,Qe,wt))),Ft=X._values;for(let xr=0;xr<Ft.length;xr++){let bn=Ft[xr];if(bn!=null){oe==0?pe=Jt[xr]:xe=Jt[xr],bn=""+bn;let Oi=bn.indexOf(`
|
|
1477
|
+
`)==-1?[bn]:bn.split(/\n/gm);for(let Cr=0;Cr<Oi.length;Cr++){let $o=Oi[Cr];on?(l.save(),l.translate(pe,xe+Cr*kt),l.rotate(on),l.fillText($o,0,0),l.restore()):l.fillText($o,pe,xe+Cr*kt)}}}dt.show&&Kr(Jt,dt.filter(r,Dt,V,He,yt),oe,ie,un,$n,dn(dt.width*en,3),dt.stroke(r,V),dt.dash,dt.cap);let ai=X.grid;ai.show&&Kr(Jt,ai.filter(r,Dt,V,He,yt),oe,oe==0?2:1,oe==0?In:Dn,oe==0?cn:qt,dn(ai.width*en,3),ai.stroke(r,V),ai.dash,ai.cap),ot.show&&Kr([un],[1],oe==0?1:0,oe==0?1:2,oe==1?In:Dn,oe==1?cn:qt,dn(ot.width*en,3),ot.stroke(r,V),ot.dash,ot.cap)}Je("drawAxes")}function Yi(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(v==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Ao=!1,Go=!1,uo=[];function da(){Go=!1;for(let V=0;V<uo.length;V++)Je(...uo[V]);uo.length=0}function ho(){Ao||(rA(Es),Ao=!0)}function Be(V,X=!1){Ao=!0,Go=X,V(r),Es(),X&&uo.length>0&&queueMicrotask(da)}r.batch=Be;function Es(){if(Mr&&(Uo(),Mr=!1),mr&&(Ur(),mr=!1),jr){if(wn(c,Ys,St),wn(c,Wa,Qt),wn(c,Fa,ht),wn(c,Pa,Ke),wn(i,Ys,St),wn(i,Wa,Qt),wn(i,Fa,ht),wn(i,Pa,Ke),wn(u,Fa,fn),wn(u,Pa,ur),a.width=er(fn*en),a.height=er(ur*en),N.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:pe})=>{if(V!=null)if(X){let xe=pe===3||pe===0?ie:0,Ee=pe%2==1;wn(V,Ee?"left":"top",oe-xe),wn(V,Ee?"width":"height",ie),wn(V,Ee?"top":"left",Ee?Qt:St),wn(V,Ee?"height":"width",Ee?Ke:ht),Wu(V,ds)}else di(V,ds)}),Fn=yr=gn=br=jo=Cs=ks=As=qi=null,ir=1,W(!0),St!=En||Qt!=jn||ht!=nr||Ke!=pn){Yi(!1);let V=ht/nr,X=Ke/pn;if(se&&!mi&&ne.left>=0){ne.left*=V,ne.top*=X,Xi&&io(Xi,er(ne.left),0,ht,Ke),On&&io(On,0,er(ne.top),ht,Ke);for(let ie=0;ie<vn.length;ie++){let oe=vn[ie];oe!=null&&(hr[ie]*=V,ii[ie]*=X,io(oe,$i(hr[ie]),$i(ii[ie]),ht,Ke))}}if(bt.show&&!ni&&bt.left>=0&&bt.width>0){bt.left*=V,bt.width*=V,bt.top*=X,bt.height*=X;for(let ie in Y)wn(Ir,ie,bt[ie])}En=St,jn=Qt,nr=ht,pn=Ke}Je("setSize"),jr=!1}fn>0&&ur>0&&(l.clearRect(0,0,a.width,a.height),Je("drawClear"),D.forEach(V=>V()),Je("draw")),bt.show&&ni&&(Ri(bt),ni=!1),se&&mi&&(A(null,!0,!1),mi=!1),ae.show&&ae.live&&Hn&&(y(),Hn=!1),h||(h=!0,r.status=1,Je("ready")),Yt=!1,Ao=!1}r.redraw=(V,X)=>{mr=X||!1,V!==!1?Rr(C,z.min,z.max):ho()};function Ne(V,X){let ie=M[V];if(ie.from==null){if(le==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(le>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&le>0&&(X.min=Hi(X.min,n[0]),X.max=Hi(X.max,n[0]),X.min==X.max&&X.max++),k[V]=X,Mr=!0,ho()}}r.setScale=Ne;let Ln,_o,Xi,On,fa,So,Ei,fo,Is,tn,st,Ut,Ii=!1;const Pn=ne.drag;let je=Pn.x,yn=Pn.y;se&&(ne.x&&(Ln=Si($k,i)),ne.y&&(_o=Si(Mk,i)),z.ori==0?(Xi=Ln,On=_o):(Xi=_o,On=Ln),st=ne.left,Ut=ne.top);const bt=r.select=qn({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Ir=bt.show?Si(Sk,bt.over?i:c):null;function Ri(V,X){if(bt.show){for(let ie in V)bt[ie]=V[ie],ie in Y&&wn(Ir,ie,V[ie]);X!==!1&&Je("setSelect")}}r.setSelect=Ri;function Nt(V){if(x[V].show)ce&&Wu(Te[V],ds);else if(ce&&di(Te[V],ds),se){let X=Rn?vn[0]:vn[V];X!=null&&io(X,-10,-10,ht,Ke)}}function Rr(V,X,ie){Ne(V,{min:X,max:ie})}function Yn(V,X,ie,oe){X.focus!=null&&Rs(V),X.show!=null&&x.forEach((pe,xe)=>{xe>0&&(V==xe||V==null)&&(pe.show=X.show,Nt(xe),v==2?(Rr(pe.facets[0].scale,null,null),Rr(pe.facets[1].scale,null,null)):Rr(pe.scale,null,null),ho())}),ie!==!1&&Je("setSeries",V,X),oe&&Ct("setSeries",r,V,X)}r.setSeries=Yn;function Zi(V,X){qn(_[V],X)}function yi(V,X){V.fill=Ht(V.fill||null),V.dir=Zt(V.dir,-1),X=X??_.length,_.splice(X,0,V)}function _n(V){V==null?_.length=0:_.splice(V,1)}r.addBand=yi,r.setBand=Zi,r.delBand=_n;function Yo(V,X){x[V].alpha=X,se&&vn[V]!=null&&(vn[V].style.opacity=X),ce&&Te[V]&&(Te[V].style.opacity=X)}let Wn,bi,wi;const Li={focus:!0};function Rs(V){if(V!=wi){let X=V==null,ie=vr.alpha!=1;x.forEach((oe,pe)=>{if(v==1||pe>0){let xe=X||pe==0||pe==V;oe._focus=X?null:xe,ie&&Yo(pe,xe?1:vr.alpha)}}),wi=V,ie&&ho()}}ce&&Tr&&An($g,me,V=>{ne._lock||(ri(V),wi!=null&&Yn(null,Li,!0,xt.setSeries))});function rn(V,X,ie){let oe=M[X];ie&&(V=V/en-(oe.ori==1?Qt:St));let pe=ht;oe.ori==1&&(pe=Ke,V=pe-V),oe.dir==-1&&(V=pe-V);let xe=oe._min,Ee=oe._max,Pe=V/pe,ze=xe+(Ee-xe)*Pe,He=oe.distr;return He==3?Qs(10,ze):He==4?Vk(ze,oe.asinh):He==100?oe.bwd(ze):ze}function pa(V,X){let ie=rn(V,C,X);return Hi(ie,n[0],We,Fe)}r.valToIdx=V=>Hi(V,n[0]),r.posToIdx=pa,r.posToVal=rn,r.valToPos=(V,X,ie)=>M[X].ori==0?p(V,M[X],ie?qt:ht,ie?Dn:0):g(V,M[X],ie?cn:Ke,ie?In:0),r.setCursor=(V,X,ie)=>{st=V.left,Ut=V.top,A(null,X,ie)};function sr(V,X){wn(Ir,Ys,bt.left=V),wn(Ir,Fa,bt.width=X)}function Lr(V,X){wn(Ir,Wa,bt.top=V),wn(Ir,Pa,bt.height=X)}let po=z.ori==0?sr:Lr,wr=z.ori==1?sr:Lr;function si(){if(ce&&ae.live)for(let V=v==2?1:0;V<x.length;V++){if(V==0&&it)continue;let X=ae.values[V],ie=0;for(let oe in X)Ze[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{ee[oe]=ie}):Yk(V.idx)||ee.fill(V.idx),ae.idx=ee[0]),ce&&ae.live){for(let ie=0;ie<x.length;ie++)(ie>0||v==1&&!it)&&S(ie,ee[ie]);si()}Hn=!1,X!==!1&&Je("setLegend")}r.setLegend=y;function S(V,X){let ie=x[V],oe=V==0&&P==2?zt:n[V],pe;it?pe=ie.values(r,V,X)??ct:(pe=ie.value(r,X==null?null:oe[X],V,X),pe=pe==null?ct:{_:pe}),ae.values[V]=pe}function A(V,X,ie){Is=st,tn=Ut,[st,Ut]=ne.move(r,st,Ut),ne.left=st,ne.top=Ut,se&&(Xi&&io(Xi,er(st),0,ht,Ke),On&&io(On,0,er(Ut),ht,Ke));let oe,pe=We>Fe;Wn=hn,bi=null;let xe=z.ori==0?ht:Ke,Ee=z.ori==1?ht:Ke;if(st<0||le==0||pe){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let ze=vn[Pe];ze!=null&&io(ze,-10,-10,ht,Ke)}Tr&&Yn(null,Li,!0,V==null&&xt.setSeries),ae.live&&(ee.fill(oe),Hn=!0)}else{let Pe,ze,He;v==1&&(Pe=z.ori==0?st:Ut,ze=rn(Pe,C),oe=ne.idx=Hi(ze,n[0],We,Fe),He=O(n[0][oe],z,xe,0));let Ge=-10,Qe=-10,wt=0,Xt=0,Dt=!0,yt="",dt="";for(let ot=v==2?1:0;ot<x.length;ot++){let mn=x[ot],$n=ee[ot],Zn=$n==null?null:v==1?n[ot][$n]:n[ot][1][$n],on=ne.dataIdx(r,ot,oe,ze),un=on==null?null:v==1?n[ot][on]:n[ot][1][on];if(Hn=Hn||un!=Zn||on!=$n,ee[ot]=on,ot>0&&mn.show){let ge=on==null?-10:on==oe?He:O(v==1?n[0][on]:n[ot][0][on],z,xe,0),Se=un==null?-10:$(un,v==1?M[mn.scale]:M[mn.facets[1].scale],Ee,0);if(Tr&&un!=null){let ke=z.ori==1?st:Ut,Ue=Jn(vr.dist(r,ot,on,Se,ke));if(Ue<Wn){let lt=vr.bias;if(lt!=0){let kt=rn(ke,mn.scale),Jt=un>=0?1:-1,Ft=kt>=0?1:-1;Ft==Jt&&(Ft==1?lt==1?un>=kt:un<=kt:lt==1?un<=kt:un>=kt)&&(Wn=Ue,bi=ot)}else Wn=Ue,bi=ot}}if(Hn||Rn){let ke,Ue;z.ori==0?(ke=ge,Ue=Se):(ke=Se,Ue=ge);let lt,kt,Jt,Ft,ai,xr,bn=!0,Oi=Cn.bbox;if(Oi!=null){bn=!1;let Cr=Oi(r,ot);Jt=Cr.left,Ft=Cr.top,lt=Cr.width,kt=Cr.height}else Jt=ke,Ft=Ue,lt=kt=Cn.size(r,ot);if(xr=Cn.fill(r,ot),ai=Cn.stroke(r,ot),Rn)ot==bi&&Wn<=vr.prox&&(Ge=Jt,Qe=Ft,wt=lt,Xt=kt,Dt=bn,yt=xr,dt=ai);else{let Cr=vn[ot];Cr!=null&&(hr[ot]=Jt,ii[ot]=Ft,Og(Cr,lt,kt,bn),Rg(Cr,xr,ai),io(Cr,$i(Jt),$i(Ft),ht,Ke))}}}}if(Rn){let ot=vr.prox,mn=wi==null?Wn<=ot:Wn>ot||bi!=wi;if(Hn||mn){let $n=vn[0];$n!=null&&(hr[0]=Ge,ii[0]=Qe,Og($n,wt,Xt,Dt),Rg($n,yt,dt),io($n,$i(Ge),$i(Qe),ht,Ke))}}}if(bt.show&&Ii)if(V!=null){let[Pe,ze]=xt.scales,[He,Ge]=xt.match,[Qe,wt]=V.cursor.sync.scales,Xt=V.cursor.drag;if(je=Xt._x,yn=Xt._y,je||yn){let{left:Dt,top:yt,width:dt,height:ot}=V.select,mn=V.scales[Qe].ori,$n=V.posToVal,Zn,on,un,ge,Se,ke=Pe!=null&&He(Pe,Qe),Ue=ze!=null&&Ge(ze,wt);ke&&je?(mn==0?(Zn=Dt,on=dt):(Zn=yt,on=ot),un=M[Pe],ge=O($n(Zn,Qe),un,xe,0),Se=O($n(Zn+on,Qe),un,xe,0),po(Ui(ge,Se),Jn(Se-ge))):po(0,xe),Ue&&yn?(mn==1?(Zn=Dt,on=dt):(Zn=yt,on=ot),un=M[ze],ge=$($n(Zn,wt),un,Ee,0),Se=$($n(Zn+on,wt),un,Ee,0),wr(Ui(ge,Se),Jn(Se-ge))):wr(0,Ee)}else Z()}else{let Pe=Jn(Is-fa),ze=Jn(tn-So);if(z.ori==1){let wt=Pe;Pe=ze,ze=wt}je=Pn.x&&Pe>=Pn.dist,yn=Pn.y&&ze>=Pn.dist;let He=Pn.uni;He!=null?je&&yn&&(je=Pe>=He,yn=ze>=He,!je&&!yn&&(ze>Pe?yn=!0:je=!0)):Pn.x&&Pn.y&&(je||yn)&&(je=yn=!0);let Ge,Qe;je&&(z.ori==0?(Ge=Ei,Qe=st):(Ge=fo,Qe=Ut),po(Ui(Ge,Qe),Jn(Qe-Ge)),yn||wr(0,Ee)),yn&&(z.ori==1?(Ge=Ei,Qe=st):(Ge=fo,Qe=Ut),wr(Ui(Ge,Qe),Jn(Qe-Ge)),je||po(0,xe)),!je&&!yn&&(po(0,0),wr(0,0))}if(Pn._x=je,Pn._y=yn,V==null){if(ie){if(Gt!=null){let[Pe,ze]=xt.scales;xt.values[0]=Pe!=null?rn(z.ori==0?st:Ut,Pe):null,xt.values[1]=ze!=null?rn(z.ori==1?st:Ut,ze):null}Ct(Ou,r,st,Ut,ht,Ke,oe)}if(Tr){let Pe=ie&&xt.setSeries,ze=vr.prox;wi==null?Wn<=ze&&Yn(bi,Li,!0,Pe):Wn>ze?Yn(null,Li,!0,Pe):bi!=wi&&Yn(bi,Li,!0,Pe)}}Hn&&(ae.idx=oe,y()),X!==!1&&Je("setCursor")}let F=null;Object.defineProperty(r,"rect",{get(){return F==null&&W(!1),F}});function W(V=!1){V?F=null:(F=i.getBoundingClientRect(),Je("syncRect",F))}function j(V,X,ie,oe,pe,xe,Ee){ne._lock||Ii&&V!=null&&V.movementX==0&&V.movementY==0||(K(V,X,ie,oe,pe,xe,Ee,!1,V!=null),V!=null?A(null,!0,!0):A(X,!0,!1))}function K(V,X,ie,oe,pe,xe,Ee,Pe,ze){if(F==null&&W(!1),ri(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){st=-10,Ut=-10;return}let[He,Ge]=xt.scales,Qe=X.cursor.sync,[wt,Xt]=Qe.values,[Dt,yt]=Qe.scales,[dt,ot]=xt.match,mn=X.axes[0].side%2==1,$n=z.ori==0?ht:Ke,Zn=z.ori==1?ht:Ke,on=mn?xe:pe,un=mn?pe:xe,ge=mn?oe:ie,Se=mn?ie:oe;if(Dt!=null?ie=dt(He,Dt)?w(wt,M[He],$n,0):-10:ie=$n*(ge/on),yt!=null?oe=ot(Ge,yt)?w(Xt,M[Ge],Zn,0):-10:oe=Zn*(Se/un),z.ori==1){let ke=ie;ie=oe,oe=ke}}ze&&(X==null||X.cursor.event.type==Ou)&&((ie<=1||ie>=ht-1)&&(ie=gs(ie,ht)),(oe<=1||oe>=Ke-1)&&(oe=gs(oe,Ke))),Pe?(fa=ie,So=oe,[Ei,fo]=ne.move(r,ie,oe)):(st=ie,Ut=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){Ri(Y,!1)}let re,ue,ye,Ce;function ve(V,X,ie,oe,pe,xe,Ee){Ii=!0,je=yn=Pn._x=Pn._y=!1,K(V,X,ie,oe,pe,xe,Ee,!0,!1),V!=null&&(An(Nu,Fu,we,!1),Ct(_g,r,Ei,fo,ht,Ke,null));let{left:Pe,top:ze,width:He,height:Ge}=bt;re=Pe,ue=ze,ye=He,Ce=Ge}function we(V,X,ie,oe,pe,xe,Ee){Ii=Pn._x=Pn._y=!1,K(V,X,ie,oe,pe,xe,Ee,!1,!0);let{left:Pe,top:ze,width:He,height:Ge}=bt,Qe=He>0||Ge>0,wt=re!=Pe||ue!=ze||ye!=He||Ce!=Ge;if(Qe&&wt&&Ri(bt),Pn.setScale&&Qe&&wt){let Xt=Pe,Dt=He,yt=ze,dt=Ge;if(z.ori==1&&(Xt=ze,Dt=Ge,yt=Pe,dt=He),je&&Rr(C,rn(Xt,C),rn(Xt+Dt,C)),yn)for(let ot in M){let mn=M[ot];ot!=C&&mn.from==null&&mn.min!=hn&&Rr(ot,rn(yt+dt,ot),rn(yt,ot))}Z()}else ne.lock&&(ne._lock=!ne._lock,A(X,!0,V!=null));V!=null&&(gr(Nu,Fu),Ct(Nu,r,st,Ut,ht,Ke,null))}function Oe(V,X,ie,oe,pe,xe,Ee){if(ne._lock)return;ri(V);let Pe=Ii;if(Ii){let ze=!0,He=!0,Ge=10,Qe,wt;z.ori==0?(Qe=je,wt=yn):(Qe=yn,wt=je),Qe&&wt&&(ze=st<=Ge||st>=ht-Ge,He=Ut<=Ge||Ut>=Ke-Ge),Qe&&ze&&(st=st<Ei?0:ht),wt&&He&&(Ut=Ut<fo?0:Ke),A(null,!0,!0),Ii=!1}st=-10,Ut=-10,ee.fill(null),A(null,!0,!0),Pe&&(Ii=Pe)}function Re(V,X,ie,oe,pe,xe,Ee){ne._lock||(ri(V),rr(),Z(),V!=null&&Ct(Mg,r,st,Ut,ht,Ke,null))}function Ve(){N.forEach(h_),Ki(r.width,r.height,!0)}fs(Bl,Zs,Ve);const at={};at.mousedown=ve,at.mousemove=j,at.mouseup=we,at.dblclick=Re,at.setSeries=(V,X,ie,oe)=>{let pe=xt.match[2];ie=pe(r,X,ie),ie!=-1&&Yn(ie,oe,!0,!1)},se&&(An(_g,i,ve),An(Ou,i,j),An(Sg,i,V=>{ri(V),W(!1)}),An($g,i,Oe),An(Mg,i,Re),ah.add(r),r.syncRect=W);const Xe=r.hooks=t.hooks||{};function Je(V,X,ie){Go?uo.push([V,X,ie]):V in Xe&&Xe[V].forEach(oe=>{oe.call(null,r,X,ie)})}(t.plugins||[]).forEach(V=>{for(let X in V.hooks)Xe[X]=(Xe[X]||[]).concat(V.hooks[X])});const kn=(V,X,ie)=>ie,xt=qn({key:null,setSeries:!1,filters:{pub:Kg,sub:Kg},scales:[C,x[1]?x[1].scale:null],match:[qg,qg,kn],values:[null,null]},ne.sync);xt.match.length==2&&xt.match.push(kn),ne.sync=xt;const Gt=xt.key,Tt=Im(Gt);function Ct(V,X,ie,oe,pe,xe,Ee){xt.filters.pub(V,X,ie,oe,pe,xe,Ee)&&Tt.pub(V,X,ie,oe,pe,xe,Ee)}Tt.sub(r);function Xn(V,X,ie,oe,pe,xe,Ee){xt.filters.sub(V,X,ie,oe,pe,xe,Ee)&&at[V](null,X,ie,oe,pe,xe,Ee)}r.pub=Xn;function ar(){Tt.unsub(r),ah.delete(r),tr.clear(),zu(Bl,Zs,Ve),d.remove(),me?.remove(),Je("destroy")}r.destroy=ar;function Sn(){Je("init",t,n),Un(n||t.data,!1),k[C]?Ne(C,k[C]):rr(),ni=bt.show&&(bt.width>0||bt.height>0),mi=Hn=!0,Ki(t.width,t.height)}return x.forEach(ao),N.forEach(Vr),e?e instanceof HTMLElement?(e.appendChild(d),Sn()):e(r,Sn):Sn(),r}Sr.assign=qn,Sr.fmtNum=Uu,Sr.rangeNum=Ul,Sr.rangeLog=Hl,Sr.rangeAsinh=ju,Sr.orient=vs,Sr.pxRatio=en,Sr.join=nA,Sr.fmtDate=Gu,Sr.tzDate=fA,Sr.sync=Im;{Sr.addGap=YA,Sr.clipGaps=Zl;let t=Sr.paths={points:Pm};t.linear=Bm,t.stepped=QA,t.bars=JA,t.spline=t_}var Gm,Ym;function d_(){return Ym||(Ym=1,Gm=function(t,n,e,r,v){var p,g;if(r===void 0)r=0;else if(r=r|0,r<0||r>=t.length)throw new RangeError("invalid lower bound");if(v===void 0)v=t.length-1;else if(v=v|0,v<r||v>=t.length)throw new RangeError("invalid upper bound");for(;r<=v;)if(p=r+(v-r>>>1),g=+e(t[p],n,p,t),g<0)r=p+1;else if(g>0)v=p-1;else return p;return~r}),Gm}var f_=d_();const f2=Mn("q",kl(f_));var ch,Xm;function p_(){if(Xm)return ch;Xm=1;function t(n,e,r){var v=-1,p=n.length;e<0&&(e=-e>p?0:p+e),r=r>p?p:r,r<0&&(r+=p),p=e>r?0:r-e>>>0,e>>>=0;for(var g=Array(p);++v<p;)g[v]=n[v+e];return g}return ch=t,ch}var uh,Zm;function g_(){if(Zm)return uh;Zm=1;var t=p_();function n(e,r,v){var p=e.length;return v=v===void 0?p:v,!r&&v>=p?e:t(e,r,v)}return uh=n,uh}var hh,Qm;function Jm(){if(Qm)return hh;Qm=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\ufe0e\\ufe0f",g="\\u200d",w=RegExp("["+g+t+v+p+"]");function h(d){return w.test(d)}return hh=h,hh}var dh,ev;function m_(){if(ev)return dh;ev=1;function t(n){return n.split("")}return dh=t,dh}var fh,tv;function v_(){if(tv)return fh;tv=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\ufe0e\\ufe0f",g="["+t+"]",w="["+v+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+p+"]?",f="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+f,x="(?:"+[a+w+"?",w,l,u,g].join("|")+")",N=RegExp(h+"(?="+h+")|"+x+b,"g");function M(_){return _.match(N)||[]}return fh=M,fh}var ph,nv;function y_(){if(nv)return ph;nv=1;var t=m_(),n=Jm(),e=v_();function r(v){return n(v)?e(v):t(v)}return ph=r,ph}var gh,rv;function b_(){if(rv)return gh;rv=1;var t=typeof Po=="object"&&Po&&Po.Object===Object&&Po;return gh=t,gh}var mh,iv;function w_(){if(iv)return mh;iv=1;var t=b_(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return mh=e,mh}var vh,ov;function yh(){if(ov)return vh;ov=1;var t=w_(),n=t.Symbol;return vh=n,vh}var bh,sv;function x_(){if(sv)return bh;sv=1;function t(n,e){for(var r=-1,v=n==null?0:n.length,p=Array(v);++r<v;)p[r]=e(n[r],r,n);return p}return bh=t,bh}var wh,av;function C_(){if(av)return wh;av=1;var t=Array.isArray;return wh=t,wh}var xh,lv;function k_(){if(lv)return xh;lv=1;var t=yh(),n=Object.prototype,e=n.hasOwnProperty,r=n.toString,v=t?t.toStringTag:void 0;function p(g){var w=e.call(g,v),h=g[v];try{g[v]=void 0;var d=!0}catch{}var a=r.call(g);return d&&(w?g[v]=h:delete g[v]),a}return xh=p,xh}var Ch,cv;function A_(){if(cv)return Ch;cv=1;var t=Object.prototype,n=t.toString;function e(r){return n.call(r)}return Ch=e,Ch}var kh,uv;function __(){if(uv)return kh;uv=1;var t=yh(),n=k_(),e=A_(),r="[object Null]",v="[object Undefined]",p=t?t.toStringTag:void 0;function g(w){return w==null?w===void 0?v:r:p&&p in Object(w)?n(w):e(w)}return kh=g,kh}var Ah,hv;function S_(){if(hv)return Ah;hv=1;function t(n){return n!=null&&typeof n=="object"}return Ah=t,Ah}var _h,dv;function $_(){if(dv)return _h;dv=1;var t=__(),n=S_(),e="[object Symbol]";function r(v){return typeof v=="symbol"||n(v)&&t(v)==e}return _h=r,_h}var Sh,fv;function M_(){if(fv)return Sh;fv=1;var t=yh(),n=x_(),e=C_(),r=$_(),v=t?t.prototype:void 0,p=v?v.toString:void 0;function g(w){if(typeof w=="string")return w;if(e(w))return n(w,g)+"";if(r(w))return p?p.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Sh=g,Sh}var $h,pv;function tc(){if(pv)return $h;pv=1;var t=M_();function n(e){return e==null?"":t(e)}return $h=n,$h}var Mh,gv;function T_(){if(gv)return Mh;gv=1;var t=g_(),n=Jm(),e=y_(),r=tc();function v(p){return function(g){g=r(g);var w=n(g)?e(g):void 0,h=w?w[0]:g.charAt(0),d=w?t(w,1).join(""):g.slice(1);return h[p]()+d}}return Mh=v,Mh}var Th,mv;function vv(){if(mv)return Th;mv=1;var t=T_(),n=t("toUpperCase");return Th=n,Th}var E_=vv();const I_=kl(E_);var Eh,yv;function R_(){if(yv)return Eh;yv=1;var t=tc(),n=vv();function e(r){return n(t(r).toLowerCase())}return Eh=e,Eh}var Ih,bv;function L_(){if(bv)return Ih;bv=1;function t(n,e,r,v){var p=-1,g=n==null?0:n.length;for(v&&g&&(r=n[++p]);++p<g;)r=e(r,n[p],p,n);return r}return Ih=t,Ih}var Rh,wv;function O_(){if(wv)return Rh;wv=1;function t(n){return function(e){return n?.[e]}}return Rh=t,Rh}var Lh,xv;function N_(){if(xv)return Lh;xv=1;var t=O_(),n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=t(n);return Lh=e,Lh}var Oh,Cv;function D_(){if(Cv)return Oh;Cv=1;var t=N_(),n=tc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",v="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",g=r+v+p,w="["+g+"]",h=RegExp(w,"g");function d(a){return a=n(a),a&&a.replace(e,t).replace(h,"")}return Oh=d,Oh}var Nh,kv;function F_(){if(kv)return Nh;kv=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}return Nh=n,Nh}var Dh,Av;function P_(){if(Av)return Dh;Av=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}return Dh=n,Dh}var Fh,_v;function W_(){if(_v)return Fh;_v=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=w+h+d+a,i="['’]",s="["+c+"]",f="["+v+"]",b="\\d+",x="["+p+"]",N="["+g+"]",M="[^"+t+c+b+p+g+l+"]",_="\\ud83c[\\udffb-\\udfff]",C="(?:"+f+"|"+_+")",L="[^"+t+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+l+"]",z="\\u200d",P="(?:"+N+"|"+M+")",O="(?:"+E+"|"+M+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",R=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,I].join("|")+")"+B+R+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ee=B+R+U,ae="(?:"+[x,D,I].join("|")+")"+ee,ne=RegExp([E+"?"+N+"+"+$+"(?="+[s,E,"$"].join("|")+")",O+"+"+k+"(?="+[s,E+P,"$"].join("|")+")",E+"?"+P+"+"+$,E+"+"+k,Q,q,b,ae].join("|"),"g");function ce(se){return se.match(ne)||[]}return Fh=ce,Fh}var Ph,Sv;function B_(){if(Sv)return Ph;Sv=1;var t=F_(),n=P_(),e=tc(),r=W_();function v(p,g,w){return p=e(p),g=w?void 0:g,g===void 0?n(p)?r(p):t(p):p.match(g)||[]}return Ph=v,Ph}var Wh,$v;function z_(){if($v)return Wh;$v=1;var t=L_(),n=D_(),e=B_(),r="['’]",v=RegExp(r,"g");function p(g){return function(w){return t(e(n(w).replace(v,"")),g,"")}}return Wh=p,Wh}var Bh,Mv;function j_(){if(Mv)return Bh;Mv=1;var t=R_(),n=z_(),e=n(function(r,v,p){return v=v.toLowerCase(),r+(p?t(v):v)});return Bh=e,Bh}var H_=j_();const U_=kl(H_),V_=Object.assign({"./ArrayWidget.vue":()=>nt(()=>tt.import("./ArrayWidget-Dh6zDiC7-873bed41f0920d4f20e2.js"),void 0),"./ArrayplotWidget.vue":()=>nt(()=>tt.import("./ArrayplotWidget-CSc_TqNm-faea7e102c3b0e77340e.js"),void 0),"./BlockWidget.vue":()=>nt(()=>tt.import("./BlockWidget-BdR_HCVc-339e6dbc0abdf23824ee.js"),void 0),"./ButtonWidget.vue":()=>nt(()=>tt.import("./ButtonWidget-DZ4VCNWU-467ba3039befef92a15a.js"),void 0),"./CanvasWidget.vue":()=>nt(()=>tt.import("./CanvasWidget-DuXOo3jG-cca60757795adfc9b555.js"),void 0),"./CanvasdotWidget.vue":()=>nt(()=>tt.import("./CanvasdotWidget-WoLpxI1u-42cc7026c74d2b83f1bf.js"),void 0),"./CanvasimageWidget.vue":()=>nt(()=>tt.import("./CanvasimageWidget-tWpK5rsv-037c03642913e202f682.js"),void 0),"./CanvasimagevalueWidget.vue":()=>nt(()=>tt.import("./CanvasimagevalueWidget-BVzJYz3l-3d76b92444baed7b16b9.js"),void 0),"./CanvaslabelWidget.vue":()=>nt(()=>tt.import("./CanvaslabelWidget-CDFf8Vll-90f5994b9ebe9dd669d7.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>nt(()=>tt.import("./CanvaslabelvalueWidget-DzJKD6qs-16454bcd3f0db6ad1a0d.js"),void 0),"./CanvaslineWidget.vue":()=>nt(()=>tt.import("./CanvaslineWidget-BttTXCZq-4f927bb9d629d4ca2431.js"),void 0),"./CanvaslinevalueWidget.vue":()=>nt(()=>tt.import("./CanvaslinevalueWidget-i6G0JfnZ-6ed33732c8ac89cd98bb.js"),void 0),"./CheckbuttonWidget.vue":()=>nt(()=>tt.import("./CheckbuttonWidget-18jtf7sh-1bb7cf5924c0accea787.js"),void 0),"./ComboboxWidget.vue":()=>nt(()=>tt.import("./ComboboxWidget-BjaVFbD4-68be351db2576115fc45.js"),void 0),"./DateWidget.vue":()=>nt(()=>tt.import("./DateWidget-DkFAFlc8-8b87a00cd8c7df7adf8c.js"),void 0),"./DynamicWidget.vue":()=>nt(()=>tt.import("./DynamicWidget-BuSbQVhf-57879c868050e8e6066a.js"),void 0),"./FilechecksumWidget.vue":()=>nt(()=>tt.import("./FilechecksumWidget-DqJ_hvN4-458d5afdd66f766a320e.js"),void 0),"./FiledisplayWidget.vue":()=>nt(()=>tt.import("./FiledisplayWidget-CYznG_tf-633ffe7729c3d8df045f.js"),void 0),"./FormatvalueWidget.vue":()=>nt(()=>tt.import("./FormatvalueWidget-BnVu4YGx-685c1b3d38cda62137ef.js"),void 0),"./HorizontalWidget.vue":()=>nt(()=>tt.import("./HorizontalWidget-BA9PiP3d-61dbe5e15cff5d64bb29.js"),void 0),"./HorizontalboxWidget.vue":()=>nt(()=>tt.import("./HorizontalboxWidget-B-7HOqgl-32dab144449bf94f15aa.js"),void 0),"./HorizontallineWidget.vue":()=>nt(()=>tt.import("./HorizontallineWidget-D-o9MGo0-ddb9630a2adc743b1e74.js"),void 0),"./IframeWidget.vue":()=>nt(()=>tt.import("./IframeWidget-BzOka-fX-cbf4824b3f4d3e3f6424.js"),void 0),"./ImageviewerWidget.vue":()=>nt(()=>tt.import("./ImageviewerWidget-BA9uOM1q-b0947f82f033e760c532.js"),void 0),"./LabelWidget.vue":()=>nt(()=>tt.import("./LabelWidget-Da2howZF-bfb9fcc9c81e16f870e5.js"),void 0),"./LabelledWidget.vue":()=>nt(()=>tt.import("./LabelledWidget-BH8y3OXT-68af25a9704951142531.js"),void 0),"./LabelprogressbarWidget.vue":()=>nt(()=>tt.import("./LabelprogressbarWidget-Brl24F4c-e37d3a3a1ea8e0130fa0.js"),void 0),"./LabelsparklineWidget.vue":()=>nt(()=>tt.import("./LabelsparklineWidget-D22MB7-4-4d4c54cc590572f96ebc.js"),void 0),"./LabelvalueWidget.vue":()=>nt(()=>tt.import("./LabelvalueWidget-_1JPbK-K-79535add803f699f912d.js"),void 0),"./LabelvaluedescWidget.vue":()=>nt(()=>tt.import("./LabelvaluedescWidget-BgduSJJb-2c9d371ecc2f493464fd.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitsbarWidget-C9PlEhWo-124291211bb9a7fb7a20.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitscolumnWidget-Cay6AhoZ-aeb62c844e9d862bc2b3.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>nt(()=>tt.import("./LabelvaluerangebarWidget-s_8IgY-C-299393edba519bae3a75.js"),void 0),"./LedWidget.vue":()=>nt(()=>tt.import("./LedWidget-DgMtvsiv-f9fb0a4ee2f71ef2a9f6.js"),void 0),"./LimitsbarWidget.vue":()=>nt(()=>tt.import("./LimitsbarWidget-DpmJn1Lo-06311c5aa1a8fd9c3272.js"),void 0),"./LimitscolorWidget.vue":()=>nt(()=>tt.import("./LimitscolorWidget-BMXiEaDm-82722cde5d79a4a63dd5.js"),void 0),"./LimitscolumnWidget.vue":()=>nt(()=>tt.import("./LimitscolumnWidget-ufFMz6R--c471ef82b3a96efbb076.js"),void 0),"./LinegraphWidget.vue":()=>nt(()=>tt.import("./LinegraphWidget-BC2wVOny-7d86e1f9b9bee5c66333.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>nt(()=>tt.import("./MatrixbycolumnsWidget-DfUAeBnO-b55624295093260752b3.js"),void 0),"./ProgressbarWidget.vue":()=>nt(()=>tt.import("./ProgressbarWidget-D3ndYnq_-3586c760d2e8861c4010.js"),void 0),"./RadiobuttonWidget.vue":()=>nt(()=>tt.import("./RadiobuttonWidget-CP0S9nWW-7982529538978f6d02c1.js"),void 0),"./RadiogroupWidget.vue":()=>nt(()=>tt.import("./RadiogroupWidget-BXHfA21T-dd31b0768cdf93c1cabc.js"),void 0),"./RangebarWidget.vue":()=>nt(()=>tt.import("./RangebarWidget-Bv2DqkPo-ec5662b730343afaa28e.js"),void 0),"./RollupWidget.vue":()=>nt(()=>tt.import("./RollupWidget-o_huYU0x-8a7a96915fa5538ce930.js"),void 0),"./ScrollwindowWidget.vue":()=>nt(()=>tt.import("./ScrollwindowWidget-DdjaML6D-b4480561f3da8583459b.js"),void 0),"./SignalWidget.vue":()=>nt(()=>tt.import("./SignalWidget-Dd54y28I-ad29f9a3ddb39bc8e712.js"),void 0),"./SpacerWidget.vue":()=>nt(()=>tt.import("./SpacerWidget-GPFYtIG1-9dd77eb1e2a7304cf299.js"),void 0),"./SparklineWidget.vue":()=>nt(()=>tt.import("./SparklineWidget-f11nrlLS-92deda7a9b6298571159.js"),void 0),"./TabbookWidget.vue":()=>nt(()=>tt.import("./TabbookWidget-DeaC27yC-a92ec7a904c37d283bab.js"),void 0),"./TextboxWidget.vue":()=>nt(()=>tt.import("./TextboxWidget-tL41zWUX-75750425b2582c87e1a4.js"),void 0),"./TextfieldWidget.vue":()=>nt(()=>tt.import("./TextfieldWidget-D1qj14Qi-0858b199ec7f9902291c.js"),void 0),"./TimeWidget.vue":()=>nt(()=>tt.import("./TimeWidget-CSVGNong-12f265007f01523c523a.js"),void 0),"./TitleWidget.vue":()=>nt(()=>tt.import("./TitleWidget-CLx-tuYT-e469f1843cd091fea225.js"),void 0),"./ValueWidget.vue":()=>nt(()=>tt.import("./ValueWidget-BYgpXfDo-9f7bb34efd4d22fd774e.js"),void 0),"./ValuelimitsbarWidget.vue":()=>nt(()=>tt.import("./ValuelimitsbarWidget-Dc9-VNZ3-42880e7e026ad3e9e259.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>nt(()=>tt.import("./ValuelimitscolumnWidget-b7W8K3mR-c331b0200587603b6c9e.js"),void 0),"./ValuerangebarWidget.vue":()=>nt(()=>tt.import("./ValuerangebarWidget-DmhczZQb-c8c6852c06a1fb11c936.js"),void 0),"./VerticalWidget.vue":()=>nt(()=>tt.import("./VerticalWidget-BvsVh0Ob-32ffa67d963ba10b5185.js"),void 0),"./VerticalboxWidget.vue":()=>nt(()=>tt.import("./VerticalboxWidget-ClTCDCQN-b36d02475eee09ac8fa2.js"),void 0)}),K_=Object.entries(V_).reduce((t,[n,e])=>{n=n.split("/").pop();const r=I_(U_(n.replace(/\.\w+$/,"")));return{...t,[r]:mf(e)}},{}),p2=Mn("V",{components:K_});function Tv(t,n){return function(){return t.apply(n,arguments)}}const{toString:q_}=Object.prototype,{getPrototypeOf:zh}=Object,{iterator:nc,toStringTag:Ev}=Symbol,rc=(t=>n=>{const e=q_.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Vi=t=>(t=t.toLowerCase(),n=>rc(n)===t),ic=t=>n=>typeof n===t,{isArray:oa}=Array,sa=ic("undefined");function Va(t){return t!==null&&!sa(t)&&t.constructor!==null&&!sa(t.constructor)&&ei(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Iv=Vi("ArrayBuffer");function G_(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Iv(t.buffer),n}const Y_=ic("string"),ei=ic("function"),Rv=ic("number"),Ka=t=>t!==null&&typeof t=="object",X_=t=>t===!0||t===!1,oc=t=>{if(rc(t)!=="object")return!1;const n=zh(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Ev in t)&&!(nc in t)},Z_=t=>{if(!Ka(t)||Va(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Q_=Vi("Date"),J_=Vi("File"),eS=t=>!!(t&&typeof t.uri<"u"),tS=t=>t&&typeof t.getParts<"u",nS=Vi("Blob"),rS=Vi("FileList"),iS=t=>Ka(t)&&ei(t.pipe);function oS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Lv=oS(),Ov=typeof Lv.FormData<"u"?Lv.FormData:void 0,sS=t=>{let n;return t&&(Ov&&t instanceof Ov||ei(t.append)&&((n=rc(t))==="formdata"||n==="object"&&ei(t.toString)&&t.toString()==="[object FormData]"))},aS=Vi("URLSearchParams"),[lS,cS,uS,hS]=["ReadableStream","Request","Response","Headers"].map(Vi),dS=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qa(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),oa(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if(Va(t))return;const p=e?Object.getOwnPropertyNames(t):Object.keys(t),g=p.length;let w;for(r=0;r<g;r++)w=p[r],n.call(null,t[w],w,t)}}function Nv(t,n){if(Va(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dv=t=>!sa(t)&&t!==ys;function jh(){const{caseless:t,skipUndefined:n}=Dv(this)&&this||{},e={},r=(v,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=t&&Nv(e,p)||p;oc(e[g])&&oc(v)?e[g]=jh(e[g],v):oc(v)?e[g]=jh({},v):oa(v)?e[g]=v.slice():(!n||!sa(v))&&(e[g]=v)};for(let v=0,p=arguments.length;v<p;v++)arguments[v]&&qa(arguments[v],r);return e}const fS=(t,n,e,{allOwnKeys:r}={})=>(qa(n,(v,p)=>{e&&ei(v)?Object.defineProperty(t,p,{value:Tv(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,p,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),pS=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),gS=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},mS=(t,n,e,r)=>{let v,p,g;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),p=v.length;p-- >0;)g=v[p],(!r||r(g,t,n))&&!w[g]&&(n[g]=t[g],w[g]=!0);t=e!==!1&&zh(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},vS=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},yS=t=>{if(!t)return null;if(oa(t))return t;let n=t.length;if(!Rv(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},bS=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&zh(Uint8Array)),wS=(t,n)=>{const e=(t&&t[nc]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},xS=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},CS=Vi("HTMLFormElement"),kS=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),Fv=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),AS=Vi("RegExp"),Pv=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};qa(e,(v,p)=>{let g;(g=n(v,p,t))!==!1&&(r[p]=g||v)}),Object.defineProperties(t,r)},_S=t=>{Pv(t,(n,e)=>{if(ei(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(ei(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},SS=(t,n)=>{const e={},r=v=>{v.forEach(p=>{e[p]=!0})};return oa(t)?r(t):r(String(t).split(n)),e},$S=()=>{},MS=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function TS(t){return!!(t&&ei(t.append)&&t[Ev]==="FormData"&&t[nc])}const ES=t=>{const n=new Array(10),e=(r,v)=>{if(Ka(r)){if(n.indexOf(r)>=0)return;if(Va(r))return r;if(!("toJSON"in r)){n[v]=r;const p=oa(r)?[]:{};return qa(r,(g,w)=>{const h=e(g,v+1);!sa(h)&&(p[w]=h)}),n[v]=void 0,p}}return r};return e(t,0)},IS=Vi("AsyncFunction"),RS=t=>t&&(Ka(t)||ei(t))&&ei(t.then)&&ei(t.catch),Wv=((t,n)=>t?setImmediate:n?((e,r)=>(ys.addEventListener("message",({source:v,data:p})=>{v===ys&&p===e&&r.length&&r.shift()()},!1),v=>{r.push(v),ys.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ei(ys.postMessage)),LS=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||Wv,OS=t=>t!=null&&ei(t[nc]),_e={isArray:oa,isArrayBuffer:Iv,isBuffer:Va,isFormData:sS,isArrayBufferView:G_,isString:Y_,isNumber:Rv,isBoolean:X_,isObject:Ka,isPlainObject:oc,isEmptyObject:Z_,isReadableStream:lS,isRequest:cS,isResponse:uS,isHeaders:hS,isUndefined:sa,isDate:Q_,isFile:J_,isReactNativeBlob:eS,isReactNative:tS,isBlob:nS,isRegExp:AS,isFunction:ei,isStream:iS,isURLSearchParams:aS,isTypedArray:bS,isFileList:rS,forEach:qa,merge:jh,extend:fS,trim:dS,stripBOM:pS,inherits:gS,toFlatObject:mS,kindOf:rc,kindOfTest:Vi,endsWith:vS,toArray:yS,forEachEntry:wS,matchAll:xS,isHTMLForm:CS,hasOwnProperty:Fv,hasOwnProp:Fv,reduceDescriptors:Pv,freezeMethods:_S,toObjectSet:SS,toCamelCase:kS,noop:$S,toFiniteNumber:MS,findKey:Nv,global:ys,isContextDefined:Dv,isSpecCompliantForm:TS,toJSONObject:ES,isAsyncFn:IS,isThenable:RS,setImmediate:Wv,asap:LS,isIterable:OS};let vt=class V0 extends Error{static from(n,e,r,v,p,g){const w=new V0(n.message,e||n.code,r,v,p);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),g&&Object.assign(w,g),w}constructor(n,e,r,v,p){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),p&&(this.response=p,this.status=p.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}};vt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",vt.ERR_BAD_OPTION="ERR_BAD_OPTION",vt.ECONNABORTED="ECONNABORTED",vt.ETIMEDOUT="ETIMEDOUT",vt.ERR_NETWORK="ERR_NETWORK",vt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",vt.ERR_DEPRECATED="ERR_DEPRECATED",vt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",vt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",vt.ERR_CANCELED="ERR_CANCELED",vt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",vt.ERR_INVALID_URL="ERR_INVALID_URL";const NS=null;function Hh(t){return _e.isPlainObject(t)||_e.isArray(t)}function Bv(t){return _e.endsWith(t,"[]")?t.slice(0,-2):t}function Uh(t,n,e){return t?t.concat(n).map(function(r,v){return r=Bv(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function DS(t){return _e.isArray(t)&&!t.some(Hh)}const FS=_e.toFlatObject(_e,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(t,n,e){if(!_e.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!_e.isUndefined(i[c])});const r=e.metaTokens,v=e.visitor||d,p=e.dots,g=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(n);if(!_e.isFunction(v))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(_e.isDate(c))return c.toISOString();if(_e.isBoolean(c))return c.toString();if(!w&&_e.isBlob(c))throw new vt("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(c)||_e.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let f=c;if(_e.isReactNative(n)&&_e.isReactNativeBlob(c))return n.append(Uh(s,i,p),h(c)),!1;if(c&&!s&&typeof c=="object"){if(_e.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(_e.isArray(c)&&DS(c)||(_e.isFileList(c)||_e.endsWith(i,"[]"))&&(f=_e.toArray(c)))return i=Bv(i),f.forEach(function(b,x){!(_e.isUndefined(b)||b===null)&&n.append(g===!0?Uh([i],x,p):g===null?i:i+"[]",h(b))}),!1}return Hh(c)?!0:(n.append(Uh(s,i,p),h(c)),!1)}const a=[],l=Object.assign(FS,{defaultVisitor:d,convertValue:h,isVisitable:Hh});function u(c,i){if(!_e.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),_e.forEach(c,function(s,f){(!(_e.isUndefined(s)||s===null)&&v.call(n,s,_e.isString(f)?f.trim():f,i,l))===!0&&u(s,i?i.concat(f):[f])}),a.pop()}}if(!_e.isObject(t))throw new TypeError("data must be an object");return u(t),n}function zv(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return n[e]})}function Vh(t,n){this._pairs=[],t&&sc(t,this,n)}const jv=Vh.prototype;jv.append=function(t,n){this._pairs.push([t,n])},jv.toString=function(t){const n=t?function(e){return t.call(this,e,zv)}:zv;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function PS(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hv(t,n,e){if(!n)return t;const r=e&&e.encode||PS,v=_e.isFunction(e)?{serialize:e}:e,p=v&&v.serialize;let g;if(p?g=p(n,v):g=_e.isURLSearchParams(n)?n.toString():new Vh(n,v).toString(r),g){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+g}return t}let Uv=class{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){_e.forEach(this.handlers,function(e){e!==null&&n(e)})}};const Kh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},WS=typeof URLSearchParams<"u"?URLSearchParams:Vh,BS=typeof FormData<"u"?FormData:null,zS=typeof Blob<"u"?Blob:null,jS={isBrowser:!0,classes:{URLSearchParams:WS,FormData:BS,Blob:zS},protocols:["http","https","file","blob","url","data"]},qh=typeof window<"u"&&typeof document<"u",Gh=typeof navigator=="object"&&navigator||void 0,HS=qh&&(!Gh||["ReactNative","NativeScript","NS"].indexOf(Gh.product)<0),US=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",VS=qh&&window.location.href||"http://localhost",KS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qh,hasStandardBrowserEnv:HS,hasStandardBrowserWebWorkerEnv:US,navigator:Gh,origin:VS},Symbol.toStringTag,{value:"Module"})),$r={...KS,...jS};function qS(t,n){return sc(t,new $r.classes.URLSearchParams,{visitor:function(e,r,v,p){return $r.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...n})}function GS(t){return _e.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function YS(t){const n={},e=Object.keys(t);let r;const v=e.length;let p;for(r=0;r<v;r++)p=e[r],n[p]=t[p];return n}function Vv(t){function n(e,r,v,p){let g=e[p++];if(g==="__proto__")return!0;const w=Number.isFinite(+g),h=p>=e.length;return g=!g&&_e.isArray(v)?v.length:g,h?(_e.hasOwnProp(v,g)?v[g]=[v[g],r]:v[g]=r,!w):((!v[g]||!_e.isObject(v[g]))&&(v[g]=[]),n(e,r,v[g],p)&&_e.isArray(v[g])&&(v[g]=YS(v[g])),!w)}if(_e.isFormData(t)&&_e.isFunction(t.entries)){const e={};return _e.forEachEntry(t,(r,v)=>{n(GS(r),v,e,0)}),e}return null}function XS(t,n,e){if(_e.isString(t))try{return(n||JSON.parse)(t),_e.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const Ga={transitional:Kh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=_e.isObject(t);if(v&&_e.isHTMLForm(t)&&(t=new FormData(t)),_e.isFormData(t))return r?JSON.stringify(Vv(t)):t;if(_e.isArrayBuffer(t)||_e.isBuffer(t)||_e.isStream(t)||_e.isFile(t)||_e.isBlob(t)||_e.isReadableStream(t))return t;if(_e.isArrayBufferView(t))return t.buffer;if(_e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(v){if(e.indexOf("application/x-www-form-urlencoded")>-1)return qS(t,this.formSerializer).toString();if((p=_e.isFileList(t))||e.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return sc(p?{"files[]":t}:t,g&&new g,this.formSerializer)}}return v||r?(n.setContentType("application/json",!1),XS(t)):t}],transformResponse:[function(t){const n=this.transitional||Ga.transitional,e=n&&n.forcedJSONParsing,r=this.responseType==="json";if(_e.isResponse(t)||_e.isReadableStream(t))return t;if(t&&_e.isString(t)&&(e&&!this.responseType||r)){const v=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(p){if(v)throw p.name==="SyntaxError"?vt.from(p,vt.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],t=>{Ga.headers[t]={}});const ZS=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),QS=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
1478
|
+
`).forEach(function(p){v=p.indexOf(":"),e=p.substring(0,v).trim().toLowerCase(),r=p.substring(v+1).trim(),!(!e||n[e]&&ZS[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},Kv=Symbol("internals");function Ya(t){return t&&String(t).trim().toLowerCase()}function ac(t){return t===!1||t==null?t:_e.isArray(t)?t.map(ac):String(t).replace(/[\r\n]+$/,"")}function JS(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const e$=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Yh(t,n,e,r,v){if(_e.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!_e.isString(n)){if(_e.isString(r))return n.indexOf(r)!==-1;if(_e.isRegExp(r))return r.test(n)}}function t$(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function n$(t,n){const e=_e.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,p,g){return this[r].call(this,n,v,p,g)},configurable:!0})})}let ti=class{constructor(n){n&&this.set(n)}set(n,e,r){const v=this;function p(w,h,d){const a=Ya(h);if(!a)throw new Error("header name must be a non-empty string");const l=_e.findKey(v,a);(!l||v[l]===void 0||d===!0||d===void 0&&v[l]!==!1)&&(v[l||h]=ac(w))}const g=(w,h)=>_e.forEach(w,(d,a)=>p(d,a,h));if(_e.isPlainObject(n)||n instanceof this.constructor)g(n,e);else if(_e.isString(n)&&(n=n.trim())&&!e$(n))g(QS(n),e);else if(_e.isObject(n)&&_e.isIterable(n)){let w={},h,d;for(const a of n){if(!_e.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?_e.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}g(w,e)}else n!=null&&p(e,n,r);return this}get(n,e){if(n=Ya(n),n){const r=_e.findKey(this,n);if(r){const v=this[r];if(!e)return v;if(e===!0)return JS(v);if(_e.isFunction(e))return e.call(this,v,r);if(_e.isRegExp(e))return e.exec(v);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,e){if(n=Ya(n),n){const r=_e.findKey(this,n);return!!(r&&this[r]!==void 0&&(!e||Yh(this,this[r],r,e)))}return!1}delete(n,e){const r=this;let v=!1;function p(g){if(g=Ya(g),g){const w=_e.findKey(r,g);w&&(!e||Yh(r,r[w],w,e))&&(delete r[w],v=!0)}}return _e.isArray(n)?n.forEach(p):p(n),v}clear(n){const e=Object.keys(this);let r=e.length,v=!1;for(;r--;){const p=e[r];(!n||Yh(this,this[p],p,n,!0))&&(delete this[p],v=!0)}return v}normalize(n){const e=this,r={};return _e.forEach(this,(v,p)=>{const g=_e.findKey(r,p);if(g){e[g]=ac(v),delete e[p];return}const w=n?t$(p):String(p).trim();w!==p&&delete e[p],e[w]=ac(v),r[w]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const e=Object.create(null);return _e.forEach(this,(r,v)=>{r!=null&&r!==!1&&(e[v]=n&&_e.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,e])=>n+": "+e).join(`
|
|
1479
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...e){const r=new this(n);return e.forEach(v=>r.set(v)),r}static accessor(n){const e=(this[Kv]=this[Kv]={accessors:{}}).accessors,r=this.prototype;function v(p){const g=Ya(p);e[g]||(n$(r,p),e[g]=!0)}return _e.isArray(n)?n.forEach(v):v(n),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(ti.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),_e.freezeMethods(ti);function Xh(t,n){const e=this||Ga,r=n||e,v=ti.from(r.headers);let p=r.data;return _e.forEach(t,function(g){p=g.call(e,p,v.normalize(),n?n.status:void 0)}),v.normalize(),p}function qv(t){return!!(t&&t.__CANCEL__)}let Xa=class extends vt{constructor(t,n,e){super(t??"canceled",vt.ERR_CANCELED,n,e),this.name="CanceledError",this.__CANCEL__=!0}};function Gv(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new vt("Request failed with status code "+e.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function r$(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function i$(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,p=0,g;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[p];g||(g=h),e[v]=w,r[v]=h;let a=p,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===p&&(p=(p+1)%t),h-g<n)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function o$(t,n){let e=0,r=1e3/n,v,p;const g=(w,h=Date.now())=>{e=h,v=null,p&&(clearTimeout(p),p=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?g(w,h):(v=w,p||(p=setTimeout(()=>{p=null,g(v)},r-d)))},()=>v&&g(v)]}const lc=(t,n,e=3)=>{let r=0;const v=i$(50,250);return o$(p=>{const g=p.loaded,w=p.lengthComputable?p.total:void 0,h=g-r,d=v(h),a=g<=w;r=g;const l={loaded:g,total:w,progress:w?g/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-g)/d:void 0,event:p,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},Yv=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},Xv=t=>(...n)=>_e.asap(()=>t(...n)),s$=$r.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,$r.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL($r.origin),$r.navigator&&/(msie|trident)/i.test($r.navigator.userAgent)):()=>!0,a$=$r.hasStandardBrowserEnv?{write(t,n,e,r,v,p,g){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];_e.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),_e.isString(r)&&w.push(`path=${r}`),_e.isString(v)&&w.push(`domain=${v}`),p===!0&&w.push("secure"),_e.isString(g)&&w.push(`SameSite=${g}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function l$(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function c$(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Zv(t,n,e){let r=!l$(n);return t&&(r||e==!1)?c$(t,n):n}const Qv=t=>t instanceof ti?{...t}:t;function bs(t,n){n=n||{};const e={};function r(d,a,l,u){return _e.isPlainObject(d)&&_e.isPlainObject(a)?_e.merge.call({caseless:u},d,a):_e.isPlainObject(a)?_e.merge({},a):_e.isArray(a)?a.slice():a}function v(d,a,l,u){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function p(d,a){if(!_e.isUndefined(a))return r(void 0,a)}function g(d,a){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in n)return r(d,a);if(l in t)return r(void 0,d)}const h={url:p,method:p,data:p,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:w,headers:(d,a,l)=>v(Qv(d),Qv(a),l,!0)};return _e.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=_e.hasOwnProp(h,d)?h[d]:v,l=a(t[d],n[d],d);_e.isUndefined(l)&&a!==w||(e[d]=l)}),e}const Jv=t=>{const n=bs({},t);let{data:e,withXSRFToken:r,xsrfHeaderName:v,xsrfCookieName:p,headers:g,auth:w}=n;if(n.headers=g=ti.from(g),n.url=Hv(Zv(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),w&&g.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),_e.isFormData(e)){if($r.hasStandardBrowserEnv||$r.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(_e.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&g.set(a,l)})}}if($r.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(n)),r||r!==!1&&s$(n.url))){const h=v&&p&&a$.read(p);h&&g.set(v,h)}return n},u$=typeof XMLHttpRequest<"u",h$=u$&&function(t){return new Promise(function(n,e){const r=Jv(t);let v=r.data;const p=ti.from(r.headers).normalize();let{responseType:g,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=ti.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),N={data:!g||g==="text"||g==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};Gv(function(M){n(M),i()},function(M){e(M),i()},N),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new vt("Request aborted",vt.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const N=x&&x.message?x.message:"Network Error",M=new vt(N,vt.ERR_NETWORK,t,s);M.event=x||null,e(M),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const N=r.transitional||Kh;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new vt(x,N.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,t,s)),s=null},v===void 0&&p.setContentType(null),"setRequestHeader"in s&&_e.forEach(p.toJSON(),function(x,N){s.setRequestHeader(N,x)}),_e.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),g&&g!=="json"&&(s.responseType=r.responseType),h&&([l,c]=lc(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=lc(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new Xa(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=r$(r.url);if(b&&$r.protocols.indexOf(b)===-1){e(new vt("Unsupported protocol "+b+":",vt.ERR_BAD_REQUEST,t));return}s.send(v||null)})},d$=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const p=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof vt?a:new Xa(a instanceof Error?a.message:a))}};let g=n&&setTimeout(()=>{g=null,p(new vt(`timeout of ${n}ms exceeded`,vt.ETIMEDOUT))},n);const w=()=>{t&&(g&&clearTimeout(g),g=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),t=null)};t.forEach(d=>d.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>_e.asap(w),h}},f$=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},p$=async function*(t,n){for await(const e of g$(t))yield*f$(e,n)},g$=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},ey=(t,n,e,r)=>{const v=p$(t,n);let p=0,g,w=h=>{g||(g=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},ty=64*1024,{isFunction:cc}=_e,m$=(({Request:t,Response:n})=>({Request:t,Response:n}))(_e.global),{ReadableStream:ny,TextEncoder:ry}=_e.global,iy=(t,...n)=>{try{return!!t(...n)}catch{return!1}},v$=t=>{t=_e.merge.call({skipUndefined:!0},m$,t);const{fetch:n,Request:e,Response:r}=t,v=n?cc(n):typeof fetch=="function",p=cc(e),g=cc(r);if(!v)return!1;const w=v&&cc(ny),h=v&&(typeof ry=="function"?(i=>s=>i.encode(s))(new ry):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=p&&w&&iy(()=>{let i=!1;const s=new ny,f=new e($r.origin,{body:s,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return s.cancel(),i&&!f}),a=g&&w&&iy(()=>_e.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new vt(`Response type '${i}' is not supported`,vt.ERR_NOT_SUPPORT,f)})});const u=async i=>{if(i==null)return 0;if(_e.isBlob(i))return i.size;if(_e.isSpecCompliantForm(i))return(await new e($r.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(i)||_e.isArrayBuffer(i))return i.byteLength;if(_e.isURLSearchParams(i)&&(i=i+""),_e.isString(i))return(await h(i)).byteLength},c=async(i,s)=>_e.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:N,timeout:M,onDownloadProgress:_,onUploadProgress:C,responseType:L,headers:D,withCredentials:I="same-origin",fetchOptions:E}=Jv(i),z=n||fetch;L=L?(L+"").toLowerCase():"text";let P=d$([x,N&&N.toAbortSignal()],M),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await c(D,b))!==0){let ee=new e(s,{method:"POST",body:b,duplex:"half"}),ae;if(_e.isFormData(b)&&(ae=ee.headers.get("content-type"))&&D.setContentType(ae),ee.body){const[ne,ce]=Yv(k,lc(Xv(C)));b=ey(ee.body,ty,ne,ce)}}_e.isString(I)||(I=I?"include":"omit");const R=p&&"credentials"in e.prototype,B={...E,signal:P,method:f.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:R?I:void 0};O=p&&new e(s,B);let U=await(p?z(O,E):z(s,B));const q=a&&(L==="stream"||L==="response");if(a&&(_||q&&$)){const ee={};["status","statusText","headers"].forEach(se=>{ee[se]=U[se]});const ae=_e.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=_&&Yv(ae,lc(Xv(_),!0))||[];U=new r(ey(U.body,ty,ne,()=>{ce&&ce(),$&&$()}),ee)}L=L||"text";let Q=await l[_e.findKey(l,L)||"text"](U,i);return!q&&$&&$(),await new Promise((ee,ae)=>{Gv(ee,ae,{data:Q,headers:ti.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(R){throw $&&$(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new vt("Network Error",vt.ERR_NETWORK,i,O,R&&R.response),{cause:R.cause||R}):vt.from(R,R&&R.code,i,O,R&&R.response)}}},y$=new Map,oy=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,p=[r,v,e];let g=p.length,w=g,h,d,a=y$;for(;w--;)h=p[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:v$(n)),a=d;return d};oy();const Zh={http:NS,xhr:h$,fetch:{get:oy}};_e.forEach(Zh,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const sy=t=>`- ${t}`,b$=t=>_e.isFunction(t)||t===null||t===!1;function w$(t,n){t=_e.isArray(t)?t:[t];const{length:e}=t;let r,v;const p={};for(let g=0;g<e;g++){r=t[g];let w;if(v=r,!b$(r)&&(v=Zh[(w=String(r)).toLowerCase()],v===void 0))throw new vt(`Unknown adapter '${w}'`);if(v&&(_e.isFunction(v)||(v=v.get(n))))break;p[w||"#"+g]=v}if(!v){const g=Object.entries(p).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?g.length>1?`since :
|
|
1480
|
+
`+g.map(sy).join(`
|
|
1481
|
+
`):" "+sy(g[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const ay={getAdapter:w$,adapters:Zh};function Qh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xa(null,t)}function ly(t){return Qh(t),t.headers=ti.from(t.headers),t.data=Xh.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ay.getAdapter(t.adapter||Ga.adapter,t)(t).then(function(n){return Qh(t),n.data=Xh.call(t,t.transformResponse,n),n.headers=ti.from(n.headers),n},function(n){return qv(n)||(Qh(t),n&&n.response&&(n.response.data=Xh.call(t,t.transformResponse,n.response),n.response.headers=ti.from(n.response.headers))),Promise.reject(n)})}const cy="1.14.0",uc={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{uc[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const uy={};uc.transitional=function(t,n,e){function r(v,p){return"[Axios v"+cy+"] Transitional option '"+v+"'"+p+(e?". "+e:"")}return(v,p,g)=>{if(t===!1)throw new vt(r(p," has been removed"+(n?" in "+n:"")),vt.ERR_DEPRECATED);return n&&!uy[p]&&(uy[p]=!0,console.warn(r(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,p,g):!0}},uc.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function x$(t,n,e){if(typeof t!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const p=r[v],g=n[p];if(g){const w=t[p],h=w===void 0||g(w,p,t);if(h!==!0)throw new vt("option "+p+" must be "+h,vt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new vt("Unknown option "+p,vt.ERR_BAD_OPTION)}}const hc={assertOptions:x$,validators:uc},Mi=hc.validators;let ws=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Uv,response:new Uv}}async request(n,e){try{return await this._request(n,e)}catch(r){if(r instanceof Error){let v={};Error.captureStackTrace?Error.captureStackTrace(v):v=new Error;const p=v.stack?v.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1482
|
+
`+p):r.stack=p}catch{}}throw r}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=bs(this.defaults,e);const{transitional:r,paramsSerializer:v,headers:p}=e;r!==void 0&&hc.assertOptions(r,{silentJSONParsing:Mi.transitional(Mi.boolean),forcedJSONParsing:Mi.transitional(Mi.boolean),clarifyTimeoutError:Mi.transitional(Mi.boolean),legacyInterceptorReqResOrdering:Mi.transitional(Mi.boolean)},!1),v!=null&&(_e.isFunction(v)?e.paramsSerializer={serialize:v}:hc.assertOptions(v,{encode:Mi.function,serialize:Mi.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),hc.assertOptions(e,{baseUrl:Mi.spelling("baseURL"),withXsrfToken:Mi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let g=p&&_e.merge(p.common,p[e.method]);p&&_e.forEach(["delete","get","head","post","put","patch","common"],i=>{delete p[i]}),e.headers=ti.concat(g,p);const w=[];let h=!0;this.interceptors.request.forEach(function(i){if(typeof i.runWhen=="function"&&i.runWhen(e)===!1)return;h=h&&i.synchronous;const s=e.transitional||Kh;s&&s.legacyInterceptorReqResOrdering?w.unshift(i.fulfilled,i.rejected):w.push(i.fulfilled,i.rejected)});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[ly.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(f){s.call(this,f);break}}try{a=ly.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(n){n=bs(this.defaults,n);const e=Zv(n.baseURL,n.url,n.allowAbsoluteUrls);return Hv(e,n.params,n.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(t){ws.prototype[t]=function(n,e){return this.request(bs(e||{},{method:t,url:n,data:(e||{}).data}))}}),_e.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,p){return this.request(bs(p||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}ws.prototype[t]=n(),ws.prototype[t+"Form"]=n(!0)});let C$=class K0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](v);r._listeners=null}),this.promise.then=v=>{let p;const g=new Promise(w=>{r.subscribe(w),p=w}).then(v);return g.cancel=function(){r.unsubscribe(p)},g},n(function(v,p,g){r.reason||(r.reason=new Xa(v,p,g),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new K0(function(e){n=e}),cancel:n}}};function k$(t){return function(n){return t.apply(null,n)}}function A$(t){return _e.isObject(t)&&t.isAxiosError===!0}const Jh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Jh).forEach(([t,n])=>{Jh[n]=t});function hy(t){const n=new ws(t),e=Tv(ws.prototype.request,n);return _e.extend(e,ws.prototype,n,{allOwnKeys:!0}),_e.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return hy(bs(t,r))},e}const Gn=Mn("a",hy(Ga));Gn.Axios=ws,Gn.CanceledError=Xa,Gn.CancelToken=C$,Gn.isCancel=qv,Gn.VERSION=cy,Gn.toFormData=sc,Gn.AxiosError=vt,Gn.Cancel=Gn.CanceledError,Gn.all=function(t){return Promise.all(t)},Gn.spread=k$,Gn.isAxiosError=A$,Gn.mergeConfig=bs,Gn.AxiosHeaders=ti,Gn.formToJSON=t=>Vv(_e.isHTMLForm(t)?new FormData(t):t),Gn.getAdapter=ay.getAdapter,Gn.HttpStatusCode=Jh,Gn.default=Gn;const{Axios:g2,AxiosError:m2,CanceledError:v2,isCancel:y2,CancelToken:b2,VERSION:w2,all:x2,Cancel:C2,isAxiosError:k2,spread:A2,toFormData:_2,AxiosHeaders:S2,HttpStatusCode:$2,formToJSON:M2,getAdapter:T2,mergeConfig:E2}=Gn;function dy(){return Object.assign({},Hs())}function _$(t,n,e){const r=Dr(t,e?.in);return r.setTime(r.getTime()+n*Cl),r}function S$(t,n){const e=()=>ro(n?.in,NaN),r=E$(t);let v;if(r.date){const h=I$(r.date,2);v=R$(h.restDateString,h.year)}if(!v||isNaN(+v))return e();const p=+v;let g=0,w;if(r.time&&(g=L$(r.time),isNaN(g)))return e();if(r.timezone){if(w=O$(r.timezone),isNaN(w))return e()}else{const h=new Date(p+g),d=Dr(0,n?.in);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return Dr(p+g+w,n?.in)}const dc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,M$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,T$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function E$(t){const n={},e=t.split(dc.dateTimeDelimiter);let r;if(e.length>2)return n;if(/:/.test(e[0])?r=e[0]:(n.date=e[0],r=e[1],dc.timeZoneDelimiter.test(n.date)&&(n.date=t.split(dc.timeZoneDelimiter)[0],r=t.substr(n.date.length,t.length))),r){const v=dc.timezone.exec(r);v?(n.time=r.replace(v[1],""),n.timezone=v[1]):n.time=r}return n}function I$(t,n){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};const v=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?v:p*100,restDateString:t.slice((r[1]||r[2]).length)}}function R$(t,n){if(n===null)return new Date(NaN);const e=t.match($$);if(!e)return new Date(NaN);const r=!!e[4],v=Za(e[1]),p=Za(e[2])-1,g=Za(e[3]),w=Za(e[4]),h=Za(e[5])-1;if(r)return W$(n,w,h)?N$(n,w,h):new Date(NaN);{const d=new Date(0);return!F$(n,p,g)||!P$(n,v)?new Date(NaN):(d.setUTCFullYear(n,p,Math.max(v,g)),d)}}function Za(t){return t?parseInt(t):1}function L$(t){const n=t.match(M$);if(!n)return NaN;const e=ed(n[1]),r=ed(n[2]),v=ed(n[3]);return B$(e,r,v)?e*au+r*Cl+v*1e3:NaN}function ed(t){return t&&parseFloat(t.replace(",","."))||0}function O$(t){if(t==="Z")return 0;const n=t.match(T$);if(!n)return 0;const e=n[1]==="+"?-1:1,r=parseInt(n[2]),v=n[3]&&parseInt(n[3])||0;return z$(r,v)?e*(r*au+v*Cl):NaN}function N$(t,n,e){const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,p=(n-1)*7+e+1-v;return r.setUTCDate(r.getUTCDate()+p),r}const D$=[31,null,31,30,31,30,31,31,30,31,30,31];function fy(t){return t%400===0||t%4===0&&t%100!==0}function F$(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(D$[n]||(fy(t)?29:28))}function P$(t,n){return n>=1&&n<=(fy(t)?366:365)}function W$(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function B$(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function z$(t,n){return n>=0&&n<=59}function j$(t,n,e){return _$(t,-n,e)}function py(t,n,e){const r=dy(),v=V$(t,e.timeZone,e.locale??r.locale);return"formatToParts"in v?H$(v,n):U$(v,n)}function H$(t,n){const e=t.formatToParts(n);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function U$(t,n){const e=t.format(n).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function V$(t,n,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:n,timeZoneName:t})}function K$(t,n){const e=Z$(n);return"formatToParts"in e?G$(e,t):Y$(e,t)}const q$={year:0,month:1,day:2,hour:3,minute:4,second:5};function G$(t,n){try{const e=t.formatToParts(n),r=[];for(let v=0;v<e.length;v++){const p=q$[e[v].type];p!==void 0&&(r[p]=parseInt(e[v].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function Y$(t,n){const e=t.format(n),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const td={},gy=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),X$=gy==="06/25/2014, 00:00:00"||gy==="06/25/2014 00:00:00";function Z$(t){return td[t]||(td[t]=X$?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),td[t]}function my(t,n,e,r,v,p,g){const w=new Date(0);return w.setUTCFullYear(t,n,e),w.setUTCHours(r,v,p,g),w}const vy=36e5,Q$=6e4,nd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function rd(t,n,e){if(!t)return 0;let r=nd.timezoneZ.exec(t);if(r)return 0;let v,p;if(r=nd.timezoneHH.exec(t),r)return v=parseInt(r[1],10),yy(v)?-(v*vy):NaN;if(r=nd.timezoneHHMM.exec(t),r){v=parseInt(r[2],10);const g=parseInt(r[3],10);return yy(v,g)?(p=Math.abs(v)*vy+g*Q$,r[1]==="+"?-p:p):NaN}if(tM(t)){n=new Date(n||Date.now());const g=e?n:J$(n),w=id(g,t);return-(e?w:eM(n,w,t))}return NaN}function J$(t){return my(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function id(t,n){const e=K$(t,n),r=my(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let v=t.getTime();const p=v%1e3;return v-=p>=0?p:1e3+p,r-v}function eM(t,n,e){let r=t.getTime()-n;const v=id(new Date(r),e);if(n===v)return n;r-=v-n;const p=id(new Date(r),e);return v===p?v:Math.max(v,p)}function yy(t,n){return-23<=t&&t<=23&&(n==null||0<=n&&n<=59)}const by={};function tM(t){if(by[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),by[t]=!0,!0}catch{return!1}}const nM=60*1e3,rM={X:function(t,n,e){const r=od(e.timeZone,t);if(r===0)return"Z";switch(n){case"X":return wy(r);case"XXXX":case"XX":return aa(r);default:return aa(r,":")}},x:function(t,n,e){const r=od(e.timeZone,t);switch(n){case"x":return wy(r);case"xxxx":case"xx":return aa(r);default:return aa(r,":")}},O:function(t,n,e){const r=od(e.timeZone,t);switch(n){case"O":case"OO":case"OOO":return"GMT"+iM(r,":");default:return"GMT"+aa(r,":")}},z:function(t,n,e){switch(n){case"z":case"zz":case"zzz":return py("short",t,e);default:return py("long",t,e)}}};function od(t,n){const e=t?rd(t,n,!0)/nM:n?.getTimezoneOffset()??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+t);return e}function fc(t,n){const e=t<0?"-":"";let r=Math.abs(t).toString();for(;r.length<n;)r="0"+r;return e+r}function aa(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=fc(Math.floor(r/60),2),p=fc(Math.floor(r%60),2);return e+v+n+p}function wy(t,n){return t%60===0?(t>0?"-":"+")+fc(Math.abs(t)/60,2):aa(t,n)}function iM(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.floor(r/60),p=r%60;return p===0?e+String(v):e+String(v)+n+fc(p,2)}function xy(t){const n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+t-+n}const oM=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,sd=36e5,Cy=6e4,sM=2,Pr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:oM};function ky(t,n={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);const e=n.additionalDigits==null?sM:Number(n.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(Object.prototype.toString.call(t)!=="[object String]")return new Date(NaN);const r=aM(t),{year:v,restDateString:p}=lM(r.date,e),g=cM(p,v);if(g===null||isNaN(g.getTime()))return new Date(NaN);if(g){const w=g.getTime();let h=0,d;if(r.time&&(h=uM(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||n.timeZone){if(d=rd(r.timeZone||n.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=xy(new Date(w+h)),d=xy(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function aM(t){const n={};let e=Pr.dateTimePattern.exec(t),r;if(e?(n.date=e[1],r=e[3]):(e=Pr.datePattern.exec(t),e?(n.date=e[1],r=e[2]):(n.date=null,r=t)),r){const v=Pr.timeZone.exec(r);v?(n.time=r.replace(v[1],""),n.timeZone=v[1].trim()):n.time=r}return n}function lM(t,n){if(t){const e=Pr.YYY[n],r=Pr.YYYYY[n];let v=Pr.YYYY.exec(t)||r.exec(t);if(v){const p=v[1];return{year:parseInt(p,10),restDateString:t.slice(p.length)}}if(v=Pr.YY.exec(t)||e.exec(t),v){const p=v[1];return{year:parseInt(p,10)*100,restDateString:t.slice(p.length)}}}return{year:null}}function cM(t,n){if(n===null)return null;let e,r,v;if(!t||!t.length)return e=new Date(0),e.setUTCFullYear(n),e;let p=Pr.MM.exec(t);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,Sy(n,r)?(e.setUTCFullYear(n,r),e):new Date(NaN);if(p=Pr.DDD.exec(t),p){e=new Date(0);const g=parseInt(p[1],10);return fM(n,g)?(e.setUTCFullYear(n,0,g),e):new Date(NaN)}if(p=Pr.MMDD.exec(t),p){e=new Date(0),r=parseInt(p[1],10)-1;const g=parseInt(p[2],10);return Sy(n,r,g)?(e.setUTCFullYear(n,r,g),e):new Date(NaN)}if(p=Pr.Www.exec(t),p)return v=parseInt(p[1],10)-1,$y(v)?Ay(n,v):new Date(NaN);if(p=Pr.WwwD.exec(t),p){v=parseInt(p[1],10)-1;const g=parseInt(p[2],10)-1;return $y(v,g)?Ay(n,v,g):new Date(NaN)}return null}function uM(t){let n,e,r=Pr.HH.exec(t);if(r)return n=parseFloat(r[1].replace(",",".")),ad(n)?n%24*sd:NaN;if(r=Pr.HHMM.exec(t),r)return n=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),ad(n,e)?n%24*sd+e*Cy:NaN;if(r=Pr.HHMMSS.exec(t),r){n=parseInt(r[1],10),e=parseInt(r[2],10);const v=parseFloat(r[3].replace(",","."));return ad(n,e,v)?n%24*sd+e*Cy+v*1e3:NaN}return null}function Ay(t,n,e){n=n||0,e=e||0;const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,p=n*7+e+1-v;return r.setUTCDate(r.getUTCDate()+p),r}const hM=[31,28,31,30,31,30,31,31,30,31,30,31],dM=[31,29,31,30,31,30,31,31,30,31,30,31];function _y(t){return t%400===0||t%4===0&&t%100!==0}function Sy(t,n,e){if(n<0||n>11)return!1;if(e!=null){if(e<1)return!1;const r=_y(t);if(r&&e>dM[n]||!r&&e>hM[n])return!1}return!0}function fM(t,n){if(n<1)return!1;const e=_y(t);return!(e&&n>366||!e&&n>365)}function $y(t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function ad(t,n,e){return!(t<0||t>=25||n!=null&&(n<0||n>=60)||e!=null&&(e<0||e>=60))}const pM=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function gM(t,n,e={}){n=String(n);const r=n.match(pM);if(r){const v=ky(e.originalDate||t,e);n=r.reduce(function(p,g){if(g[0]==="'")return p;const w=p.indexOf(g),h=p[w-1]==="'",d=p.replace(g,"'"+rM[g[0]](v,g,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},n)}return os(t,n,e)}function mM(t,n,e){t=ky(t,e);const r=rd(n,t,!0),v=new Date(t.getTime()-r),p=new Date(0);return p.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),p.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),p}function pc(t,n,e,r){return r={...r,timeZone:n,originalDate:t},gM(mM(t,n,{timeZone:r.timeZone}),e,r)}const gc="yyyy-MM-dd",My="HH:mm:ss.SSS",Ty="HH:mm:ss",mc=`${gc} ${My}`,Ey=`${gc} ${Ty}`,I2=Mn("R",{methods:{parseDateTime(t,n){return t.includes(" ")&&(t=t.replace(" ","T")),n&&n==="UTC"&&(t+="Z"),Date.parse(t)},formatUtcToLocal(t,n){return os(!n||n==="local"?j$(t,t.getTimezoneOffset()):t,mc)},formatDateTime(t,n){return!n||n==="local"?os(t,mc):pc(t,n,mc)},formatDateTimeHMS(t,n){return!n||n==="local"?os(t,Ey):pc(t,n,Ey)},formatDate:function(t,n){return!n||n==="local"?os(t,gc):pc(t,this.timeZone,gc)},formatTime:function(t,n,e=My){return!n||n==="local"?os(t,e):pc(t,this.timeZone,e)},formatTimeHMS:function(t,n){return this.formatTime(t,n,Ty)},formatTimestamp(t,n){return this.formatDateTime(S$(t),n)},formatSeconds(t,n){return this.formatDateTime(new Date(t*1e3),n)},formatNanoseconds(t,n){return this.formatDateTime(new Date(parseInt(t)/1e6),n)}}}),Iy=100,Ry=Mn("e",Mf("app",{state:()=>({notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1,playbackLoading:0}}),getters:{namedWidget:t=>n=>t.namedWidgets[n]},actions:{notifyAddHistory(t){this.notifyHistory.length>=Iy&&(this.notifyHistory.length=Iy-1),this.notifyHistory.unshift(t)},notifyClearHistory(){this.notifyHistory=[]},setNamedWidget(t){Object.assign(this.namedWidgets,t)},clearNamedWidget(t){delete this.namedWidgets[t]},updatePlayback(t){Object.assign(this.playback,t)}}})),la=Tf();la.use(({store:t})=>{t.commit=(n,e)=>{typeof t[n]=="function"&&t[n](e)},t.dispatch=(n,e)=>{if(typeof t[n]=="function")return t[n](e)}});const vM=la.install.bind(la);la.install=t=>{vM(t);const n=Ry(la);t.config.globalProperties.$store={state:new Proxy({},{get(e,r){return n.$state}}),getters:new Proxy({},{get(e,r){if(r.includes("/")){const[,v]=r.split("/");return n[v]}return n[r]}}),commit(e,r){if(e.includes("/")){const[,v]=e.split("/");n[v]?.(r)}else n[e]?.(r)},dispatch(e,r){if(e.includes("/")){const[,v]=e.split("/");return n[v]?.(r)}else return n[e]?.(r)}}};const yM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",bM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number,default:1}},computed:{icons:function(){return yM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const t=SM.indexOf(Ly[this.status]),n=1-(t-1)*.05,e=224*this.scaleFactor*n,r=32*this.scaleFactor*n,v=32*this.scaleFactor*n;return[`background-image: url(${this.icons});`,`background-position-x: -${t*v}px;`,`background-size: ${e}px ${r}px;`,`height: ${v}px;`,`width: ${v}px;`,`padding-top: ${t-1}px;`].join("")}}};function wM(t,n,e,r,v,p){return Tn(),Xr("div",{style:ka(p.iconStyle)},null,4)}const xM=Do(bM,[["render",wM]]),CM={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function kM(t,n,e,r,v,p){const g=_t("rux-icon");return Tn(),no(g,{size:e.size,icon:e.icon,style:ka(p.colorStyle)},null,8,["size","icon","style"])}const AM=Do(CM,[["render",kM],["__scopeId","data-v-bb4cd487"]]),Ly={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},ld={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},_M=function(t){const n="#000000",e="#ffffff",r=ld[Ly[t]];if(r){const v=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,g=+`0x${r.slice(5,7)}`;if((v*299+p*587+g*114)/1e3>128)return n}return e},SM=Object.keys(ld),$M={astro:{component:t=>zs(AM,{...t})},"astro-status":{component:t=>zs(xM,{...t,status:t.icon})}},MM={extras:{component:t=>zs(cw,{...t})}},R2=Mn("k",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(t){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(t))},openConfigBase:function(t,n=!1,e=null){new hs().load_config(this.configKey,t).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:t}),e&&e(JSON.parse(r)),n||this.$route.fullPath.includes(t)||this.$router.push({query:{config:t}})):this.$notify.caution({title:"Unknown configuration",body:t})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${t}`,body:r})})},saveConfigBase:function(t,n){new hs().save_config(this.configKey,t,JSON.stringify(n)).then(()=>{this.$notify.normal({title:"Saved configuration",body:t})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${t}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const t={...this.$route.query};delete t.config,this.$router.replace({query:t})}}}),TM={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(t=>t.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},mounted(){let t=-1;new hs().list_configs(this.configKey).then(n=>{this.configs=n.map(e=>(t+=1,{configId:t,config:e}))}).catch(n=>{this.$emit("warning",`Failed to connect to OpenC3. ${n}`)})},methods:{selectRow:function(t){this.selectedRows=[t.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(t){this.$dialog.confirm(`Are you sure you want to delete: ${t.config}`,{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.selectedItem?.config===t.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(t),1),new hs().delete_config(this.configKey,t.config)}).catch(n=>{n!==!0&&this.$emit("warning",`Failed to delete config ${t.config} Error: ${n}`)})}}},EM={class:"mt-4 pa-3"},IM=["textContent"];function RM(t,n,e,r,v,p){const g=_t("v-spacer"),w=_t("v-toolbar"),h=_t("v-text-field"),d=_t("v-row"),a=_t("v-btn"),l=_t("v-data-table"),u=_t("v-card-text"),c=_t("v-card-actions"),i=_t("v-card"),s=_t("v-dialog");return Tn(),no(s,{modelValue:p.show,"onUpdate:modelValue":n[4]||(n[4]=f=>p.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Lt(()=>[ut(i,null,{default:Lt(()=>[cr("form",{onSubmit:n[3]||(n[3]=js((...f)=>p.success&&p.success(...f),["prevent"]))},[ut(w,{height:"24"},{default:Lt(()=>[ut(g),n[5]||(n[5]=cr("span",null,"Open Configuration",-1)),ut(g)]),_:1}),ut(u,null,{default:Lt(()=>[cr("div",EM,[ut(d,{dense:""},{default:Lt(()=>[ut(h,{modelValue:v.search,"onUpdate:modelValue":n[0]||(n[0]=f=>v.search=f),label:"Search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ut(l,{modelValue:v.selectedRows,"onUpdate:modelValue":n[1]||(n[1]=f=>v.selectedRows=f),"show-select":"","select-strategy":"single","item-value":"configId",search:v.search,headers:v.headers,items:v.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":n[2]||(n[2]=(f,b)=>p.selectRow(b))},{"item.actions":Lt(({item:f})=>[ut(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>p.deleteConfig(f)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ut(d,{dense:""},{default:Lt(()=>[wl(cr("span",{class:"ma-2 text-red",textContent:Zr(p.error)},null,8,IM),[[xl,p.error]])]),_:1})])]),_:1}),ut(c,{class:"px-2"},{default:Lt(()=>[ut(g),ut(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:Lt(()=>[...n[6]||(n[6]=[Ar(" Cancel ",-1)])]),_:1},8,["onClick"]),ut(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:js(p.success,["prevent"])},{default:Lt(()=>[...n[7]||(n[7]=[Ar(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const L2=Mn("I",Do(TM,[["render",RM]])),LM={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(t=>t.configId===this.selectedRows[0]):null},error:function(){return this.configName?/^[A-Za-z0-9_\-. ]+$/.test(this.configName)?null:"Config name must only contain letters, numbers, hyphens, underscores, spaces, and periods":"Config must have a name"},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{selectedItem:function(t){t&&(this.configName=t.config)}},mounted(){let t=-1;new hs().list_configs(this.configKey).then(n=>{this.configs=n.map(e=>(t+=1,{configId:t,config:e}))}).catch(n=>{this.$emit("warning",`Failed to connect to OpenC3. ${n}`)})},methods:{selectRow:function(t){this.selectedRows=[t.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(t){this.$dialog.confirm(`Are you sure you want to delete: ${t.config}`,{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.selectedItem?.config===t.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(t),1),new hs().delete_config(this.configKey,t.config)}).catch(n=>{n!==!0&&this.$emit("warning",`Failed to delete config ${t.config} Error: ${n}`)})}}},OM={class:"mt-4 pa-3"},NM=["textContent"];function DM(t,n,e,r,v,p){const g=_t("v-spacer"),w=_t("v-toolbar"),h=_t("v-text-field"),d=_t("v-row"),a=_t("v-btn"),l=_t("v-data-table"),u=_t("v-card-text"),c=_t("v-card-actions"),i=_t("v-card"),s=_t("v-dialog");return Tn(),no(s,{modelValue:p.show,"onUpdate:modelValue":n[5]||(n[5]=f=>p.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Lt(()=>[ut(i,null,{default:Lt(()=>[cr("form",{onSubmit:n[4]||(n[4]=js((...f)=>p.success&&p.success(...f),["prevent"]))},[ut(w,{height:"24"},{default:Lt(()=>[ut(g),n[6]||(n[6]=cr("span",null,"Save Configuration",-1)),ut(g)]),_:1}),ut(u,null,{default:Lt(()=>[cr("div",OM,[ut(d,{dense:""},{default:Lt(()=>[ut(h,{modelValue:v.search,"onUpdate:modelValue":n[0]||(n[0]=f=>v.search=f),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ut(l,{modelValue:v.selectedRows,"onUpdate:modelValue":n[1]||(n[1]=f=>v.selectedRows=f),"show-select":"","select-strategy":"single","item-value":"configId",search:v.search,headers:v.headers,items:v.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":n[2]||(n[2]=(f,b)=>p.selectRow(b))},{"item.actions":Lt(({item:f})=>[ut(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>p.deleteConfig(f)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ut(d,{dense:""},{default:Lt(()=>[ut(h,{modelValue:v.configName,"onUpdate:modelValue":n[3]||(n[3]=f=>v.configName=f),"hide-details":"",autofocus:"",disabled:!!p.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ut(d,{dense:""},{default:Lt(()=>[wl(cr("span",{class:"ma-2 text-red",textContent:Zr(p.error)},null,8,NM),[[xl,p.error]])]),_:1})])]),_:1}),ut(c,{class:"px-2"},{default:Lt(()=>[ut(g),ut(a,{variant:"outlined",onClick:p.cancel},{default:Lt(()=>[...n[7]||(n[7]=[Ar(" Cancel ",-1)])]),_:1},8,["onClick"]),ut(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:js(p.success,["prevent"])},{default:Lt(()=>[...n[8]||(n[8]=[Ar(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const O2=Mn("M",Do(LM,[["render",DM]])),FM=50,PM=2e3,Oy="single-spa:app-change",WM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Oy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},PM)},unmounted(){window.removeEventListener(Oy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(t){this.show=!t.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=ou().length>0,ou().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},FM)}}},BM={class:"mx-1"},zM={key:1,class:"d-flex justify-center align-center"};function jM(t,n,e,r,v,p){const g=_t("v-card-title"),w=_t("v-card-text"),h=_t("v-card"),d=_t("v-progress-circular");return Tn(),Xr(yl,null,[v.show?(Tn(),no(h,{key:0},{default:Lt(()=>[ut(g,null,{default:Lt(()=>[...n[0]||(n[0]=[Ar(" 404 Not Found ",-1)])]),_:1}),ut(w,{class:"d-flex align-center mt-3"},{default:Lt(()=>[n[1]||(n[1]=Ar(" The requested URL ",-1)),cr("code",BM,Zr(t.$route.fullPath),1),n[2]||(n[2]=Ar(" was not routable. ",-1)),n[3]||(n[3]=cr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):yo("",!0),p.showSpinner?(Tn(),Xr("div",zM,[ut(d,{indeterminate:""})])):yo("",!0)],64)}const Ny=[{path:"/",name:"DataExtractor",component:()=>nt(()=>tt.import("./DataExtractor-6a57a8b8549d610cacac.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Do(WM,[["render",jM]])}];Ny.forEach(Rf);const HM=Sf({history:$f(),routes:Ny}),{entries:Dy,setPrototypeOf:Fy,isFrozen:UM,getPrototypeOf:VM,getOwnPropertyDescriptor:KM}=Object;let{freeze:Wr,seal:Ti,create:vc}=Object,{apply:cd,construct:ud}=typeof Reflect<"u"&&Reflect;Wr||(Wr=function(t){return t}),Ti||(Ti=function(t){return t}),cd||(cd=function(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),v=2;v<e;v++)r[v-2]=arguments[v];return t.apply(n,r)}),ud||(ud=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new t(...e)});const yc=zr(Array.prototype.forEach),qM=zr(Array.prototype.lastIndexOf),Py=zr(Array.prototype.pop),Qa=zr(Array.prototype.push),GM=zr(Array.prototype.splice),bc=zr(String.prototype.toLowerCase),hd=zr(String.prototype.toString),dd=zr(String.prototype.match),Ja=zr(String.prototype.replace),YM=zr(String.prototype.indexOf),XM=zr(String.prototype.trim),gi=zr(Object.prototype.hasOwnProperty),Br=zr(RegExp.prototype.test),el=ZM(TypeError);function zr(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),v=1;v<e;v++)r[v-1]=arguments[v];return cd(t,n,r)}}function ZM(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return ud(t,e)}}function Wt(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bc;Fy&&Fy(t,null);let r=n.length;for(;r--;){let v=n[r];if(typeof v=="string"){const p=e(v);p!==v&&(UM(n)||(n[r]=p),v=p)}t[v]=!0}return t}function QM(t){for(let n=0;n<t.length;n++)gi(t,n)||(t[n]=null);return t}function oo(t){const n=vc(null);for(const[e,r]of Dy(t))gi(t,e)&&(Array.isArray(r)?n[e]=QM(r):r&&typeof r=="object"&&r.constructor===Object?n[e]=oo(r):n[e]=r);return n}function tl(t,n){for(;t!==null;){const r=KM(t,n);if(r){if(r.get)return zr(r.get);if(typeof r.value=="function")return zr(r.value)}t=VM(t)}function e(){return null}return e}const Wy=Wr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fd=Wr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pd=Wr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),JM=Wr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gd=Wr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),eT=Wr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),By=Wr(["#text"]),zy=Wr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),md=Wr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jy=Wr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wc=Wr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tT=Ti(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nT=Ti(/<%[\w\W]*|[\w\W]*%>/gm),rT=Ti(/\$\{[\w\W]*/gm),iT=Ti(/^data-[\-\w.\u00B7-\uFFFF]+$/),oT=Ti(/^aria-[\-\w]+$/),Hy=Ti(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sT=Ti(/^(?:\w+script|data):/i),aT=Ti(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Uy=Ti(/^html$/i),lT=Ti(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vy=Object.freeze({__proto__:null,ARIA_ATTR:oT,ATTR_WHITESPACE:aT,CUSTOM_ELEMENT:lT,DATA_ATTR:iT,DOCTYPE_NAME:Uy,ERB_EXPR:nT,IS_ALLOWED_URI:Hy,IS_SCRIPT_OR_DATA:sT,MUSTACHE_EXPR:tT,TMPLIT_EXPR:rT});const nl={element:1,text:3,progressingInstruction:7,comment:8,document:9},cT=function(){return typeof window>"u"?null:window},uT=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(e=n.getAttribute(r));const v="dompurify"+(e?"#"+e:"");try{return t.createPolicy(v,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+v+" could not be created."),null}},Ky=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function qy(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cT();const n=le=>qy(le);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==nl.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t;const r=e,v=r.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=t,i=h.prototype,s=tl(i,"cloneNode"),f=tl(i,"remove"),b=tl(i,"nextSibling"),x=tl(i,"childNodes"),N=tl(i,"parentNode");if(typeof g=="function"){const le=e.createElement("template");le.content&&le.content.ownerDocument&&(e=le.content.ownerDocument)}let M,_="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:I}=e,{importNode:E}=r;let z=Ky();n.isSupported=typeof Dy=="function"&&typeof N=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:k,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:q}=Vy;let{IS_ALLOWED_URI:Q}=Vy,ee=null;const ae=Wt({},[...Wy,...fd,...pd,...gd,...By]);let ne=null;const ce=Wt({},[...zy,...md,...jy,...wc]);let se=Object.seal(vc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const $e=Object.seal(vc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Me=!0,Te=!0,Ze=!1,qe=!0,it=!1,ct=!0,et=!1,Bt=!1,pr=!1,At=!1,tr=!1,An=!1,gr=!0,fn=!1;const ur="user-content-";let ht=!0,Ke=!1,St={},Qt=null;const En=Wt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jn=null;const nr=Wt({},["audio","video","img","source","image","track"]);let pn=null;const Dn=Wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),In="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",cn="http://www.w3.org/1999/xhtml";let Mr=cn,jr=!1,mr=null;const mi=Wt({},[In,qt,cn],hd);let ni=Wt({},["mi","mo","mn","ms","mtext"]),Hn=Wt({},["annotation-xml"]);const Ki=Wt({},["title","style","font","a","script"]);let Hr=null;const xs=["application/xhtml+xml","text/html"],Ur="text/html";let xn=null,vi=null;const xo=e.createElement("form"),ri=function(le){return le instanceof RegExp||le instanceof Function},Cn=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vi&&vi===le)){if((!le||typeof le!="object")&&(le={}),le=oo(le),Hr=xs.indexOf(le.PARSER_MEDIA_TYPE)===-1?Ur:le.PARSER_MEDIA_TYPE,xn=Hr==="application/xhtml+xml"?hd:bc,ee=gi(le,"ALLOWED_TAGS")?Wt({},le.ALLOWED_TAGS,xn):ae,ne=gi(le,"ALLOWED_ATTR")?Wt({},le.ALLOWED_ATTR,xn):ce,mr=gi(le,"ALLOWED_NAMESPACES")?Wt({},le.ALLOWED_NAMESPACES,hd):mi,pn=gi(le,"ADD_URI_SAFE_ATTR")?Wt(oo(Dn),le.ADD_URI_SAFE_ATTR,xn):Dn,jn=gi(le,"ADD_DATA_URI_TAGS")?Wt(oo(nr),le.ADD_DATA_URI_TAGS,xn):nr,Qt=gi(le,"FORBID_CONTENTS")?Wt({},le.FORBID_CONTENTS,xn):En,de=gi(le,"FORBID_TAGS")?Wt({},le.FORBID_TAGS,xn):oo({}),me=gi(le,"FORBID_ATTR")?Wt({},le.FORBID_ATTR,xn):oo({}),St=gi(le,"USE_PROFILES")?le.USE_PROFILES:!1,Me=le.ALLOW_ARIA_ATTR!==!1,Te=le.ALLOW_DATA_ATTR!==!1,Ze=le.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=le.SAFE_FOR_TEMPLATES||!1,ct=le.SAFE_FOR_XML!==!1,et=le.WHOLE_DOCUMENT||!1,At=le.RETURN_DOM||!1,tr=le.RETURN_DOM_FRAGMENT||!1,An=le.RETURN_TRUSTED_TYPE||!1,pr=le.FORCE_BODY||!1,gr=le.SANITIZE_DOM!==!1,fn=le.SANITIZE_NAMED_PROPS||!1,ht=le.KEEP_CONTENT!==!1,Ke=le.IN_PLACE||!1,Q=le.ALLOWED_URI_REGEXP||Hy,Mr=le.NAMESPACE||cn,ni=le.MATHML_TEXT_INTEGRATION_POINTS||ni,Hn=le.HTML_INTEGRATION_POINTS||Hn,se=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&ri(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&ri(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),it&&(Te=!1),tr&&(At=!0),St&&(ee=Wt({},By),ne=vc(null),St.html===!0&&(Wt(ee,Wy),Wt(ne,zy)),St.svg===!0&&(Wt(ee,fd),Wt(ne,md),Wt(ne,wc)),St.svgFilters===!0&&(Wt(ee,pd),Wt(ne,md),Wt(ne,wc)),St.mathMl===!0&&(Wt(ee,gd),Wt(ne,jy),Wt(ne,wc))),gi(le,"ADD_TAGS")||($e.tagCheck=null),gi(le,"ADD_ATTR")||($e.attributeCheck=null),le.ADD_TAGS&&(typeof le.ADD_TAGS=="function"?$e.tagCheck=le.ADD_TAGS:(ee===ae&&(ee=oo(ee)),Wt(ee,le.ADD_TAGS,xn))),le.ADD_ATTR&&(typeof le.ADD_ATTR=="function"?$e.attributeCheck=le.ADD_ATTR:(ne===ce&&(ne=oo(ne)),Wt(ne,le.ADD_ATTR,xn))),le.ADD_URI_SAFE_ATTR&&Wt(pn,le.ADD_URI_SAFE_ATTR,xn),le.FORBID_CONTENTS&&(Qt===En&&(Qt=oo(Qt)),Wt(Qt,le.FORBID_CONTENTS,xn)),le.ADD_FORBID_CONTENTS&&(Qt===En&&(Qt=oo(Qt)),Wt(Qt,le.ADD_FORBID_CONTENTS,xn)),ht&&(ee["#text"]=!0),et&&Wt(ee,["html","head","body"]),ee.table&&(Wt(ee,["tbody"]),delete de.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=le.TRUSTED_TYPES_POLICY,_=M.createHTML("")}else M===void 0&&(M=uT(c,v)),M!==null&&typeof _=="string"&&(_=M.createHTML(""));Wr&&Wr(le),vi=le}},vr=Wt({},[...fd,...pd,...JM]),Tr=Wt({},[...gd,...eT]),Rn=function(le){let We=N(le);(!We||!We.tagName)&&(We={namespaceURI:Mr,tagName:"template"});const Fe=bc(le.tagName),Ot=bc(We.tagName);return mr[le.namespaceURI]?le.namespaceURI===qt?We.namespaceURI===cn?Fe==="svg":We.namespaceURI===In?Fe==="svg"&&(Ot==="annotation-xml"||ni[Ot]):!!vr[Fe]:le.namespaceURI===In?We.namespaceURI===cn?Fe==="math":We.namespaceURI===qt?Fe==="math"&&Hn[Ot]:!!Tr[Fe]:le.namespaceURI===cn?We.namespaceURI===qt&&!Hn[Ot]||We.namespaceURI===In&&!ni[Ot]?!1:!Tr[Fe]&&(Ki[Fe]||!vr[Fe]):!!(Hr==="application/xhtml+xml"&&mr[le.namespaceURI]):!1},vn=function(le){Qa(n.removed,{element:le});try{N(le).removeChild(le)}catch{f(le)}},hr=function(le,We){try{Qa(n.removed,{attribute:We.getAttributeNode(le),from:We})}catch{Qa(n.removed,{attribute:null,from:We})}if(We.removeAttribute(le),le==="is")if(At||tr)try{vn(We)}catch{}else try{We.setAttribute(le,"")}catch{}},ii=function(le){let We=null,Fe=null;if(pr)le="<remove></remove>"+le;else{const Yt=dd(le,/^[\r\n\t ]+/);Fe=Yt&&Yt[0]}Hr==="application/xhtml+xml"&&Mr===cn&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const Ot=M?M.createHTML(le):le;if(Mr===cn)try{We=new u().parseFromString(Ot,Hr)}catch{}if(!We||!We.documentElement){We=C.createDocument(Mr,"template",null);try{We.documentElement.innerHTML=jr?_:Ot}catch{}}const zt=We.body||We.documentElement;return le&&Fe&&zt.insertBefore(e.createTextNode(Fe),zt.childNodes[0]||null),Mr===cn?I.call(We,et?"html":"body")[0]:et?We.documentElement:zt},so=function(le){return L.call(le.ownerDocument||le,le,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ao=function(le){return le instanceof l&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof a)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},zo=function(le){return typeof w=="function"&&le instanceof w};function Er(le,We,Fe){yc(le,Ot=>{Ot.call(n,We,Fe,vi)})}const oi=function(le){let We=null;if(Er(z.beforeSanitizeElements,le,null),ao(le))return vn(le),!0;const Fe=xn(le.nodeName);if(Er(z.uponSanitizeElement,le,{tagName:Fe,allowedTags:ee}),ct&&le.hasChildNodes()&&!zo(le.firstElementChild)&&Br(/<[/\w!]/g,le.innerHTML)&&Br(/<[/\w!]/g,le.textContent)||le.nodeType===nl.progressingInstruction||ct&&le.nodeType===nl.comment&&Br(/<[/\w]/g,le.data))return vn(le),!0;if(!($e.tagCheck instanceof Function&&$e.tagCheck(Fe))&&(!ee[Fe]||de[Fe])){if(!de[Fe]&&It(Fe)&&(se.tagNameCheck instanceof RegExp&&Br(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(ht&&!Qt[Fe]){const Ot=N(le)||le.parentNode,zt=x(le)||le.childNodes;if(zt&&Ot){const Yt=zt.length;for(let Un=Yt-1;Un>=0;--Un){const rr=s(zt[Un],!0);rr.__removalCount=(le.__removalCount||0)+1,Ot.insertBefore(rr,b(le))}}}return vn(le),!0}return le instanceof h&&!Rn(le)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Br(/<\/no(script|embed|frames)/i,le.innerHTML)?(vn(le),!0):(it&&le.nodeType===nl.text&&(We=le.textContent,yc([P,O,$],Ot=>{We=Ja(We,Ot," ")}),le.textContent!==We&&(Qa(n.removed,{element:le.cloneNode()}),le.textContent=We)),Er(z.afterSanitizeElements,le,null),!1)},Vr=function(le,We,Fe){if(me[We]||gr&&(We==="id"||We==="name")&&(Fe in e||Fe in xo))return!1;if(!(Te&&!me[We]&&Br(k,We))&&!(Me&&Br(R,We))&&!($e.attributeCheck instanceof Function&&$e.attributeCheck(We,le))){if(!ne[We]||me[We]){if(!(It(le)&&(se.tagNameCheck instanceof RegExp&&Br(se.tagNameCheck,le)||se.tagNameCheck instanceof Function&&se.tagNameCheck(le))&&(se.attributeNameCheck instanceof RegExp&&Br(se.attributeNameCheck,We)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(We,le))||We==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Br(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!pn[We]&&!Br(Q,Ja(Fe,U,""))&&!((We==="src"||We==="xlink:href"||We==="href")&&le!=="script"&&YM(Fe,"data:")===0&&jn[le])&&!(Ze&&!Br(B,Ja(Fe,U,"")))&&Fe)return!1}return!0},It=function(le){return le!=="annotation-xml"&&dd(le,q)},Co=function(le){Er(z.beforeSanitizeAttributes,le,null);const{attributes:We}=le;if(!We||ao(le))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Ot=We.length;for(;Ot--;){const zt=We[Ot],{name:Yt,namespaceURI:Un,value:rr}=zt,Fn=xn(Yt),yr=rr;let gn=Yt==="value"?yr:XM(yr);if(Fe.attrName=Fn,Fe.attrValue=gn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Er(z.uponSanitizeAttribute,le,Fe),gn=Fe.attrValue,fn&&(Fn==="id"||Fn==="name")&&(hr(Yt,le),gn=ur+gn),ct&&Br(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,gn)){hr(Yt,le);continue}if(Fn==="attributename"&&dd(gn,"href")){hr(Yt,le);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){hr(Yt,le);continue}if(!qe&&Br(/\/>/i,gn)){hr(Yt,le);continue}it&&yc([P,O,$],br=>{gn=Ja(gn,br," ")});const qi=xn(le.nodeName);if(!Vr(qi,Fn,gn)){hr(Yt,le);continue}if(M&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!Un)switch(c.getAttributeType(qi,Fn)){case"TrustedHTML":{gn=M.createHTML(gn);break}case"TrustedScriptURL":{gn=M.createScriptURL(gn);break}}if(gn!==yr)try{Un?le.setAttributeNS(Un,Yt,gn):le.setAttribute(Yt,gn),ao(le)?vn(le):Py(n.removed)}catch{hr(Yt,le)}}Er(z.afterSanitizeAttributes,le,null)},dr=function le(We){let Fe=null;const Ot=so(We);for(Er(z.beforeSanitizeShadowDOM,We,null);Fe=Ot.nextNode();)Er(z.uponSanitizeShadowNode,Fe,null),oi(Fe),Co(Fe),Fe.content instanceof p&&le(Fe.content);Er(z.afterSanitizeShadowDOM,We,null)};return n.sanitize=function(le){let We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,Ot=null,zt=null,Yt=null;if(jr=!le,jr&&(le="<!-->"),typeof le!="string"&&!zo(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw el("dirty is not a string, aborting")}else throw el("toString is not a function");if(!n.isSupported)return le;if(Bt||Cn(We),n.removed=[],typeof le=="string"&&(Ke=!1),Ke){if(le.nodeName){const Fn=xn(le.nodeName);if(!ee[Fn]||de[Fn])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof w)Fe=ii("<!---->"),Ot=Fe.ownerDocument.importNode(le,!0),Ot.nodeType===nl.element&&Ot.nodeName==="BODY"||Ot.nodeName==="HTML"?Fe=Ot:Fe.appendChild(Ot);else{if(!At&&!it&&!et&&le.indexOf("<")===-1)return M&&An?M.createHTML(le):le;if(Fe=ii(le),!Fe)return At?null:An?_:""}Fe&&pr&&vn(Fe.firstChild);const Un=so(Ke?le:Fe);for(;zt=Un.nextNode();)oi(zt),Co(zt),zt.content instanceof p&&dr(zt.content);if(Ke)return le;if(At){if(tr)for(Yt=D.call(Fe.ownerDocument);Fe.firstChild;)Yt.appendChild(Fe.firstChild);else Yt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(Yt=E.call(r,Yt,!0)),Yt}let rr=et?Fe.outerHTML:Fe.innerHTML;return et&&ee["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Br(Uy,Fe.ownerDocument.doctype.name)&&(rr="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1483
|
+
`+rr),it&&yc([P,O,$],Fn=>{rr=Ja(rr,Fn," ")}),M&&An?M.createHTML(rr):rr},n.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(le),Bt=!0},n.clearConfig=function(){vi=null,Bt=!1},n.isValidAttribute=function(le,We,Fe){vi||Cn({});const Ot=xn(le),zt=xn(We);return Vr(Ot,zt,Fe)},n.addHook=function(le,We){typeof We=="function"&&Qa(z[le],We)},n.removeHook=function(le,We){if(We!==void 0){const Fe=qM(z[le],We);return Fe===-1?void 0:GM(z[le],Fe,1)[0]}return Py(z[le])},n.removeHooks=function(le){z[le]=[]},n.removeAllHooks=function(){z=Ky()},n}var hT=qy();const dT={dark:!0,colors:{primary:"#005A8F",secondary:"#4DACFF",tertiary:"#BBC1C9","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},fT={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:t=>!!t||"Required.",match:t=>t===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`},sanitizedText:function(){return hT.sanitize(this.params.text)}},methods:{dialog:function(t,n,e){this.params=t,this.show=!0,this.resolve=n,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},pT=["innerHTML"],gT={key:2},mT={key:3,class:"validate mt-4"};function vT(t,n,e,r,v,p){const g=_t("v-spacer"),w=_t("v-toolbar"),h=_t("v-icon"),d=_t("v-text-field"),a=_t("v-card-text"),l=_t("v-btn"),u=_t("v-card-actions"),c=_t("v-card"),i=_t("v-dialog"),s=_t("v-app");return Tn(),no(s,null,{default:Lt(()=>[ut(i,{modelValue:t.show,"onUpdate:modelValue":n[1]||(n[1]=f=>t.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Lt(()=>[ut(c,null,{default:Lt(()=>[ut(w,{height:"24"},{default:Lt(()=>[ut(g),cr("span",null,Zr(t.params.title),1),ut(g)]),_:1}),ut(a,{class:"mt-4 pa-3"},{default:Lt(()=>[t.params.validateText?(Tn(),no(h,{key:0,class:"mr-2"},{default:Lt(()=>[...n[2]||(n[2]=[Ar(" mdi-alert ",-1)])]),_:1})):yo("",!0),t.params.html?(Tn(),Xr("span",{key:1,innerHTML:p.sanitizedText},null,8,pT)):(Tn(),Xr("span",gT,Zr(p.sanitizedText),1)),t.params.validateText?(Tn(),Xr("div",mT,[Ar(" Enter "+Zr(t.params.validateText)+" to confirm! ",1),ut(d,{modelValue:t.validationText,"onUpdate:modelValue":n[0]||(n[0]=f=>t.validationText=f),variant:"solo",density:"compact","single-line":"",rules:[t.rules.required,t.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):yo("",!0)]),_:1}),ut(u,{class:"px-2"},{default:Lt(()=>[ut(g),t.params.cancelText?(Tn(),no(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:Lt(()=>[Ar(Zr(t.params.cancelText),1)]),_:1},8,["data-test","onClick"])):yo("",!0),ut(l,{variant:"flat",color:t.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:Lt(()=>[Ar(Zr(t.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const yT=Do(fT,[["render",vT],["__scopeId","data-v-53691296"]]);class bT{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const n=window.Vue.createApp(yT);n.use(yd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({title:n,text:e,okText:r,okClass:v,validateText:p,cancelText:g,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:n,text:e,okText:r,okClass:v,validateText:p,cancelText:g,html:w},h,d)})}confirm(n,{okText:e="Ok",cancelText:r="Cancel",okClass:v="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:v,validateText:null,cancelText:r,html:!1})}alert(n,{okText:e="Ok",html:r=!1,okClass:v="primary"}){return this.open({title:"Alert",text:n,okText:e,okClass:v,validateText:null,cancelText:null,html:r})}validate(n,{okText:e="Ok",validateText:r="CONFIRM",cancelText:v="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:p,validateText:r,cancelText:v,html:!1})}}const wT={install(t,n){const e=new bT;t.provide("dialog",e),t.config.globalProperties.hasOwnProperty("$dialog")||(t.config.globalProperties.$dialog=e)}},xT={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){return this.toastNotification.type==="notification"?"mdi-bell":"mdi-alert-box"},toastStyle:function(){return`
|
|
1484
|
+
--toast-bg-color:${ld[this.toastNotification.level]};
|
|
1485
|
+
--toast-fg-color:${_M(this.toastNotification.level)};
|
|
1486
|
+
`},contentStyle:function(){return`
|
|
1487
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1488
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1489
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1490
|
+
`}},methods:{toast:function(t,n){this.noToastPaths.includes(window.location.pathname)||(n===void 0&&(n=5e3),this.toastNotification=t,this.showToast=!0,this.cancelAutohide(),n&&(this.timeout=setTimeout(()=>{this.hide()},n)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},CT={key:0,class:"text-subtitle-1 mr-1 notification-text"},kT={key:1,class:"text-body-2 notification-text"},AT={key:2,class:"text-body-2 notification-text"};function _T(t,n,e,r,v,p){const g=_t("v-icon"),w=_t("v-spacer"),h=_t("v-btn"),d=_t("v-sheet"),a=_t("v-slide-y-transition");return Tn(),no(a,null,{default:Lt(()=>[wl(ut(d,{style:ka(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Lt(()=>[ut(g,{class:"mr-1 notification-text"},{default:Lt(()=>[Ar(Zr(p.toastNotificationIcon),1)]),_:1}),cr("div",{class:"toast-content",style:ka(p.contentStyle)},[t.toastNotification.title?(Tn(),Xr("span",CT,[t.toastNotification.body||t.toastNotification.message?(Tn(),Xr(yl,{key:0},[Ar(Zr(t.toastNotification.title)+": ",1)],64)):(Tn(),Xr(yl,{key:1},[Ar(Zr(t.toastNotification.title),1)],64))])):yo("",!0),t.toastNotification.body?(Tn(),Xr("span",kT,Zr(t.toastNotification.body),1)):yo("",!0),t.toastNotification.message?(Tn(),Xr("span",AT,Zr(t.toastNotification.message),1)):yo("",!0)],4),ut(w),ut(h,{variant:"text",class:"notification-text",onClick:js(p.hide,["stop"])},{default:Lt(()=>[...n[0]||(n[0]=[Ar(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[xl,t.showToast]])]),_:1})}const ST=Do(xT,[["render",_T],["__scopeId","data-v-ef96840d"]]);class $T{constructor(n={}){this.store=null,this.mounted=!1,this.$root=null,window.$cosmosNotify?.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}getStore(){return this.store||(this.store=Ry()),this.store}mount(){if(this.mounted)return;const n=iu(ST);n.use(yd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({method:n,title:e,body:r,message:v,level:p,duration:g,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(v?`${p.toUpperCase()} - ${v}`:`${p.toUpperCase()} - ${e}: ${r}`),d&&this.getStore().notifyAddHistory({title:e,body:r,message:v,level:p}),this[n]({title:e,body:r,message:v,level:p,duration:g,type:w})}toast({title:n,body:e,message:r,level:v,duration:p,type:g}){this.$root.toast({title:n,body:e,message:r,level:v,type:g},p)}critical({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"critical",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}FATAL(n){this.critical(n)}ERROR(n){this.critical(n)}serious({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"serious",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}caution({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"caution",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}WARN(n){this.caution(n)}normal({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"normal",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}INFO(n){this.normal(n)}DEBUG(n){this.normal(n)}standby({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"standby",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}off({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"off",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}}const MT={install(t,n){const e=new $T(n);t.provide("notify",e),t.config.globalProperties.hasOwnProperty("$notify")||(t.config.globalProperties.$notify=e)}};function TT(t){yf(`Vuetify: ${t}`)}function Gy(t){let n;return t!==null&&typeof t=="object"&&((n=Object.getPrototypeOf(t))===Object.prototype||n===null)}function ET(t,n){const e={};for(const r of n)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Yy(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const v in t)r[v]=t[v];for(const v in n){const p=t[v],g=n[v];if(Gy(p)&&Gy(g)){r[v]=Yy(p,g,e);continue}if(e&&Array.isArray(p)&&Array.isArray(g)){r[v]=e(p,g);continue}r[v]=g}return r}function rl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(rl.cache.has(t))return rl.cache.get(t);const n=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return rl.cache.set(t,n),n}rl.cache=new Map;function Xy(t,n){return e=>Object.keys(t).reduce((r,v)=>{const p=typeof t[v]=="object"&&t[v]!=null&&!Array.isArray(t[v])?t[v]:{type:t[v]};return e&&v in e?r[v]={...p,default:e[v]}:r[v]=p,n&&!r[v].source&&(r[v].source=n),r},{})}function Zy(t,n){const e=kf();if(!e)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return e}function IT(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zy("injectSelf");const{provides:e}=n;if(e&&t in e)return e[t]}const vd=Symbol.for("vuetify:defaults");function Qy(){const t=bf(vd);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function RT(t,n){return t.props&&(typeof t.props[n]<"u"||typeof t.props[rl(n)]<"u")}function LT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qy();const r=Zy("useDefaults");if(n=n??r.type.name??r.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const v=ru(()=>e.value?.[t._as??n]),p=new Proxy(t,{get(h,d){const a=Reflect.get(h,d);if(d==="class"||d==="style")return[v.value?.[d],a].filter(c=>c!=null);if(RT(r.vnode,d))return a;const l=v.value?.[d];if(l!==void 0)return l;const u=e.value?.global?.[d];return u!==void 0?u:a}}),g=wf();xf(()=>{if(v.value){const h=Object.entries(v.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});g.value=h.length?Object.fromEntries(h):void 0}else g.value=void 0});function w(){const h=IT(vd,r);Af(vd,ru(()=>g.value?Yy(h?.value??{},g.value):h?.value))}return{props:p,provideSubDefaults:w}}function xc(t){if(t._setup=t._setup??t.setup,!t.name)return TT("The component is missing an explicit name, unable to generate default prop value"),t;if(t._setup){t.props=Xy(t.props??{},t.name)();const n=Object.keys(t.props).filter(e=>e!=="class"&&e!=="style");t.filterProps=function(e){return ET(e,n)},t.props._as=String,t.setup=function(e,r){const v=Qy();if(!v.value)return t._setup(e,r);const{props:p,provideSubDefaults:g}=LT(e,e._as??t.name,v),w=t._setup(p,r);return g(),w}}return t}function OT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(t?xc:vf)(n)}const NT=[String,Function,Object,Array],Cc=Xy({icon:{type:NT},tag:{type:[String,Object,Function],required:!0}},"icon");OT()({name:"VComponentIcon",props:Cc(),setup(t,n){let{slots:e}=n;return()=>{const r=t.icon;return ut(t.tag,null,{default:()=>[t.icon?ut(r,null,null):e.default?.()]})}}}),xc({name:"VSvgIcon",inheritAttrs:!1,props:Cc(),setup(t,n){let{attrs:e}=n;return()=>ut(t.tag,_f(e,{style:null}),{default:()=>[cr("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(r=>Array.isArray(r)?cr("path",{d:r[0],"fill-opacity":r[1]},null):cr("path",{d:r},null)):cr("path",{d:t.icon},null)])]})}}),xc({name:"VLigatureIcon",props:Cc(),setup(t){return()=>ut(t.tag,null,{default:()=>[t.icon]})}});const DT=xc({name:"VClassIcon",props:Cc(),setup(t){return()=>ut(t.tag,{class:Cf(t.icon)},null)}}),FT={component:t=>zs(DT,{...t,class:"mdi"})},PT={dark:!0,colors:{primary:"#007ad0",secondary:"#4da3e0",tertiary:"#858585",surface:"#1f1f1f",background:"#161616","on-surface":"#d4d4d4","on-background":"#d4d4d4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},WT={dark:!0,colors:{primary:"#5B52E0",secondary:"#8078F0",tertiary:"#7E8696",surface:"#24242F",background:"#1A1A24","on-surface":"#D0D4DC","on-background":"#D0D4DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},BT={dark:!0,colors:{primary:"#0097A7",secondary:"#26C6DA",tertiary:"#708090",surface:"#242D36",background:"#1A2027","on-surface":"#D4DCE4","on-background":"#D4DCE4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},zT={dark:!0,colors:{primary:"#00897B",secondary:"#26A69A",tertiary:"#6E7680",surface:"#222428",background:"#181A1C","on-surface":"#D4D8DC","on-background":"#D4D8DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},yd=Ef({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:dT,cosmosDarkCobalt:PT,cosmosDarkIndigo:WT,cosmosDarkSlate:BT,cosmosDarkEmerald:zT}},defaults:{VCheckbox:{color:"secondary"},VCheckboxBtn:{color:"secondary"},VRadio:{color:"secondary"},VRadioGroup:{color:"secondary"},VSwitch:{color:"secondary"}},icons:{defaultSet:"mdi",sets:{mdi:FT,...$M,...MM}}}),bd=Y0({createApp:iu,appOptions:{render(){return zs(rw,{})},el:"#openc3-tool"},handleInstance:t=>{t.use(HM),t.use(la),t.use(yd),t.use(wT),t.use(MT)}}),D2=Mn("t",bd.bootstrap),F2=Mn("u",bd.mount),P2=Mn("v",bd.unmount)})}}));
|