openc3-cosmos-tool-iframe 6.0.2 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/iframe/ArrayWidget-DzHELdHv-2696cd6b28635276d405.js +2 -0
- data/tools/iframe/ArrayplotWidget-BDvziGSm-24e5ff0c0b4a199e3ea3.js +1 -0
- data/tools/iframe/{BarColumn-B6tCmNJm-55390af639cc1eac1ec5.js → BarColumn-CNhS2KKq-baeda3543664a620150b.js} +1 -1
- data/tools/iframe/BlockWidget-D0On4x3d-2ac3b1d1c1a09e783c0b.js +2 -0
- data/tools/iframe/{ButtonWidget-CHrHS_Bw-56c70b72c61c21758137.js → ButtonWidget-BOYLHMt4-9aba3794db0d9db7834f.js} +2 -2
- data/tools/iframe/CanvasWidget-CQIqiLEy-c7c4f7f9070cb3817fd1.js +1 -0
- data/tools/iframe/CanvasdotWidget-BVWutPMF-13837ef7df386e2436fe.js +1 -0
- data/tools/iframe/{CanvasimageWidget-BrYlPQCf-63c45ef47843497eacc5.js → CanvasimageWidget-ayu_ASKf-b9339ee17da39f4bc322.js} +1 -1
- data/tools/iframe/{CanvasimagevalueWidget-HnEOXmZy-d35c0ff10bf73839df8d.js → CanvasimagevalueWidget-mv319g5T-740baed1210ff9968ec2.js} +1 -1
- data/tools/iframe/CanvaslabelWidget-BNjbXDb8-14f72e6adbce8bb523c0.js +1 -0
- data/tools/iframe/{CanvaslabelvalueWidget-0zRDJav3-9c65e1ca7e74de9a0140.js → CanvaslabelvalueWidget-CrhPwTSP-55b64e9988925d3fbb08.js} +1 -1
- data/tools/iframe/CanvaslineWidget--HdKH6oO-f12b92ae65dc6cf7b5ff.js +1 -0
- data/tools/iframe/CanvaslinevalueWidget-CJsuF6RY-b9d6619170a3312b237d.js +1 -0
- data/tools/iframe/CheckbuttonWidget-CQ2HlgIk-8dec3f4b4831dd22d182.js +1 -0
- data/tools/iframe/ComboboxWidget-BxILACwz-5738650176ceb313e762.js +1 -0
- data/tools/iframe/{DateWidget-FtYD86xW-f9fa1ccdc902e7ccf806.js → DateWidget-CIkO0xqH-e14dd793f075c6841391.js} +1 -1
- data/tools/iframe/{DetailsDialog-DiVcC3Fg-2d463bd3072c22a54538.js → DetailsDialog-DyGpm5TP-52bd0b96baca43202415.js} +1 -1
- data/tools/iframe/{DynamicWidget-m9EliUR2-da75f4e61dcff442fad4.js → DynamicWidget-gFSYxzvT-c291e579d06e10a13784.js} +1 -1
- data/tools/iframe/{FormatvalueWidget-OykwwCrw-819d887bfbd2025c3ac4.js → FormatvalueWidget-D8-EO_3E-6bc3157ab3980836108b.js} +1 -1
- data/tools/iframe/Graph-EV7oK3qM-9e9ebb3dbf31aa4503b7.js +1 -0
- data/tools/iframe/GraphWidget-BTNYbd21-326990288f98e2001f59.js +1 -0
- data/tools/iframe/{HorizontalWidget-B7YdcFVN-e755fd297f7075a2cfa0.js → HorizontalWidget-Bp-qtqoh-fc1cf0904a77bfa0068a.js} +1 -1
- data/tools/iframe/HorizontalboxWidget-CrJuGY3s-d9a22e6cef2994363aca.js +1 -0
- data/tools/iframe/HorizontallineWidget-CbxREBYI-1362b40d6a8124d24f9e.js +1 -0
- data/tools/iframe/{Iframe-120fd01947de5c41d710.js → Iframe-de485ff376c64491a8c2.js} +1 -1
- data/tools/iframe/{IframeWidget-0C7GYEVc-bd2048eea542d9ce4030.js → IframeWidget-DusiWNNj-ae649580a2f8eab41a17.js} +1 -1
- data/tools/iframe/ImageLoader-BapCB-Li-f45192b22d12de9a8b63.js +1 -0
- data/tools/iframe/{ImageviewerWidget-B4HbUIfR-b0fa07ea799a72e494b3.js → ImageviewerWidget-c0gJ9VDC-12cd17a70e49c80b3d4d.js} +1 -1
- data/tools/iframe/{LabelWidget-D1JhQAzR-ab109dacc2e75ff9d710.js → LabelWidget-pPgc0ve3-e0ef8efa33466d8fdb63.js} +1 -1
- data/tools/iframe/{LabelledWidget-C2VGJ5OJ-3a16fa847a4c7cb90409.js → LabelledWidget-CkNjby55-9c47047f9f63581c90d7.js} +1 -1
- data/tools/iframe/{LabelprogressbarWidget-DN0cAeLK-aa4497e7847c3ce49311.js → LabelprogressbarWidget-e2R2yQKw-a316a81263d2499a7cf6.js} +1 -1
- data/tools/iframe/LabelsparklineWidget-D7MQ_oNw-12fe286901042e7980a8.js +1 -0
- data/tools/iframe/LabelvalueWidget-4DShBBvr-28575ba1584e3fae7e98.js +1 -0
- data/tools/iframe/{LabelvaluedescWidget-DtJwggDu-3a1f03cfab6ba28ad59f.js → LabelvaluedescWidget-Z1m8Bi6N-1d5d5add0e4e5883c03b.js} +1 -1
- data/tools/iframe/LabelvaluelimitsbarWidget-DVa-oYxU-b7703e2a74107a1cf740.js +1 -0
- data/tools/iframe/LabelvaluelimitscolumnWidget-DduuX632-c9637de9afa2e5bced7f.js +1 -0
- data/tools/iframe/{LabelvaluerangebarWidget-DCJ42bmf-1655933487d49084c381.js → LabelvaluerangebarWidget-BR9vXOlt-7813249045b6400a527b.js} +1 -1
- data/tools/iframe/{Layout-D4YBjuWs-fc22c45c166a5e846d60.js → Layout-Bk8EGxbP-5177459b6d7e94b8baaf.js} +1 -1
- data/tools/iframe/LedWidget-f7bf8ls_-1cef4036b9c90c045dd3.js +1 -0
- data/tools/iframe/{LimitsbarWidget-D-wfz_St-c5e98b13b96e68057f64.js → LimitsbarWidget-B7fHaDcJ-ae0ea9dc7683a2c018bd.js} +1 -1
- data/tools/iframe/{LimitscolorWidget-B0AVGdkz-94382350456fafe15911.js → LimitscolorWidget-CpC4D_TC-a173e3f568bb6f7f1d3c.js} +1 -1
- data/tools/iframe/{LimitscolumnWidget-Dt5ce4hN-a5a7209f7ffcca297811.js → LimitscolumnWidget-C9FbNC-U-cb9bb49906cdac34c1d1.js} +1 -1
- data/tools/iframe/LinegraphWidget-DkWDQ_3K-2ef4b172beb756114eb6.js +1 -0
- data/tools/iframe/{MatrixbycolumnsWidget-wLx4NvXV-b0ad23a4aaad6d269a1c.js → MatrixbycolumnsWidget-CHJDyYa3-6d65d34d91c8e5dfa80d.js} +1 -1
- data/tools/iframe/{ProgressbarWidget-B7l0BBiX-a1dfd0cbc41bf2683211.js → ProgressbarWidget-CRZDxClT-751a7b0b797c6f195af4.js} +1 -1
- data/tools/iframe/RadiobuttonWidget-BW4yFweH-1db16aae077b84718b7f.js +1 -0
- data/tools/iframe/{RadiogroupWidget-Busjqikr-70c93930e9b7bc97ff40.js → RadiogroupWidget-_0bVCHjr-eecbb69ec63d9d2ab35b.js} +1 -1
- data/tools/iframe/{RangebarWidget-DbYrwEfC-4cb500da14b3c68bb576.js → RangebarWidget-CEQFiG4l-a1790d4d4f5165e09dcd.js} +1 -1
- data/tools/iframe/{RollupWidget-rKxLXuCv-fe3c1acafe92e8354636.js → RollupWidget-579c7y0R-b9e24995a7d9c1a43457.js} +1 -1
- data/tools/iframe/ScrollwindowWidget-Kcre9gM3-31f516364bd724df2f68.js +1 -0
- data/tools/iframe/{SignalWidget-h-oivReC-44f9cb93c02093f8af88.js → SignalWidget-D55Myd0q-8eb78ba401507ca9321d.js} +1 -1
- data/tools/iframe/{SpacerWidget-BSy9eOlB-62cec405cacc9de653d0.js → SpacerWidget-DBDv_w_s-34160af149d5d21a9b17.js} +1 -1
- data/tools/iframe/SparklineWidget-DJvIL24z-6509163db95abd5b7f84.js +1 -0
- data/tools/iframe/TabbookWidget-DH9DHnp1-e92a91c60f451c7c2424.js +1 -0
- data/tools/iframe/TextboxWidget-DCjIEzJn-248a1e809eceb4248176.js +1 -0
- data/tools/iframe/{TextfieldWidget-aVRdXRsT-d89810391c029533774a.js → TextfieldWidget-BRQ6oPzR-d10b17c67bc8737a0818.js} +1 -1
- data/tools/iframe/{TimeWidget-BE2rtMxg-1d3586d8fc58ff641ec1.js → TimeWidget-pXtrK5IC-134beb6b14d77155b1ab.js} +1 -1
- data/tools/iframe/TitleWidget-CfAa2SyT-ce1c88278226076fb803.js +1 -0
- data/tools/iframe/VWidget-CN_afCKJ-7af7fd1694610fe02c69.js +1 -0
- data/tools/iframe/ValueWidget-DIFivXw_-dc1b3dc2a36555831ac8.js +1 -0
- data/tools/iframe/ValuelimitsbarWidget-Cb7_SIUF-867b769b720540aad858.js +1 -0
- data/tools/iframe/ValuelimitscolumnWidget-D8bgZ7YP-80b0b012da1f40f36c08.js +1 -0
- data/tools/iframe/ValuerangebarWidget-VKygtFwP-e74e25236cfe4bcd54ae.js +1 -0
- data/tools/iframe/{VerticalWidget-DziyURNu-5d62b935ffe5e0ce6d18.js → VerticalWidget-BuvedA_b-d7b6c91f4a81b25f71f0.js} +1 -1
- data/tools/iframe/VerticalboxWidget-D_LcL3GF-519d9b8de53903c45777.js +1 -0
- data/tools/iframe/{Widget-C7ms_xDE-d4e2408fdd46ba61b58b.js → Widget-CERFa1CU-7d0d0a86be4c7ed29dac.js} +1 -1
- data/tools/iframe/main-7221ec0ae85f9afce293.js +1420 -0
- data/tools/iframe/main.js +1 -1
- metadata +69 -67
- data/tools/iframe/ArrayWidget-DBpEoQ1y-bb9ce21c13ea3b648c09.js +0 -2
- data/tools/iframe/BlockWidget-Bmi0UcUW-3dd218e13b506425c2d4.js +0 -2
- data/tools/iframe/CanvasWidget-BqdyLbQz-ccf3c047a3ca4aaf9841.js +0 -1
- data/tools/iframe/CanvasdotWidget-YYwca104-e1cd9e91bb41e50d2a67.js +0 -1
- data/tools/iframe/CanvaslabelWidget-BfMHNei--abac2e6419aba9494f00.js +0 -1
- data/tools/iframe/CanvaslineWidget-BmOwJP_G-62a4885ed9cf50529855.js +0 -1
- data/tools/iframe/CanvaslinevalueWidget-H3L1aUKM-2b2134bc93bc77f1d35a.js +0 -1
- data/tools/iframe/CheckbuttonWidget-BnT9X7wE-b7593408cd581bf12d86.js +0 -1
- data/tools/iframe/ComboboxWidget-BykAAoxH-989ad9c47ec112b69803.js +0 -1
- data/tools/iframe/GraphWidget-BohHW-97-70d29e9f64f397b4493f.js +0 -1
- data/tools/iframe/HorizontalboxWidget-D-kCNwI3-c6a925cd884be0ce6bfd.js +0 -1
- data/tools/iframe/HorizontallineWidget-BdlNB951-96476b90373c25985a88.js +0 -1
- data/tools/iframe/ImageLoader-y6fAZe9P-540c67c7c9903c9887fb.js +0 -1
- data/tools/iframe/LabelsparklineWidget--sxBENxs-3a5eaf77e0476ad48ea4.js +0 -1
- data/tools/iframe/LabelvalueWidget-BWpP5KX6-e42d134a361568e759ca.js +0 -1
- data/tools/iframe/LabelvaluelimitsbarWidget-Bj6UVK-5-4c1a62cbfbc50ed324dc.js +0 -1
- data/tools/iframe/LabelvaluelimitscolumnWidget-BVcEEcUx-c5ea4666ff90dd342359.js +0 -1
- data/tools/iframe/LedWidget-hN9JHxjr-820b1ba235c7d6db1d70.js +0 -1
- data/tools/iframe/LinegraphWidget-CTjtvtPd-d913566095bcfc974d09.js +0 -1
- data/tools/iframe/RadiobuttonWidget-B032jKIw-7677e234ea23badeeb20.js +0 -1
- data/tools/iframe/ScrollwindowWidget-D4NKIzQO-5aa5bfbfacc5e287814b.js +0 -1
- data/tools/iframe/SparklineWidget-C9vdxar--2f8c4c2b51cc6036bdb7.js +0 -1
- data/tools/iframe/TabbookWidget-DTFTKURm-e37036bdbd7f2d83a1c6.js +0 -1
- data/tools/iframe/TextboxWidget-BZyYHmBq-67df6ca6cd13751fbeb5.js +0 -1
- data/tools/iframe/TitleWidget-BB29MZb2-b8ae7313b5895e4a8d5f.js +0 -1
- data/tools/iframe/VWidget-CGdM4sTw-af0a5aa5b28ef9d33f3c.js +0 -1
- data/tools/iframe/ValueWidget-h3905woQ-19e6593646411d97a8d9.js +0 -1
- data/tools/iframe/ValuelimitsbarWidget-LMXYjWtS-9c4404accb38662b6f7a.js +0 -1
- data/tools/iframe/ValuelimitscolumnWidget-gA3ZcfAT-974ed96adc4098f4d998.js +0 -1
- data/tools/iframe/ValuerangebarWidget-DwZ9KQ0O-8200a3b35f65bcd87dd5.js +0 -1
- data/tools/iframe/VerticalboxWidget-OcoZBsFU-3469ba99c4a7d2cb1b0e.js +0 -1
- data/tools/iframe/main-e630fa0029e984af4cb0.js +0 -1420
@@ -0,0 +1,1420 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Pn,Le){"use strict";var Gt,yi,Hn,kn,Ct,Fd,gs,wi,ms,vi,Nr,ys,$r,Wd,Pd,Hd,kc,zd,jd,Bd,Ud,Sc,Vd,qd,Gd,Yd,Kd,Qd,Zd,Jd,Xd;return{setters:[ut=>{Gt=ut.resolveComponent,yi=ut.createBlock,Hn=ut.openBlock,kn=ut.withCtx,Ct=ut.createVNode,Fd=ut.defineAsyncComponent,gs=ut.h,wi=ut.createElementBlock,ms=ut.normalizeStyle,vi=ut.createCommentVNode,Nr=ut.createTextVNode,ys=ut.createElementVNode,$r=ut.toDisplayString,Wd=ut.defineComponent,Pd=ut.warn,Hd=ut.inject,kc=ut.computed,zd=ut.shallowRef,jd=ut.watchEffect,Bd=ut.getCurrentInstance,Ud=ut.provide,Sc=ut.createApp,Vd=ut.withDirectives,qd=ut.withModifiers,Gd=ut.vShow,Yd=ut.mergeProps},ut=>{Kd=ut.createRouter,Qd=ut.createWebHistory},ut=>{Zd=ut.getMountedApps},ut=>{Jd=ut.createStore},ut=>{Xd=ut.createVuetify}],execute:function(){Pn({$:sf,A:Rn,c:yC,l:Wt,y:sn,z:Ah});var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ef(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function Vi(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(e),!0).forEach(function(r){Bv(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ef(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function Bv(n,t,e){return(t=function(r){var f=function(m,y){if(qi(m)!=="object"||m===null)return m;var v=m[Symbol.toPrimitive];if(v!==void 0){var h=v.call(m,y);if(qi(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(m)}(r,"string");return qi(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function qi(n){return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(e),m=f.length,y=-1,v="",h=f.charCodeAt(0);++y<m;)(r=f.charCodeAt(y))!=0?v+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&m==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(y):f.charAt(y):v+="�";return v};n.CSS||(n.CSS={}),n.CSS.escape=t})(ut);var Uv={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Vv(n){if(qi(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Vi(Vi({},Uv),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.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(qi(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:qv.bind(null,t,e),mount:Gv.bind(null,t,e),unmount:Kv.bind(null,t,e),update:Yv.bind(null,t,e)}}function qv(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Gv(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,m){return typeof f.appOptions=="function"?f.appOptions(m):Promise.resolve(Vi({},f.appOptions))}(n,e).then(function(f){var m;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(m=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(m=f.el).id||(m.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(m.id));else{var y="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(y)),(m=document.getElementById(y))||((m=document.createElement("div")).id=y,document.body.appendChild(m))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!m.querySelector(".single-spa-container"))){var v=document.createElement("div");v.className="single-spa-container",m.appendChild(v)}r.domEl=m,f.render||f.template||!n.rootComponent||(f.render=function(p){return p(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return Vi(Vi({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function Yv(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=Vi(Vi({},n.appOptions.data||{}),e),m=r.root||r.vueInstance;for(var y in f)m[y]=f[y]})}function Kv(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.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 Qv=Pn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Zv={};function Jv(n,t){const e=Gt("router-view"),r=Gt("v-app");return Hn(),yi(r,{id:"innerapp"},{default:kn(()=>[Ct(e)]),_:1})}const Xv=Qv(Zv,[["render",Jv]]),uO="modulepreload",hO=function(n){return"/"+n},dO={},Ie=function(t,e,r){let f=Promise.resolve();function m(y){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=y,window.dispatchEvent(v),!v.defaultPrevented)throw y}return f.then(y=>{for(const v of y||[])v.status==="rejected"&&m(v.reason);return t().catch(m)})},tf=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/iframe/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(tf)},ws=Pn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Aa=6e4,$c=36e5,eb=1e3,nf=Symbol.for("constructDateFrom");function sn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&nf in n?n[nf](t):n instanceof Date?new n.constructor(t):new Date(t)}function Wt(n,t){return sn(t||n,n)}let tb={};function Ao(){return tb}function bi(n,t){var e,r,f,m;const y=Ao(),v=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??y.weekStartsOn??((m=(f=y.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,h=Wt(n,t==null?void 0:t.in),p=h.getDay(),a=(p<v?7:0)+p-v;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Co(n,t){return bi(n,{...t,weekStartsOn:1})}function rf(n,t){const e=Wt(n,void 0),r=e.getFullYear(),f=sn(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const m=Co(f),y=sn(e,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const v=Co(y);return e.getTime()>=m.getTime()?r+1:e.getTime()>=v.getTime()?r:r-1}function Ca(n){const t=Wt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function nb(n,...t){const e=sn.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function of(n,t){const e=Wt(n,void 0);return e.setHours(0,0,0,0),e}function rb(n,t,e){const[r,f]=nb(void 0,n,t),m=of(r),y=of(f),v=+m-Ca(m),h=+y-Ca(y);return Math.round((v-h)/864e5)}function ib(n,t){const e=rf(n),r=sn(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Co(r)}function ob(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function sf(n){return!(!ob(n)&&typeof n!="number"||isNaN(+Wt(n)))}function sb(n,t){const e=Wt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const ab={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"}},lb=(n,t,e)=>{let r;const f=ab[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function Ac(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const cb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ub={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},db={date:Ac({formats:cb,defaultWidth:"full"}),time:Ac({formats:ub,defaultWidth:"full"}),dateTime:Ac({formats:hb,defaultWidth:"full"})},fb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pb=(n,t,e,r)=>fb[n];function vs(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,v=e!=null&&e.width?String(e.width):y;f=n.formattingValues[v]||n.formattingValues[y]}else{const y=n.defaultWidth,v=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[v]||n.values[y]}const m=n.argumentCallback?n.argumentCallback(t):t;return f[m]}}const gb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yb={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"]},wb={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"]},vb={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"}},bb={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"}},xb=(n,t)=>{const e=Number(n),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"},_b={ordinalNumber:xb,era:vs({values:gb,defaultWidth:"wide"}),quarter:vs({values:mb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:vs({values:yb,defaultWidth:"wide"}),day:vs({values:wb,defaultWidth:"wide"}),dayPeriod:vs({values:vb,defaultWidth:"wide",formattingValues:bb,defaultFormattingWidth:"wide"})};function bs(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],m=t.match(f);if(!m)return null;const y=m[0],v=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(v)?Sb(v,c=>c.test(y)):kb(v,c=>c.test(y));let p;p=n.valueCallback?n.valueCallback(h):h,p=e.valueCallback?e.valueCallback(p):p;const a=t.slice(y.length);return{value:p,rest:a}}}function kb(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Sb(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function $b(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],m=t.match(n.parsePattern);if(!m)return null;let y=n.valueCallback?n.valueCallback(m[0]):m[0];y=e.valueCallback?e.valueCallback(y):y;const v=t.slice(f.length);return{value:y,rest:v}}}const Ab=/^(\d+)(th|st|nd|rd)?/i,Cb=/\d+/i,Tb={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},Eb={any:[/^b/i,/^(a|c)/i]},Rb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mb={any:[/1/i,/2/i,/3/i,/4/i]},Lb={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},Ib={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]},Ob={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},Db={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]},Nb={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},Fb={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}},Wb={ordinalNumber:$b({matchPattern:Ab,parsePattern:Cb,valueCallback:n=>parseInt(n,10)}),era:bs({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:bs({matchPatterns:Rb,defaultMatchWidth:"wide",parsePatterns:Mb,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bs({matchPatterns:Lb,defaultMatchWidth:"wide",parsePatterns:Ib,defaultParseWidth:"any"}),day:bs({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Db,defaultParseWidth:"any"}),dayPeriod:bs({matchPatterns:Nb,defaultMatchWidth:"any",parsePatterns:Fb,defaultParseWidth:"any"})},af={code:"en-US",formatDistance:lb,formatLong:db,formatRelative:pb,localize:_b,match:Wb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Pb(n,t){const e=Wt(n,void 0);return rb(e,sb(e))+1}function lf(n,t){const e=Wt(n,void 0),r=+Co(e)-+ib(e);return Math.round(r/6048e5)+1}function Cc(n,t){var e,r,f,m;const y=Wt(n,t==null?void 0:t.in),v=y.getFullYear(),h=Ao(),p=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((m=(f=h.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=sn((t==null?void 0:t.in)||n,0);a.setFullYear(v+1,0,p),a.setHours(0,0,0,0);const c=bi(a,t),s=sn((t==null?void 0:t.in)||n,0);s.setFullYear(v,0,p),s.setHours(0,0,0,0);const l=bi(s,t);return+y>=+c?v+1:+y>=+l?v:v-1}function Hb(n,t){var e,r,f,m;const y=Ao(),v=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??y.firstWeekContainsDate??((m=(f=y.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,h=Cc(n,t),p=sn((t==null?void 0:t.in)||n,0);return p.setFullYear(h,0,v),p.setHours(0,0,0,0),bi(p,t)}function cf(n,t){const e=Wt(n,t==null?void 0:t.in),r=+bi(e,t)-+Hb(e,t);return Math.round(r/6048e5)+1}function kt(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const xi={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return kt(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):kt(e+1,2)},d(n,t){return kt(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return kt(n.getHours()%12||12,t.length)},H(n,t){return kt(n.getHours(),t.length)},m(n,t){return kt(n.getMinutes(),t.length)},s(n,t){return kt(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return kt(f,t.length)}},To={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},uf={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return xi.y(n,t)},Y:function(n,t,e,r){const f=Cc(n,r),m=f>0?f:1-f;if(t==="YY"){const y=m%100;return kt(y,2)}return t==="Yo"?e.ordinalNumber(m,{unit:"year"}):kt(m,t.length)},R:function(n,t){const e=rf(n);return kt(e,t.length)},u:function(n,t){const e=n.getFullYear();return kt(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return kt(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"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return kt(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"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return xi.M(n,t);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"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return kt(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"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=cf(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):kt(f,t.length)},I:function(n,t,e){const r=lf(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):kt(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):xi.d(n,t)},D:function(n,t,e){const r=Pb(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):kt(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){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"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),m=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(m);case"ee":return kt(m,2);case"eo":return e.ordinalNumber(m,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),m=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(m);case"cc":return kt(m,t.length);case"co":return e.ordinalNumber(m,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return kt(f,t.length);case"io":return e.ordinalNumber(f,{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"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){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"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=To.noon:r===0?f=To.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=To.evening:r>=12?f=To.afternoon:r>=4?f=To.morning:f=To.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return xi.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):xi.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):xi.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):xi.s(n,t)},S:function(n,t){return xi.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return df(r);case"XXXX":case"XX":return Gi(r);case"XXXXX":case"XXX":default:return Gi(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return df(r);case"xxxx":case"xx":return Gi(r);case"xxxxx":case"xxx":default:return Gi(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hf(r,":");case"OOOO":default:return"GMT"+Gi(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hf(r,":");case"zzzz":default:return"GMT"+Gi(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return kt(r,t.length)},T:function(n,t,e){return kt(+n,t.length)}};function hf(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),m=r%60;return m===0?e+String(f):e+String(f)+t+kt(m,2)}function df(n,t){return n%60===0?(n>0?"-":"+")+kt(Math.abs(n)/60,2):Gi(n,t)}function Gi(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=kt(Math.trunc(r/60),2),m=kt(r%60,2);return e+f+t+m}const ff=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pf=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zb=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return ff(n,t);let m;switch(r){case"P":m=t.dateTime({width:"short"});break;case"PP":m=t.dateTime({width:"medium"});break;case"PPP":m=t.dateTime({width:"long"});break;case"PPPP":default:m=t.dateTime({width:"full"});break}return m.replace("{{date}}",ff(r,t)).replace("{{time}}",pf(f,t))},Tc={p:pf,P:zb},jb=/^D+$/,Bb=/^Y+$/,Ub=["D","DD","YY","YYYY"];function gf(n){return jb.test(n)}function mf(n){return Bb.test(n)}function Ec(n,t,e){const r=Vb(n,t,e);if(console.warn(r),Ub.includes(n))throw new RangeError(r)}function Vb(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yb=/^'([^]*?)'?$/,Kb=/''/g,Qb=/[a-zA-Z]/;function Eo(n,t,e){var r,f,m,y,v,h,p,a;const c=Ao(),s=(e==null?void 0:e.locale)??c.locale??af,l=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??c.firstWeekContainsDate??((y=(m=c.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((a=(p=c.locale)==null?void 0:p.options)==null?void 0:a.weekStartsOn)??0,u=Wt(n,e==null?void 0:e.in);if(!sf(u))throw new RangeError("Invalid time value");let g=t.match(Gb).map(x=>{const M=x[0];if(M==="p"||M==="P"){const C=Tc[M];return C(x,s.formatLong)}return x}).join("").match(qb).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const M=x[0];if(M==="'")return{isToken:!1,value:Zb(x)};if(uf[M])return{isToken:!0,value:x};if(M.match(Qb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(g=s.localize.preprocessor(u,g));const w={firstWeekContainsDate:l,weekStartsOn:o,locale:s};return g.map(x=>{if(!x.isToken)return x.value;const M=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&mf(M)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&gf(M))&&Ec(M,t,String(n));const C=uf[M[0]];return C(u,M,s.localize,w)}).join("")}function Zb(n){const t=n.match(Yb);return t?t[1].replace(Kb,"'"):n}var _i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ta(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var yf={exports:{}},wf;function Jb(){return wf||(wf=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,c,s){if(typeof a!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(s=c),f.modules[a]||(f.payloads[a]=s,f.modules[a]=null)};f.modules={},f.payloads={};var m=function(a,c,s){if(typeof c=="string"){var l=h(a,c);if(l!=null)return s&&s(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,g=c.length;u<g;++u){var w=h(a,c[u]);if(w==null&&y.original)return;o.push(w)}return s&&s.apply(null,o)||!0}},y=function(a,c){var s=m("",a,c);return s==null&&y.original?y.original.apply(this,arguments):s},v=function(a,c){if(c.indexOf("!")!==-1){var s=c.split("!");return v(a,s[0])+"!"+v(a,s[1])}if(c.charAt(0)=="."){var l=a.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},h=function(a,c){c=v(a,c);var s=f.modules[c];if(!s){if(s=f.payloads[c],typeof s=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(w,x){return m(c,w,x)},g=s(u,l,o);l=g||o.exports,f.modules[c]=l,delete f.payloads[c]}s=f.modules[c]=l||s}return s};function p(a){var c=r;r[a]||(r[a]={}),c=r[a],(!c.define||!c.define.packaged)&&(f.original=c.define,c.define=f,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(y.original=c.require,c.require=y,c.require.packaged=!0)}p(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function m(y,v,h){Object.defineProperty(y,v,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||m(String.prototype,"startsWith",function(y,v){return v=v||0,this.lastIndexOf(y,v)===v}),String.prototype.endsWith||m(String.prototype,"endsWith",function(y,v){var h=this;(v===void 0||v>h.length)&&(v=h.length),v-=y.length;var p=h.indexOf(y,v);return p!==-1&&p===v}),String.prototype.repeat||m(String.prototype,"repeat",function(y){for(var v="",h=this;y>0;)y&1&&(v+=h),(y>>=1)&&(h+=h);return v}),String.prototype.includes||m(String.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(y),h=1;h<arguments.length;h++){var p=arguments[h];p!=null&&Object.keys(p).forEach(function(a){v[a]=p[a]})}return v}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(v){return y[v]})}),Array.prototype.find||m(Array.prototype,"find",function(y){for(var v=this.length,h=arguments[1],p=0;p<v;p++){var a=this[p];if(y.call(h,a,p,this))return a}}),Array.prototype.findIndex||m(Array.prototype,"findIndex",function(y){for(var v=this.length,h=arguments[1],p=0;p<v;p++){var a=this[p];if(y.call(h,a,p,this))return p}}),Array.prototype.includes||m(Array.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Array.prototype.fill||m(Array.prototype,"fill",function(y){for(var v=this,h=v.length>>>0,p=arguments[1],a=p>>0,c=a<0?Math.max(h+a,0):Math.min(a,h),s=arguments[2],l=s===void 0?h:s>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)v[c]=y,c++;return v}),Array.of||m(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function m(y){if(typeof y!="object"||!y)return y;var v;if(Array.isArray(y)){v=[];for(var h=0;h<y.length;h++)v[h]=m(y[h]);return v}if(Object.prototype.toString.call(y)!=="[object Object]")return y;v={};for(var h in y)v[h]=m(y[h]);return v}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(v){return v[v.length-1]},r.stringReverse=function(v){return v.split("").reverse().join("")},r.stringRepeat=function(v,h){for(var p="";h>0;)h&1&&(p+=v),(h>>=1)&&(v+=v);return p};var m=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(v){return v.replace(m,"")},r.stringTrimRight=function(v){return v.replace(y,"")},r.copyObject=function(v){var h={};for(var p in v)h[p]=v[p];return h},r.copyArray=function(v){for(var h=[],p=0,a=v.length;p<a;p++)v[p]&&typeof v[p]=="object"?h[p]=this.copyObject(v[p]):h[p]=v[p];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(v){for(var h={},p=0;p<v.length;p++)h[v[p]]=1;return h},r.createMap=function(v){var h=Object.create(null);for(var p in v)h[p]=v[p];return h},r.arrayRemove=function(v,h){for(var p=0;p<=v.length;p++)h===v[p]&&v.splice(p,1)},r.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(v){return(""+v).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(v,h){var p=[];return v.replace(h,function(a){p.push({offset:arguments[arguments.length-2],length:a.length})}),p},r.deferredCall=function(v){var h=null,p=function(){h=null,v()},a=function(c){return a.cancel(),h=setTimeout(p,c||0),a};return a.schedule=a,a.call=function(){return this.cancel(),v(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(v,h){var p=null,a=function(){p=null,v()},c=function(s){p==null&&(p=setTimeout(a,s||h))};return c.delay=function(s){p&&clearTimeout(p),p=setTimeout(a,s||h)},c.schedule=c,c.call=function(){this.cancel(),v()},c.cancel=function(){p&&clearTimeout(p),p=null},c.isPending=function(){return p},c},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(v,h,p){return p&&v.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){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 m=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(m.platform)||["other"])[0].toLowerCase(),v=m.userAgent||"",h=m.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=v.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(v.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(v.split(" Edge/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isAndroid=v.indexOf("Android")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!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,f){var m=e("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function s(l,o,u){if(typeof l=="string"&&l){var g=document.createTextNode(l);return o&&o.appendChild(g),g}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var w=[],x=0;x<l.length;x++){var M=s(l[x],o,u);M&&w.push(M)}return w}var C=document.createElement(l[0]),k=l[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var x=b;x<l.length;x++)s(l[x],C,u);return b==2&&Object.keys(k).forEach(function(T){var R=k[T];T==="class"?C.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?C[T]=R:T==="ref"?u&&(u[R]=C):T==="style"?typeof R=="string"&&(C.style.cssText=R):R!=null&&C.setAttribute(T,R)}),o&&o.appendChild(C),C},r.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},r.createElement=function(s,l){return document.createElementNS?document.createElementNS(l||y,s):document.createElement(s)},r.removeChildren=function(s){s.innerHTML=""},r.createTextNode=function(s,l){var o=l?l.ownerDocument:document;return o.createTextNode(s)},r.createFragment=function(s){var l=s?s.ownerDocument:document;return l.createDocumentFragment()},r.hasCssClass=function(s,l){var o=(s.className+"").split(/\s+/g);return o.indexOf(l)!==-1},r.addCssClass=function(s,l){r.hasCssClass(s,l)||(s.className+=" "+l)},r.removeCssClass=function(s,l){for(var o=s.className.split(/\s+/g);;){var u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}s.className=o.join(" ")},r.toggleCssClass=function(s,l){for(var o=s.className.split(/\s+/g),u=!0;;){var g=o.indexOf(l);if(g==-1)break;u=!1,o.splice(g,1)}return u&&o.push(l),s.className=o.join(" "),u},r.setCssClass=function(s,l,o){o?r.addCssClass(s,l):r.removeCssClass(s,l)},r.hasCssString=function(s,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===s)return!0}},r.removeElementById=function(s,l){l=l||document,l.getElementById(s)&&l.getElementById(s).remove()};var v,h=[];r.useStrictCSP=function(s){v=s,s==!1?p():h||(h=[])};function p(){var s=h;h=null,s&&s.forEach(function(l){a(l[0],l[1])})}function a(s,l,o){if(!(typeof document>"u")){if(h){if(o)p();else if(o===!1)return h.push([s,l])}if(!v){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var g=u.ownerDocument||u;if(l&&r.hasCssString(l,u))return null;l&&(s+=`
|
2
|
+
/*# sourceURL=ace/css/`+l+" */");var w=r.createElement("style");w.appendChild(g.createTextNode(s)),l&&(w.id=l),u==g&&(u=r.getDocumentHead(g)),u.insertBefore(w,u.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(s,l){r.buildDom(["link",{rel:"stylesheet",href:s}],r.getDocumentHead(l))},r.scrollbarWidth=function(s){var l=r.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=r.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var g=s&&s.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(o);var w=l.offsetWidth;u.overflow="scroll";var x=l.offsetWidth;return w===x&&(x=o.clientWidth),g.removeChild(o),w-x},r.computedStyle=function(s,l){return window.getComputedStyle(s,"")||{}},r.setStyle=function(s,l,o){s[l]!==o&&(s[l]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=m.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,m.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");r.HI_DPI&&c.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&typeof c.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),c=null}r.HAS_CSS_TRANSFORMS?r.translate=function(s,l,o){s.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:r.translate=function(s,l,o){s.style.top=Math.round(o)+"px",s.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
|
3
|
+
* based on code from:
|
4
|
+
*
|
5
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
6
|
+
* Available via the MIT or new BSD license.
|
7
|
+
* see: http://github.com/jrburke/requirejs for details
|
8
|
+
*/var m=e("./dom");r.get=function(y,v){var h=new XMLHttpRequest;h.open("GET",y,!0),h.onreadystatechange=function(){h.readyState===4&&v(h.responseText)},h.send(null)},r.loadScript=function(y,v){var h=m.getDocumentHead(),p=document.createElement("script");p.src=y,h.appendChild(p),p.onload=p.onreadystatechange=function(a,c){(c||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,c||v())}},r.qualifyURL=function(y){var v=document.createElement("a");return v.href=y,v.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,f){r.inherits=function(m,y){m.super_=y,m.prototype=Object.create(y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(m,y){for(var v in y)m[v]=y[v];return m},r.implement=function(m,y){r.mixin(m,y)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,f){var m={},y=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};m._emit=m._dispatchEvent=function(h,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!a.length&&!c)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=h),p.stopPropagation||(p.stopPropagation=y),p.preventDefault||(p.preventDefault=v),a=a.slice();for(var s=0;s<a.length&&(a[s](p,this),!p.propagationStopped);s++);if(c&&!p.defaultPrevented)return c(p,this)}},m._signal=function(h,p){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var c=0;c<a.length;c++)a[c](p,this)}},m.once=function(h,p){var a=this;if(this.on(h,function c(){a.off(h,c),p.apply(null,arguments)}),!p)return new Promise(function(c){p=c})},m.setDefaultHandler=function(h,p){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var c=a[h],s=a._disabled_[h];s||(a._disabled_[h]=s=[]),s.push(c);var l=s.indexOf(p);l!=-1&&s.splice(l,1)}a[h]=p},m.removeDefaultHandler=function(h,p){var a=this._defaultHandlers;if(a){var c=a._disabled_[h];if(a[h]==p)c&&this.setDefaultHandler(h,c.pop());else if(c){var s=c.indexOf(p);s!=-1&&c.splice(s,1)}}},m.on=m.addEventListener=function(h,p,a){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(p)==-1&&c[a?"unshift":"push"](p),p},m.off=m.removeListener=m.removeEventListener=function(h,p){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var c=a.indexOf(p);c!==-1&&a.splice(c,1)}},m.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=m}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,r,f){r.reportError=function(m,y){var v=new Error(m);v.data=y,typeof console=="object"&&console.error&&console.error(v),setTimeout(function(){throw v})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,f){var m={"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"};r.defaultEnglishMessages=m}),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,f){"no use strict";var m=e("./oop"),y=e("./event_emitter").EventEmitter,v=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,p={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var g=this.$options;o=Object.keys(g).filter(function(w){return!g[w].hidden})}return o.forEach(function(w){u[w]=this.getOption(w)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var g=this.$options[o];if(!g)return a('misspelled option "'+o+'"');if(g.forwardTo)return this[g.forwardTo]&&this[g.forwardTo].setOption(o,u);g.handlesSet||(this["$"+o]=u),g&&g.set&&g.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:a('misspelled option "'+o+'"')}};function a(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var c,s,l=function(){function o(){this.$defaultOptions={},c=h,s="dollarSigns"}return o.prototype.defineOptions=function(u,g,w){return u.$options||(this.$defaultOptions[g]=u.$options={}),Object.keys(w).forEach(function(x){var M=w[x];typeof M=="string"&&(M={forwardTo:M}),M.name||(M.name=x),u.$options[M.name]=M,"initialValue"in M&&(u["$"+M.name]=M.initialValue)}),m.implement(u,p),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(g){var w=u.$options[g];"value"in w&&u.setOption(g,w.value)})},o.prototype.setDefaultValue=function(u,g,w){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][g])break;if(!this.$defaultOptions[u][g])return!1}var x=this.$defaultOptions[u]||(this.$defaultOptions[u]={});x[g]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,g,w):x[g].value=w)},o.prototype.setDefaultValues=function(u,g){Object.keys(g).forEach(function(w){this.setDefaultValue(u,w,g[w])},this)},o.prototype.setMessages=function(u,g){c=u,g&&g.placeholders&&(s=g.placeholders)},o.prototype.nls=function(u,g,w){c[u]||(a("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+g+"'."),c[g]||a("No message found for the default string '"+g+"' in the provided messages. Falling back to the default English message."));var x=c[u]||c[g]||g;return w&&(s==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(M,C){return C=="$"?"$":w[C]})),s==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(M,C){return w[C]}))),x},o}();l.prototype.warn=a,l.prototype.reportError=v,m.implement(l.prototype,y),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-tm .ace_gutter {
|
9
|
+
background: #f0f0f0;
|
10
|
+
color: #333;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ace-tm .ace_print-margin {
|
14
|
+
width: 1px;
|
15
|
+
background: #e8e8e8;
|
16
|
+
}
|
17
|
+
|
18
|
+
.ace-tm .ace_fold {
|
19
|
+
background-color: #6B72E6;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ace-tm {
|
23
|
+
background-color: #FFFFFF;
|
24
|
+
color: black;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ace-tm .ace_cursor {
|
28
|
+
color: black;
|
29
|
+
}
|
30
|
+
|
31
|
+
.ace-tm .ace_invisible {
|
32
|
+
color: rgb(191, 191, 191);
|
33
|
+
}
|
34
|
+
|
35
|
+
.ace-tm .ace_storage,
|
36
|
+
.ace-tm .ace_keyword {
|
37
|
+
color: blue;
|
38
|
+
}
|
39
|
+
|
40
|
+
.ace-tm .ace_constant {
|
41
|
+
color: rgb(197, 6, 11);
|
42
|
+
}
|
43
|
+
|
44
|
+
.ace-tm .ace_constant.ace_buildin {
|
45
|
+
color: rgb(88, 72, 246);
|
46
|
+
}
|
47
|
+
|
48
|
+
.ace-tm .ace_constant.ace_language {
|
49
|
+
color: rgb(88, 92, 246);
|
50
|
+
}
|
51
|
+
|
52
|
+
.ace-tm .ace_constant.ace_library {
|
53
|
+
color: rgb(6, 150, 14);
|
54
|
+
}
|
55
|
+
|
56
|
+
.ace-tm .ace_invalid {
|
57
|
+
background-color: rgba(255, 0, 0, 0.1);
|
58
|
+
color: red;
|
59
|
+
}
|
60
|
+
|
61
|
+
.ace-tm .ace_support.ace_function {
|
62
|
+
color: rgb(60, 76, 114);
|
63
|
+
}
|
64
|
+
|
65
|
+
.ace-tm .ace_support.ace_constant {
|
66
|
+
color: rgb(6, 150, 14);
|
67
|
+
}
|
68
|
+
|
69
|
+
.ace-tm .ace_support.ace_type,
|
70
|
+
.ace-tm .ace_support.ace_class {
|
71
|
+
color: rgb(109, 121, 222);
|
72
|
+
}
|
73
|
+
|
74
|
+
.ace-tm .ace_keyword.ace_operator {
|
75
|
+
color: rgb(104, 118, 135);
|
76
|
+
}
|
77
|
+
|
78
|
+
.ace-tm .ace_string {
|
79
|
+
color: rgb(3, 106, 7);
|
80
|
+
}
|
81
|
+
|
82
|
+
.ace-tm .ace_comment {
|
83
|
+
color: rgb(76, 136, 107);
|
84
|
+
}
|
85
|
+
|
86
|
+
.ace-tm .ace_comment.ace_doc {
|
87
|
+
color: rgb(0, 102, 255);
|
88
|
+
}
|
89
|
+
|
90
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
91
|
+
color: rgb(128, 159, 191);
|
92
|
+
}
|
93
|
+
|
94
|
+
.ace-tm .ace_constant.ace_numeric {
|
95
|
+
color: rgb(0, 0, 205);
|
96
|
+
}
|
97
|
+
|
98
|
+
.ace-tm .ace_variable {
|
99
|
+
color: rgb(49, 132, 149);
|
100
|
+
}
|
101
|
+
|
102
|
+
.ace-tm .ace_xml-pe {
|
103
|
+
color: rgb(104, 104, 91);
|
104
|
+
}
|
105
|
+
|
106
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
107
|
+
color: #0000A2;
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
.ace-tm .ace_heading {
|
112
|
+
color: rgb(12, 7, 255);
|
113
|
+
}
|
114
|
+
|
115
|
+
.ace-tm .ace_list {
|
116
|
+
color:rgb(185, 6, 144);
|
117
|
+
}
|
118
|
+
|
119
|
+
.ace-tm .ace_meta.ace_tag {
|
120
|
+
color:rgb(0, 22, 142);
|
121
|
+
}
|
122
|
+
|
123
|
+
.ace-tm .ace_string.ace_regex {
|
124
|
+
color: rgb(255, 0, 0)
|
125
|
+
}
|
126
|
+
|
127
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
128
|
+
background: rgb(181, 213, 255);
|
129
|
+
}
|
130
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
131
|
+
box-shadow: 0 0 3px 0px white;
|
132
|
+
}
|
133
|
+
.ace-tm .ace_marker-layer .ace_step {
|
134
|
+
background: rgb(252, 255, 0);
|
135
|
+
}
|
136
|
+
|
137
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
138
|
+
background: rgb(164, 229, 101);
|
139
|
+
}
|
140
|
+
|
141
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
142
|
+
margin: -1px 0 0 -1px;
|
143
|
+
border: 1px solid rgb(192, 192, 192);
|
144
|
+
}
|
145
|
+
|
146
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
147
|
+
background: rgba(0, 0, 0, 0.07);
|
148
|
+
}
|
149
|
+
|
150
|
+
.ace-tm .ace_gutter-active-line {
|
151
|
+
background-color : #dcdcdc;
|
152
|
+
}
|
153
|
+
|
154
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
155
|
+
background: rgb(250, 250, 255);
|
156
|
+
border: 1px solid rgb(200, 200, 250);
|
157
|
+
}
|
158
|
+
|
159
|
+
.ace-tm .ace_indent-guide {
|
160
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
161
|
+
}
|
162
|
+
|
163
|
+
.ace-tm .ace_indent-guide-active {
|
164
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
165
|
+
}
|
166
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,f){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var m=e("../lib/dom");m.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,f){"no use strict";var m=e("./lib/lang"),y=e("./lib/net"),v=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!p.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return p[l]},r.set=function(l,o){if(p.hasOwnProperty(l))p[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&v.useStrictCSP(o)},r.all=function(){return m.copyObject(p)},r.$modes={},r.moduleUrl=function(l,o){if(p.$moduleUrls[l])return p.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var g=o=="snippets"?"/":"-",w=u[u.length-1];if(o=="worker"&&g=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");w=w.replace(x,"")}(!w||w==o)&&u.length>1&&(w=u[u.length-2]);var M=p[o+"Path"];return M==null?M=p.basePath:g=="/"&&(o=g=""),M&&M.slice(-1)!="/"&&(M+="/"),M+o+g+w+this.get("suffix")},r.setModuleUrl=function(l,o){return p.$moduleUrls[l]=o};var a=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;r.setLoader=function(l){c=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,o){var u;if(Array.isArray(l))var g=l[0],w=l[1];else if(typeof l=="string")var w=l;var x=function(M){if(M&&!r.$loading[w])return o&&o(M);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(o),!(r.$loading[w].length>1)){var C=function(){a(w,function(k,b){b&&(r.$loaded[w]=b),r._emit("load.module",{name:w,module:b});var T=r.$loading[w];r.$loading[w]=null,T.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return C();y.loadScript(r.moduleUrl(w,g),C),s()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(M){M.default?x(M.default):x(M)});else{try{u=this.$require(w)}catch{}x(u||r.$loaded[w])}},r.$require=function(l){if(typeof f.require=="function"){var o="require";return f[o](l)}},r.setModuleLoader=function(l,o){r.dynamicModules[l]=o};var s=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$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"),s=function(){})};r.version="1.37.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var m=e("./config");m.setLoader(function(p,a){e([p],function(c){a(null,c)})});var y=function(){return this||typeof window<"u"&&window}();f.exports=function(p){m.init=v,m.$require=e,p.require=e},v(!0);function v(p){if(!(!y||!y.document)){m.set("packaged",p||e.packaged||f.packaged||y.define&&(void 0).packaged);var a={},c="",s=document.currentScript||document._currentScript,l=s&&s.ownerDocument||document;s&&s.src&&(c=s.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),u=0;u<o.length;u++){var g=o[u],w=g.src||g.getAttribute("src");if(w){for(var x=g.attributes,M=0,C=x.length;M<C;M++){var k=x[M];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var b=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(c=b[1])}}c&&(a.base=a.base||c,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 T in a)typeof a[T]<"u"&&m.set(T,a[T])}}function h(p){return p.replace(/-(.)/g,function(a,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var m=function(){function y(v,h,p,a){this.start={row:v,column:h},this.end={row:p,column:a}}return y.prototype.isEqual=function(v){return this.start.row===v.start.row&&this.end.row===v.end.row&&this.start.column===v.start.column&&this.end.column===v.end.column},y.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(v,h){return this.compare(v,h)==0},y.prototype.compareRange=function(v){var h,p=v.end,a=v.start;return h=this.compare(p.row,p.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)},y.prototype.comparePoint=function(v){return this.compare(v.row,v.column)},y.prototype.containsRange=function(v){return this.comparePoint(v.start)==0&&this.comparePoint(v.end)==0},y.prototype.intersects=function(v){var h=this.compareRange(v);return h==-1||h==0||h==1},y.prototype.isEnd=function(v,h){return this.end.row==v&&this.end.column==h},y.prototype.isStart=function(v,h){return this.start.row==v&&this.start.column==h},y.prototype.setStart=function(v,h){typeof v=="object"?(this.start.column=v.column,this.start.row=v.row):(this.start.row=v,this.start.column=h)},y.prototype.setEnd=function(v,h){typeof v=="object"?(this.end.column=v.column,this.end.row=v.row):(this.end.row=v,this.end.column=h)},y.prototype.inside=function(v,h){return this.compare(v,h)==0?!(this.isEnd(v,h)||this.isStart(v,h)):!1},y.prototype.insideStart=function(v,h){return this.compare(v,h)==0?!this.isEnd(v,h):!1},y.prototype.insideEnd=function(v,h){return this.compare(v,h)==0?!this.isStart(v,h):!1},y.prototype.compare=function(v,h){return!this.isMultiLine()&&v===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:v<this.start.row?-1:v>this.end.row?1:this.start.row===v?h>=this.start.column?0:-1:this.end.row===v?h<=this.end.column?0:1:0},y.prototype.compareStart=function(v,h){return this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.compareEnd=function(v,h){return this.end.row==v&&this.end.column==h?1:this.compare(v,h)},y.prototype.compareInside=function(v,h){return this.end.row==v&&this.end.column==h?1:this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.clipRows=function(v,h){if(this.end.row>h)var p={row:h+1,column:0};else if(this.end.row<v)var p={row:v,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<v)var a={row:v,column:0};return y.fromPoints(a||this.start,p||this.end)},y.prototype.extend=function(v,h){var p=this.compare(v,h);if(p==0)return this;if(p==-1)var a={row:v,column:h};else var c={row:v,column:h};return y.fromPoints(a||this.start,c||this.end)},y.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},y.prototype.isMultiLine=function(){return this.start.row!==this.end.row},y.prototype.clone=function(){return y.fromPoints(this.start,this.end)},y.prototype.collapseRows=function(){return this.end.column==0?new y(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new y(this.start.row,0,this.end.row,0)},y.prototype.toScreenRange=function(v){var h=v.documentToScreenPosition(this.start),p=v.documentToScreenPosition(this.end);return new y(h.row,h.column,p.row,p.column)},y.prototype.moveBy=function(v,h){this.start.row+=v,this.start.column+=h,this.end.row+=v,this.end.column+=h},y}();m.fromPoints=function(y,v){return new m(y.row,y.column,v.row,v.column)},m.comparePoints=function(y,v){return y.row-v.row||y.column-v.column},r.Range=m}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var m=e("./oop"),y={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:"*"}},v={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++)v["Digit"+h]=48+h,v["Numpad"+h]=96+h,y.PRINTABLE_KEYS[48+h]=""+h,y.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var p=String.fromCharCode(h+32);v["Key"+p.toUpperCase()]=h,y.PRINTABLE_KEYS[h]=p}for(var h=1;h<13;h++)v["F"+h]=111+h,y.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var c in a)v[c]=v[c+"Left"]=v[c+"Right"]=a[c];r.$codeToKeyCode=v,y.PRINTABLE_KEYS[173]="-";for(var s in y.FUNCTION_KEYS){var l=y.FUNCTION_KEYS[s].toLowerCase();y[l]=parseInt(s,10)}for(var s in y.PRINTABLE_KEYS){var l=y.PRINTABLE_KEYS[s].toLowerCase();y[l]=parseInt(s,10)}m.mixin(y,y.MODIFIER_KEYS),m.mixin(y,y.PRINTABLE_KEYS),m.mixin(y,y.FUNCTION_KEYS),y.enter=y.return,y.escape=y.esc,y.del=y.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)y.KEY_MODS[u]=o.filter(function(g){return u&y.KEY_MODS[g]}).join("-")+"-"}(),y.KEY_MODS[0]="",y.KEY_MODS[-1]="input-",m.mixin(r,y),r.default=r,r.keyCodeToString=function(o){var u=y[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var m=e("./keys"),y=e("./useragent"),v=null,h=0,p;function a(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function c(){return p==null&&a(),p}function s(M,C,k){this.elem=M,this.type=C,this.callback=k}s.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(M,C,k,b){M.addEventListener(C,k,c()),b&&b.$toDestroy.push(new s(M,C,k))},o=r.removeListener=function(M,C,k){M.removeEventListener(C,k,c())};r.stopEvent=function(M){return r.stopPropagation(M),r.preventDefault(M),!1},r.stopPropagation=function(M){M.stopPropagation&&M.stopPropagation()},r.preventDefault=function(M){M.preventDefault&&M.preventDefault()},r.getButton=function(M){return M.type=="dblclick"?0:M.type=="contextmenu"||y.isMac&&M.ctrlKey&&!M.altKey&&!M.shiftKey?2:M.button},r.capture=function(M,C,k){var b=M&&M.ownerDocument||document;function T(R){C&&C(R),k&&k(R),o(b,"mousemove",C),o(b,"mouseup",T),o(b,"dragstart",T)}return l(b,"mousemove",C),l(b,"mouseup",T),l(b,"dragstart",T),T},r.addMouseWheelListener=function(M,C,k){l(M,"wheel",function(b){var T=.15,R=b.deltaX||0,I=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*T,b.wheelY=I*T;break;case b.DOM_DELTA_LINE:var E=15;b.wheelX=R*E,b.wheelY=I*E;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=R*N,b.wheelY=I*N;break}C(b)},k)},r.addMultiMouseDownListener=function(M,C,k,b,T){var R=0,I,E,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(r.getButton($)!==0?R=0:$.detail>1?(R++,R>4&&(R=1)):R=1,y.isIE){var L=Math.abs($.clientX-I)>5||Math.abs($.clientY-E)>5;(!N||L)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},C[R-1]||600),R==1&&(I=$.clientX,E=$.clientY)}if($._clicks=R,k[b]("mousedown",$),R>4)R=0;else if(R>1)return k[b](S[R],$)}Array.isArray(M)||(M=[M]),M.forEach(function($){l($,"mousedown",_,T)})};function u(M){return 0|(M.ctrlKey?1:0)|(M.altKey?2:0)|(M.shiftKey?4:0)|(M.metaKey?8:0)}r.getModifierString=function(M){return m.KEY_MODS[u(M)]};function g(M,C,k){var b=u(C);if(!k&&C.code&&(k=m.$codeToKeyCode[C.code]||k),!y.isMac&&v){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(b|=8),v.altGr)if((3&b)!=3)v.altGr=0;else return;if(k===18||k===17){var T=C.location;if(k===17&&T===1)v[k]==1&&(h=C.timeStamp);else if(k===18&&b===3&&T===2){var R=C.timeStamp-h;R<50&&(v.altGr=!0)}}}if(k in m.MODIFIER_KEYS&&(k=-1),!(!b&&k===13&&C.location===3&&(M(C,b,-k),C.defaultPrevented))){if(y.isChromeOS&&b&8){if(M(C,b,k),C.defaultPrevented)return;b&=-9}return!b&&!(k in m.FUNCTION_KEYS)&&!(k in m.PRINTABLE_KEYS)?!1:M(C,b,k)}}r.addCommandKeyListener=function(M,C,k){var b=null;l(M,"keydown",function(T){v[T.keyCode]=(v[T.keyCode]||0)+1;var R=g(C,T,T.keyCode);return b=T.defaultPrevented,R},k),l(M,"keypress",function(T){b&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),b=null)},k),l(M,"keyup",function(T){v[T.keyCode]=null},k),v||(w(),l(window,"focus",w))};function w(){v=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!y.isOldIE){var x=1;r.nextTick=function(M,C){C=C||window;var k="zero-timeout-message-"+x++,b=function(T){T.data==k&&(r.stopPropagation(T),o(C,"message",b),M())};l(C,"message",b),C.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(M,C){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):M()},C)},r.$idleBlockId=null,r.blockIdle=function(M){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},M||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(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var m;f.exports={lineMode:!1,pasteCancelled:function(){return m&&m>Date.now()-50?!0:m=!1},cancel:function(){m=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,f){var m=e("../lib/event"),y=e("../config").nls,v=e("../lib/useragent"),h=e("../lib/dom"),p=e("../lib/lang"),a=e("../clipboard"),c=v.isChrome<18,s=v.isIE,l=v.isChrome>63,o=400,u=e("../lib/keys"),g=u.KEY_MODS,w=v.isIOS,x=w?/\s/:/\n/,M=v.isMobile,C;C=function(k,b){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var R=!1,I=!1,E=!1,N=!1,S="";M||(T.style.fontSize="1px");var _=!1,$=!1,L="",O=0,F=0,H=0,B=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(B=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Ae=b.session.selection.cursor.row;ce+=y("text-input.aria-label","Cursor at row $0",[Ae+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",y("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),m.addListener(T,"blur",function(ce){$||(b.onBlur(ce),X=!1)},b),m.addListener(T,"focus",function(ce){if(!$){if(X=!0,v.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),v.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),S||l||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Ae=T.getBoundingClientRect().top!=0}catch{return}var Ee=[];if(Ae)for(var Be=T.parentElement;Be&&Be.nodeType==1;)Ee.push(Be),Be.setAttribute("ace_nocontext","true"),!Be.parentElement&&Be.getRootNode?Be=Be.getRootNode().host:Be=Be.parentElement;T.focus({preventScroll:!0}),Ae&&Ee.forEach(function(Ve){Ve.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},b.on("beforeEndOperation",function(){var ce=b.curOp,Ae=ce&&ce.command&&ce.command.name;if(Ae!="insertstring"){var Ee=Ae&&(ce.docChanged||ce.selectionChanged);E&&Ee&&(L=T.value="",Bt()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Ae){for(var Ee=Ae,Be=1;Be<=ce-B&&Be<2*q+1;Be++)Ee+=b.session.getLine(ce-Be).length+1;return Ee},Z=w?function(ce){if(!(!X||R&&!ce||N)){ce||(ce="");var Ae=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Ae!=T.value&&(T.value=L=Ae);var Ee=4,Be=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=Ee||F!=Be)&&T.setSelectionRange(Ee,Be),O=Ee,F=Be}}:function(){if(!(E||N)&&!(!X&&!me)){E=!0;var ce=0,Ae=0,Ee="";if(b.session){var Be=b.selection,Ve=Be.getRange(),lt=Be.cursor.row;lt===V+1?(B=V+1,V=B+2*q):lt===B-1?(V=B-1,B=V-2*q):(lt<B-1||lt>V+1)&&(B=lt>q?lt-q:0,V=lt>q?lt+q:2*q);for(var ct=[],it=B;it<=V;it++)ct.push(b.session.getLine(it));if(Ee=ct.join(`
|
169
|
+
`),ce=G(Ve.start.row,Ve.start.column),Ae=G(Ve.end.row,Ve.end.column),Ve.start.row<B){var ot=b.session.getLine(B-1);ce=Ve.start.row<B-1?0:ce,Ae+=ot.length+1,Ee=ot+`
|
170
|
+
`+Ee}else if(Ve.end.row>V){var Xe=b.session.getLine(V+1);Ae=Ve.end.row>V+1?Xe.length:Ve.end.column,Ae+=Ee.length+1,Ee=Ee+`
|
171
|
+
`+Xe}else M&<>0&&(Ee=`
|
172
|
+
`+Ee,Ae+=1,ce+=1);Ee.length>o&&(ce<o&&Ae<o?Ee=Ee.slice(0,o):(Ee=`
|
173
|
+
`,ce==Ae?ce=Ae=0:(ce=0,Ae=1)));var Ft=Ee+`
|
174
|
+
|
175
|
+
`;Ft!=L&&(T.value=L=Ft,O=F=Ft.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Ae||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Ae),O=ce,F=Ae}catch{}E=!1}};this.resetSelection=Z,X&&b.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){E||(R?R=!1:re(T)?(b.selectAll(),Z()):M&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,we=function(ce,Ae){if(me&&(me=!1),I)return Z(),ce&&b.onPaste(ce),I=!1,"";for(var Ee=T.selectionStart,Be=T.selectionEnd,Ve=O,lt=L.length-F,ct=ce,it=ce.length-Ee,ot=ce.length-Be,Xe=0;Ve>0&&L[Xe]==ce[Xe];)Xe++,Ve--;for(ct=ct.slice(Xe),Xe=1;lt>0&&L.length-Xe>O-1&&L[L.length-Xe]==ce[ce.length-Xe];)Xe++,lt--;it-=Xe-1,ot-=Xe-1;var Ft=ct.length-Xe+1;if(Ft<0&&(Ve=-Ft,Ft=0),ct=ct.slice(0,Ft),!Ae&&!ct&&!it&&!Ve&&!lt&&!ot)return"";N=!0;var Ln=!1;return v.isAndroid&&ct==". "&&(ct=" ",Ln=!0),ct&&!Ve&&!lt&&!it&&!ot||_?b.onTextInput(ct):b.onTextInput(ct,{extendLeft:Ve,extendRight:lt,restoreStart:it,restoreEnd:ot}),N=!1,L=ce,O=Ee,F=Be,H=ot,Ln?`
|
176
|
+
`:ct},pe=function(ce){if(E)return Et();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Ae=T.value,Ee=we(Ae,!0);(Ae.length>o+100||x.test(Ee)||M&&O<1&&O==F)&&Z()},_e=function(ce,Ae,Ee){var Be=ce.clipboardData||window.clipboardData;if(!(!Be||c)){var Ve=s||Ee?"Text":"text/plain";try{return Ae?Be.setData(Ve,Ae)!==!1:Be.getData(Ve)}catch(lt){if(!Ee)return _e(lt,Ae,!0)}}},nt=function(ce,Ae){var Ee=b.getCopyText();if(!Ee)return m.preventDefault(ce);_e(ce,Ee)?(w&&(Z(Ee),R=Ee,setTimeout(function(){R=!1},10)),Ae?b.onCut():b.onCopy(),m.preventDefault(ce)):(R=!0,T.value=Ee,T.select(),setTimeout(function(){R=!1,Z(),Ae?b.onCut():b.onCopy()}))},It=function(ce){nt(ce,!0)},at=function(ce){nt(ce,!1)},ht=function(ce){var Ae=_e(ce);a.pasteCancelled()||(typeof Ae=="string"?(Ae&&b.onPaste(Ae,ce),v.isIE&&setTimeout(Z),m.preventDefault(ce)):(T.value="",I=!0))};m.addCommandKeyListener(T,function(ce,Ae,Ee){if(!E)return b.onCommandKey(ce,Ae,Ee)},b),m.addListener(T,"select",J,b),m.addListener(T,"input",pe,b),m.addListener(T,"cut",It,b),m.addListener(T,"copy",at,b),m.addListener(T,"paste",ht,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&m.addListener(k,"keydown",function(ce){if(!(v.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:at(ce);break;case 86:ht(ce);break;case 88:It(ce);break}},b);var nn=function(ce){if(!(E||!b.onCompositionStart||b.$readOnly)&&(E={},!_)){ce.data&&(E.useTextareaForIME=!1),setTimeout(Et,0),b._signal("compositionStart"),b.on("mousedown",jr);var Ae=b.getSelectionRange();Ae.end.row=Ae.start.row,Ae.end.column=Ae.start.column,E.markerRange=Ae,E.selectionStart=O,b.onCompositionStart(E),E.useTextareaForIME?(L=T.value="",O=0,F=0):(T.msGetInputContext&&(E.context=T.msGetInputContext()),T.getInputContext&&(E.context=T.getInputContext()))}},Et=function(){if(!(!E||!b.onCompositionUpdate||b.$readOnly)){if(_)return jr();if(E.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;we(ce),E.markerRange&&(E.context&&(E.markerRange.start.column=E.selectionStart=E.context.compositionStartOffset),E.markerRange.end.column=E.markerRange.start.column+F-E.selectionStart+H)}}},Bt=function(ce){!b.onCompositionEnd||b.$readOnly||(E=!1,b.onCompositionEnd(),b.off("mousedown",jr),ce&&pe())};function jr(){$=!0,T.blur(),T.focus(),$=!1}var mn=p.delayedCall(Et,50).schedule.bind(null,null);function Kt(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(E||(L=T.value),O=F=-1,Z()),mn()}m.addListener(T,"compositionstart",nn,b),m.addListener(T,"compositionupdate",Et,b),m.addListener(T,"keyup",Kt,b),m.addListener(T,"keydown",mn,b),m.addListener(T,"compositionend",Bt,b),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ae){S||(S=T.style.cssText),T.style.cssText=(Ae?"z-index:100000;":"")+(v.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var Ee=b.container.getBoundingClientRect(),Be=h.computedStyle(b.container),Ve=Ee.top+(parseInt(Be.borderTopWidth)||0),lt=Ee.left+(parseInt(Ee.borderLeftWidth)||0),ct=Ee.bottom-Ve-T.clientHeight-2,it=function(ot){h.translate(T,ot.clientX-lt-2,Math.min(ot.clientY-Ve-2,ct))};it(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(De),v.isWin&&m.capture(b.container,it,We))},this.onContextMenuClose=We;var De;function We(){clearTimeout(De),De=setTimeout(function(){S&&(T.style.cssText=S,S=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Qt=function(ce){b.textInput.onContextMenu(ce),We()};m.addListener(T,"mouseup",Qt,b),m.addListener(T,"mousedown",function(ce){ce.preventDefault(),We()},b),m.addListener(b.renderer.scroller,"contextmenu",Qt,b),m.addListener(T,"contextmenu",Qt,b),w&&He(k,b,T);function He(ce,Ae,Ee){var Be=null,Ve=!1;Ee.addEventListener("keydown",function(ct){Be&&clearTimeout(Be),Ve=!0},!0),Ee.addEventListener("keyup",function(ct){Be=setTimeout(function(){Ve=!1},100)},!0);var lt=function(ct){if(document.activeElement===Ee&&!(Ve||E||Ae.$mouseHandler.isMousePressed)&&!R){var it=Ee.selectionStart,ot=Ee.selectionEnd,Xe=null,Ft=0;if(it==0?Xe=u.up:it==1?Xe=u.home:ot>F&&L[ot]==`
|
177
|
+
`?Xe=u.end:it<O&&L[it-1]==" "?(Xe=u.left,Ft=g.option):it<O||it==O&&F!=O&&it==ot?Xe=u.left:ot>F&&L.slice(0,ot).split(`
|
178
|
+
`).length>2?Xe=u.down:ot>F&&L[ot-1]==" "?(Xe=u.right,Ft=g.option):(ot>F||ot==F&&F!=O&&it==ot)&&(Xe=u.right),it!==ot&&(Ft|=g.shift),Xe){var Ln=Ae.onCommandKey({},Ft,Xe);if(!Ln&&Ae.commands){Xe=u.keyCodeToString(Xe);var ti=Ae.commands.findKeyCommand(Ft,Xe);ti&&Ae.execCommand(ti)}O=it,F=ot,Z("")}}};document.addEventListener("selectionchange",lt),Ae.on("destroy",function(){document.removeEventListener("selectionchange",lt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=C,r.$setUserAgentForTests=function(k,b){M=k,w=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var m=e("../lib/useragent"),y=0,v=550,h=function(){function c(s){s.$clickSelection=null;var l=s.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){s[u]=this[u]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}return c.prototype.onMouseDown=function(s){var l=s.inSelection(),o=s.getDocumentPosition();this.mousedownEvent=s;var u=this.editor,g=s.getButton();if(g!==0){var w=u.getSelectionRange(),x=w.isEmpty();(x||g==1)&&u.selection.moveToPosition(o),g==2&&(u.textInput.onContextMenu(s.domEvent),m.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(o,s.domEvent._clicks>1),s.preventDefault()},c.prototype.startSelect=function(s,l){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(s):l||o.selection.moveToPosition(s),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var s,l=this.editor,o=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)s=this.$clickSelection.end;else if(u==1)s=this.$clickSelection.start;else{var g=a(this.$clickSelection,o);o=g.cursor,s=g.anchor}l.selection.setSelectionAnchor(s.row,s.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(s){var l,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),g=o.selection[s](u.row,u.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(g.start),x=this.$clickSelection.comparePoint(g.end);if(w==-1&&x<=0)l=this.$clickSelection.end,(g.end.row!=u.row||g.end.column!=u.column)&&(u=g.start);else if(x==1&&w>=0)l=this.$clickSelection.start,(g.start.row!=u.row||g.start.column!=u.column)&&(u=g.end);else if(w==-1&&x==1)u=g.end,l=g.start;else{var M=a(this.$clickSelection,u);u=M.cursor,l=M.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var s=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(s>y||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(s){var l=s.getDocumentPosition(),o=this.editor,u=o.session,g=u.getBracketRange(l);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},c.prototype.onTripleClick=function(s){var l=s.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(s){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=s.domEvent.timeStamp,g=u-o.t,w=g?s.wheelX/g:o.vx,x=g?s.wheelY/g:o.vy;g<v&&(w=(w+o.vx)/2,x=(x+o.vy)/2);var M=Math.abs(w/x),C=!1;if(M>=1&&l.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(C=!0),M<=1&&l.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(C=!0),C)o.allowed=u;else if(u-o.allowed<v){var k=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(C=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=w,o.vy=x,C)return l.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function p(c,s,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-s,2))}function a(c,s){if(c.start.row==c.end.row)var l=2*s.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=s.column-4;else var l=2*s.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(m){m.stopPropagation();var y=m.currentTarget,v=y.scrollHeight>y.clientHeight;v||m.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var m=this&&this.__extends||function(){var u=function(g,w){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var C in M)Object.prototype.hasOwnProperty.call(M,C)&&(x[C]=M[C])},u(g,w)};return function(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");u(g,w);function x(){this.constructor=g}g.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),y=this&&this.__values||function(u){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&u[g],x=0;if(w)return w.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/dom");e("./lib/event");var h=e("./range").Range,p=e("./lib/scroll").preventParentScroll,a="ace_tooltip",c=function(){function u(g){this.isOpen=!1,this.$element=null,this.$parentNode=g}return u.prototype.$init=function(){return this.$element=v.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(g){this.getElement().textContent=g},u.prototype.setHtml=function(g){this.getElement().innerHTML=g},u.prototype.setPosition=function(g,w){this.getElement().style.left=g+"px",this.getElement().style.top=w+"px"},u.prototype.setClassName=function(g){v.addCssClass(this.getElement(),g)},u.prototype.setTheme=function(g){this.$element.className=a+" "+(g.isDark?"ace_dark ":"")+(g.cssClass||"")},u.prototype.show=function(g,w,x){g!=null&&this.setText(g),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(g){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),s=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(g){this.popups.push(g),this.updatePopups()},u.prototype.removePopup=function(g){var w=this.popups.indexOf(g);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},u.prototype.updatePopups=function(){var g,w,x,M;this.popups.sort(function(S,_){return _.priority-S.priority});var C=[];try{for(var k=y(this.popups),b=k.next();!b.done;b=k.next()){var T=b.value,R=!0;try{for(var I=(x=void 0,y(C)),E=I.next();!E.done;E=I.next()){var N=E.value;if(this.doPopupsOverlap(N,T)){R=!1;break}}}catch(S){x={error:S}}finally{try{E&&!E.done&&(M=I.return)&&M.call(I)}finally{if(x)throw x.error}}R?C.push(T):T.hide()}}catch(S){g={error:S}}finally{try{b&&!b.done&&(w=k.return)&&w.call(k)}finally{if(g)throw g.error}}},u.prototype.doPopupsOverlap=function(g,w){var x=g.getElement().getBoundingClientRect(),M=w.getElement().getBoundingClientRect();return x.left<M.right&&x.right>M.left&&x.top<M.bottom&&x.bottom>M.top},u}(),l=new s;r.popupManager=l,r.Tooltip=c;var o=function(u){m(g,u);function g(w){w===void 0&&(w=document.body);var x=u.call(this,w)||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 M=x.getElement();return M.style.whiteSpace="pre-wrap",M.style.pointerEvents="auto",M.addEventListener("mouseout",x.onMouseOut),M.tabIndex=-1,M.addEventListener("blur",(function(){M.contains(document.activeElement)||this.hide()}).bind(x)),M.addEventListener("wheel",p),x}return g.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},g.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},g.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var M=x.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||M||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||M||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},g.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},g.prototype.isOutsideOfText=function(w){var x=w.editor,M=w.getDocumentPosition(),C=x.session.getLine(M.row);if(M.column==C.length){var k=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),b=x.session.documentToScreenPosition(M.row,M.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},g.prototype.setDataProvider=function(w){this.$gatherData=w},g.prototype.showForRange=function(w,x,M,C){var k=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=w.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,w.session),this.range=h.fromPoints(x.start,x.end);var T=b.textToScreenCoordinates(x.start.row,x.start.column),R=b.scroller.getBoundingClientRect();T.pageX<R.left&&(T.pageX=R.left);var I=this.getElement();I.innerHTML="",I.appendChild(M),I.style.maxHeight="",I.style.display="block";var E=I.clientHeight,N=I.clientWidth,S=window.innerHeight-T.pageY-b.lineHeight,_=!0;T.pageY-E<0&&T.pageY<S&&(_=!1),I.style.maxHeight=(_?T.pageY:S)-k+"px",I.style.top=_?"":T.pageY+b.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},g.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},g.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},g.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},g.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},g.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},g}(c);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,r,f){var m=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(g[x]=w[x])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),y=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],g=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&g>=l.length&&(l=void 0),{value:l&&l[g++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("../lib/dom"),h=e("../lib/event"),p=e("../tooltip").Tooltip,a=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,g=new s(o);l.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=u.getRegion(b);if(T!="foldWidgets"){var R=b.getDocumentPosition().row,I=o.session.selection;if(b.getShiftKey())I.selectTo(R,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();l.$clickSelection=o.selection.getLineRange(R)}return l.setState("selectByLines"),l.captureMouse(b),b.preventDefault()}}});var w,x;function M(){var b=x.getDocumentPosition().row,T=o.session.getLength();if(b==T){var R=o.renderer.pixelToScreenCoordinates(0,x.y).row,I=x.$pos;if(R>o.session.documentToScreenRow(I.row,I.column))return C()}if(g.showTooltip(b),!!g.isOpen)if(o.on("mousewheel",C),l.$tooltipFollowsMouse)k(x);else{var E=x.getGutterRow(),N=u.$lines.get(E);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=g.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(x)}}function C(){w&&(w=clearTimeout(w)),g.isOpen&&(g.hideTooltip(),o.off("mousewheel",C))}function k(b){g.setPosition(b.x,b.y)}l.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(v.hasCssClass(T,"ace_fold-widget"))return C();g.isOpen&&l.$tooltipFollowsMouse&&k(b),x=b,!w&&(w=setTimeout(function(){w=null,x&&!l.isMousePressed?M():C()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!g.isOpen||w)&&(w=setTimeout(function(){w=null,C()},50))},o),o.on("changeSession",C),o.on("input",C)}r.GutterHandler=c;var s=function(l){m(o,l);function o(u){var g=l.call(this,u.container)||this;return g.editor=u,g.visibleTooltipRow,g}return o.prototype.setPosition=function(u,g){var w=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,M=this.getWidth(),C=this.getHeight();u+=15,g+=15,u+M>w&&(u-=u+M-w),g+C>x&&(g-=20+C),p.prototype.setPosition.call(this,u,g)},Object.defineProperty(o,"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}),o.prototype.showTooltip=function(u){var g,w=this.editor.renderer.$gutterLayer,x=w.$annotations[u],M;x?M={displayText:Array.from(x.displayText),type:Array.from(x.type)}:M={displayText:[],type:[]};var C=w.session.getFoldLine(u);if(C&&w.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,R=u+1;R<=C.end.row;R++)if(w.$annotations[R])for(var I=0;I<w.$annotations[R].text.length;I++){var E=w.$annotations[R].type[I];k[E].push(w.$annotations[R].text[I]),(!T||b[E]<b[T])&&(T=E)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");M.displayText.push(N),M.type.push(T+"_fold")}}if(M.displayText.length===0)return this.hideTooltip();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=w.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<M.displayText.length;R++){var $=v.createElement("span"),L=v.createElement("span");(g=L.classList).add.apply(g,["ace_".concat(M.type[R]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[M.type[R].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(v.createTextNode(" ")),$.appendChild(L),$.appendChild(v.createTextNode(M.displayText[R])),$.appendChild(v.createElement("br")),S[M.type[R].replace("_fold","")].push($)}var O=this.getElement();v.removeChildren(O),S.error.forEach(function(F){return O.appendChild(F)}),S.security.forEach(function(F){return O.appendChild(F)}),S.warning.forEach(function(F){return O.appendChild(F)}),S.info.forEach(function(F){return O.appendChild(F)}),S.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=u,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(u){var g,w,x=[],M=["error","security","warning","info","hint"];try{for(var C=y(M),k=C.next();!k.done;k=C.next()){var b=k.value;if(u[b].length){var T=u[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(u[b].length," ").concat(T))}}}catch(R){g={error:R}}finally{try{k&&!k.done&&(w=C.return)&&w.call(C)}finally{if(g)throw g.error}}return x.join(", ")},o}(p);r.GutterTooltip=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var m=e("../lib/event"),y=e("../lib/useragent"),v=function(){function h(p,a){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=a,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){m.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 p=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(p,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,a=p.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=a.contains(c.row,c.column)}return this.$inSelection},h.prototype.getButton=function(){return m.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=v}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var m=e("../lib/dom"),y=e("../lib/event"),v=e("../lib/useragent"),h=200,p=200,a=5;function c(l){var o=l.editor,u=m.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var w=o.container,x,M,C,k,b,T,R=0,I,E,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!w.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),re.setDragImage&&re.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),re.clearData(),re.setData("Text",o.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(G){if(w.draggable=!1,E=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!I&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,C=G.clientY,x||F(),R++,G.dataTransfer.dropEffect=I=X(G),y.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,C=G.clientY,x||(F(),R++),B!==null&&(B=null),G.dataTransfer.dropEffect=I=X(G),y.preventDefault(G)},this.onDragLeave=function(G){if(R--,R<=0&&x)return H(),I=null,y.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(E)switch(I){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var re=Z.getData("Text");b={start:T,end:o.session.insert(T,re)},o.focus(),I=null}return H(),y.preventDefault(G)}},y.addListener(w,"dragstart",this.onDragStart.bind(l),o),y.addListener(w,"dragend",this.onDragEnd.bind(l),o),y.addListener(w,"dragenter",this.onDragEnter.bind(l),o),y.addListener(w,"dragover",this.onDragOver.bind(l),o),y.addListener(w,"dragleave",this.onDragLeave.bind(l),o),y.addListener(w,"drop",this.onDrop.bind(l),o);function $(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=re,_={x:M,y:C};else{var me=s(_.x,_.y,M,C);me>a?S=null:re-S>=p&&(o.renderer.scrollCursorIntoView(),S=null)}}function L(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),we={x:{left:M-me.left,right:me.right-M},y:{top:C-me.top,bottom:me.bottom-C}},pe=Math.min(we.x.left,we.x.right),_e=Math.min(we.y.top,we.y.bottom),nt={row:G.row,column:G.column};pe/ae<=2&&(nt.column+=we.x.left<we.x.right?-3:2),_e/J<=1&&(nt.row+=we.y.top<we.y.bottom?-1:1);var It=G.row!=nt.row,at=G.column!=nt.column,ht=!Z||G.row!=Z.row;It||at&&!ht?N?re-N>=h&&o.renderer.scrollCursorIntoView(nt):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(M,C),$(T,G),L(T,G)}function F(){b=o.selection.toOrientedRange(),x=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),R=0,y.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!E&&o.$resetCursorStyle(),b=null,T=null,R=0,N=null,S=null,y.removeListener(document,"mousemove",V)}var B=null;function V(){B==null&&(B=setTimeout(function(){B!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=v.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":re.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=v.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(v.isIE&&this.state=="dragReady"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),g=l.getButton(),w=l.domEvent.detail||1;if(w===1&&g===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(v.isWebKit){this.cancelDrag=!0;var M=o.container;M.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function s(l,o,u,g){return Math.sqrt(Math.pow(u-l,2)+Math.pow(g-o,2))}r.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var m=e("./mouse_event").MouseEvent,y=e("../lib/event"),v=e("../lib/dom");r.addTouchListeners=function(h,p){var a="scroll",c,s,l,o,u,g,w=0,x,M=0,C=0,k=0,b,T;function R(){var $=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var B=p.getCopyText(),V=p.session.getUndoManager().hasUndo();T.replaceChild(v.buildDom(L?["span",!B&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],B&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],B&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(B){return p.commands.canExecute(B,p)},H=function(B){var V=B.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?$.readText().then(function(q){p.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&($?$.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(V)),T.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&p.focus()};T=v.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(B){a="menu",B.stopPropagation(),B.preventDefault(),p.textInput.focus()},ontouchend:function(B){B.stopPropagation(),B.preventDefault(),H(B)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function I(){if(!p.getOption("enableMobileMenu")){T&&E();return}T||R();var $=p.selection.cursor,L=p.renderer.textToScreenCoordinates($.row,$.column),O=p.renderer.textToScreenCoordinates(0,0).pageX,F=p.renderer.scrollLeft,H=p.container.getBoundingClientRect();T.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-H.left+"px"),T.style.display="",T.firstChild.style.display="none",p.on("input",E)}function E($){T&&(T.style.display="none"),p.off("input",E)}function N(){u=null,clearTimeout(u);var $=p.selection.getRange(),L=$.contains(x.row,x.column);($.isEmpty()||!L)&&(p.selection.moveToPosition(x),p.selection.selectWord()),a="wait",I()}function S(){u=null,clearTimeout(u),p.selection.moveToPosition(x);var $=M>=2?p.selection.getLineRange(x.row):p.session.getBracketRange(x);$&&!$.isEmpty()?p.selection.setRange($):p.selection.selectWord(),a="wait"}y.addListener(h,"contextmenu",function($){if(b){var L=p.textInput.getElement();L.focus()}},p),y.addListener(h,"touchstart",function($){var L=$.touches;if(u||L.length>1){clearTimeout(u),u=null,l=-1,a="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var O=p.renderer.layerConfig.lineHeight,F=p.renderer.layerConfig.lineHeight,H=$.timeStamp;o=H;var B=L[0],V=B.clientX,q=B.clientY;Math.abs(c-V)+Math.abs(s-q)>O&&(l=-1),c=$.clientX=V,s=$.clientY=q,C=k=0;var X=new m($,p);if(x=X.getDocumentPosition(),H-l<500&&L.length==1&&!w)M++,$.preventDefault(),$.button=0,S();else{M=0;var G=p.selection.cursor,Z=p.selection.isEmpty()?G:p.selection.anchor,re=p.renderer.$cursorLayer.getPixelPosition(G,!0),J=p.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=p.renderer.scroller.getBoundingClientRect(),me=p.renderer.layerConfig.offset,we=p.renderer.scrollLeft,pe=function(It,at){return It=It/F,at=at/O-.75,It*It+at*at};if($.clientX<ae.left){a="zoom";return}var _e=pe($.clientX-ae.left-re.left+we,$.clientY-ae.top-re.top+me),nt=pe($.clientX-ae.left-J.left+we,$.clientY-ae.top-J.top+me);_e<3.5&&nt<3.5&&(a=_e>nt?"cursor":"anchor"),nt<3.5?a="anchor":_e<3.5?a="cursor":a="scroll",u=setTimeout(N,450)}l=H},p),y.addListener(h,"touchend",function($){b=p.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),a=="zoom"?(a="",w=0):u?(p.selection.moveToPosition(x),w=0,I()):a=="scroll"?(_(),E()):I(),clearTimeout(u),u=null},p),y.addListener(h,"touchmove",function($){u&&(clearTimeout(u),u=null);var L=$.touches;if(!(L.length>1||a=="zoom")){var O=L[0],F=c-O.clientX,H=s-O.clientY;if(a=="wait")if(F*F+H*H>4)a="cursor";else return $.preventDefault();c=O.clientX,s=O.clientY,$.clientX=O.clientX,$.clientY=O.clientY;var B=$.timeStamp,V=B-o;if(o=B,a=="scroll"){var q=new m($,p);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(C=F/V,k=H/V),p._emit("mousewheel",q),q.propagationStopped||(C=k=0)}else{var X=new m($,p),G=X.getDocumentPosition();a=="cursor"?p.selection.moveCursorToPosition(G):a=="anchor"&&p.selection.setSelectionAnchor(G.row,G.column),p.renderer.scrollCursorIntoView(G),$.preventDefault()}}},p);function _(){w+=60,g=setInterval(function(){w--<=0&&(clearInterval(g),g=null),Math.abs(C)<.01&&(C=0),Math.abs(k)<.01&&(k=0),w<20&&(C=.9*C),w<20&&(k=.9*k);var $=p.session.getScrollTop();p.renderer.scrollBy(10*C,10*k),$==p.session.getScrollTop()&&(w=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,f){var m=e("../lib/event"),y=e("../lib/useragent"),v=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,p=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,s=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var g=this;this.editor=u,new v(this),new h(this),new a(this);var w=function(C){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();m.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),m.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),m.addMultiMouseDownListener([x,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),m.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var M=u.renderer.$gutter;m.addListener(M,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),m.addListener(M,"click",this.onMouseEvent.bind(this,"gutterclick"),u),m.addListener(M,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),m.addListener(M,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),m.addListener(x,"mousedown",w,u),m.addListener(M,"mousedown",w,u),y.isIE&&u.renderer.scrollBarV&&(m.addListener(u.renderer.scrollBarV.element,"mousedown",w,u),m.addListener(u.renderer.scrollBarH.element,"mousedown",w,u)),u.on("mousemove",function(C){if(!(g.state||g.$dragDelay||!g.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(C.x,C.y),b=u.session.selection.getRange(),T=u.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,g){this.editor.session&&this.editor._emit(u,new p(g,this.editor))},o.prototype.onMouseMove=function(u,g){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(u,new p(g,this.editor))},o.prototype.onMouseWheel=function(u,g){var w=new p(g,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=g.wheelX,w.wheelY=g.wheelY,this.editor._emit(u,w)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,g){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var M=this,C=function(I){if(I){if(y.isWebKit&&!I.which&&M.releaseMouse)return M.releaseMouse();M.x=I.clientX,M.y=I.clientY,g&&g(I),M.mouseEvent=new p(I,M.editor),M.$mouseMoved=!0}},k=function(I){w.off("beforeEndOperation",T),clearInterval(R),w.session&&b(),M[M.state+"End"]&&M[M.state+"End"](I),M.state="",M.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,I&&M.onMouseEvent("mouseup",I),w.endOperation()},b=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1};if(y.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){M.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};w.on("beforeEndOperation",T),w.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=C,M.releaseMouse=m.capture(this.editor.container,C,k);var R=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var u=(function(g){g&&g.domEvent&&g.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),g&&g.domEvent&&m.stopEvent(g.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,s.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var m=e("../lib/dom"),y=function(){function v(h){h.on("click",function(p){var a=p.getDocumentPosition(),c=h.session,s=c.getFoldAt(a.row,a.column,1);s&&(p.getAccelKey()?c.removeFold(s):c.expandFold(s),p.stop());var l=p.domEvent&&p.domEvent.target;l&&m.hasCssClass(l,"ace_inline_button")&&m.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(p){var a=h.renderer.$gutterLayer.getRegion(p);if(a=="foldWidgets"){var c=p.getDocumentPosition().row,s=h.session;s.foldWidgets&&s.foldWidgets[c]&&h.session.onFoldWidgetClick(c,p),h.isFocused()||h.focus(),p.stop()}}),h.on("gutterdblclick",function(p){var a=h.renderer.$gutterLayer.getRegion(p);if(a=="foldWidgets"){var c=p.getDocumentPosition().row,s=h.session,l=s.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=s.getFoldAt(c,s.getLine(c).length,1);u?s.removeFold(u):(s.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}p.stop()}})}return v}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var m=e("../lib/keys"),y=e("../lib/event"),v=function(){function h(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return h.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},h.prototype.setKeyboardHandler=function(p){var a=this.$handlers;if(a[a.length-1]!=p){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(p,1)}},h.prototype.addKeyboardHandler=function(p,a){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var c=this.$handlers.indexOf(p);c!=-1&&this.$handlers.splice(c,1),a==null?this.$handlers.push(p):this.$handlers.splice(a,0,p),c==-1&&p.attach&&p.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(p){var a=this.$handlers.indexOf(p);return a==-1?!1:(this.$handlers.splice(a,1),p.detach&&p.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var p=this.$data,a=p.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(a,p)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(p,a,c,s){for(var l,o=!1,u=this.$editor.commands,g=this.$handlers.length;g--&&(l=this.$handlers[g].handleKeyboard(this.$data,p,a,c,s),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,s),o&&s&&p!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&y.stopEvent(s),o))););return!o&&p==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,a)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(p,a,c){var s=m.keyCodeToString(c);return this.$callKeyboardHandlers(a,s,c,p)},h.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},h}();r.KeyBinding=v}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var m=0,y=0,v=!1,h=!1,p=!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]],c=[[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]],s=0,l=1,o=0,u=1,g=2,w=3,x=4,M=5,C=6,k=7,b=8,T=9,R=10,I=11,E=12,N=13,S=14,_=15,$=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,C,M,C,b,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,M,M,M,C,b,x,x,I,I,I,x,x,x,x,x,R,T,R,T,T,g,g,g,g,g,g,g,g,g,g,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,x,I,I,I,I,x,x,x,x,o,x,x,O,x,x,I,I,g,g,x,o,x,x,x,g,o,x,x,x,x,x],H=[b,b,b,b,b,b,b,b,b,b,b,O,O,O,o,u,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b,M,N,S,_,$,L,T,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,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,b];function B(G,Z,re,J){var ae=m?c:a,me=null,we=null,pe=null,_e=0,nt=null,It=null,at=-1,ht=null,nn=null,Et=[];if(!J)for(ht=0,J=[];ht<re;ht++)J[ht]=X(G[ht]);for(y=m,v=!1,h=!1,p=!1,nn=0;nn<re;nn++){if(me=_e,Et[nn]=we=q(G,J,Et,nn),_e=ae[me][we],nt=_e&240,_e&=15,Z[nn]=pe=ae[_e][5],nt>0)if(nt==16){for(ht=at;ht<nn;ht++)Z[ht]=1;at=-1}else at=-1;if(It=ae[_e][6],It)at==-1&&(at=nn);else if(at>-1){for(ht=at;ht<nn;ht++)Z[ht]=pe;at=-1}J[nn]==M&&(Z[nn]=0),y|=pe}if(p){for(ht=0;ht<re;ht++)if(J[ht]==C){Z[ht]=m;for(var Bt=ht-1;Bt>=0&&J[Bt]==b;Bt--)Z[Bt]=m}}}function V(G,Z,re){if(!(y<G)){if(G==1&&m==l&&!h){re.reverse();return}for(var J=re.length,ae=0,me,we,pe,_e;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(we=ae,pe=me-1;we<pe;we++,pe--)_e=re[we],re[we]=re[pe],re[pe]=_e;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,we,pe,_e;switch(ae){case o:case u:v=!1;case x:case w:return ae;case g:return v?w:g;case k:return v=!0,u;case b:return x;case T:return J<1||J+1>=Z.length||(me=re[J-1])!=g&&me!=w||(we=Z[J+1])!=g&&we!=w?x:(v&&(we=w),we==me?we:x);case R:return me=J>0?re[J-1]:M,me==g&&J+1<Z.length&&Z[J+1]==g?g:x;case I:if(J>0&&re[J-1]==g)return g;if(v)return x;for(_e=J+1,pe=Z.length;_e<pe&&Z[_e]==I;)_e++;return _e<pe&&Z[_e]==g?g:x;case E:for(pe=Z.length,_e=J+1;_e<pe&&Z[_e]==E;)_e++;if(_e<pe){var nt=G[J],It=nt>=1425&&nt<=2303||nt==64286;if(me=Z[_e],It&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==M?x:re[J-1];case M:return v=!1,h=!0,m;case C:return p=!0,x;case N:case S:case $:case L:case _:v=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?u:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?E:/[\u0660-\u0669\u066b-\u066c]/.test(G)?w:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?g:k:re==32&&Z<=8287?H[Z&255]:re==254&&Z>=65136?k:x}r.L=o,r.R=u,r.EN=g,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),we=[];m=re?l:s,B(J,we,J.length,Z);for(var pe=0;pe<ae.length;ae[pe]=pe,pe++);V(2,we,ae),V(1,we,ae);for(var pe=0;pe<ae.length-1;pe++)Z[pe]===w?we[pe]=r.AN:we[pe]===u&&(Z[pe]>k&&Z[pe]<N||Z[pe]===x||Z[pe]===O)?we[pe]=r.ON_R:pe>0&&J[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[pe])&&(we[pe-1]=we[pe]=r.R_H,pe++);J[J.length-1]===r.DOT&&(we[J.length-1]=r.B),J[0]===""&&(we[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)me[pe]=we[ae[pe]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==u||Z[J]==k||Z[J]==w)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var m=e("./lib/bidiutil"),y=e("./lib/lang"),v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function p(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=m,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=v.test(a.getValue())}return p.prototype.isBidiRow=function(a,c,s){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(c,s),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&v.test(a.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var a=0,c=this.session.$screenRowCache;if(c.length){var s=this.session.$getRowCacheIndex(c,this.currentRow);s>=0&&(a=this.session.$docRowCache[s])}return a},p.prototype.getSplitIndex=function(){var a=0,c=this.session.$screenRowCache;if(c.length)for(var s,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-a>0&&(s=this.session.$getRowCacheIndex(c,this.currentRow-a-1),s===l);)l=s,a++;else a=this.currentRow;return a},p.prototype.updateRowLine=function(a,c){a===void 0&&(a=this.getDocumentRow());var s=a===this.session.getLength()-1,l=s?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 o=this.session.$wrapData[a];o&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:m.DOT))}else this.line+=this.showInvisibles?l:m.DOT;var u=this.session,g=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,M){return x===" "||u.isFullWidth(x.charCodeAt(0))?(w=x===" "?u.getScreenTabSize(M+g):2,g+=w-1,y.stringRepeat(m.DOT,w)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==m.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var a=[];m.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=m.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var c=this.characterWidth=a.$characterSize.width,s=a.$measureCharWidth("ה");this.charWidths[m.L]=this.charWidths[m.EN]=this.charWidths[m.ON_R]=c,this.charWidths[m.R]=this.charWidths[m.AN]=s,this.charWidths[m.R_H]=s*.45,this.charWidths[m.B]=this.charWidths[m.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},p.prototype.setEolChar=function(a){this.EOL=a},p.prototype.setContentWidth=function(a){this.contentWidth=a},p.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(a,c){for(var s=a.getCursorPosition(),l=a.selection.getSelectionAnchor().row;l<=s.row;l++)!c&&a.session.getLine(l).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(l,0,1):c&&a.session.getLine(l).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:l},a.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(a){a-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,s=a>c?this.session.getOverwrite()?a:a-1:c,l=m.getVisualFromLogicalIdx(s,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&a<=c&&o[l]%2!==0&&l++;for(var g=0;g<l;g++)u+=this.charWidths[o[g]];return!this.session.getOverwrite()&&a>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},p.prototype.getSelections=function(a,c){var s=this.bidiMap,l=s.bidiLevels,o,u=[],g=0,w=Math.min(a,c)-this.wrapIndent,x=Math.max(a,c)-this.wrapIndent,M=!1,C=!1,k=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,T=0;T<l.length;T++)b=s.logicalFromVisual[T],o=l[T],M=b>=w&&b<x,M&&!C?k=g:!M&&C&&u.push({left:k,width:g-k}),g+=this.charWidths[o],C=M;if(M&&T===l.length&&u.push({left:k,width:g-k}),this.isRtlDir)for(var R=0;R<u.length;R++)u[R].left+=this.rtlLineOffset;return u},p.prototype.offsetToCol=function(s){this.isRtlDir&&(s-=this.rtlLineOffset);var c=0,s=Math.max(s,0),l=0,o=0,u=this.bidiMap.bidiLevels,g=this.charWidths[u[o]];for(this.wrapIndent&&(s-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);s>l+g/2;){if(l+=g,o===u.length-1){g=0;break}g=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(s<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(s>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&g===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&g!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},p}();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,f){var m=e("./lib/oop"),y=e("./lib/lang"),v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,p=function(){function a(c){this.session=c,this.doc=c.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var s=this;this.cursor.on("change",function(l){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._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(c,s){this.$isEmpty=!1,this.anchor.setPosition(c,s)},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 c=this.anchor,s=this.lead;return c.row>s.row||c.row==s.row&&c.column>s.column},a.prototype.getRange=function(){var c=this.anchor,s=this.lead;return this.$isEmpty?h.fromPoints(s,s):this.isBackwards()?h.fromPoints(s,c):h.fromPoints(c,s)},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(c,s){var l=s?c.end:c.start,o=s?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},a.prototype.$setSelection=function(c,s,l,o){if(!this.$silent){var u=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,s),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||g)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(c){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),c.call(this)},a.prototype.selectTo=function(c,s){this.$moveSelection(function(){this.moveCursorTo(c,s)})},a.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},a.prototype.moveTo=function(c,s){this.clearSelection(),this.moveCursorTo(c,s)},a.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},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(c,s){if(typeof s>"u"){var l=c||this.lead;c=l.row,s=l.column}return this.session.getWordRange(c,s)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var c=this.getCursor(),s=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(s)},a.prototype.getLineRange=function(c,s){var l=typeof c=="number"?c:this.lead.row,o,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,s===!0?new h(l,0,o,this.session.getLine(o).length):new h(l,0,o+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(c,s,l){var o=c.column,u=c.column+s;return l<0&&(o=c.column-s,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).split(" ").length-1==s},a.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,1))this.moveCursorTo(s.end.row,s.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 l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var c=this.lead.row,s=this.lead.column,l=this.session.documentToScreenRow(c,s),o=this.session.screenToDocumentPosition(l,0),u=this.session.getDisplayLine(c,null,o.row,o.column),g=u.match(/^\s*/);g[0].length!=s&&!this.session.$useEmacsStyleLineStart&&(o.column+=g[0].length),this.moveCursorToPosition(o)},a.prototype.moveCursorLineEnd=function(){var c=this.lead,s=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==s.column){var l=this.session.getLine(s.row);if(s.column==l.length){var o=l.search(/\s+$/);o>0&&(s.column=o)}}this.moveCursorTo(s.row,s.column)},a.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,s=this.doc.getLine(c).length;this.moveCursorTo(c,s)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(c,s,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=l.substring(s)),s>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(s+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,s,-1);o==null&&(o=this.doc.getLine(c).substring(0,s));var u=y.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(s-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),s<=0){this.moveCursorTo(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.$shortWordEndIndex=function(c){var s=0,l,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(c))s=this.session.tokenRe.lastIndex;else{for(;(l=c[s])&&o.test(l);)s++;if(s<1){for(u.lastIndex=0;(l=c[s])&&!u.test(l);)if(u.lastIndex=0,s++,o.test(l))if(s>2){s--;break}else{for(;(l=c[s])&&o.test(l);)s++;if(s>2)break}}}return u.lastIndex=0,s},a.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s),u=this.session.getFoldAt(c,s,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(s==l.length){var g=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<g&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),s=0}var w=this.$shortWordEndIndex(o);this.moveCursorTo(c,s+w)},a.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,s);if(s===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));s=o.length,/\s+$/.test(o)||(o="")}var u=y.stringReverse(o),g=this.$shortWordEndIndex(u);return this.moveCursorTo(c,s-g)},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(c,s){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(s===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var g=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&s===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+s,s===0)},a.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorTo=function(c,s,l){var o=this.session.getFoldAt(c,s,1);o&&(c=o.start.row,s=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(s))&&u.charAt(s-1)&&(this.lead.row==c&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(c,s),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(c,s,l){var o=this.session.screenToDocumentPosition(c,s);this.moveCursorTo(o.row,o.column,l)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(c){var s=this.getRange();return c?(c.start.column=s.start.column,c.start.row=s.start.row,c.end.column=s.end.column,c.end.row=s.end.row):c=s,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},a.prototype.getRangeOfMovements=function(c){var s=this.getCursor();try{c(this);var l=this.getCursor();return h.fromPoints(s,l)}catch{return h.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},a.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(s){var l=s.clone();return l.isBackwards=s.cursor==s.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},a.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var s=c.length;s--;){var l=h.fromPoints(c[s].start,c[s].end);c[s].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},a.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(c[s]))return!1;return!0},a}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,m.implement(p.prototype,v),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var m=e("./lib/report_error").reportError,y=2e3,v=function(){function h(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var a in this.states){for(var c=this.states[a],s=[],l=0,o=this.matchMappings[a]={defaultToken:"text"},u="g",g=[],w=0;w<c.length;w++){var x=c[w];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),x.unicode&&u.indexOf("u")===-1&&(u+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var M=x.regex,C=new RegExp("(?:("+M+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||C==1?x.token=x.token[0]:C-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:C-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(C>1?x.onMatch=this.$applyToken:x.onMatch=x.token),C>1&&(/\\\d/.test(x.regex)?M=x.regex.replace(/\\([0-9]+)/g,function(k,b){return"\\"+(parseInt(b,10)+l+1)}):(C=1,M=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&g.push(x)),o[l]=w,l+=C,s.push(M),x.onMatch||(x.onMatch=null)}}s.length||(o[0]=0,s.push("$")),g.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[a]=new RegExp("("+s.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(p){y=p|0},h.prototype.$applyToken=function(p){var a=this.splitRegex.exec(p).slice(1),c=this.token.apply(this,a);if(typeof c=="string")return[{type:c,value:p}];for(var s=[],l=0,o=c.length;l<o;l++)a[l]&&(s[s.length]={type:c[l],value:a[l]});return s},h.prototype.$arrayTokens=function(p){if(!p)return[];var a=this.splitRegex.exec(p);if(!a)return"text";for(var c=[],s=this.tokenArray,l=0,o=s.length;l<o;l++)a[l+1]&&(c[c.length]={type:s[l],value:a[l+1]});return c},h.prototype.removeCapturingGroups=function(p){var a=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,s){return s?"(?:":c});return a},h.prototype.createSplitterRegexp=function(p,a){if(p.indexOf("(?=")!=-1){var c=0,s=!1,l={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,g,w,x,M){return s?s=x!="]":x?s=!0:w?(c==l.stack&&(l.end=M+1,l.stack=-1),c--):g&&(c++,g.length!=1&&(l.stack=c,l.start=M)),o}),l.end!=null&&/^\)*$/.test(p.substr(l.end))&&(p=p.substring(0,l.start)+p.substr(l.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(a||"").replace("g",""))},h.prototype.getLineTokens=function(p,a){if(a&&typeof a!="string"){var c=a.slice(0);a=c[0],a==="#tmp"&&(c.shift(),a=c.shift())}else var c=[];var s=a||"start",l=this.states[s];l||(s="start",l=this.states[s]);var o=this.matchMappings[s],u=this.regExps[s];u.lastIndex=0;for(var g,w=[],x=0,M=0,C={type:null,value:""};g=u.exec(p);){var k=o.defaultToken,b=null,T=g[0],R=u.lastIndex;if(R-T.length>x){var I=p.substring(x,R-T.length);C.type==k?C.value+=I:(C.type&&w.push(C),C={type:k,value:I})}for(var E=0;E<g.length-2;E++)if(g[E+1]!==void 0){b=l[o[E]],b.onMatch?k=b.onMatch(T,s,c,p):k=b.token,b.next&&(typeof b.next=="string"?s=b.next:s=b.next(s,c),l=this.states[s],l||(this.reportError("state doesn't exist",s),s="start",l=this.states[s]),o=this.matchMappings[s],x=R,u=this.regExps[s],u.lastIndex=R),b.consumeLineEnd&&(x=R);break}if(T){if(typeof k=="string")(!b||b.merge!==!1)&&C.type===k?C.value+=T:(C.type&&w.push(C),C={type:k,value:T});else if(k){C.type&&w.push(C),C={type:null,value:""};for(var E=0;E<k.length;E++)w.push(k[E])}}if(x==p.length)break;if(x=R,M++>y){for(M>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:p});x<p.length;)C.type&&w.push(C),C={value:p.substring(x,x+=500),type:"overflow"};s="start",c=[];break}}return C.type&&w.push(C),c.length>1&&c[0]!==s&&c.unshift("#tmp",s),{tokens:w,state:c.length?c:s}},h}();v.prototype.reportError=m,r.Tokenizer=v}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var m=e("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,a){if(!a){for(var c in p)this.$rules[c]=p[c];return}for(var c in p){for(var s=p[c],l=0;l<s.length;l++){var o=s[l];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(a)!==0&&(o.next=a+o.next),o.nextState&&o.nextState.indexOf(a)!==0&&(o.nextState=a+o.nextState))}this.$rules[a+c]=s}},this.getRules=function(){return this.$rules},this.embedRules=function(p,a,c,s,l){var o=typeof p=="function"?new p().getRules():p;if(s)for(var u=0;u<s.length;u++)s[u]=a+s[u];else{s=[];for(var g in o)s.push(a+g)}if(this.addRules(o,a),c)for(var w=Array.prototype[l?"push":"unshift"],u=0;u<s.length;u++)w.apply(this.$rules[s[u]],m(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var v=function(p,a){return(p!="start"||a.length)&&a.unshift(this.nextState,p),this.nextState},h=function(p,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var p=0,a=this.$rules;function c(s){var l=a[s];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],g=null;Array.isArray(u)&&(g=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var w=u.next||u.push;if(w&&Array.isArray(w)){var x=u.stateName;x||(x=u.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=p++)),a[x]=w,u.next=x,c(x)}else w=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=v,delete u.push),u.rules)for(var M in u.rules)a[M]?a[M].push&&a[M].push.apply(a[M],u.rules[M]):a[M]=u.rules[M];var C=typeof u=="string"?u:u.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?g=C.map(function(b){return a[b]}):g=a[C]),g){var k=[o,1].concat(g);u.noEscape&&(k=k.filter(function(b){return!b.next})),l.splice.apply(l,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(a).forEach(c,this)},this.createKeywordMapper=function(p,a,c,s){var l=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(o){for(var u=p[o],g=u.split(s||"|"),w=g.length;w--;){var x=g[w];this.$keywordList.push(x),c&&(x=x.toLowerCase()),l[x]=o}},this),p=null,c?function(o){return l[o.toLowerCase()]||a}:function(o){return l[o]||a}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),r.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var m;m=function(){this.$behaviours={}},(function(){this.add=function(y,v,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][v]=h},this.addBehaviours=function(y){for(var v in y)for(var h in y[v])this.add(v,h,y[v][h])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,v){if(typeof y=="function")var h=new y().getBehaviours(v);else var h=y.getBehaviours(v);this.addBehaviours(h)},this.getBehaviours=function(y){if(y){for(var v={},h=0;h<y.length;h++)this.$behaviours[y[h]]&&(v[y[h]]=this.$behaviours[y[h]]);return v}else return this.$behaviours}}).call(m.prototype),r.Behaviour=m}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var m=e("./range").Range,y=function(){function v(h,p,a){this.$session=h,this.$row=p,this.$rowTokens=h.getTokens(p);var c=h.getTokenAt(p,a);this.$tokenIndex=c?c.index:-1}return v.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]},v.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]},v.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentTokenRow=function(){return this.$row},v.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,p=this.$tokenIndex,a=h[p].start;if(a!==void 0)return a;for(a=0;p>0;)p-=1,a+=h[p].value.length;return a},v.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},v.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new m(this.$row,p,this.$row,p+h.value.length)},v}();r.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,f){var m=e("../../lib/oop"),y=e("../behaviour").Behaviour,v=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,s={},l={'"':'"',"'":"'"},o=function(w){var x=-1;if(w.multiSelect&&(x=w.selection.index,s.rangeCount!=w.multiSelect.rangeCount&&(s={rangeCount:w.multiSelect.rangeCount})),s[x])return c=s[x];c=s[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(w,x,M,C){var k=w.end.row-w.start.row;return{text:M+x+C,selection:[0,w.start.column+1,k,w.end.column+(k?0:1)]}},g;g=function(w){w=w||{},this.add("braces","insertion",function(x,M,C,k,b){var T=C.getCursorPosition(),R=k.doc.getLine(T.row);if(b=="{"){o(C);var I=C.getSelectionRange(),E=k.doc.getTextRange(I),N=k.getTokenAt(T.row,T.column);if(E!==""&&E!=="{"&&C.getWrapBehavioursEnabled())return u(I,E,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(B){return B.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(g.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]})}else if(g.isSaneInsertion(C,k))return/[\]\}\)]/.test(R[T.column])||C.inMultiSelectMode||w.braces?(g.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(C,k,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o(C);var _=R.substring(T.column,T.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if($!==null&&g.isAutoInsertedClosing(T,R,b))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
180
|
+
`||b==`\r
|
181
|
+
`){o(C);var L="";g.isMaybeInsertedClosing(T,R)&&(L=h.stringRepeat("}",c.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var _=R.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(L)var F=this.$getIndent(R);else{g.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
|
182
|
+
`+H+`
|
183
|
+
`+F+L,selection:[1,H.length,1,H.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,M,C,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="{"){o(C);var R=k.doc.getLine(b.start.row),I=R.substring(b.end.column,b.end.column+1);if(I=="}")return b.end.column++,b;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,M,C,k,b){if(b=="("){o(C);var T=C.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return u(T,R,"(",")");if(g.isSaneInsertion(C,k))return g.recordAutoInsert(C,k,")"),{text:"()",selection:[1,1]}}else if(b==")"){o(C);var I=C.getCursorPosition(),E=k.doc.getLine(I.row),N=E.substring(I.column,I.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(S!==null&&g.isAutoInsertedClosing(I,E,b))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,M,C,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="("){o(C);var R=k.doc.getLine(b.start.row),I=R.substring(b.start.column+1,b.start.column+2);if(I==")")return b.end.column++,b}}),this.add("brackets","insertion",function(x,M,C,k,b){if(b=="["){o(C);var T=C.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return u(T,R,"[","]");if(g.isSaneInsertion(C,k))return g.recordAutoInsert(C,k,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){o(C);var I=C.getCursorPosition(),E=k.doc.getLine(I.row),N=E.substring(I.column,I.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(S!==null&&g.isAutoInsertedClosing(I,E,b))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,M,C,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="["){o(C);var R=k.doc.getLine(b.start.row),I=R.substring(b.start.column+1,b.start.column+2);if(I=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(x,M,C,k,b){var T=k.$mode.$quotes||l;if(b.length==1&&T[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;o(C);var R=b,I=C.getSelectionRange(),E=k.doc.getTextRange(I);if(E!==""&&(E.length!=1||!T[E])&&C.getWrapBehavioursEnabled())return u(I,E,R,R);if(!E){var N=C.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),L=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),H=!O||/string|escape/.test(O.type),B;if($==R)B=F!==H,B&&/string\.end/.test(O.type)&&(B=!1);else{if(F&&!H||F&&H)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[R]&&G[R].test(_);if(!Z&&q||X||$&&!/[\s;,.})\]\\]/.test($))return null;var re=S[N.column-2];if(_==R&&(re==R||V.test(re)))return null;B=!0}return{text:B?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,M,C,k,b){var T=k.$mode.$quotes||l,R=k.doc.getTextRange(b);if(!b.isMultiLine()&&T.hasOwnProperty(R)){o(C);var I=k.doc.getLine(b.start.row),E=I.substring(b.start.column+1,b.start.column+2);if(E==R)return b.end.column++,b}}),w.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,M,C,k,b){if(x==="doc-start"&&(b===`
|
184
|
+
`||b===`\r
|
185
|
+
`)&&C.selection.isEmpty()){var T=C.getCursorPosition();if(T.column===0)return;for(var R=k.doc.getLine(T.row),I=k.doc.getLine(T.row+1),E=k.getTokens(T.row),N=0,S=0;S<E.length;S++){N+=E[S].value.length;var _=E[S];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=E[S+1];if(!$||!/\.doc/.test($.type))return}}var L=T.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&L>F&&L<F+3||O!==-1&&F!==-1&&L>=O&&L<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(R);if(/\s*\*/.test(I))return/^\s*\*/.test(R)?{text:b+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:b+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(R.substring(0,T.column)))return{text:b+H+" * "+b+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},g.isSaneInsertion=function(w,x){var M=w.getCursorPosition(),C=new v(x,M.row,M.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",p)){if(/[)}\]]/.test(w.session.getLine(M.row)[M.column]))return!0;var k=new v(x,M.row,M.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",p))return!1}return C.stepForward(),C.getCurrentTokenRow()!==M.row||this.$matchTokenType(C.getCurrentToken()||"text",a)},g.$matchTokenType=function(w,x){return x.indexOf(w.type||w)>-1},g.recordAutoInsert=function(w,x,M){var C=w.getCursorPosition(),k=x.doc.getLine(C.row);this.isAutoInsertedClosing(C,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=C.row,c.autoInsertedLineEnd=M+k.substr(C.column),c.autoInsertedBrackets++},g.recordMaybeInsert=function(w,x,M){var C=w.getCursorPosition(),k=x.doc.getLine(C.row);this.isMaybeInsertedClosing(C,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=C.row,c.maybeInsertedLineStart=k.substr(0,C.column)+M,c.maybeInsertedLineEnd=k.substr(C.column),c.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(w,x,M){return c.autoInsertedBrackets>0&&w.row===c.autoInsertedRow&&M===c.autoInsertedLineEnd[0]&&x.substr(w.column)===c.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(w,x){return c.maybeInsertedBrackets>0&&w.row===c.maybeInsertedRow&&x.substr(w.column)===c.maybeInsertedLineEnd&&x.substr(0,w.column)==c.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},m.inherits(g,y),r.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(e,r,f){for(var m=[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],y=0,v=[],h=0;h<m.length;h+=2)v.push(y+=m[h]),m[h+1]&&v.push(45,y+=m[h+1]);r.wordChars=String.fromCharCode.apply(null,v)}),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,f){var m=e("../config"),y=e("../tokenizer").Tokenizer,v=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,p=e("../unicode"),a=e("../lib/lang"),c=e("../token_iterator").TokenIterator,s=e("../range").Range,l;l=function(){this.HighlightRules=v},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new y(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,g,w){var x=u.doc,M=!0,C=!0,k=1/0,b=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var R=this.lineCommentStart.map(a.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var R=a.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;R=new RegExp("^(\\s*)(?:"+R+") ?"),T=u.getUseSoftTabs();var E=function(B,V){var q=B.match(R);if(q){var X=q[1].length,G=q[0].length;!$(B,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=I+" ",S=function(B,V){(!M||/\S/.test(B))&&($(B,k,k)?x.insertInLine({row:V,column:k},N):x.insertInLine({row:V,column:k},I))},_=function(B,V){return R.test(B)},$=function(B,V,q){for(var X=0;V--&&B.charAt(V)==" ";)X++;if(X%b!=0)return!1;for(var X=0;B.charAt(q++)==" ";)X++;return b>2?X%b!=b-1:X%b==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,L=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+a.escapeRegExp(I)+")"),O=new RegExp("(?:"+a.escapeRegExp(L)+")\\s*$"),S=function(Z,re){_(Z,re)||(!M||/\S/.test(Z))&&(x.insertInLine({row:re,column:Z.length},L),x.insertInLine({row:re,column:k},I))},E=function(Z,re){var J;(J=Z.match(O))&&x.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(R))&&x.removeInLine(re,J[1].length,J[0].length)},_=function(Z,re){if(R.test(Z))return!0;for(var J=u.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(B){for(var V=g;V<=w;V++)B(x.getLine(V),V)}var H=1/0;F(function(B,V){var q=B.search(/\S/);q!==-1?(q<k&&(k=q),C&&!_(B,V)&&(C=!1)):H>B.length&&(H=B.length)}),k==1/0&&(k=H,M=!1,C=!1),T&&k%b!=0&&(k=Math.floor(k/b)*b),F(C?E:S)},this.toggleBlockComment=function(o,u,g,w){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var M=new c(u,w.row,w.column),C=M.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),b,T;if(C&&/comment/.test(C.type)){for(var R,I;C&&/comment/.test(C.type);){var E=C.value.indexOf(x.start);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;R=new s(N,S,N,S+x.start.length);break}C=M.stepBackward()}for(var M=new c(u,w.row,w.column),C=M.getCurrentToken();C&&/comment/.test(C.type);){var E=C.value.indexOf(x.end);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;I=new s(N,S,N,S+x.end.length);break}C=M.stepForward()}I&&u.remove(I),R&&(u.remove(R),b=R.start.row,T=-x.start.length)}else T=x.start.length,b=g.start.row,u.insert(g.end,x.end),u.insert(g.start,x.start);k.start.row==b&&(k.start.column+=T),k.end.row==b&&(k.end.column+=T),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,g){return this.$getIndent(u)},this.checkOutdent=function(o,u,g){return!1},this.autoOutdent=function(o,u,g){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var g=o[u],w=g.prototype.$id,x=m.$modes[w];x||(m.$modes[w]=x=new g),m.$modes[u]||(m.$modes[u]=x),this.$embeds.push(u),this.$modes[u]=x}for(var M=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(T){(function(R){var I=M[T],E=R[I];R[M[T]]=function(){return this.$delegator(I,arguments,E)}})(k)},k=this,u=0;u<M.length;u++)C(u)},this.$delegator=function(o,u,g){var w=u[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var x=w[2][w[2].length-1],M=this.$modes[x];if(M)return M[o].apply(M,[w[1]].concat([].slice.call(u,1)))}w=w[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var k=w.split(this.$embeds[C]);if(!k[0]&&k[1]){u[0]=k[1];var M=this.$modes[this.$embeds[C]];return M[o].apply(M,u)}}var b=g.apply(this,u);return g?b:void 0},this.transformAction=function(o,u,g,w,x){if(this.$behaviour){var M=this.$behaviour.getBehaviours();for(var C in M)if(M[C][u]){var k=M[C][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,g=[];for(var w in u)for(var x=u[w],M=0,C=x.length;M<C;M++)if(typeof x[M].token=="string")/keyword|support|storage/.test(x[M].token)&&g.push(x[M].regex);else if(typeof x[M].token=="object"){for(var k=0,b=x[M].token.length;k<b;k++)if(/keyword|support|storage/.test(x[M].token[k])){var w=x[M].regex.match(/\(.+?\)/g)[k];g.push(w.substr(1,w.length-2))}}this.completionKeywords=g}return o?g.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,g,w){var x=this.$keywordList||this.$createKeywordList();return x.map(function(M){return{name:M,value:M,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),r.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,f){var m=e("./lib/dom"),y=function(){function v(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 v.prototype.getRowLength=function(h){var p;return this.lineWidgets?p=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[h]?1+p:this.$wrapData[h].length+1+p},v.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(h+=p.rowCount)}),h},v.prototype.$onChangeEditor=function(h){this.attach(h.editor)},v.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)))},v.prototype.detach=function(h){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},v.prototype.updateOnFold=function(h,p){var a=p.lineWidgets;if(!(!a||!h.action)){for(var c=h.data,s=c.start.row,l=c.end.row,o=h.action=="add",u=s+1;u<l;u++)a[u]&&(a[u].hidden=o);a[l]&&(o?a[s]?a[l].hidden=o:a[s]=a[l]:(a[s]==a[l]&&(a[s]=void 0),a[l].hidden=o))}},v.prototype.updateOnChange=function(h){var p=this.session.lineWidgets;if(p){var a=h.start.row,c=h.end.row-a;if(c!==0)if(h.action=="remove"){var s=p.splice(a+1,c);!p[a]&&s[s.length-1]&&(p[a]=s.pop()),s.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);p[a]&&p[a].column!=null&&h.start.column>p[a].column&&a++,l.unshift(a,0),p.splice.apply(p,l),this.$updateRows()}}},v.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var p=!0;h.forEach(function(a,c){if(a)for(p=!1,a.row=c;a.$oldWidget;)a.$oldWidget.row=c,a=a.$oldWidget}),p&&(this.session.lineWidgets=null)}},v.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[h.row];return p&&(h.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},v.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var p=this.editor.renderer;h.html&&!h.el&&(h.el=m.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=m.createElement("div"),h.el.textContent=h.text),h.el&&(m.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&m.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",p.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/p.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var c=this.session.lineWidgets;h.row==a.end.row&&!c[a.start.row]?c[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(h),h},v.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 p=this.session.lineWidgets[h.row];if(p==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;p;){if(p.$oldWidget==h){p.$oldWidget=h.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},v.prototype.getWidgetsAtRow=function(h){for(var p=this.session.lineWidgets,a=p&&p[h],c=[];a;)c.push(a),a=a.$oldWidget;return c},v.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},v.prototype.measureWidgets=function(h,p){var a=this.session._changedWidgets,c=p.layerConfig;if(!(!a||!a.length)){for(var s=1/0,l=0;l<a.length;l++){var o=a[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,p.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<s&&(s=o.row))}}s!=1/0&&(this.session._emit("changeFold",{data:{start:{row:s}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},v.prototype.renderWidgets=function(h,p){var a=p.layerConfig,c=this.session.lineWidgets;if(c){for(var s=Math.min(this.firstRow,a.firstRow),l=Math.max(this.lastRow,a.lastRow,c.length);s>0&&!c[s];)s--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,p.$cursorLayer.config=a;for(var o=s;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,p.container.appendChild(u.el));var g=p.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(g+=a.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=g-a.offset+"px";var w=u.coverGutter?0:p.gutterWidth;u.fixedWidth||(w-=p.scrollLeft),u.el.style.left=w+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=a.width+2*a.padding+"px"),u.fixedWidth?u.el.style.right=p.scrollBar.getWidth()+"px":u.el.style.right=""}}}},v}();r.LineWidgets=y}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,f){r.applyDelta=function(m,y,v){var h=y.start.row,p=y.start.column,a=m[h]||"";switch(y.action){case"insert":var c=y.lines;if(c.length===1)m[h]=a.substring(0,p)+y.lines[0]+a.substring(p);else{var s=[h,1].concat(y.lines);m.splice.apply(m,s),m[h]=a.substring(0,p)+m[h],m[h+y.lines.length-1]+=a.substring(p)}break;case"remove":var l=y.end.column,o=y.end.row;h===o?m[h]=a.substring(0,p)+a.substring(l):m.splice(h,o-h+1,a.substring(0,p)+m[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var m=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function a(c,s,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof s!="number"?this.setPosition(s.row,s.column):this.setPosition(s,l)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var s=p(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},a.prototype.setPosition=function(c,s,l){var o;if(l?o={row:c,column:s}:o=this.$clipPositionToDocument(c,s),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(c,s){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,s))),s<0&&(l.column=0),l},a}();v.prototype.$insertRight=!1,m.implement(v.prototype,y);function h(a,c,s){var l=s?a.column<=c.column:a.column<c.column;return a.row<c.row||a.row==c.row&&l}function p(a,c,s){var l=a.action=="insert",o=(l?1:-1)*(a.end.row-a.start.row),u=(l?1:-1)*(a.end.column-a.start.column),g=a.start,w=l?g:a.end;return h(c,g,s)?{row:c.row,column:c.column}:h(w,c,!s)?{row:c.row+o,column:c.column+(c.row==w.row?u:0)}:{row:g.row,column:g.column}}r.Anchor=v}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,r,f){var m=e("./lib/oop"),y=e("./apply_delta").applyDelta,v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,p=e("./anchor").Anchor,a=function(){function c(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)}return c.prototype.setValue=function(s){var l=this.getLength()-1;this.remove(new h(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},s||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(s,l){return new p(this,s,l)},c.prototype.$detectNewLine=function(s){var l=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},c.prototype.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(s){return s==`\r
|
190
|
+
`||s=="\r"||s==`
|
191
|
+
`},c.prototype.getLine=function(s){return this.$lines[s]||""},c.prototype.getLines=function(s,l){return this.$lines.slice(s,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(s){var l;if(s.start.row===s.end.row)l=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{l=this.getLines(s.start.row,s.end.row),l[0]=(l[0]||"").substring(s.start.column);var o=l.length-1;s.end.row-s.start.row==o&&(l[o]=l[o].substring(0,s.end.column))}return l},c.prototype.insertLines=function(s,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,l)},c.prototype.removeLines=function(s,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,l)},c.prototype.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},c.prototype.insert=function(s,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(s,this.$split(l))},c.prototype.insertInLine=function(s,l){var o=this.clippedPos(s.row,s.column),u=this.pos(s.row,s.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},c.prototype.clippedPos=function(s,l){var o=this.getLength();s===void 0?s=o:s<0?s=0:s>=o&&(s=o-1,l=void 0);var u=this.getLine(s);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:s,column:l}},c.prototype.clonePos=function(s){return{row:s.row,column:s.column}},c.prototype.pos=function(s,l){return{row:s,column:l}},c.prototype.$clipPosition=function(s){var l=this.getLength();return s.row>=l?(s.row=Math.max(0,l-1),s.column=this.getLine(l-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},c.prototype.insertFullLines=function(s,l){s=Math.min(Math.max(s,0),this.getLength());var o=0;s<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),s--,o=this.$lines[s].length),this.insertMergedLines({row:s,column:o},l)},c.prototype.insertMergedLines=function(s,l){var o=this.clippedPos(s.row,s.column),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(s){var l=this.clippedPos(s.start.row,s.start.column),o=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(s,l,o){var u=this.clippedPos(s,l),g=this.clippedPos(s,o);return this.applyDelta({start:u,end:g,action:"remove",lines:this.getLinesForRange({start:u,end:g})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(s,l){s=Math.min(Math.max(0,s),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&s>0,u=l<this.getLength()-1,g=o?s-1:s,w=o?this.getLine(g).length:0,x=u?l+1:l,M=u?0:this.getLine(x).length,C=new h(g,w,x,M),k=this.$lines.slice(s,l+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),k},c.prototype.removeNewLine=function(s){s<this.getLength()-1&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(s,l){if(s instanceof h||(s=h.fromPoints(s.start,s.end)),l.length===0&&s.isEmpty())return s.start;if(l==this.getTextRange(s))return s.end;this.remove(s);var o;return l?o=this.insert(s.start,l):o=s.start,o},c.prototype.applyDeltas=function(s){for(var l=0;l<s.length;l++)this.applyDelta(s[l])},c.prototype.revertDeltas=function(s){for(var l=s.length-1;l>=0;l--)this.revertDelta(s[l])},c.prototype.applyDelta=function(s,l){var o=s.action=="insert";(o?s.lines.length<=1&&!s.lines[0]:!h.comparePoints(s.start,s.end))||(o&&s.lines.length>2e4?this.$splitAndapplyLargeDelta(s,2e4):(y(this.$lines,s,l),this._signal("change",s)))},c.prototype.$safeApplyDelta=function(s){var l=this.$lines.length;(s.action=="remove"&&s.start.row<l&&s.end.row<l||s.action=="insert"&&s.start.row<=l)&&this.applyDelta(s)},c.prototype.$splitAndapplyLargeDelta=function(s,l){for(var o=s.lines,u=o.length-l+1,g=s.start.row,w=s.start.column,x=0,M=0;x<u;x=M){M+=l-1;var C=o.slice(x,M);C.push(""),this.applyDelta({start:this.pos(g+x,w),end:this.pos(g+M,w=0),action:s.action,lines:C},!0)}s.lines=o.slice(x),s.start.row=g+x,s.start.column=w,this.applyDelta(s,!0)},c.prototype.revertDelta=function(s){this.$safeApplyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},c.prototype.indexToPosition=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,g=l||0,w=o.length;g<w;g++)if(s-=o[g].length+u,s<0)return{row:g,column:s+o[g].length+u};return{row:w-1,column:s+o[w-1].length+u}},c.prototype.positionToIndex=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,g=0,w=Math.min(s.row,o.length),x=l||0;x<w;++x)g+=o[x].length+u;return g+s.column},c.prototype.$split=function(s){return s.split(/\r\n|\r|\n/)},c}();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",m.implement(a.prototype,v),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var m=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function h(p,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var c=this;this.$worker=function(){if(c.running){for(var s=new Date,l=c.currentLine,o=-1,u=c.doc,g=l;c.lines[l];)l++;var w=u.getLength(),x=0;for(c.running=!1;l<w;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(x++,x%5===0&&new Date-s>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),g<=o&&c.fireUpdateEvent(g,o)}}}return h.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(p,a){var c={first:p,last:a};this._signal("update",{data:c})},h.prototype.start=function(p){this.currentLine=Math.min(p||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(p){var a=p.start.row,c=p.end.row-a;if(c===0)this.lines[a]=null;else if(p.action=="remove")this.lines.splice(a,c+1,null),this.states.splice(a,c+1,null);else{var s=Array(c+1);s.unshift(a,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}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(p){return this.lines[p]||this.$tokenizeRow(p)},h.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},h.prototype.$tokenizeRow=function(p){var a=this.doc.getLine(p),c=this.states[p-1],s=this.tokenizer.getLineTokens(a,c,p);return this.states[p]+""!=s.state+""?(this.states[p]=s.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=s.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();m.implement(v.prototype,y),r.BackgroundTokenizer=v}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,f){var m=e("./lib/lang"),y=e("./range").Range,v=function(){function h(p,a,c){c===void 0&&(c="text"),this.setRegexp(p),this.clazz=a,this.type=c}return h.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},h.prototype.update=function(p,a,c,s){if(this.regExp)for(var l=s.firstRow,o=s.lastRow,u={},g=l;g<=o;g++){var w=this.cache[g];w==null&&(w=m.getMatchOffsets(c.getLine(g),this.regExp),w.length>this.MAX_RANGES&&(w=w.slice(0,this.MAX_RANGES)),w=w.map(function(k){return new y(g,k.offset,g,k.offset+k.length)}),this.cache[g]=w.length?w:"");for(var x=w.length;x--;){var M=w[x].toScreenRange(c),C=M.toString();u[C]||(u[C]=!0,a.drawSingleLineMarker(p,M,this.clazz,s))}}},h}();v.prototype.MAX_RANGES=500,r.SearchHighlight=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,f){var m=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(b){this.$session=b},k.prototype.add=function(b,T,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!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),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},k.prototype.addSelection=function(b,T){this.selections.push({value:b,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,I=R.length;I--;){var E=R[I][0];if(E.id<=b)break;E.id<T&&(E.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(b,T){for(var R=this.selections,I=R.length;I--;){var E=R[I];if(E.rev<b)return T&&(E=R[I+1]),E}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,I=null,E=0,N=R.length;N--;){var S=R[N][0];if(S.id<T&&!I&&(I=N+1),S.id<=b){E=N+1;break}}return R.slice(E,I)},k.prototype.getChangedRanges=function(b,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(b,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(b,T){this.lastDeltas=null;var R=this.$undoStack;if(y(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=R.pop(),E=null;return I&&(E=b.undoChanges(I,T),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E}},k.prototype.redo=function(b,T){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),E=null;return I&&(E=b.redoChanges(I,T),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E},k.prototype.$syncRev=function(){var b=this.$undoStack,T=b[b.length-1],R=T&&T[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},k.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=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},k.prototype.$prettyPrint=function(b){return b?c(b):c(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+c(this.$redoStack)},k}();m.prototype.hasUndo=m.prototype.canUndo,m.prototype.hasRedo=m.prototype.canRedo,m.prototype.isClean=m.prototype.isAtBookmark,m.prototype.markClean=m.prototype.bookmark;function y(k,b){for(var T=b;T--;){var R=k[T];if(R&&!R[0].ignore){for(;T<b-1;){var I=o(k[T],k[T+1]);k[T]=I[0],k[T+1]=I[1],T++}return!0}}}var v=e("./range").Range,h=v.comparePoints;v.comparePoints;function p(k){return{row:k.row,column:k.column}}function a(k){return{start:p(k.start),end:p(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).join(`
|
194
|
+
`);var b="";return k.action?(b=k.action=="insert"?"+":"-",b+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?b=k.value.map(s).join(`
|
195
|
+
`):b=s(k.value)),k.start&&(b+=s(k)),(k.id||k.rev)&&(b+=" ("+(k.id||k.rev)+")"),b}function s(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function l(k,b){var T=k.action=="insert",R=b.action=="insert";if(T&&R)if(h(b.start,k.end)>=0)g(b,k,-1);else if(h(b.start,k.start)<=0)g(k,b,1);else return null;else if(T&&!R)if(h(b.start,k.end)>=0)g(b,k,-1);else if(h(b.end,k.start)<=0)g(k,b,-1);else return null;else if(!T&&R)if(h(b.start,k.start)>=0)g(b,k,1);else if(h(b.start,k.start)<=0)g(k,b,1);else return null;else if(!T&&!R)if(h(b.start,k.start)>=0)g(b,k,1);else if(h(b.end,k.start)<=0)g(k,b,-1);else return null;return[b,k]}function o(k,b){for(var T=k.length;T--;)for(var R=0;R<b.length;R++)if(!l(k[T],b[R])){for(;T<k.length;){for(;R--;)l(b[R],k[T]);R=b.length,T++}return[k,b]}return k.selectionBefore=b.selectionBefore=k.selectionAfter=b.selectionAfter=null,[b,k]}function u(k,b){var T=k.action=="insert",R=b.action=="insert";if(T&&R)h(k.start,b.start)<0?g(b,k,1):g(k,b,1);else if(T&&!R)h(k.start,b.end)>=0?g(k,b,-1):(h(k.start,b.start)<=0||g(k,v.fromPoints(b.start,k.start),-1),g(b,k,1));else if(!T&&R)h(b.start,k.end)>=0?g(b,k,-1):(h(b.start,k.start)<=0||g(b,v.fromPoints(k.start,b.start),-1),g(k,b,1));else if(!T&&!R)if(h(b.start,k.end)>=0)g(b,k,-1);else if(h(b.end,k.start)<=0)g(k,b,-1);else{var I,E;return h(k.start,b.start)<0&&(I=k,k=x(k,b.start)),h(k.end,b.end)>0&&(E=x(k,b.end)),w(b.end,k.start,k.end,-1),E&&!I&&(k.lines=E.lines,k.start=E.start,k.end=E.end,E=k),[b,I,E].filter(Boolean)}return[b,k]}function g(k,b,T){w(k.start,b.start,b.end,T),w(k.end,b.start,b.end,T)}function w(k,b,T,R){k.row==(R==1?b:T).row&&(k.column+=R*(T.column-b.column)),k.row+=R*(T.row-b.row)}function x(k,b){var T=k.lines,R=k.end;k.end=p(b);var I=k.end.row-k.start.row,E=T.splice(I,T.length),N=I?b.column:b.column-k.start.column;T.push(E[0].substring(0,N)),E[0]=E[0].substr(N);var S={start:p(b),end:R,lines:E,action:k.action};return S}function M(k,b){b=a(b);for(var T=k.length;T--;){for(var R=k[T],I=0;I<R.length;I++){var E=R[I],N=u(E,b);b=N[0],N.length!=2&&(N[2]?(R.splice(I+1,1,N[1],N[2]),I++):N[1]||(R.splice(I,1),I--))}R.length||k.splice(T,1)}return k}function C(k,b){for(var T=0;T<b.length;T++)for(var R=b[T],I=0;I<R.length;I++)M(k,R[I])}r.UndoManager=m}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,f){var m=e("../range").Range,y=function(){function v(h,p){this.foldData=h,Array.isArray(p)?this.folds=p:p=this.folds=[p];var a=p[p.length-1];this.range=new m(p[0].start.row,p[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return v.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(p){p.start.row+=h,p.end.row+=h})},v.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(p,a){return-p.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},v.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},v.prototype.walk=function(h,p,a){var c=0,s=this.folds,l,o,u,g=!0;p==null&&(p=this.end.row,a=this.end.column);for(var w=0;w<s.length;w++){if(l=s[w],o=l.range.compareStart(p,a),o==-1){h(null,p,a,c,g);return}if(u=h(null,l.start.row,l.start.column,c,g),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;g=!l.sameRow,c=l.end.column}h(null,p,a,c,g)},v.prototype.getNextFoldTo=function(h,p){for(var a,c,s=0;s<this.folds.length;s++){if(a=this.folds[s],c=a.range.compareEnd(h,p),c==-1)return{fold:a,kind:"after"};if(c===0)return{fold:a,kind:"inside"}}return null},v.prototype.addRemoveChars=function(h,p,a){var c=this.getNextFoldTo(h,p),s,l;if(c){if(s=c.fold,c.kind=="inside"&&s.start.column!=p&&s.start.row!=h)window.console&&window.console.log(h,p,s);else if(s.start.row==h){l=this.folds;var o=l.indexOf(s);for(o===0&&(this.start.column+=a),o;o<l.length;o++){if(s=l[o],s.start.column+=a,!s.sameRow)return;s.end.column+=a}this.end.column+=a}}},v.prototype.split=function(h,p){var a=this.getNextFoldTo(h,p);if(!a||a.kind=="inside")return null;var c=a.fold,s=this.folds,l=this.foldData,o=s.indexOf(c),u=s[o-1];this.end.row=u.end.row,this.end.column=u.end.column,s=s.splice(o,s.length-o);var g=new v(l,s);return l.splice(l.indexOf(this)+1,0,g),g},v.prototype.merge=function(h){for(var p=h.folds,a=0;a<p.length;a++)this.addFold(p[a]);var c=this.foldData;c.splice(c.indexOf(h),1)},v.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(p){h.push(" "+p.toString())}),h.push("]"),h.join(`
|
196
|
+
`)},v.prototype.idxToPosition=function(h){for(var p=0,a=0;a<this.folds.length;a++){var c=this.folds[a];if(h-=c.start.column-p,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;p=c.end.column}return{row:this.end.row,column:this.end.column+h}},v}();r.FoldLine=y}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,f){var m=e("./range").Range,y=m.comparePoints,v=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(p,a,c){for(var s=this.ranges,l=c||0;l<s.length;l++){var o=s[l],u=y(p,o.end);if(!(u>0)){var g=y(p,o.start);return u===0?a&&g!==0?-l-2:l:g>0||g===0&&!a?l:-l-1}}return-l-1},h.prototype.add=function(p){var a=!p.isEmpty(),c=this.pointIndex(p.start,a);c<0&&(c=-c-1);var s=this.pointIndex(p.end,a,c);return s<0?s=-s-1:s++,this.ranges.splice(c,s-c,p)},h.prototype.addList=function(p){for(var a=[],c=p.length;c--;)a.push.apply(a,this.add(p[c]));return a},h.prototype.substractPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var p=[],a=this.ranges;a=a.sort(function(u,g){return y(u.start,g.start)});for(var c=a[0],s,l=1;l<a.length;l++){s=c,c=a[l];var o=y(s.end,c.start);o<0||o==0&&!s.isEmpty()&&!c.isEmpty()||(y(s.end,c.end)<0&&(s.end.row=c.end.row,s.end.column=c.end.column),a.splice(l,1),p.push(c),c=s,l--)}return this.ranges=a,p},h.prototype.contains=function(p,a){return this.pointIndex({row:p,column:a})>=0},h.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},h.prototype.rangeAtPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(p,a){var c=this.ranges;if(c[0].start.row>a||c[c.length-1].start.row<p)return[];var s=this.pointIndex({row:p,column:0});s<0&&(s=-s-1);var l=this.pointIndex({row:a,column:0},s);l<0&&(l=-l-1);for(var o=[],u=s;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(p){this.session&&this.detach(),this.session=p,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(p){for(var a=p.start,c=p.end,s=a.row,l=c.row,o=this.ranges,u=0,g=o.length;u<g;u++){var w=o[u];if(w.end.row>=s)break}if(p.action=="insert")for(var x=l-s,M=-a.column+c.column;u<g;u++){var w=o[u];if(w.start.row>s)break;if(w.start.row==s&&w.start.column>=a.column&&(w.start.column==a.column&&this.$bias<=0||(w.start.column+=M,w.start.row+=x)),w.end.row==s&&w.end.column>=a.column){if(w.end.column==a.column&&this.$bias<0)continue;w.end.column==a.column&&M>0&&u<g-1&&w.end.column>w.start.column&&w.end.column==o[u+1].start.column&&(w.end.column-=M),w.end.column+=M,w.end.row+=x}}else for(var x=s-l,M=a.column-c.column;u<g;u++){var w=o[u];if(w.start.row>l)break;w.end.row<l&&(s<w.end.row||s==w.end.row&&a.column<w.end.column)?(w.end.row=s,w.end.column=a.column):w.end.row==l?w.end.column<=c.column?(x||w.end.column>a.column)&&(w.end.column=a.column,w.end.row=a.row):(w.end.column+=M,w.end.row+=x):w.end.row>l&&(w.end.row+=x),w.start.row<l&&(s<w.start.row||s==w.start.row&&a.column<w.start.column)?(w.start.row=s,w.start.column=a.column):w.start.row==l?w.start.column<=c.column?(x||w.start.column>a.column)&&(w.start.column=a.column,w.start.row=a.row):(w.start.column+=M,w.start.row+=x):w.start.row>l&&(w.start.row+=x)}if(x!=0&&u<g)for(;u<g;u++){var w=o[u];w.start.row+=x,w.end.row+=x}},h}();v.prototype.comparePoints=y,r.RangeList=v}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,f){var m=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(u[w]=g[w])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../range_list").RangeList,v=function(s){m(l,s);function l(o,u){var g=s.call(this)||this;return g.foldLine=null,g.placeholder=u,g.range=o,g.start=o.start,g.end=o.end,g.sameRow=o.start.row==o.end.row,g.subFolds=g.ranges=[],g}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(g){u.subFolds.push(g.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){p(o,this.start);for(var u=o.start.row,g=o.start.column,w=0,x=-1;w<this.subFolds.length&&(x=this.subFolds[w].range.compare(u,g),x==1);w++);var M=this.subFolds[w],C=0;if(x==0){if(M.range.containsRange(o))return M.addSubFold(o);C=1}for(var u=o.range.end.row,g=o.range.end.column,k=w,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(u,g),x==1);k++);x==0&&k++;for(var b=this.subFolds.splice(w,k-w,o),T=x==0?b.length-1:b.length,R=C;R<T;R++)o.addSubFold(b[R]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(y);function h(s,l){s.row-=l.row,s.row==0&&(s.column-=l.column)}function p(s,l){h(s.start,l),h(s.end,l)}function a(s,l){s.row==0&&(s.column+=l.column),s.row+=l.row}function c(s,l){a(s.start,l),a(s.end,l)}r.Fold=v}),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,f){var m=e("../range").Range,y=e("./fold_line").FoldLine,v=e("./fold").Fold,h=e("../token_iterator").TokenIterator,p=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(c,s,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,g=0;g<u.length;g++){var w=u[g].range;if(w.contains(c,s)){if(l==1&&w.isEnd(c,s)&&!w.isEmpty()||l==-1&&w.isStart(c,s)&&!w.isEmpty())continue;return u[g]}}},this.getFoldsInRange=function(c){var s=c.start,l=c.end,o=this.$foldData,u=[];s.column+=1,l.column-=1;for(var g=0;g<o.length;g++){var w=o[g].range.compareRange(c);if(w!=2){if(w==-2)break;for(var x=o[g].folds,M=0;M<x.length;M++){var C=x[M];if(w=C.range.compareRange(c),w==-2)break;if(w!=2){if(w==42)break;u.push(C)}}}}return s.column-=1,l.column+=1,u},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var s=[];c.forEach(function(o){s=s.concat(this.getFoldsInRange(o))},this)}else var s=this.getFoldsInRange(c);return s},this.getAllFolds=function(){for(var c=[],s=this.$foldData,l=0;l<s.length;l++)for(var o=0;o<s[l].folds.length;o++)c.push(s[l].folds[o]);return c},this.getFoldStringAt=function(c,s,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var u={end:{column:0}},g,w,x=0;x<o.folds.length;x++){w=o.folds[x];var M=w.range.compareEnd(c,s);if(M==-1){g=this.getLine(w.start.row).substring(u.end.column,w.start.column);break}else if(M===0)return null;u=w}return g||(g=this.getLine(w.start.row).substring(u.end.column)),l==-1?g.substring(0,s-u.end.column):l==1?g.substring(s-u.end.column):g},this.getFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,s){for(var l=this.$foldData,o=s-c+1,u=0;u<l.length;u++){var g=l[u],w=g.end.row,x=g.start.row;if(w>=s){x<s&&(x>=c?o-=s-x:o=0);break}else w>=c&&(x>=c?o-=w-x:o-=w-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(s,l){return s.start.row-l.start.row}),c},this.addFold=function(c,s){var l=this.$foldData,o=!1,u;c instanceof v?u=c:(u=new v(s,c),u.collapseChildren=s.collapseChildren),this.$clipRangeToDocument(u.range);var g=u.start.row,w=u.start.column,x=u.end.row,M=u.end.column,C=this.getFoldAt(g,w,1),k=this.getFoldAt(x,M,-1);if(C&&k==C)return C.addSubFold(u);C&&!C.range.isStart(g,w)&&this.removeFold(C),k&&!k.range.isEnd(x,M)&&this.removeFold(k);var b=this.getFoldsInRange(u.range);b.length>0&&(this.removeFolds(b),u.collapseChildren||b.forEach(function(E){u.addSubFold(E)}));for(var T=0;T<l.length;T++){var R=l[T];if(x==R.start.row){R.addFold(u),o=!0;break}else if(g==R.end.row){if(R.addFold(u),o=!0,!u.sameRow){var I=l[T+1];if(I&&I.start.row==x){R.merge(I);break}}break}else if(x<=R.start.row)break}return o||(R=this.$addFoldLine(new y(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(c){c.forEach(function(s){this.addFold(s)},this)},this.removeFold=function(c){var s=c.foldLine,l=s.start.row,o=s.end.row,u=this.$foldData,g=s.folds;if(g.length==1)u.splice(u.indexOf(s),1);else if(s.range.isEnd(c.end.row,c.end.column))g.pop(),s.end.row=g[g.length-1].end.row,s.end.column=g[g.length-1].end.column;else if(s.range.isStart(c.start.row,c.start.column))g.shift(),s.start.row=g[0].start.row,s.start.column=g[0].start.column;else if(c.sameRow)g.splice(g.indexOf(c),1);else{var w=s.split(c.start.row,c.start.column);g=w.folds,g.shift(),w.start.row=g[0].start.row,w.start.column=g[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var s=[],l=0;l<c.length;l++)s.push(c[l]);s.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(s){c.restoreRange(s),this.addFold(s)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(c,s){var l,o;if(c==null)l=new m(0,0,this.getLength(),0),s==null&&(s=!0);else if(typeof c=="number")l=new m(c,0,c,this.getLine(c).length);else if("row"in c)l=m.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(g){o=o.concat(this.unfold(g))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&m.comparePoints(o[0].start,l.start)<0&&m.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(s!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(c,s){return!!this.getFoldLine(c,s)},this.getRowFoldEnd=function(c,s){var l=this.getFoldLine(c,s);return l?l.end.row:c},this.getRowFoldStart=function(c,s){var l=this.getFoldLine(c,s);return l?l.start.row:c},this.getFoldDisplayLine=function(c,s,l,o,u){o==null&&(o=c.start.row),u==null&&(u=0),s==null&&(s=c.end.row),l==null&&(l=this.getLine(s).length);var g=this.doc,w="";return c.walk(function(x,M,C,k){if(!(M<o)){if(M==o){if(C<u)return;k=Math.max(u,k)}x!=null?w+=x:w+=g.getLine(M).substring(k,C)}},s,l),w},this.getDisplayLine=function(c,s,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,s,l,o);var g;return g=this.doc.getLine(c),g.substring(o||0,s||g.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(s){var l=s.folds.map(function(o){return o.clone()});return new y(c,l)}),c},this.toggleFold=function(c){var s=this.selection,l=s.getRange(),o,u;if(l.isEmpty()){var g=l.start;if(o=this.getFoldAt(g.row,g.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(g))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:g.row,column:g.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(g.row,g.column)||l}else{var w=this.getFoldsInRange(l);if(c&&w.length){this.expandFolds(w);return}else w.length==1&&(o=w[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var x="...";if(!l.isMultiLine()){if(x=this.getTextRange(l),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,l)},this.getCommentFoldRange=function(c,s,l){var o=new h(this,c,s),u=o.getCurrentToken(),g=u&&u.type;if(u&&/^comment|string/.test(g)){g=g.match(/comment|string/)[0],g=="comment"&&(g+="|doc-start|\\.doc");var w=new RegExp(g),x=new m;if(l!=1){do u=o.stepBackward();while(u&&w.test(u.type));u=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,c,s);var M=this.getState(o.$row);if(l!=-1){var C=-1;do if(u=o.stepForward(),C==-1){var k=this.getState(o.$row);M.toString()!==k.toString()&&(C=o.$row)}else if(o.$row>C)break;while(u&&w.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(c,s,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){s=s||this.getLength(),c=c||0;for(var g=c;g<s;g++)if(u[g]==null&&(u[g]=this.getFoldWidget(g)),u[g]=="start"&&!(o&&!o(g))){var w=this.getFoldWidgetRange(g);w&&w.isMultiLine()&&w.end.row<=s&&w.start.row>=c&&(g=w.end.row,w.collapseChildren=l,this.addFold("...",w))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(s){for(var l=c.getTokens(s),o=0;o<l.length;o++){var u=l[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var s=this.$foldMode;this.$setFolding(null),this.$setFolding(s)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,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(c,s){var l=this.foldWidgets;if(!l||s&&l[c])return{};for(var o=c-1,u;o>=0;){var g=l[o];if(g==null&&(g=l[o]=this.getFoldWidget(o)),g=="start"){var w=this.getFoldWidgetRange(o);if(u||(u=w),w&&w.end.row>=c)break}o--}return{range:o!==-1&&w,firstRange:u}},this.onFoldWidgetClick=function(c,s){s instanceof p&&(s=s.domEvent);var l={children:s.shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=s.target||s.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,s){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,g=this.getFoldAt(c,u===-1?0:o.length,u);if(g)return s.children||s.all?this.removeFold(g):this.expandFold(g),g;var w=this.getFoldWidgetRange(c,!0);if(w&&!w.isMultiLine()&&(g=this.getFoldAt(w.start.row,w.start.column,1),g&&w.isEqual(g.range)))return this.removeFold(g),g;if(s.siblings){var x=this.getParentFoldRangeData(c);if(x.range)var M=x.range.start.row+1,C=x.range.end.row;this.foldAll(M,C,s.all?1e4:0)}else s.children?(C=w?w.end.row:this.getLength(),this.foldAll(c+1,C,s.all?1e4:0)):w&&(s.all&&(w.collapseChildren=1e4),this.addFold("...",w));return w}},this.toggleFoldWidget=function(c){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var l=this.$toggleFoldWidget(s,{});if(!l){var o=this.getParentFoldRangeData(s,!0);if(l=o.range||o.firstRange,l){s=l.start.row;var u=this.getFoldAt(s,this.getLine(s).length,1);u?this.removeFold(u):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var s=c.start.row,l=c.end.row-s;if(l===0)this.foldWidgets[s]=null;else if(c.action=="remove")this.foldWidgets.splice(s,l+1,null);else{var o=Array(l+1);o.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var s=c.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.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,f){var m=e("../token_iterator").TokenIterator,y=e("../range").Range;function v(){this.findMatchingBracket=function(h,p){if(h.column==0)return null;var a=p||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var c=a.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var p=this.getLine(h.row),a=!0,c,s=p.charAt(h.column-1),l=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(l||(s=p.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(/([\(\[\{])|([\)\]\}])/),a=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=y.fromPoints(h,o),a||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=y.fromPoints(o,h),a||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,p){var a=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,s=!p&&a.charAt(h.column-1),l=s&&s.match(c);if(l||(s=(p===void 0||p)&&a.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(c)),!l)return null;var o=new y(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var g=new y(u.row,u.column,u.row,u.column+1);return[o,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,p,a){var c=this.$brackets[h],s=1,l=new m(this,p.row,p.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=p.column-l.getCurrentTokenColumn()-2,g=o.value;;){for(;u>=0;){var w=g.charAt(u);if(w==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else w==h&&(s+=1);u-=1}do o=l.stepBackward();while(o&&!a.test(o.type));if(o==null)break;g=o.value,u=g.length-1}return null}},this.$findClosingBracket=function(h,p,a){var c=this.$brackets[h],s=1,l=new m(this,p.row,p.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=p.column-l.getCurrentTokenColumn();;){for(var g=o.value,w=g.length;u<w;){var x=g.charAt(u);if(x==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else x==h&&(s+=1);u+=1}do o=l.stepForward();while(o&&!a.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var p=new m(this,h.row,h.column),a=this.$findTagName(p);if(a){var c=p.stepBackward();return c.value==="<"?this.$findClosingTag(p,a):this.$findOpeningTag(p,a)}},this.$findTagName=function(h){var p=h.getCurrentToken(),a=!1,c=!1;if(p&&p.type.indexOf("tag-name")===-1)do c?p=h.stepBackward():p=h.stepForward(),p&&(p.value==="/>"?c=!0:p.type.indexOf("tag-name")!==-1&&(a=!0));while(p&&!a);return p},this.$findClosingTag=function(h,p){var a,c=p.value,s=p.value,l=0,o=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=h.stepForward();var u=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length),g=!1;do{if(a=p,a.type.indexOf("tag-close")!==-1&&!g){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(p=h.stepForward(),p){if(p.value===">"&&!g){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(p.type.indexOf("tag-name")!==-1){if(c=p.value,s===c){if(a.value==="<")l++;else if(a.value==="</"&&(l--,l<0)){h.stepBackward();var x=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);p=h.stepForward();var M=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=h.stepForward()),p&&p.value===">")var C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(s===c&&p.value==="/>"&&(l--,l<0))var x=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),M=x,C=M,w=new y(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(p&&l>=0);if(o&&w&&x&&C&&u&&M)return{openTag:new y(o.start.row,o.start.column,w.end.row,w.end.column),closeTag:new y(x.start.row,x.start.column,C.end.row,C.end.column),openTagName:u,closeTagName:M}},this.$findOpeningTag=function(h,p){var a=h.getCurrentToken(),c=p.value,s=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,g=new y(l,o,l,u);h.stepForward();var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=h.stepForward()),!(!p||p.value!==">")){var x=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(p=a,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+p.value.length,a=h.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(c===p.value)if(a.value==="<"){if(s++,s>0){var M=new y(l,o,l,u),C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do p=h.stepForward();while(p&&p.value!==">");var k=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&s--}else if(p.value==="/>"){for(var b=0,T=a;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){s--;break}else if(T.value==="<")break;T=h.stepBackward(),b++}for(var R=0;R<b;R++)h.stepForward()}}while(a&&s<=0);if(C&&k&&g&&x&&M&&w)return{openTag:new y(C.start.row,C.start.column,k.end.row,k.end.column),closeTag:new y(g.start.row,g.start.column,x.end.row,x.end.column),openTagName:M,closeTagName:w}}}}r.BracketMatch=v}),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,f){var m=e("./lib/oop"),y=e("./lib/lang"),v=e("./bidihandler").BidiHandler,h=e("./config"),p=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,s=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,g=e("./search_highlight").SearchHighlight,w=e("./undomanager").UndoManager,x=function(){function S(_,$){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"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new u(new c().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(O){L._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),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 v(this),h.resetOptions(this),this.setMode($),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=y.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!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",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new l(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,L=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>L&&(this.$docRowCache.splice(L,$),this.$screenRowCache.splice(L,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var L=0,O=_.length-1;L<=O;){var F=L+O>>1,H=_[F];if($>H)L=F+1;else if($<H)O=F-1;else return F}return L-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new w;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var L=new S(_.value);return _.folds.forEach(function(O){L.addFold("...",s.fromPoints(O.start,O.end))}),L.setAnnotations(_.annotations),L.setBreakpoints(_.breakpoints),L.setMode(_.mode),L.setScrollLeft(_.scrollLeft),L.setScrollTop(_.scrollTop),L.setUndoManager($),L.selection.fromJSON(_.selection),L},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var L=this.bgTokenizer.getTokens(_),O,F=0;if($==null){var H=L.length-1;F=this.getLine(_).length}else for(var H=0;H<L.length&&(F+=L[H].value.length,!(F>=$));H++);return O=L[H],O?(O.index=H,O.start=F-O.value.length,O):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=y.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?y.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,L,O){var F=this.$markerId++,H={range:_,type:L||"line",renderer:typeof L=="function"?L:null,clazz:$,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var L=this.$markerId++;return _.id=L,_.inFront=!!$,$?(this.$frontMarkers[L]=_,this._signal("changeFrontMarker")):(this.$backMarkers[L]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var L=$.inFront?this.$frontMarkers:this.$backMarkers;delete L[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,L,O){typeof $!="number"&&(L=$,$=_),L||(L="ace_step");var F=new s(_,0,$,1/0);return F.id=this.addMarker(F,L,"fullLine",O),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
198
|
+
`},S.prototype.getWordRange=function(_,$){var L=this.getLine(_),O=!1;if($>0&&(O=!!L.charAt($-1).match(this.tokenRe)),O||(O=!!L.charAt($).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(L.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var H=$;if(H>0){do H--;while(H>=0&&L.charAt(H).match(F));H++}for(var B=$;B<L.length&&L.charAt(B).match(F);)B++;return new s(_,H,_,B)},S.prototype.getAWordRange=function(_,$){for(var L=this.getWordRange(_,$),O=this.getLine(L.end.row);O.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var L=_,O=L.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!L){this.$onChangeMode(this.$modes[O]),$&&$();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return $&&$();this.$modes[O]&&!L?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(L),L||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var L=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:L,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){h.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),L=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],B=H?H.start.row:1/0,V=$.length,q=0;q<V;q++){if(q>B){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],B=H?H.start.row:1/0}L[q]==null&&(L[q]=this.$getStringScreenWidth($[q])[0]),L[q]>O&&(O=L[q])}this.screenWidth=O}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=_.length-1;L!=-1;L--){var O=_[L];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=0;L<_.length;L++){var O=_[L];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function L(V){return $?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<_.length;H++){var B=_[H];if(B.start){if(!O){L(B)?O=s.fromPoints(B.start,B.end):O=s.fromPoints(B.start,B.start);continue}L(B)?(F=B.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=B.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=B.start,O.compare(F.row,F.column)==-1&&(O=s.fromPoints(B.start,B.start)))}}return O},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,L){var O=this.getTextRange(_),F=this.getFoldsInRange(_),H=s.fromPoints($,$);if(!L){this.remove(_);var B=_.start.row-_.end.row,V=B?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),B&&H.start.row>=_.end.row&&(H.start.row+=B,H.end.row+=B)}if(H.end=this.insert(H.start,O),F.length){var q=_.start,X=H.start,B=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=B,re.end.row+=B,re}))}return H},S.prototype.indentRows=function(_,$,L){L=L.replace(/\t/g,this.getTabString());for(var O=_;O<=$;O++)this.doc.insertInLine({row:O,column:0},L)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),L=new s(0,0,0,0),O=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var H=this.getLine(F);L.start.row=F,L.end.row=F;for(var B=0;B<O&&H.charAt(B)==" ";++B);B<O&&H.charAt(B)==" "?(L.start.column=B,L.end.column=B+1):(L.start.column=0,L.end.column=B),this.remove(L)}},S.prototype.$moveLines=function(_,$,L){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),L<0){var O=this.getRowFoldStart(_+L);if(O<0)return 0;var F=O-_}else if(L>0){var O=this.getRowFoldEnd($+L);if(O>this.doc.getLength()-1)return 0;var F=O-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var H=new s(_,0,$,Number.MAX_VALUE),B=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=L==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,V),B.length&&this.addFolds(B),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var L=this.doc.getLength();_>=L?(_=L-1,$=this.doc.getLine(L-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var L=this.$wrapLimitRange;L.max<0&&(L={min:$,max:$});var O=this.$constrainWrapLimit(_,L.min,L.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,L){return $&&(_=Math.max($,_)),L&&(_=Math.min(L,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,L=_.action,O=_.start,F=_.end,H=O.row,B=F.row,V=B-H,q=null;if(this.$updating=!0,V!=0)if(L==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(H,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var re=this.getFoldLine(H);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}B=H}else{var J=Array(V);J.unshift(H,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(H),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(B,0,F.column-O.column))):me==-1&&(G.addRemoveChars(H,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),L==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,O.column,V)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(H,B):this.$updateRowLengthCache(H,B),q},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var L=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,B,V,q=_;for($=Math.min($,L.length-1);q<=$;)V=this.getFoldLine(q,V),V?(B=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,B.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=b}else J=this.$getDisplayTokens(L[G].substring(re,Z),B.length);B=B.concat(J)}).bind(this),V.end.row,L[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(B,H,O),q=V.end.row+1):(B=this.$getDisplayTokens(L[q]),F[q]=this.$computeWrapSplits(B,H,O),q++)},S.prototype.$computeWrapSplits=function(_,$,L){if(_.length==0)return[];var O=[],F=_.length,H=0,B=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=$<=Math.max(2*L,8)||q===!1?0:Math.floor($/2);function G(){var me=0;if(X===0)return me;if(q)for(var we=0;we<_.length;we++){var pe=_[we];if(pe==R)me+=1;else if(pe==I)me+=L;else{if(pe==E)continue;break}}return V&&q!==!1&&(me+=L),Math.min(me,X)}function Z(me){for(var we=me-H,pe=H;pe<me;pe++){var _e=_[pe];(_e===12||_e===2)&&(we-=1)}O.length||(re=G(),O.indent=re),B+=we,O.push(B),H=me}for(var re=0;F-H>$-re;){var J=H+$-re;if(_[J-1]>=R&&_[J]>=R){Z(J);continue}if(_[J]==k||_[J]==b){for(J;J!=H-1&&_[J]!=k;J--);if(J>H){Z(J);continue}for(J=H+$,J;J<_.length&&_[J]==b;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),H-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==T;)J--}else for(;J>ae&&_[J]<R;)J--;if(J>ae){Z(++J);continue}J=H+$,_[J]==C&&J--,Z(J-re)}return O},S.prototype.$getDisplayTokens=function(_,$){var L=[],O;$=$||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){O=this.getScreenTabSize(L.length+$),L.push(I);for(var B=1;B<O;B++)L.push(E)}else H==32?L.push(R):H>39&&H<48||H>57&&H<64?L.push(T):H>=4352&&N(H)?L.push(M,C):L.push(M)}return L},S.prototype.$getStringScreenWidth=function(_,$,L){if($==0)return[0,0];$==null&&($=1/0),L=L||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?L+=this.getScreenTabSize(L):O>=4352&&N(O)?L+=2:L+=1,!(L>$));F++);return[L,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),L=this.$wrapData[$.row];return L.length&&L[0]<$.column?L.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var L=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(L)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var L=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(L,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,L){if(_<0)return{row:0,column:0};var O,Z=0,F=0,H,G=0,B=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=_>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(B=this.getRowLength(Z),!(G+B>_||Z>=J));)G+=B,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+B<=_||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var we=0,pe=Math.floor(_-G);if(this.$useWrapMode){var _e=this.$wrapData[Z];_e&&(H=_e[pe],pe>0&&_e.length&&(we=_e.indent,F=_e[pe-1]||_e[_e.length-1],O=O.substring(F)))}return L!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&($=this.$bidiHandler.offsetToCol(L)),F+=this.$getStringScreenWidth(O,$-we)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var L=this.$clipPositionToDocument(_.row,_.column);else L=this.$clipPositionToDocument(_,$);_=L.row,$=L.column;var G=0,O=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var H,X=0,B=this.$docRowCache,V=this.$getRowCacheIndex(B,_),q=B.length;if(q&&V>=0)var X=B[V],G=this.$screenRowCache[V],Z=_>B[q-1];else var Z=!q;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<_;){if(X>=J){if(H=re.end.row+1,H>_)break;re=this.getNextFoldLine(H,re),J=re?re.start.row:1/0}else H=X+1;G+=this.getRowLength(X),X=H,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,_,$),O=re.start.row):(ae=this.getLine(_).substring(0,$),O=_);var me=0;if(this.$useWrapMode){var we=this.$wrapData[O];if(we){for(var pe=0;ae.length>=we[pe];)G++,pe++;ae=ae.substring(we[pe-1]||0,ae.length),me=pe>0?we.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,O=0,F=0,$=this.$foldData[F++],H=$?$.start.row:1/0;O<L;){var B=this.$wrapData[O];_+=B?B.length+1:1,O++,O>H&&(O=$.end.row+1,$=this.$foldData[F++],H=$?$.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)$=V[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,L,O){if(L===0)return[0,0];L||(L=1/0),O=O||0;var F,H;for(H=0;H<$.length&&(F=$.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>L));H++);return[O,H]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.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()},S}();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=N,m.implement(x.prototype,p);var M=1,C=2,k=3,b=4,T=9,R=10,I=11,E=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=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(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},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,f){var m=e("./lib/lang"),y=e("./lib/oop"),v=e("./range").Range,h=function(){function a(){this.$options={}}return a.prototype.set=function(c){return y.mixin(this.$options,c),this},a.prototype.getOptions=function(){return m.copyObject(this.$options)},a.prototype.setOptions=function(c){this.$options=c},a.prototype.find=function(c){var s=this.$options,l=this.$matchIterator(c,s);if(!l)return!1;var o=null;return l.forEach(function(u,g,w,x){return o=new v(u,g,w,x),g==x&&s.start&&s.start.start&&s.skipCurrent!=!1&&o.isEqual(s.start)?(o=null,!1):!0}),o},a.prototype.findAll=function(c){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var l=s.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),u=[],g=s.re;if(s.$isMultiLine){var w=g.length,x=o.length-w,M;e:for(var C=g.offset||0;C<=x;C++){for(var k=0;k<w;k++)if(o[C+k].search(g[k])==-1)continue e;var b=o[C],T=o[C+w-1],R=b.length-b.match(g[0])[0].length,I=T.match(g[w-1])[0].length;M&&M.end.row===C&&M.end.column>R||(u.push(M=new v(C,R,C+w-1,I)),w>2&&(C=C+w-2))}}else for(var E=0;E<o.length;E++)for(var N=m.getMatchOffsets(o[E],g),k=0;k<N.length;k++){var S=N[k];u.push(new v(E,S.offset,E,S.offset+S.length))}if(l){for(var _=l.start.column,$=l.end.column,E=0,k=u.length-1;E<k&&u[E].start.column<_&&u[E].start.row==0;)E++;for(var L=l.end.row-l.start.row;E<k&&u[k].end.column>$&&u[k].end.row==L;)k--;for(u=u.slice(E,k+1),E=0,k=u.length;E<k;E++)u[E].start.row+=l.start.row,u[E].end.row+=l.start.row}return u},a.prototype.replace=function(c,s){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return s;if(o){var u=o.exec(c);if(!u||u[0].length!=c.length)return null;if(l.regExp||(s=s.replace(/\$/g,"$$$$")),s=c.replace(o,s),l.preserveCase){s=s.split("");for(var g=Math.min(c.length,c.length);g--;){var w=c[g];w&&w.toLowerCase()!=w?s[g]=s[g].toUpperCase():s[g]=s[g].toLowerCase()}s=s.join("")}return s}},a.prototype.$assembleRegExp=function(c,s){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=m.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=p(l,c)),c.$isMultiLine=!s&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},a.prototype.$assembleMultilineRegExp=function(c,s){for(var l=c.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],s))}catch{return!1}return o},a.prototype.$matchIterator=function(c,s){var l=this.$assembleRegExp(s);if(!l)return!1;var o=s.backwards==!0,u=s.skipCurrent!=!1,g=l.unicode,w=s.range,x=s.start;x||(x=w?w[o?"end":"start"]:c.selection.getRange()),x.start&&(x=x[u!=o?"end":"start"]);var M=w?w.start.row:0,C=w?w.end.row:c.getLength()-1;if(o)var k=function(R){var I=x.row;if(!T(I,x.column,R)){for(I--;I>=M;I--)if(T(I,Number.MAX_VALUE,R))return;if(s.wrap!=!1){for(I=C,M=x.row;I>=M;I--)if(T(I,Number.MAX_VALUE,R))return}}};else var k=function(R){var I=x.row;if(!T(I,x.column,R)){for(I=I+1;I<=C;I++)if(T(I,0,R))return;if(s.wrap!=!1){for(I=M,C=x.row;I<=C;I++)if(T(I,0,R))return}}};if(s.$isMultiLine)var b=l.length,T=function(R,I,E){var N=o?R-b+1:R;if(!(N<0||N+b>c.getLength())){var S=c.getLine(N),_=S.search(l[0]);if(!(!o&&_<I||_===-1)){for(var $=1;$<b;$++)if(S=c.getLine(N+$),S.search(l[$])==-1)return;var L=S.match(l[b-1])[0].length;if(!(o&&L>I)&&E(N,_,N+b-1,L))return!0}}};else if(o)var T=function(R,I,E){var N=c.getLine(R),S=[],_,$=0;for(l.lastIndex=0;_=l.exec(N);){var L=_[0].length;if($=_.index,!L){if($>=N.length)break;l.lastIndex=$+=m.skipEmptyMatch(N,$,g)}if(_.index+L>I)break;S.push(_.index,L)}for(var O=S.length-1;O>=0;O-=2){var F=S[O-1],L=S[O];if(E(R,F,R,F+L))return!0}};else var T=function(R,I,E){var N=c.getLine(R),S,_;for(l.lastIndex=I;_=l.exec(N);){var $=_[0].length;if(S=_.index,E(R,S,R,S+$))return!0;if(!$&&(l.lastIndex=S+=m.skipEmptyMatch(N,S,g),S>=N.length))return!1}};return{forEach:k}},a}();function p(a,c){var s=m.supportsLookbehind();function l(w,x){x===void 0&&(x=!0);var M=s&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return M.test(w)||c.regExp?s&&c.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(a),u=o[0],g=o[o.length-1];return l(u)+a+l(g,!1)}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var m=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(u[w]=g[w])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../lib/keys"),v=e("../lib/useragent"),h=y.KEY_MODS,p=function(){function s(l,o){this.$init(l,o,!1)}return s.prototype.$init=function(l,o,u){this.platform=o||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},s.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},s.prototype.removeCommand=function(l,o){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var g=this.commandKeyBinding;for(var w in g){var x=g[w];if(x==l)delete g[w];else if(Array.isArray(x)){var M=x.indexOf(l);M!=-1&&(x.splice(M,1),x.length==1&&(g[w]=x[0]))}}},s.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(g){var w="";if(g.indexOf(" ")!=-1){var x=g.split(/\s+/);g=x.pop(),x.forEach(function(k){var b=this.parseKeys(k),T=h[b.hashId]+b.key;w+=(w?" ":"")+T,this._addCommandToBinding(w,"chainKeys")},this),w+=" "}var M=this.parseKeys(g),C=h[M.hashId]+M.key;this._addCommandToBinding(w+C,o,u)},this)}},s.prototype._addCommandToBinding=function(l,o,u){var g=this.commandKeyBinding,w;if(!o)delete g[l];else if(!g[l]||this.$singleCommand)g[l]=o;else{Array.isArray(g[l])?(w=g[l].indexOf(o))!=-1&&g[l].splice(w,1):g[l]=[g[l]],typeof u!="number"&&(u=a(o));var x=g[l];for(w=0;w<x.length;w++){var M=x[w],C=a(M);if(C>u)break}x.splice(w,0,o)}},s.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},s.prototype.removeCommands=function(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},s.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},s.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},s.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),u=o.pop(),g=y[u];if(y.FUNCTION_KEYS[g])u=y.FUNCTION_KEYS[g].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var w=0,x=o.length;x--;){var M=y.KEY_MODS[o[x]];if(M==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+l),!1;w|=M}return{key:u,hashId:w}},s.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},s.prototype.handleKeyboard=function(l,o,u,g){if(!(g<0)){var w=h[o]+u,x=this.commandKeyBinding[w];return l.$keyChain&&(l.$keyChain+=" "+w,x=this.commandKeyBinding[l.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||w,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-w.length-1):(o==-1||g>0)&&(l.$keyChain="")),{command:x})}},s.prototype.getStatusText=function(l,o){return o.$keyChain||""},s}();function a(s){return typeof s=="object"&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}var c=function(s){m(l,s);function l(o,u){var g=s.call(this,o,u)||this;return g.$singleCommand=!0,g}return l}(p);c.call=function(s,l,o){p.prototype.$init.call(s,l,o,!0)},p.call=function(s,l,o){p.prototype.$init.call(s,l,o,!1)},r.HashHandler=c,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,f){var m=this&&this.__extends||function(){var a=function(c,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},a(c,s)};return function(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");a(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),y=e("../lib/oop"),v=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,p=function(a){m(c,a);function c(s,l){var o=a.call(this,l,s)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return c.prototype.exec=function(s,l,o){if(Array.isArray(s)){for(var u=s.length;u--;)if(this.exec(s[u],l,o))return!0;return!1}if(typeof s=="string"&&(s=this.commands[s]),!this.canExecute(s,l))return!1;var g={editor:l,command:s,args:o};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.returnValue!==!1},c.prototype.canExecute=function(s,l){return typeof s=="string"&&(s=this.commands[s]),!(!s||l&&l.$readOnly&&!s.readOnly||this.$checkCommandState!=!1&&s.isAvailable&&!s.isAvailable(l))},c.prototype.toggleRecording=function(s){if(!this.$inReplay)return s&&s._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(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(s){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(s);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,s):this.exec(l[0],s,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(s){return s.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(v);y.implement(p.prototype,h),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,f){var m=e("../lib/lang"),y=e("../config"),v=e("../range").Range;function h(a,c){return{win:a,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){y.loadModule("ace/ext/settings_menu",function(c){c.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){y.loadModule("ace/ext/error_marker",function(c){c.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,c){typeof c=="number"&&!isNaN(c)&&a.gotoLine(c),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){y.loadModule("ace/ext/searchbox",function(c){c.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,c){a.navigateUp(c.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,c){a.navigateDown(c.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,c){a.navigateLeft(c.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,c){a.navigateRight(c.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 c=a.$copyWithEmptySelection&&a.selection.isEmpty(),s=c?a.selection.getLineRange():a.selection.getRange();a._emit("cut",s),s.isEmpty()||a.session.remove(s),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,c){a.$handlePaste(c)},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){y.loadModule("ace/ext/searchbox",function(c){c.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 c=a.selection.getRange();c.start.column=0,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var c=a.selection.getRange();c.end.column=Number.MAX_VALUE,a.session.remove(c)},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,c){a.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,c){a.insert(m.stringRepeat(c.text||"",c.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 c=a.selection.getRange();c.start.column=c.end.column=0,c.end.row++,a.selection.setRange(c,!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 c=a.selection.isBackwards(),s=c?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),l=c?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),o=a.session.doc.getLine(s.row).length,u=a.session.doc.getTextRange(a.selection.getRange()),g=u.replace(/\n\s*/," ").length,w=a.session.doc.getLine(s.row),x=s.row+1;x<=l.row+1;x++){var M=m.stringTrimLeft(m.stringTrimRight(a.session.doc.getLine(x)));M.length!==0&&(M=" "+M),w+=M}l.row+1<a.session.doc.getLength()-1&&(w+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new v(s.row,0,l.row+2,0),w),g>0?(a.selection.moveCursorTo(s.row,s.column),a.selection.selectTo(s.row,s.column+g)):(o=a.session.doc.getLine(s.row).length>o?o+1:o,a.selection.moveCursorTo(s.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var c=a.session.doc.getLength()-1,s=a.session.doc.getLine(c).length,l=a.selection.rangeList.ranges,o=[];l.length<1&&(l=[a.selection.getRange()]);for(var u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===s||o.push(new v(l[u].end.row,l[u].end.column,c,s))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new v(0,0,l[u].start.row,l[u].start.column)):o.push(new v(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[u].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var u=0;u<o.length;u++)a.selection.addRange(o[u],!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(`
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var c=a.getCursorPosition();a.selection.moveTo(c.row-1,Number.MAX_VALUE),a.insert(`
|
202
|
+
`),c.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 p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,r,f){var m=e("../lib/keys"),y=e("../mouse/default_gutter_handler").GutterTooltip,v=function(){function p(a){this.editor=a,this.gutterLayer=a.renderer.$gutterLayer,this.element=a.renderer.$gutter,this.lines=a.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new y(this.editor)}return p.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))},p.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))},p.prototype.$onGutterKeyDown=function(a){if(this.annotationTooltip.isOpen){a.preventDefault(),a.keyCode===m.escape&&this.annotationTooltip.hideTooltip();return}if(a.target===this.element){if(a.keyCode!=m.enter)return;a.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var s=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(s),o=this.$findNearestAnnotation(s);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-s)<Math.abs(l-s)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(a),setTimeout((function(){this.editor._signal("gutterkeydown",new h(a,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(a){if(a.keyCode===m.tab){a.preventDefault();return}if(a.keyCode===m.escape){a.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(a.keyCode===m.up){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(a.keyCode===m.down){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(a.keyCode===m.left){a.preventDefault(),this.$switchLane("annotation");return}if(a.keyCode===m.right){a.preventDefault(),this.$switchLane("fold");return}if(a.keyCode===m.enter||a.keyCode===m.space){switch(a.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),a),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var s=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=s.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getFoldWidget(a).style.display!=="none";return c&&s},p.prototype.$isAnnotationVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getAnnotation(a).style.display!=="none";return c&&s},p.prototype.$getFoldWidget=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[1]},p.prototype.$getAnnotation=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[2]},p.prototype.$findNearestFoldWidget=function(a){if(this.$isFoldWidgetVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isFoldWidgetVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(a+c))return a+c}return null},p.prototype.$findNearestAnnotation=function(a){if(this.$isAnnotationVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isAnnotationVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(a+c))return a+c}return null},p.prototype.$focusFoldWidget=function(a){if(a!=null){var c=this.$getFoldWidget(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},p.prototype.$focusAnnotation=function(a){if(a!=null){var c=this.$getAnnotation(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},p.prototype.$blurFoldWidget=function(a){var c=this.$getFoldWidget(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},p.prototype.$blurAnnotation=function(a){var c=this.$getAnnotation(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(a){switch(a){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var s=this.$findNearestFoldWidget(this.activeRowIndex);if(s==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(a){var c=this.lines.get(a);return c?c.row:null},p.prototype.$rowToRowIndex=function(a){for(var c=0;c<this.lines.getLength();c++){var s=this.lines.get(c);if(s.row==a)return c}return null},p}();r.GutterKeyboardHandler=v;var h=function(){function p(a,c){this.gutterKeyboardHandler=c,this.domEvent=a}return p.prototype.getKey=function(){return m.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.GutterKeyboardEvent=h}),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"],function(e,r,f){var m=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],L=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&L>=S.length&&(S=void 0),{value:S&&S[L++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/lang"),p=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,s=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,g=e("./range").Range,w=e("./lib/event_emitter").EventEmitter,x=e("./commands/command_manager").CommandManager,M=e("./commands/default_commands").commands,C=e("./config"),k=e("./token_iterator").TokenIterator,b=e("./keyboard/gutter_handler").GutterKeyboardHandler,T=e("./config").nls,R=e("./clipboard"),I=e("./lib/keys"),E=function(){function S(_,$,L){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new x(p.isMac?"mac":"win",M),typeof document=="object"&&(this.textInput=new a(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new s(this)),this.keyBinding=new l(this),this.$search=new u().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(F,H){H._$emitInputEvent.schedule(31)}),this.setSession($||L&&L.session||new o("")),C.resetOptions(this),L&&this.setOptions(L),C._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,L=$&&$.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,L=this.$mergeableCommands,O=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else O=O&&L.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var L=this;C.loadModule(["keybinding",_],function(O){L.$keybindingId==_&&L.keyBinding.setKeyboardHandler(O&&O.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){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 L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.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=_.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(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var L=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),H=$.getMatchingBracketRanges(L,F);if(!H){var B=new k($,L.row,L.column),V=B.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=$.getMatchingTags(L);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&$.$mode.getMatching&&(H=$.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(H)?H.length==1&&(X="ace_error_bracket"):H=[H],H.length==2&&(g.comparePoints(H[0].end,H[1].start)==0?H=[g.fromPoints(H[0].start,H[1].end)]:g.comparePoints(H[0].start,H[1].end)==0&&(H=[g.fromPoints(H[1].start,H[0].end)])),$.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,L=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,L,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var L=new g($.row,$.column,$.row,1/0);L.id=_.addMarker(L,"ace_active-line","screenLine"),_.$highlightLineMarker=L}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),O=this.getSelectionStyle();$.$selectionMarker=$.addMarker(L,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var L=$.start.column,O=$.end.column,F=_.getLine($.start.row),H=F.substring(L,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var B=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(L-1,O+1);if(B.test(V))return B}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),L=!1;if(!_&&this.$copyWithEmptySelection){L=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var H=O[F];F&&O[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+$)}}var B={text:_};return this._signal("copy",B),R.lineMode=L?B.text:!1,B.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(_,$){var L={text:_,event:$};this.commands.exec("paste",this,L)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,L=$===R.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(L)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),H=this.selection.rangeList.ranges,B=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||B)return this.commands.exec("insertstring",this,$);for(var V=H.length;V--;){var q=H[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var L=this.session,O=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var H=O.transformAction(L.getState(F.row),"insertion",this,L,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
|
203
|
+
`)==-1){var B=g.fromPoints(F,F);B.end.column+=_.length,this.session.remove(B)}}else{var B=this.getSelectionRange();F=this.session.remove(B),this.clearSelection()}if(_==`
|
204
|
+
`||_==`\r
|
205
|
+
`){var G=L.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=L.getState(F.row),G=L.getLine(F.row),Z=O.checkOutdent(X,G,_);if(L.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new g(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new g(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(_)){var re=O.getNextLineIndent(X,G.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,L,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),L=this.selection.isEmpty()?[new g(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",B=_.getTabString(),V=0;V<L.length;V++)for(var q=L[V].start.row,X=L[V].end.row,G=q;G<=X;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),H=$.getNextLineIndent(O,F,B));var Z=_.getLine(G),re=$.$getIndent(Z);if(H!==re){if(re.length>0){var J=new g(G,0,G,re.length);_.remove(J)}H.length>0&&_.insert({row:G,column:0},H)}$.autoOutdent(O,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var L=this.selection.getRange();L.start.column-=$.extendLeft,L.end.column+=$.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!_&&!L.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var L=this.selection.getRange();L.start.column-=$.restoreStart,L.end.column-=$.restoreEnd,this.selection.setRange(L)}},S.prototype.onCommandKey=function(_,$,L){return this.keyBinding.onCommandKey(_,$,L)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,O=L.getState($.start.row),F=L.getMode().transformAction(O,"deletion",this,L,$);if($.end.column===0){var H=L.getTextRange($);if(H[H.length-1]==`
|
206
|
+
`){var B=L.getLine($.end.row);/^\s+$/.test(B)&&($.end.column=B.length)}}F&&($=F)}this.session.remove($),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var L=this.session.getLine(_.row),O,F;$<L.length?(O=L.charAt($)+L.charAt($-1),F=new g(_.row,$-1,_.row,$+1)):(O=L.charAt($-1)+L.charAt($-2),F=new g(_.row,$-2,_.row,$)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}else if($.start.column<$.end.column){var O=_.getTextRange($);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}}var F=_.getLine($.start.row),H=$.start,B=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=B-V%B,X=h.stringRepeat(" ",q);else{for(var q=V%B;F[$.start.column-1]==" "&&q;)$.start.column--,q--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,L=[],O=_.first;O<=_.last;O++)L.push($.getLine(O));L.sort(function(B,V){return B.toLowerCase()<V.toLowerCase()?-1:B.toLowerCase()>V.toLowerCase()?1:0});for(var F=new g(0,0,0,0),O=_.first;O<=_.last;O++){var H=$.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,$.replace(F,L[O-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,L,_)},S.prototype.getNumberAt=function(_,$){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(_);L.lastIndex<$;){var F=L.exec(O);if(F.index<=$&&F.index+F[0].length>=$){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,L=this.selection.getCursor().column,O=new g($,L-1,$,L),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt($,L);if(H){var B=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-B,q=parseFloat(H.value);q*=Math.pow(10,V),B!==H.end&&L<B?_*=Math.pow(10,H.end-L-1):_*=Math.pow(10,H.end-L),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new g($,H.start,$,H.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(H.start+1,L+X.length-H.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=$-O-1;H<0&&(H=0);var B=0,V=0,q=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,_e){V=B+pe.length,H>=B&&H<=V&&(L=pe,q.selection.clearSelection(),q.moveCursorTo(_,B+O),q.selection.selectTo(_,V+O)),B=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=L.match(new RegExp("^\\s?_?("+h.escapeRegExp(re[J])+")\\s?$","i"));if(me){var we=L.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));we&&(G=L.replace(new RegExp(h.escapeRegExp(re[J]),"i"),function(pe){var _e=re[ae];return pe.toUpperCase()==pe?_e=_e.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(_e=_e.substr(0,0)+re[ae].charAt(0).toUpperCase()+_e.substr(1)),_e}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var L,O,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),B=$;B<0&&(B=0);var V=0,q=0,X;try{for(var G=m(H),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,B>=V&&B<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){L={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(L)throw L.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,L=_.getRange(),O=_.isBackwards();if(L.isEmpty()){var F=L.start.row;$.duplicateLines(F,F)}else{var H=O?L.start:L.end,B=$.insert(H,$.getTextRange(L));L.start=H,L.end=B,_.setSelectionRange(L,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,L){return this.session.moveText(_,$,L)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var L,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();L=this.$getSelectedRows(H),O=this.session.$moveLines(L.first,L.last,$?0:_),$&&_==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var B=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=B.length,G=0;G<X;G++){var Z=G;B[G].moveBy(V,0),L=this.$getSelectedRows(B[G]);for(var re=L.first,J=L.last;++G<X;){q&&B[G].moveBy(q,0);var ae=this.$getSelectedRows(B[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)B[Z].moveBy(V,0),Z++;$||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var L=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var H=L.scrollTop;L.scrollBy(0,F*O.lineHeight),$!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(H)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,L,O){this.renderer.scrollToLine(_,$,L,O)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var L=this.getCursorPosition(),O=new k(this.session,L.row,L.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var B=F||O.stepForward();if(B){var V,q=!1,X={},G=L.column-B.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(B.value.match(/[{}()\[\]]/g)){for(;G<B.value.length&&!q;G++)if(re[B.value[G]])switch(Z=re[B.value[G]]+"."+B.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),B.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else B.type.indexOf("tag-name")!==-1&&(isNaN(X[B.value])&&(X[B.value]=0),F.value==="<"&&H>1?X[B.value]++:F.value==="</"&&X[B.value]--,X[B.value]===-1&&(V="tag",q=!0));q||(F=B,H++,B=O.stepForward(),G=0)}while(B&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(L),J||(J=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!B||B.type.indexOf("tag-name")===-1)return;if(J=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(L.row,L.column)===0){var me=this.session.getMatchingTags(L);me&&(me.openTag.contains(L.row,L.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===L.row&&me.closeTag.start.column===L.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,L){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,L)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(_,$){$&&this.$search.set($);var L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,_)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=L.length-1;H>=0;--H)this.$tryReplace(L[H],_)&&O++;return this.selection.setSelectionRange(F),O},S.prototype.$tryReplace=function(_,$){var L=this.session.getTextRange(_);return $=this.$search.replace(L,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,L){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&y.mixin($,_);var O=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:O});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,L),F;$.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(L)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,L=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var H=this.on("changeSelection",function(){O=!0}),B=this.renderer.on("beforeRender",function(){O&&($=L.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&$&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var q=L.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?O=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=$=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",B))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",v.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,L){var O=this;C.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,$,L)})},S}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.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"],["&&","||"],["==","!="]],y.implement(E.prototype,w),C.defineOptions(E.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){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(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),v.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),v.addCssClass(this.container,"ace_hasPlaceholder");var $=v.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},$=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},L;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),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",T("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",T("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),L||(L=new b(this)),L.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",$.bind(this)),this.commands.removeCommand(_),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),L&&L.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},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",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=E}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,f){var m=e("../lib/dom"),y=function(){function v(h,p){this.element=h,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return v.prototype.moveContainer=function(h){m.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},v.prototype.pageChanged=function(h,p){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},v.prototype.computeLineTop=function(h,p,a){var c=p.firstRowScreen*p.lineHeight,s=Math.floor(c/this.canvasHeight),l=a.documentToScreenRow(h,0)*p.lineHeight;return l-s*this.canvasHeight},v.prototype.computeLineHeight=function(h,p,a){return p.lineHeight*a.getRowLineCount(h)},v.prototype.getLength=function(){return this.cells.length},v.prototype.get=function(h){return this.cells[h]},v.prototype.shift=function(){this.$cacheCell(this.cells.shift())},v.prototype.pop=function(){this.$cacheCell(this.cells.pop())},v.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var p=m.createFragment(this.element),a=0;a<h.length;a++)p.appendChild(h[a].element);this.element.appendChild(p)}else this.cells.push(h),this.element.appendChild(h.element)},v.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var p=m.createFragment(this.element),a=0;a<h.length;a++)p.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},v.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},v.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},v.prototype.createCell=function(h,p,a,c){var s=this.cellCache.pop();if(!s){var l=m.createElement("div");c&&c(l),this.element.appendChild(l),s={element:l,text:"",row:h}}return s.row=h,s},v}();r.Lines=y}),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,f){var m=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,p=e("./lines").Lines,a=e("../config").nls,c=function(){function l(o){this.element=m.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var g=o[u],w=g.row,x=this.$annotations[w];x||(x=this.$annotations[w]={text:[],type:[],displayText:[]});var M=g.text,C=g.text,k=g.type;M=M?v.escapeHTML(M):g.html||"",C=C||g.html||"",x.text.indexOf(M)===-1&&(x.text.push(M),x.type.push(k),x.displayText.push(C));var b=g.className;b?x.className=b:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,g=o.end.row-u;if(g!==0)if(o.action=="remove")this.$annotations.splice(u,g+1,null);else{var w=new Array(g+1);w.unshift(u,1),this.$annotations.splice.apply(this.$annotations,w)}}},l.prototype.update=function(o){this.config=o;var u=this.session,g=o.firstRow,w=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=w,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=u.getNextFoldLine(g),M=x?x.start.row:1/0,C=null,k=-1,b=g;;){if(b>M&&(b=x.end.row+1,x=u.getNextFoldLine(b,x),M=x?x.start.row:1/0),b>w){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}C=this.$lines.get(++k),C?C.row=b:(C=this.$lines.createCell(b,o,this.session,s),this.$lines.push(C)),this.$renderCell(C,o,x,b),b++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,g=u.gutterRenderer||this.$renderer,w=u.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(x=u.getLength()+w-1);var M=g?g.getWidth(u,x,o):x.toString().length*o.characterWidth,C=this.$padding||this.$computePadding();M+=C.left+C.right,M!==this.gutterWidth&&!isNaN(M)&&(this.gutterWidth=M,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",M))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var g=0;g<u.length;g++){var w=u[g];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(g>0&&x&&x.start.row==u[g-1].row)w=u[g-1];else break}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=g,!u||w<o.firstRow)return this.update(o);if(g<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(w>g)for(var x=this.session.getFoldedRowCount(g+1,w);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),g>w&&this.$lines.push(this.$renderLines(o,w+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,g){for(var w=[],x=u,M=this.session.getNextFoldLine(x),C=M?M.start.row:1/0;x>C&&(x=M.end.row+1,M=this.session.getNextFoldLine(x,M),C=M?M.start.row:1/0),!(x>g);){var k=this.$lines.createCell(x,o,this.session,s);this.$renderCell(k,o,M,x),w.push(k),x++}return w},l.prototype.$renderCell=function(o,u,g,w){var x=o.element,M=this.session,C=x.childNodes[0],k=x.childNodes[1],b=x.childNodes[2],T=b.firstChild,R=M.$firstLineNumber,I=M.$breakpoints,E=M.$decorations,N=M.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&M.foldWidgets,_=g?g.start.row:Number.MAX_VALUE,$=u.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(M,w):w+R).toString();if(this.$highlightGutterLine&&(w==this.$cursorRow||g&&w<this.$cursorRow&&w>=_&&this.$cursorRow<=g.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[w]&&(L+=I[w]),E[w]&&(L+=E[w]),this.$annotations[w]&&w!==_&&(L+=this.$annotations[w].className),S){var H=S[w];H==null&&(H=S[w]=M.getFoldWidget(w))}if(H){var B="ace_fold-widget ace_"+H,V=H=="start"&&w==_&&w<g.end.row;if(V){B+=" ace_closed";for(var q="",X=!1,G=w+1;G<=g.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}L+=q}else B+=" ace_open";k.className!=B&&(k.className=B),m.setStyle(k.style,"height",$),m.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=M.getFoldWidgetRange(w);Z?k.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):g?k.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[g.start.row+1,g.end.row+1])):k.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[w+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else k&&(m.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",T.className=O,T.className+=q,m.setStyle(T.style,"height",$),m.setStyle(b.style,"display","block"),m.setStyle(b.style,"height",$);var re;switch(q){case" ace_error_fold":re=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[w]){b.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[w].className:x.classList.add(this.$annotations[w].className.replace(" ","")),m.setStyle(T.style,"height",$),m.setStyle(b.style,"display","block"),m.setStyle(b.style,"height",$);var re;switch(this.$annotations[w].className){case" ace_error":re=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else m.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return F!==C.data&&(C.data=F),x.className!=L&&(x.className=L),m.setStyle(o.element.style,"height",this.$lines.computeLineHeight(w,u,M)+"px"),m.setStyle(o.element.style,"top",this.$lines.computeLineTop(w,u,M)+"px"),o.text=F,b.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?m.addCssClass(this.element,"ace_folding-enabled"):m.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=m.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),g=this.element.getBoundingClientRect();if(o.x<u.left+g.left)return"markers";if(this.$showFoldWidgets&&o.x>g.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,y.implement(c.prototype,h);function s(l){var o=document.createTextNode("");l.appendChild(o);var u=m.createElement("span");l.appendChild(u);var g=m.createElement("span");l.appendChild(g);var w=m.createElement("span");return g.appendChild(w),l}r.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,f){var m=e("../range").Range,y=e("../lib/dom"),v=function(){function p(a){this.element=y.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return p.prototype.setPadding=function(a){this.$padding=a},p.prototype.setSession=function(a){this.session=a},p.prototype.setMarkers=function(a){this.markers=a},p.prototype.elt=function(a,c){var s=this.i!=-1&&this.element.childNodes[this.i];s?this.i++:(s=document.createElement("div"),this.element.appendChild(s),this.i=-1),s.style.cssText=c,s.className=a},p.prototype.update=function(a){if(a){this.config=a,this.i=0;var c;for(var s in this.markers){var l=this.markers[s];if(!l.range){l.update(c,this,this.session,a);continue}var o=l.range.clipRows(a.firstRow,a.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var u=this.$getTop(o.start.row,a),g=this.$padding+o.start.column*a.characterWidth;l.renderer(c,o,g,u,a)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,a):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,a):this.drawMultiLineMarker(c,o,l.clazz,a):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(a,c){return(a-c.firstRowScreen)*c.lineHeight},p.prototype.drawTextMarker=function(a,c,s,l,o){for(var u=this.session,g=c.start.row,w=c.end.row,x=g,M=0,C=0,k=u.getScreenLastRowColumn(x),b=new m(x,c.start.column,x,C);x<=w;x++)b.start.row=b.end.row=x,b.start.column=x==g?c.start.column:u.getRowWrapIndent(x),b.end.column=k,M=C,C=k,k=x+1<w?u.getScreenLastRowColumn(x+1):x==w?0:c.end.column,this.drawSingleLineMarker(a,b,s+(x==g?" ace_start":"")+" ace_br"+h(x==g||x==g+1&&c.start.column,M<C,C>k,x==w),l,x==w?0:1,o)},p.prototype.drawMultiLineMarker=function(a,c,s,l,o){var u=this.$padding,g=l.lineHeight,w=this.$getTop(c.start.row,l),x=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var M=c.clone();M.end.row=M.start.row,M.end.column=this.session.getLine(M.start.row).length,this.drawBidiSingleLineMarker(a,M,s+" ace_br1 ace_start",l,null,o)}else this.elt(s+" ace_br1 ace_start","height:"+g+"px;right:"+u+"px;top:"+w+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var M=c.clone();M.start.row=M.end.row,M.start.column=0,this.drawBidiSingleLineMarker(a,M,s+" ace_br12",l,null,o)}else{w=this.$getTop(c.end.row,l);var C=c.end.column*l.characterWidth;this.elt(s+" ace_br12","height:"+g+"px;width:"+C+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}if(g=(c.end.row-c.start.row-1)*l.lineHeight,!(g<=0)){w=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(s+(k?" ace_br"+k:""),"height:"+g+"px;right:"+u+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}},p.prototype.drawSingleLineMarker=function(a,c,s,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(a,c,s,l,o,u);var g=l.lineHeight,w=(c.end.column+(o||0)-c.start.column)*l.characterWidth,x=this.$getTop(c.start.row,l),M=this.$padding+c.start.column*l.characterWidth;this.elt(s,"height:"+g+"px;width:"+w+"px;top:"+x+"px;left:"+M+"px;"+(u||""))},p.prototype.drawBidiSingleLineMarker=function(a,c,s,l,o,u){var g=l.lineHeight,w=this.$getTop(c.start.row,l),x=this.$padding,M=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);M.forEach(function(C){this.elt(s,"height:"+g+"px;width:"+(C.width+(o||0))+"px;top:"+w+"px;left:"+(x+C.left)+"px;"+(u||""))},this)},p.prototype.drawFullLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),g=l.lineHeight;c.start.row!=c.end.row&&(g+=this.$getTop(c.end.row,l)-u),this.elt(s,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},p.prototype.drawScreenLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),g=l.lineHeight;this.elt(s,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},p}();v.prototype.$padding=0;function h(p,a,c,s){return(p?1:0)|(a?2:0)|(c?4:0)|(s?8:0)}r.Marker=v}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,f){var m=new Set(["text","rparen","lparen"]);r.isTextToken=function(y){return m.has(y)}}),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,f){var m=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("./lines").Lines,p=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,c=e("./text_util").isTextToken,s=function(){function l(o){this.dom=y,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",g=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],g=1;g<o+1;g++)if(this.showTabs){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_tab",w.textContent=v.stringRepeat(this.TAB_CHAR,g),u.push(w)}else u.push(this.dom.createTextNode(v.stringRepeat(" ",g),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",M=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?v.stringRepeat(this.SPACE_CHAR,this.tabSize):v.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?v.stringRepeat(this.TAB_CHAR,this.tabSize):C,w=this.dom.createElement("span");w.className=x+M,w.textContent=C,this.$tabStrings[" "]=w;var w=this.dom.createElement("span");w.className=x+k,w.textContent=b,this.$tabStrings[" "]=w}},l.prototype.updateLines=function(o,u,g){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var w=Math.max(u,o.firstRow),x=Math.min(g,o.lastRow),M=this.element.childNodes,C=0,k=o.firstRow;k<w;k++){var b=this.session.getFoldLine(k);if(b)if(b.containsRow(w)){w=b.start.row;break}else k=b.end.row;C++}for(var T=!1,k=w,b=this.session.getNextFoldLine(k),R=b?b.start.row:1/0;k>R&&(k=b.end.row+1,b=this.session.getNextFoldLine(k,b),R=b?b.start.row:1/0),!(k>x);){var I=M[C++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==R?b:!1),T&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var E=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=E&&(T=!0,I.style.height=E)}k++}if(T)for(;C<this.$lines.cells.length;){var N=this.$lines.cells[C++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=o.lastRow,w=u?u.lastRow:-1;if(!u||w<o.firstRow)return this.update(o);if(g<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,u,g){for(var w=[],x=u,M=this.session.getNextFoldLine(x),C=M?M.start.row:1/0;x>C&&(x=M.end.row+1,M=this.session.getNextFoldLine(x,M),C=M?M.start.row:1/0),!(x>g);){var k=this.$lines.createCell(x,o,this.session),b=k.element;this.dom.removeChildren(b),y.setStyle(b.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),y.setStyle(b.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(b,x,x==C?M:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",w.push(k),x++}return w},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,g=o.lastRow,w=this.$lines;w.getLength();)w.pop();w.push(this.$renderLinesFragment(o,u,g))},l.prototype.$renderToken=function(o,u,g,w){for(var x=this,M=/(\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,C=this.dom.createFragment(this.element),k,b=0;k=M.exec(w);){var T=k[1],R=k[2],I=k[3],E=k[4],N=k[5];if(!(!x.showSpaces&&R)){var S=b!=k.index?w.slice(b,k.index):"";if(b=k.index+k[0].length,S&&C.appendChild(this.dom.createTextNode(S,this.element)),T){var _=x.session.getScreenTabSize(u+k.index);C.appendChild(x.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(R)if(x.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=v.stringRepeat(x.SPACE_CHAR,R.length),C.appendChild($)}else C.appendChild(this.dom.createTextNode(R,this.element));else if(I){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=v.stringRepeat(x.SPACE_CHAR,I.length),C.appendChild($)}else if(E){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=x.showSpaces?x.SPACE_CHAR:E,C.appendChild($)}else if(N){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,C.appendChild($)}}}if(C.appendChild(this.dom.createTextNode(b?w.slice(b):w,this.element)),c(g.type))o.appendChild(C);else{var L="ace_"+g.type.replace(/\./g," ace_"),$=this.dom.createElement("span");g.type=="fold"&&($.style.width=g.value.length*this.config.characterWidth+"px",$.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),$.className=L,$.appendChild(C),o.appendChild($)}return u+w.length},l.prototype.renderIndentGuide=function(o,u,g){var w=u.search(this.$indentGuideRe);if(w<=0||w>=g)return u;if(u[0]==" "){w-=w%this.tabSize;for(var x=w/this.tabSize,M=0;M<x;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}else if(u[0]==" "){for(var M=0;M<w;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),g=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,w=Math.floor(g/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:w,start:u.row};var x=this.session.$bracketHighlight;if(x){for(var M=this.session.$bracketHighlight.ranges,C=0;C<M.length;C++)if(u.row!==M[C].start.row){this.$highlightIndentGuideMarker.end=M[C].start.row,u.row>M[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=u.row+1;C<o.length;C++){var k=o[C],b=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=C,b<=g))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var g=o[u],w=g.element.childNodes;if(w.length>0){for(var x=0;x<w.length;x++)if(w[x].classList&&w[x].classList.contains("ace_indent-guide-active")){w[x].classList.remove("ace_indent-guide-active");break}}}},l.prototype.$setIndentGuideActive=function(o,u){var g=this.session.doc.getLine(o.row);if(g!==""){var w=o.element.childNodes;if(w){var x=w[u-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var g=0;g<o.length;g++){var w=o[g];if(this.$highlightIndentGuideMarker.end&&w.row>=this.$highlightIndentGuideMarker.start+1){if(w.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}else for(var g=o.length-1;g>=0;g--){var w=o[g];if(this.$highlightIndentGuideMarker.end&&w.row<this.$highlightIndentGuideMarker.start){if(w.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,g){var w=0,x=0,M=g[0],C=0,k=this.$createLineElement();o.appendChild(k);for(var b=0;b<u.length;b++){var T=u[b],R=T.value;if(b==0&&this.displayIndentGuides){if(w=R.length,R=this.renderIndentGuide(k,R,M),!R)continue;w-=R.length}if(w+R.length<M)C=this.$renderToken(k,C,T,R),w+=R.length;else{for(;w+R.length>=M;)C=this.$renderToken(k,C,T,R.substring(0,M-w)),R=R.substring(M-w),w=M,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(v.stringRepeat(" ",g.indent),this.element)),x++,C=0,M=g[x]||Number.MAX_VALUE;R.length!=0&&(w+=R.length,C=this.$renderToken(k,C,T,R))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,C,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var g=0,w=0;w<u.length;w++){var x=u[w],M=x.value;if(!(w==0&&this.displayIndentGuides&&(M=this.renderIndentGuide(o,M),!M))){if(g+M.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,g,x,M);g=this.$renderToken(o,g,x,M)}}},l.prototype.$renderOverflowMessage=function(o,u,g,w,x){g&&this.$renderToken(o,u,g,w.slice(0,this.MAX_LINE_LENGTH-u));var M=this.dom.createElement("span");M.className="ace_inline_button ace_keyword ace_toggle_wrap",M.textContent=x?"<hide>":"<click to see more...>",o.appendChild(M)},l.prototype.$renderLine=function(o,u,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(u)),g)var w=this.$getFoldLineTokens(u,g);else var w=this.session.getTokens(u);var x=o;if(w.length){var M=this.session.getRowSplitData(u);if(M&&M.length){this.$renderWrappedLine(o,w,M);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,w)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){g&&(u=g.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(C)}},l.prototype.$getFoldLineTokens=function(o,u){var g=this.session,w=[];function x(C,k,b){for(var T=0,R=0;R+C[T].value.length<k;)if(R+=C[T].value.length,T++,T==C.length)return;if(R!=k){var I=C[T].value.substring(k-R);I.length>b-k&&(I=I.substring(0,b-k)),w.push({type:C[T].type,value:I}),R=k+I.length,T+=1}for(;R<b&&T<C.length;){var I=C[T].value;I.length+R>b?w.push({type:C[T].type,value:I.substring(0,b-R)}):w.push(C[T]),R+=I.length,T+=1}}var M=g.getTokens(o);return u.walk(function(C,k,b,T,R){C!=null?w.push({type:"fold",value:C}):(R&&(M=g.getTokens(k)),M.length&&x(M,T,b))},u.end.row,this.session.getLine(u.end.row).length),w},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();s.prototype.EOF_CHAR="¶",s.prototype.EOL_CHAR_LF="¬",s.prototype.EOL_CHAR_CRLF="¤",s.prototype.EOL_CHAR=s.prototype.EOL_CHAR_LF,s.prototype.TAB_CHAR="—",s.prototype.SPACE_CHAR="·",s.prototype.$padding=0,s.prototype.MAX_LINE_LENGTH=1e4,s.prototype.showInvisibles=!1,s.prototype.showSpaces=!1,s.prototype.showTabs=!1,s.prototype.showEOL=!1,s.prototype.displayIndentGuides=!0,s.prototype.$highlightIndentGuides=!0,s.prototype.$tabStrings=[],s.prototype.destroy={},s.prototype.onChangeTabSize=s.prototype.$computeTabString,m.implement(s.prototype,p),r.Text=s}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,f){var m=e("../lib/dom"),y=function(){function v(h){this.element=m.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(),m.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return v.prototype.$updateOpacity=function(h){for(var p=this.cursors,a=p.length;a--;)m.setStyle(p[a].style,"opacity",h?"":"0")},v.prototype.$startCssAnimation=function(){for(var h=this.cursors,p=h.length;p--;)h[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&m.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},v.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,m.removeCssClass(this.element,"ace_animate-blinking")},v.prototype.setPadding=function(h){this.$padding=h},v.prototype.setSession=function(h){this.session=h},v.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},v.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},v.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,m.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},v.prototype.addCursor=function(){var h=m.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},v.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},v.prototype.hideCursor=function(){this.isVisible=!1,m.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.showCursor=function(){this.isVisible=!0,m.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,m.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&&m.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),m.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),p()},this.blinkInterval),p()}},v.prototype.getPixelPosition=function(h,p){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),s=(a.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:s}},v.prototype.isCursorInView=function(h,p){return h.top>=0&&h.top<p.maxHeight},v.prototype.update=function(h){this.config=h;var p=this.session.$selectionMarkers,a=0,c=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var a=0,s=p.length;a<s;a++){var l=this.getPixelPosition(p[a].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&a>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,p[a],this.session):this.isCursorInView(l,h)?(m.setStyle(u,"display","block"),m.translate(o,l.left,l.top),m.setStyle(u,"width",Math.round(h.characterWidth)+"px"),m.setStyle(u,"height",h.lineHeight+"px")):m.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=l,this.restartTimer()},v.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?m.addCssClass(this.element,"ace_overwrite-cursors"):m.removeCssClass(this.element,"ace_overwrite-cursors"))},v.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},v}();y.prototype.$padding=0,y.prototype.drawCursor=null,r.Cursor=y}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var m=this&&this.__extends||function(){var o=function(u,g){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(w[M]=x[M])},o(u,g)};return function(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");o(u,g);function w(){this.constructor=u}u.prototype=g===null?Object.create(g):(w.prototype=g.prototype,new w)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),p=e("./lib/event_emitter").EventEmitter,a=32768,c=function(){function o(u,g){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.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 o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();y.implement(c.prototype,p);var s=function(o){m(u,o);function u(g,w){var x=o.call(this,g,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,w.$scrollbarWidth=x.width=v.scrollbarWidth(g.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(g){this.element.style.height=g+"px"},u.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>a?(this.coeff=a/g,g=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},u.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},u}(c);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var l=function(o){m(u,o);function u(g,w){var x=o.call(this,g,"-h")||this;return x.scrollLeft=0,x.height=w.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(g){this.element.style.width=g+"px"},u.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},u}(c);r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=l,r.VScrollBar=s,r.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var m=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(g[x]=w[x])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),p=e("./lib/event_emitter").EventEmitter;v.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
209
|
+
position: absolute;
|
210
|
+
background: rgba(128, 128, 128, 0.6);
|
211
|
+
-moz-box-sizing: border-box;
|
212
|
+
box-sizing: border-box;
|
213
|
+
border: 1px solid #bbb;
|
214
|
+
border-radius: 2px;
|
215
|
+
z-index: 8;
|
216
|
+
}
|
217
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
218
|
+
position: absolute;
|
219
|
+
z-index: 6;
|
220
|
+
background: none;
|
221
|
+
overflow: hidden!important;
|
222
|
+
}
|
223
|
+
.ace_editor>.ace_sb-v {
|
224
|
+
z-index: 6;
|
225
|
+
right: 0;
|
226
|
+
top: 0;
|
227
|
+
width: 12px;
|
228
|
+
}
|
229
|
+
.ace_editor>.ace_sb-v div {
|
230
|
+
z-index: 8;
|
231
|
+
right: 0;
|
232
|
+
width: 100%;
|
233
|
+
}
|
234
|
+
.ace_editor>.ace_sb-h {
|
235
|
+
bottom: 0;
|
236
|
+
left: 0;
|
237
|
+
height: 12px;
|
238
|
+
}
|
239
|
+
.ace_editor>.ace_sb-h div {
|
240
|
+
bottom: 0;
|
241
|
+
height: 100%;
|
242
|
+
}
|
243
|
+
.ace_editor>.ace_sb_grabbed {
|
244
|
+
z-index: 8;
|
245
|
+
background: #000;
|
246
|
+
}`,"ace_scrollbar.css",!1);var a=function(){function l(o,u){this.element=v.createElement("div"),this.element.className="ace_sb"+u,this.inner=v.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();y.implement(a.prototype,p);var c=function(l){m(o,l);function o(u,g){var w=l.call(this,u,"-v")||this;return w.scrollTop=0,w.scrollHeight=0,w.parent=u,w.width=w.VScrollWidth,w.renderer=g,w.inner.style.width=w.element.style.width=(w.width||15)+"px",w.$minWidth=0,w}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var w=this,x=g.clientY,M=function(E){x=E.clientY},C=function(){clearInterval(R)},k=g.clientY,b=this.thumbTop,T=function(){if(x!==void 0){var E=w.scrollTopFromThumbTop(b+x-k);E!==w.scrollTop&&w._emit("scroll",{data:E})}};h.capture(this.inner,M,C);var R=setInterval(T,20);return h.preventDefault(g)}var I=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var g=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,g){this.pageHeight===u&&!g||(this.pageHeight=u,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})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(a);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var s=function(l){m(o,l);function o(u,g){var w=l.call(this,u,"-h")||this;return w.scrollLeft=0,w.scrollWidth=0,w.height=w.HScrollHeight,w.inner.style.height=w.element.style.height=(w.height||12)+"px",w.renderer=g,w}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var w=this,x=g.clientX,M=function(E){x=E.clientX},C=function(){clearInterval(R)},k=g.clientX,b=this.thumbLeft,T=function(){if(x!==void 0){var E=w.scrollLeftFromThumbLeft(b+x-k);E!==w.scrollLeft&&w._emit("scroll",{data:E})}};h.capture(this.inner,M,C);var R=setInterval(T,20);return h.preventDefault(g)}var I=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var g=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,g){this.pageWidth===u&&!g||(this.pageWidth=u,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})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(a);s.prototype.setInnerWidth=s.prototype.setScrollWidth,r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=s,r.VScrollBar=c,r.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,f){var m=e("./lib/event"),y=function(){function v(h,p){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var a=this;this._flush=function(c){a.pending=!1;var s=a.changes;if(s&&(m.blockIdle(100),a.changes=0,a.onRender(s)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return v.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(m.nextFrame(this._flush),this.pending=!0)},v.prototype.clear=function(h){var p=this.changes;return this.changes=0,p},v}();r.RenderLoop=y}),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,f){var m=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("../lib/event"),p=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=512,s=typeof ResizeObserver=="function",l=200,o=function(){function u(g){this.el=y.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=y.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=y.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=v.stringRepeat("X",c),this.$characterSize={width:0,height:0},s?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(g,w){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",p.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=w?"hidden":"visible"},u.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var w=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=w&&w.width===g.width&&w.height===g.height,this._emit("changeCharacterSize",{data:g})}},u.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(w){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=h.onIdle(function w(){g.checkForSizeChanges(),h.onIdle(w,500)},500)},u.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(g){var w={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/c};return w.width===0||w.height===0?null:w},u.prototype.$measureCharWidth=function(g){this.$main.textContent=v.stringRepeat(g,c);var w=this.$main.getBoundingClientRect();return w.width/c},u.prototype.getCharacterWidth=function(g){var w=this.charSizes[g];return w===void 0&&(w=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),w},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(Number(window.getComputedStyle(g).zoom)||1)*this.$getZoom(g.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var g=function(w,x){return["div",{style:"position: absolute;top:"+w+"px;left:"+x+"px;"}]};this.els=y.buildDom([g(0,0),g(l,0),g(0,l),g(l,l)],this.el)},u.prototype.transformCoordinates=function(g,w){if(g){var x=this.$getZoom(this.el);g=b(1/x,g)}function M(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function C(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function b(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var R=T(this.els[0]),I=T(this.els[1]),E=T(this.els[2]),N=T(this.els[3]),S=M(C(N,I),C(N,E),C(k(I,E),k(N,R))),_=b(1+S[0],C(I,R)),$=b(1+S[1],C(E,R));if(w){var L=w,O=S[0]*L[0]/l+S[1]*L[1]/l+1,F=k(b(L[0],_),b(L[1],$));return k(b(1/O/l,F),R)}var H=C(g,R),B=M(C(_,b(S[0],H)),C($,b(S[1],H)),H);return b(l,B)},u}();o.prototype.$characterSize={width:0,height:0},m.implement(o.prototype,a),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,f){f.exports=`
|
247
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
248
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
249
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
250
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
251
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
252
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
253
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
254
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
255
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
256
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
257
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
258
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
259
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
260
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
261
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
262
|
+
|
263
|
+
|
264
|
+
.ace_editor {
|
265
|
+
position: relative;
|
266
|
+
overflow: hidden;
|
267
|
+
padding: 0;
|
268
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
269
|
+
direction: ltr;
|
270
|
+
text-align: left;
|
271
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
272
|
+
forced-color-adjust: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ace_scroller {
|
276
|
+
position: absolute;
|
277
|
+
overflow: hidden;
|
278
|
+
top: 0;
|
279
|
+
bottom: 0;
|
280
|
+
background-color: inherit;
|
281
|
+
-ms-user-select: none;
|
282
|
+
-moz-user-select: none;
|
283
|
+
-webkit-user-select: none;
|
284
|
+
user-select: none;
|
285
|
+
cursor: text;
|
286
|
+
}
|
287
|
+
|
288
|
+
.ace_content {
|
289
|
+
position: absolute;
|
290
|
+
box-sizing: border-box;
|
291
|
+
min-width: 100%;
|
292
|
+
contain: style size layout;
|
293
|
+
font-variant-ligatures: no-common-ligatures;
|
294
|
+
}
|
295
|
+
|
296
|
+
.ace_keyboard-focus:focus {
|
297
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
298
|
+
outline: none;
|
299
|
+
}
|
300
|
+
|
301
|
+
.ace_dragging .ace_scroller:before{
|
302
|
+
position: absolute;
|
303
|
+
top: 0;
|
304
|
+
left: 0;
|
305
|
+
right: 0;
|
306
|
+
bottom: 0;
|
307
|
+
content: '';
|
308
|
+
background: rgba(250, 250, 250, 0.01);
|
309
|
+
z-index: 1000;
|
310
|
+
}
|
311
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
312
|
+
background: rgba(0, 0, 0, 0.01);
|
313
|
+
}
|
314
|
+
|
315
|
+
.ace_gutter {
|
316
|
+
position: absolute;
|
317
|
+
overflow : hidden;
|
318
|
+
width: auto;
|
319
|
+
top: 0;
|
320
|
+
bottom: 0;
|
321
|
+
left: 0;
|
322
|
+
cursor: default;
|
323
|
+
z-index: 4;
|
324
|
+
-ms-user-select: none;
|
325
|
+
-moz-user-select: none;
|
326
|
+
-webkit-user-select: none;
|
327
|
+
user-select: none;
|
328
|
+
contain: style size layout;
|
329
|
+
}
|
330
|
+
|
331
|
+
.ace_gutter-active-line {
|
332
|
+
position: absolute;
|
333
|
+
left: 0;
|
334
|
+
right: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
.ace_scroller.ace_scroll-left:after {
|
338
|
+
content: "";
|
339
|
+
position: absolute;
|
340
|
+
top: 0;
|
341
|
+
right: 0;
|
342
|
+
bottom: 0;
|
343
|
+
left: 0;
|
344
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
345
|
+
pointer-events: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
349
|
+
position: absolute;
|
350
|
+
top: 0;
|
351
|
+
left: 0;
|
352
|
+
right: 0;
|
353
|
+
padding-left: 19px;
|
354
|
+
padding-right: 6px;
|
355
|
+
background-repeat: no-repeat;
|
356
|
+
}
|
357
|
+
|
358
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
359
|
+
margin-left: -14px;
|
360
|
+
float: left;
|
361
|
+
}
|
362
|
+
|
363
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
364
|
+
margin-left: -19px;
|
365
|
+
float: left;
|
366
|
+
}
|
367
|
+
|
368
|
+
.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 {
|
369
|
+
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==");
|
370
|
+
background-repeat: no-repeat;
|
371
|
+
background-position: 2px center;
|
372
|
+
}
|
373
|
+
|
374
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
375
|
+
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==");
|
376
|
+
background-repeat: no-repeat;
|
377
|
+
background-position: 2px center;
|
378
|
+
}
|
379
|
+
|
380
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
381
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
382
|
+
background-repeat: no-repeat;
|
383
|
+
background-position: 2px center;
|
384
|
+
}
|
385
|
+
|
386
|
+
.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 {
|
387
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
388
|
+
}
|
389
|
+
|
390
|
+
.ace_icon_svg.ace_error {
|
391
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
392
|
+
background-color: crimson;
|
393
|
+
}
|
394
|
+
.ace_icon_svg.ace_security {
|
395
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
396
|
+
background-color: crimson;
|
397
|
+
}
|
398
|
+
.ace_icon_svg.ace_warning {
|
399
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
400
|
+
background-color: darkorange;
|
401
|
+
}
|
402
|
+
.ace_icon_svg.ace_info {
|
403
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
404
|
+
background-color: royalblue;
|
405
|
+
}
|
406
|
+
.ace_icon_svg.ace_hint {
|
407
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
408
|
+
background-color: silver;
|
409
|
+
}
|
410
|
+
|
411
|
+
.ace_icon_svg.ace_error_fold {
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
413
|
+
background-color: crimson;
|
414
|
+
}
|
415
|
+
.ace_icon_svg.ace_security_fold {
|
416
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
417
|
+
background-color: crimson;
|
418
|
+
}
|
419
|
+
.ace_icon_svg.ace_warning_fold {
|
420
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
421
|
+
background-color: darkorange;
|
422
|
+
}
|
423
|
+
|
424
|
+
.ace_scrollbar {
|
425
|
+
contain: strict;
|
426
|
+
position: absolute;
|
427
|
+
right: 0;
|
428
|
+
bottom: 0;
|
429
|
+
z-index: 6;
|
430
|
+
}
|
431
|
+
|
432
|
+
.ace_scrollbar-inner {
|
433
|
+
position: absolute;
|
434
|
+
cursor: text;
|
435
|
+
left: 0;
|
436
|
+
top: 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
.ace_scrollbar-v{
|
440
|
+
overflow-x: hidden;
|
441
|
+
overflow-y: scroll;
|
442
|
+
top: 0;
|
443
|
+
}
|
444
|
+
|
445
|
+
.ace_scrollbar-h {
|
446
|
+
overflow-x: scroll;
|
447
|
+
overflow-y: hidden;
|
448
|
+
left: 0;
|
449
|
+
}
|
450
|
+
|
451
|
+
.ace_print-margin {
|
452
|
+
position: absolute;
|
453
|
+
height: 100%;
|
454
|
+
}
|
455
|
+
|
456
|
+
.ace_text-input {
|
457
|
+
position: absolute;
|
458
|
+
z-index: 0;
|
459
|
+
width: 0.5em;
|
460
|
+
height: 1em;
|
461
|
+
opacity: 0;
|
462
|
+
background: transparent;
|
463
|
+
-moz-appearance: none;
|
464
|
+
appearance: none;
|
465
|
+
border: none;
|
466
|
+
resize: none;
|
467
|
+
outline: none;
|
468
|
+
overflow: hidden;
|
469
|
+
font: inherit;
|
470
|
+
padding: 0 1px;
|
471
|
+
margin: 0 -1px;
|
472
|
+
contain: strict;
|
473
|
+
-ms-user-select: text;
|
474
|
+
-moz-user-select: text;
|
475
|
+
-webkit-user-select: text;
|
476
|
+
user-select: text;
|
477
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
478
|
+
white-space: pre!important;
|
479
|
+
}
|
480
|
+
.ace_text-input.ace_composition {
|
481
|
+
background: transparent;
|
482
|
+
color: inherit;
|
483
|
+
z-index: 1000;
|
484
|
+
opacity: 1;
|
485
|
+
}
|
486
|
+
.ace_composition_placeholder { color: transparent }
|
487
|
+
.ace_composition_marker {
|
488
|
+
border-bottom: 1px solid;
|
489
|
+
position: absolute;
|
490
|
+
border-radius: 0;
|
491
|
+
margin-top: 1px;
|
492
|
+
}
|
493
|
+
|
494
|
+
[ace_nocontext=true] {
|
495
|
+
transform: none!important;
|
496
|
+
filter: none!important;
|
497
|
+
clip-path: none!important;
|
498
|
+
mask : none!important;
|
499
|
+
contain: none!important;
|
500
|
+
perspective: none!important;
|
501
|
+
mix-blend-mode: initial!important;
|
502
|
+
z-index: auto;
|
503
|
+
}
|
504
|
+
|
505
|
+
.ace_layer {
|
506
|
+
z-index: 1;
|
507
|
+
position: absolute;
|
508
|
+
overflow: hidden;
|
509
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
510
|
+
word-wrap: normal;
|
511
|
+
white-space: pre;
|
512
|
+
height: 100%;
|
513
|
+
width: 100%;
|
514
|
+
box-sizing: border-box;
|
515
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
516
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
517
|
+
pointer-events: none;
|
518
|
+
}
|
519
|
+
|
520
|
+
.ace_gutter-layer {
|
521
|
+
position: relative;
|
522
|
+
width: auto;
|
523
|
+
text-align: right;
|
524
|
+
pointer-events: auto;
|
525
|
+
height: 1000000px;
|
526
|
+
contain: style size layout;
|
527
|
+
}
|
528
|
+
|
529
|
+
.ace_text-layer {
|
530
|
+
font: inherit !important;
|
531
|
+
position: absolute;
|
532
|
+
height: 1000000px;
|
533
|
+
width: 1000000px;
|
534
|
+
contain: style size layout;
|
535
|
+
}
|
536
|
+
|
537
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
538
|
+
contain: style size layout;
|
539
|
+
position: absolute;
|
540
|
+
top: 0;
|
541
|
+
left: 0;
|
542
|
+
right: 0;
|
543
|
+
}
|
544
|
+
|
545
|
+
.ace_hidpi .ace_text-layer,
|
546
|
+
.ace_hidpi .ace_gutter-layer,
|
547
|
+
.ace_hidpi .ace_content,
|
548
|
+
.ace_hidpi .ace_gutter {
|
549
|
+
contain: strict;
|
550
|
+
}
|
551
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
552
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
553
|
+
contain: strict;
|
554
|
+
}
|
555
|
+
|
556
|
+
.ace_cjk {
|
557
|
+
display: inline-block;
|
558
|
+
text-align: center;
|
559
|
+
}
|
560
|
+
|
561
|
+
.ace_cursor-layer {
|
562
|
+
z-index: 4;
|
563
|
+
}
|
564
|
+
|
565
|
+
.ace_cursor {
|
566
|
+
z-index: 4;
|
567
|
+
position: absolute;
|
568
|
+
box-sizing: border-box;
|
569
|
+
border-left: 2px solid;
|
570
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
571
|
+
transform: translatez(0);
|
572
|
+
}
|
573
|
+
|
574
|
+
.ace_multiselect .ace_cursor {
|
575
|
+
border-left-width: 1px;
|
576
|
+
}
|
577
|
+
|
578
|
+
.ace_slim-cursors .ace_cursor {
|
579
|
+
border-left-width: 1px;
|
580
|
+
}
|
581
|
+
|
582
|
+
.ace_overwrite-cursors .ace_cursor {
|
583
|
+
border-left-width: 0;
|
584
|
+
border-bottom: 1px solid;
|
585
|
+
}
|
586
|
+
|
587
|
+
.ace_hidden-cursors .ace_cursor {
|
588
|
+
opacity: 0.2;
|
589
|
+
}
|
590
|
+
|
591
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
592
|
+
opacity: 0;
|
593
|
+
}
|
594
|
+
|
595
|
+
.ace_smooth-blinking .ace_cursor {
|
596
|
+
transition: opacity 0.18s;
|
597
|
+
}
|
598
|
+
|
599
|
+
.ace_animate-blinking .ace_cursor {
|
600
|
+
animation-duration: 1000ms;
|
601
|
+
animation-timing-function: step-end;
|
602
|
+
animation-name: blink-ace-animate;
|
603
|
+
animation-iteration-count: infinite;
|
604
|
+
}
|
605
|
+
|
606
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
607
|
+
animation-duration: 1000ms;
|
608
|
+
animation-timing-function: ease-in-out;
|
609
|
+
animation-name: blink-ace-animate-smooth;
|
610
|
+
}
|
611
|
+
|
612
|
+
@keyframes blink-ace-animate {
|
613
|
+
from, to { opacity: 1; }
|
614
|
+
60% { opacity: 0; }
|
615
|
+
}
|
616
|
+
|
617
|
+
@keyframes blink-ace-animate-smooth {
|
618
|
+
from, to { opacity: 1; }
|
619
|
+
45% { opacity: 1; }
|
620
|
+
60% { opacity: 0; }
|
621
|
+
85% { opacity: 0; }
|
622
|
+
}
|
623
|
+
|
624
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
625
|
+
position: absolute;
|
626
|
+
z-index: 3;
|
627
|
+
}
|
628
|
+
|
629
|
+
.ace_marker-layer .ace_selection {
|
630
|
+
position: absolute;
|
631
|
+
z-index: 5;
|
632
|
+
}
|
633
|
+
|
634
|
+
.ace_marker-layer .ace_bracket {
|
635
|
+
position: absolute;
|
636
|
+
z-index: 6;
|
637
|
+
}
|
638
|
+
|
639
|
+
.ace_marker-layer .ace_error_bracket {
|
640
|
+
position: absolute;
|
641
|
+
border-bottom: 1px solid #DE5555;
|
642
|
+
border-radius: 0;
|
643
|
+
}
|
644
|
+
|
645
|
+
.ace_marker-layer .ace_active-line {
|
646
|
+
position: absolute;
|
647
|
+
z-index: 2;
|
648
|
+
}
|
649
|
+
|
650
|
+
.ace_marker-layer .ace_selected-word {
|
651
|
+
position: absolute;
|
652
|
+
z-index: 4;
|
653
|
+
box-sizing: border-box;
|
654
|
+
}
|
655
|
+
|
656
|
+
.ace_line .ace_fold {
|
657
|
+
box-sizing: border-box;
|
658
|
+
|
659
|
+
display: inline-block;
|
660
|
+
height: 11px;
|
661
|
+
margin-top: -2px;
|
662
|
+
vertical-align: middle;
|
663
|
+
|
664
|
+
background-image:
|
665
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
666
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
667
|
+
background-repeat: no-repeat, repeat-x;
|
668
|
+
background-position: center center, top left;
|
669
|
+
color: transparent;
|
670
|
+
|
671
|
+
border: 1px solid black;
|
672
|
+
border-radius: 2px;
|
673
|
+
|
674
|
+
cursor: pointer;
|
675
|
+
pointer-events: auto;
|
676
|
+
}
|
677
|
+
|
678
|
+
.ace_dark .ace_fold {
|
679
|
+
}
|
680
|
+
|
681
|
+
.ace_fold:hover{
|
682
|
+
background-image:
|
683
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
684
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
685
|
+
}
|
686
|
+
|
687
|
+
.ace_tooltip {
|
688
|
+
background-color: #f5f5f5;
|
689
|
+
border: 1px solid gray;
|
690
|
+
border-radius: 1px;
|
691
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
692
|
+
color: black;
|
693
|
+
max-width: 100%;
|
694
|
+
padding: 3px 4px;
|
695
|
+
position: fixed;
|
696
|
+
z-index: 999999;
|
697
|
+
box-sizing: border-box;
|
698
|
+
cursor: default;
|
699
|
+
white-space: pre-wrap;
|
700
|
+
word-wrap: break-word;
|
701
|
+
line-height: normal;
|
702
|
+
font-style: normal;
|
703
|
+
font-weight: normal;
|
704
|
+
letter-spacing: normal;
|
705
|
+
pointer-events: none;
|
706
|
+
overflow: auto;
|
707
|
+
max-width: min(60em, 66vw);
|
708
|
+
overscroll-behavior: contain;
|
709
|
+
}
|
710
|
+
.ace_tooltip pre {
|
711
|
+
white-space: pre-wrap;
|
712
|
+
}
|
713
|
+
|
714
|
+
.ace_tooltip.ace_dark {
|
715
|
+
background-color: #636363;
|
716
|
+
color: #fff;
|
717
|
+
}
|
718
|
+
|
719
|
+
.ace_tooltip:focus {
|
720
|
+
outline: 1px solid #5E9ED6;
|
721
|
+
}
|
722
|
+
|
723
|
+
.ace_icon {
|
724
|
+
display: inline-block;
|
725
|
+
width: 18px;
|
726
|
+
vertical-align: top;
|
727
|
+
}
|
728
|
+
|
729
|
+
.ace_icon_svg {
|
730
|
+
display: inline-block;
|
731
|
+
width: 12px;
|
732
|
+
vertical-align: top;
|
733
|
+
-webkit-mask-repeat: no-repeat;
|
734
|
+
-webkit-mask-size: 12px;
|
735
|
+
-webkit-mask-position: center;
|
736
|
+
}
|
737
|
+
|
738
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
739
|
+
padding-right: 13px;
|
740
|
+
}
|
741
|
+
|
742
|
+
.ace_fold-widget {
|
743
|
+
box-sizing: border-box;
|
744
|
+
|
745
|
+
margin: 0 -12px 0 1px;
|
746
|
+
display: none;
|
747
|
+
width: 11px;
|
748
|
+
vertical-align: top;
|
749
|
+
|
750
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
751
|
+
background-repeat: no-repeat;
|
752
|
+
background-position: center;
|
753
|
+
|
754
|
+
border-radius: 3px;
|
755
|
+
|
756
|
+
border: 1px solid transparent;
|
757
|
+
cursor: pointer;
|
758
|
+
}
|
759
|
+
|
760
|
+
.ace_folding-enabled .ace_fold-widget {
|
761
|
+
display: inline-block;
|
762
|
+
}
|
763
|
+
|
764
|
+
.ace_fold-widget.ace_end {
|
765
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
766
|
+
}
|
767
|
+
|
768
|
+
.ace_fold-widget.ace_closed {
|
769
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
770
|
+
}
|
771
|
+
|
772
|
+
.ace_fold-widget:hover {
|
773
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
775
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
776
|
+
}
|
777
|
+
|
778
|
+
.ace_fold-widget:active {
|
779
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
780
|
+
background-color: rgba(0, 0, 0, 0.05);
|
781
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
782
|
+
}
|
783
|
+
/**
|
784
|
+
* Dark version for fold widgets
|
785
|
+
*/
|
786
|
+
.ace_dark .ace_fold-widget {
|
787
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
788
|
+
}
|
789
|
+
.ace_dark .ace_fold-widget.ace_end {
|
790
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
791
|
+
}
|
792
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
793
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
794
|
+
}
|
795
|
+
.ace_dark .ace_fold-widget:hover {
|
796
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
797
|
+
background-color: rgba(255, 255, 255, 0.1);
|
798
|
+
}
|
799
|
+
.ace_dark .ace_fold-widget:active {
|
800
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
801
|
+
}
|
802
|
+
|
803
|
+
.ace_inline_button {
|
804
|
+
border: 1px solid lightgray;
|
805
|
+
display: inline-block;
|
806
|
+
margin: -1px 8px;
|
807
|
+
padding: 0 5px;
|
808
|
+
pointer-events: auto;
|
809
|
+
cursor: pointer;
|
810
|
+
}
|
811
|
+
.ace_inline_button:hover {
|
812
|
+
border-color: gray;
|
813
|
+
background: rgba(200,200,200,0.2);
|
814
|
+
display: inline-block;
|
815
|
+
pointer-events: auto;
|
816
|
+
}
|
817
|
+
|
818
|
+
.ace_fold-widget.ace_invalid {
|
819
|
+
background-color: #FFB4B4;
|
820
|
+
border-color: #DE5555;
|
821
|
+
}
|
822
|
+
|
823
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
824
|
+
transition: opacity 0.4s ease 0.05s;
|
825
|
+
opacity: 0;
|
826
|
+
}
|
827
|
+
|
828
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
829
|
+
transition: opacity 0.05s ease 0.05s;
|
830
|
+
opacity:1;
|
831
|
+
}
|
832
|
+
|
833
|
+
.ace_underline {
|
834
|
+
text-decoration: underline;
|
835
|
+
}
|
836
|
+
|
837
|
+
.ace_bold {
|
838
|
+
font-weight: bold;
|
839
|
+
}
|
840
|
+
|
841
|
+
.ace_nobold .ace_bold {
|
842
|
+
font-weight: normal;
|
843
|
+
}
|
844
|
+
|
845
|
+
.ace_italic {
|
846
|
+
font-style: italic;
|
847
|
+
}
|
848
|
+
|
849
|
+
|
850
|
+
.ace_error-marker {
|
851
|
+
background-color: rgba(255, 0, 0,0.2);
|
852
|
+
position: absolute;
|
853
|
+
z-index: 9;
|
854
|
+
}
|
855
|
+
|
856
|
+
.ace_highlight-marker {
|
857
|
+
background-color: rgba(255, 255, 0,0.2);
|
858
|
+
position: absolute;
|
859
|
+
z-index: 8;
|
860
|
+
}
|
861
|
+
|
862
|
+
.ace_mobile-menu {
|
863
|
+
position: absolute;
|
864
|
+
line-height: 1.5;
|
865
|
+
border-radius: 4px;
|
866
|
+
-ms-user-select: none;
|
867
|
+
-moz-user-select: none;
|
868
|
+
-webkit-user-select: none;
|
869
|
+
user-select: none;
|
870
|
+
background: white;
|
871
|
+
box-shadow: 1px 3px 2px grey;
|
872
|
+
border: 1px solid #dcdcdc;
|
873
|
+
color: black;
|
874
|
+
}
|
875
|
+
.ace_dark > .ace_mobile-menu {
|
876
|
+
background: #333;
|
877
|
+
color: #ccc;
|
878
|
+
box-shadow: 1px 3px 2px grey;
|
879
|
+
border: 1px solid #444;
|
880
|
+
|
881
|
+
}
|
882
|
+
.ace_mobile-button {
|
883
|
+
padding: 2px;
|
884
|
+
cursor: pointer;
|
885
|
+
overflow: hidden;
|
886
|
+
}
|
887
|
+
.ace_mobile-button:hover {
|
888
|
+
background-color: #eee;
|
889
|
+
opacity:1;
|
890
|
+
}
|
891
|
+
.ace_mobile-button:active {
|
892
|
+
background-color: #ddd;
|
893
|
+
}
|
894
|
+
|
895
|
+
.ace_placeholder {
|
896
|
+
position: relative;
|
897
|
+
font-family: arial;
|
898
|
+
transform: scale(0.9);
|
899
|
+
transform-origin: left;
|
900
|
+
white-space: pre;
|
901
|
+
opacity: 0.7;
|
902
|
+
margin: 0 10px;
|
903
|
+
z-index: 1;
|
904
|
+
}
|
905
|
+
|
906
|
+
.ace_ghost_text {
|
907
|
+
opacity: 0.5;
|
908
|
+
font-style: italic;
|
909
|
+
}
|
910
|
+
|
911
|
+
.ace_ghost_text_container > div {
|
912
|
+
white-space: pre;
|
913
|
+
}
|
914
|
+
|
915
|
+
.ghost_text_line_wrapped::after {
|
916
|
+
content: "↩";
|
917
|
+
position: absolute;
|
918
|
+
}
|
919
|
+
|
920
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
921
|
+
margin: 0px 4px
|
922
|
+
}
|
923
|
+
|
924
|
+
.ace_screenreader-only {
|
925
|
+
position:absolute;
|
926
|
+
left:-10000px;
|
927
|
+
top:auto;
|
928
|
+
width:1px;
|
929
|
+
height:1px;
|
930
|
+
overflow:hidden;
|
931
|
+
}
|
932
|
+
|
933
|
+
.ace_hidden_token {
|
934
|
+
display: none;
|
935
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var m=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/event_emitter").EventEmitter,h=function(){function p(a,c){this.canvas=m.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},a.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(a){var c=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var s=(a.lastRow+1)*this.lineHeight;s<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var g={info:1,warning:2,error:3};u.forEach(function(N){N.priority=g[N.type]||null}),u=u.sort(o);for(var w=this.renderer.session.$foldData,x=0;x<u.length;x++){var M=u[x].row,C=this.compensateFoldRows(M,w),k=Math.round((M-C)*this.lineHeight*this.heightRatio),b=Math.round((M-C)*this.lineHeight*this.heightRatio),T=Math.round(((M-C)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-b;if(R<this.minDecorationHeight){var I=(b+T)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(I-this.halfMinDecorationHeight),T=Math.round(I+this.halfMinDecorationHeight)}l.fillStyle=c[u[x].type]||null,l.fillRect(0,k,this.canvasWidth,T-b)}}var E=this.renderer.session.selection.getCursor();if(E){var C=this.compensateFoldRows(E.row,w),k=Math.round((E.row-C)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(a,c){var s=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)a>c[l].start.row&&a<c[l].end.row?s+=a-c[l].start.row:a>=c[l].end.row&&(s+=c[l].end.row-c[l].start.row);return s},p}();y.implement(h.prototype,v),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,f){var m=e("./lib/oop"),y=e("./lib/dom"),v=e("./lib/lang"),h=e("./config"),p=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,c=e("./layer/text").Text,s=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,w=e("./renderloop").RenderLoop,x=e("./layer/font_metrics").FontMetrics,M=e("./lib/event_emitter").EventEmitter,C=e("./css/editor-css"),k=e("./layer/decorators").Decorator,b=e("./lib/useragent"),T=e("./layer/text_util").isTextToken;y.importCssString(C,"ace_editor.css",!1);var R=function(){function I(E,N){var S=this;this.container=E||y.createElement("div"),y.addCssClass(this.container,"ace_editor"),y.HI_DPI&&y.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=y.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=y.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=y.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var _=this.$textLayer=new c(this.content);this.canvas=_.element,this.$markerFront=new a(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.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($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._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=!b.isIOS,this.$loop=new w(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(),y.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,N,S){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:E,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(S)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,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var L=this.$updateCachedSize(E,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(E,N,S,_){_-=this.$extraHeight||0;var $=0,L=this.$size,O={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(_&&(E||L.height!=_)&&(L.height=_,$|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(E||L.width!=S)){$|=this.CHANGE_SIZE,L.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,y.setStyle(this.scrollBarH.element.style,"left",N+"px"),y.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),L.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),y.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";y.setStyle(this.scrollBarH.element.style,"right",F),y.setStyle(this.scroller.style,"right",F),y.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&($|=this.CHANGE_FULL)}return L.$dirty=!S||!_,$&&this._signal("resize",O),$},I.prototype.onGutterResize=function(E){var N=this.$showGutter?E:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,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,N=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(N,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=y.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=y.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.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,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){y.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,L=S.left;$-=_.offset;var O=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if($<0||$>_.height-O){y.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-O;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var B=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(B)[0]}else $+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,y.setStyle(E,"height",O+"px"),y.setStyle(E,"width",F+"px"),y.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min($,H))}}},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,N=E.lastRow,S=this.session.documentToScreenRow(N,0)*E.lineHeight;return S-this.session.getScrollTop()>E.height-E.lineHeight?N-1:N},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,N,S,_){var $=this.scrollMargin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},I.prototype.setMargin=function(E,N,S,_){var $=this.margin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|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,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-N&&(E=this.scrollTop+N,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,N){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!N){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 S=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(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),y.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",L=S.minHeight+"px";y.setStyle(this.content.style,"width",$),y.setStyle(this.content.style,"height",L)}if(E&this.CHANGE_H_SCROLL&&(y.translate(this.content,-this.scrollLeft,-S.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(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),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(S):this.$textLayer.scrollLines(S),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",E)},I.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&E>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var L=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,S),this.desiredHeight=S,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var E=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,L=this.$getLongestLine(),O=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var B=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,$-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,L+2*this.$padding-N.scrollerWidth+q.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+V<0||this.scrollTop>q.top),G=H!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(B/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,we,pe=this.lineHeight;J=E.screenToDocumentRow(J,0);var _e=E.getFoldLine(J);_e&&(J=_e.start.row),me=E.documentToScreenRow(J,0),we=E.getRowLength(J)*pe,ae=Math.min(E.screenToDocumentRow(ae,0),E.getLength()-1),B=N.scrollerHeight+E.getRowLength(ae)*pe+we,Z=this.scrollTop-me*pe;var nt=0;return(this.layerConfig.width!=L||F)&&(nt=this.CHANGE_H_SCROLL),(F||G)&&(nt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:B,maxHeight:$,offset:Z,gutterOffset:pe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/pe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(L-this.$padding),nt},I.prototype.$updateLines=function(){if(this.$changedLines){var E=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(E>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,E,N),!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,N){this.$gutterLayer.addGutterDecoration(E,N)},I.prototype.removeGutterDecoration=function(E,N){this.$gutterLayer.removeGutterDecoration(E,N)},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,N,S){this.scrollCursorIntoView(E,S),this.scrollCursorIntoView(N,S)},I.prototype.scrollCursorIntoView=function(E,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(E),$=_.left,L=_.top,O=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>L?(N&&H+O>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):H+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var B=this.scrollLeft,V=2*this.layerConfig.characterWidth;$-V<B?($-=V,$<this.$padding+V&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=V,B+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):B<=this.$padding&&$-B<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,N){typeof E=="number"&&(E={row:E,column:0});var S=this.$cursorLayer.getPixelPosition(E),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},I.prototype.$calcSteps=function(E,N){var S=0,_=this.STEPS,$=[],L=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for(S=0;S<_;++S)$.push(L(S/this.STEPS,E,N-E));return $},I.prototype.scrollToLine=function(E,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:E,column:0}),L=$.top;N&&(L-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(L),S!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(E,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(E==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(E=$[0],E==S))return}var L=_.$calcSteps(E,S);this.$scrollAnimation={from:E,to:S,steps:L},clearInterval(this.$timer),_.session.setScrollTop(L.shift()),_.session.$scrollTop=S;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);L.length?(_.session.setScrollTop(L.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):O()},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,N){this.session.setScrollTop(N),this.session.setScrollLeft(E)},I.prototype.scrollBy=function(E,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},I.prototype.isScrollableBy=function(E,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>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,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,O=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:O,column:F,side:L-F>0?1:-1,offsetX:$}},I.prototype.screenToTextCoordinates=function(E,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,O=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),$)},I.prototype.textToScreenCoordinates=function(E,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(E,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,E)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),L=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+L-this.scrollTop}},I.prototype.visualizeFocus=function(){y.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){y.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?(y.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 N=this.session.selection.cursor;this.addToken(E,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),y.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,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(E,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:E,position:{row:_.row,column:_.column}};var L=y.createElement("div");if($.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=y.createElement("div"),re=y.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(y.createTextNode(G.text)),Z.appendChild(re),L.appendChild(Z),F=Z}),O.forEach(function(G){var Z=y.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(y.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:L,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),B=this.container,V=B.getBoundingClientRect().height,q=$.length*this.lineHeight,X=q<V-H.top;if(X)return;q<V?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(E,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=E.split(/\r?\n/),L=[],O=0;O<$.length;O++){var F=this.session.$getDisplayTokens($[O],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var B=0;H.push($[O].length);for(var V=0;V<H.length;V++){var q=$[O].slice(B,H[V]);L.push({text:q,wrapped:!0}),B=H[V]}}else L.push({text:$[O],wrapped:!1})}return L},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,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var L={type:N,value:E},O=$.getTokens(S);if(_==null||!O.length)O.push(L);else for(var F=0,H=0;H<O.length;H++){var B=O[H];if(F+=B.value.length,_<=F){var V=B.value.length-(F-_),q=B.value.slice(0,V),X=B.value.slice(V);O.splice(H,1,{type:B.type,value:q},L,{type:B.type,value:X});break}}this.updateLines(S,S)},I.prototype.hideTokensAfterPosition=function(E,N){for(var S=this.session.getTokens(E),_=0,$=!1,L=[],O=0;O<S.length;O++){var F=S[O];if(_+=F.value.length,F.type!=="ghost_text"){if($){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(E,E),L},I.prototype.removeExtraToken=function(E,N){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},I.prototype.setTheme=function(E,N){var S=this;if(this.$themeId=E,S._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var _=E||this.$options.theme.initialValue;h.loadModule(["theme",_],$)}else $(E);function $(L){if(S.$themeId!=E)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");L.$id&&(S.$themeId=L.$id),y.importCssString(L.cssText,L.cssClass,S.container),S.theme&&y.removeCssClass(S.container,S.theme.cssClass);var O="padding"in L?L.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&O!=S.$padding&&S.setPadding(O),S.$theme=L.cssClass,S.theme=L,y.addCssClass(S.container,L.cssClass),y.setCssClass(S.container,"ace_dark",L.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:L}),N&&N(),b.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(E,N){y.setCssClass(this.container,E,N!==!1)},I.prototype.unsetStyle=function(E){y.removeCssClass(this.container,E)},I.prototype.setCursorStyle=function(E){y.setStyle(this.scroller.style,"cursor",E)},I.prototype.setMouseCursor=function(E){y.setStyle(this.scroller.style,"cursor",E)},I.prototype.attachToShadowRoot=function(){y.importCssString(C,"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 N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!0?(this.scrollBarV=new g(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=v.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(E.$size.width-S)>1||Math.abs(E.$size.height-_)>1?E.$resizeTimer.delay():E.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,m.implement(R.prototype,M),h.defineOptions(R.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){y.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:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,f){var m=e("../lib/oop"),y=e("../lib/net"),v=e("../lib/event_emitter").EventEmitter,h=e("../config");function p(l){var o="importScripts('"+y.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new u;return g.append(o),g.getBlob("application/javascript")}}function a(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=p(l),u=window.URL||window.webkitURL,g=u.createObjectURL(o);return new Worker(g)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,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(){m.implement(this,v),this.$createWorkerFromOldConfig=function(l,o,u,g,w){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)g=g||h.moduleUrl(o,"worker");else{var x=this.$normalizePath;g=g||x(e.toUrl("ace/worker/worker.js",null,"_"));var M={};l.forEach(function(C){M[C]=x(e.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(g),w&&this.send("importScripts",w),this.$worker.postMessage({init:!0,tlns:M,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return y.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var g=this.callbackId++;this.callbacks[g]=u,o.push(g)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var s=function(l,o,u){var g=null,w=!1,x=Object.create(v),M=[],C=new c({messageBuffer:M,terminate:function(){},postMessage:function(b){M.push(b),g&&(w?setTimeout(k):k())}});C.setEmitSync=function(b){w=b};var k=function(){var b=M.shift();b.command?g[b.command].apply(g,b.args):b.event&&x._signal(b.event,b.data)};return x.postMessage=function(b){C.onMessage({data:b})},x.callback=function(b,T){this.postMessage({type:"call",id:T,data:b})},x.emit=function(b,T){this.postMessage({type:"event",name:b,data:T})},h.loadModule(["worker",o],function(b){for(g=new b[u](x);M.length;)k()}),C};r.UIWorkerClient=s,r.WorkerClient=c,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,f){var m=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,v=e("./lib/oop"),h=function(){function p(a,c,s,l,o,u){var g=this;this.length=c,this.session=a,this.doc=a.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=s;var w=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=w.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var a=this,c=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=s.addMarker(new m(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),a.others.push(u)}),s.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,c=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=a.addMarker(new m(s.row,s.column,s.row,s.column+c.length),c.othersClass,null,!1)})}},p.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)}},p.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var c=a;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var s=a.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(a),l&&(this.length+=s),l&&!this.session.$fromUndo){if(a.action==="insert")for(var u=this.others.length-1;u>=0;u--){var g=this.others[u],w={row:g.row,column:g.column+o};this.doc.insertMergedLines(w,a.lines)}else if(a.action==="remove")for(var u=this.others.length-1;u>=0;u--){var g=this.others[u],w={row:g.row,column:g.column+o};this.doc.remove(new m(w.row,w.column,w.row,w.column-s))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var c=this.others.length;c--;)this.others[c].onChange(a);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var a=this,c=this.session,s=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new m(o.row,o.column,o.row,o.column+a.length),u,null,!1)};s(this.pos,this.mainClass);for(var l=this.others.length;l--;)s(this.others[l],this.othersClass)}},p.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},p.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},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),c=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,s=0;s<c;s++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();v.implement(h.prototype,y),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var m=e("../lib/event"),y=e("../lib/useragent");function v(p,a){return p.row==a.row&&p.column==a.column}function h(p){var a=p.domEvent,c=a.altKey,s=a.shiftKey,l=a.ctrlKey,o=p.getAccelKey(),u=p.getButton();if(l&&y.isMac&&(u=a.button),p.editor.inMultiSelectMode&&u==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!l&&!c&&!o){u===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(u===0){var g=p.editor,w=g.selection,x=g.inMultiSelectMode,M=p.getDocumentPosition(),C=w.getCursor(),k=p.inSelection()||w.isEmpty()&&v(M,C),b=p.x,T=p.y,R=function(q){b=q.clientX,T=q.clientY},I=g.session,E=g.renderer.pixelToScreenCoordinates(b,T),N=E,S;if(g.$mouseHandler.$enableJumpToDef)l&&c||o&&c?S=s?"block":"add":c&&g.$blockSelectEnabled&&(S="block");else if(o&&!c){if(S="add",!x&&s)return}else c&&g.$blockSelectEnabled&&(S="block");if(S&&y.isMac&&a.ctrlKey&&g.$mouseHandler.cancelContextMenu(),S=="add"){if(!x&&k)return;if(!x){var _=w.toOrientedRange();g.addSelectionMarker(_)}var $=w.rangeList.rangeAtPoint(M);g.inVirtualSelectionMode=!0,s&&($=null,_=w.ranges[0]||_,g.removeSelectionMarker(_)),g.once("mouseup",function(){var q=w.toOrientedRange();$&&q.isEmpty()&&v($.cursor,q.cursor)?w.substractPoint(q.cursor):(s?w.substractPoint(_.cursor):_&&(g.removeSelectionMarker(_),w.addRange(_)),w.addRange(q)),g.inVirtualSelectionMode=!1})}else if(S=="block"){p.stop(),g.inVirtualSelectionMode=!0;var L,O=[],F=function(){var q=g.renderer.pixelToScreenCoordinates(b,T),X=I.screenToDocumentPosition(q.row,q.column,q.offsetX);v(N,q)&&v(X,w.lead)||(N=q,g.selection.moveToPosition(X),g.renderer.scrollCursorIntoView(),g.removeSelectionMarkers(O),O=w.rectangularRangeBlock(N,E),g.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=g.$mouseHandler.$clickSelection.clone()),O.forEach(g.addSelectionMarker,g),g.updateSelectionMarkers())};x&&!o?w.toSingleRange():!x&&o&&(L=w.toOrientedRange(),g.addSelectionMarker(L)),s?E=I.documentToScreenPosition(w.lead):w.moveToPosition(M),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),g.removeSelectionMarkers(O),O.length||(O=[w.toOrientedRange()]),L&&(g.removeSelectionMarker(L),w.toSingleRange(L));for(var X=0;X<O.length;X++)w.addRange(O[X]);g.inVirtualSelectionMode=!1,g.$mouseHandler.$clickSelection=null},B=F;m.capture(g.container,R,H);var V=setInterval(function(){B()},20);return p.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,f){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(y){y.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(y){y.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(y){y.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(y){y.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(y){y.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(y){y.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(y){y.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(y){y.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(y){y.multiSelect.rangeCount>1?y.multiSelect.joinSelections():y.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(y){y.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(y){y.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(y){y.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(y){y.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(y){return y&&y.inMultiSelectMode}}];var m=e("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new m(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,f){var m=e("./range_list").RangeList,y=e("./range").Range,v=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,p=e("./lib/event"),a=e("./lib/lang"),c=e("./commands/multi_select_commands");r.commands=c.defaultCommands.concat(c.multiSelectCommands);var s=e("./search").Search,l=new s;function o(C,k,b){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=b==-1,l.find(C)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,k){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}C.cursor||(C.cursor=C.end);var T=this.rangeList.add(C);return this.$onAddRange(C),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var k=this.rangeList.substractPoint(C);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();C.push(k),this.rangeCount=0}for(var b=C.length;b--;){var T=this.ranges.indexOf(C[b]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new m,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],k=[],b=0;b<C.length;b++){var T=C[b],R=T.start.row,I=T.end.row;if(R===I)k.push(T.clone());else{for(k.push(new y(R,T.start.column,R,this.session.getLine(R).length));++R<I;)k.push(this.getLineRange(R,!0));k.push(new y(I,0,I,T.end.column))}b==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var b=k.length;b--;)this.addRange(k[b])},this.joinSelections=function(){var C=this.rangeList.ranges,k=C[C.length-1],b=y.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,k=C[C.length-1],b=y.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(T,R);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,k,b){var T=[],R=C.column<k.column;if(R)var I=C.column,E=k.column,N=C.offsetX,S=k.offsetX;else var I=k.column,E=C.column,N=k.offsetX,S=C.offsetX;var _=C.row<k.row;if(_)var $=C.row,L=k.row;else var $=k.row,L=C.row;I<0&&(I=0),$<0&&($=0),$==L&&(b=!0);for(var O,F=$;F<=L;F++){var H=y.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,E,S));if(H.isEmpty()){if(O&&w(H.end,O))break;O=H.end}H.cursor=R?H.start:H.end,T.push(H)}if(_&&T.reverse(),!b){for(var B=T.length-1;T[B].isEmpty()&&B>0;)B--;if(B>0)for(var V=0;T[V].isEmpty();)V++;for(var q=B;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(v.prototype);var g=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var k=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",k),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var k=this.session.$selectionMarkers.indexOf(C);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var k=this.session.$selectionMarkers,b=C.length;b--;){var T=C[b];if(T.marker){this.session.removeMarker(T.marker);var R=k.indexOf(T);R!=-1&&k.splice(R,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var k=C.command,b=C.editor;if(b.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=b.forEachSelection(k,C.args):k.multiSelectAction=="forEachLine"?T=b.forEachSelection(k,C.args,!0):k.multiSelectAction=="single"?(b.exitMultiSelectMode(),T=k.exec(b,C.args||{})):T=k.multiSelectAction(b,C.args||{});else{var T=k.exec(b,C.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(C,k,b){if(!this.inVirtualSelectionMode){var T=b&&b.keepOrder,R=b==!0||b&&b.$byLines,I=this.session,E=this.selection,N=E.rangeList,S=(T?E:N).ranges,_;if(!S.length)return C.exec?C.exec(this,k||{}):C(this,k||{});var $=E._eventRegistry;E._eventRegistry={};var L=new v(I);this.inVirtualSelectionMode=!0;for(var O=S.length;O--;){if(R)for(;O>0&&S[O].start.row==S[O-1].end.row;)O--;L.fromOrientedRange(S[O]),L.index=O,this.selection=I.selection=L;var F=C.exec?C.exec(this,k||{}):C(this,k||{});!_&&F!==void 0&&(_=F),L.toOrientedRange(S[O])}L.detach(),this.selection=I.selection=E,this.inVirtualSelectionMode=!1,E._eventRegistry=$,E.mergeOverlappingRanges(),E.ranges[0]&&E.fromOrientedRange(E.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,b=[],T=0;T<k.length;T++)b.push(this.session.getTextRange(k[T]));var R=this.session.getDocument().getNewLineCharacter();C=b.join(R),C.length==(b.length-1)*R.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,k,b){if(k=k||{},k.needle=C||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var R=this.$search.findAll(this.session);if(!R.length)return 0;var I=this.multiSelect;b||I.toSingleRange(R[0]);for(var E=R.length;E--;)I.addRange(R[E],!0);return T&&I.rangeList.rangeAtPoint(T.start)&&I.addRange(T,!0),R.length},this.selectMoreLines=function(C,k){var b=this.selection.toOrientedRange(),T=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(R.row+C,R.column);if(b.isEmpty())var N=I;else var E=this.session.documentToScreenPosition(T?b.end:b.start),N=this.session.screenToDocumentPosition(E.row+C,E.column);if(T){var S=y.fromPoints(I,N);S.cursor=S.start}else{var S=y.fromPoints(N,I);S.cursor=S.end}if(S.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(k)var _=b.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var k=this.session,b=k.multiSelect,T=b.ranges,R=T.length;R--;){var I=T[R];if(I.isEmpty()){var E=k.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}}b.mergeOverlappingRanges();for(var N=[],R=T.length;R--;){var I=T[R];N.unshift(k.getTextRange(I))}C<0?N.unshift(N.pop()):N.push(N.shift());for(var R=T.length;R--;){var I=T[R],S=I.clone();k.replace(I,N[R]),I.start.row=S.start.row,I.start.column=S.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(C,k,b){var T=this.session,R=T.multiSelect,I=R.toOrientedRange();if(!(I.isEmpty()&&(I=T.getWordRange(I.start.row,I.start.column),I.cursor=C==-1?I.start:I.end,this.multiSelect.addRange(I),b))){var E=T.getTextRange(I),N=o(T,E,C);N&&(N.cursor=C==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var C=this.session,k=C.multiSelect,b=k.ranges,T=-1,R=b.filter(function(B){if(B.cursor.row==T)return!0;T=B.cursor.row});if(!b.length||R.length==b.length-1){var I=this.selection.getRange(),E=I.start.row,N=I.end.row,S=E==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(E);while(/[=:]/.test($)&&--E>0);E<0&&(E=0),N>=_&&(N=_-1)}var L=this.session.removeFullLines(E,N);L=this.$reAlignText(L,S),this.session.insert({row:E,column:0},L.join(`
|
936
|
+
`)+`
|
937
|
+
`),S||(I.start.column=0,I.end.column=L[L.length-1].length),this.selection.setRange(I)}else{R.forEach(function(B){k.substractPoint(B.cursor)});var O=0,F=1/0,H=b.map(function(B){var V=B.cursor,q=C.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});b.forEach(function(B,V){var q=B.cursor,X=O-q.column,G=H[V]-F;X>G?C.insert(q,a.stringRepeat(" ",X-G)):C.remove(new y(q.row,q.column,q.row,q.column-X+G)),B.start.column=B.end.column=O,B.start.row=B.end.row=q.row,B.cursor=B.end}),k.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,k){var b=!0,T=!0,R,I,E;return C.map(function(L){var O=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?R==null?(R=O[1].length,I=O[2].length,E=O[3].length,O):(R+I+E!=O[1].length+O[2].length+O[3].length&&(T=!1),R!=O[1].length&&(b=!1),R>O[1].length&&(R=O[1].length),I<O[2].length&&(I=O[2].length),E>O[3].length&&(E=O[3].length),O):[L]}).map(k?S:b?T?_:S:$);function N(L){return a.stringRepeat(" ",L)}function S(L){return L[2]?N(R)+L[2]+N(I-L[2].length+E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?N(R+I-L[2].length)+L[2]+N(E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function $(L){return L[2]?N(R)+L[2]+N(E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(g.prototype);function w(C,k){return C.row==k.row&&C.column==k.column}r.onSessionChange=function(C){var k=C.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var b=C.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",h),C.commands.addCommands(c.defaultCommands),M(C))}function M(C){if(!C.textInput)return;var k=C.textInput.getElement(),b=!1;p.addListener(k,"keydown",function(R){var I=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);C.$blockSelectEnabled&&I?b||(C.renderer.setMouseCursor("crosshair"),b=!0):b&&T()},C),p.addListener(k,"keyup",T,C),p.addListener(k,"blur",T,C);function T(R){b&&(C.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=x,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(C){x(this),C?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,f){var m=e("../../range").Range,y=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(v,h,p){var a=v.getLine(p);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(v,h,p){return null},this.indentationBlock=function(v,h,p){var a=/\S/,c=v.getLine(h),s=c.search(a);if(s!=-1){for(var l=p||c.length,o=v.getLength(),u=h,g=h;++h<o;){var w=v.getLine(h).search(a);if(w!=-1){if(w<=s){var x=v.getTokenAt(h,0);if(!x||x.type!=="string")break}g=h}}if(g>u){var M=v.getLine(g).length;return new m(u,l,g,M)}}},this.openingBracketBlock=function(v,h,p,a,c){var s={row:p,column:a+1},l=v.$findClosingBracket(h,s,c);if(l){var o=v.foldWidgets[l.row];return o==null&&(o=v.getFoldWidget(l.row)),o=="start"&&l.row>s.row&&(l.row--,l.column=v.getLine(l.row).length),m.fromPoints(s,l)}},this.closingBracketBlock=function(v,h,p,a,c){var s={row:p,column:a},l=v.$findOpeningBracket(h,s);if(l)return l.column++,s.column--,m.fromPoints(l,s)}}).call(y.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,f){var m=e("../lib/dom"),y=e("../range").Range,v=e("../config").nls;function h(a,c,s){for(var l=0,o=a.length-1;l<=o;){var u=l+o>>1,g=s(c,a[u]);if(g>0)l=u+1;else if(g<0)o=u-1;else return u}return-(l+1)}function p(a,c,s){var l=a.getAnnotations().sort(y.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},y.comparePoints);o<0&&(o=-o-1),o>=l.length?o=s>0?0:l.length-1:o===0&&s<0&&(o=l.length-1);var u=l[o];if(!(!u||!s)){if(u.row===c){do u=l[o+=s];while(u&&u.row===c);if(!u)return l.slice()}var g=[];c=u.row;do g[s<0?"unshift":"push"](u),u=l[o+=s];while(u&&u.row==c);return g.length&&g}}}r.showErrorMarker=function(a,c){var s=a.session,l=a.getCursorPosition(),o=l.row,u=s.widgetManager.getWidgetsAtRow(o).filter(function(R){return R.type=="errorMarker"})[0];u?u.destroy():o-=c;var g=p(s,o,c),w;if(g){var x=g[0];l.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,l.row=x.row,w=a.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;w={displayText:[v("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(l.row),a.selection.moveToPosition(l);var M={row:l.row,fixedWidth:!0,coverGutter:!0,el:m.createElement("div"),type:"errorMarker"},C=M.el.appendChild(m.createElement("div")),k=M.el.appendChild(m.createElement("div"));k.className="error_widget_arrow "+w.className;var b=a.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=b+a.renderer.gutterWidth-5+"px",M.el.className="error_widget_wrapper",C.className="error_widget "+w.className,w.displayText.forEach(function(R,I){C.appendChild(m.createTextNode(R)),I<w.displayText.length-1&&C.appendChild(m.createElement("br"))}),C.appendChild(m.createElement("div"));var T=function(R,I,E){if(I===0&&(E==="esc"||E==="return"))return M.destroy(),{command:"null"}};M.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(T),s.widgetManager.removeLineWidget(M),a.off("changeSelection",M.destroy),a.off("changeSession",M.destroy),a.off("mouseup",M.destroy),a.off("change",M.destroy))},a.keyBinding.addKeyboardHandler(T),a.on("changeSelection",M.destroy),a.on("changeSession",M.destroy),a.on("mouseup",M.destroy),a.on("change",M.destroy),a.session.widgetManager.addLineWidget(M),M.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:M.el.offsetHeight})},m.importCssString(`
|
938
|
+
.error_widget_wrapper {
|
939
|
+
background: inherit;
|
940
|
+
color: inherit;
|
941
|
+
border:none
|
942
|
+
}
|
943
|
+
.error_widget {
|
944
|
+
border-top: solid 2px;
|
945
|
+
border-bottom: solid 2px;
|
946
|
+
margin: 5px 0;
|
947
|
+
padding: 10px 40px;
|
948
|
+
white-space: pre-wrap;
|
949
|
+
}
|
950
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
951
|
+
border-color: #ff5a5a
|
952
|
+
}
|
953
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
954
|
+
border-color: #F1D817
|
955
|
+
}
|
956
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
957
|
+
border-color: #5a5a5a
|
958
|
+
}
|
959
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
960
|
+
border-color: #5aaa5a
|
961
|
+
}
|
962
|
+
.error_widget_arrow {
|
963
|
+
position: absolute;
|
964
|
+
border: solid 5px;
|
965
|
+
border-top-color: transparent!important;
|
966
|
+
border-right-color: transparent!important;
|
967
|
+
border-left-color: transparent!important;
|
968
|
+
top: -5px;
|
969
|
+
}
|
970
|
+
`,"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,f){e("./loader_build")(r);var m=e("./lib/dom"),y=e("./range").Range,v=e("./editor").Editor,h=e("./edit_session").EditSession,p=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(s,l){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof v)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var g=s;u=g.value,s=m.createElement("pre"),g.parentNode.replaceChild(s,g)}else s&&(u=s.textContent,s.innerHTML="");var w=r.createEditSession(u),x=new v(new a(s),w,l),M={document:w,editor:x,onResize:x.resize.bind(x,null)};return g&&(M.textarea=g),x.on("destroy",function(){M.editor.container.env=null}),x.container.env=x.env=M,x},r.createEditSession=function(s,l){var o=new h(s,l);return o.setUndoManager(new p),o},r.Range=y,r.Editor=v,r.EditSession=h,r.UndoManager=p,r.VirtualRenderer=a;var c=r.config.version;r.version=c}),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 f in e)e.hasOwnProperty(f)&&(r.ace[f]=e[f]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(yf)),yf.exports}Jb();var vf={exports:{}},bf;function Xb(){return bf||(bf=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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"},p=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/},c=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},s=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},g=function(){var w="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",M="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",C="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":M,"variable.language":C,"support.function":w,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?: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})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{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(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{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\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},s,l,v,h,o,p,a,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(R,I,E){var N=R[2]=="-"||R[2]=="~"?"indentedHeredoc":"heredoc",S=R.split(this.splitRegex);return E.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(R,I,E){return R===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(R,I,E){return R===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(R,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:R}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(R,I,E){return this.next="",R=="}"&&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(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[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(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[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(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(R,I,E){return E.length&&R[0]===T[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()};m.inherits(g,y),r.RubyHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var m=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var p=v.getLine(h),a=p.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new m(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),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,f){var m=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=e("../../token_iterator").TokenIterator,p=r.FoldMode=function(){};m.inherits(p,y),(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,c,s){var l=a.getLine(s),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var g=l.match(this.foldingStartMarker);if(g[1]){if((g[1]=="if"||g[1]=="else"||g[1]=="while"||g[1]=="until"||g[1]=="unless")&&(g[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||g[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(a.getTokenAt(s,g.index+2).type==="keyword")return"start"}else if(!g[3]||a.getTokenAt(s,g.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var g=l.match(this.foldingStopMarker);if(g[3]==="end"){if(a.getTokenAt(s,g.index+1).type==="keyword")return"end"}else if(!g[1]||a.getTokenAt(s,g.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,c,s){var l=a.doc.getLine(s),o=this.foldingStartMarker.exec(l);if(o)return o[1]||o[3]?this.rubyBlock(a,s,o.index+2):this.openingBracketBlock(a,"{",s,o.index);var o=this.foldingStopMarker.exec(l);if(o)return o[3]==="end"&&a.getTokenAt(s,o.index+1).type==="keyword"?this.rubyBlock(a,s,o.index+1):o[1]==="=end"&&a.getTokenAt(s,o.index+1).type==="comment.multiline"?this.rubyBlock(a,s,o.index+1):this.closingBracketBlock(a,"}",s,o.index+o[0].length)},this.rubyBlock=function(a,c,s,l){var o=new h(a,c,s),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var g=u.value,w=a.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(w))return;var M=this.indentKeywords[g];break;case"when":if(/\sthen\s/.test(w))return;case"elsif":case"rescue":case"ensure":var M=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(w))return;var M=1;break;default:var M=this.indentKeywords[g]}var C=[g];if(M){var k=M===-1?a.getLine(c-1).length:a.getLine(c).length,b=c,T=[];if(T.push(o.getCurrentTokenRange()),o.step=M===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(M==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var R=!1;if(u.type==="keyword"){var I=M*this.indentKeywords[u.value];switch(w=a.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var E=o.$tokenIndex-1;E>=0;E--){var N=o.$rowTokens[E];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(w)||g=="case")&&(I=0,R=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(w)||(I=0,R=!0);break;case"when":(/\sthen\s/.test(w)||g=="case")&&(I=0,R=!0)}if(I>0)C.unshift(u.value);else if(I<=0&&R===!1){if(C.shift(),!C.length&&((g=="while"||g=="until"||g=="for")&&u.value!="do"||u.value=="do"&&M==-1&&I!=0||u.value!="do"))break;I===0&&C.unshift(u.value)}}}if(!u)return null;if(l)return T.push(o.getCurrentTokenRange()),T;var c=o.getCurrentTokenRow();if(M===-1){if(u.type==="comment.multiline")var S=6;else var S=a.getLine(c).length;return new v(c,S,b-1,k)}return new v(b,k,c-1,a.getLine(c-1).length)}}}}).call(p.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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,p=e("../range").Range,a=e("./folding/ruby").FoldMode,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};m.inherits(c,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,s),w=g.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[]\s*$/),M=l.match(/^\s*(class|def|module)\s.*$/),C=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||M||C||k)&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){var u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var g=this.$getIndent(u),w=l.getLine(o-1),x=this.$getIndent(w),M=l.getTabString();x.length<=g.length&&g.slice(-M.length)==M&&l.remove(new p(o,g.length-M.length,o,g.length))},this.getMatching=function(s,l,o){if(l==null){var u=s.selection.lead;o=u.column,l=u.row}var g=s.getTokenAt(l,o);if(g&&g.value in this.indentKeywords)return this.foldingRules.rubyBlock(s,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(vf)),vf.exports}Xb();var xf={exports:{}},_f;function e0(){return _f||(_f=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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",p="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",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":p,keyword:h},"identifier"),s="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",g="(?:(?:[1-9]\\d*)|(?:0))",w="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",M="(?:0[bB][01]+)",C="(?:"+g+"|"+w+"|"+x+"|"+M+")",k="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",R="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",I="(?:(?:"+R+"|"+T+")"+k+")",E="(?:"+I+"|"+R+")",N=`\\\\(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:s+'"{3}',next:"qqstring3"},{token:"string",regex:s+'"(?=.)',next:"qqstring"},{token:"string",regex:s+"'{3}",next:"qstring3"},{token:"string",regex:s+"'(?=.)",next:"qstring"},{token:"string",regex:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",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:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{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:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{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:C+"[lL]\\b"},{token:"constant.numeric",regex:C+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};m.inherits(v,y),r.PythonHighlightRules=v}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var m=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};m.inherits(v,y),(function(){this.getFoldWidgetRange=function(h,p,a){var c=h.getLine(a),s=c.match(this.foldingStartMarker);if(s)return s[1]?this.openingBracketBlock(h,s[1],a,s.index):s[2]?this.indentationBlock(h,a,s.index+s[2].length):this.indentationBlock(h,a)}}).call(v.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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,p=e("../range").Range,a=function(){this.HighlightRules=v,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};m.inherits(a,y),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,s),w=g.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
|
971
|
+
`&&o!=="\r"&&o!==`
|
972
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&c[g.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),g=l.getTabString();u.slice(-g.length)==g&&l.remove(new p(o,u.length-g.length,o,u.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){n&&(n.exports=e)})}()}(xf)),xf.exports}e0();var kf={exports:{}},Sf;function t0(){return Sf||(Sf=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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"}]}};m.inherits(v,y),r.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var m=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var p=v.getLine(h),a=p.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new m(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var m=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};m.inherits(h,v),(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(p,a,c){var s=p.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(p,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(p,a,c,s){var l=p.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(p,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(p,o[1],c,u);var g=p.getCommentFoldRange(c,u+o[0].length,1);return g&&!g.isMultiLine()&&(s?g=this.getSectionRange(p,c):a!="all"&&(g=null)),g}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],c,u):p.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(p,a){var c=p.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,g=p.getLength();++a<g;){c=p.getLine(a);var w=c.search(/\S/);if(w!==-1){if(s>w)break;var x=this.getFoldWidgetRange(p,"all",a);if(x){if(x.start.row<=l)break;if(x.isMultiLine())a=x.end.row;else if(s==w)break}u=a}}return new y(l,o,u,p.getLine(u).length)},this.getCommentRegionBlock=function(p,a,c){for(var s=a.search(/\s*$/),l=p.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++c<l;){a=p.getLine(c);var w=u.exec(a);if(w&&(w[1]?g--:g++,!g))break}var x=c;if(x>o)return new y(o,s,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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,p=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new p};m.inherits(c,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l);if(s=="start"){var g=l.match(/^.*[\{\(\[]\s*$/);g&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(s){var l=new a(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(s.getDocument()),l.on("annotate",function(o){s.setAnnotations(o.data)}),l.on("terminate",function(){s.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(kf)),kf.exports}t0();var $f={exports:{}},Af;function n0(){return Af||(Af=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop");e("../lib/lang");var y=e("./text_highlight_rules").TextHighlightRules,v=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",p=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",c=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",s=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=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",u=function(){var g=this.createKeywordMapper({"support.function":h,"support.constant":p,"support.type":v,"support.constant.color":a,"support.constant.fonts":c},"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:s},{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:"("+s+")(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:s},{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:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:g,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()};m.inherits(u,y),r.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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|$)"},v.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};m.inherits(v,y),v.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},v.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},v.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=v}),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,f){function m(){var s=a.replace("\\d","\\d\\-"),l={onMatch:function(u,g,w){var x=u.charAt(1)=="/"?2:1;return x==1?(g!=this.nextState?w.unshift(this.next,this.nextState,0):w.unshift(this.next),w[2]++):x==2&&g==this.nextState&&(w[1]--,(!w[1]||w[1]<0)&&(w.shift(),w.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+s+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,g,w){return g==w[0]&&w.shift(),u.length==2&&(w[0]==this.nextState&&w[1]--,(!w[1]||w[1]<0)&&w.splice(0,2)),this.next=w[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,y("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:s},{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"}]},l],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function y(s){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var v=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,p=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(s){var l={"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"},o=this.createKeywordMapper(l,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?: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]?|.)",w="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),y("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*)"+w+"(\\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*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\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:o,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:w+"(\\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"),y("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:[y("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:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!s||!s.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(M,C,k){if(this.next=M=="{"?this.nextState:"",M=="{"&&k.length)k.unshift("start",C);else if(M=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return M=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{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"}),(!s||s.jsx!=0)&&m.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};v.inherits(c,p),r.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(h){var p="[_: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:"(<\\?)("+p+")",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:p},{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:"(<\\!)("+p+")",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:"(?:(<)|(</))((?:"+p+":)?"+p+")",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:p},{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===v&&this.normalizeRules()};(function(){this.embedTagRules=function(h,p,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:p+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,s,l){return l.splice(0),this.token}}],this.embedRules(h,p,[{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(y.prototype),m.inherits(v,y),r.XmlHighlightRules=v}),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,f){var m=e("../lib/oop"),y=e("../lib/lang"),v=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,p=e("./xml_highlight_rules").XmlHighlightRules,a=y.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"}),c=function(){p.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(s,l){var o=a[l];return["meta.tag.punctuation."+(s=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".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(v,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};m.inherits(c,p),r.HtmlHighlightRules=c}),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,f){var m=e("../config").$modes,y=e("../lib/oop"),v=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,p=e("./html_highlight_rules").HtmlHighlightRules,a=function(s){return"(?:[^"+v.escapeRegExp(s)+"\\\\]|\\\\.)*"},c=function(){p.call(this);var s={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,g,w){var x=o.match(/^(\s*)([`~]+)(.*)/),M=/[\w-]+|$/.exec(x[3])[0];return m[M]||(M=""),g.unshift("githubblock",[],[x[1],x[2],M],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,g,w){var x=g[1],M=g[2][0],C=g[2][1],k=g[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<M.length+3&&b[2].length>=C.length&&b[2][0]==C[0])return g.splice(0,3),this.next=g.shift(),this.token;if(this.next="",k&&m[k]){var T=m[k].getTokenizer().getLineTokens(o,x.slice(0));return g[1]=T.state,T.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(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},s,{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},s,{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:l}),this.normalizeRules()};y.inherits(c,h),r.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,f){var m=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=r.FoldMode=function(){};m.inherits(h,y),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(p,a,c){var s=p.getLine(c);return this.foldingStartMarker.test(s)?s[0]=="`"&&p.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(p,a,c){function s(R){return M=p.getTokens(R)[0],M&&M.type.lastIndexOf(C,0)===0}function l(){var R=M.value[0];return R=="="?6:R=="-"?5:7-M.value.search(/[^#]|$/)}var o=p.getLine(c),u=o.length,g=p.getLength(),w=c,x=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(p.bgTokenizer.getState(c)!=="start"){for(;++c<g&&(o=p.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(w,u,c,0)}for(;c-- >0&&(o=p.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(c,o.length,w,0)}var M,C="markup.heading";if(s(c)){for(var k=l();++c<g;)if(s(c)){var b=l();if(b>=k)break}if(x=c-(!M||["=","-"].indexOf(M.value[0])==-1?1:2),x>w)for(;x>w&&/^\s*$/.test(p.getLine(x));)x--;if(x>w){var T=p.getLine(x).length;return new v(w,u,x,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var m=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var p=v.getLine(h),a=p.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new m(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,f){function m(a,c){return a&&a.type.lastIndexOf(c+".xml")>-1}var y=e("../../lib/oop"),v=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,p=function(){this.add("string_dquotes","insertion",function(a,c,s,l,o){if(o=='"'||o=="'"){var u=o,g=l.doc.getTextRange(s.getSelectionRange());if(g!==""&&g!=="'"&&g!='"'&&s.getWrapBehavioursEnabled())return{text:u+g+u,selection:!1};var w=s.getCursorPosition(),x=l.doc.getLine(w.row),M=x.substring(w.column,w.column+1),C=new h(l,w.row,w.column),k=C.getCurrentToken();if(M==u&&(m(k,"attribute-value")||m(k,"string")))return{text:"",selection:[1,1]};if(k||(k=C.stepBackward()),!k)return;for(;m(k,"tag-whitespace")||m(k,"whitespace");)k=C.stepBackward();var b=!M||M.match(/\s/);if(m(k,"attribute-equals")&&(b||M==">")||m(k,"decl-attribute-equals")&&(b||M=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,c,s,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var g=l.doc.getLine(o.start.row),w=g.substring(o.start.column+1,o.start.column+2);if(w==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(a,c,s,l,o){if(o==">"){var u=s.getSelectionRange().start,g=new h(l,u.row,u.column),w=g.getCurrentToken()||g.stepBackward();if(!w||!(m(w,"tag-name")||m(w,"tag-whitespace")||m(w,"attribute-name")||m(w,"attribute-equals")||m(w,"attribute-value"))||m(w,"reference.attribute-value"))return;if(m(w,"attribute-value")){var x=g.getCurrentTokenColumn()+w.value.length;if(u.column<x)return;if(u.column==x){var M=g.stepForward();if(M&&m(M,"attribute-value"))return;g.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!m(w,"tag-name");)if(w=g.stepBackward(),w.value=="<"){w=g.stepForward();break}var C=g.getCurrentTokenRow(),k=g.getCurrentTokenColumn();if(m(g.stepBackward(),"end-tag-open"))return;var b=w.value;return C==u.row&&(b=b.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,c,s,l,o){if(o==`
|
973
|
+
`){var u=s.getCursorPosition(),g=l.getLine(u.row),w=new h(l,u.row,u.column),x=w.getCurrentToken();if(m(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=w.stepBackward();if(!x)return;var M=x.value,C=w.getCurrentTokenRow();if(x=w.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[M]||!this.voidElements){var k=l.getTokenAt(u.row,u.column+1),g=l.getLine(C),b=this.$getIndent(g),T=b+l.getTabString();return k&&k.value==="</"?{text:`
|
974
|
+
`+T+`
|
975
|
+
`+b,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
+
`+T}}}}})};y.inherits(p,v),r.XmlBehaviour=p}),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,f){var m=e("../../lib/oop"),y=e("../../token_iterator").TokenIterator,v=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,p=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(v),this.add("autoclosing-fragment","insertion",function(c,s,l,o,u){if(u==">"){var g=l.getSelectionRange().start,w=new y(o,g.row,g.column),x=w.getCurrentToken()||w.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};m.inherits(p,v),r.JavaScriptBehaviour=p}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){function m(c,s){return c.type.lastIndexOf(s+".xml")>-1}var y=e("../../lib/oop"),v=e("../../range").Range,h=e("./fold_mode").FoldMode,p=r.FoldMode=function(c,s){h.call(this),this.voidElements=c||{},this.optionalEndTags=y.mixin({},this.voidElements),s&&y.mixin(this.optionalEndTags,s)};y.inherits(p,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(c,s,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?s==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,s){return/comment/.test(c.getState(s))&&/<!-/.test(c.getLine(s))?"start":""},this._getFirstTagInLine=function(c,s){for(var l=c.getTokens(s),o=new a,u=0;u<l.length;u++){var g=l[u];if(m(g,"tag-open")){if(o.end.column=o.start.column+g.value.length,o.closing=m(g,"end-tag-open"),g=l[++u],!g)return null;if(o.tagName=g.value,g.value===""){if(g=l[++u],!g)return null;o.tagName=g.value}for(o.end.column+=g.value.length,u++;u<l.length;u++)if(g=l[u],o.end.column+=g.value.length,m(g,"tag-close")){o.selfClosing=g.value=="/>";break}return o}if(m(g,"tag-close"))return o.selfClosing=g.value=="/>",o;o.start.column+=g.value.length}return null},this._findEndTagInLine=function(c,s,l,o){for(var u=c.getTokens(s),g=0,w=0;w<u.length;w++){var x=u[w];if(g+=x.value.length,!(g<o-1)&&m(x,"end-tag-open")&&(x=u[w+1],m(x,"tag-name")&&x.value===""&&(x=u[w+2]),x&&x.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,s,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var u=c.getMatchingTags({row:l,column:0});if(u)return new v(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(p.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var m=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};m.inherits(h,v),(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(p,a,c){var s=p.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(p,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(p,a,c,s){var l=p.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(p,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(p,o[1],c,u);var g=p.getCommentFoldRange(c,u+o[0].length,1);return g&&!g.isMultiLine()&&(s?g=this.getSectionRange(p,c):a!="all"&&(g=null)),g}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],c,u):p.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(p,a){var c=p.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,g=p.getLength();++a<g;){c=p.getLine(a);var w=c.search(/\S/);if(w!==-1){if(s>w)break;var x=this.getFoldWidgetRange(p,"all",a);if(x){if(x.start.row<=l)break;if(x.isMultiLine())a=x.end.row;else if(s==w)break}u=a}}return new y(l,o,u,p.getLine(u).length)},this.getCommentRegionBlock=function(p,a,c){for(var s=a.search(/\s*$/),l=p.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++c<l;){a=p.getLine(c);var w=u.exec(a);if(w&&(w[1]?g--:g++,!g))break}var x=c;if(x>o)return new y(o,s,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,f){var m=e("../../lib/oop"),y=e("./xml").FoldMode,v=e("./cstyle").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end))),this.xmlFoldMode=new y};m.inherits(h,v),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,a,c){var s=this.getFoldWidgetBase(p,a,c);return s||this.xmlFoldMode.getFoldWidget(p,a,c)},this.getFoldWidgetRange=function(p,a,c,s){var l=this.getFoldWidgetRangeBase(p,a,c,s);return l||this.xmlFoldMode.getFoldWidgetRange(p,a,c)}}).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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,p=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,s=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new c};m.inherits(s,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var g=this.$getIndent(o),w=this.getTokenizer().getLineTokens(o,l),x=w.tokens,M=w.state;if(x.length&&x[x.length-1].type=="comment")return g;if(l=="start"||l=="no_regex"){var C=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);C&&(g+=u)}else if(l=="doc-start"&&(M=="start"||M=="no_regex"))return"";return g},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new p(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(s.prototype),r.Mode=s}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,f){var m={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}},y=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var v=document.createElement("c").style;for(var h in v)if(typeof v[h]=="string"){var p=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});m.hasOwnProperty(p)||(m[p]=1)}}this.completionsDefined=!0},this.getCompletions=function(v,h,p,a){if(this.completionsDefined||this.defineCompletions(),v==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(p.row).substr(0,p.column),s=/\([^)]*$/.test(c);return s&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(v,h,p,a):this.getPropertyCompletions(v,h,p,a,s)}return[]},this.getPropertyCompletions=function(v,h,p,a,c){c=c||!1;var s=Object.keys(m);return s.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(v,h,p,a){var c=h.getLine(p.row).substr(0,p.column),s=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!s)return[];var l=[];return s in m&&typeof m[s]=="object"&&(l=Object.keys(m[s])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(y.prototype),r.CssCompletions=y}),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,f){var m=e("../../lib/oop");e("../behaviour").Behaviour;var y=e("./cstyle").CstyleBehaviour,v=e("../../token_iterator").TokenIterator,h=function(){this.inherit(y),this.add("colon","insertion",function(p,a,c,s,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new v(s,o.row,o.column),g=u.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=u.stepBackward()),g&&g.type==="support.type"){var w=s.doc.getLine(o.row),x=w.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(w.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(p,a,c,s,l){var o=s.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),g=new v(s,u.row,u.column),w=g.getCurrentToken();if(w&&w.value.match(/\s+/)&&(w=g.stepBackward()),w&&w.type==="support.type"){var x=s.doc.getLine(l.start.row),M=x.substring(l.end.column,l.end.column+1);if(M===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(p,a,c,s,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row),g=u.substring(o.column,o.column+1);if(g===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(p,a,c,s,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};m.inherits(h,y),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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,p=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,s=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new c,this.$completer=new a,this.foldingRules=new s};m.inherits(l,y),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,g){var w=this.$getIndent(u),x=this.getTokenizer().getLineTokens(u,o).tokens;if(x.length&&x[x.length-1].type=="comment")return w;var M=u.match(/^.*\{\s*$/);return M&&(w+=g),w},this.checkOutdent=function(o,u,g){return this.$outdent.checkOutdent(u,g)},this.autoOutdent=function(o,u,g){this.$outdent.autoOutdent(u,g)},this.getCompletions=function(o,u,g,w){return this.$completer.getCompletions(o,u,g,w)},this.createWorker=function(o){var u=new p(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(g){o.setAnnotations(g.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),r.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var m=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h,p){this.defaultMode=h,this.subModes=p};m.inherits(v,y),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var p in this.subModes)if(h.indexOf(p)===0)return this.subModes[p];return null},this.$tryMode=function(h,p,a,c){var s=this.$getMode(h);return s?s.getFoldWidget(p,a,c):""},this.getFoldWidget=function(h,p,a){return this.$tryMode(h.getState(a-1),h,p,a)||this.$tryMode(h.getState(a),h,p,a)||this.defaultMode.getFoldWidget(h,p,a)},this.getFoldWidgetRange=function(h,p,a){var c=this.$getMode(h.getState(a-1));return(!c||!c.getFoldWidget(h,p,a))&&(c=this.$getMode(h.getState(a))),(!c||!c.getFoldWidget(h,p,a))&&(c=this.defaultMode),c.getFoldWidgetRange(h,p,a)}}).call(v.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,f){var m=e("../../lib/oop"),y=e("./mixed").FoldMode,v=e("./xml").FoldMode,h=e("./cstyle").FoldMode,p=r.FoldMode=function(a,c){y.call(this,new v(a,c),{"js-":new h,"css-":new h})};m.inherits(p,y)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,f){function m(u,g){return u.type.lastIndexOf(g+".xml")>-1}function y(u,g){for(var w=new h(u,g.row,g.column),x=w.getCurrentToken();x&&!m(x,"tag-name");)x=w.stepBackward();if(x)return x.value}function v(u,g){for(var w=new h(u,g.row,g.column),x=w.getCurrentToken();x&&!m(x,"attribute-name");)x=w.stepBackward();if(x)return x.value}var h=e("../token_iterator").TokenIterator,p=["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"],c=p.concat(a),s={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:{}},l=Object.keys(s),o=function(){};(function(){this.getCompletions=function(u,g,w,x){var M=g.getTokenAt(w.row,w.column);if(!M)return[];if(m(M,"tag-name")||m(M,"tag-open")||m(M,"end-tag-open"))return this.getTagCompletions(u,g,w,x);if(m(M,"tag-whitespace")||m(M,"attribute-name"))return this.getAttributeCompletions(u,g,w,x);if(m(M,"attribute-value"))return this.getAttributeValueCompletions(u,g,w,x);var C=g.getLine(w.row).substr(0,w.column);return/&[a-z]*$/i.test(C)?this.getHTMLEntityCompletions(u,g,w,x):[]},this.getTagCompletions=function(u,g,w,x){return l.map(function(M){return{value:M,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,g,w,x){var M=y(g,w);if(!M)return[];var C=c;return M in s&&(C=C.concat(Object.keys(s[M]))),C.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,g,w,x){var M=y(g,w),C=v(g,w);if(!M)return[];var k=[];return M in s&&C in s[M]&&typeof s[M][C]=="object"&&(k=Object.keys(s[M][C])),k.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,g,w,x){var M=["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 M.map(function(C){return{caption:C,snippet:C,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),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,f){var m=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./javascript").Mode,p=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,s=e("./folding/html").FoldMode,l=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],w=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":p}),this.foldingRules=new s(this.voidElements,y.arrayToMap(g))};m.inherits(w,v),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=y.arrayToMap(u),this.getNextLineIndent=function(x,M,C){return this.$getIndent(M)},this.checkOutdent=function(x,M,C){return!1},this.getCompletions=function(x,M,C,k){return this.$completer.getCompletions(x,M,C,k)},this.createWorker=function(x){if(this.constructor==w){var M=new o(["ace"],"ace/mode/html_worker","Worker");return M.attachToDocument(x.getDocument()),this.fragmentContext&&M.call("setOptions",[{context:this.fragmentContext}]),M.on("error",function(C){x.setAnnotations(C.data)}),M.on("terminate",function(){x.clearAnnotations()}),M}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(w.prototype),r.Mode=w}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var m=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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",p=function(){var a=this.createKeywordMapper({keyword:v,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+s+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",g="(?:"+u+"|"+o+")",w="(?:&"+l+")",x="[a-zA-Z_][a-zA-Z0-9_]*",M="(?:"+x+"(?==))",C="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+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(b,T,R){var I=b[2]=="-"?"indentedHeredoc":"heredoc",E=b.split(this.splitRegex);return R.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(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:b}},{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:C},{token:"variable",regex:M},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:w},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:g},{token:"constant.numeric",regex:c+"\\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()};m.inherits(p,y),r.ShHighlightRules=p}),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,f){var m=e("../lib/oop"),y=e("./text").Mode,v=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,p=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=v,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};m.inherits(a,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,s),w=g.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
|
977
|
+
`&&o!=="\r"&&o!==`
|
978
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&c[g.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),g=l.getTabString();u.slice(-g.length)==g&&l.remove(new h(o,u.length-g.length,o,u.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,f){var m=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,p=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=h,this.$behaviour=new p,this.foldingRules=new a};m.inherits(s,v),(function(){this.voidElements=y.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(s.prototype),r.Mode=s}),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,f){var m=e("../lib/oop"),y=e("./behaviour/cstyle").CstyleBehaviour,v=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,p=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 p,this.$behaviour=new y({braces:!0})};m.inherits(a,v),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,s,l){if(c=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),r.Mode=a}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}($f)),$f.exports}n0();var Cf={exports:{}},Tf;function r0(){return Tf||(Tf=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-twilight .ace_gutter {
|
979
|
+
background: #232323;
|
980
|
+
color: #E2E2E2
|
981
|
+
}
|
982
|
+
|
983
|
+
.ace-twilight .ace_print-margin {
|
984
|
+
width: 1px;
|
985
|
+
background: #232323
|
986
|
+
}
|
987
|
+
|
988
|
+
.ace-twilight {
|
989
|
+
background-color: #141414;
|
990
|
+
color: #F8F8F8
|
991
|
+
}
|
992
|
+
|
993
|
+
.ace-twilight .ace_cursor {
|
994
|
+
color: #A7A7A7
|
995
|
+
}
|
996
|
+
|
997
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
998
|
+
background: rgba(221, 240, 255, 0.20)
|
999
|
+
}
|
1000
|
+
|
1001
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
1002
|
+
box-shadow: 0 0 3px 0px #141414;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
1006
|
+
background: rgb(102, 82, 0)
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
1010
|
+
margin: -1px 0 0 -1px;
|
1011
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
1015
|
+
background: rgba(255, 255, 255, 0.031)
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
.ace-twilight .ace_gutter-active-line {
|
1019
|
+
background-color: rgba(255, 255, 255, 0.031)
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
1023
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
.ace-twilight .ace_invisible {
|
1027
|
+
color: rgba(255, 255, 255, 0.25)
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
.ace-twilight .ace_keyword,
|
1031
|
+
.ace-twilight .ace_meta {
|
1032
|
+
color: #CDA869
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
.ace-twilight .ace_constant,
|
1036
|
+
.ace-twilight .ace_constant.ace_character,
|
1037
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
1038
|
+
.ace-twilight .ace_constant.ace_other,
|
1039
|
+
.ace-twilight .ace_heading,
|
1040
|
+
.ace-twilight .ace_markup.ace_heading,
|
1041
|
+
.ace-twilight .ace_support.ace_constant {
|
1042
|
+
color: #CF6A4C
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
1046
|
+
color: #F8F8F8;
|
1047
|
+
background-color: rgba(86, 45, 86, 0.75)
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
1051
|
+
text-decoration: underline;
|
1052
|
+
font-style: italic;
|
1053
|
+
color: #D2A8A1
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
.ace-twilight .ace_support {
|
1057
|
+
color: #9B859D
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
.ace-twilight .ace_fold {
|
1061
|
+
background-color: #AC885B;
|
1062
|
+
border-color: #F8F8F8
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
.ace-twilight .ace_support.ace_function {
|
1066
|
+
color: #DAD085
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
.ace-twilight .ace_list,
|
1070
|
+
.ace-twilight .ace_markup.ace_list,
|
1071
|
+
.ace-twilight .ace_storage {
|
1072
|
+
color: #F9EE98
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
1076
|
+
.ace-twilight .ace_meta.ace_tag {
|
1077
|
+
color: #AC885B
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
.ace-twilight .ace_string {
|
1081
|
+
color: #8F9D6A
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
.ace-twilight .ace_string.ace_regexp {
|
1085
|
+
color: #E9C062
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
.ace-twilight .ace_comment {
|
1089
|
+
font-style: italic;
|
1090
|
+
color: #5F5A60
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
.ace-twilight .ace_variable {
|
1094
|
+
color: #7587A6
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
.ace-twilight .ace_xml-pe {
|
1098
|
+
color: #494949
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
.ace-twilight .ace_indent-guide {
|
1102
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
.ace-twilight .ace_indent-guide-active {
|
1106
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
1107
|
+
}
|
1108
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,f){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=e("./twilight-css");var m=e("../lib/dom");m.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n&&(n.exports=e)})}()}(Cf)),Cf.exports}r0();var Ef={exports:{}},Rf;function i0(){return Rf||(Rf=1,function(n,t){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,f){function m(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var y=e("./lib/dom"),v=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,p=e("./lib/lang"),a=e("./range").Range,c=e("./range_list").RangeList,s=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,R){var I=b.session.getTextRange();return R?I.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+R+"$1"):I},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return o.getText&&o.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(b){var T=b.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:m.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:m.bind(null,{year:"2-digit"}),CURRENT_MONTH:m.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:m.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:m.bind(null,{month:"short"}),CURRENT_DATE:m.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:m.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:m.bind(null,{weekday:"short"}),CURRENT_HOUR:m.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:m.bind(null,{minute:"2-digit"}),CURRENT_SECOND:m.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var g=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function T(E){return E=E.substr(1),/^\d+$/.test(E)?[{tabstopId:parseInt(E,10)}]:[{text:E}]}function R(E){return"(?:[^\\\\"+E+"]|\\\\.)"}var I={regex:"/("+R("/")+"+)/",onMatch:function(E,N,S){var _=S[0];return _.fmtString=!0,_.guard=E.slice(1,-1),_.flag="",""},next:"formatString"};return b.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(E=_),[E]}},{regex:/}/,onMatch:function(E,N,S){return[S.length?S.shift():E]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(E,N,S){var _=T(E.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(E,N,S){var _=E.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(E,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?E=_:_=="n"?E=`
|
1110
|
+
`:_=="t"?E=" ":"ulULE".indexOf(_)!=-1&&(E={changeCase:_,local:_>"a"}),[E]}},{regex:"/\\w*}",onMatch:function(E,N,S){var _=S.shift();return _&&(_.flag=E.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(E,N,S){return[{text:E.slice(1)}]}},{regex:/\${\w+/,onMatch:function(E,N,S){var _={text:E.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(E,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(E,N,S){var _=S[0];return _.formatFunction=E.slice(2,-1),[S.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(E,N,S){E[1]=="+"&&(S[0].ifEnd=S[0]),E[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(T,R){return this.getTokenizer().getLineTokens(T,R).tokens.map(function(I){return I.value||I})},b.prototype.getVariableValue=function(T,R,I){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var E=this.variables[R];return typeof E=="function"&&(E=this.variables[R](T,R,I)),E??""},b.prototype.tmStrFormat=function(T,R,I){if(!R.fmt)return T;var E=R.flag||"",N=R.guard;N=new RegExp(N,E.replace(/[^gim]/g,""));var S=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,_=this,$=T.replace(N,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables(S,I),F="E",H=0;H<O.length;H++){var B=O[H];if(typeof B=="object")if(O[H]="",B.changeCase&&B.local){var V=O[H+1];V&&typeof V=="string"&&(B.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else B.changeCase&&(F=B.changeCase);else F=="U"?O[H]=B.toUpperCase():F=="L"&&(O[H]=B.toLowerCase())}return _.variables.__=L,O.join("")});return $},b.prototype.tmFormatFunction=function(T,R,I){return R.formatFunction=="upcase"?T.toUpperCase():R.formatFunction=="downcase"?T.toLowerCase():T},b.prototype.resolveVariables=function(T,R){function I(F){var H=T.indexOf(F,_+1);H!=-1&&(_=H)}for(var E=[],N="",S=!0,_=0;_<T.length;_++){var $=T[_];if(typeof $=="string"){E.push($),$==`
|
1111
|
+
`?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var L=T.indexOf($,_+1);L==-1&&(L=T.length),$.fmt=T.slice(_+1,L),_=L}if($.text){var O=this.getVariableValue(R,$.text,N)+"";$.fmtString&&(O=this.tmStrFormat(O,$,R)),$.formatFunction&&(O=this.tmFormatFunction(O,$,R)),O&&!$.ifEnd?(E.push(O),I($)):!O&&$.ifEnd&&I($.ifEnd)}else $.elseEnd?I($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&E.push($)}}return E},b.prototype.getDisplayTextForSnippet=function(T,R){var I=w.call(this,T,R);return I.text},b.prototype.insertSnippetForSelection=function(T,R,I){I===void 0&&(I={});var E=w.call(this,T,R,I),N=T.getSelectionRange(),S=T.session.replace(N,E.text),_=new x(T),$=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(E.tabstops,N.start,S,$)},b.prototype.insertSnippet=function(T,R,I){I===void 0&&(I={});var E=this;if(T.inVirtualSelectionMode)return E.insertSnippetForSelection(T,R,I);T.forEachSelection(function(){E.insertSnippetForSelection(T,R,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},b.prototype.$getScope=function(T){var R=T.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!T.session.$mode.inlinePhp&&(R="html");var I=T.getCursorPosition(),E=T.session.getState(I.row);typeof E=="object"&&(E=E[0]),E.substring&&(E.substring(0,3)=="js-"?R="javascript":E.substring(0,4)=="css-"?R="css":E.substring(0,4)=="php-"&&(R="php"))}return R},b.prototype.getActiveScopes=function(T){var R=this.$getScope(T),I=[R],E=this.snippetMap;return E[R]&&E[R].includeScopes&&I.push.apply(I,E[R].includeScopes),I.push("_"),I},b.prototype.expandWithTab=function(T,R){var I=this,E=T.forEachSelection(function(){return I.expandSnippetForSelection(T,R)},null,{keepOrder:!0});return E&&T.tabstopManager&&T.tabstopManager.tabNext(),E},b.prototype.expandSnippetForSelection=function(T,R){var I=T.getCursorPosition(),E=T.session.getLine(I.row),N=E.substring(0,I.column),S=E.substr(I.column),_=this.snippetMap,$;return this.getActiveScopes(T).some(function(L){var O=_[L];return O&&($=this.findMatchingSnippet(O,N,S)),!!$},this),$?(R&&R.dryRun||(T.session.doc.removeInLine(I.row,I.column-$.replaceBefore.length,I.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(T,$.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(T,R,I){for(var E=T.length;E--;){var N=T[E];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},b.prototype.register=function(T,R){function I(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function E(L,O,F){return L=I(L),O=I(O),L=O+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=R||"_"),R=L.scope,S[R]||(S[R]=[],_[R]={});var O=_[R];if(L.name){var F=O[L.name];F&&$.unregister(F),O[L.name]=L}S[R].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
|
1112
|
+
`):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=p.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=E(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=E(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(L){N(T[L])}),this._signal("registerSnippets",{scope:R})},b.prototype.unregister=function(T,R){function I(S){var _=N[S.scope||R];if(_&&_[S.name]){delete _[S.name];var $=E[S.scope||R],L=$&&$.indexOf(S);L>=0&&$.splice(L,1)}}var E=this.snippetMap,N=this.snippetNameMap;T.content?I(T):Array.isArray(T)&&T.forEach(I)},b.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var R=[],I={},E=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=E.exec(T);){if(N[1])try{I=JSON.parse(N[1]),R.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),R.push(I),I={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=$.exec(_)[1],I.trigger=$.exec(_)[1],I.endTrigger=$.exec(_)[1],I.endGuard=$.exec(_)[1]}else S=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):S&&(I[S]=_)}}return R},b.prototype.getSnippetByName=function(T,R){var I=this.snippetNameMap,E;return this.getActiveScopes(R).some(function(N){var S=I[N];return S&&(E=S[T]),!!E},this),E},b}();v.implement(g.prototype,h);var w=function(b,T,R){function I(J){for(var ae=[],me=0;me<J.length;me++){var we=J[me];if(typeof we=="object"){if(O[we.tabstopId])continue;var pe=J.lastIndexOf(we,me-1);we=ae[pe]||{tabstopId:we.tabstopId}}ae[me]=we}return ae}R===void 0&&(R={});var E=b.getCursorPosition(),N=b.session.getLine(E.row),S=b.session.getTabString(),_=N.match(/^\s*/)[0];E.column<_.length&&(_=_.slice(0,E.column)),T=T.replace(/\r/g,"");var $=this.tokenizeTmSnippet(T);$=this.resolveVariables($,b),$=$.map(function(J){return J==`
|
1113
|
+
`&&!R.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var L=[];$.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,we=L[me];if(we||(we=L[me]=[],we.index=me,we.value="",we.parents={}),we.indexOf(J)===-1){J.choices&&!we.choices&&(we.choices=J.choices),we.push(J);var pe=$.indexOf(J,ae+1);if(pe!==-1){var _e=$.slice(ae+1,pe),nt=_e.some(function(It){return typeof It=="object"});nt&&!we.value?we.value=_e:_e.length&&(!we.value||typeof we.value!="string")&&(we.value=_e.join(""))}}}}),L.forEach(function(J){J.length=0});for(var O={},F=0;F<$.length;F++){var H=$[F];if(typeof H=="object"){var B=H.tabstopId,V=L[B],q=$.indexOf(H,F+1);if(O[B]){O[B]===H&&(delete O[B],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[B]=H;var X=V.value;typeof X!="string"?X=I(X):H.fmt&&(X=this.tmStrFormat(X,H,b)),$.splice.apply($,[F+1,Math.max(0,q-F)].concat(X,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Z=0,re="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
|
1114
|
+
`);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:L,tokens:$}},x=function(){function b(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=p.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return b.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.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)},b.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},b.prototype.onChange=function(T){for(var R=T.action[0]=="r",I=this.selectedTabstop||{},E=I.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==I||E[_.index];if(_.rangeList.$bias=$?0:1,T.action=="remove"&&_!==I){var L=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(T.start,L);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(T.end,L);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(O,F),B=0;B<H.length;B++)this.removeRange(H[B])}_.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&R&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var R=this.session,I=R.getTextRange(T.firstNonLinked),E=0;E<T.length;E++){var N=T[E];if(N.linked){var S=N.original,_=r.snippetManager.tmStrFormat(I,S,this.editor);R.replace(N,_)}}this.$inChange=!1}},b.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,R=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),E=0;E<this.ranges.length;E++)if(!this.ranges[E].linked){var N=this.ranges[E].contains(T.row,T.column),S=I||this.ranges[E].contains(R.row,R.column);if(N&&S)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(T){var R=this.tabstops.length,I=this.index+(T||1);I=Math.min(Math.max(I,1),R),I==R&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},b.prototype.selectTabstop=function(T){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=T,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var I=R.firstNonLinked||R;if(R.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var E=this.editor.multiSelect;E.toSingleRange(I);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||E.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(T,R,I){var E=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=a.fromPoints(I,I);C(N.start,R),C(N.end,R),T[0]=[N],T[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,L=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=L;for(var B=0;B<O.length;B++){var V=O[B],q=a.fromPoints(V.start,V.end||V.start);M(q.start,R),M(q.end,R),q.original=V,q.tabstop=H,$.push(q),H!=O?H.unshift(q):H[B]=q,V.fmtString||H.firstNonLinked&&E?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new c,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},b.prototype.addTabstopMarkers=function(T){var R=this.session;T.forEach(function(I){I.markerId||(I.markerId=R.addMarker(I,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(T){var R=this.session;T.forEach(function(I){R.removeMarker(I.markerId),I.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(R){R.snippetId===T?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},b.prototype.removeRange=function(T){var R=T.tabstop.indexOf(T);R!=-1&&T.tabstop.splice(R,1),R=this.ranges.indexOf(T),R!=-1&&this.ranges.splice(R,1),R=T.tabstop.rangeList.ranges.indexOf(T),R!=-1&&T.tabstop.splice(R,1),this.session.removeMarker(T.markerId),T.tabstop.length||(R=this.tabstops.indexOf(T.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},b}();x.prototype.keyboardHandler=new s,x.prototype.keyboardHandler.bindKeys({Tab:function(b){r.snippetManager&&r.snippetManager.expandWithTab(b)||(b.tabstopManager.tabNext(1),b.renderer.scrollCursorIntoView())},"Shift-Tab":function(b){b.tabstopManager.tabNext(-1),b.renderer.scrollCursorIntoView()},Esc:function(b){b.tabstopManager.detach()}});var M=function(b,T){b.row==0&&(b.column+=T.column),b.row+=T.row},C=function(b,T){b.row==T.row&&(b.column-=T.column),b.row-=T.row};y.importCssString(`
|
1115
|
+
.ace_snippet-marker {
|
1116
|
+
-moz-box-sizing: border-box;
|
1117
|
+
box-sizing: border-box;
|
1118
|
+
background: rgba(194, 193, 208, 0.09);
|
1119
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
1120
|
+
position: absolute;
|
1121
|
+
}`,"snippets.css",!1),r.snippetManager=new g;var k=e("./editor").Editor;(function(){this.insertSnippet=function(b,T){return r.snippetManager.insertSnippet(this,b,T)},this.expandSnippet=function(b){return r.snippetManager.expandWithTab(this,b)}}).call(k.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,f){var m=e("../virtual_renderer").VirtualRenderer,y=e("../editor").Editor,v=e("../range").Range,h=e("../lib/event"),p=e("../lib/lang"),a=e("../lib/dom"),c=e("../config").nls,s=e("./../lib/useragent"),l=function(M){return"suggest-aria-id:".concat(M)},o=s.isSafari?"menu":"listbox",u=s.isSafari?"menuitem":"option",g=s.isSafari?"aria-current":"aria-selected",w=function(M){var C=new m(M);C.$maxLines=4;var k=new y(C);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function M(C){var k=a.createElement("div"),b=w(k);C&&C.appendChild(k),k.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",o),b.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var T=function(){};b.focus=T,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=T,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function($){var L=$.getDocumentPosition();b.selection.moveToPosition(L),E.start.row=E.end.row=L.row,$.stop()});var R,I=new v(-1,0,-1,1/0),E=new v(-1,0,-1,1/0);E.id=b.session.addMarker(E,"ace_active-line","fullLine"),b.setSelectOnHover=function($){$?I.id&&(b.session.removeMarker(I.id),I.id=null):I.id=b.session.addMarker(I,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function($){if(!R){R=$;return}if(!(R.x==$.x&&R.y==$.y)){R=$,R.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var L=R.getDocumentPosition().row;I.start.row!=L&&(I.id||b.setRow(L),S(L))}}),b.renderer.on("beforeRender",function(){if(R&&I.start.row!=-1){R.$pos=null;var $=R.getDocumentPosition().row;I.id||b.setRow($),S($,!0)}}),b.renderer.on("afterRender",function(){var $=b.getRow(),L=b.renderer.$textLayer,O=L.element.childNodes[$-L.config.firstRow],F=document.activeElement;if(O!==b.selectedNode&&b.selectedNode&&(a.removeCssClass(b.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),b.selectedNode.removeAttribute(g),b.selectedNode.removeAttribute("id")),b.selectedNode=O,O){a.addCssClass(O,"ace_selected");var H=l($);O.id=H,L.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute("role",u),O.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",b.getData($).caption||b.getData($).value),O.setAttribute("aria-setsize",b.data.length),O.setAttribute("aria-posinset",$+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(g,"true")}});var N=function(){S(-1)},S=function($,L){$!==I.start.row&&(I.start.row=I.end.row=$,L||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return I.start.row},h.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,N()}),b.on("hide",N),b.on("changeSelection",N),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function($){var L=b.data[$];return typeof L=="string"?L:L&&L.value||""};var _=b.session.bgTokenizer;return _.$tokenizeRow=function($){function L(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=b.data[$],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var H=O.caption||O.value||O.name,B=H.toLowerCase(),V=(b.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var re=B.indexOf(Z,q);if(re==-1)continue;L(H.slice(q,re),""),q=re+Z.length,L(H.slice(re,q),"completion-highlight")}return L(H.slice(q,H.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=T,_.start=T,b.session.$computeWidth=function(){return this.screenWidth=0},b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.filterText="",b.isMouseOver=!1,b.data=[],b.setData=function($,L){b.filterText=L||"",b.setValue(p.stringRepeat(`
|
1122
|
+
`,$.length),-1),b.data=$||[],b.setRow(0)},b.getData=function($){return b.data[$]},b.getRow=function(){return E.start.row},b.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(b.selection.clearSelection(),E.start.row=E.end.row=$||0,b.session._emit("changeBackMarker"),b.moveCursorTo($||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function($,L,O,F){if(!F&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===$.top&&b.anchorPos.left===$.left&&b.anchor===O)return!0;var H=this.container,B=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*L*1.4,G={top:0,bottom:0},Z=B-$.top-3*this.$borderSize-L,re=$.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=$.top+L+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=B;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(H.style.top="",H.style.bottom=B-G.bottom+"px",b.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",b.isTopdown=!0),H.style.display="";var ae=$.left;return ae+H.offsetWidth>V&&(ae=V-H.offsetWidth),H.style.left=ae+"px",H.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),R=null),b.anchorPos=$,b.anchor=O,!0},b.show=function($,L,O){this.tryShow($,L,O?"bottom":void 0,!0)},b.goTo=function($){var L=this.getRow(),O=this.session.getLength()-1;switch($){case"up":L=L<=0?O:L-1;break;case"down":L=L>=O?-1:L+1;break;case"start":L=0;break;case"end":L=O}this.setRow(L)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return M}();a.importCssString(`
|
1123
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1124
|
+
background-color: #CAD6FA;
|
1125
|
+
z-index: 1;
|
1126
|
+
}
|
1127
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1128
|
+
background-color: #3a674e;
|
1129
|
+
}
|
1130
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
1131
|
+
border: 1px solid #abbffe;
|
1132
|
+
margin-top: -1px;
|
1133
|
+
background: rgba(233,233,253,0.4);
|
1134
|
+
position: absolute;
|
1135
|
+
z-index: 2;
|
1136
|
+
}
|
1137
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
1138
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
1139
|
+
background: rgba(58, 103, 78, 0.62);
|
1140
|
+
}
|
1141
|
+
.ace_completion-meta {
|
1142
|
+
opacity: 0.5;
|
1143
|
+
margin-left: 0.9em;
|
1144
|
+
}
|
1145
|
+
.ace_completion-message {
|
1146
|
+
margin-left: 0.9em;
|
1147
|
+
color: blue;
|
1148
|
+
}
|
1149
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1150
|
+
color: #2d69c7;
|
1151
|
+
}
|
1152
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1153
|
+
color: #93ca12;
|
1154
|
+
}
|
1155
|
+
.ace_editor.ace_autocomplete {
|
1156
|
+
width: 300px;
|
1157
|
+
z-index: 200000;
|
1158
|
+
border: 1px lightgray solid;
|
1159
|
+
position: fixed;
|
1160
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
1161
|
+
line-height: 1.4;
|
1162
|
+
background: #fefefe;
|
1163
|
+
color: #111;
|
1164
|
+
}
|
1165
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
1166
|
+
border: 1px #484747 solid;
|
1167
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
1168
|
+
line-height: 1.4;
|
1169
|
+
background: #25282c;
|
1170
|
+
color: #c1c1c1;
|
1171
|
+
}
|
1172
|
+
.ace_autocomplete .ace_text-layer {
|
1173
|
+
width: calc(100% - 8px);
|
1174
|
+
}
|
1175
|
+
.ace_autocomplete .ace_line {
|
1176
|
+
display: flex;
|
1177
|
+
align-items: center;
|
1178
|
+
}
|
1179
|
+
.ace_autocomplete .ace_line > * {
|
1180
|
+
min-width: 0;
|
1181
|
+
flex: 0 0 auto;
|
1182
|
+
}
|
1183
|
+
.ace_autocomplete .ace_line .ace_ {
|
1184
|
+
flex: 0 1 auto;
|
1185
|
+
overflow: hidden;
|
1186
|
+
text-overflow: ellipsis;
|
1187
|
+
}
|
1188
|
+
.ace_autocomplete .ace_completion-spacer {
|
1189
|
+
flex: 1;
|
1190
|
+
}
|
1191
|
+
.ace_autocomplete.ace_loading:after {
|
1192
|
+
content: "";
|
1193
|
+
position: absolute;
|
1194
|
+
top: 0px;
|
1195
|
+
height: 2px;
|
1196
|
+
width: 8%;
|
1197
|
+
background: blue;
|
1198
|
+
z-index: 100;
|
1199
|
+
animation: ace_progress 3s infinite linear;
|
1200
|
+
animation-delay: 300ms;
|
1201
|
+
transform: translateX(-100%) scaleX(1);
|
1202
|
+
}
|
1203
|
+
@keyframes ace_progress {
|
1204
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
1205
|
+
50% { transform: translateX(625%) scaleX(2) }
|
1206
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
1207
|
+
}
|
1208
|
+
@media (prefers-reduced-motion) {
|
1209
|
+
.ace_autocomplete.ace_loading:after {
|
1210
|
+
transform: translateX(625%) scaleX(2);
|
1211
|
+
animation: none;
|
1212
|
+
}
|
1213
|
+
}
|
1214
|
+
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=w,r.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var m=function(){function y(v){this.editor=v,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return y.prototype.setScreenReaderContent=function(v){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var p=this.popup.getRow(),a=this.popup.renderer.$textLayer,c=a.element.childNodes[p-a.config.firstRow];if(c){for(var s="doc-tooltip ",l=0;l<this._lines.length;l++)s+="ace-inline-screenreader-line-".concat(l," ");c.setAttribute("aria-describedby",s)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=v.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},y.prototype.destroy=function(){this.screenReaderDiv.remove()},y.prototype.createCodeBlock=function(){var v=document.createElement("pre");v.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var p=document.createElement("code");p.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);p.appendChild(a),v.appendChild(p)}return v},y}();r.AceInlineScreenReader=m}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var m=e("../snippets").snippetManager,y=e("./inline_screenreader").AceInlineScreenReader,v=function(){function h(){this.editor=null}return h.prototype.show=function(p,a,c){if(c=c||"",p&&this.editor&&this.editor!==p&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!p||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new y(p));var s=a.snippet?m.getDisplayTextForSnippet(p,a.snippet):a.value;return a.hideInlinePreview||!s||!s.startsWith(c)?!1:(this.editor=p,this.inlineScreenReader.setScreenReaderContent(s),s=s.slice(c.length),s===""?p.removeGhostText():p.setGhostText(s),!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=v}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(y,v,h){var p=0,a=y.length;a===0&&h();for(var c=0;c<a;c++)v(y[c],function(s,l){p++,p===a&&h(s,l)})};var m=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(y,v,h){h=h||m;for(var p=[],a=v-1;a>=0&&h.test(y[a]);a--)p.push(y[a]);return p.reverse().join("")},r.retrieveFollowingIdentifier=function(y,v,h){h=h||m;for(var p=[],a=v;a<y.length&&h.test(y[a]);a++)p.push(y[a]);return p},r.getCompletionPrefix=function(y){var v=y.getCursorPosition(),h=y.session.getLine(v.row),p;return y.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(c){!p&&c&&(p=this.retrievePrecedingIdentifier(h,v.column,c))}).bind(this))}).bind(this)),p||this.retrievePrecedingIdentifier(h,v.column)},r.triggerAutocomplete=function(y,h){var h=h??y.session.getPrecedingCharacter();return y.completers.some(function(p){if(p.triggerCharacters&&Array.isArray(p.triggerCharacters))return p.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,f){var m=e("./keyboard/hash_handler").HashHandler,y=e("./autocomplete/popup").AcePopup,v=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,p=e("./autocomplete/util"),a=e("./lib/lang"),c=e("./lib/dom"),s=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,g=function(C,k){k.completer&&k.completer.destroy()},w=function(){function C(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new m,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 k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new M(C.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(C,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),C.prototype.$init=function(){return this.popup=new y(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.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)),o.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},C.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new v,this.inlineRenderer},C.prototype.getPopup=function(){return this.popup||this.$init()},C.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},C.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},C.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),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)},C.prototype.$updateGhostText=function(k){var b=this.base.row,T=this.base.column,R=this.editor.getCursorPosition().column,I=this.editor.session.getLine(b).slice(T,R);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},C.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},C.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},C.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},C.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},C.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},C.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,T=b.layerConfig.lineHeight,R=b.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();R.top+=I.top-b.layerConfig.offset,R.left+=I.left-k.renderer.scrollLeft,R.left+=b.gutterWidth;var E={top:R.top,left:R.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(E.top+=b.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,S=N<E.top?{top:N,left:E.left}:E;this.popup.tryShow(S,T,"bottom")||this.popup.tryShow(R,T,"top")||this.popup.show(R,T)},C.prototype.openPopup=function(k,b,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var R=this.popup.getRow(),I=this.popup.data[R];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}),k.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===R&&I!==this.completions.filtered[E]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(E===R&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},C.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()},C.prototype.changeListener=function(k){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},C.prototype.blurListener=function(k){var b=document.activeElement,T=this.editor.textInput.getElement(),R=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;b!=T&&b.parentNode!=I&&!R&&b!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},C.prototype.mousedownListener=function(k){this.detach()},C.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},C.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},C.prototype.goTo=function(k){this.popup.goTo(k)},C.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,b);return this.completions==T&&this.detach(),R},C.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},C.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},C.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},C.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var R=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:R});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,k);return}if(b&&b.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new M(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),R=this.editor.getCursorPosition(),I=p.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(R.row,R.column-I.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:R}).provideCompletions(this.editor,E,(function(N,S,_){var $=S.filtered,L=p.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new M(F),this.openPopup(this.editor,L,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==L&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new M(C.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},C.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},C.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,T=b&&(b[k.getHoveredRow()]||b[k.getRow()]),R=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,E=0;E<I;E++){var N=this.editor.completers[E];if(N.getDocTooltip&&T.completerId===N.id){R=N.getDocTooltip(T);break}}if(!R&&typeof T!="string"&&(R=T),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},C.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=c.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",u));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,I=R.container.getBoundingClientRect();T.style.top=R.container.style.top,T.style.bottom=R.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?R.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=R.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},C.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},C.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},C.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",g),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},C.for=function(k){return k.completer instanceof C||(k.completer&&(k.completer.destroy(),k.completer=null),l.get("sharedPopups")?(C.$sharedInstance||(C.$sharedInstance=new C),k.completer=C.$sharedInstance):(k.completer=new C,k.once("destroy",g))),k.completer},C}();w.prototype.commands={Up:function(C){C.completer.goTo("up")},Down:function(C){C.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(C){C.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(C){C.completer.goTo("end")},Esc:function(C){C.completer.detach()},Return:function(C){return C.completer.insertMatch()},"Shift-Return":function(C){C.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(C){var k=C.completer.insertMatch();if(k||C.tabstopManager)return k;C.completer.goTo("down")},Backspace:function(C){C.execCommand("backspace");var k=p.getCompletionPrefix(C);!k&&C.completer&&C.completer.detach()},PageUp:function(C){C.completer.popup.gotoPageUp()},PageDown:function(C){C.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function(C,k){var b=w.for(C);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(C,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function C(k){this.initialPosition=k,this.active=!0}return C.prototype.insertByIndex=function(k,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],T)},C.prototype.insertMatch=function(k,b,T){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var R=this.completions.filterText.length,I=0;if(b.range&&b.range.start.row===b.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-b.range.start.column,I+=b.range.end.column-this.initialPosition.pos.column),R||I){var E;k.selection.getAllRanges?E=k.selection.getAllRanges():E=[k.getSelectionRange()];for(var N=0,S;S=E[N];N++)S.start.column-=R,S.end.column+=I,k.session.remove(S)}b.snippet?s.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},C.prototype.$insertString=function(k,b){var T=b.value||b;k.execCommand("insertstring",T)},C.prototype.gatherCompletions=function(k,b){var T=k.getSession(),R=k.getCursorPosition(),I=p.getCompletionPrefix(k),E=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,T,R,I,function($,L){S.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:S.hideInlinePreview})})),!$&&L&&(E=E.concat(L)),b(null,{prefix:p.getCompletionPrefix(k),matches:E,finished:--N===0})})}),!0},C.prototype.provideCompletions=function(k,b,T){var R=(function(S){var _=S.prefix,$=S.matches;this.completions=new M($),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&T(null,this.completions,S.finished)}).bind(this),I=!0,E=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(T(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(I){E=_;return}R(_)}}}).bind(this)),I=!1,E){var N=E;E=null,R(N)}},C.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},C}(),M=function(){function C(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return C.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(R,I){return I.exactMatch-R.exactMatch||I.$score-R.$score||(R.caption||R.value).localeCompare(I.caption||I.value)});var T=null;b=b.filter(function(R){var I=R.snippet||R.caption||R.value;return I===T?!1:(T=I,!0)}),this.filtered=b},C.prototype.filterCompletions=function(k,b){var T=[],R=b.toUpperCase(),I=b.toLowerCase();e:for(var E=0,N;N=k[E];E++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,L=0,O,F;if(this.exactMatch){if(b!==S.substr(0,b.length))continue e}else{var H=S.toLowerCase().indexOf(I);if(H>-1)L=H;else for(var B=0;B<b.length;B++){var V=S.indexOf(I[B],_+1),q=S.indexOf(R[B],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(L+=10),L+=F,$|=1<<B),_=O}}N.matchMask=$,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,T.push(N)}}return T},C}();r.Autocomplete=w,r.CompletionProvider=x,r.FilteredList=M}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function m(p,a){var c=p.getTextRange(v.fromPoints({row:0,column:0},a));return c.split(h).length-1}function y(p,a){var c=m(p,a),s=p.getValue().split(h),l=Object.create(null),o=s[c];return s.forEach(function(u,g){if(!(!u||u===o)){var w=Math.abs(c-g),x=s.length-w;l[u]?l[u]=Math.max(x,l[u]):l[u]=x}}),l}var v=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(p,a,c,s,l){var o=y(a,c),u=Object.keys(o);l(null,u.map(function(g){return{caption:g,value:g,score:o[g],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var m=e("../snippets").snippetManager,y=e("../autocomplete").Autocomplete,v=e("../config"),h=e("../lib/lang"),p=e("../autocomplete/util"),a=e("../autocomplete/text_completer"),c={getCompletions:function(R,I,E,N,S){if(I.$mode.completer)return I.$mode.completer.getCompletions(R,I,E,N,S);var _=R.session.getState(E.row),$=I.$mode.getCompletions(_,I,E,N);$=$.map(function(L){return L.completerId=c.id,L}),S(null,$)},id:"keywordCompleter"},s=function(R){var I={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(E,N,S,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(E,N){return I[N]})},l={getCompletions:function(R,I,E,N,S){var _=[],$=I.getTokenAt(E.row,E.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=m.getActiveScopes(R);var L=m.snippetMap,O=[];_.forEach(function(F){for(var H=L[F]||[],B=H.length;B--;){var V=H[B],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.id})}},this),S(null,O)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(s(R.snippet))].join(""))},id:"snippetCompleter"},o=[l,a,c];r.setCompleters=function(R){o.length=0,R&&o.push.apply(o,R)},r.addCompleter=function(R){o.push(R)},r.textCompleter=a,r.keyWordCompleter=c,r.snippetCompleter=l;var u={name:"expandSnippet",exec:function(R){return m.expandWithTab(R)},bindKey:"Tab"},g=function(R,I){w(I.session.$mode)},w=function(R){typeof R=="string"&&(R=v.$modes[R]),R&&(m.files||(m.files={}),x(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(w))},x=function(R,I){!I||!R||m.files[R]||(m.files[R]={},v.loadModule(I,function(E){E&&(m.files[R]=E,!E.snippets&&E.snippetText&&(E.snippets=m.parseSnippetFile(E.snippetText)),m.register(E.snippets||[],E.scope),E.includeScopes&&(m.snippetMap[E.scope].includeScopes=E.includeScopes,E.includeScopes.forEach(function(N){w("ace/mode/"+N)})))}))},M=function(R){var I=R.editor,E=I.completer&&I.completer.activated;if(R.command.name==="backspace")E&&!p.getCompletionPrefix(I)&&I.completer.detach();else if(R.command.name==="insertstring"&&!E){C=R;var N=R.editor.$liveAutocompletionDelay;N?k.delay(N):b(R)}},C,k=h.delayedCall(function(){b(C)},0),b=function(R){var I=R.editor,E=p.getCompletionPrefix(I),N=R.args,S=p.triggerAutocomplete(I,N);if(E&&E.length>=I.$liveAutocompletionThreshold||S){var _=y.for(I);_.autoShown=!0,_.showPopup(I)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.addCommand(y.startCommand)):this.commands.removeCommand(y.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.on("afterExec",M)):this.commands.off("afterExec",M)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(u),this.on("changeMode",g),g(null,this)):(this.commands.removeCommand(u),this.off("changeMode",g))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(Ef)),Ef.exports}i0();var Mf={exports:{}},Lf;function o0(){return Lf||(Lf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
|
1215
|
+
|
1216
|
+
/* ------------------------------------------------------------------------------------------
|
1217
|
+
* Editor Search Form
|
1218
|
+
* --------------------------------------------------------------------------------------- */
|
1219
|
+
.ace_search {
|
1220
|
+
background-color: #ddd;
|
1221
|
+
color: #666;
|
1222
|
+
border: 1px solid #cbcbcb;
|
1223
|
+
border-top: 0 none;
|
1224
|
+
overflow: hidden;
|
1225
|
+
margin: 0;
|
1226
|
+
padding: 4px 6px 0 4px;
|
1227
|
+
position: absolute;
|
1228
|
+
top: 0;
|
1229
|
+
z-index: 99;
|
1230
|
+
white-space: normal;
|
1231
|
+
}
|
1232
|
+
.ace_search.left {
|
1233
|
+
border-left: 0 none;
|
1234
|
+
border-radius: 0px 0px 5px 0px;
|
1235
|
+
left: 0;
|
1236
|
+
}
|
1237
|
+
.ace_search.right {
|
1238
|
+
border-radius: 0px 0px 0px 5px;
|
1239
|
+
border-right: 0 none;
|
1240
|
+
right: 0;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
.ace_search_form, .ace_replace_form {
|
1244
|
+
margin: 0 20px 4px 0;
|
1245
|
+
overflow: hidden;
|
1246
|
+
line-height: 1.9;
|
1247
|
+
}
|
1248
|
+
.ace_replace_form {
|
1249
|
+
margin-right: 0;
|
1250
|
+
}
|
1251
|
+
.ace_search_form.ace_nomatch {
|
1252
|
+
outline: 1px solid red;
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
.ace_search_field {
|
1256
|
+
border-radius: 3px 0 0 3px;
|
1257
|
+
background-color: white;
|
1258
|
+
color: black;
|
1259
|
+
border: 1px solid #cbcbcb;
|
1260
|
+
border-right: 0 none;
|
1261
|
+
outline: 0;
|
1262
|
+
padding: 0;
|
1263
|
+
font-size: inherit;
|
1264
|
+
margin: 0;
|
1265
|
+
line-height: inherit;
|
1266
|
+
padding: 0 6px;
|
1267
|
+
min-width: 17em;
|
1268
|
+
vertical-align: top;
|
1269
|
+
min-height: 1.8em;
|
1270
|
+
box-sizing: content-box;
|
1271
|
+
}
|
1272
|
+
.ace_searchbtn {
|
1273
|
+
border: 1px solid #cbcbcb;
|
1274
|
+
line-height: inherit;
|
1275
|
+
display: inline-block;
|
1276
|
+
padding: 0 6px;
|
1277
|
+
background: #fff;
|
1278
|
+
border-right: 0 none;
|
1279
|
+
border-left: 1px solid #dcdcdc;
|
1280
|
+
cursor: pointer;
|
1281
|
+
margin: 0;
|
1282
|
+
position: relative;
|
1283
|
+
color: #666;
|
1284
|
+
}
|
1285
|
+
.ace_searchbtn:last-child {
|
1286
|
+
border-radius: 0 3px 3px 0;
|
1287
|
+
border-right: 1px solid #cbcbcb;
|
1288
|
+
}
|
1289
|
+
.ace_searchbtn:disabled {
|
1290
|
+
background: none;
|
1291
|
+
cursor: default;
|
1292
|
+
}
|
1293
|
+
.ace_searchbtn:hover {
|
1294
|
+
background-color: #eef1f6;
|
1295
|
+
}
|
1296
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
1297
|
+
padding: 0px 0.7em
|
1298
|
+
}
|
1299
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
1300
|
+
content: "";
|
1301
|
+
border: solid 2px #888;
|
1302
|
+
width: 0.5em;
|
1303
|
+
height: 0.5em;
|
1304
|
+
border-width: 2px 0 0 2px;
|
1305
|
+
display:inline-block;
|
1306
|
+
transform: rotate(-45deg);
|
1307
|
+
}
|
1308
|
+
.ace_searchbtn.next:after {
|
1309
|
+
border-width: 0 2px 2px 0 ;
|
1310
|
+
}
|
1311
|
+
.ace_searchbtn_close {
|
1312
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
1313
|
+
border-radius: 50%;
|
1314
|
+
border: 0 none;
|
1315
|
+
color: #656565;
|
1316
|
+
cursor: pointer;
|
1317
|
+
font: 16px/16px Arial;
|
1318
|
+
padding: 0;
|
1319
|
+
height: 14px;
|
1320
|
+
width: 14px;
|
1321
|
+
top: 9px;
|
1322
|
+
right: 7px;
|
1323
|
+
position: absolute;
|
1324
|
+
}
|
1325
|
+
.ace_searchbtn_close:hover {
|
1326
|
+
background-color: #656565;
|
1327
|
+
background-position: 50% 100%;
|
1328
|
+
color: white;
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
.ace_button {
|
1332
|
+
margin-left: 2px;
|
1333
|
+
cursor: pointer;
|
1334
|
+
-webkit-user-select: none;
|
1335
|
+
-moz-user-select: none;
|
1336
|
+
-o-user-select: none;
|
1337
|
+
-ms-user-select: none;
|
1338
|
+
user-select: none;
|
1339
|
+
overflow: hidden;
|
1340
|
+
opacity: 0.7;
|
1341
|
+
border: 1px solid rgba(100,100,100,0.23);
|
1342
|
+
padding: 1px;
|
1343
|
+
box-sizing: border-box!important;
|
1344
|
+
color: black;
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
.ace_button:hover {
|
1348
|
+
background-color: #eee;
|
1349
|
+
opacity:1;
|
1350
|
+
}
|
1351
|
+
.ace_button:active {
|
1352
|
+
background-color: #ddd;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
.ace_button.checked {
|
1356
|
+
border-color: #3399ff;
|
1357
|
+
opacity:1;
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
.ace_search_options{
|
1361
|
+
margin-bottom: 3px;
|
1362
|
+
text-align: right;
|
1363
|
+
-webkit-user-select: none;
|
1364
|
+
-moz-user-select: none;
|
1365
|
+
-o-user-select: none;
|
1366
|
+
-ms-user-select: none;
|
1367
|
+
user-select: none;
|
1368
|
+
clear: both;
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
.ace_search_counter {
|
1372
|
+
float: left;
|
1373
|
+
font-family: arial;
|
1374
|
+
padding: 0 8px;
|
1375
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","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,f){var m=e("../lib/dom"),y=e("../lib/lang"),v=e("../lib/event"),h=e("./searchbox-css"),p=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),c=e("../config").nls,s=999;m.importCssString(h,"ace_searchbox",!1);var l=function(){function g(w,x,M){this.activeInput;var C=m.createElement("div");m.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("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"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("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:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],C),this.element=C.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(w),m.importCssString(h,"ace_searchbox",w.container)}return g.prototype.setEditor=function(w){w.searchBox=this,w.renderer.scroller.appendChild(this.element),this.editor=w},g.prototype.setSession=function(w){this.searchRange=null,this.$syncOptions(!0)},g.prototype.$initElements=function(w){this.searchBox=w.querySelector(".ace_search_form"),this.replaceBox=w.querySelector(".ace_replace_form"),this.searchOption=w.querySelector("[action=searchInSelection]"),this.replaceOption=w.querySelector("[action=toggleReplace]"),this.regExpOption=w.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=w.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=w.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=w.querySelector(".ace_search_counter")},g.prototype.$init=function(){var w=this.element;this.$initElements(w);var x=this;v.addListener(w,"mousedown",function(M){setTimeout(function(){x.activeInput.focus()},0),v.stopPropagation(M)}),v.addListener(w,"click",function(M){var C=M.target||M.srcElement,k=C.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),v.stopPropagation(M)}),v.addCommandKeyListener(w,function(M,C,k){var b=a.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(C,b);T&&T.exec&&(T.exec(x),v.stopEvent(M))}),this.$onChange=y.delayedCall(function(){x.find(!1,!1)}),v.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),v.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),v.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},g.prototype.setSearchRange=function(w){this.searchRange=w,w?this.searchRangeMarker=this.editor.session.addMarker(w,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},g.prototype.$syncOptions=function(w){m.setCssClass(this.replaceOption,"checked",this.searchRange),m.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",m.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),m.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),m.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,w)},g.prototype.highlight=function(w){this.editor.session.highlight(w||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},g.prototype.find=function(w,x,M){var C=this.editor.find(this.searchInput.value,{skipCurrent:w,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:M,range:this.searchRange}),k=!C&&this.searchInput.value;m.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},g.prototype.updateCounter=function(){var w=this.editor,x=w.$search.$options.re,M=x.unicode,C=0,k=0;if(x){var b=this.searchRange?w.session.getTextRange(this.searchRange):w.getValue(),T=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(T-=w.session.doc.positionToIndex(this.searchRange.start));for(var R=x.lastIndex=0,I;(I=x.exec(b))&&(C++,R=I.index,R<=T&&k++,!(C>s||!I[0]&&(x.lastIndex=R+=y.skipEmptyMatch(b,R,M),R>=b.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,C>s?s+"+":C])},g.prototype.findNext=function(){this.find(!0,!1)},g.prototype.findPrev=function(){this.find(!0,!0)},g.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!w&&this.searchInput.value;m.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},g.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},g.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},g.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},g.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},g.prototype.show=function(w,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},g.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},g}(),o=new p;o.bindKeys({"Ctrl-f|Command-f":function(g){var w=g.isReplace=!g.isReplace;g.replaceBox.style.display=w?"":"none",g.replaceOption.checked=!1,g.$syncOptions(),g.searchInput.focus()},"Ctrl-H|Command-Option-F":function(g){g.editor.getReadOnly()||(g.replaceOption.checked=!0,g.$syncOptions(),g.replaceInput.focus())},"Ctrl-G|Command-G":function(g){g.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(g){g.findPrev()},esc:function(g){setTimeout(function(){g.hide()})},Return:function(g){g.activeInput==g.replaceInput&&g.replace(),g.findNext()},"Shift-Return":function(g){g.activeInput==g.replaceInput&&g.replace(),g.findPrev()},"Alt-Return":function(g){g.activeInput==g.replaceInput&&g.replaceAll(),g.findAll()},Tab:function(g){(g.activeInput==g.replaceInput?g.searchInput:g.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(g){g.regExpOption.checked=!g.regExpOption.checked,g.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(g){g.caseSensitiveOption.checked=!g.caseSensitiveOption.checked,g.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(g){g.wholeWordOption.checked=!g.wholeWordOption.checked,g.$syncOptions()}},{name:"toggleReplace",exec:function(g){g.replaceOption.checked=!g.replaceOption.checked,g.$syncOptions()}},{name:"searchInSelection",exec:function(g){g.searchOption.checked=!g.searchRange,g.setSearchRange(g.searchOption.checked&&g.editor.getSelectionRange()),g.$syncOptions()}}]);var u=new p([{bindKey:"Esc",name:"closeSearchBar",exec:function(g){g.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,r.SearchBox=l,r.Search=function(g,w){var x=g.searchBox||new l(g);x.show(g.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Mf)),Mf.exports}o0();var s0=Object.defineProperty,a0=(n,t,e)=>t in n?s0(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Rc=(n,t,e)=>a0(n,typeof t!="symbol"?t+"":t,e);function If(n,t){return function(){return n.apply(t,arguments)}}const{toString:l0}=Object.prototype,{getPrototypeOf:Mc}=Object,Ea=(n=>t=>{const e=l0.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=n=>(n=n.toLowerCase(),t=>Ea(t)===n),Ra=n=>t=>typeof t===n,{isArray:Ro}=Array,xs=Ra("undefined");function c0(n){return n!==null&&!xs(n)&&n.constructor!==null&&!xs(n.constructor)&&rr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Of=Ar("ArrayBuffer");function u0(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Of(n.buffer),t}const h0=Ra("string"),rr=Ra("function"),Df=Ra("number"),Ma=n=>n!==null&&typeof n=="object",d0=n=>n===!0||n===!1,La=n=>{if(Ea(n)!=="object")return!1;const t=Mc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},f0=Ar("Date"),p0=Ar("File"),g0=Ar("Blob"),m0=Ar("FileList"),y0=n=>Ma(n)&&rr(n.pipe),w0=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||rr(n.append)&&((t=Ea(n))==="formdata"||t==="object"&&rr(n.toString)&&n.toString()==="[object FormData]"))},v0=Ar("URLSearchParams"),[b0,x0,_0,k0]=["ReadableStream","Request","Response","Headers"].map(Ar),S0=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _s(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Ro(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const m=e?Object.getOwnPropertyNames(n):Object.keys(n),y=m.length;let v;for(r=0;r<y;r++)v=m[r],t.call(null,n[v],v,n)}}function Nf(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const Yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ff=n=>!xs(n)&&n!==Yi;function Lc(){const{caseless:n}=Ff(this)&&this||{},t={},e=(r,f)=>{const m=n&&Nf(t,f)||f;La(t[m])&&La(r)?t[m]=Lc(t[m],r):La(r)?t[m]=Lc({},r):Ro(r)?t[m]=r.slice():t[m]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&_s(arguments[r],e);return t}const $0=(n,t,e,{allOwnKeys:r}={})=>(_s(t,(f,m)=>{e&&rr(f)?n[m]=If(f,e):n[m]=f},{allOwnKeys:r}),n),A0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),C0=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},T0=(n,t,e,r)=>{let f,m,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),m=f.length;m-- >0;)y=f[m],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&Mc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},E0=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},R0=n=>{if(!n)return null;if(Ro(n))return n;let t=n.length;if(!Df(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},M0=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Mc(Uint8Array)),L0=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},I0=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},O0=Ar("HTMLFormElement"),D0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Wf=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),N0=Ar("RegExp"),Pf=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};_s(e,(f,m)=>{let y;(y=t(f,m,n))!==!1&&(r[m]=y||f)}),Object.defineProperties(n,r)},F0=n=>{Pf(n,(t,e)=>{if(rr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(rr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},W0=(n,t)=>{const e={},r=f=>{f.forEach(m=>{e[m]=!0})};return Ro(n)?r(n):r(String(n).split(t)),e},P0=()=>{},H0=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Ic="abcdefghijklmnopqrstuvwxyz",Hf="0123456789",zf={DIGIT:Hf,ALPHA:Ic,ALPHA_DIGIT:Ic+Ic.toUpperCase()+Hf},z0=(n=16,t=zf.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function j0(n){return!!(n&&rr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const B0=n=>{const t=new Array(10),e=(r,f)=>{if(Ma(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const m=Ro(r)?[]:{};return _s(r,(y,v)=>{const h=e(y,f+1);!xs(h)&&(m[v]=h)}),t[f]=void 0,m}}return r};return e(n,0)},U0=Ar("AsyncFunction"),V0=n=>n&&(Ma(n)||rr(n))&&rr(n.then)&&rr(n.catch),jf=((n,t)=>n?setImmediate:t?((e,r)=>(Yi.addEventListener("message",({source:f,data:m})=>{f===Yi&&m===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Yi.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",rr(Yi.postMessage)),q0=typeof queueMicrotask<"u"?queueMicrotask.bind(Yi):typeof process<"u"&&process.nextTick||jf,ue={isArray:Ro,isArrayBuffer:Of,isBuffer:c0,isFormData:w0,isArrayBufferView:u0,isString:h0,isNumber:Df,isBoolean:d0,isObject:Ma,isPlainObject:La,isReadableStream:b0,isRequest:x0,isResponse:_0,isHeaders:k0,isUndefined:xs,isDate:f0,isFile:p0,isBlob:g0,isRegExp:N0,isFunction:rr,isStream:y0,isURLSearchParams:v0,isTypedArray:M0,isFileList:m0,forEach:_s,merge:Lc,extend:$0,trim:S0,stripBOM:A0,inherits:C0,toFlatObject:T0,kindOf:Ea,kindOfTest:Ar,endsWith:E0,toArray:R0,forEachEntry:L0,matchAll:I0,isHTMLForm:O0,hasOwnProperty:Wf,hasOwnProp:Wf,reduceDescriptors:Pf,freezeMethods:F0,toObjectSet:W0,toCamelCase:D0,noop:P0,toFiniteNumber:H0,findKey:Nf,global:Yi,isContextDefined:Ff,ALPHABET:zf,generateString:z0,isSpecCompliantForm:j0,toJSONObject:B0,isAsyncFn:U0,isThenable:V0,setImmediate:jf,asap:q0};function Ze(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}ue.inherits(Ze,Error,{toJSON:function(){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:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Bf=Ze.prototype,Uf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Uf[n]={value:n}}),Object.defineProperties(Ze,Uf),Object.defineProperty(Bf,"isAxiosError",{value:!0}),Ze.from=(n,t,e,r,f,m)=>{const y=Object.create(Bf);return ue.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Ze.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,m&&Object.assign(y,m),y};const G0=null;function Oc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Vf(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function qf(n,t,e){return n?n.concat(t).map(function(r,f){return r=Vf(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Y0(n){return ue.isArray(n)&&!n.some(Oc)}const K0=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Ia(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||p,m=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!v&&ue.isBlob(l))throw new Ze("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function p(l,o,u){let g=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Y0(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(g=ue.toArray(l)))return o=Vf(o),g.forEach(function(w,x){!(ue.isUndefined(w)||w===null)&&t.append(y===!0?qf([o],x,m):y===null?o:o+"[]",h(w))}),!1}return Oc(l)?!0:(t.append(qf(u,o,m),h(l)),!1)}const a=[],c=Object.assign(K0,{defaultVisitor:p,convertValue:h,isVisitable:Oc});function s(l,o){if(!ue.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),ue.forEach(l,function(u,g){(!(ue.isUndefined(u)||u===null)&&f.call(t,u,ue.isString(g)?g.trim():g,o,c))===!0&&s(u,o?o.concat(g):[g])}),a.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Gf(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Dc(n,t){this._pairs=[],n&&Ia(n,this,t)}const Yf=Dc.prototype;Yf.append=function(n,t){this._pairs.push([n,t])},Yf.toString=function(n){const t=n?function(e){return n.call(this,e,Gf)}:Gf;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Q0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kf(n,t,e){if(!t)return n;const r=e&&e.encode||Q0;ue.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let m;if(f?m=f(t,e):m=ue.isURLSearchParams(t)?t.toString():new Dc(t,e).toString(r),m){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+m}return n}class Qf{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Zf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z0=typeof URLSearchParams<"u"?URLSearchParams:Dc,J0=typeof FormData<"u"?FormData:null,X0=typeof Blob<"u"?Blob:null,ex={isBrowser:!0,classes:{URLSearchParams:Z0,FormData:J0,Blob:X0},protocols:["http","https","file","blob","url","data"]},Nc=typeof window<"u"&&typeof document<"u",Fc=typeof navigator=="object"&&navigator||void 0,tx=Nc&&(!Fc||["ReactNative","NativeScript","NS"].indexOf(Fc.product)<0),nx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rx=Nc&&window.location.href||"http://localhost",ix=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nc,hasStandardBrowserEnv:tx,hasStandardBrowserWebWorkerEnv:nx,navigator:Fc,origin:rx},Symbol.toStringTag,{value:"Module"})),Tn={...ix,...ex};function ox(n,t){return Ia(n,new Tn.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,m){return Tn.isNode&&ue.isBuffer(e)?(this.append(r,e.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},t))}function sx(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ax(n){const t={},e=Object.keys(n);let r;const f=e.length;let m;for(r=0;r<f;r++)m=e[r],t[m]=n[m];return t}function Jf(n){function t(e,r,f,m){let y=e[m++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=m>=e.length;return y=!y&&ue.isArray(f)?f.length:y,h?(ue.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!ue.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],m)&&ue.isArray(f[y])&&(f[y]=ax(f[y])),!v)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(r,f)=>{t(sx(r),f,e,0)}),e}return null}function lx(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const ks={transitional:Zf,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=ue.isObject(n);if(f&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(Jf(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let m;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return ox(n,this.formSerializer).toString();if((m=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ia(m?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),lx(n)):n}],transformResponse:[function(n){const t=this.transitional||ks.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(m){if(f)throw m.name==="SyntaxError"?Ze.from(m,Ze.ERR_BAD_RESPONSE,this,null,this.response):m}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tn.classes.FormData,Blob:Tn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{ks.headers[n]={}});const cx=ue.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"]),ux=n=>{const t={};let e,r,f;return n&&n.split(`
|
1376
|
+
`).forEach(function(m){f=m.indexOf(":"),e=m.substring(0,f).trim().toLowerCase(),r=m.substring(f+1).trim(),!(!e||t[e]&&cx[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},Xf=Symbol("internals");function Ss(n){return n&&String(n).trim().toLowerCase()}function Oa(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Oa):String(n)}function hx(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const dx=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Wc(n,t,e,r,f){if(ue.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!ue.isString(t)){if(ue.isString(r))return t.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(t)}}function fx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function px(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,m,y){return this[r].call(this,t,f,m,y)},configurable:!0})})}let Gn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function m(v,h,p){const a=Ss(h);if(!a)throw new Error("header name must be a non-empty string");const c=ue.findKey(f,a);(!c||f[c]===void 0||p===!0||p===void 0&&f[c]!==!1)&&(f[c||h]=Oa(v))}const y=(v,h)=>ue.forEach(v,(p,a)=>m(p,a,h));if(ue.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(ue.isString(t)&&(t=t.trim())&&!dx(t))y(ux(t),e);else if(ue.isHeaders(t))for(const[v,h]of t.entries())m(h,v,r);else t!=null&&m(e,t,r);return this}get(t,e){if(t=Ss(t),t){const r=ue.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return hx(f);if(ue.isFunction(e))return e.call(this,f,r);if(ue.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ss(t),t){const r=ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Wc(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function m(y){if(y=Ss(y),y){const v=ue.findKey(r,y);v&&(!e||Wc(r,r[v],v,e))&&(delete r[v],f=!0)}}return ue.isArray(t)?t.forEach(m):m(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const m=e[r];(!t||Wc(this,this[m],m,t,!0))&&(delete this[m],f=!0)}return f}normalize(t){const e=this,r={};return ue.forEach(this,(f,m)=>{const y=ue.findKey(r,m);if(y){e[y]=Oa(f),delete e[m];return}const v=t?fx(m):String(m).trim();v!==m&&delete e[m],e[v]=Oa(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&ue.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[Xf]=this[Xf]={accessors:{}}).accessors,r=this.prototype;function f(m){const y=Ss(m);e[y]||(px(r,m),e[y]=!0)}return ue.isArray(t)?t.forEach(f):f(t),this}};Gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Gn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),ue.freezeMethods(Gn);function Pc(n,t){const e=this||ks,r=t||e,f=Gn.from(r.headers);let m=r.data;return ue.forEach(n,function(y){m=y.call(e,m,f.normalize(),t?t.status:void 0)}),f.normalize(),m}function ep(n){return!!(n&&n.__CANCEL__)}function Mo(n,t,e){Ze.call(this,n??"canceled",Ze.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Mo,Ze,{__CANCEL__:!0});function tp(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Ze("Request failed with status code "+e.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function gx(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function mx(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,m=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),p=r[m];y||(y=h),e[f]=v,r[f]=h;let a=m,c=0;for(;a!==f;)c+=e[a++],a=a%n;if(f=(f+1)%n,f===m&&(m=(m+1)%n),h-y<t)return;const s=p&&h-p;return s?Math.round(c*1e3/s):void 0}}function yx(n,t){let e=0,r=1e3/t,f,m;const y=(v,h=Date.now())=>{e=h,f=null,m&&(clearTimeout(m),m=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),p=h-e;p>=r?y(v,h):(f=v,m||(m=setTimeout(()=>{m=null,y(f)},r-p)))},()=>f&&y(f)]}const Da=(n,t,e=3)=>{let r=0;const f=mx(50,250);return yx(m=>{const y=m.loaded,v=m.lengthComputable?m.total:void 0,h=y-r,p=f(h),a=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:p||void 0,estimated:p&&v&&a?(v-y)/p:void 0,event:m,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},np=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},rp=n=>(...t)=>ue.asap(()=>n(...t)),wx=Tn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Tn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Tn.origin),Tn.navigator&&/(msie|trident)/i.test(Tn.navigator.userAgent)):()=>!0,vx=Tn.hasStandardBrowserEnv?{write(n,t,e,r,f,m){const y=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),ue.isString(r)&&y.push("path="+r),ue.isString(f)&&y.push("domain="+f),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bx(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xx(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ip(n,t){return n&&!bx(t)?xx(n,t):t}const op=n=>n instanceof Gn?{...n}:n;function Ki(n,t){t=t||{};const e={};function r(p,a,c,s){return ue.isPlainObject(p)&&ue.isPlainObject(a)?ue.merge.call({caseless:s},p,a):ue.isPlainObject(a)?ue.merge({},a):ue.isArray(a)?a.slice():a}function f(p,a,c,s){if(ue.isUndefined(a)){if(!ue.isUndefined(p))return r(void 0,p,c,s)}else return r(p,a,c,s)}function m(p,a){if(!ue.isUndefined(a))return r(void 0,a)}function y(p,a){if(ue.isUndefined(a)){if(!ue.isUndefined(p))return r(void 0,p)}else return r(void 0,a)}function v(p,a,c){if(c in t)return r(p,a);if(c in n)return r(void 0,p)}const h={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(p,a,c)=>f(op(p),op(a),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(p){const a=h[p]||f,c=a(n[p],t[p],p);ue.isUndefined(c)&&a!==v||(e[p]=c)}),e}const sp=n=>{const t=Ki({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:m,headers:y,auth:v}=t;t.headers=y=Gn.from(y),t.url=Kf(ip(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(ue.isFormData(e)){if(Tn.hasStandardBrowserEnv||Tn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[p,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...a].join("; "))}}if(Tn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(t)),r||r!==!1&&wx(t.url))){const p=f&&m&&vx.read(m);p&&y.set(f,p)}return t},_x=typeof XMLHttpRequest<"u",kx=_x&&function(n){return new Promise(function(t,e){const r=sp(n);let f=r.data;const m=Gn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,p,a,c,s,l;function o(){s&&s(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function g(){if(!u)return;const x=Gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),M={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};tp(function(C){t(C),o()},function(C){e(C),o()},M),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new Ze("Request aborted",Ze.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Ze("Network Error",Ze.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||Zf;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new Ze(x,M.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,n,u)),u=null},f===void 0&&m.setContentType(null),"setRequestHeader"in u&&ue.forEach(m.toJSON(),function(x,M){u.setRequestHeader(M,x)}),ue.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=Da(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([a,s]=Da(v),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(p=x=>{u&&(e(!x||x.type?new Mo(null,n,u):x),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const w=gx(r.url);if(w&&Tn.protocols.indexOf(w)===-1){e(new Ze("Unsupported protocol "+w+":",Ze.ERR_BAD_REQUEST,n));return}u.send(f||null)})},Sx=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const m=function(p){if(!f){f=!0,v();const a=p instanceof Error?p:this.reason;r.abort(a instanceof Ze?a:new Mo(a instanceof Error?a.message:a))}};let y=t&&setTimeout(()=>{y=null,m(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(m):p.removeEventListener("abort",m)}),n=null)};n.forEach(p=>p.addEventListener("abort",m));const{signal:h}=r;return h.unsubscribe=()=>ue.asap(v),h}},$x=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},Ax=async function*(n,t){for await(const e of Cx(n))yield*$x(e,t)},Cx=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ap=(n,t,e,r)=>{const f=Ax(n,t);let m=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:a}=await f.next();if(p){v(),h.close();return}let c=a.byteLength;if(e){let s=m+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(p){throw v(p),p}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},Na=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lp=Na&&typeof ReadableStream=="function",Tx=Na&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),cp=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Ex=lp&&cp(()=>{let n=!1;const t=new Request(Tn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),up=64*1024,Hc=lp&&cp(()=>ue.isReadableStream(new Response("").body)),Fa={stream:Hc&&(n=>n.body)};Na&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fa[t]&&(Fa[t]=ue.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Ze(`Response type '${t}' is not supported`,Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const Rx=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Tn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await Tx(n)).byteLength},Mx=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??Rx(t),Lx=Na&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:m,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:p,headers:a,withCredentials:c="same-origin",fetchOptions:s}=sp(n);p=p?(p+"").toLowerCase():"text";let l=Sx([f,m&&m.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let g;try{if(h&&Ex&&e!=="get"&&e!=="head"&&(g=await Mx(a,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(ue.isFormData(r)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,R]=np(g,Da(rp(h)));r=ap(k.body,up,T,R)}}ue.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let x=await fetch(o);const M=Hc&&(p==="stream"||p==="response");if(Hc&&(v||M&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[T,R]=v&&np(b,Da(rp(v),!0))||[];x=new Response(ap(x.body,up,T,()=>{R&&R(),u&&u()}),k)}p=p||"text";let C=await Fa[ue.findKey(Fa,p)||"text"](x,n);return!M&&u&&u(),await new Promise((k,b)=>{tp(k,b,{data:C,headers:Gn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,n,o),{cause:w.cause||w}):Ze.from(w,w&&w.code,n,o)}}),zc={http:G0,xhr:kx,fetch:Lx};ue.forEach(zc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const hp=n=>`- ${n}`,Ix=n=>ue.isFunction(n)||n===null||n===!1,dp={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let m=0;m<t;m++){e=n[m];let y;if(r=e,!Ix(e)&&(r=zc[(y=String(e)).toLowerCase()],r===void 0))throw new Ze(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+m]=r}if(!r){const m=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?m.length>1?`since :
|
1378
|
+
`+m.map(hp).join(`
|
1379
|
+
`):" "+hp(m[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:zc};function jc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Mo(null,n)}function fp(n){return jc(n),n.headers=Gn.from(n.headers),n.data=Pc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),dp.getAdapter(n.adapter||ks.adapter)(n).then(function(t){return jc(n),t.data=Pc.call(n,n.transformResponse,t),t.headers=Gn.from(t.headers),t},function(t){return ep(t)||(jc(n),t&&t.response&&(t.response.data=Pc.call(n,n.transformResponse,t.response),t.response.headers=Gn.from(t.response.headers))),Promise.reject(t)})}const pp="1.7.9",Wa={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Wa[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const gp={};Wa.transitional=function(n,t,e){function r(f,m){return"[Axios v"+pp+"] Transitional option '"+f+"'"+m+(e?". "+e:"")}return(f,m,y)=>{if(n===!1)throw new Ze(r(m," has been removed"+(t?" in "+t:"")),Ze.ERR_DEPRECATED);return t&&!gp[m]&&(gp[m]=!0,console.warn(r(m," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,m,y):!0}},Wa.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Ox(n,t,e){if(typeof n!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const m=r[f],y=t[m];if(y){const v=n[m],h=v===void 0||y(v,m,n);if(h!==!0)throw new Ze("option "+m+" must be "+h,Ze.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Ze("Unknown option "+m,Ze.ERR_BAD_OPTION)}}const Pa={assertOptions:Ox,validators:Wa},Fr=Pa.validators;let Qi=class{constructor(n){this.defaults=n,this.interceptors={request:new Qf,response:new Qf}}async request(n,t){try{return await this._request(n,t)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const f=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
1380
|
+
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=Ki(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Pa.assertOptions(e,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),r!=null&&(ue.isFunction(r)?t.paramsSerializer={serialize:r}:Pa.assertOptions(r,{encode:Fr.function,serialize:Fr.function},!0)),Pa.assertOptions(t,{baseUrl:Fr.spelling("baseURL"),withXsrfToken:Fr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let m=f&&ue.merge(f.common,f[t.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],l=>{delete f[l]}),t.headers=Gn.concat(m,f);const y=[];let v=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(t)===!1||(v=v&&l.synchronous,y.unshift(l.fulfilled,l.rejected))});const h=[];this.interceptors.response.forEach(function(l){h.push(l.fulfilled,l.rejected)});let p,a=0,c;if(!v){const l=[fp.bind(this),void 0];for(l.unshift.apply(l,y),l.push.apply(l,h),c=l.length,p=Promise.resolve(t);a<c;)p=p.then(l[a++],l[a++]);return p}c=y.length;let s=t;for(a=0;a<c;){const l=y[a++],o=y[a++];try{s=l(s)}catch(u){o.call(this,u);break}}try{p=fp.call(this,s)}catch(l){return Promise.reject(l)}for(a=0,c=h.length;a<c;)p=p.then(h[a++],h[a++]);return p}getUri(n){n=Ki(this.defaults,n);const t=ip(n.baseURL,n.url);return Kf(t,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){Qi.prototype[n]=function(t,e){return this.request(Ki(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,m){return this.request(Ki(m||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Qi.prototype[n]=t(),Qi.prototype[n+"Form"]=t(!0)});let Dx=class zv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let m=r._listeners.length;for(;m-- >0;)r._listeners[m](f);r._listeners=null}),this.promise.then=f=>{let m;const y=new Promise(v=>{r.subscribe(v),m=v}).then(f);return y.cancel=function(){r.unsubscribe(m)},y},t(function(f,m,y){r.reason||(r.reason=new Mo(f,m,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new zv(function(e){t=e}),cancel:t}}};function Nx(n){return function(t){return n.apply(null,t)}}function Fx(n){return ue.isObject(n)&&n.isAxiosError===!0}const Bc={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};Object.entries(Bc).forEach(([n,t])=>{Bc[t]=n});function mp(n){const t=new Qi(n),e=If(Qi.prototype.request,t);return ue.extend(e,Qi.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return mp(Ki(n,r))},e}const Xt=mp(ks);Xt.Axios=Qi,Xt.CanceledError=Mo,Xt.CancelToken=Dx,Xt.isCancel=ep,Xt.VERSION=pp,Xt.toFormData=Ia,Xt.AxiosError=Ze,Xt.Cancel=Xt.CanceledError,Xt.all=function(n){return Promise.all(n)},Xt.spread=Nx,Xt.isAxiosError=Fx,Xt.mergeConfig=Ki,Xt.AxiosHeaders=Gn,Xt.formToJSON=n=>Jf(ue.isHTMLForm(n)?new FormData(n):n),Xt.getAdapter=dp.getAdapter,Xt.HttpStatusCode=Bc,Xt.default=Xt;const{Axios:fO,AxiosError:pO,CanceledError:gO,isCancel:mO,CancelToken:yO,VERSION:wO,all:vO,Cancel:bO,isAxiosError:xO,spread:_O,toFormData:kO,AxiosHeaders:SO,HttpStatusCode:$O,formToJSON:AO,getAdapter:CO,mergeConfig:TO}=Xt,Uc=Xt.create({baseURL:location.origin,timeout:6e4,params:{}});Uc.interceptors.response.use(n=>n,n=>{var t,e,r,f,m,y,v,h,p,a,c;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let s=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(s+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(s+=`${n.response.config.data} `),(m=(f=n.response)==null?void 0:f.data)!=null&&m.message?s+=`${n.response.data.message}`:(v=(y=n.response)==null?void 0:y.data)!=null&&v.exception?s+=`${n.response.data.exception}`:(a=(p=(h=n.response)==null?void 0:h.data)==null?void 0:p.error)!=null&&a.message?(n.response.data.error.class&&(s+=`${n.response.data.error.class} `),s+=`${n.response.data.error.message}`):s+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:s}),n}else throw n});const Ha=async function(n,t,{data:e,params:r={},headers:f,noAuth:m=!1,noScope:y=!1,onUploadProgress:v=!1}={}){if(!m){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),Uc({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:v})},Vc={Accept:"application/json"},yp={...Vc,"Content-Type":"application/json"},EO=Pn("M",{get:function(n,{params:t,headers:e=Vc,noScope:r,noAuth:f,onUploadProgress:m}={}){return Ha("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:m})},put:function(n,{data:t,params:e,headers:r=yp,noScope:f,noAuth:m,onUploadProgress:y}={}){return Ha("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:m,onUploadProgress:y})},post:function(n,{data:t,params:e,headers:r=yp,noScope:f,noAuth:m,onUploadProgress:y}={}){return Ha("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:m,onUploadProgress:y})},delete:function(n,{params:t,headers:e=Vc,noScope:r,noAuth:f,onUploadProgress:m}={}){return Ha("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:m})}});let za=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class $s extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class qc extends $s{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class Wx extends $s{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Cr extends $s{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class Px extends Cr{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function wp(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class Hx{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const Zi=Symbol("state");class vp{constructor(t={}){this.emitter=za(),this.params=Object.freeze(t),this.presence=new Hx(this),this.initialConnect=!0,this[Zi]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=wp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Zi]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[Zi]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Zi]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[Zi]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[Zi]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Zi]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...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((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(m=>m()),e(f||new $s("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class zx{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?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(t){this._checkIntent(t);let e,r={promise:new Promise(m=>{e=m}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class jx{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Bx{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new jx),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new zx(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class Ux{constructor(t={}){this.subscriptions=new Bx(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let m=this.subscriptions.get(f);m&&m.channels.forEach(y=>{y.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let m=this.subscriptions.get(f);m&&m.channels.forEach(y=>y.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const bp={debug:0,info:1,warn:2,error:3};class xp{constructor(t){this.level=t||"warn"}log(t,e,r){bp[t]<bp[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class As extends xp{writeLogEntry(){}}class Vx{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let qx=0;class _p{constructor(t={}){let{logger:e}=t;this.logger=e||new As,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=wp(r);if(this.pendingUnsubscriptions[f]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,f),new Promise(v=>{setTimeout(()=>{v(this.subscribe(t,e))},y)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let m=this.subscribeRetryInterval;return new Promise((y,v)=>{let h=++qx;this.pendingSubscriptions[f]={resolve:y,reject:v,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,m)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new Wx(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:m,reconnect:y}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let v=t.sid;return v&&this.cable.setSessionId(v),this.cable.connected()}if(e==="disconnect"){let v=new Cr(m);this.reset(v),y===!1?this.cable.closed(v):this.cable.disconnected(v);return}if(e==="confirm_subscription"){let v=this.pendingSubscriptions[r];if(!v){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],v.resolve(r)}if(e==="reject_subscription"){let v=this.pendingSubscriptions[r];return v?(delete this.pendingSubscriptions[r],v.reject(new qc)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const kp=()=>Date.now()/1e3|0;class Gx extends _p{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=kp()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect"||e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=kp()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),t.restored){let m=t.restored_ids||Object.keys(this.subscriptionStreams);for(let y of m)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(m)}return this.cable.connected(this.sessionId)}if(e==="presence"){let m=f.type;if(m==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(f))}else if(m==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let m=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:m}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let m=this.streamsPositions[f];m&&(r=!0,e[f]=m)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class Yx extends $s{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Gc extends vp{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Rc(Gc,"identifier","__ghost__");const Kx="$pubsub";class Yc extends vp{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Rc(Yc,"identifier",Kx);const Ji=Symbol("state");let Qx=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:m,performFailures:y}){this.emitter=za(),this.transport=n,this.encoder=e,this.logger=r||new As,this.protocol=t,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new Ux(m||{}),this[Ji]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[Ji]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();this[Ji]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{await this.transport.open()}catch(t){this.handleClose(t)}return n}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Ji]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Cr("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[Ji]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Cr("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Cr(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[Ji]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Cr?n:new Cr(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[Ji]="closed";let e=t||new Cr("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",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:m,meta:y}=e;r?this.hub.notify(f,r,m):this.hub.transmit(f,m,y)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new Yc({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Yc({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=Gc),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.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 f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let m={identifier:t,params:e};this.logger.debug("subscribing",m);try{let y=await this.protocol.subscribe(t,e);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...m,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof qc&&this.logger.warn("rejected",m),y instanceof Cr){this.logger.debug("disconnected during subscription; will retry on connect",m),f.release();return}this.logger.error("failed to subscribe",{error:y,...m})}n.close(y),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Cr?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Yx;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,m={id:f,action:t,payload:e};this.logger.debug("perform",m);try{let y=await this.protocol.perform(f,t,e);return y&&this.logger.debug("perform result",{message:y,request:m}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:m}),y}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const Zx={maxMissingPings:2,maxReconnectAttempts:1/0},Lo=()=>Date.now(),Sp=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),m=>{let y=n*e**m,v=y*e,h=y+(v-y)*Math.random(),p=2*(Math.random()-.5)*r;return h=h*(1+p),f&&f<h&&(h=f),h}};let $p=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},Zx,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new As,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Lo()}watch(n){this.target=n,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(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Lo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Lo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Lo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Lo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Lo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Px))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Jx{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=za(),this.unbind=[],this.logger=e.logger||new As}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];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(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}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(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class Xx{constructor(t,e={}){this.url=t;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=za();let{format:f,subprotocol:m}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.subprotocol=m}displayName(){return"WebSocket("+this.url+")"}open(){return this.connectionOptions?this.ws=new this.Impl(this.url,this.subprotocol,this.connectionOptions):this.ws=new this.Impl(this.url,this.subprotocol),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,e)=>{let r=[];r.push(this.once("open",()=>{r.forEach(f=>f()),t()})),r.push(this.once("close",()=>{r.forEach(f=>f()),e(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.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")}}const Ap={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function e1(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},Ap,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:m,fallbacks:y,logLevel:v,logger:h,transport:p,encoder:a,lazy:c,monitor:s,pingInterval:l,reconnectStrategy:o,maxMissingPings:u,maxReconnectAttempts:g,subprotocol:w,tokenRefresher:x,historyTimestamp:M,protocolOptions:C,concurrentSubscribes:k}=t;if(h=h||new As(v),typeof e=="string"){w=w||e;let R=e.substring(0,e.lastIndexOf("-")),I=e.substring(e.lastIndexOf("-")+1);if(C=C||{},R==="actioncable-v1")e=new _p({logger:h,...C});else if(R==="actioncable-v1-ext")e=new Gx({logger:h,historyTimestamp:M,...C});else throw Error(`Protocol is not supported yet: ${e}`);if(I==="json")a=a||new Vx,f=f||"text";else if(I==="msgpack"){if(f="binary",!a)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(I==="protobuf"){if(f=f||"binary",!a)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");p=p||new Xx(n,{websocketImplementation:r,websocketOptions:m,subprotocol:w,format:f}),y&&(p=new Jx([p,...y],{logger:h})),o=o||Sp(l),s!==!1&&(s=s||new $p({pingInterval:l,reconnectStrategy:o,maxMissingPings:u,maxReconnectAttempts:g,logger:h}));let b={concurrentSubscribes:k},T=new Qx({protocol:e,transport:p,encoder:a,logger:h,lazy:c,hubOptions:b});return s&&(s.watch(T),T.monitor=s),x&&t1(T,async()=>{try{await x(p)}catch(R){return h.error("Failed to refresh authentication token: "+R),!1}return T.connect().catch(()=>{}),!0}),T}function t1(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class n1{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class r1 extends Gc{constructor(t,e,r){super(t,e),this.subscription=new n1(this),Object.assign(this.subscription,r),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof qc?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class i1{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let m=new r1(r,f,e);return m.subscription.notify("initialized"),this.cable.subscribe(m),m.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class o1{constructor(t){this.cable=t,this.subscriptions=new i1(t)}}class s1 extends xp{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class a1 extends $p{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Cr("page_frozen"));document.addEventListener("visibilitychange",t,!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",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const l1=["cable","action-cable"],c1="/cable",Cp=(n,t)=>{for(let e of l1){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},Tp=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,u1=()=>{if(typeof document<"u"&&document.head){let n=Cp(document,"url");if(n)return Tp(n)}return Tp(c1)},h1=()=>{if(typeof document<"u"&&document.head){let n=Cp(document,"history-timestamp");if(n)return n|0}};function d1(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||u1(),t=t||{},t.historyTimestamp||(t.historyTimestamp=h1()),t=Object.assign({},Ap,t);let{logLevel:e,logger:r,pingInterval:f,reconnectStrategy:m,maxMissingPings:y,maxReconnectAttempts:v}=t;return r=t.logger=t.logger||new s1(e),m=t.reconnectStrategy=t.reconnectStrategy||Sp(f),t.monitor!==!1&&(t.monitor=t.monitor||new a1({pingInterval:f,reconnectStrategy:m,maxMissingPings:y,maxReconnectAttempts:v,logger:r})),e1(n,t)}function f1(n,t){let e=d1(n,t);return new o1(e)}class p1{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=f1(y)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}Pn("L",p1);class g1{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}Pn("u",g1);class m1{constructor(){Rc(this,"id",1)}async exec(t,e,r={},f={},m=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await Uc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:m})).data.result}catch(y){let v=new Error;throw y.response?(v.name=y.response.data.error.data.class,v.message=y.response.data.error.data.message,v.object=y.response.data.error):y.request?(v.name="Request error",v.message="Request error, no response received"):v.name="Unknown error",v}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(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(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...r){return this.exec("interface_cmd",[t,e,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,r,f=30){const m=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(m!=null){let y=m.length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(m[h][1]),v!==null&&(m[h][1]=v)}return m}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,r=null){let f={stale_time:e};r!==null&&(f.cache_timeout=r);const m=await this.exec("get_tlm_values",[t],f,{},1e4);let y=m[0].length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(m[0][h]),v!==null&&(m[0][h]=v);return m}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let m=null;if(e===void 0)m=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))m=await this.exec("tlm",[t],{type:e});else{let v=new Error;throw v.name="TypeError",v.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,v}else m=await this.exec("tlm",[t,e,r],{type:f});let y=this.decode_openc3_type(m);return y!==null&&(m=y),m}async inject_tlm(t,e,r=null,f="CONVERTED"){data=await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,m){let y=null;for(let v in f)Object.prototype.hasOwnProperty.call(f,v)&&(y=this.encode_openc3_type(f[v]),y!==null&&(f[v]=y));return this.exec(t,[e,r,f],{},m)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={}){return e===void 0?this.exec("cmd",t,{},f):this._cmd("cmd",t,e,r,f)}cmd_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_range_check",t,{},f):this._cmd("cmd_no_range_check",t,e,r,f)}cmd_raw(t,e,r,f={}){return e===void 0?this.exec("cmd_raw",t,{},f):this._cmd("cmd_raw",t,e,r,f)}cmd_raw_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},f):this._cmd("cmd_raw_no_range_check",t,e,r,f)}cmd_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},f):this._cmd("cmd_no_hazardous_check",t,e,r,f)}cmd_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_no_checks",t,{},f):this._cmd("cmd_no_checks",t,e,r,f)}cmd_raw_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f)}cmd_raw_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},f):this._cmd("cmd_raw_no_checks",t,e,r,f)}build_cmd(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}build_command(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(m=>m.toString(16).padStart(2,"0")).join("")}}}Pn("R",m1);var ja={exports:{}};/**
|
1381
|
+
* @license
|
1382
|
+
* Lodash <https://lodash.com/>
|
1383
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1384
|
+
* Released under MIT license <https://lodash.com/license>
|
1385
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1386
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1387
|
+
*/var y1=ja.exports,Ep;function w1(){return Ep||(Ep=1,function(n,t){(function(){var e,r="4.17.21",f=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",v="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,a="__lodash_placeholder__",c=1,s=2,l=4,o=1,u=2,g=1,w=2,x=4,M=8,C=16,k=32,b=64,T=128,R=256,I=512,E=30,N="...",S=800,_=16,$=1,L=2,O=3,F=1/0,H=9007199254740991,B=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",g],["bindKey",w],["curry",M],["curryRight",C],["flip",I],["partial",k],["partialRight",b],["rearg",R]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",we="[object Date]",pe="[object DOMException]",_e="[object Error]",nt="[object Function]",It="[object GeneratorFunction]",at="[object Map]",ht="[object Number]",nn="[object Null]",Et="[object Object]",Bt="[object Promise]",jr="[object Proxy]",mn="[object RegExp]",Kt="[object Set]",De="[object String]",We="[object Symbol]",Qt="[object Undefined]",He="[object WeakMap]",ce="[object WeakSet]",Ae="[object ArrayBuffer]",Ee="[object DataView]",Be="[object Float32Array]",Ve="[object Float64Array]",lt="[object Int8Array]",ct="[object Int16Array]",it="[object Int32Array]",ot="[object Uint8Array]",Xe="[object Uint8ClampedArray]",Ft="[object Uint16Array]",Ln="[object Uint32Array]",ti=/\b__p \+= '';/g,Kn=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,js=/&(?:amp|lt|gt|quot|#39);/g,bl=/[&<>"']/g,Ih=RegExp(js.source),Oh=RegExp(bl.source),Dh=/<%-([\s\S]+?)%>/g,Nh=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,Br=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,$i=RegExp(Ur.source),In=/^\s+/,Ai=/\s/,Ci=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xl=/\{\n\/\* \[wrapped with (.+)\] \*/,_l=/,? & /,Fh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wh=/[()=,{}\[\]\/\s]/,ri=/\\(\\)?/g,Ph=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ti=/\w*$/,kl=/^[-+]0x[0-9a-f]+$/i,Vr=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,un=/^(?:0|[1-9]\d*)$/,Go=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,On=/($^)/,lo=/['\n\r\u2028\u2029\\]/g,co="\\ud800-\\udfff",Bs="\\u0300-\\u036f",Yo="\\ufe20-\\ufe2f",Ei="\\u20d0-\\u20ff",Ko=Bs+Yo+Ei,Qo="\\u2700-\\u27bf",Zo="a-z\\xdf-\\xf6\\xf8-\\xff",Us="\\xac\\xb1\\xd7\\xf7",Vs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qs="\\u2000-\\u206f",Gs=" \\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",mr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ys="\\ufe0e\\ufe0f",Ks=Us+Vs+qs+Gs,uo="['’]",Sl="["+co+"]",$l="["+Ks+"]",Jo="["+Ko+"]",Al="\\d+",Cl="["+Qo+"]",Qs="["+Zo+"]",Tl="[^"+co+Ks+Al+Qo+Zo+mr+"]",Xo="\\ud83c[\\udffb-\\udfff]",Zs="(?:"+Jo+"|"+Xo+")",ho="[^"+co+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+mr+"]",El="\\u200d",Rl="(?:"+Qs+"|"+Tl+")",Hh="(?:"+qr+"|"+Tl+")",ii="(?:"+uo+"(?:d|ll|m|re|s|t|ve))?",fo="(?:"+uo+"(?:D|LL|M|RE|S|T|VE))?",es=Zs+"?",Mi="["+Ys+"]?",zh="(?:"+El+"(?:"+[ho,Ri,Js].join("|")+")"+Mi+es+")*",Li="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xs=Mi+es+zh,ea="(?:"+[Cl,Ri,Js].join("|")+")"+Xs,ta="(?:"+[ho+Jo+"?",Jo,Ri,Js,Sl].join("|")+")",na=RegExp(uo,"g"),Ii=RegExp(Jo,"g"),Gr=RegExp(Xo+"(?="+Xo+")|"+ta+Xs,"g"),Ml=RegExp([qr+"?"+Qs+"+"+ii+"(?="+[$l,qr,"$"].join("|")+")",Hh+"+"+fo+"(?="+[$l,qr+Rl,"$"].join("|")+")",qr+"?"+Rl+"+"+ii,qr+"+"+fo,jh,Li,Al,ea].join("|"),"g"),Ll=RegExp("["+El+co+Ko+Ys+"]"),Oi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Di=["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"],Il=-1,At={};At[Be]=At[Ve]=At[lt]=At[ct]=At[it]=At[ot]=At[Xe]=At[Ft]=At[Ln]=!0,At[re]=At[J]=At[Ae]=At[me]=At[Ee]=At[we]=At[_e]=At[nt]=At[at]=At[ht]=At[Et]=At[mn]=At[Kt]=At[De]=At[He]=!1;var Fe={};Fe[re]=Fe[J]=Fe[Ae]=Fe[Ee]=Fe[me]=Fe[we]=Fe[Be]=Fe[Ve]=Fe[lt]=Fe[ct]=Fe[it]=Fe[at]=Fe[ht]=Fe[Et]=Fe[mn]=Fe[Kt]=Fe[De]=Fe[We]=Fe[ot]=Fe[Xe]=Fe[Ft]=Fe[Ln]=!0,Fe[_e]=Fe[nt]=Fe[He]=!1;var Ot={À:"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"},Yr={"&":"&","<":"<",">":">",'"':""","'":"'"},wn={"&":"&","<":"<",">":">",""":'"',"'":"'"},hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dn=parseFloat,Rt=parseInt,oi=typeof _i=="object"&&_i&&_i.Object===Object&&_i,ts=typeof self=="object"&&self&&self.Object===Object&&self,vn=oi||ts||Function("return this")(),yr=t&&!t.nodeType&&t,$n=yr&&!0&&n&&!n.nodeType&&n,Ol=$n&&$n.exports===yr,ra=Ol&&oi.process,Qn=function(){try{var ne=$n&&$n.require&&$n.require("util").types;return ne||ra&&ra.binding&&ra.binding("util")}catch{}}(),Dl=Qn&&Qn.isArrayBuffer,wr=Qn&&Qn.isDate,Mr=Qn&&Qn.isMap,Kr=Qn&&Qn.isRegExp,si=Qn&&Qn.isSet,Nl=Qn&&Qn.isTypedArray;function Pt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function Bh(ne,le,se,ke){for(var Oe=-1,Ge=ne==null?0:ne.length;++Oe<Ge;){var xt=ne[Oe];le(ke,xt,se(xt),ne)}return ke}function jn(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke&&le(ne[se],se,ne)!==!1;);return ne}function Fl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Ni(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(!le(ne[se],se,ne))return!1;return!0}function Zn(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Oe=0,Ge=[];++se<ke;){var xt=ne[se];le(xt,se,ne)&&(Ge[Oe++]=xt)}return Ge}function ns(ne,le){var se=ne==null?0:ne.length;return!!se&&ai(ne,le,0)>-1}function po(ne,le,se){for(var ke=-1,Oe=ne==null?0:ne.length;++ke<Oe;)if(se(le,ne[ke]))return!0;return!1}function Dt(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Oe=Array(ke);++se<ke;)Oe[se]=le(ne[se],se,ne);return Oe}function Dn(ne,le){for(var se=-1,ke=le.length,Oe=ne.length;++se<ke;)ne[Oe+se]=le[se];return ne}function vr(ne,le,se,ke){var Oe=-1,Ge=ne==null?0:ne.length;for(ke&&Ge&&(se=ne[++Oe]);++Oe<Ge;)se=le(se,ne[Oe],Oe,ne);return se}function go(ne,le,se,ke){var Oe=ne==null?0:ne.length;for(ke&&Oe&&(se=ne[--Oe]);Oe--;)se=le(se,ne[Oe],Oe,ne);return se}function rs(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(le(ne[se],se,ne))return!0;return!1}var ia=ca("length");function oa(ne){return ne.split("")}function is(ne){return ne.match(Fh)||[]}function sa(ne,le,se){var ke;return se(ne,function(Oe,Ge,xt){if(le(Oe,Ge,xt))return ke=Ge,!1}),ke}function mo(ne,le,se,ke){for(var Oe=ne.length,Ge=se+(ke?1:-1);ke?Ge--:++Ge<Oe;)if(le(ne[Ge],Ge,ne))return Ge;return-1}function ai(ne,le,se){return le===le?qe(ne,le,se):mo(ne,aa,se)}function Wl(ne,le,se,ke){for(var Oe=se-1,Ge=ne.length;++Oe<Ge;)if(ke(ne[Oe],le))return Oe;return-1}function aa(ne){return ne!==ne}function la(ne,le){var se=ne==null?0:ne.length;return se?Wi(ne,le)/se:V}function ca(ne){return function(le){return le==null?e:le[ne]}}function os(ne){return function(le){return ne==null?e:ne[le]}}function ua(ne,le,se,ke,Oe){return Oe(ne,function(Ge,xt,Ke){se=ke?(ke=!1,Ge):le(se,Ge,xt,Ke)}),se}function Fi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Wi(ne,le){for(var se,ke=-1,Oe=ne.length;++ke<Oe;){var Ge=le(ne[ke]);Ge!==e&&(se=se===e?Ge:se+Ge)}return se}function Zt(ne,le){for(var se=-1,ke=Array(ne);++se<ne;)ke[se]=le(se);return ke}function Pl(ne,le){return Dt(le,function(se){return[se,ne[se]]})}function Ut(ne){return ne&&ne.slice(0,Ye(ne)+1).replace(In,"")}function Nn(ne){return function(le){return ne(le)}}function yo(ne,le){return Dt(le,function(se){return ne[se]})}function Lr(ne,le){return ne.has(le)}function Hl(ne,le){for(var se=-1,ke=ne.length;++se<ke&&ai(le,ne[se],0)>-1;);return se}function zl(ne,le){for(var se=ne.length;se--&&ai(le,ne[se],0)>-1;);return se}function ha(ne,le){for(var se=ne.length,ke=0;se--;)ne[se]===le&&++ke;return ke}var W=os(Ot),z=os(Yr);function Y(ne){return"\\"+hn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Ll.test(ne)}function oe(ne){return Oi.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function ve(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke,Oe){se[++le]=[Oe,ke]}),se}function be(ne,le){return function(se){return ne(le(se))}}function xe(ne,le){for(var se=-1,ke=ne.length,Oe=0,Ge=[];++se<ke;){var xt=ne[se];(xt===le||xt===a)&&(ne[se]=a,Ge[Oe++]=se)}return Ge}function Se(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=ke}),se}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=[ke,ke]}),se}function qe(ne,le,se){for(var ke=se-1,Oe=ne.length;++ke<Oe;)if(ne[ke]===le)return ke;return-1}function St(ne,le,se){for(var ke=se+1;ke--;)if(ne[ke]===le)return ke;return ke}function et(ne){return te(ne)?bt(ne):ia(ne)}function Ue(ne){return te(ne)?Vt(ne):oa(ne)}function Ye(ne){for(var le=ne.length;le--&&Ai.test(ne.charAt(le)););return le}var Re=os(wn);function bt(ne){for(var le=Gr.lastIndex=0;Gr.test(ne);)++le;return le}function Vt(ne){return ne.match(Gr)||[]}function Ht(ne){return ne.match(Ml)||[]}var Mt=function ne(le){le=le==null?vn:Lt.defaults(vn.Object(),le,Lt.pick(vn,Di));var se=le.Array,ke=le.Date,Oe=le.Error,Ge=le.Function,xt=le.Math,Ke=le.Object,bn=le.RegExp,Bn=le.String,xn=le.TypeError,lr=se.prototype,Jn=Ge.prototype,ss=Ke.prototype,jl=le["__core-js_shared__"],Bl=Jn.toString,$t=ss.hasOwnProperty,oT=0,Jy=function(){var i=/[^.]+$/.exec(jl&&jl.keys&&jl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ul=ss.toString,sT=Bl.call(Ke),aT=vn._,lT=bn("^"+Bl.call($t).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vl=Ol?le.Buffer:e,Pi=le.Symbol,ql=le.Uint8Array,Xy=Vl?Vl.allocUnsafe:e,Gl=be(Ke.getPrototypeOf,Ke),ew=Ke.create,tw=ss.propertyIsEnumerable,Yl=lr.splice,nw=Pi?Pi.isConcatSpreadable:e,da=Pi?Pi.iterator:e,wo=Pi?Pi.toStringTag:e,Kl=function(){try{var i=ko(Ke,"defineProperty");return i({},"",{}),i}catch{}}(),cT=le.clearTimeout!==vn.clearTimeout&&le.clearTimeout,uT=ke&&ke.now!==vn.Date.now&&ke.now,hT=le.setTimeout!==vn.setTimeout&&le.setTimeout,Ql=xt.ceil,Zl=xt.floor,Uh=Ke.getOwnPropertySymbols,dT=Vl?Vl.isBuffer:e,rw=le.isFinite,fT=lr.join,pT=be(Ke.keys,Ke),_n=xt.max,Fn=xt.min,gT=ke.now,mT=le.parseInt,iw=xt.random,yT=lr.reverse,Vh=ko(le,"DataView"),fa=ko(le,"Map"),qh=ko(le,"Promise"),as=ko(le,"Set"),pa=ko(le,"WeakMap"),ga=ko(Ke,"create"),Jl=pa&&new pa,ls={},wT=So(Vh),vT=So(fa),bT=So(qh),xT=So(as),_T=So(pa),Xl=Pi?Pi.prototype:e,ma=Xl?Xl.valueOf:e,ow=Xl?Xl.toString:e;function j(i){if(Jt(i)&&!Qe(i)&&!(i instanceof pt)){if(i instanceof br)return i;if($t.call(i,"__wrapped__"))return sv(i)}return new br(i)}var cs=function(){function i(){}return function(d){if(!qt(d))return{};if(ew)return ew(d);i.prototype=d;var A=new i;return i.prototype=e,A}}();function ec(){}function br(i,d){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}j.templateSettings={escape:Dh,evaluate:Nh,interpolate:Ne,variable:"",imports:{_:j}},j.prototype=ec.prototype,j.prototype.constructor=j,br.prototype=cs(ec.prototype),br.prototype.constructor=br;function pt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function kT(){var i=new pt(this.__wrapped__);return i.__actions__=Xn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Xn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Xn(this.__views__),i}function ST(){if(this.__filtered__){var i=new pt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function $T(){var i=this.__wrapped__.value(),d=this.__dir__,A=Qe(i),D=d<0,P=A?i.length:0,U=FE(0,P,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ye=ge.length,$e=0,Me=Fn(ie,this.__takeCount__);if(!A||!D&&P==ie&&Me==ie)return Ew(i,this.__actions__);var ze=[];e:for(;ie--&&$e<Me;){fe+=d;for(var rt=-1,je=i[fe];++rt<ye;){var dt=ge[rt],gt=dt.iteratee,hr=dt.type,qn=gt(je);if(hr==L)je=qn;else if(!qn){if(hr==$)continue e;break e}}ze[$e++]=je}return ze}pt.prototype=cs(ec.prototype),pt.prototype.constructor=pt;function vo(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function AT(){this.__data__=ga?ga(null):{},this.size=0}function CT(i){var d=this.has(i)&&delete this.__data__[i];return this.size-=d?1:0,d}function TT(i){var d=this.__data__;if(ga){var A=d[i];return A===h?e:A}return $t.call(d,i)?d[i]:e}function ET(i){var d=this.__data__;return ga?d[i]!==e:$t.call(d,i)}function RT(i,d){var A=this.__data__;return this.size+=this.has(i)?0:1,A[i]=ga&&d===e?h:d,this}vo.prototype.clear=AT,vo.prototype.delete=CT,vo.prototype.get=TT,vo.prototype.has=ET,vo.prototype.set=RT;function li(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function MT(){this.__data__=[],this.size=0}function LT(i){var d=this.__data__,A=tc(d,i);if(A<0)return!1;var D=d.length-1;return A==D?d.pop():Yl.call(d,A,1),--this.size,!0}function IT(i){var d=this.__data__,A=tc(d,i);return A<0?e:d[A][1]}function OT(i){return tc(this.__data__,i)>-1}function DT(i,d){var A=this.__data__,D=tc(A,i);return D<0?(++this.size,A.push([i,d])):A[D][1]=d,this}li.prototype.clear=MT,li.prototype.delete=LT,li.prototype.get=IT,li.prototype.has=OT,li.prototype.set=DT;function ci(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function NT(){this.size=0,this.__data__={hash:new vo,map:new(fa||li),string:new vo}}function FT(i){var d=fc(this,i).delete(i);return this.size-=d?1:0,d}function WT(i){return fc(this,i).get(i)}function PT(i){return fc(this,i).has(i)}function HT(i,d){var A=fc(this,i),D=A.size;return A.set(i,d),this.size+=A.size==D?0:1,this}ci.prototype.clear=NT,ci.prototype.delete=FT,ci.prototype.get=WT,ci.prototype.has=PT,ci.prototype.set=HT;function bo(i){var d=-1,A=i==null?0:i.length;for(this.__data__=new ci;++d<A;)this.add(i[d])}function zT(i){return this.__data__.set(i,h),this}function jT(i){return this.__data__.has(i)}bo.prototype.add=bo.prototype.push=zT,bo.prototype.has=jT;function Ir(i){var d=this.__data__=new li(i);this.size=d.size}function BT(){this.__data__=new li,this.size=0}function UT(i){var d=this.__data__,A=d.delete(i);return this.size=d.size,A}function VT(i){return this.__data__.get(i)}function qT(i){return this.__data__.has(i)}function GT(i,d){var A=this.__data__;if(A instanceof li){var D=A.__data__;if(!fa||D.length<f-1)return D.push([i,d]),this.size=++A.size,this;A=this.__data__=new ci(D)}return A.set(i,d),this.size=A.size,this}Ir.prototype.clear=BT,Ir.prototype.delete=UT,Ir.prototype.get=VT,Ir.prototype.has=qT,Ir.prototype.set=GT;function sw(i,d){var A=Qe(i),D=!A&&$o(i),P=!A&&!D&&Ui(i),U=!A&&!D&&!P&&fs(i),Q=A||D||P||U,ee=Q?Zt(i.length,Bn):[],ie=ee.length;for(var fe in i)(d||$t.call(i,fe))&&!(Q&&(fe=="length"||P&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||fi(fe,ie)))&&ee.push(fe);return ee}function aw(i){var d=i.length;return d?i[rd(0,d-1)]:e}function YT(i,d){return pc(Xn(i),xo(d,0,i.length))}function KT(i){return pc(Xn(i))}function Gh(i,d,A){(A!==e&&!Or(i[d],A)||A===e&&!(d in i))&&ui(i,d,A)}function ya(i,d,A){var D=i[d];(!($t.call(i,d)&&Or(D,A))||A===e&&!(d in i))&&ui(i,d,A)}function tc(i,d){for(var A=i.length;A--;)if(Or(i[A][0],d))return A;return-1}function QT(i,d,A,D){return Hi(i,function(P,U,Q){d(D,P,A(P),Q)}),D}function lw(i,d){return i&&Zr(d,An(d),i)}function ZT(i,d){return i&&Zr(d,tr(d),i)}function ui(i,d,A){d=="__proto__"&&Kl?Kl(i,d,{configurable:!0,enumerable:!0,value:A,writable:!0}):i[d]=A}function Yh(i,d){for(var A=-1,D=d.length,P=se(D),U=i==null;++A<D;)P[A]=U?e:Td(i,d[A]);return P}function xo(i,d,A){return i===i&&(A!==e&&(i=i<=A?i:A),d!==e&&(i=i>=d?i:d)),i}function xr(i,d,A,D,P,U){var Q,ee=d&c,ie=d&s,fe=d&l;if(A&&(Q=P?A(i,D,P,U):A(i)),Q!==e)return Q;if(!qt(i))return i;var ge=Qe(i);if(ge){if(Q=PE(i),!ee)return Xn(i,Q)}else{var ye=Wn(i),$e=ye==nt||ye==It;if(Ui(i))return Lw(i,ee);if(ye==Et||ye==re||$e&&!P){if(Q=ie||$e?{}:Zw(i),!ee)return ie?TE(i,ZT(Q,i)):CE(i,lw(Q,i))}else{if(!Fe[ye])return P?i:{};Q=HE(i,ye,ee)}}U||(U=new Ir);var Me=U.get(i);if(Me)return Me;U.set(i,Q),Av(i)?i.forEach(function(je){Q.add(xr(je,d,A,je,i,U))}):Sv(i)&&i.forEach(function(je,dt){Q.set(dt,xr(je,d,A,dt,i,U))});var ze=fe?ie?pd:fd:ie?tr:An,rt=ge?e:ze(i);return jn(rt||i,function(je,dt){rt&&(dt=je,je=i[dt]),ya(Q,dt,xr(je,d,A,dt,i,U))}),Q}function JT(i){var d=An(i);return function(A){return cw(A,i,d)}}function cw(i,d,A){var D=A.length;if(i==null)return!D;for(i=Ke(i);D--;){var P=A[D],U=d[P],Q=i[P];if(Q===e&&!(P in i)||!U(Q))return!1}return!0}function uw(i,d,A){if(typeof i!="function")throw new xn(y);return Sa(function(){i.apply(e,A)},d)}function wa(i,d,A,D){var P=-1,U=ns,Q=!0,ee=i.length,ie=[],fe=d.length;if(!ee)return ie;A&&(d=Dt(d,Nn(A))),D?(U=po,Q=!1):d.length>=f&&(U=Lr,Q=!1,d=new bo(d));e:for(;++P<ee;){var ge=i[P],ye=A==null?ge:A(ge);if(ge=D||ge!==0?ge:0,Q&&ye===ye){for(var $e=fe;$e--;)if(d[$e]===ye)continue e;ie.push(ge)}else U(d,ye,D)||ie.push(ge)}return ie}var Hi=Fw(Qr),hw=Fw(Qh,!0);function XT(i,d){var A=!0;return Hi(i,function(D,P,U){return A=!!d(D,P,U),A}),A}function nc(i,d,A){for(var D=-1,P=i.length;++D<P;){var U=i[D],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!ur(Q):A(Q,ee)))var ee=Q,ie=U}return ie}function eE(i,d,A,D){var P=i.length;for(A=tt(A),A<0&&(A=-A>P?0:P+A),D=D===e||D>P?P:tt(D),D<0&&(D+=P),D=A>D?0:Tv(D);A<D;)i[A++]=d;return i}function dw(i,d){var A=[];return Hi(i,function(D,P,U){d(D,P,U)&&A.push(D)}),A}function Cn(i,d,A,D,P){var U=-1,Q=i.length;for(A||(A=jE),P||(P=[]);++U<Q;){var ee=i[U];d>0&&A(ee)?d>1?Cn(ee,d-1,A,D,P):Dn(P,ee):D||(P[P.length]=ee)}return P}var Kh=Ww(),fw=Ww(!0);function Qr(i,d){return i&&Kh(i,d,An)}function Qh(i,d){return i&&fw(i,d,An)}function rc(i,d){return Zn(d,function(A){return pi(i[A])})}function _o(i,d){d=ji(d,i);for(var A=0,D=d.length;i!=null&&A<D;)i=i[Jr(d[A++])];return A&&A==D?i:e}function pw(i,d,A){var D=d(i);return Qe(i)?D:Dn(D,A(i))}function Un(i){return i==null?i===e?Qt:nn:wo&&wo in Ke(i)?NE(i):KE(i)}function Zh(i,d){return i>d}function tE(i,d){return i!=null&&$t.call(i,d)}function nE(i,d){return i!=null&&d in Ke(i)}function rE(i,d,A){return i>=Fn(d,A)&&i<_n(d,A)}function Jh(i,d,A){for(var D=A?po:ns,P=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&d&&(ge=Dt(ge,Nn(d))),ie=Fn(ge.length,ie),ee[Q]=!A&&(d||P>=120&&ge.length>=120)?new bo(Q&&ge):e}ge=i[0];var ye=-1,$e=ee[0];e:for(;++ye<P&&fe.length<ie;){var Me=ge[ye],ze=d?d(Me):Me;if(Me=A||Me!==0?Me:0,!($e?Lr($e,ze):D(fe,ze,A))){for(Q=U;--Q;){var rt=ee[Q];if(!(rt?Lr(rt,ze):D(i[Q],ze,A)))continue e}$e&&$e.push(ze),fe.push(Me)}}return fe}function iE(i,d,A,D){return Qr(i,function(P,U,Q){d(D,A(P),U,Q)}),D}function va(i,d,A){d=ji(d,i),i=tv(i,d);var D=i==null?i:i[Jr(kr(d))];return D==null?e:Pt(D,i,A)}function gw(i){return Jt(i)&&Un(i)==re}function oE(i){return Jt(i)&&Un(i)==Ae}function sE(i){return Jt(i)&&Un(i)==we}function ba(i,d,A,D,P){return i===d?!0:i==null||d==null||!Jt(i)&&!Jt(d)?i!==i&&d!==d:aE(i,d,A,D,ba,P)}function aE(i,d,A,D,P,U){var Q=Qe(i),ee=Qe(d),ie=Q?J:Wn(i),fe=ee?J:Wn(d);ie=ie==re?Et:ie,fe=fe==re?Et:fe;var ge=ie==Et,ye=fe==Et,$e=ie==fe;if($e&&Ui(i)){if(!Ui(d))return!1;Q=!0,ge=!1}if($e&&!ge)return U||(U=new Ir),Q||fs(i)?Yw(i,d,A,D,P,U):OE(i,d,ie,A,D,P,U);if(!(A&o)){var Me=ge&&$t.call(i,"__wrapped__"),ze=ye&&$t.call(d,"__wrapped__");if(Me||ze){var rt=Me?i.value():i,je=ze?d.value():d;return U||(U=new Ir),P(rt,je,A,D,U)}}return $e?(U||(U=new Ir),DE(i,d,A,D,P,U)):!1}function lE(i){return Jt(i)&&Wn(i)==at}function Xh(i,d,A,D){var P=A.length,U=P,Q=!D;if(i==null)return!U;for(i=Ke(i);P--;){var ee=A[P];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++P<U;){ee=A[P];var ie=ee[0],fe=i[ie],ge=ee[1];if(Q&&ee[2]){if(fe===e&&!(ie in i))return!1}else{var ye=new Ir;if(D)var $e=D(fe,ge,ie,i,d,ye);if(!($e===e?ba(ge,fe,o|u,D,ye):$e))return!1}}return!0}function mw(i){if(!qt(i)||UE(i))return!1;var d=pi(i)?lT:yn;return d.test(So(i))}function cE(i){return Jt(i)&&Un(i)==mn}function uE(i){return Jt(i)&&Wn(i)==Kt}function hE(i){return Jt(i)&&bc(i.length)&&!!At[Un(i)]}function yw(i){return typeof i=="function"?i:i==null?nr:typeof i=="object"?Qe(i)?bw(i[0],i[1]):vw(i):Pv(i)}function ed(i){if(!ka(i))return pT(i);var d=[];for(var A in Ke(i))$t.call(i,A)&&A!="constructor"&&d.push(A);return d}function dE(i){if(!qt(i))return YE(i);var d=ka(i),A=[];for(var D in i)D=="constructor"&&(d||!$t.call(i,D))||A.push(D);return A}function td(i,d){return i<d}function ww(i,d){var A=-1,D=er(i)?se(i.length):[];return Hi(i,function(P,U,Q){D[++A]=d(P,U,Q)}),D}function vw(i){var d=md(i);return d.length==1&&d[0][2]?Xw(d[0][0],d[0][1]):function(A){return A===i||Xh(A,i,d)}}function bw(i,d){return wd(i)&&Jw(d)?Xw(Jr(i),d):function(A){var D=Td(A,i);return D===e&&D===d?Ed(A,i):ba(d,D,o|u)}}function ic(i,d,A,D,P){i!==d&&Kh(d,function(U,Q){if(P||(P=new Ir),qt(U))fE(i,d,Q,A,ic,D,P);else{var ee=D?D(bd(i,Q),U,Q+"",i,d,P):e;ee===e&&(ee=U),Gh(i,Q,ee)}},tr)}function fE(i,d,A,D,P,U,Q){var ee=bd(i,A),ie=bd(d,A),fe=Q.get(ie);if(fe){Gh(i,A,fe);return}var ge=U?U(ee,ie,A+"",i,d,Q):e,ye=ge===e;if(ye){var $e=Qe(ie),Me=!$e&&Ui(ie),ze=!$e&&!Me&&fs(ie);ge=ie,$e||Me||ze?Qe(ee)?ge=ee:rn(ee)?ge=Xn(ee):Me?(ye=!1,ge=Lw(ie,!0)):ze?(ye=!1,ge=Iw(ie,!0)):ge=[]:$a(ie)||$o(ie)?(ge=ee,$o(ee)?ge=Ev(ee):(!qt(ee)||pi(ee))&&(ge=Zw(ie))):ye=!1}ye&&(Q.set(ie,ge),P(ge,ie,D,U,Q),Q.delete(ie)),Gh(i,A,ge)}function xw(i,d){var A=i.length;if(A)return d+=d<0?A:0,fi(d,A)?i[d]:e}function _w(i,d,A){d.length?d=Dt(d,function(U){return Qe(U)?function(Q){return _o(Q,U.length===1?U[0]:U)}:U}):d=[nr];var D=-1;d=Dt(d,Nn(Pe()));var P=ww(i,function(U,Q,ee){var ie=Dt(d,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return Fi(P,function(U,Q){return AE(U,Q,A)})}function pE(i,d){return kw(i,d,function(A,D){return Ed(i,D)})}function kw(i,d,A){for(var D=-1,P=d.length,U={};++D<P;){var Q=d[D],ee=_o(i,Q);A(ee,Q)&&xa(U,ji(Q,i),ee)}return U}function gE(i){return function(d){return _o(d,i)}}function nd(i,d,A,D){var P=D?Wl:ai,U=-1,Q=d.length,ee=i;for(i===d&&(d=Xn(d)),A&&(ee=Dt(i,Nn(A)));++U<Q;)for(var ie=0,fe=d[U],ge=A?A(fe):fe;(ie=P(ee,ge,ie,D))>-1;)ee!==i&&Yl.call(ee,ie,1),Yl.call(i,ie,1);return i}function Sw(i,d){for(var A=i?d.length:0,D=A-1;A--;){var P=d[A];if(A==D||P!==U){var U=P;fi(P)?Yl.call(i,P,1):sd(i,P)}}return i}function rd(i,d){return i+Zl(iw()*(d-i+1))}function mE(i,d,A,D){for(var P=-1,U=_n(Ql((d-i)/(A||1)),0),Q=se(U);U--;)Q[D?U:++P]=i,i+=A;return Q}function id(i,d){var A="";if(!i||d<1||d>H)return A;do d%2&&(A+=i),d=Zl(d/2),d&&(i+=i);while(d);return A}function st(i,d){return xd(ev(i,d,nr),i+"")}function yE(i){return aw(ps(i))}function wE(i,d){var A=ps(i);return pc(A,xo(d,0,A.length))}function xa(i,d,A,D){if(!qt(i))return i;d=ji(d,i);for(var P=-1,U=d.length,Q=U-1,ee=i;ee!=null&&++P<U;){var ie=Jr(d[P]),fe=A;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(P!=Q){var ge=ee[ie];fe=D?D(ge,ie,ee):e,fe===e&&(fe=qt(ge)?ge:fi(d[P+1])?[]:{})}ya(ee,ie,fe),ee=ee[ie]}return i}var $w=Jl?function(i,d){return Jl.set(i,d),i}:nr,vE=Kl?function(i,d){return Kl(i,"toString",{configurable:!0,enumerable:!1,value:Md(d),writable:!0})}:nr;function bE(i){return pc(ps(i))}function _r(i,d,A){var D=-1,P=i.length;d<0&&(d=-d>P?0:P+d),A=A>P?P:A,A<0&&(A+=P),P=d>A?0:A-d>>>0,d>>>=0;for(var U=se(P);++D<P;)U[D]=i[D+d];return U}function xE(i,d){var A;return Hi(i,function(D,P,U){return A=d(D,P,U),!A}),!!A}function oc(i,d,A){var D=0,P=i==null?D:i.length;if(typeof d=="number"&&d===d&&P<=G){for(;D<P;){var U=D+P>>>1,Q=i[U];Q!==null&&!ur(Q)&&(A?Q<=d:Q<d)?D=U+1:P=U}return P}return od(i,d,nr,A)}function od(i,d,A,D){var P=0,U=i==null?0:i.length;if(U===0)return 0;d=A(d);for(var Q=d!==d,ee=d===null,ie=ur(d),fe=d===e;P<U;){var ge=Zl((P+U)/2),ye=A(i[ge]),$e=ye!==e,Me=ye===null,ze=ye===ye,rt=ur(ye);if(Q)var je=D||ze;else fe?je=ze&&(D||$e):ee?je=ze&&$e&&(D||!Me):ie?je=ze&&$e&&!Me&&(D||!rt):Me||rt?je=!1:je=D?ye<=d:ye<d;je?P=ge+1:U=ge}return Fn(U,X)}function Aw(i,d){for(var A=-1,D=i.length,P=0,U=[];++A<D;){var Q=i[A],ee=d?d(Q):Q;if(!A||!Or(ee,ie)){var ie=ee;U[P++]=Q===0?0:Q}}return U}function Cw(i){return typeof i=="number"?i:ur(i)?V:+i}function cr(i){if(typeof i=="string")return i;if(Qe(i))return Dt(i,cr)+"";if(ur(i))return ow?ow.call(i):"";var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function zi(i,d,A){var D=-1,P=ns,U=i.length,Q=!0,ee=[],ie=ee;if(A)Q=!1,P=po;else if(U>=f){var fe=d?null:LE(i);if(fe)return Se(fe);Q=!1,P=Lr,ie=new bo}else ie=d?[]:ee;e:for(;++D<U;){var ge=i[D],ye=d?d(ge):ge;if(ge=A||ge!==0?ge:0,Q&&ye===ye){for(var $e=ie.length;$e--;)if(ie[$e]===ye)continue e;d&&ie.push(ye),ee.push(ge)}else P(ie,ye,A)||(ie!==ee&&ie.push(ye),ee.push(ge))}return ee}function sd(i,d){return d=ji(d,i),i=tv(i,d),i==null||delete i[Jr(kr(d))]}function Tw(i,d,A,D){return xa(i,d,A(_o(i,d)),D)}function sc(i,d,A,D){for(var P=i.length,U=D?P:-1;(D?U--:++U<P)&&d(i[U],U,i););return A?_r(i,D?0:U,D?U+1:P):_r(i,D?U+1:0,D?P:U)}function Ew(i,d){var A=i;return A instanceof pt&&(A=A.value()),vr(d,function(D,P){return P.func.apply(P.thisArg,Dn([D],P.args))},A)}function ad(i,d,A){var D=i.length;if(D<2)return D?zi(i[0]):[];for(var P=-1,U=se(D);++P<D;)for(var Q=i[P],ee=-1;++ee<D;)ee!=P&&(U[P]=wa(U[P]||Q,i[ee],d,A));return zi(Cn(U,1),d,A)}function Rw(i,d,A){for(var D=-1,P=i.length,U=d.length,Q={};++D<P;){var ee=D<U?d[D]:e;A(Q,i[D],ee)}return Q}function ld(i){return rn(i)?i:[]}function cd(i){return typeof i=="function"?i:nr}function ji(i,d){return Qe(i)?i:wd(i,d)?[i]:ov(_t(i))}var _E=st;function Bi(i,d,A){var D=i.length;return A=A===e?D:A,!d&&A>=D?i:_r(i,d,A)}var Mw=cT||function(i){return vn.clearTimeout(i)};function Lw(i,d){if(d)return i.slice();var A=i.length,D=Xy?Xy(A):new i.constructor(A);return i.copy(D),D}function ud(i){var d=new i.constructor(i.byteLength);return new ql(d).set(new ql(i)),d}function kE(i,d){var A=d?ud(i.buffer):i.buffer;return new i.constructor(A,i.byteOffset,i.byteLength)}function SE(i){var d=new i.constructor(i.source,Ti.exec(i));return d.lastIndex=i.lastIndex,d}function $E(i){return ma?Ke(ma.call(i)):{}}function Iw(i,d){var A=d?ud(i.buffer):i.buffer;return new i.constructor(A,i.byteOffset,i.length)}function Ow(i,d){if(i!==d){var A=i!==e,D=i===null,P=i===i,U=ur(i),Q=d!==e,ee=d===null,ie=d===d,fe=ur(d);if(!ee&&!fe&&!U&&i>d||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!A&&ie||!P)return 1;if(!D&&!U&&!fe&&i<d||fe&&A&&P&&!D&&!U||ee&&A&&P||!Q&&P||!ie)return-1}return 0}function AE(i,d,A){for(var D=-1,P=i.criteria,U=d.criteria,Q=P.length,ee=A.length;++D<Q;){var ie=Ow(P[D],U[D]);if(ie){if(D>=ee)return ie;var fe=A[D];return ie*(fe=="desc"?-1:1)}}return i.index-d.index}function Dw(i,d,A,D){for(var P=-1,U=i.length,Q=A.length,ee=-1,ie=d.length,fe=_n(U-Q,0),ge=se(ie+fe),ye=!D;++ee<ie;)ge[ee]=d[ee];for(;++P<Q;)(ye||P<U)&&(ge[A[P]]=i[P]);for(;fe--;)ge[ee++]=i[P++];return ge}function Nw(i,d,A,D){for(var P=-1,U=i.length,Q=-1,ee=A.length,ie=-1,fe=d.length,ge=_n(U-ee,0),ye=se(ge+fe),$e=!D;++P<ge;)ye[P]=i[P];for(var Me=P;++ie<fe;)ye[Me+ie]=d[ie];for(;++Q<ee;)($e||P<U)&&(ye[Me+A[Q]]=i[P++]);return ye}function Xn(i,d){var A=-1,D=i.length;for(d||(d=se(D));++A<D;)d[A]=i[A];return d}function Zr(i,d,A,D){var P=!A;A||(A={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],ie=D?D(A[ee],i[ee],ee,A,i):e;ie===e&&(ie=i[ee]),P?ui(A,ee,ie):ya(A,ee,ie)}return A}function CE(i,d){return Zr(i,yd(i),d)}function TE(i,d){return Zr(i,Kw(i),d)}function ac(i,d){return function(A,D){var P=Qe(A)?Bh:QT,U=d?d():{};return P(A,i,Pe(D,2),U)}}function us(i){return st(function(d,A){var D=-1,P=A.length,U=P>1?A[P-1]:e,Q=P>2?A[2]:e;for(U=i.length>3&&typeof U=="function"?(P--,U):e,Q&&Vn(A[0],A[1],Q)&&(U=P<3?e:U,P=1),d=Ke(d);++D<P;){var ee=A[D];ee&&i(d,ee,D,U)}return d})}function Fw(i,d){return function(A,D){if(A==null)return A;if(!er(A))return i(A,D);for(var P=A.length,U=d?P:-1,Q=Ke(A);(d?U--:++U<P)&&D(Q[U],U,Q)!==!1;);return A}}function Ww(i){return function(d,A,D){for(var P=-1,U=Ke(d),Q=D(d),ee=Q.length;ee--;){var ie=Q[i?ee:++P];if(A(U[ie],ie,U)===!1)break}return d}}function EE(i,d,A){var D=d&g,P=_a(i);function U(){var Q=this&&this!==vn&&this instanceof U?P:i;return Q.apply(D?A:this,arguments)}return U}function Pw(i){return function(d){d=_t(d);var A=te(d)?Ue(d):e,D=A?A[0]:d.charAt(0),P=A?Bi(A,1).join(""):d.slice(1);return D[i]()+P}}function hs(i){return function(d){return vr(Fv(Nv(d).replace(na,"")),i,"")}}function _a(i){return function(){var d=arguments;switch(d.length){case 0:return new i;case 1:return new i(d[0]);case 2:return new i(d[0],d[1]);case 3:return new i(d[0],d[1],d[2]);case 4:return new i(d[0],d[1],d[2],d[3]);case 5:return new i(d[0],d[1],d[2],d[3],d[4]);case 6:return new i(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new i(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var A=cs(i.prototype),D=i.apply(A,d);return qt(D)?D:A}}function RE(i,d,A){var D=_a(i);function P(){for(var U=arguments.length,Q=se(U),ee=U,ie=ds(P);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:xe(Q,ie);if(U-=fe.length,U<A)return Uw(i,d,lc,P.placeholder,e,Q,fe,e,e,A-U);var ge=this&&this!==vn&&this instanceof P?D:i;return Pt(ge,this,Q)}return P}function Hw(i){return function(d,A,D){var P=Ke(d);if(!er(d)){var U=Pe(A,3);d=An(d),A=function(ee){return U(P[ee],ee,P)}}var Q=i(d,A,D);return Q>-1?P[U?d[Q]:Q]:e}}function zw(i){return di(function(d){var A=d.length,D=A,P=br.prototype.thru;for(i&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new xn(y);if(P&&!Q&&dc(U)=="wrapper")var Q=new br([],!0)}for(D=Q?D:A;++D<A;){U=d[D];var ee=dc(U),ie=ee=="wrapper"?gd(U):e;ie&&vd(ie[0])&&ie[1]==(T|M|k|R)&&!ie[4].length&&ie[9]==1?Q=Q[dc(ie[0])].apply(Q,ie[3]):Q=U.length==1&&vd(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&Qe(ge))return Q.plant(ge).value();for(var ye=0,$e=A?d[ye].apply(this,fe):ge;++ye<A;)$e=d[ye].call(this,$e);return $e}})}function lc(i,d,A,D,P,U,Q,ee,ie,fe){var ge=d&T,ye=d&g,$e=d&w,Me=d&(M|C),ze=d&I,rt=$e?e:_a(i);function je(){for(var dt=arguments.length,gt=se(dt),hr=dt;hr--;)gt[hr]=arguments[hr];if(Me)var qn=ds(je),dr=ha(gt,qn);if(D&&(gt=Dw(gt,D,P,Me)),U&&(gt=Nw(gt,U,Q,Me)),dt-=dr,Me&&dt<fe){var on=xe(gt,qn);return Uw(i,d,lc,je.placeholder,A,gt,on,ee,ie,fe-dt)}var Dr=ye?A:this,mi=$e?Dr[i]:i;return dt=gt.length,ee?gt=QE(gt,ee):ze&&dt>1&>.reverse(),ge&&ie<dt&&(gt.length=ie),this&&this!==vn&&this instanceof je&&(mi=rt||_a(mi)),mi.apply(Dr,gt)}return je}function jw(i,d){return function(A,D){return iE(A,i,d(D),{})}}function cc(i,d){return function(A,D){var P;if(A===e&&D===e)return d;if(A!==e&&(P=A),D!==e){if(P===e)return D;typeof A=="string"||typeof D=="string"?(A=cr(A),D=cr(D)):(A=Cw(A),D=Cw(D)),P=i(A,D)}return P}}function hd(i){return di(function(d){return d=Dt(d,Nn(Pe())),st(function(A){var D=this;return i(d,function(P){return Pt(P,D,A)})})})}function uc(i,d){d=d===e?" ":cr(d);var A=d.length;if(A<2)return A?id(d,i):d;var D=id(d,Ql(i/et(d)));return te(d)?Bi(Ue(D),0,i).join(""):D.slice(0,i)}function ME(i,d,A,D){var P=d&g,U=_a(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ye=se(ge+ie),$e=this&&this!==vn&&this instanceof Q?U:i;++fe<ge;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return Pt($e,P?A:this,ye)}return Q}function Bw(i){return function(d,A,D){return D&&typeof D!="number"&&Vn(d,A,D)&&(A=D=e),d=gi(d),A===e?(A=d,d=0):A=gi(A),D=D===e?d<A?1:-1:gi(D),mE(d,A,D,i)}}function hc(i){return function(d,A){return typeof d=="string"&&typeof A=="string"||(d=Sr(d),A=Sr(A)),i(d,A)}}function Uw(i,d,A,D,P,U,Q,ee,ie,fe){var ge=d&M,ye=ge?Q:e,$e=ge?e:Q,Me=ge?U:e,ze=ge?e:U;d|=ge?k:b,d&=~(ge?b:k),d&x||(d&=-4);var rt=[i,d,P,Me,ye,ze,$e,ee,ie,fe],je=A.apply(e,rt);return vd(i)&&nv(je,rt),je.placeholder=D,rv(je,i,d)}function dd(i){var d=xt[i];return function(A,D){if(A=Sr(A),D=D==null?0:Fn(tt(D),292),D&&rw(A)){var P=(_t(A)+"e").split("e"),U=d(P[0]+"e"+(+P[1]+D));return P=(_t(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-D))}return d(A)}}var LE=as&&1/Se(new as([,-0]))[1]==F?function(i){return new as(i)}:Od;function Vw(i){return function(d){var A=Wn(d);return A==at?ve(d):A==Kt?Ce(d):Pl(d,i(d))}}function hi(i,d,A,D,P,U,Q,ee){var ie=d&w;if(!ie&&typeof i!="function")throw new xn(y);var fe=D?D.length:0;if(fe||(d&=-97,D=P=e),Q=Q===e?Q:_n(tt(Q),0),ee=ee===e?ee:tt(ee),fe-=P?P.length:0,d&b){var ge=D,ye=P;D=P=e}var $e=ie?e:gd(i),Me=[i,d,A,D,P,ge,ye,U,Q,ee];if($e&&GE(Me,$e),i=Me[0],d=Me[1],A=Me[2],D=Me[3],P=Me[4],ee=Me[9]=Me[9]===e?ie?0:i.length:_n(Me[9]-fe,0),!ee&&d&(M|C)&&(d&=-25),!d||d==g)var ze=EE(i,d,A);else d==M||d==C?ze=RE(i,d,ee):(d==k||d==(g|k))&&!P.length?ze=ME(i,d,A,D):ze=lc.apply(e,Me);var rt=$e?$w:nv;return rv(rt(ze,Me),i,d)}function qw(i,d,A,D){return i===e||Or(i,ss[A])&&!$t.call(D,A)?d:i}function Gw(i,d,A,D,P,U){return qt(i)&&qt(d)&&(U.set(d,i),ic(i,d,e,Gw,U),U.delete(d)),i}function IE(i){return $a(i)?e:i}function Yw(i,d,A,D,P,U){var Q=A&o,ee=i.length,ie=d.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(d);if(fe&&ge)return fe==d&&ge==i;var ye=-1,$e=!0,Me=A&u?new bo:e;for(U.set(i,d),U.set(d,i);++ye<ee;){var ze=i[ye],rt=d[ye];if(D)var je=Q?D(rt,ze,ye,d,i,U):D(ze,rt,ye,i,d,U);if(je!==e){if(je)continue;$e=!1;break}if(Me){if(!rs(d,function(dt,gt){if(!Lr(Me,gt)&&(ze===dt||P(ze,dt,A,D,U)))return Me.push(gt)})){$e=!1;break}}else if(!(ze===rt||P(ze,rt,A,D,U))){$e=!1;break}}return U.delete(i),U.delete(d),$e}function OE(i,d,A,D,P,U,Q){switch(A){case Ee:if(i.byteLength!=d.byteLength||i.byteOffset!=d.byteOffset)return!1;i=i.buffer,d=d.buffer;case Ae:return!(i.byteLength!=d.byteLength||!U(new ql(i),new ql(d)));case me:case we:case ht:return Or(+i,+d);case _e:return i.name==d.name&&i.message==d.message;case mn:case De:return i==d+"";case at:var ee=ve;case Kt:var ie=D&o;if(ee||(ee=Se),i.size!=d.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==d;D|=u,Q.set(i,d);var ge=Yw(ee(i),ee(d),D,P,U,Q);return Q.delete(i),ge;case We:if(ma)return ma.call(i)==ma.call(d)}return!1}function DE(i,d,A,D,P,U){var Q=A&o,ee=fd(i),ie=ee.length,fe=fd(d),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ye=ie;ye--;){var $e=ee[ye];if(!(Q?$e in d:$t.call(d,$e)))return!1}var Me=U.get(i),ze=U.get(d);if(Me&&ze)return Me==d&&ze==i;var rt=!0;U.set(i,d),U.set(d,i);for(var je=Q;++ye<ie;){$e=ee[ye];var dt=i[$e],gt=d[$e];if(D)var hr=Q?D(gt,dt,$e,d,i,U):D(dt,gt,$e,i,d,U);if(!(hr===e?dt===gt||P(dt,gt,A,D,U):hr)){rt=!1;break}je||(je=$e=="constructor")}if(rt&&!je){var qn=i.constructor,dr=d.constructor;qn!=dr&&"constructor"in i&&"constructor"in d&&!(typeof qn=="function"&&qn instanceof qn&&typeof dr=="function"&&dr instanceof dr)&&(rt=!1)}return U.delete(i),U.delete(d),rt}function di(i){return xd(ev(i,e,cv),i+"")}function fd(i){return pw(i,An,yd)}function pd(i){return pw(i,tr,Kw)}var gd=Jl?function(i){return Jl.get(i)}:Od;function dc(i){for(var d=i.name+"",A=ls[d],D=$t.call(ls,d)?A.length:0;D--;){var P=A[D],U=P.func;if(U==null||U==i)return P.name}return d}function ds(i){var d=$t.call(j,"placeholder")?j:i;return d.placeholder}function Pe(){var i=j.iteratee||Ld;return i=i===Ld?yw:i,arguments.length?i(arguments[0],arguments[1]):i}function fc(i,d){var A=i.__data__;return BE(d)?A[typeof d=="string"?"string":"hash"]:A.map}function md(i){for(var d=An(i),A=d.length;A--;){var D=d[A],P=i[D];d[A]=[D,P,Jw(P)]}return d}function ko(i,d){var A=K(i,d);return mw(A)?A:e}function NE(i){var d=$t.call(i,wo),A=i[wo];try{i[wo]=e;var D=!0}catch{}var P=Ul.call(i);return D&&(d?i[wo]=A:delete i[wo]),P}var yd=Uh?function(i){return i==null?[]:(i=Ke(i),Zn(Uh(i),function(d){return tw.call(i,d)}))}:Dd,Kw=Uh?function(i){for(var d=[];i;)Dn(d,yd(i)),i=Gl(i);return d}:Dd,Wn=Un;(Vh&&Wn(new Vh(new ArrayBuffer(1)))!=Ee||fa&&Wn(new fa)!=at||qh&&Wn(qh.resolve())!=Bt||as&&Wn(new as)!=Kt||pa&&Wn(new pa)!=He)&&(Wn=function(i){var d=Un(i),A=d==Et?i.constructor:e,D=A?So(A):"";if(D)switch(D){case wT:return Ee;case vT:return at;case bT:return Bt;case xT:return Kt;case _T:return He}return d});function FE(i,d,A){for(var D=-1,P=A.length;++D<P;){var U=A[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":d-=Q;break;case"take":d=Fn(d,i+Q);break;case"takeRight":i=_n(i,d-Q);break}}return{start:i,end:d}}function WE(i){var d=i.match(xl);return d?d[1].split(_l):[]}function Qw(i,d,A){d=ji(d,i);for(var D=-1,P=d.length,U=!1;++D<P;){var Q=Jr(d[D]);if(!(U=i!=null&&A(i,Q)))break;i=i[Q]}return U||++D!=P?U:(P=i==null?0:i.length,!!P&&bc(P)&&fi(Q,P)&&(Qe(i)||$o(i)))}function PE(i){var d=i.length,A=new i.constructor(d);return d&&typeof i[0]=="string"&&$t.call(i,"index")&&(A.index=i.index,A.input=i.input),A}function Zw(i){return typeof i.constructor=="function"&&!ka(i)?cs(Gl(i)):{}}function HE(i,d,A){var D=i.constructor;switch(d){case Ae:return ud(i);case me:case we:return new D(+i);case Ee:return kE(i,A);case Be:case Ve:case lt:case ct:case it:case ot:case Xe:case Ft:case Ln:return Iw(i,A);case at:return new D;case ht:case De:return new D(i);case mn:return SE(i);case Kt:return new D;case We:return $E(i)}}function zE(i,d){var A=d.length;if(!A)return i;var D=A-1;return d[D]=(A>1?"& ":"")+d[D],d=d.join(A>2?", ":" "),i.replace(Ci,`{
|
1388
|
+
/* [wrapped with `+d+`] */
|
1389
|
+
`)}function jE(i){return Qe(i)||$o(i)||!!(nw&&i&&i[nw])}function fi(i,d){var A=typeof i;return d=d??H,!!d&&(A=="number"||A!="symbol"&&un.test(i))&&i>-1&&i%1==0&&i<d}function Vn(i,d,A){if(!qt(A))return!1;var D=typeof d;return(D=="number"?er(A)&&fi(d,A.length):D=="string"&&d in A)?Or(A[d],i):!1}function wd(i,d){if(Qe(i))return!1;var A=typeof i;return A=="number"||A=="symbol"||A=="boolean"||i==null||ur(i)?!0:Sn.test(i)||!ni.test(i)||d!=null&&i in Ke(d)}function BE(i){var d=typeof i;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?i!=="__proto__":i===null}function vd(i){var d=dc(i),A=j[d];if(typeof A!="function"||!(d in pt.prototype))return!1;if(i===A)return!0;var D=gd(A);return!!D&&i===D[0]}function UE(i){return!!Jy&&Jy in i}var VE=jl?pi:Nd;function ka(i){var d=i&&i.constructor,A=typeof d=="function"&&d.prototype||ss;return i===A}function Jw(i){return i===i&&!qt(i)}function Xw(i,d){return function(A){return A==null?!1:A[i]===d&&(d!==e||i in Ke(A))}}function qE(i){var d=wc(i,function(D){return A.size===p&&A.clear(),D}),A=d.cache;return d}function GE(i,d){var A=i[1],D=d[1],P=A|D,U=P<(g|w|T),Q=D==T&&A==M||D==T&&A==R&&i[7].length<=d[8]||D==(T|R)&&d[7].length<=d[8]&&A==M;if(!(U||Q))return i;D&g&&(i[2]=d[2],P|=A&g?0:x);var ee=d[3];if(ee){var ie=i[3];i[3]=ie?Dw(ie,ee,d[4]):ee,i[4]=ie?xe(i[3],a):d[4]}return ee=d[5],ee&&(ie=i[5],i[5]=ie?Nw(ie,ee,d[6]):ee,i[6]=ie?xe(i[5],a):d[6]),ee=d[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?d[8]:Fn(i[8],d[8])),i[9]==null&&(i[9]=d[9]),i[0]=d[0],i[1]=P,i}function YE(i){var d=[];if(i!=null)for(var A in Ke(i))d.push(A);return d}function KE(i){return Ul.call(i)}function ev(i,d,A){return d=_n(d===e?i.length-1:d,0),function(){for(var D=arguments,P=-1,U=_n(D.length-d,0),Q=se(U);++P<U;)Q[P]=D[d+P];P=-1;for(var ee=se(d+1);++P<d;)ee[P]=D[P];return ee[d]=A(Q),Pt(i,this,ee)}}function tv(i,d){return d.length<2?i:_o(i,_r(d,0,-1))}function QE(i,d){for(var A=i.length,D=Fn(d.length,A),P=Xn(i);D--;){var U=d[D];i[D]=fi(U,A)?P[U]:e}return i}function bd(i,d){if(!(d==="constructor"&&typeof i[d]=="function")&&d!="__proto__")return i[d]}var nv=iv($w),Sa=hT||function(i,d){return vn.setTimeout(i,d)},xd=iv(vE);function rv(i,d,A){var D=d+"";return xd(i,zE(D,ZE(WE(D),A)))}function iv(i){var d=0,A=0;return function(){var D=gT(),P=_-(D-A);if(A=D,P>0){if(++d>=S)return arguments[0]}else d=0;return i.apply(e,arguments)}}function pc(i,d){var A=-1,D=i.length,P=D-1;for(d=d===e?D:d;++A<d;){var U=rd(A,P),Q=i[U];i[U]=i[A],i[A]=Q}return i.length=d,i}var ov=qE(function(i){var d=[];return i.charCodeAt(0)===46&&d.push(""),i.replace(Br,function(A,D,P,U){d.push(P?U.replace(ri,"$1"):D||A)}),d});function Jr(i){if(typeof i=="string"||ur(i))return i;var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function So(i){if(i!=null){try{return Bl.call(i)}catch{}try{return i+""}catch{}}return""}function ZE(i,d){return jn(Z,function(A){var D="_."+A[0];d&A[1]&&!ns(i,D)&&i.push(D)}),i.sort()}function sv(i){if(i instanceof pt)return i.clone();var d=new br(i.__wrapped__,i.__chain__);return d.__actions__=Xn(i.__actions__),d.__index__=i.__index__,d.__values__=i.__values__,d}function JE(i,d,A){(A?Vn(i,d,A):d===e)?d=1:d=_n(tt(d),0);var D=i==null?0:i.length;if(!D||d<1)return[];for(var P=0,U=0,Q=se(Ql(D/d));P<D;)Q[U++]=_r(i,P,P+=d);return Q}function XE(i){for(var d=-1,A=i==null?0:i.length,D=0,P=[];++d<A;){var U=i[d];U&&(P[D++]=U)}return P}function eR(){var i=arguments.length;if(!i)return[];for(var d=se(i-1),A=arguments[0],D=i;D--;)d[D-1]=arguments[D];return Dn(Qe(A)?Xn(A):[A],Cn(d,1))}var tR=st(function(i,d){return rn(i)?wa(i,Cn(d,1,rn,!0)):[]}),nR=st(function(i,d){var A=kr(d);return rn(A)&&(A=e),rn(i)?wa(i,Cn(d,1,rn,!0),Pe(A,2)):[]}),rR=st(function(i,d){var A=kr(d);return rn(A)&&(A=e),rn(i)?wa(i,Cn(d,1,rn,!0),e,A):[]});function iR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:tt(d),_r(i,d<0?0:d,D)):[]}function oR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:tt(d),d=D-d,_r(i,0,d<0?0:d)):[]}function sR(i,d){return i&&i.length?sc(i,Pe(d,3),!0,!0):[]}function aR(i,d){return i&&i.length?sc(i,Pe(d,3),!0):[]}function lR(i,d,A,D){var P=i==null?0:i.length;return P?(A&&typeof A!="number"&&Vn(i,d,A)&&(A=0,D=P),eE(i,d,A,D)):[]}function av(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=A==null?0:tt(A);return P<0&&(P=_n(D+P,0)),mo(i,Pe(d,3),P)}function lv(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=D-1;return A!==e&&(P=tt(A),P=A<0?_n(D+P,0):Fn(P,D-1)),mo(i,Pe(d,3),P,!0)}function cv(i){var d=i==null?0:i.length;return d?Cn(i,1):[]}function cR(i){var d=i==null?0:i.length;return d?Cn(i,F):[]}function uR(i,d){var A=i==null?0:i.length;return A?(d=d===e?1:tt(d),Cn(i,d)):[]}function hR(i){for(var d=-1,A=i==null?0:i.length,D={};++d<A;){var P=i[d];D[P[0]]=P[1]}return D}function uv(i){return i&&i.length?i[0]:e}function dR(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=A==null?0:tt(A);return P<0&&(P=_n(D+P,0)),ai(i,d,P)}function fR(i){var d=i==null?0:i.length;return d?_r(i,0,-1):[]}var pR=st(function(i){var d=Dt(i,ld);return d.length&&d[0]===i[0]?Jh(d):[]}),gR=st(function(i){var d=kr(i),A=Dt(i,ld);return d===kr(A)?d=e:A.pop(),A.length&&A[0]===i[0]?Jh(A,Pe(d,2)):[]}),mR=st(function(i){var d=kr(i),A=Dt(i,ld);return d=typeof d=="function"?d:e,d&&A.pop(),A.length&&A[0]===i[0]?Jh(A,e,d):[]});function yR(i,d){return i==null?"":fT.call(i,d)}function kr(i){var d=i==null?0:i.length;return d?i[d-1]:e}function wR(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=D;return A!==e&&(P=tt(A),P=P<0?_n(D+P,0):Fn(P,D-1)),d===d?St(i,d,P):mo(i,aa,P,!0)}function vR(i,d){return i&&i.length?xw(i,tt(d)):e}var bR=st(hv);function hv(i,d){return i&&i.length&&d&&d.length?nd(i,d):i}function xR(i,d,A){return i&&i.length&&d&&d.length?nd(i,d,Pe(A,2)):i}function _R(i,d,A){return i&&i.length&&d&&d.length?nd(i,d,e,A):i}var kR=di(function(i,d){var A=i==null?0:i.length,D=Yh(i,d);return Sw(i,Dt(d,function(P){return fi(P,A)?+P:P}).sort(Ow)),D});function SR(i,d){var A=[];if(!(i&&i.length))return A;var D=-1,P=[],U=i.length;for(d=Pe(d,3);++D<U;){var Q=i[D];d(Q,D,i)&&(A.push(Q),P.push(D))}return Sw(i,P),A}function _d(i){return i==null?i:yT.call(i)}function $R(i,d,A){var D=i==null?0:i.length;return D?(A&&typeof A!="number"&&Vn(i,d,A)?(d=0,A=D):(d=d==null?0:tt(d),A=A===e?D:tt(A)),_r(i,d,A)):[]}function AR(i,d){return oc(i,d)}function CR(i,d,A){return od(i,d,Pe(A,2))}function TR(i,d){var A=i==null?0:i.length;if(A){var D=oc(i,d);if(D<A&&Or(i[D],d))return D}return-1}function ER(i,d){return oc(i,d,!0)}function RR(i,d,A){return od(i,d,Pe(A,2),!0)}function MR(i,d){var A=i==null?0:i.length;if(A){var D=oc(i,d,!0)-1;if(Or(i[D],d))return D}return-1}function LR(i){return i&&i.length?Aw(i):[]}function IR(i,d){return i&&i.length?Aw(i,Pe(d,2)):[]}function OR(i){var d=i==null?0:i.length;return d?_r(i,1,d):[]}function DR(i,d,A){return i&&i.length?(d=A||d===e?1:tt(d),_r(i,0,d<0?0:d)):[]}function NR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:tt(d),d=D-d,_r(i,d<0?0:d,D)):[]}function FR(i,d){return i&&i.length?sc(i,Pe(d,3),!1,!0):[]}function WR(i,d){return i&&i.length?sc(i,Pe(d,3)):[]}var PR=st(function(i){return zi(Cn(i,1,rn,!0))}),HR=st(function(i){var d=kr(i);return rn(d)&&(d=e),zi(Cn(i,1,rn,!0),Pe(d,2))}),zR=st(function(i){var d=kr(i);return d=typeof d=="function"?d:e,zi(Cn(i,1,rn,!0),e,d)});function jR(i){return i&&i.length?zi(i):[]}function BR(i,d){return i&&i.length?zi(i,Pe(d,2)):[]}function UR(i,d){return d=typeof d=="function"?d:e,i&&i.length?zi(i,e,d):[]}function kd(i){if(!(i&&i.length))return[];var d=0;return i=Zn(i,function(A){if(rn(A))return d=_n(A.length,d),!0}),Zt(d,function(A){return Dt(i,ca(A))})}function dv(i,d){if(!(i&&i.length))return[];var A=kd(i);return d==null?A:Dt(A,function(D){return Pt(d,e,D)})}var VR=st(function(i,d){return rn(i)?wa(i,d):[]}),qR=st(function(i){return ad(Zn(i,rn))}),GR=st(function(i){var d=kr(i);return rn(d)&&(d=e),ad(Zn(i,rn),Pe(d,2))}),YR=st(function(i){var d=kr(i);return d=typeof d=="function"?d:e,ad(Zn(i,rn),e,d)}),KR=st(kd);function QR(i,d){return Rw(i||[],d||[],ya)}function ZR(i,d){return Rw(i||[],d||[],xa)}var JR=st(function(i){var d=i.length,A=d>1?i[d-1]:e;return A=typeof A=="function"?(i.pop(),A):e,dv(i,A)});function fv(i){var d=j(i);return d.__chain__=!0,d}function XR(i,d){return d(i),i}function gc(i,d){return d(i)}var eM=di(function(i){var d=i.length,A=d?i[0]:0,D=this.__wrapped__,P=function(U){return Yh(U,i)};return d>1||this.__actions__.length||!(D instanceof pt)||!fi(A)?this.thru(P):(D=D.slice(A,+A+(d?1:0)),D.__actions__.push({func:gc,args:[P],thisArg:e}),new br(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function tM(){return fv(this)}function nM(){return new br(this.value(),this.__chain__)}function rM(){this.__values__===e&&(this.__values__=Cv(this.value()));var i=this.__index__>=this.__values__.length,d=i?e:this.__values__[this.__index__++];return{done:i,value:d}}function iM(){return this}function oM(i){for(var d,A=this;A instanceof ec;){var D=sv(A);D.__index__=0,D.__values__=e,d?P.__wrapped__=D:d=D;var P=D;A=A.__wrapped__}return P.__wrapped__=i,d}function sM(){var i=this.__wrapped__;if(i instanceof pt){var d=i;return this.__actions__.length&&(d=new pt(this)),d=d.reverse(),d.__actions__.push({func:gc,args:[_d],thisArg:e}),new br(d,this.__chain__)}return this.thru(_d)}function aM(){return Ew(this.__wrapped__,this.__actions__)}var lM=ac(function(i,d,A){$t.call(i,A)?++i[A]:ui(i,A,1)});function cM(i,d,A){var D=Qe(i)?Ni:XT;return A&&Vn(i,d,A)&&(d=e),D(i,Pe(d,3))}function uM(i,d){var A=Qe(i)?Zn:dw;return A(i,Pe(d,3))}var hM=Hw(av),dM=Hw(lv);function fM(i,d){return Cn(mc(i,d),1)}function pM(i,d){return Cn(mc(i,d),F)}function gM(i,d,A){return A=A===e?1:tt(A),Cn(mc(i,d),A)}function pv(i,d){var A=Qe(i)?jn:Hi;return A(i,Pe(d,3))}function gv(i,d){var A=Qe(i)?Fl:hw;return A(i,Pe(d,3))}var mM=ac(function(i,d,A){$t.call(i,A)?i[A].push(d):ui(i,A,[d])});function yM(i,d,A,D){i=er(i)?i:ps(i),A=A&&!D?tt(A):0;var P=i.length;return A<0&&(A=_n(P+A,0)),xc(i)?A<=P&&i.indexOf(d,A)>-1:!!P&&ai(i,d,A)>-1}var wM=st(function(i,d,A){var D=-1,P=typeof d=="function",U=er(i)?se(i.length):[];return Hi(i,function(Q){U[++D]=P?Pt(d,Q,A):va(Q,d,A)}),U}),vM=ac(function(i,d,A){ui(i,A,d)});function mc(i,d){var A=Qe(i)?Dt:ww;return A(i,Pe(d,3))}function bM(i,d,A,D){return i==null?[]:(Qe(d)||(d=d==null?[]:[d]),A=D?e:A,Qe(A)||(A=A==null?[]:[A]),_w(i,d,A))}var xM=ac(function(i,d,A){i[A?0:1].push(d)},function(){return[[],[]]});function _M(i,d,A){var D=Qe(i)?vr:ua,P=arguments.length<3;return D(i,Pe(d,4),A,P,Hi)}function kM(i,d,A){var D=Qe(i)?go:ua,P=arguments.length<3;return D(i,Pe(d,4),A,P,hw)}function SM(i,d){var A=Qe(i)?Zn:dw;return A(i,vc(Pe(d,3)))}function $M(i){var d=Qe(i)?aw:yE;return d(i)}function AM(i,d,A){(A?Vn(i,d,A):d===e)?d=1:d=tt(d);var D=Qe(i)?YT:wE;return D(i,d)}function CM(i){var d=Qe(i)?KT:bE;return d(i)}function TM(i){if(i==null)return 0;if(er(i))return xc(i)?et(i):i.length;var d=Wn(i);return d==at||d==Kt?i.size:ed(i).length}function EM(i,d,A){var D=Qe(i)?rs:xE;return A&&Vn(i,d,A)&&(d=e),D(i,Pe(d,3))}var RM=st(function(i,d){if(i==null)return[];var A=d.length;return A>1&&Vn(i,d[0],d[1])?d=[]:A>2&&Vn(d[0],d[1],d[2])&&(d=[d[0]]),_w(i,Cn(d,1),[])}),yc=uT||function(){return vn.Date.now()};function MM(i,d){if(typeof d!="function")throw new xn(y);return i=tt(i),function(){if(--i<1)return d.apply(this,arguments)}}function mv(i,d,A){return d=A?e:d,d=i&&d==null?i.length:d,hi(i,T,e,e,e,e,d)}function yv(i,d){var A;if(typeof d!="function")throw new xn(y);return i=tt(i),function(){return--i>0&&(A=d.apply(this,arguments)),i<=1&&(d=e),A}}var Sd=st(function(i,d,A){var D=g;if(A.length){var P=xe(A,ds(Sd));D|=k}return hi(i,D,d,A,P)}),wv=st(function(i,d,A){var D=g|w;if(A.length){var P=xe(A,ds(wv));D|=k}return hi(d,D,i,A,P)});function vv(i,d,A){d=A?e:d;var D=hi(i,M,e,e,e,e,e,d);return D.placeholder=vv.placeholder,D}function bv(i,d,A){d=A?e:d;var D=hi(i,C,e,e,e,e,e,d);return D.placeholder=bv.placeholder,D}function xv(i,d,A){var D,P,U,Q,ee,ie,fe=0,ge=!1,ye=!1,$e=!0;if(typeof i!="function")throw new xn(y);d=Sr(d)||0,qt(A)&&(ge=!!A.leading,ye="maxWait"in A,U=ye?_n(Sr(A.maxWait)||0,d):U,$e="trailing"in A?!!A.trailing:$e);function Me(on){var Dr=D,mi=P;return D=P=e,fe=on,Q=i.apply(mi,Dr),Q}function ze(on){return fe=on,ee=Sa(dt,d),ge?Me(on):Q}function rt(on){var Dr=on-ie,mi=on-fe,Hv=d-Dr;return ye?Fn(Hv,U-mi):Hv}function je(on){var Dr=on-ie,mi=on-fe;return ie===e||Dr>=d||Dr<0||ye&&mi>=U}function dt(){var on=yc();if(je(on))return gt(on);ee=Sa(dt,rt(on))}function gt(on){return ee=e,$e&&D?Me(on):(D=P=e,Q)}function hr(){ee!==e&&Mw(ee),fe=0,D=ie=P=ee=e}function qn(){return ee===e?Q:gt(yc())}function dr(){var on=yc(),Dr=je(on);if(D=arguments,P=this,ie=on,Dr){if(ee===e)return ze(ie);if(ye)return Mw(ee),ee=Sa(dt,d),Me(ie)}return ee===e&&(ee=Sa(dt,d)),Q}return dr.cancel=hr,dr.flush=qn,dr}var LM=st(function(i,d){return uw(i,1,d)}),IM=st(function(i,d,A){return uw(i,Sr(d)||0,A)});function OM(i){return hi(i,I)}function wc(i,d){if(typeof i!="function"||d!=null&&typeof d!="function")throw new xn(y);var A=function(){var D=arguments,P=d?d.apply(this,D):D[0],U=A.cache;if(U.has(P))return U.get(P);var Q=i.apply(this,D);return A.cache=U.set(P,Q)||U,Q};return A.cache=new(wc.Cache||ci),A}wc.Cache=ci;function vc(i){if(typeof i!="function")throw new xn(y);return function(){var d=arguments;switch(d.length){case 0:return!i.call(this);case 1:return!i.call(this,d[0]);case 2:return!i.call(this,d[0],d[1]);case 3:return!i.call(this,d[0],d[1],d[2])}return!i.apply(this,d)}}function DM(i){return yv(2,i)}var NM=_E(function(i,d){d=d.length==1&&Qe(d[0])?Dt(d[0],Nn(Pe())):Dt(Cn(d,1),Nn(Pe()));var A=d.length;return st(function(D){for(var P=-1,U=Fn(D.length,A);++P<U;)D[P]=d[P].call(this,D[P]);return Pt(i,this,D)})}),$d=st(function(i,d){var A=xe(d,ds($d));return hi(i,k,e,d,A)}),_v=st(function(i,d){var A=xe(d,ds(_v));return hi(i,b,e,d,A)}),FM=di(function(i,d){return hi(i,R,e,e,e,d)});function WM(i,d){if(typeof i!="function")throw new xn(y);return d=d===e?d:tt(d),st(i,d)}function PM(i,d){if(typeof i!="function")throw new xn(y);return d=d==null?0:_n(tt(d),0),st(function(A){var D=A[d],P=Bi(A,0,d);return D&&Dn(P,D),Pt(i,this,P)})}function HM(i,d,A){var D=!0,P=!0;if(typeof i!="function")throw new xn(y);return qt(A)&&(D="leading"in A?!!A.leading:D,P="trailing"in A?!!A.trailing:P),xv(i,d,{leading:D,maxWait:d,trailing:P})}function zM(i){return mv(i,1)}function jM(i,d){return $d(cd(d),i)}function BM(){if(!arguments.length)return[];var i=arguments[0];return Qe(i)?i:[i]}function UM(i){return xr(i,l)}function VM(i,d){return d=typeof d=="function"?d:e,xr(i,l,d)}function qM(i){return xr(i,c|l)}function GM(i,d){return d=typeof d=="function"?d:e,xr(i,c|l,d)}function YM(i,d){return d==null||cw(i,d,An(d))}function Or(i,d){return i===d||i!==i&&d!==d}var KM=hc(Zh),QM=hc(function(i,d){return i>=d}),$o=gw(function(){return arguments}())?gw:function(i){return Jt(i)&&$t.call(i,"callee")&&!tw.call(i,"callee")},Qe=se.isArray,ZM=Dl?Nn(Dl):oE;function er(i){return i!=null&&bc(i.length)&&!pi(i)}function rn(i){return Jt(i)&&er(i)}function JM(i){return i===!0||i===!1||Jt(i)&&Un(i)==me}var Ui=dT||Nd,XM=wr?Nn(wr):sE;function eL(i){return Jt(i)&&i.nodeType===1&&!$a(i)}function tL(i){if(i==null)return!0;if(er(i)&&(Qe(i)||typeof i=="string"||typeof i.splice=="function"||Ui(i)||fs(i)||$o(i)))return!i.length;var d=Wn(i);if(d==at||d==Kt)return!i.size;if(ka(i))return!ed(i).length;for(var A in i)if($t.call(i,A))return!1;return!0}function nL(i,d){return ba(i,d)}function rL(i,d,A){A=typeof A=="function"?A:e;var D=A?A(i,d):e;return D===e?ba(i,d,e,A):!!D}function Ad(i){if(!Jt(i))return!1;var d=Un(i);return d==_e||d==pe||typeof i.message=="string"&&typeof i.name=="string"&&!$a(i)}function iL(i){return typeof i=="number"&&rw(i)}function pi(i){if(!qt(i))return!1;var d=Un(i);return d==nt||d==It||d==ae||d==jr}function kv(i){return typeof i=="number"&&i==tt(i)}function bc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=H}function qt(i){var d=typeof i;return i!=null&&(d=="object"||d=="function")}function Jt(i){return i!=null&&typeof i=="object"}var Sv=Mr?Nn(Mr):lE;function oL(i,d){return i===d||Xh(i,d,md(d))}function sL(i,d,A){return A=typeof A=="function"?A:e,Xh(i,d,md(d),A)}function aL(i){return $v(i)&&i!=+i}function lL(i){if(VE(i))throw new Oe(m);return mw(i)}function cL(i){return i===null}function uL(i){return i==null}function $v(i){return typeof i=="number"||Jt(i)&&Un(i)==ht}function $a(i){if(!Jt(i)||Un(i)!=Et)return!1;var d=Gl(i);if(d===null)return!0;var A=$t.call(d,"constructor")&&d.constructor;return typeof A=="function"&&A instanceof A&&Bl.call(A)==sT}var Cd=Kr?Nn(Kr):cE;function hL(i){return kv(i)&&i>=-9007199254740991&&i<=H}var Av=si?Nn(si):uE;function xc(i){return typeof i=="string"||!Qe(i)&&Jt(i)&&Un(i)==De}function ur(i){return typeof i=="symbol"||Jt(i)&&Un(i)==We}var fs=Nl?Nn(Nl):hE;function dL(i){return i===e}function fL(i){return Jt(i)&&Wn(i)==He}function pL(i){return Jt(i)&&Un(i)==ce}var gL=hc(td),mL=hc(function(i,d){return i<=d});function Cv(i){if(!i)return[];if(er(i))return xc(i)?Ue(i):Xn(i);if(da&&i[da])return de(i[da]());var d=Wn(i),A=d==at?ve:d==Kt?Se:ps;return A(i)}function gi(i){if(!i)return i===0?i:0;if(i=Sr(i),i===F||i===-1/0){var d=i<0?-1:1;return d*B}return i===i?i:0}function tt(i){var d=gi(i),A=d%1;return d===d?A?d-A:d:0}function Tv(i){return i?xo(tt(i),0,q):0}function Sr(i){if(typeof i=="number")return i;if(ur(i))return V;if(qt(i)){var d=typeof i.valueOf=="function"?i.valueOf():i;i=qt(d)?d+"":d}if(typeof i!="string")return i===0?i:+i;i=Ut(i);var A=Vr.test(i);return A||cn.test(i)?Rt(i.slice(2),A?2:8):kl.test(i)?V:+i}function Ev(i){return Zr(i,tr(i))}function yL(i){return i?xo(tt(i),-9007199254740991,H):i===0?i:0}function _t(i){return i==null?"":cr(i)}var wL=us(function(i,d){if(ka(d)||er(d)){Zr(d,An(d),i);return}for(var A in d)$t.call(d,A)&&ya(i,A,d[A])}),Rv=us(function(i,d){Zr(d,tr(d),i)}),_c=us(function(i,d,A,D){Zr(d,tr(d),i,D)}),vL=us(function(i,d,A,D){Zr(d,An(d),i,D)}),bL=di(Yh);function xL(i,d){var A=cs(i);return d==null?A:lw(A,d)}var _L=st(function(i,d){i=Ke(i);var A=-1,D=d.length,P=D>2?d[2]:e;for(P&&Vn(d[0],d[1],P)&&(D=1);++A<D;)for(var U=d[A],Q=tr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===e||Or(ge,ss[fe])&&!$t.call(i,fe))&&(i[fe]=U[fe])}return i}),kL=st(function(i){return i.push(e,Gw),Pt(Mv,e,i)});function SL(i,d){return sa(i,Pe(d,3),Qr)}function $L(i,d){return sa(i,Pe(d,3),Qh)}function AL(i,d){return i==null?i:Kh(i,Pe(d,3),tr)}function CL(i,d){return i==null?i:fw(i,Pe(d,3),tr)}function TL(i,d){return i&&Qr(i,Pe(d,3))}function EL(i,d){return i&&Qh(i,Pe(d,3))}function RL(i){return i==null?[]:rc(i,An(i))}function ML(i){return i==null?[]:rc(i,tr(i))}function Td(i,d,A){var D=i==null?e:_o(i,d);return D===e?A:D}function LL(i,d){return i!=null&&Qw(i,d,tE)}function Ed(i,d){return i!=null&&Qw(i,d,nE)}var IL=jw(function(i,d,A){d!=null&&typeof d.toString!="function"&&(d=Ul.call(d)),i[d]=A},Md(nr)),OL=jw(function(i,d,A){d!=null&&typeof d.toString!="function"&&(d=Ul.call(d)),$t.call(i,d)?i[d].push(A):i[d]=[A]},Pe),DL=st(va);function An(i){return er(i)?sw(i):ed(i)}function tr(i){return er(i)?sw(i,!0):dE(i)}function NL(i,d){var A={};return d=Pe(d,3),Qr(i,function(D,P,U){ui(A,d(D,P,U),D)}),A}function FL(i,d){var A={};return d=Pe(d,3),Qr(i,function(D,P,U){ui(A,P,d(D,P,U))}),A}var WL=us(function(i,d,A){ic(i,d,A)}),Mv=us(function(i,d,A,D){ic(i,d,A,D)}),PL=di(function(i,d){var A={};if(i==null)return A;var D=!1;d=Dt(d,function(U){return U=ji(U,i),D||(D=U.length>1),U}),Zr(i,pd(i),A),D&&(A=xr(A,c|s|l,IE));for(var P=d.length;P--;)sd(A,d[P]);return A});function HL(i,d){return Lv(i,vc(Pe(d)))}var zL=di(function(i,d){return i==null?{}:pE(i,d)});function Lv(i,d){if(i==null)return{};var A=Dt(pd(i),function(D){return[D]});return d=Pe(d),kw(i,A,function(D,P){return d(D,P[0])})}function jL(i,d,A){d=ji(d,i);var D=-1,P=d.length;for(P||(P=1,i=e);++D<P;){var U=i==null?e:i[Jr(d[D])];U===e&&(D=P,U=A),i=pi(U)?U.call(i):U}return i}function BL(i,d,A){return i==null?i:xa(i,d,A)}function UL(i,d,A,D){return D=typeof D=="function"?D:e,i==null?i:xa(i,d,A,D)}var Iv=Vw(An),Ov=Vw(tr);function VL(i,d,A){var D=Qe(i),P=D||Ui(i)||fs(i);if(d=Pe(d,4),A==null){var U=i&&i.constructor;P?A=D?new U:[]:qt(i)?A=pi(U)?cs(Gl(i)):{}:A={}}return(P?jn:Qr)(i,function(Q,ee,ie){return d(A,Q,ee,ie)}),A}function qL(i,d){return i==null?!0:sd(i,d)}function GL(i,d,A){return i==null?i:Tw(i,d,cd(A))}function YL(i,d,A,D){return D=typeof D=="function"?D:e,i==null?i:Tw(i,d,cd(A),D)}function ps(i){return i==null?[]:yo(i,An(i))}function KL(i){return i==null?[]:yo(i,tr(i))}function QL(i,d,A){return A===e&&(A=d,d=e),A!==e&&(A=Sr(A),A=A===A?A:0),d!==e&&(d=Sr(d),d=d===d?d:0),xo(Sr(i),d,A)}function ZL(i,d,A){return d=gi(d),A===e?(A=d,d=0):A=gi(A),i=Sr(i),rE(i,d,A)}function JL(i,d,A){if(A&&typeof A!="boolean"&&Vn(i,d,A)&&(d=A=e),A===e&&(typeof d=="boolean"?(A=d,d=e):typeof i=="boolean"&&(A=i,i=e)),i===e&&d===e?(i=0,d=1):(i=gi(i),d===e?(d=i,i=0):d=gi(d)),i>d){var D=i;i=d,d=D}if(A||i%1||d%1){var P=iw();return Fn(i+P*(d-i+dn("1e-"+((P+"").length-1))),d)}return rd(i,d)}var XL=hs(function(i,d,A){return d=d.toLowerCase(),i+(A?Dv(d):d)});function Dv(i){return Rd(_t(i).toLowerCase())}function Nv(i){return i=_t(i),i&&i.replace(Go,W).replace(Ii,"")}function eI(i,d,A){i=_t(i),d=cr(d);var D=i.length;A=A===e?D:xo(tt(A),0,D);var P=A;return A-=d.length,A>=0&&i.slice(A,P)==d}function tI(i){return i=_t(i),i&&Oh.test(i)?i.replace(bl,z):i}function nI(i){return i=_t(i),i&&$i.test(i)?i.replace(Ur,"\\$&"):i}var rI=hs(function(i,d,A){return i+(A?"-":"")+d.toLowerCase()}),iI=hs(function(i,d,A){return i+(A?" ":"")+d.toLowerCase()}),oI=Pw("toLowerCase");function sI(i,d,A){i=_t(i),d=tt(d);var D=d?et(i):0;if(!d||D>=d)return i;var P=(d-D)/2;return uc(Zl(P),A)+i+uc(Ql(P),A)}function aI(i,d,A){i=_t(i),d=tt(d);var D=d?et(i):0;return d&&D<d?i+uc(d-D,A):i}function lI(i,d,A){i=_t(i),d=tt(d);var D=d?et(i):0;return d&&D<d?uc(d-D,A)+i:i}function cI(i,d,A){return A||d==null?d=0:d&&(d=+d),mT(_t(i).replace(In,""),d||0)}function uI(i,d,A){return(A?Vn(i,d,A):d===e)?d=1:d=tt(d),id(_t(i),d)}function hI(){var i=arguments,d=_t(i[0]);return i.length<3?d:d.replace(i[1],i[2])}var dI=hs(function(i,d,A){return i+(A?"_":"")+d.toLowerCase()});function fI(i,d,A){return A&&typeof A!="number"&&Vn(i,d,A)&&(d=A=e),A=A===e?q:A>>>0,A?(i=_t(i),i&&(typeof d=="string"||d!=null&&!Cd(d))&&(d=cr(d),!d&&te(i))?Bi(Ue(i),0,A):i.split(d,A)):[]}var pI=hs(function(i,d,A){return i+(A?" ":"")+Rd(d)});function gI(i,d,A){return i=_t(i),A=A==null?0:xo(tt(A),0,i.length),d=cr(d),i.slice(A,A+d.length)==d}function mI(i,d,A){var D=j.templateSettings;A&&Vn(i,d,A)&&(d=e),i=_t(i),d=_c({},d,D,qw);var P=_c({},d.imports,D.imports,qw),U=An(P),Q=yo(P,U),ee,ie,fe=0,ge=d.interpolate||On,ye="__p += '",$e=bn((d.escape||On).source+"|"+ge.source+"|"+(ge===Ne?Ph:On).source+"|"+(d.evaluate||On).source+"|$","g"),Me="//# sourceURL="+($t.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Il+"]")+`
|
1390
|
+
`;i.replace($e,function(je,dt,gt,hr,qn,dr){return gt||(gt=hr),ye+=i.slice(fe,dr).replace(lo,Y),dt&&(ee=!0,ye+=`' +
|
1391
|
+
__e(`+dt+`) +
|
1392
|
+
'`),qn&&(ie=!0,ye+=`';
|
1393
|
+
`+qn+`;
|
1394
|
+
__p += '`),gt&&(ye+=`' +
|
1395
|
+
((__t = (`+gt+`)) == null ? '' : __t) +
|
1396
|
+
'`),fe=dr+je.length,je}),ye+=`';
|
1397
|
+
`;var ze=$t.call(d,"variable")&&d.variable;if(!ze)ye=`with (obj) {
|
1398
|
+
`+ye+`
|
1399
|
+
}
|
1400
|
+
`;else if(Wh.test(ze))throw new Oe(v);ye=(ie?ye.replace(ti,""):ye).replace(Kn,"$1").replace(zs,"$1;"),ye="function("+(ze||"obj")+`) {
|
1401
|
+
`+(ze?"":`obj || (obj = {});
|
1402
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
1403
|
+
function print() { __p += __j.call(arguments, '') }
|
1404
|
+
`:`;
|
1405
|
+
`)+ye+`return __p
|
1406
|
+
}`;var rt=Wv(function(){return Ge(U,Me+"return "+ye).apply(e,Q)});if(rt.source=ye,Ad(rt))throw rt;return rt}function yI(i){return _t(i).toLowerCase()}function wI(i){return _t(i).toUpperCase()}function vI(i,d,A){if(i=_t(i),i&&(A||d===e))return Ut(i);if(!i||!(d=cr(d)))return i;var D=Ue(i),P=Ue(d),U=Hl(D,P),Q=zl(D,P)+1;return Bi(D,U,Q).join("")}function bI(i,d,A){if(i=_t(i),i&&(A||d===e))return i.slice(0,Ye(i)+1);if(!i||!(d=cr(d)))return i;var D=Ue(i),P=zl(D,Ue(d))+1;return Bi(D,0,P).join("")}function xI(i,d,A){if(i=_t(i),i&&(A||d===e))return i.replace(In,"");if(!i||!(d=cr(d)))return i;var D=Ue(i),P=Hl(D,Ue(d));return Bi(D,P).join("")}function _I(i,d){var A=E,D=N;if(qt(d)){var P="separator"in d?d.separator:P;A="length"in d?tt(d.length):A,D="omission"in d?cr(d.omission):D}i=_t(i);var U=i.length;if(te(i)){var Q=Ue(i);U=Q.length}if(A>=U)return i;var ee=A-et(D);if(ee<1)return D;var ie=Q?Bi(Q,0,ee).join(""):i.slice(0,ee);if(P===e)return ie+D;if(Q&&(ee+=ie.length-ee),Cd(P)){if(i.slice(ee).search(P)){var fe,ge=ie;for(P.global||(P=bn(P.source,_t(Ti.exec(P))+"g")),P.lastIndex=0;fe=P.exec(ge);)var ye=fe.index;ie=ie.slice(0,ye===e?ee:ye)}}else if(i.indexOf(cr(P),ee)!=ee){var $e=ie.lastIndexOf(P);$e>-1&&(ie=ie.slice(0,$e))}return ie+D}function kI(i){return i=_t(i),i&&Ih.test(i)?i.replace(js,Re):i}var SI=hs(function(i,d,A){return i+(A?" ":"")+d.toUpperCase()}),Rd=Pw("toUpperCase");function Fv(i,d,A){return i=_t(i),d=A?e:d,d===e?oe(i)?Ht(i):is(i):i.match(d)||[]}var Wv=st(function(i,d){try{return Pt(i,e,d)}catch(A){return Ad(A)?A:new Oe(A)}}),$I=di(function(i,d){return jn(d,function(A){A=Jr(A),ui(i,A,Sd(i[A],i))}),i});function AI(i){var d=i==null?0:i.length,A=Pe();return i=d?Dt(i,function(D){if(typeof D[1]!="function")throw new xn(y);return[A(D[0]),D[1]]}):[],st(function(D){for(var P=-1;++P<d;){var U=i[P];if(Pt(U[0],this,D))return Pt(U[1],this,D)}})}function CI(i){return JT(xr(i,c))}function Md(i){return function(){return i}}function TI(i,d){return i==null||i!==i?d:i}var EI=zw(),RI=zw(!0);function nr(i){return i}function Ld(i){return yw(typeof i=="function"?i:xr(i,c))}function MI(i){return vw(xr(i,c))}function LI(i,d){return bw(i,xr(d,c))}var II=st(function(i,d){return function(A){return va(A,i,d)}}),OI=st(function(i,d){return function(A){return va(i,A,d)}});function Id(i,d,A){var D=An(d),P=rc(d,D);A==null&&!(qt(d)&&(P.length||!D.length))&&(A=d,d=i,i=this,P=rc(d,An(d)));var U=!(qt(A)&&"chain"in A)||!!A.chain,Q=pi(i);return jn(P,function(ee){var ie=d[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ye=ge.__actions__=Xn(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,Dn([this.value()],arguments))})}),i}function DI(){return vn._===this&&(vn._=aT),this}function Od(){}function NI(i){return i=tt(i),st(function(d){return xw(d,i)})}var FI=hd(Dt),WI=hd(Ni),PI=hd(rs);function Pv(i){return wd(i)?ca(Jr(i)):gE(i)}function HI(i){return function(d){return i==null?e:_o(i,d)}}var zI=Bw(),jI=Bw(!0);function Dd(){return[]}function Nd(){return!1}function BI(){return{}}function UI(){return""}function VI(){return!0}function qI(i,d){if(i=tt(i),i<1||i>H)return[];var A=q,D=Fn(i,q);d=Pe(d),i-=q;for(var P=Zt(D,d);++A<i;)d(A);return P}function GI(i){return Qe(i)?Dt(i,Jr):ur(i)?[i]:Xn(ov(_t(i)))}function YI(i){var d=++oT;return _t(i)+d}var KI=cc(function(i,d){return i+d},0),QI=dd("ceil"),ZI=cc(function(i,d){return i/d},1),JI=dd("floor");function XI(i){return i&&i.length?nc(i,nr,Zh):e}function eO(i,d){return i&&i.length?nc(i,Pe(d,2),Zh):e}function tO(i){return la(i,nr)}function nO(i,d){return la(i,Pe(d,2))}function rO(i){return i&&i.length?nc(i,nr,td):e}function iO(i,d){return i&&i.length?nc(i,Pe(d,2),td):e}var oO=cc(function(i,d){return i*d},1),sO=dd("round"),aO=cc(function(i,d){return i-d},0);function lO(i){return i&&i.length?Wi(i,nr):0}function cO(i,d){return i&&i.length?Wi(i,Pe(d,2)):0}return j.after=MM,j.ary=mv,j.assign=wL,j.assignIn=Rv,j.assignInWith=_c,j.assignWith=vL,j.at=bL,j.before=yv,j.bind=Sd,j.bindAll=$I,j.bindKey=wv,j.castArray=BM,j.chain=fv,j.chunk=JE,j.compact=XE,j.concat=eR,j.cond=AI,j.conforms=CI,j.constant=Md,j.countBy=lM,j.create=xL,j.curry=vv,j.curryRight=bv,j.debounce=xv,j.defaults=_L,j.defaultsDeep=kL,j.defer=LM,j.delay=IM,j.difference=tR,j.differenceBy=nR,j.differenceWith=rR,j.drop=iR,j.dropRight=oR,j.dropRightWhile=sR,j.dropWhile=aR,j.fill=lR,j.filter=uM,j.flatMap=fM,j.flatMapDeep=pM,j.flatMapDepth=gM,j.flatten=cv,j.flattenDeep=cR,j.flattenDepth=uR,j.flip=OM,j.flow=EI,j.flowRight=RI,j.fromPairs=hR,j.functions=RL,j.functionsIn=ML,j.groupBy=mM,j.initial=fR,j.intersection=pR,j.intersectionBy=gR,j.intersectionWith=mR,j.invert=IL,j.invertBy=OL,j.invokeMap=wM,j.iteratee=Ld,j.keyBy=vM,j.keys=An,j.keysIn=tr,j.map=mc,j.mapKeys=NL,j.mapValues=FL,j.matches=MI,j.matchesProperty=LI,j.memoize=wc,j.merge=WL,j.mergeWith=Mv,j.method=II,j.methodOf=OI,j.mixin=Id,j.negate=vc,j.nthArg=NI,j.omit=PL,j.omitBy=HL,j.once=DM,j.orderBy=bM,j.over=FI,j.overArgs=NM,j.overEvery=WI,j.overSome=PI,j.partial=$d,j.partialRight=_v,j.partition=xM,j.pick=zL,j.pickBy=Lv,j.property=Pv,j.propertyOf=HI,j.pull=bR,j.pullAll=hv,j.pullAllBy=xR,j.pullAllWith=_R,j.pullAt=kR,j.range=zI,j.rangeRight=jI,j.rearg=FM,j.reject=SM,j.remove=SR,j.rest=WM,j.reverse=_d,j.sampleSize=AM,j.set=BL,j.setWith=UL,j.shuffle=CM,j.slice=$R,j.sortBy=RM,j.sortedUniq=LR,j.sortedUniqBy=IR,j.split=fI,j.spread=PM,j.tail=OR,j.take=DR,j.takeRight=NR,j.takeRightWhile=FR,j.takeWhile=WR,j.tap=XR,j.throttle=HM,j.thru=gc,j.toArray=Cv,j.toPairs=Iv,j.toPairsIn=Ov,j.toPath=GI,j.toPlainObject=Ev,j.transform=VL,j.unary=zM,j.union=PR,j.unionBy=HR,j.unionWith=zR,j.uniq=jR,j.uniqBy=BR,j.uniqWith=UR,j.unset=qL,j.unzip=kd,j.unzipWith=dv,j.update=GL,j.updateWith=YL,j.values=ps,j.valuesIn=KL,j.without=VR,j.words=Fv,j.wrap=jM,j.xor=qR,j.xorBy=GR,j.xorWith=YR,j.zip=KR,j.zipObject=QR,j.zipObjectDeep=ZR,j.zipWith=JR,j.entries=Iv,j.entriesIn=Ov,j.extend=Rv,j.extendWith=_c,Id(j,j),j.add=KI,j.attempt=Wv,j.camelCase=XL,j.capitalize=Dv,j.ceil=QI,j.clamp=QL,j.clone=UM,j.cloneDeep=qM,j.cloneDeepWith=GM,j.cloneWith=VM,j.conformsTo=YM,j.deburr=Nv,j.defaultTo=TI,j.divide=ZI,j.endsWith=eI,j.eq=Or,j.escape=tI,j.escapeRegExp=nI,j.every=cM,j.find=hM,j.findIndex=av,j.findKey=SL,j.findLast=dM,j.findLastIndex=lv,j.findLastKey=$L,j.floor=JI,j.forEach=pv,j.forEachRight=gv,j.forIn=AL,j.forInRight=CL,j.forOwn=TL,j.forOwnRight=EL,j.get=Td,j.gt=KM,j.gte=QM,j.has=LL,j.hasIn=Ed,j.head=uv,j.identity=nr,j.includes=yM,j.indexOf=dR,j.inRange=ZL,j.invoke=DL,j.isArguments=$o,j.isArray=Qe,j.isArrayBuffer=ZM,j.isArrayLike=er,j.isArrayLikeObject=rn,j.isBoolean=JM,j.isBuffer=Ui,j.isDate=XM,j.isElement=eL,j.isEmpty=tL,j.isEqual=nL,j.isEqualWith=rL,j.isError=Ad,j.isFinite=iL,j.isFunction=pi,j.isInteger=kv,j.isLength=bc,j.isMap=Sv,j.isMatch=oL,j.isMatchWith=sL,j.isNaN=aL,j.isNative=lL,j.isNil=uL,j.isNull=cL,j.isNumber=$v,j.isObject=qt,j.isObjectLike=Jt,j.isPlainObject=$a,j.isRegExp=Cd,j.isSafeInteger=hL,j.isSet=Av,j.isString=xc,j.isSymbol=ur,j.isTypedArray=fs,j.isUndefined=dL,j.isWeakMap=fL,j.isWeakSet=pL,j.join=yR,j.kebabCase=rI,j.last=kr,j.lastIndexOf=wR,j.lowerCase=iI,j.lowerFirst=oI,j.lt=gL,j.lte=mL,j.max=XI,j.maxBy=eO,j.mean=tO,j.meanBy=nO,j.min=rO,j.minBy=iO,j.stubArray=Dd,j.stubFalse=Nd,j.stubObject=BI,j.stubString=UI,j.stubTrue=VI,j.multiply=oO,j.nth=vR,j.noConflict=DI,j.noop=Od,j.now=yc,j.pad=sI,j.padEnd=aI,j.padStart=lI,j.parseInt=cI,j.random=JL,j.reduce=_M,j.reduceRight=kM,j.repeat=uI,j.replace=hI,j.result=jL,j.round=sO,j.runInContext=ne,j.sample=$M,j.size=TM,j.snakeCase=dI,j.some=EM,j.sortedIndex=AR,j.sortedIndexBy=CR,j.sortedIndexOf=TR,j.sortedLastIndex=ER,j.sortedLastIndexBy=RR,j.sortedLastIndexOf=MR,j.startCase=pI,j.startsWith=gI,j.subtract=aO,j.sum=lO,j.sumBy=cO,j.template=mI,j.times=qI,j.toFinite=gi,j.toInteger=tt,j.toLength=Tv,j.toLower=yI,j.toNumber=Sr,j.toSafeInteger=yL,j.toString=_t,j.toUpper=wI,j.trim=vI,j.trimEnd=bI,j.trimStart=xI,j.truncate=_I,j.unescape=kI,j.uniqueId=YI,j.upperCase=SI,j.upperFirst=Rd,j.each=pv,j.eachRight=gv,j.first=uv,Id(j,function(){var i={};return Qr(j,function(d,A){$t.call(j.prototype,A)||(i[A]=d)}),i}(),{chain:!1}),j.VERSION=r,jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){j[i].placeholder=j}),jn(["drop","take"],function(i,d){pt.prototype[i]=function(A){A=A===e?1:_n(tt(A),0);var D=this.__filtered__&&!d?new pt(this):this.clone();return D.__filtered__?D.__takeCount__=Fn(A,D.__takeCount__):D.__views__.push({size:Fn(A,q),type:i+(D.__dir__<0?"Right":"")}),D},pt.prototype[i+"Right"]=function(A){return this.reverse()[i](A).reverse()}}),jn(["filter","map","takeWhile"],function(i,d){var A=d+1,D=A==$||A==O;pt.prototype[i]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:Pe(P,3),type:A}),U.__filtered__=U.__filtered__||D,U}}),jn(["head","last"],function(i,d){var A="take"+(d?"Right":"");pt.prototype[i]=function(){return this[A](1).value()[0]}}),jn(["initial","tail"],function(i,d){var A="drop"+(d?"":"Right");pt.prototype[i]=function(){return this.__filtered__?new pt(this):this[A](1)}}),pt.prototype.compact=function(){return this.filter(nr)},pt.prototype.find=function(i){return this.filter(i).head()},pt.prototype.findLast=function(i){return this.reverse().find(i)},pt.prototype.invokeMap=st(function(i,d){return typeof i=="function"?new pt(this):this.map(function(A){return va(A,i,d)})}),pt.prototype.reject=function(i){return this.filter(vc(Pe(i)))},pt.prototype.slice=function(i,d){i=tt(i);var A=this;return A.__filtered__&&(i>0||d<0)?new pt(A):(i<0?A=A.takeRight(-i):i&&(A=A.drop(i)),d!==e&&(d=tt(d),A=d<0?A.dropRight(-d):A.take(d-i)),A)},pt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},pt.prototype.toArray=function(){return this.take(q)},Qr(pt.prototype,function(i,d){var A=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),P=j[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);P&&(j.prototype[d]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof pt,fe=ee[0],ge=ie||Qe(Q),ye=function(dt){var gt=P.apply(j,Dn([dt],ee));return D&&$e?gt[0]:gt};ge&&A&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var $e=this.__chain__,Me=!!this.__actions__.length,ze=U&&!$e,rt=ie&&!Me;if(!U&&ge){Q=rt?Q:new pt(this);var je=i.apply(Q,ee);return je.__actions__.push({func:gc,args:[ye],thisArg:e}),new br(je,$e)}return ze&&rt?i.apply(this,ee):(je=this.thru(ye),ze?D?je.value()[0]:je.value():je)})}),jn(["pop","push","shift","sort","splice","unshift"],function(i){var d=lr[i],A=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);j.prototype[i]=function(){var P=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Qe(U)?U:[],P)}return this[A](function(Q){return d.apply(Qe(Q)?Q:[],P)})}}),Qr(pt.prototype,function(i,d){var A=j[d];if(A){var D=A.name+"";$t.call(ls,D)||(ls[D]=[]),ls[D].push({name:d,func:A})}}),ls[lc(e,w).name]=[{name:"wrapper",func:e}],pt.prototype.clone=kT,pt.prototype.reverse=ST,pt.prototype.value=$T,j.prototype.at=eM,j.prototype.chain=tM,j.prototype.commit=nM,j.prototype.next=rM,j.prototype.plant=oM,j.prototype.reverse=sM,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=aM,j.prototype.first=j.prototype.head,da&&(j.prototype[da]=iM),j},Lt=Mt();$n?(($n.exports=Lt)._=Lt,yr._=Lt):vn._=Lt}).call(y1)}(ja,ja.exports)),ja.exports}var v1=w1();Pn("a",Ta(v1)).debounce(function(){this.rebuildDisplayText()},300);var Rp={exports:{}},Mp;function b1(){return Mp||(Mp=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Rp)),Rp.exports}b1();const x1=!0,fn="u-",_1="uplot",k1=fn+"hz",S1=fn+"vt",$1=fn+"title",A1=fn+"wrap",C1=fn+"under",T1=fn+"over",E1=fn+"axis",Xi=fn+"off",R1=fn+"select",M1=fn+"cursor-x",L1=fn+"cursor-y",I1=fn+"cursor-pt",O1=fn+"legend",D1=fn+"live",N1=fn+"inline",F1=fn+"series",W1=fn+"marker",Lp=fn+"label",P1=fn+"value",Cs="width",Ts="height",Es="top",Ip="bottom",Io="left",Kc="right",Qc="#000",Op=Qc+"0",Dp="mousemove",Np="mousedown",Zc="mouseup",Fp="mouseenter",Wp="mouseleave",Pp="dblclick",H1="resize",z1="scroll",Hp="change",Ba="dppxchange",Jc="--",Oo=typeof window<"u",Xc=Oo?document:null,Do=Oo?window:null,j1=Oo?navigator:null;let yt,Ua;function eu(){let n=devicePixelRatio;yt!=n&&(yt=n,Ua&&ru(Hp,Ua,eu),Ua=matchMedia(`(min-resolution: ${yt-.001}dppx) and (max-resolution: ${yt+.001}dppx)`),eo(Hp,Ua,eu),Do.dispatchEvent(new CustomEvent(Ba)))}function ir(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function tu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Nt(n,t,e){n.style[t]=e+"px"}function Tr(n,t,e,r){let f=Xc.createElement(n);return t!=null&&ir(f,t),e!=null&&e.insertBefore(f,r),f}function fr(n,t){return Tr("div",n,t)}const zp=new WeakMap;function Wr(n,t,e,r,f){let m="translate("+t+"px,"+e+"px)",y=zp.get(n);m!=y&&(n.style.transform=m,zp.set(n,m),t<0||e<0||t>r||e>f?ir(n,Xi):tu(n,Xi))}const jp=new WeakMap;function Bp(n,t,e){let r=t+e,f=jp.get(n);r!=f&&(jp.set(n,r),n.style.background=t,n.style.borderColor=e)}const Up=new WeakMap;function Vp(n,t,e,r){let f=t+""+e,m=Up.get(n);f!=m&&(Up.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const nu={passive:!0},B1={...nu,capture:!0};function eo(n,t,e,r){t.addEventListener(n,e,r?B1:nu)}function ru(n,t,e,r){t.removeEventListener(n,e,nu)}Oo&&eu();function Er(n,t,e,r){let f;e=e||0,r=r||t.length-1;let m=r<=2147483647;for(;r-e>1;)f=m?e+r>>1:sr((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function No(n,t,e,r){for(let f=r==1?t:e;f>=t&&f<=e;f+=r)if(n[f]!=null)return f;return-1}function U1(n,t,e,r){let f=zt,m=-1/0;if(r==1)f=n[t],m=n[e];else if(r==-1)f=n[e],m=n[t];else for(let y=t;y<=e;y++){let v=n[y];v!=null&&(v<f&&(f=v),v>m&&(m=v))}return[f,m]}function V1(n,t,e){let r=zt,f=-1/0;for(let m=t;m<=e;m++){let y=n[m];y!=null&&y>0&&(y<r&&(r=y),y>f&&(f=y))}return[r,f]}function Va(n,t,e,r){let f=Yp(n),m=Yp(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let y=e==10?Xr:Kp,v=f==1?sr:pr,h=m==1?pr:sr,p=v(y(pn(n))),a=h(y(pn(t))),c=Fo(e,p),s=Fo(e,a);return e==10&&(p<0&&(c=Tt(c,-p)),a<0&&(s=Tt(s,-a))),r||e==2?(n=c*f,t=s*m):(n=tg(n,c),t=Ya(t,s)),[n,t]}function iu(n,t,e,r){let f=Va(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const ou=.1,qp={mode:3,pad:ou},Rs={pad:0,soft:null,mode:0},q1={min:Rs,max:Rs};function qa(n,t,e,r){return Ka(e)?Gp(n,t,e):(Rs.pad=e,Rs.soft=r?0:null,Rs.mode=r?3:0,Gp(n,t,q1))}function mt(n,t){return n??t}function G1(n,t,e){for(t=mt(t,0),e=mt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Gp(n,t,e){let r=e.min,f=e.max,m=mt(r.pad,0),y=mt(f.pad,0),v=mt(r.hard,-1/0),h=mt(f.hard,zt),p=mt(r.soft,zt),a=mt(f.soft,-1/0),c=mt(r.mode,0),s=mt(f.mode,0),l=t-n,o=Xr(l),u=En(pn(n),pn(t)),g=Xr(u),w=pn(g-o);(l<1e-24||w>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&p!=zt&&(m=0),s==2&&a!=-1/0&&(y=0)));let x=l||u||1e3,M=Xr(x),C=Fo(10,sr(M)),k=x*(l==0?n==0?.1:1:m),b=Tt(tg(n-k,C/10),24),T=n>=p&&(c==1||c==3&&b<=p||c==2&&b>=p)?p:zt,R=En(v,b<T&&n>=T?T:gr(T,b)),I=x*(l==0?t==0?.1:1:y),E=Tt(Ya(t+I,C/10),24),N=t<=a&&(s==1||s==3&&E>=a||s==2&&E<=a)?a:-1/0,S=gr(h,E>N&&t<=N?N:En(N,E));return R==S&&R==0&&(S=100),[R,S]}const Y1=new Intl.NumberFormat(Oo?j1.language:"en-US"),su=n=>Y1.format(n),or=Math,Ga=or.PI,pn=or.abs,sr=or.floor,gn=or.round,pr=or.ceil,gr=or.min,En=or.max,Fo=or.pow,Yp=or.sign,Xr=or.log10,Kp=or.log2,K1=(n,t=1)=>or.sinh(n)*t,au=(n,t=1)=>or.asinh(n/t),zt=1/0;function Qp(n){return(Xr((n^n>>31)-(n>>31))|0)+1}function lu(n,t,e){return gr(En(n,t),e)}function ft(n){return typeof n=="function"?n:()=>n}const Q1=()=>{},Zp=n=>n,Jp=(n,t)=>t,Z1=n=>null,Xp=n=>!0,eg=(n,t)=>n==t,J1=/\.\d*?(?=9{6,}|0{6,})/gm,to=n=>{if(rg(n)||ki.has(n))return n;const t=`${n}`,e=t.match(J1);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,m]=t.split("e");return+`${to(f)}e${m}`}return Tt(n,r)};function no(n,t){return to(Tt(to(n/t))*t)}function Ya(n,t){return to(pr(to(n/t))*t)}function tg(n,t){return to(sr(to(n/t))*t)}function Tt(n,t=0){if(rg(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return gn(r)/e}const ki=new Map;function ng(n){return((""+n).split(".")[1]||"").length}function Ms(n,t,e,r){let f=[],m=r.map(ng);for(let y=t;y<e;y++){let v=pn(y),h=Tt(Fo(n,y),v);for(let p=0;p<r.length;p++){let a=n==10?+`${r[p]}e${y}`:r[p]*h,c=(y>=0?0:v)+(y>=m[p]?0:m[p]),s=n==10?a:Tt(a,c);f.push(s),ki.set(s,c)}}return f}const Ls={},cu=[],Wo=[null,null],Si=Array.isArray,rg=Number.isInteger,X1=n=>n===void 0;function ig(n){return typeof n=="string"}function Ka(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function e_(n){return n!=null&&typeof n=="object"}const t_=Object.getPrototypeOf(Uint8Array),og="__proto__";function Po(n,t=Ka){let e;if(Si(n)){let r=n.find(f=>f!=null);if(Si(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=Po(n[f],t)}else e=n.slice()}else if(n instanceof t_)e=n.slice();else if(t(n)){e={};for(let r in n)r!=og&&(e[r]=Po(n[r],t))}else e=n;return e}function an(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=og&&(Ka(n[f])?an(n[f],Po(r[f])):n[f]=Po(r[f]))}return n}const n_=0,r_=1,i_=2;function o_(n,t,e){for(let r=0,f,m=-1;r<t.length;r++){let y=t[r];if(y>m){for(f=y-1;f>=0&&n[f]==null;)n[f--]=null;for(f=y+1;f<e&&n[f]==null;)n[m=f++]=null}}}function s_(n,t){if(c_(n)){let y=n[0].slice();for(let v=1;v<n.length;v++)y.push(...n[v].slice(1));return u_(y[0])||(y=l_(y)),y}let e=new Set;for(let y=0;y<n.length;y++){let v=n[y][0],h=v.length;for(let p=0;p<h;p++)e.add(v[p])}let r=[Array.from(e).sort((y,v)=>y-v)],f=r[0].length,m=new Map;for(let y=0;y<f;y++)m.set(r[0][y],y);for(let y=0;y<n.length;y++){let v=n[y],h=v[0];for(let p=1;p<v.length;p++){let a=v[p],c=Array(f).fill(void 0),s=t?t[y][p]:r_,l=[];for(let o=0;o<a.length;o++){let u=a[o],g=m.get(h[o]);u===null?s!=n_&&(c[g]=u,s==i_&&l.push(g)):c[g]=u}o_(c,l,f),r.push(c)}}return r}const a_=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function l_(n){let t=n[0],e=t.length,r=Array(e);for(let m=0;m<r.length;m++)r[m]=m;r.sort((m,y)=>t[m]-t[y]);let f=[];for(let m=0;m<n.length;m++){let y=n[m],v=Array(e);for(let h=0;h<e;h++)v[h]=y[r[h]];f.push(v)}return f}function c_(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let m=0;m<e;m++)if(f[m]!=t[m])return!1}}return!0}function u_(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const m=En(1,sr((f-r+1)/t));for(let y=n[r],v=r+m;v<=f;v+=m){const h=n[v];if(h!=null){if(h<=y)return!1;y=h}}return!0}const sg=["January","February","March","April","May","June","July","August","September","October","November","December"],ag=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function lg(n){return n.slice(0,3)}const h_=ag.map(lg),d_=sg.map(lg),f_={MMMM:sg,MMM:d_,WWWW:ag,WWW:h_};function Is(n){return(n<10?"0":"")+n}function p_(n){return(n<10?"00":n<100?"0":"")+n}const g_={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Is(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Is(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Is(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Is(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Is(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>p_(n.getMilliseconds())};function uu(n,t){t=t||f_;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?g_[f[1]]:f[0]);return m=>{let y="";for(let v=0;v<e.length;v++)y+=typeof e[v]=="string"?e[v]:e[v](m,t);return y}}const m_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function y_(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==m_?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const cg=n=>n%1==0,Qa=[1,2,2.5,5],w_=Ms(10,-32,0,Qa),ug=Ms(10,0,32,Qa),v_=ug.filter(cg),ro=w_.concat(ug),hu=`
|
1407
|
+
`,hg="{YYYY}",dg=hu+hg,fg="{M}/{D}",Os=hu+fg,Za=Os+"/{YY}",pg="{aa}",b_="{h}:{mm}",Ho=b_+pg,gg=hu+Ho,mg=":{ss}",vt=null;function yg(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,m=f*30,y=f*365,v=(n==1?Ms(10,0,3,Qa).filter(cg):Ms(10,-3,0,Qa)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,m,m*2,m*3,m*4,m*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,hg,vt,vt,vt,vt,vt,vt,1],[f*28,"{MMM}",dg,vt,vt,vt,vt,vt,1],[f,fg,dg,vt,vt,vt,vt,vt,1],[r,"{h}"+pg,Za,vt,Os,vt,vt,vt,1],[e,Ho,Za,vt,Os,vt,vt,vt,1],[t,mg,Za+" "+Ho,vt,Os+" "+Ho,vt,gg,vt,1],[n,mg+".{fff}",Za+" "+Ho,vt,Os+" "+Ho,vt,gg,vt,1]];function p(a){return(c,s,l,o,u,g)=>{let w=[],x=u>=y,M=u>=m&&u<y,C=a(l),k=Tt(C*n,3),b=du(C.getFullYear(),x?0:C.getMonth(),M||x?1:C.getDate()),T=Tt(b*n,3);if(M||x){let R=M?u/m:0,I=x?u/y:0,E=k==T?k:Tt(du(b.getFullYear()+I,b.getMonth()+R,1)*n,3),N=new Date(gn(E/n)),S=N.getFullYear(),_=N.getMonth();for(let $=0;E<=o;$++){let L=du(S+I*$,_+R*$,1),O=L-a(Tt(L*n,3));E=Tt((+L+O)*n,3),E<=o&&w.push(E)}}else{let R=u>=f?f:u,I=sr(l)-sr(k),E=T+I+Ya(k-T,R);w.push(E);let N=a(E),S=N.getHours()+N.getMinutes()/e+N.getSeconds()/r,_=u/r,$=c.axes[s]._space,L=g/$;for(;E=Tt(E+u,n==1?0:3),!(E>o);)if(_>1){let O=sr(Tt(S+_,6))%24,F=a(E).getHours()-O;F>1&&(F=-1),E-=F*r,S=(S+_)%24;let H=w[w.length-1];Tt((E-H)/u,3)*L>=.7&&w.push(E)}else w.push(E)}return w}}return[v,h,p]}const[x_,__,k_]=yg(1),[S_,$_,A_]=yg(.001);Ms(2,-53,53,[1]);function wg(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function vg(n,t){return(e,r,f,m,y)=>{let v=t.find(o=>y>=o[0])||t[t.length-1],h,p,a,c,s,l;return r.map(o=>{let u=n(o),g=u.getFullYear(),w=u.getMonth(),x=u.getDate(),M=u.getHours(),C=u.getMinutes(),k=u.getSeconds(),b=g!=h&&v[2]||w!=p&&v[3]||x!=a&&v[4]||M!=c&&v[5]||C!=s&&v[6]||k!=l&&v[7]||v[1];return h=g,p=w,a=x,c=M,s=C,l=k,b(u)})}}function C_(n,t){let e=uu(t);return(r,f,m,y,v)=>f.map(h=>e(n(h)))}function du(n,t,e){return new Date(n,t,e)}function bg(n,t){return t(n)}const T_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function xg(n,t){return(e,r,f,m)=>m==null?Jc:t(n(r))}function E_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function R_(n,t){return n.series[t].fill(n,t)}const M_={show:!0,live:!0,isolate:!1,mount:Q1,markers:{show:!0,width:2,stroke:E_,fill:R_,dash:"solid"},idx:null,idxs:null,values:[]};function L_(n,t){let e=n.cursor.points,r=fr(),f=e.size(n,t);Nt(r,Cs,f),Nt(r,Ts,f);let m=f/-2;Nt(r,"marginLeft",m),Nt(r,"marginTop",m);let y=e.width(n,t,f);return y&&Nt(r,"borderWidth",y),r}function I_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function O_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function D_(n,t){return n.series[t].points.size}const fu=[0,0];function N_(n,t,e){return fu[0]=t,fu[1]=e,fu}function Ja(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function pu(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const F_={show:!0,x:!0,y:!0,lock:!1,move:N_,points:{one:!1,show:L_,size:D_,width:0,stroke:O_,fill:I_},bind:{mousedown:Ja,mouseup:Ja,click:Ja,dblclick:Ja,mousemove:pu,mouseleave:pu,mouseenter:pu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},_g={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},gu=an({},_g,{filter:Jp}),kg=an({},gu,{size:10}),Sg=an({},_g,{show:!1}),mu='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"',$g="bold "+mu,Ag=1.5,Cg={show:!0,scale:"x",stroke:Qc,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:$g,side:2,grid:gu,ticks:kg,border:Sg,font:mu,lineGap:Ag,rotate:0},W_="Value",P_="Time",Tg={show:!0,scale:"x",auto:!1,sorted:1,min:zt,max:-1/0,idxs:[]};function H_(n,t,e,r,f){return t.map(m=>m==null?"":su(m))}function z_(n,t,e,r,f,m,y){let v=[],h=ki.get(f)||0;e=y?e:Tt(Ya(e,f),h);for(let p=e;p<=r;p=Tt(p+f,h))v.push(Object.is(p,-0)?0:p);return v}function yu(n,t,e,r,f,m,y){const v=[],h=n.scales[n.axes[t].scale].log,p=h==10?Xr:Kp,a=sr(p(e));f=Fo(h,a),h==10&&(f=ro[Er(f,ro)]);let c=e,s=f*h;h==10&&(s=ro[Er(s,ro)]);do v.push(c),c=c+f,h==10&&!ki.has(c)&&(c=Tt(c,ki.get(f))),c>=s&&(f=c,s=f*h,h==10&&(s=ro[Er(s,ro)]));while(c<=r);return v}function j_(n,t,e,r,f,m,y){let v=n.scales[n.axes[t].scale].asinh,h=r>v?yu(n,t,En(v,e),r,f):[v],p=r>=0&&e<=0?[0]:[];return(e<-v?yu(n,t,En(v,-r),-e,f):[v]).reverse().map(a=>-a).concat(p,h)}const Eg=/./,B_=/[12357]/,U_=/[125]/,Rg=/1/,wu=(n,t,e,r)=>n.map((f,m)=>t==4&&f==0||m%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function V_(n,t,e,r,f){let m=n.axes[e],y=m.scale,v=n.scales[y],h=n.valToPos,p=m._space,a=h(10,y),c=h(9,y)-a>=p?Eg:h(7,y)-a>=p?B_:h(5,y)-a>=p?U_:Rg;if(c==Rg){let s=pn(h(1,y)-a);if(s<p)return wu(t.slice().reverse(),v.distr,c,pr(p/s)).reverse()}return wu(t,v.distr,c,1)}function q_(n,t,e,r,f){let m=n.axes[e],y=m.scale,v=m._space,h=n.valToPos,p=pn(h(1,y)-h(2,y));return p<v?wu(t.slice().reverse(),3,Eg,pr(v/p)).reverse():t}function G_(n,t,e,r){return r==null?Jc:t==null?"":su(t)}const Mg={show:!0,scale:"y",stroke:Qc,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:$g,side:3,grid:gu,ticks:kg,border:Sg,font:mu,lineGap:Ag,rotate:0};function Y_(n,t){let e=3+(n||1)*2;return Tt(e*t,3)}function K_(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],m=n.valToPos(f[r[0]],e,!0),y=n.valToPos(f[r[1]],e,!0),v=pn(y-m),h=n.series[t],p=v/(h.points.space*yt);return r[1]-r[0]<=p}const Lg={scale:null,auto:!0,sorted:0,min:zt,max:-1/0},Ig=(n,t,e,r,f)=>f,Og={show:!0,auto:!0,sorted:0,gaps:Ig,alpha:1,facets:[an({},Lg,{scale:"x"}),an({},Lg,{scale:"y"})]},Dg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Ig,alpha:1,points:{show:K_,filter:null},values:null,min:zt,max:-1/0,idxs:[],path:null,clip:null};function Q_(n,t,e,r,f){return e/10}const Ng={time:x1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Z_=an({},Ng,{time:!1,ori:1}),Fg={};function Wg(n,t){let e=Fg[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,m,y,v,h,p){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,m,y,v,h,p)}},n!=null&&(Fg[n]=e)),e}const zo=1,vu=2;function io(n,t,e){const r=n.mode,f=n.series[t],m=r==2?n._data[t]:n._data,y=n.scales,v=n.bbox;let h=m[0],p=r==2?m[1]:m[t],a=r==2?y[f.facets[0].scale]:y[n.series[0].scale],c=r==2?y[f.facets[1].scale]:y[f.scale],s=v.left,l=v.top,o=v.width,u=v.height,g=n.valToPosH,w=n.valToPosV;return a.ori==0?e(f,h,p,a,c,g,w,s,l,o,u,el,jo,nl,zg,Bg):e(f,h,p,a,c,w,g,l,s,u,o,tl,Bo,_u,jg,Ug)}function bu(n,t){let e=0,r=0,f=mt(n.bands,cu);for(let m=0;m<f.length;m++){let y=f[m];y.series[0]==t?e=y.dir:y.series[1]==t&&(y.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function J_(n,t,e,r,f){let m=n.mode,y=n.series[t],v=m==2?y.facets[1].scale:y.scale,h=n.scales[v];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function ei(n,t,e,r,f,m){return io(n,t,(y,v,h,p,a,c,s,l,o,u,g)=>{let w=y.pxRound;const x=p.dir*(p.ori==0?1:-1),M=p.ori==0?jo:Bo;let C,k;x==1?(C=e,k=r):(C=r,k=e);let b=w(c(v[C],p,u,l)),T=w(s(h[C],a,g,o)),R=w(c(v[k],p,u,l)),I=w(s(m==1?a.max:a.min,a,g,o)),E=new Path2D(f);return M(E,R,I),M(E,b,I),M(E,b,T),E})}function Xa(n,t,e,r,f,m){let y=null;if(n.length>0){y=new Path2D;const v=t==0?nl:_u;let h=e;for(let c=0;c<n.length;c++){let s=n[c];if(s[1]>s[0]){let l=s[0]-h;l>0&&v(y,h,r,l,r+m),h=s[1]}}let p=e+f-h,a=10;p>0&&v(y,h,r-a/2,p,r+m+a)}return y}function X_(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function xu(n,t,e,r,f,m,y){let v=[],h=n.length;for(let p=f==1?e:r;p>=e&&p<=r;p+=f)if(t[p]===null){let a=p,c=p;if(f==1)for(;++p<=r&&t[p]===null;)c=p;else for(;--p>=e&&t[p]===null;)c=p;let s=m(n[a]),l=c==a?s:m(n[c]),o=a-f;s=y<=0&&o>=0&&o<h?m(n[o]):s;let u=c+f;l=y>=0&&u>=0&&u<h?m(n[u]):l,l>=s&&v.push([s,l])}return v}function Pg(n){return n==0?Zp:n==1?gn:t=>no(t,n)}function Hg(n){let t=n==0?el:tl,e=n==0?(f,m,y,v,h,p)=>{f.arcTo(m,y,v,h,p)}:(f,m,y,v,h,p)=>{f.arcTo(y,m,h,v,p)},r=n==0?(f,m,y,v,h)=>{f.rect(m,y,v,h)}:(f,m,y,v,h)=>{f.rect(y,m,h,v)};return(f,m,y,v,h,p=0,a=0)=>{p==0&&a==0?r(f,m,y,v,h):(p=gr(p,v/2,h/2),a=gr(a,v/2,h/2),t(f,m+p,y),e(f,m+v,y,m+v,y+h,p),e(f,m+v,y+h,m,y+h,a),e(f,m,y+h,m,y,a),e(f,m,y,m+v,y,p),f.closePath())}}const el=(n,t,e)=>{n.moveTo(t,e)},tl=(n,t,e)=>{n.moveTo(e,t)},jo=(n,t,e)=>{n.lineTo(t,e)},Bo=(n,t,e)=>{n.lineTo(e,t)},nl=Hg(0),_u=Hg(1),zg=(n,t,e,r,f,m)=>{n.arc(t,e,r,f,m)},jg=(n,t,e,r,f,m)=>{n.arc(e,t,r,f,m)},Bg=(n,t,e,r,f,m,y)=>{n.bezierCurveTo(t,e,r,f,m,y)},Ug=(n,t,e,r,f,m,y)=>{n.bezierCurveTo(e,t,f,r,y,m)};function Vg(n){return(t,e,r,f,m)=>io(t,e,(y,v,h,p,a,c,s,l,o,u,g)=>{let{pxRound:w,points:x}=y,M,C;p.ori==0?(M=el,C=zg):(M=tl,C=jg);const k=Tt(x.width*yt,3);let b=(x.size-x.width)/2*yt,T=Tt(b*2,3),R=new Path2D,I=new Path2D,{left:E,top:N,width:S,height:_}=t.bbox;nl(I,E-T,N-T,S+T*2,_+T*2);const $=L=>{if(h[L]!=null){let O=w(c(v[L],p,u,l)),F=w(s(h[L],a,g,o));M(R,O+b,F),C(R,O,F,b,0,Ga*2)}};if(m)m.forEach($);else for(let L=r;L<=f;L++)$(L);return{stroke:k>0?R:null,fill:R,clip:I,flags:zo|vu}})}function qg(n){return(t,e,r,f,m,y)=>{r!=f&&(m!=r&&y!=r&&n(t,e,r),m!=f&&y!=f&&n(t,e,f),n(t,e,y))}}const ek=qg(jo),tk=qg(Bo);function Gg(n){const t=mt(n==null?void 0:n.alignGaps,0);return(e,r,f,m)=>io(e,r,(y,v,h,p,a,c,s,l,o,u,g)=>{let w=y.pxRound,x=X=>w(c(X,p,u,l)),M=X=>w(s(X,a,g,o)),C,k;p.ori==0?(C=jo,k=ek):(C=Bo,k=tk);const b=p.dir*(p.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:zo},R=T.stroke;let I=zt,E=-1/0,N,S,_,$=x(v[b==1?f:m]),L=No(h,f,m,1*b),O=No(h,f,m,-1*b),F=x(v[L]),H=x(v[O]),B=!1;for(let X=b==1?f:m;X>=f&&X<=m;X+=b){let G=x(v[X]),Z=h[X];G==$?Z!=null?(S=M(Z),I==zt&&(C(R,G,S),N=S),I=gr(S,I),E=En(S,E)):Z===null&&(B=!0):(I!=zt&&(k(R,$,I,E,N,S),_=$),Z!=null?(S=M(Z),C(R,G,S),I=E=N=S):(I=zt,E=-1/0,Z===null&&(B=!0)),$=G)}I!=zt&&I!=E&&_!=$&&k(R,$,I,E,N,S);let[V,q]=bu(e,r);if(y.fill!=null||V!=0){let X=T.fill=new Path2D(R),G=y.fillTo(e,r,y.min,y.max,V),Z=M(G);C(X,H,Z),C(X,F,Z)}if(!y.spanGaps){let X=[];B&&X.push(...xu(v,h,f,m,b,x,t)),T.gaps=X=y.gaps(e,r,f,m,X),T.clip=Xa(X,p.ori,l,o,u,g)}return q!=0&&(T.band=q==2?[ei(e,r,f,m,R,-1),ei(e,r,f,m,R,1)]:ei(e,r,f,m,R,q)),T})}function nk(n){const t=mt(n.align,1),e=mt(n.ascDesc,!1),r=mt(n.alignGaps,0),f=mt(n.extend,!1);return(m,y,v,h)=>io(m,y,(p,a,c,s,l,o,u,g,w,x,M)=>{let C=p.pxRound,{left:k,width:b}=m.bbox,T=V=>C(o(V,s,x,g)),R=V=>C(u(V,l,M,w)),I=s.ori==0?jo:Bo;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:zo},N=E.stroke,S=s.dir*(s.ori==0?1:-1);v=No(c,v,h,1),h=No(c,v,h,-1);let _=R(c[S==1?v:h]),$=T(a[S==1?v:h]),L=$,O=$;f&&t==-1&&(O=k,I(N,O,_)),I(N,$,_);for(let V=S==1?v:h;V>=v&&V<=h;V+=S){let q=c[V];if(q==null)continue;let X=T(a[V]),G=R(q);t==1?I(N,X,_):I(N,L,G),I(N,X,G),_=G,L=X}let F=L;f&&t==1&&(F=k+b,I(N,F,_));let[H,B]=bu(m,y);if(p.fill!=null||H!=0){let V=E.fill=new Path2D(N),q=p.fillTo(m,y,p.min,p.max,H),X=R(q);I(V,F,X),I(V,O,X)}if(!p.spanGaps){let V=[];V.push(...xu(a,c,v,h,S,T,r));let q=p.width*yt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),E.gaps=V=p.gaps(m,y,v,h,V),E.clip=Xa(V,s.ori,g,w,x,M)}return B!=0&&(E.band=B==2?[ei(m,y,v,h,N,-1),ei(m,y,v,h,N,1)]:ei(m,y,v,h,N,B)),E})}function Yg(n,t,e,r,f,m,y=zt){if(n.length>1){let v=null;for(let h=0,p=1/0;h<n.length;h++)if(t[h]!==void 0){if(v!=null){let a=pn(n[h]-n[v]);a<p&&(p=a,y=pn(e(n[h],r,f,m)-e(n[v],r,f,m)))}v=h}}return y}function rk(n){n=n||Ls;const t=mt(n.size,[.6,zt,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const m=ft(f),y=1-t[0],v=mt(t[1],zt),h=mt(t[2],1),p=mt(n.disp,Ls),a=mt(n.each,l=>{}),{fill:c,stroke:s}=p;return(l,o,u,g)=>io(l,o,(w,x,M,C,k,b,T,R,I,E,N)=>{let S=w.pxRound,_=e,$=r*yt,L=v*yt,O=h*yt,F,H;C.ori==0?[F,H]=m(l,o):[H,F]=m(l,o);const B=C.dir*(C.ori==0?1:-1);let V=C.ori==0?nl:_u,q=C.ori==0?a:(He,ce,Ae,Ee,Be,Ve,lt)=>{a(He,ce,Ae,Be,Ee,lt,Ve)},X=mt(l.bands,cu).find(He=>He.series[0]==o),G=X!=null?X.dir:0,Z=w.fillTo(l,o,w.min,w.max,G),re=S(T(Z,k,N,I)),J,ae,me,we=E,pe=S(w.width*yt),_e=!1,nt=null,It=null,at=null,ht=null;c!=null&&(pe==0||s!=null)&&(_e=!0,nt=c.values(l,o,u,g),It=new Map,new Set(nt).forEach(He=>{He!=null&&It.set(He,new Path2D)}),pe>0&&(at=s.values(l,o,u,g),ht=new Map,new Set(at).forEach(He=>{He!=null&&ht.set(He,new Path2D)})));let{x0:nn,size:Et}=p;if(nn!=null&&Et!=null){_=1,x=nn.values(l,o,u,g),nn.unit==2&&(x=x.map(ce=>l.posToVal(R+ce*E,C.key,!0)));let He=Et.values(l,o,u,g);Et.unit==2?ae=He[0]*E:ae=b(He[0],C,E,R)-b(0,C,E,R),we=Yg(x,M,b,C,E,R,we),me=we-ae+$}else we=Yg(x,M,b,C,E,R,we),me=we*y+$,ae=we-me;me<1&&(me=0),pe>=ae/2&&(pe=0),me<5&&(S=Zp);let Bt=me>0,jr=we-me-(Bt?pe:0);ae=S(lu(jr,O,L)),J=(_==0?ae/2:_==B?0:ae)-_*B*((_==0?$/2:0)+(Bt?pe/2:0));const mn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Kt=_e?null:new Path2D;let De=null;if(X!=null)De=l.data[X.series[1]];else{let{y0:He,y1:ce}=p;He!=null&&ce!=null&&(M=ce.values(l,o,u,g),De=He.values(l,o,u,g))}let We=F*ae,Qt=H*ae;for(let He=B==1?u:g;He>=u&&He<=g;He+=B){let ce=M[He];if(ce==null)continue;if(De!=null){let ot=De[He]??0;if(ce-ot==0)continue;re=T(ot,k,N,I)}let Ae=C.distr!=2||p!=null?x[He]:He,Ee=b(Ae,C,E,R),Be=T(mt(ce,Z),k,N,I),Ve=S(Ee-J),lt=S(En(Be,re)),ct=S(gr(Be,re)),it=lt-ct;if(ce!=null){let ot=ce<0?Qt:We,Xe=ce<0?We:Qt;_e?(pe>0&&at[He]!=null&&V(ht.get(at[He]),Ve,ct+sr(pe/2),ae,En(0,it-pe),ot,Xe),nt[He]!=null&&V(It.get(nt[He]),Ve,ct+sr(pe/2),ae,En(0,it-pe),ot,Xe)):V(Kt,Ve,ct+sr(pe/2),ae,En(0,it-pe),ot,Xe),q(l,o,He,Ve-pe/2,ct,ae+pe,it)}}return pe>0?mn.stroke=_e?ht:Kt:_e||(mn._fill=w.width==0?w._fill:w._stroke??w._fill,mn.width=0),mn.fill=_e?It:Kt,mn})}function ik(n,t){const e=mt(t==null?void 0:t.alignGaps,0);return(r,f,m,y)=>io(r,f,(v,h,p,a,c,s,l,o,u,g,w)=>{let x=v.pxRound,M=F=>x(s(F,a,g,o)),C=F=>x(l(F,c,w,u)),k,b,T;a.ori==0?(k=el,T=jo,b=Bg):(k=tl,T=Bo,b=Ug);const R=a.dir*(a.ori==0?1:-1);m=No(p,m,y,1),y=No(p,m,y,-1);let I=M(h[R==1?m:y]),E=I,N=[],S=[];for(let F=R==1?m:y;F>=m&&F<=y;F+=R)if(p[F]!=null){let H=h[F],B=M(H);N.push(E=B),S.push(C(p[F]))}const _={stroke:n(N,S,k,T,b,x),fill:null,clip:null,band:null,gaps:null,flags:zo},$=_.stroke;let[L,O]=bu(r,f);if(v.fill!=null||L!=0){let F=_.fill=new Path2D($),H=v.fillTo(r,f,v.min,v.max,L),B=C(H);T(F,E,B),T(F,I,B)}if(!v.spanGaps){let F=[];F.push(...xu(h,p,m,y,R,M,e)),_.gaps=F=v.gaps(r,f,m,y,F),_.clip=Xa(F,a.ori,o,u,g,w)}return O!=0&&(_.band=O==2?[ei(r,f,m,y,$,-1),ei(r,f,m,y,$,1)]:ei(r,f,m,y,$,O)),_})}function ok(n){return ik(sk,n)}function sk(n,t,e,r,f,m){const y=n.length;if(y<2)return null;const v=new Path2D;if(e(v,n[0],t[0]),y==2)r(v,n[1],t[1]);else{let h=Array(y),p=Array(y-1),a=Array(y-1),c=Array(y-1);for(let s=0;s<y-1;s++)a[s]=t[s+1]-t[s],c[s]=n[s+1]-n[s],p[s]=a[s]/c[s];h[0]=p[0];for(let s=1;s<y-1;s++)p[s]===0||p[s-1]===0||p[s-1]>0!=p[s]>0?h[s]=0:(h[s]=3*(c[s-1]+c[s])/((2*c[s]+c[s-1])/p[s-1]+(c[s]+2*c[s-1])/p[s]),isFinite(h[s])||(h[s]=0));h[y-1]=p[y-2];for(let s=0;s<y-1;s++)f(v,n[s]+c[s]/3,t[s]+h[s]*c[s]/3,n[s+1]-c[s]/3,t[s+1]-h[s+1]*c[s]/3,n[s+1],t[s+1])}return v}const ku=new Set;function Kg(){for(let n of ku)n.syncRect(!0)}Oo&&(eo(H1,Do,Kg),eo(z1,Do,Kg,!0),eo(Ba,Do,()=>{Rn.pxRatio=yt}));const ak=Gg(),lk=Vg();function Qg(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,m)=>Su(f,m,t,e))}function ck(n,t){return n.map((e,r)=>r==0?{}:an({},t,e))}function Su(n,t,e,r){return an({},t==0?e:r,n)}function Zg(n,t,e){return t==null?Wo:[t,e]}const uk=Zg;function hk(n,t,e){return t==null?Wo:qa(t,e,ou,!0)}function Jg(n,t,e,r){return t==null?Wo:Va(t,e,n.scales[r].log,!1)}const dk=Jg;function Xg(n,t,e,r){return t==null?Wo:iu(t,e,n.scales[r].log,!1)}const fk=Xg;function pk(n,t,e,r,f){let m=En(Qp(n),Qp(t)),y=t-n,v=Er(f/r*y,e);do{let h=e[v],p=r*h/y;if(p>=f&&m+(h<5?ki.get(h):0)<=17)return[h,p]}while(++v<e.length);return[0,0]}function em(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=gn((e=+f)*yt))+"px"),[n,t,e]}function gk(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Tt(t[2]*yt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Rn(n,t,e){const r={mode:mt(n.mode,1)},f=r.mode;function m(W,z){return((z.distr==3?Xr(W>0?W:z.clamp(r,W,z.min,z.max,z.key)):z.distr==4?au(W,z.asinh):z.distr==100?z.fwd(W):W)-z._min)/(z._max-z._min)}function y(W,z,Y,K){let te=m(W,z);return K+Y*(z.dir==-1?1-te:te)}function v(W,z,Y,K){let te=m(W,z);return K+Y*(z.dir==-1?te:1-te)}function h(W,z,Y,K){return z.ori==0?y(W,z,Y,K):v(W,z,Y,K)}r.valToPosH=y,r.valToPosV=v;let p=!1;r.status=0;const a=r.root=fr(_1);if(n.id!=null&&(a.id=n.id),ir(a,n.class),n.title){let W=fr($1,a);W.textContent=n.title}const c=Tr("canvas"),s=r.ctx=c.getContext("2d"),l=fr(A1,a);eo("click",l,W=>{W.target===u&&(Fe!=Oi||Ot!=Di)&&wn.click(r,W)},!0);const o=r.under=fr(C1,l);l.appendChild(c);const u=r.over=fr(T1,l);n=Po(n);const g=+mt(n.pxAlign,1),w=Pg(g);(n.plugins||[]).forEach(W=>{W.opts&&(n=W.opts(r,n)||n)});const x=n.ms||.001,M=r.series=f==1?Qg(n.series||[],Tg,Dg,!1):ck(n.series||[null],Og),C=r.axes=Qg(n.axes||[],Cg,Mg,!0),k=r.scales={},b=r.bands=n.bands||[];b.forEach(W=>{W.fill=ft(W.fill||null),W.dir=mt(W.dir,-1)});const T=f==2?M[1].facets[0].scale:M[0].scale,R={axes:Hh,series:Al},I=(n.drawOrder||["axes","series"]).map(W=>R[W]);function E(W){let z=k[W];if(z==null){let Y=(n.scales||Ls)[W]||Ls;if(Y.from!=null)E(Y.from),k[W]=an({},k[Y.from],Y,{key:W});else{z=k[W]=an({},W==T?Ng:Z_,Y),z.key=W;let K=z.time,te=z.range,oe=Si(te);if((W!=T||f==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?qp:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?qp:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Ka(te))){let de=te;te=(ve,be,xe)=>be==null?Wo:qa(be,xe,de)}z.range=ft(te||(K?uk:W==T?z.distr==3?dk:z.distr==4?fk:Zg:z.distr==3?Jg:z.distr==4?Xg:hk)),z.auto=ft(oe?!1:z.auto),z.clamp=ft(z.clamp||Q_),z._min=z._max=null}}}E("x"),E("y"),f==1&&M.forEach(W=>{E(W.scale)}),C.forEach(W=>{E(W.scale)});for(let W in n.scales)E(W);const N=k[T],S=N.distr;let _,$;N.ori==0?(ir(a,k1),_=y,$=v):(ir(a,S1),_=v,$=y);const L={};for(let W in k){let z=k[W];(z.min!=null||z.max!=null)&&(L[W]={min:z.min,max:z.max},z.min=z.max=null)}const O=n.tzDate||(W=>new Date(gn(W/x))),F=n.fmtDate||uu,H=x==1?k_(O):A_(O),B=vg(O,wg(x==1?__:$_,F)),V=xg(O,bg(T_,F)),q=[],X=r.legend=an({},M_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=ft(Z.width),Z.dash=ft(Z.dash),Z.stroke=ft(Z.stroke),Z.fill=ft(Z.fill);let re,J,ae,me=[],we=[],pe,_e=!1,nt={};if(X.live){const W=M[1]?M[1].values:null;_e=W!=null,pe=_e?W(r,1,0):{_:0};for(let z in pe)nt[z]=Jc}if(G)if(re=Tr("table",O1,a),ae=Tr("tbody",null,re),X.mount(r,re),_e){J=Tr("thead",null,re,ae);let W=Tr("tr",null,J);Tr("th",null,W);for(var It in pe)Tr("th",Lp,W).textContent=It}else ir(re,N1),X.live&&ir(re,D1);const at={show:!0},ht={show:!1};function nn(W,z){if(z==0&&(_e||!X.live||f==2))return Wo;let Y=[],K=Tr("tr",F1,ae,ae.childNodes[z]);ir(K,W.class),W.show||ir(K,Xi);let te=Tr("th",null,K);if(Z.show){let ve=fr(W1,te);if(z>0){let be=Z.width(r,z);be&&(ve.style.border=be+"px "+Z.dash(r,z)+" "+Z.stroke(r,z)),ve.style.background=Z.fill(r,z)}}let oe=fr(Lp,te);oe.textContent=W.label,z>0&&(Z.show||(oe.style.color=W.width>0?Z.stroke(r,z):Z.fill(r,z)),Bt("click",te,ve=>{if(Ne._lock)return;ni(ve);let be=M.indexOf(W);if((ve.ctrlKey||ve.metaKey)!=X.isolate){let xe=M.some((Se,Ce)=>Ce>0&&Ce!=be&&Se.show);M.forEach((Se,Ce)=>{Ce>0&&$n(Ce,xe?Ce==be?at:ht:at,!0,Ut.setSeries)})}else $n(be,{show:!W.show},!0,Ut.setSeries)},!1),Ur&&Bt(Fp,te,ve=>{Ne._lock||(ni(ve),$n(M.indexOf(W),si,!0,Ut.setSeries))},!1));for(var de in pe){let ve=Tr("td",P1,K);ve.textContent="--",Y.push(ve)}return[K,Y]}const Et=new Map;function Bt(W,z,Y,K=!0){const te=Et.get(z)||{},oe=Ne.bind[W](r,z,Y,K);oe&&(eo(W,z,te[W]=oe),Et.set(z,te))}function jr(W,z,Y){const K=Et.get(z)||{};for(let te in K)(W==null||te==W)&&(ru(te,z,K[te]),delete K[te]);W==null&&Et.delete(z)}let mn=0,Kt=0,De=0,We=0,Qt=0,He=0,ce=Qt,Ae=He,Ee=De,Be=We,Ve=0,lt=0,ct=0,it=0;r.bbox={};let ot=!1,Xe=!1,Ft=!1,Ln=!1,ti=!1,Kn=!1;function zs(W,z,Y){(Y||W!=r.width||z!=r.height)&&js(W,z),ii(!1),Ft=!0,Xe=!0,Li()}function js(W,z){r.width=mn=De=W,r.height=Kt=We=z,Qt=He=0,Dh(),Nh();let Y=r.bbox;Ve=Y.left=no(Qt*yt,.5),lt=Y.top=no(He*yt,.5),ct=Y.width=no(De*yt,.5),it=Y.height=no(We*yt,.5)}const bl=3;function Ih(){let W=!1,z=0;for(;!W;){z++;let Y=El(z),K=Rl(z);W=z==bl||Y&&K,W||(js(r.width,r.height),Xe=!0)}}function Oh({width:W,height:z}){zs(W,z)}r.setSize=Oh;function Dh(){let W=!1,z=!1,Y=!1,K=!1;C.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:ve}=te,be=de%2,xe=te.label!=null?te.labelSize:0,Se=ve+xe;Se>0&&(be?(De-=Se,de==3?(Qt+=Se,K=!0):Y=!0):(We-=Se,de==0?(He+=Se,W=!0):z=!0))}}),ri[0]=W,ri[1]=Y,ri[2]=z,ri[3]=K,De-=Vr[1]+Vr[3],Qt+=Vr[3],We-=Vr[2]+Vr[0],He+=Vr[0]}function Nh(){let W=Qt+De,z=He+We,Y=Qt,K=He;function te(oe,de){switch(oe){case 1:return W+=de,W-de;case 2:return z+=de,z-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}C.forEach((oe,de)=>{if(oe.show&&oe._show){let ve=oe.side;oe._pos=te(ve,oe._size),oe.label!=null&&(oe._lpos=te(ve,oe.labelSize))}})}const Ne=r.cursor=an({},F_,{drag:{y:f==2}},n.cursor);if(Ne.dataIdx==null){let W=Ne.hover,z=W.skip=new Set(W.skip??[]);z.add(void 0);let Y=W.prox=ft(W.prox),K=W.bias??(W.bias=0);Ne.dataIdx=(te,oe,de,ve)=>{if(oe==0)return de;let be=de,xe=Y(te,oe,de,ve)??zt,Se=xe>=0&&xe<zt,Ce=N.ori==0?De:We,qe=Ne.left,St=t[0],et=t[oe];if(z.has(et[de])){be=null;let Ue=null,Ye=null,Re;if(K==0||K==-1)for(Re=de;Ue==null&&Re-- >0;)z.has(et[Re])||(Ue=Re);if(K==0||K==1)for(Re=de;Ye==null&&Re++<et.length;)z.has(et[Re])||(Ye=Re);if(Ue!=null||Ye!=null)if(Se){let bt=Ue==null?-1/0:_(St[Ue],N,Ce,0),Vt=Ye==null?1/0:_(St[Ye],N,Ce,0),Ht=qe-bt,Mt=Vt-qe;Ht<=Mt?Ht<=xe&&(be=Ue):Mt<=xe&&(be=Ye)}else be=Ye==null?Ue:Ue==null?Ye:de-Ue<=Ye-de?Ue:Ye}else Se&&pn(qe-_(St[de],N,Ce,0))>xe&&(be=null);return be}}const ni=W=>{Ne.event=W};Ne.idxs=q,Ne._lock=!1;let Sn=Ne.points;Sn.show=ft(Sn.show),Sn.size=ft(Sn.size),Sn.stroke=ft(Sn.stroke),Sn.width=ft(Sn.width),Sn.fill=ft(Sn.fill);const Br=r.focus=an({},n.focus||{alpha:.3},Ne.focus),Ur=Br.prox>=0,$i=Ur&&Sn.one;let In=[],Ai=[],Ci=[];function xl(W,z){let Y=Sn.show(r,z);if(Y)return ir(Y,I1),ir(Y,W.class),Wr(Y,-10,-10,De,We),u.insertBefore(Y,In[z]),Y}function _l(W,z){if(f==1||z>0){let Y=f==1&&k[W.scale].time,K=W.value;W.value=Y?ig(K)?xg(O,bg(K,F)):K||V:K||G_,W.label=W.label||(Y?P_:W_)}if($i||z>0){W.width=W.width==null?1:W.width,W.paths=W.paths||ak||Z1,W.fillTo=ft(W.fillTo||J_),W.pxAlign=+mt(W.pxAlign,g),W.pxRound=Pg(W.pxAlign),W.stroke=ft(W.stroke||null),W.fill=ft(W.fill||null),W._stroke=W._fill=W._paths=W._focus=null;let Y=Y_(En(1,W.width),1),K=W.points=an({},{size:Y,width:En(1,Y*.2),stroke:W.stroke,space:Y*2,paths:lk,_stroke:null,_fill:null},W.points);K.show=ft(K.show),K.filter=ft(K.filter),K.fill=ft(K.fill),K.stroke=ft(K.stroke),K.paths=ft(K.paths),K.pxAlign=W.pxAlign}if(G){let Y=nn(W,z);me.splice(z,0,Y[0]),we.splice(z,0,Y[1]),X.values.push(null)}if(Ne.show){q.splice(z,0,null);let Y=null;$i?z==0&&(Y=xl(W,z)):z>0&&(Y=xl(W,z)),In.splice(z,0,Y),Ai.splice(z,0,0),Ci.splice(z,0,0)}Zt("addSeries",z)}function Fh(W,z){z=z??M.length,W=f==1?Su(W,z,Tg,Dg):Su(W,z,{},Og),M.splice(z,0,W),_l(M[z],z)}r.addSeries=Fh;function Wh(W){if(M.splice(W,1),G){X.values.splice(W,1),we.splice(W,1);let z=me.splice(W,1)[0];jr(null,z.firstChild),z.remove()}Ne.show&&(q.splice(W,1),In.splice(W,1)[0].remove(),Ai.splice(W,1),Ci.splice(W,1)),Zt("delSeries",W)}r.delSeries=Wh;const ri=[!1,!1,!1,!1];function Ph(W,z){if(W._show=W.show,W.show){let Y=W.side%2,K=k[W.scale];K==null&&(W.scale=Y?M[1].scale:T,K=k[W.scale]);let te=K.time;W.size=ft(W.size),W.space=ft(W.space),W.rotate=ft(W.rotate),Si(W.incrs)&&W.incrs.forEach(de=>{!ki.has(de)&&ki.set(de,ng(de))}),W.incrs=ft(W.incrs||(K.distr==2?v_:te?x==1?x_:S_:ro)),W.splits=ft(W.splits||(te&&K.distr==1?H:K.distr==3?yu:K.distr==4?j_:z_)),W.stroke=ft(W.stroke),W.grid.stroke=ft(W.grid.stroke),W.ticks.stroke=ft(W.ticks.stroke),W.border.stroke=ft(W.border.stroke);let oe=W.values;W.values=Si(oe)&&!Si(oe[0])?ft(oe):te?Si(oe)?vg(O,wg(oe,F)):ig(oe)?C_(O,oe):oe||B:oe||H_,W.filter=ft(W.filter||(K.distr>=3&&K.log==10?V_:K.distr==3&&K.log==2?q_:Jp)),W.font=em(W.font),W.labelFont=em(W.labelFont),W._size=W.size(r,null,z,0),W._space=W._rotate=W._incrs=W._found=W._splits=W._values=null,W._size>0&&(ri[z]=!0,W._el=fr(E1,l))}}function Ti(W,z,Y,K){let[te,oe,de,ve]=Y,be=z%2,xe=0;return be==0&&(ve||oe)&&(xe=z==0&&!te||z==2&&!de?gn(Cg.size/3):0),be==1&&(te||de)&&(xe=z==1&&!oe||z==3&&!ve?gn(Mg.size/2):0),xe}const kl=r.padding=(n.padding||[Ti,Ti,Ti,Ti]).map(W=>ft(mt(W,Ti))),Vr=r._padding=kl.map((W,z)=>W(r,z,ri,0));let yn,cn=null,un=null;const Go=f==1?M[0].idxs:null;let On=null,lo=!1;function co(W,z){if(t=W??[],r.data=r._data=t,f==2){yn=0;for(let Y=1;Y<M.length;Y++)yn+=t[Y][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),On=t[0],yn=On.length;let Y=t;if(S==2){Y=t.slice();let K=Y[0]=Array(yn);for(let te=0;te<yn;te++)K[te]=te}r._data=t=Y}if(ii(!0),Zt("setData"),S==2&&(Ft=!0),z!==!1){let Y=N;Y.auto(r,lo)?Bs():yr(T,Y.min,Y.max),Ln=Ln||Ne.left>=0,Kn=!0,Li()}}r.setData=co;function Bs(){lo=!0;let W,z;f==1&&(yn>0?(cn=Go[0]=0,un=Go[1]=yn-1,W=t[0][cn],z=t[0][un],S==2?(W=cn,z=un):W==z&&(S==3?[W,z]=Va(W,W,N.log,!1):S==4?[W,z]=iu(W,W,N.log,!1):N.time?z=W+gn(86400/x):[W,z]=qa(W,z,ou,!0))):(cn=Go[0]=W=null,un=Go[1]=z=null)),yr(T,W,z)}let Yo,Ei,Ko,Qo,Zo,Us,Vs,qs,Gs,mr;function Ys(W,z,Y,K,te,oe){W??(W=Op),Y??(Y=cu),K??(K="butt"),te??(te=Op),oe??(oe="round"),W!=Yo&&(s.strokeStyle=Yo=W),te!=Ei&&(s.fillStyle=Ei=te),z!=Ko&&(s.lineWidth=Ko=z),oe!=Zo&&(s.lineJoin=Zo=oe),K!=Us&&(s.lineCap=Us=K),Y!=Qo&&s.setLineDash(Qo=Y)}function Ks(W,z,Y,K){z!=Ei&&(s.fillStyle=Ei=z),W!=Vs&&(s.font=Vs=W),Y!=qs&&(s.textAlign=qs=Y),K!=Gs&&(s.textBaseline=Gs=K)}function uo(W,z,Y,K,te=0){if(K.length>0&&W.auto(r,lo)&&(z==null||z.min==null)){let oe=mt(cn,0),de=mt(un,K.length-1),ve=Y.min==null?W.distr==3?V1(K,oe,de):U1(K,oe,de,te):[Y.min,Y.max];W.min=gr(W.min,Y.min=ve[0]),W.max=En(W.max,Y.max=ve[1])}}const Sl={min:null,max:null};function $l(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[T]!=null&&te.auto(r,lo))&&(L[K]=Sl)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Sl)}L[T]!=null&&ii(!0);let W={};for(let K in L){let te=L[K];if(te!=null){let oe=W[K]=Po(k[K],e_);if(te.min!=null)an(oe,te);else if(K!=T||f==2)if(yn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=zt,oe.max=-1/0}}if(yn>0){M.forEach((K,te)=>{if(f==1){let oe=K.scale,de=L[oe];if(de==null)return;let ve=W[oe];if(te==0){let be=ve.range(r,ve.min,ve.max,oe);ve.min=be[0],ve.max=be[1],cn=Er(ve.min,t[0]),un=Er(ve.max,t[0]),un-cn>1&&(t[0][cn]<ve.min&&cn++,t[0][un]>ve.max&&un--),K.min=On[cn],K.max=On[un]}else K.show&&K.auto&&uo(ve,de,K,t[te],K.sorted);K.idxs[0]=cn,K.idxs[1]=un}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,ve=oe.scale,be=de.scale,[xe,Se]=t[te],Ce=W[ve],qe=W[be];Ce!=null&&uo(Ce,L[ve],oe,xe,oe.sorted),qe!=null&&uo(qe,L[be],de,Se,de.sorted),K.min=de.min,K.max=de.max}});for(let K in W){let te=W[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==zt?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in W){let te=W[K];if(te.from!=null){let oe=W[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let z={},Y=!1;for(let K in W){let te=W[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?Xr(oe.min):de==4?au(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?Xr(oe.max):de==4?au(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,z[K]=Y=!0}}if(Y){M.forEach((K,te)=>{f==2?te>0&&z.y&&(K._paths=null):z[K.scale]&&(K._paths=null)});for(let K in z)Ft=!0,Zt("setScale",K);Ne.show&&Ne.left>=0&&(Ln=Kn=!0)}for(let K in L)L[K]=null}function Jo(W){let z=lu(cn-1,0,yn-1),Y=lu(un+1,0,yn-1);for(;W[z]==null&&z>0;)z--;for(;W[Y]==null&&Y<yn-1;)Y++;return[z,Y]}function Al(){yn>0&&(M.forEach((W,z)=>{if(z>0&&W.show&&(Cl(z,!1),Cl(z,!0),W._paths==null)){mr!=W.alpha&&(s.globalAlpha=mr=W.alpha);let Y=f==2?[0,t[z][0].length-1]:Jo(t[z]);W._paths=W.paths(r,z,Y[0],Y[1]),mr!=1&&(s.globalAlpha=mr=1)}}),M.forEach((W,z)=>{if(z>0&&W.show){mr!=W.alpha&&(s.globalAlpha=mr=W.alpha),W._paths!=null&&Qs(z,!1);{let Y=W._paths!=null?W._paths.gaps:null,K=W.points.show(r,z,cn,un,Y),te=W.points.filter(r,z,K,Y);(K||te)&&(W.points._paths=W.points.paths(r,z,cn,un,te),Qs(z,!0))}mr!=1&&(s.globalAlpha=mr=1),Zt("drawSeries",z)}}))}function Cl(W,z){let Y=z?M[W].points:M[W];Y._stroke=Y.stroke(r,W),Y._fill=Y.fill(r,W)}function Qs(W,z){let Y=z?M[W].points:M[W],{stroke:K,fill:te,clip:oe,flags:de,_stroke:ve=Y._stroke,_fill:be=Y._fill,_width:xe=Y.width}=Y._paths;xe=Tt(xe*yt,3);let Se=null,Ce=xe%2/2;z&&be==null&&(be=xe>0?"#fff":ve);let qe=Y.pxAlign==1&&Ce>0;if(qe&&s.translate(Ce,Ce),!z){let St=Ve-xe/2,et=lt-xe/2,Ue=ct+xe,Ye=it+xe;Se=new Path2D,Se.rect(St,et,Ue,Ye)}z?Zs(ve,xe,Y.dash,Y.cap,be,K,te,de,oe):Tl(W,ve,xe,Y.dash,Y.cap,be,K,te,de,Se,oe),qe&&s.translate(-Ce,-Ce)}function Tl(W,z,Y,K,te,oe,de,ve,be,xe,Se){let Ce=!1;be!=0&&b.forEach((qe,St)=>{if(qe.series[0]==W){let et=M[qe.series[1]],Ue=t[qe.series[1]],Ye=(et._paths||Ls).band;Si(Ye)&&(Ye=qe.dir==1?Ye[0]:Ye[1]);let Re,bt=null;et.show&&Ye&&G1(Ue,cn,un)?(bt=qe.fill(r,St)||oe,Re=et._paths.clip):Ye=null,Zs(z,Y,K,te,bt,de,ve,be,xe,Se,Re,Ye),Ce=!0}}),Ce||Zs(z,Y,K,te,oe,de,ve,be,xe,Se)}const Xo=zo|vu;function Zs(W,z,Y,K,te,oe,de,ve,be,xe,Se,Ce){Ys(W,z,Y,K,te),(be||xe||Ce)&&(s.save(),be&&s.clip(be),xe&&s.clip(xe)),Ce?(ve&Xo)==Xo?(s.clip(Ce),Se&&s.clip(Se),Ri(te,de),ho(W,oe,z)):ve&vu?(Ri(te,de),s.clip(Ce),ho(W,oe,z)):ve&zo&&(s.save(),s.clip(Ce),Se&&s.clip(Se),Ri(te,de),s.restore(),ho(W,oe,z)):(Ri(te,de),ho(W,oe,z)),(be||xe||Ce)&&s.restore()}function ho(W,z,Y){Y>0&&(z instanceof Map?z.forEach((K,te)=>{s.strokeStyle=Yo=te,s.stroke(K)}):z!=null&&W&&s.stroke(z))}function Ri(W,z){z instanceof Map?z.forEach((Y,K)=>{s.fillStyle=Ei=K,s.fill(Y)}):z!=null&&W&&s.fill(z)}function Js(W,z,Y,K){let te=C[W],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,W,z,Y,K),ve=te._incrs=te.incrs(r,W,z,Y,K,de);oe=pk(z,Y,ve,K,de)}return te._found=oe}function qr(W,z,Y,K,te,oe,de,ve,be,xe){let Se=de%2/2;g==1&&s.translate(Se,Se),Ys(ve,de,be,xe,ve),s.beginPath();let Ce,qe,St,et,Ue=te+(K==0||K==3?-oe:oe);Y==0?(qe=te,et=Ue):(Ce=te,St=Ue);for(let Ye=0;Ye<W.length;Ye++)z[Ye]!=null&&(Y==0?Ce=St=W[Ye]:qe=et=W[Ye],s.moveTo(Ce,qe),s.lineTo(St,et));s.stroke(),g==1&&s.translate(-Se,-Se)}function El(W){let z=!0;return C.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(z=!1,Y._show=!1,ii(!1));return}else Y._show||(z=!1,Y._show=!0,ii(!1));let oe=Y.side,de=oe%2,{min:ve,max:be}=te,[xe,Se]=Js(K,ve,be,de==0?De:We);if(Se==0)return;let Ce=te.distr==2,qe=Y._splits=Y.splits(r,K,ve,be,xe,Se,Ce),St=te.distr==2?qe.map(Re=>On[Re]):qe,et=te.distr==2?On[qe[1]]-On[qe[0]]:xe,Ue=Y._values=Y.values(r,Y.filter(r,St,K,Se,et),K,Se,et);Y._rotate=oe==2?Y.rotate(r,Ue,K,Se):0;let Ye=Y._size;Y._size=pr(Y.size(r,Ue,K,W)),Ye!=null&&Y._size!=Ye&&(z=!1)}),z}function Rl(W){let z=!0;return kl.forEach((Y,K)=>{let te=Y(r,K,ri,W);te!=Vr[K]&&(z=!1),Vr[K]=te}),z}function Hh(){for(let W=0;W<C.length;W++){let z=C[W];if(!z.show||!z._show)continue;let Y=z.side,K=Y%2,te,oe,de=z.stroke(r,W),ve=Y==0||Y==3?-1:1;if(z.label){let bn=z.labelGap*ve,Bn=gn((z._lpos+bn)*yt);Ks(z.labelFont[0],de,"center",Y==2?Es:Ip),s.save(),K==1?(te=oe=0,s.translate(Bn,gn(lt+it/2)),s.rotate((Y==3?-Ga:Ga)/2)):(te=gn(Ve+ct/2),oe=Bn),s.fillText(z.label,te,oe),s.restore()}let[be,xe]=z._found;if(xe==0)continue;let Se=k[z.scale],Ce=K==0?ct:it,qe=K==0?Ve:lt,St=gn(z.gap*yt),et=z._splits,Ue=Se.distr==2?et.map(bn=>On[bn]):et,Ye=Se.distr==2?On[et[1]]-On[et[0]]:be,Re=z.ticks,bt=z.border,Vt=Re.show?gn(Re.size*yt):0,Ht=z._rotate*-Ga/180,Mt=w(z._pos*yt),Lt=(Vt+St)*ve,ne=Mt+Lt;oe=K==0?ne:0,te=K==1?ne:0;let le=z.font[0],se=z.align==1?Io:z.align==2?Kc:Ht>0?Io:Ht<0?Kc:K==0?"center":Y==3?Kc:Io,ke=Ht||K==1?"middle":Y==2?Es:Ip;Ks(le,de,se,ke);let Oe=z.font[1]*z.lineGap,Ge=et.map(bn=>w(h(bn,Se,Ce,qe))),xt=z._values;for(let bn=0;bn<xt.length;bn++){let Bn=xt[bn];if(Bn!=null){K==0?te=Ge[bn]:oe=Ge[bn],Bn=""+Bn;let xn=Bn.indexOf(`
|
1408
|
+
`)==-1?[Bn]:Bn.split(/\n/gm);for(let lr=0;lr<xn.length;lr++){let Jn=xn[lr];Ht?(s.save(),s.translate(te,oe+lr*Oe),s.rotate(Ht),s.fillText(Jn,0,0),s.restore()):s.fillText(Jn,te,oe+lr*Oe)}}}Re.show&&qr(Ge,Re.filter(r,Ue,W,xe,Ye),K,Y,Mt,Vt,Tt(Re.width*yt,3),Re.stroke(r,W),Re.dash,Re.cap);let Ke=z.grid;Ke.show&&qr(Ge,Ke.filter(r,Ue,W,xe,Ye),K,K==0?2:1,K==0?lt:Ve,K==0?it:ct,Tt(Ke.width*yt,3),Ke.stroke(r,W),Ke.dash,Ke.cap),bt.show&&qr([Mt],[1],K==0?1:0,K==0?1:2,K==1?lt:Ve,K==1?it:ct,Tt(bt.width*yt,3),bt.stroke(r,W),bt.dash,bt.cap)}Zt("drawAxes")}function ii(W){M.forEach((z,Y)=>{Y>0&&(z._paths=null,W&&(f==1?(z.min=null,z.max=null):z.facets.forEach(K=>{K.min=null,K.max=null})))})}let fo=!1,es=!1,Mi=[];function zh(){es=!1;for(let W=0;W<Mi.length;W++)Zt(...Mi[W]);Mi.length=0}function Li(){fo||(a_(Xs),fo=!0)}function jh(W,z=!1){fo=!0,es=z,W(r),Xs(),z&&Mi.length>0&&queueMicrotask(zh)}r.batch=jh;function Xs(){if(ot&&($l(),ot=!1),Ft&&(Ih(),Ft=!1),Xe){if(Nt(o,Io,Qt),Nt(o,Es,He),Nt(o,Cs,De),Nt(o,Ts,We),Nt(u,Io,Qt),Nt(u,Es,He),Nt(u,Cs,De),Nt(u,Ts,We),Nt(l,Cs,mn),Nt(l,Ts,Kt),c.width=gn(mn*yt),c.height=gn(Kt*yt),C.forEach(({_el:W,_show:z,_size:Y,_pos:K,side:te})=>{if(W!=null)if(z){let oe=te===3||te===0?Y:0,de=te%2==1;Nt(W,de?"left":"top",K-oe),Nt(W,de?"width":"height",Y),Nt(W,de?"top":"left",de?He:Qt),Nt(W,de?"height":"width",de?We:De),tu(W,Xi)}else ir(W,Xi)}),Yo=Ei=Ko=Zo=Us=Vs=qs=Gs=Qo=null,mr=1,go(!0),Qt!=ce||He!=Ae||De!=Ee||We!=Be){ii(!1);let W=De/Ee,z=We/Be;if(Ne.show&&!Ln&&Ne.left>=0){Ne.left*=W,Ne.top*=z,Ii&&Wr(Ii,gn(Ne.left),0,De,We),Gr&&Wr(Gr,0,gn(Ne.top),De,We);for(let Y=0;Y<In.length;Y++){let K=In[Y];K!=null&&(Ai[Y]*=W,Ci[Y]*=z,Wr(K,pr(Ai[Y]),pr(Ci[Y]),De,We))}}if(Rt.show&&!ti&&Rt.left>=0&&Rt.width>0){Rt.left*=W,Rt.width*=W,Rt.top*=z,Rt.height*=z;for(let Y in oa)Nt(oi,Y,Rt[Y])}ce=Qt,Ae=He,Ee=De,Be=We}Zt("setSize"),Xe=!1}mn>0&&Kt>0&&(s.clearRect(0,0,c.width,c.height),Zt("drawClear"),I.forEach(W=>W()),Zt("draw")),Rt.show&&ti&&(ts(Rt),ti=!1),Ne.show&&Ln&&(Dn(null,!0,!1),Ln=!1),X.show&&X.live&&Kn&&(po(),Kn=!1),p||(p=!0,r.status=1,Zt("ready")),lo=!1,fo=!1}r.redraw=(W,z)=>{Ft=z||!1,W!==!1?yr(T,N.min,N.max):Li()};function ea(W,z){let Y=k[W];if(Y.from==null){if(yn==0){let K=Y.range(r,z.min,z.max,W);z.min=K[0],z.max=K[1]}if(z.min>z.max){let K=z.min;z.min=z.max,z.max=K}if(yn>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;W==T&&Y.distr==2&&yn>0&&(z.min=Er(z.min,t[0]),z.max=Er(z.max,t[0]),z.min==z.max&&z.max++),L[W]=z,ot=!0,Li()}}r.setScale=ea;let ta,na,Ii,Gr,Ml,Ll,Oi,Di,Il,At,Fe,Ot,Yr=!1;const wn=Ne.drag;let hn=wn.x,dn=wn.y;Ne.show&&(Ne.x&&(ta=fr(M1,u)),Ne.y&&(na=fr(L1,u)),N.ori==0?(Ii=ta,Gr=na):(Ii=na,Gr=ta),Fe=Ne.left,Ot=Ne.top);const Rt=r.select=an({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),oi=Rt.show?fr(R1,Rt.over?u:o):null;function ts(W,z){if(Rt.show){for(let Y in W)Rt[Y]=W[Y],Y in oa&&Nt(oi,Y,W[Y]);z!==!1&&Zt("setSelect")}}r.setSelect=ts;function vn(W,z){let Y=M[W],K=G?me[W]:null;if(Y.show)K&&tu(K,Xi);else{K&&ir(K,Xi);let te=$i?In[0]:In[W];Wr(te,-10,-10,De,We)}}function yr(W,z,Y){ea(W,{min:z,max:Y})}function $n(W,z,Y,K){z.focus!=null&&Nl(W),z.show!=null&&M.forEach((te,oe)=>{oe>0&&(W==oe||W==null)&&(te.show=z.show,vn(oe,z.show),f==2?(yr(te.facets[0].scale,null,null),yr(te.facets[1].scale,null,null)):yr(te.scale,null,null),Li())}),Y!==!1&&Zt("setSeries",W,z),K&&Lr("setSeries",r,W,z)}r.setSeries=$n;function Ol(W,z){an(b[W],z)}function ra(W,z){W.fill=ft(W.fill||null),W.dir=mt(W.dir,-1),z=z??b.length,b.splice(z,0,W)}function Qn(W){W==null?b.length=0:b.splice(W,1)}r.addBand=ra,r.setBand=Ol,r.delBand=Qn;function Dl(W,z){M[W].alpha=z,Ne.show&&In[W]&&(In[W].style.opacity=z),G&&me[W]&&(me[W].style.opacity=z)}let wr,Mr,Kr;const si={focus:!0};function Nl(W){if(W!=Kr){let z=W==null,Y=Br.alpha!=1;M.forEach((K,te)=>{if(f==1||te>0){let oe=z||te==0||te==W;K._focus=z?null:oe,Y&&Dl(te,oe?1:Br.alpha)}}),Kr=W,Y&&Li()}}G&&Ur&&Bt(Wp,re,W=>{Ne._lock||(ni(W),Kr!=null&&$n(null,si,!0,Ut.setSeries))});function Pt(W,z,Y){let K=k[z];Y&&(W=W/yt-(K.ori==1?He:Qt));let te=De;K.ori==1&&(te=We,W=te-W),K.dir==-1&&(W=te-W);let oe=K._min,de=K._max,ve=W/te,be=oe+(de-oe)*ve,xe=K.distr;return xe==3?Fo(10,be):xe==4?K1(be,K.asinh):xe==100?K.bwd(be):be}function Bh(W,z){let Y=Pt(W,T,z);return Er(Y,t[0],cn,un)}r.valToIdx=W=>Er(W,t[0]),r.posToIdx=Bh,r.posToVal=Pt,r.valToPos=(W,z,Y)=>k[z].ori==0?y(W,k[z],Y?ct:De,Y?Ve:0):v(W,k[z],Y?it:We,Y?lt:0),r.setCursor=(W,z,Y)=>{Fe=W.left,Ot=W.top,Dn(null,z,Y)};function jn(W,z){Nt(oi,Io,Rt.left=W),Nt(oi,Cs,Rt.width=z)}function Fl(W,z){Nt(oi,Es,Rt.top=W),Nt(oi,Ts,Rt.height=z)}let Ni=N.ori==0?jn:Fl,Zn=N.ori==1?jn:Fl;function ns(){if(G&&X.live)for(let W=f==2?1:0;W<M.length;W++){if(W==0&&_e)continue;let z=X.values[W],Y=0;for(let K in z)we[W][Y++].firstChild.nodeValue=z[K]}}function po(W,z){if(W!=null&&(W.idxs?W.idxs.forEach((Y,K)=>{q[K]=Y}):X1(W.idx)||q.fill(W.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<M.length;Y++)(Y>0||f==1&&!_e)&&Dt(Y,q[Y]);ns()}Kn=!1,z!==!1&&Zt("setLegend")}r.setLegend=po;function Dt(W,z){let Y=M[W],K=W==0&&S==2?On:t[W],te;_e?te=Y.values(r,W,z)??nt:(te=Y.value(r,z==null?null:K[z],W,z),te=te==null?nt:{_:te}),X.values[W]=te}function Dn(W,z,Y){Il=Fe,At=Ot,[Fe,Ot]=Ne.move(r,Fe,Ot),Ne.left=Fe,Ne.top=Ot,Ne.show&&(Ii&&Wr(Ii,gn(Fe),0,De,We),Gr&&Wr(Gr,0,gn(Ot),De,We));let K,te=cn>un;wr=zt,Mr=null;let oe=N.ori==0?De:We,de=N.ori==1?De:We;if(Fe<0||yn==0||te){K=Ne.idx=null;for(let ve=0;ve<M.length;ve++){let be=In[ve];be!=null&&Wr(be,-10,-10,De,We)}Ur&&$n(null,si,!0,W==null&&Ut.setSeries),X.live&&(q.fill(K),Kn=!0)}else{let ve,be,xe;f==1&&(ve=N.ori==0?Fe:Ot,be=Pt(ve,T),K=Ne.idx=Er(be,t[0],cn,un),xe=_(t[0][K],N,oe,0));let Se=-10,Ce=-10,qe=0,St=0,et=!0,Ue="",Ye="";for(let Re=f==2?1:0;Re<M.length;Re++){let bt=M[Re],Vt=q[Re],Ht=Vt==null?null:f==1?t[Re][Vt]:t[Re][1][Vt],Mt=Ne.dataIdx(r,Re,K,be),Lt=Mt==null?null:f==1?t[Re][Mt]:t[Re][1][Mt];Kn=Kn||Lt!=Ht||Mt!=Vt,q[Re]=Mt;let ne=Mt==K?xe:_(f==1?t[0][Mt]:t[Re][0][Mt],N,oe,0);if(Re>0&&bt.show){let le=Lt==null?-10:$(Lt,f==1?k[bt.scale]:k[bt.facets[1].scale],de,0);if(Ur&&Lt!=null){let se=N.ori==1?Fe:Ot,ke=pn(Br.dist(r,Re,Mt,le,se));if(ke<wr){let Oe=Br.bias;if(Oe!=0){let Ge=Pt(se,bt.scale),xt=Lt>=0?1:-1,Ke=Ge>=0?1:-1;Ke==xt&&(Ke==1?Oe==1?Lt>=Ge:Lt<=Ge:Oe==1?Lt<=Ge:Lt>=Ge)&&(wr=ke,Mr=Re)}else wr=ke,Mr=Re}}if(Kn||$i){let se,ke;N.ori==0?(se=ne,ke=le):(se=le,ke=ne);let Oe,Ge,xt,Ke,bn,Bn,xn=!0,lr=Sn.bbox;if(lr!=null){xn=!1;let Jn=lr(r,Re);xt=Jn.left,Ke=Jn.top,Oe=Jn.width,Ge=Jn.height}else xt=se,Ke=ke,Oe=Ge=Sn.size(r,Re);if(Bn=Sn.fill(r,Re),bn=Sn.stroke(r,Re),$i)Re==Mr&&wr<=Br.prox&&(Se=xt,Ce=Ke,qe=Oe,St=Ge,et=xn,Ue=Bn,Ye=bn);else{let Jn=In[Re];Jn!=null&&(Ai[Re]=xt,Ci[Re]=Ke,Vp(Jn,Oe,Ge,xn),Bp(Jn,Bn,bn),Wr(Jn,pr(xt),pr(Ke),De,We))}}}}if($i){let Re=Br.prox,bt=Kr==null?wr<=Re:wr>Re||Mr!=Kr;if(Kn||bt){let Vt=In[0];Ai[0]=Se,Ci[0]=Ce,Vp(Vt,qe,St,et),Bp(Vt,Ue,Ye),Wr(Vt,pr(Se),pr(Ce),De,We)}}}if(Rt.show&&Yr)if(W!=null){let[ve,be]=Ut.scales,[xe,Se]=Ut.match,[Ce,qe]=W.cursor.sync.scales,St=W.cursor.drag;if(hn=St._x,dn=St._y,hn||dn){let{left:et,top:Ue,width:Ye,height:Re}=W.select,bt=W.scales[Ce].ori,Vt=W.posToVal,Ht,Mt,Lt,ne,le,se=ve!=null&&xe(ve,Ce),ke=be!=null&&Se(be,qe);se&&hn?(bt==0?(Ht=et,Mt=Ye):(Ht=Ue,Mt=Re),Lt=k[ve],ne=_(Vt(Ht,Ce),Lt,oe,0),le=_(Vt(Ht+Mt,Ce),Lt,oe,0),Ni(gr(ne,le),pn(le-ne))):Ni(0,oe),ke&&dn?(bt==1?(Ht=et,Mt=Ye):(Ht=Ue,Mt=Re),Lt=k[be],ne=$(Vt(Ht,qe),Lt,de,0),le=$(Vt(Ht+Mt,qe),Lt,de,0),Zn(gr(ne,le),pn(le-ne))):Zn(0,de)}else is()}else{let ve=pn(Il-Ml),be=pn(At-Ll);if(N.ori==1){let qe=ve;ve=be,be=qe}hn=wn.x&&ve>=wn.dist,dn=wn.y&&be>=wn.dist;let xe=wn.uni;xe!=null?hn&&dn&&(hn=ve>=xe,dn=be>=xe,!hn&&!dn&&(be>ve?dn=!0:hn=!0)):wn.x&&wn.y&&(hn||dn)&&(hn=dn=!0);let Se,Ce;hn&&(N.ori==0?(Se=Oi,Ce=Fe):(Se=Di,Ce=Ot),Ni(gr(Se,Ce),pn(Ce-Se)),dn||Zn(0,de)),dn&&(N.ori==1?(Se=Oi,Ce=Fe):(Se=Di,Ce=Ot),Zn(gr(Se,Ce),pn(Ce-Se)),hn||Ni(0,oe)),!hn&&!dn&&(Ni(0,0),Zn(0,0))}if(wn._x=hn,wn._y=dn,W==null){if(Y){if(Nn!=null){let[ve,be]=Ut.scales;Ut.values[0]=ve!=null?Pt(N.ori==0?Fe:Ot,ve):null,Ut.values[1]=be!=null?Pt(N.ori==1?Fe:Ot,be):null}Lr(Dp,r,Fe,Ot,De,We,K)}if(Ur){let ve=Y&&Ut.setSeries,be=Br.prox;Kr==null?wr<=be&&$n(Mr,si,!0,ve):wr>be?$n(null,si,!0,ve):Mr!=Kr&&$n(Mr,si,!0,ve)}}Kn&&(X.idx=K,po()),z!==!1&&Zt("setCursor")}let vr=null;Object.defineProperty(r,"rect",{get(){return vr==null&&go(!1),vr}});function go(W=!1){W?vr=null:(vr=u.getBoundingClientRect(),Zt("syncRect",vr))}function rs(W,z,Y,K,te,oe,de){Ne._lock||Yr&&W!=null&&W.movementX==0&&W.movementY==0||(ia(W,z,Y,K,te,oe,de,!1,W!=null),W!=null?Dn(null,!0,!0):Dn(z,!0,!1))}function ia(W,z,Y,K,te,oe,de,ve,be){if(vr==null&&go(!1),ni(W),W!=null)Y=W.clientX-vr.left,K=W.clientY-vr.top;else{if(Y<0||K<0){Fe=-10,Ot=-10;return}let[xe,Se]=Ut.scales,Ce=z.cursor.sync,[qe,St]=Ce.values,[et,Ue]=Ce.scales,[Ye,Re]=Ut.match,bt=z.axes[0].side%2==1,Vt=N.ori==0?De:We,Ht=N.ori==1?De:We,Mt=bt?oe:te,Lt=bt?te:oe,ne=bt?K:Y,le=bt?Y:K;if(et!=null?Y=Ye(xe,et)?h(qe,k[xe],Vt,0):-10:Y=Vt*(ne/Mt),Ue!=null?K=Re(Se,Ue)?h(St,k[Se],Ht,0):-10:K=Ht*(le/Lt),N.ori==1){let se=Y;Y=K,K=se}}be&&((Y<=1||Y>=De-1)&&(Y=no(Y,De)),(K<=1||K>=We-1)&&(K=no(K,We))),ve?(Ml=Y,Ll=K,[Oi,Di]=Ne.move(r,Y,K)):(Fe=Y,Ot=K)}const oa={width:0,height:0,left:0,top:0};function is(){ts(oa,!1)}let sa,mo,ai,Wl;function aa(W,z,Y,K,te,oe,de){Yr=!0,hn=dn=wn._x=wn._y=!1,ia(W,z,Y,K,te,oe,de,!0,!1),W!=null&&(Bt(Zc,Xc,la,!1),Lr(Np,r,Oi,Di,De,We,null));let{left:ve,top:be,width:xe,height:Se}=Rt;sa=ve,mo=be,ai=xe,Wl=Se,is()}function la(W,z,Y,K,te,oe,de){Yr=wn._x=wn._y=!1,ia(W,z,Y,K,te,oe,de,!1,!0);let{left:ve,top:be,width:xe,height:Se}=Rt,Ce=xe>0||Se>0,qe=sa!=ve||mo!=be||ai!=xe||Wl!=Se;if(Ce&&qe&&ts(Rt),wn.setScale&&Ce&&qe){let St=ve,et=xe,Ue=be,Ye=Se;if(N.ori==1&&(St=be,et=Se,Ue=ve,Ye=xe),hn&&yr(T,Pt(St,T),Pt(St+et,T)),dn)for(let Re in k){let bt=k[Re];Re!=T&&bt.from==null&&bt.min!=zt&&yr(Re,Pt(Ue+Ye,Re),Pt(Ue,Re))}is()}else Ne.lock&&(Ne._lock=!Ne._lock,Dn(null,!0,!1));W!=null&&(jr(Zc,Xc),Lr(Zc,r,Fe,Ot,De,We,null))}function ca(W,z,Y,K,te,oe,de){if(Ne._lock)return;ni(W);let ve=Yr;if(Yr){let be=!0,xe=!0,Se=10,Ce,qe;N.ori==0?(Ce=hn,qe=dn):(Ce=dn,qe=hn),Ce&&qe&&(be=Fe<=Se||Fe>=De-Se,xe=Ot<=Se||Ot>=We-Se),Ce&&be&&(Fe=Fe<Oi?0:De),qe&&xe&&(Ot=Ot<Di?0:We),Dn(null,!0,!0),Yr=!1}Fe=-10,Ot=-10,Dn(null,!0,!0),ve&&(Yr=ve)}function os(W,z,Y,K,te,oe,de){Ne._lock||(ni(W),Bs(),is(),W!=null&&Lr(Pp,r,Fe,Ot,De,We,null))}function ua(){C.forEach(gk),zs(r.width,r.height,!0)}eo(Ba,Do,ua);const Fi={};Fi.mousedown=aa,Fi.mousemove=rs,Fi.mouseup=la,Fi.dblclick=os,Fi.setSeries=(W,z,Y,K)=>{let te=Ut.match[2];Y=te(r,z,Y),Y!=-1&&$n(Y,K,!0,!1)},Ne.show&&(Bt(Np,u,aa),Bt(Dp,u,rs),Bt(Fp,u,W=>{ni(W),go(!1)}),Bt(Wp,u,ca),Bt(Pp,u,os),ku.add(r),r.syncRect=go);const Wi=r.hooks=n.hooks||{};function Zt(W,z,Y){es?Mi.push([W,z,Y]):W in Wi&&Wi[W].forEach(K=>{K.call(null,r,z,Y)})}(n.plugins||[]).forEach(W=>{for(let z in W.hooks)Wi[z]=(Wi[z]||[]).concat(W.hooks[z])});const Pl=(W,z,Y)=>Y,Ut=an({key:null,setSeries:!1,filters:{pub:Xp,sub:Xp},scales:[T,M[1]?M[1].scale:null],match:[eg,eg,Pl],values:[null,null]},Ne.sync);Ut.match.length==2&&Ut.match.push(Pl),Ne.sync=Ut;const Nn=Ut.key,yo=Wg(Nn);function Lr(W,z,Y,K,te,oe,de){Ut.filters.pub(W,z,Y,K,te,oe,de)&&yo.pub(W,z,Y,K,te,oe,de)}yo.sub(r);function Hl(W,z,Y,K,te,oe,de){Ut.filters.sub(W,z,Y,K,te,oe,de)&&Fi[W](null,z,Y,K,te,oe,de)}r.pub=Hl;function zl(){yo.unsub(r),ku.delete(r),Et.clear(),ru(Ba,Do,ua),a.remove(),re==null||re.remove(),Zt("destroy")}r.destroy=zl;function ha(){Zt("init",n,t),co(t||n.data,!1),L[T]?ea(T,L[T]):Bs(),ti=Rt.show&&(Rt.width>0||Rt.height>0),Ln=Kn=!0,zs(n.width,n.height)}return M.forEach(_l),C.forEach(Ph),e?e instanceof HTMLElement?(e.appendChild(a),ha()):e(r,ha):ha(),r}Rn.assign=an,Rn.fmtNum=su,Rn.rangeNum=qa,Rn.rangeLog=Va,Rn.rangeAsinh=iu,Rn.orient=io,Rn.pxRatio=yt,Rn.join=s_,Rn.fmtDate=uu,Rn.tzDate=y_,Rn.sync=Wg;{Rn.addGap=X_,Rn.clipGaps=Xa;let n=Rn.paths={points:Vg};n.linear=Gg,n.stepped=nk,n.bars=rk,n.spline=ok}var tm,nm;function mk(){return nm||(nm=1,tm=function(n,t,e,r,f){var m,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(m=r+(f-r>>>1),y=+e(n[m],t,m,n),y<0)r=m+1;else if(y>0)f=m-1;else return m;return~r}),tm}var yk=mk();const MO=Pn("O",Ta(yk));var $u,rm;function wk(){if(rm)return $u;rm=1;function n(t,e,r){var f=-1,m=t.length;e<0&&(e=-e>m?0:m+e),r=r>m?m:r,r<0&&(r+=m),m=e>r?0:r-e>>>0,e>>>=0;for(var y=Array(m);++f<m;)y[f]=t[f+e];return y}return $u=n,$u}var Au,im;function vk(){if(im)return Au;im=1;var n=wk();function t(e,r,f){var m=e.length;return f=f===void 0?m:f,!r&&f>=m?e:n(e,r,f)}return Au=t,Au}var Cu,om;function sm(){if(om)return Cu;om=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,m="\\ufe0e\\ufe0f",y="\\u200d",v=RegExp("["+y+n+f+m+"]");function h(p){return v.test(p)}return Cu=h,Cu}var Tu,am;function bk(){if(am)return Tu;am=1;function n(t){return t.split("")}return Tu=n,Tu}var Eu,lm;function xk(){if(lm)return Eu;lm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,m="\\ufe0e\\ufe0f",y="["+n+"]",v="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",p="(?:"+v+"|"+h+")",a="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=p+"?",u="["+m+"]?",g="(?:"+l+"(?:"+[a,c,s].join("|")+")"+u+o+")*",w=u+o+g,x="(?:"+[a+v+"?",v,c,s,y].join("|")+")",M=RegExp(h+"(?="+h+")|"+x+w,"g");function C(k){return k.match(M)||[]}return Eu=C,Eu}var Ru,cm;function _k(){if(cm)return Ru;cm=1;var n=bk(),t=sm(),e=xk();function r(f){return t(f)?e(f):n(f)}return Ru=r,Ru}var Mu,um;function kk(){if(um)return Mu;um=1;var n=typeof _i=="object"&&_i&&_i.Object===Object&&_i;return Mu=n,Mu}var Lu,hm;function Sk(){if(hm)return Lu;hm=1;var n=kk(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Lu=e,Lu}var Iu,dm;function Ou(){if(dm)return Iu;dm=1;var n=Sk(),t=n.Symbol;return Iu=t,Iu}var Du,fm;function $k(){if(fm)return Du;fm=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,m=Array(f);++r<f;)m[r]=e(t[r],r,t);return m}return Du=n,Du}var Nu,pm;function Ak(){if(pm)return Nu;pm=1;var n=Array.isArray;return Nu=n,Nu}var Fu,gm;function Ck(){if(gm)return Fu;gm=1;var n=Ou(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function m(y){var v=e.call(y,f),h=y[f];try{y[f]=void 0;var p=!0}catch{}var a=r.call(y);return p&&(v?y[f]=h:delete y[f]),a}return Fu=m,Fu}var Wu,mm;function Tk(){if(mm)return Wu;mm=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Wu=e,Wu}var Pu,ym;function Ek(){if(ym)return Pu;ym=1;var n=Ou(),t=Ck(),e=Tk(),r="[object Null]",f="[object Undefined]",m=n?n.toStringTag:void 0;function y(v){return v==null?v===void 0?f:r:m&&m in Object(v)?t(v):e(v)}return Pu=y,Pu}var Hu,wm;function Rk(){if(wm)return Hu;wm=1;function n(t){return t!=null&&typeof t=="object"}return Hu=n,Hu}var zu,vm;function Mk(){if(vm)return zu;vm=1;var n=Ek(),t=Rk(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return zu=r,zu}var ju,bm;function Lk(){if(bm)return ju;bm=1;var n=Ou(),t=$k(),e=Ak(),r=Mk(),f=n?n.prototype:void 0,m=f?f.toString:void 0;function y(v){if(typeof v=="string")return v;if(e(v))return t(v,y)+"";if(r(v))return m?m.call(v):"";var h=v+"";return h=="0"&&1/v==-1/0?"-0":h}return ju=y,ju}var Bu,xm;function rl(){if(xm)return Bu;xm=1;var n=Lk();function t(e){return e==null?"":n(e)}return Bu=t,Bu}var Uu,_m;function Ik(){if(_m)return Uu;_m=1;var n=vk(),t=sm(),e=_k(),r=rl();function f(m){return function(y){y=r(y);var v=t(y)?e(y):void 0,h=v?v[0]:y.charAt(0),p=v?n(v,1).join(""):y.slice(1);return h[m]()+p}}return Uu=f,Uu}var Vu,km;function Sm(){if(km)return Vu;km=1;var n=Ik(),t=n("toUpperCase");return Vu=t,Vu}var Ok=Sm();const Dk=Ta(Ok);var qu,$m;function Nk(){if($m)return qu;$m=1;var n=rl(),t=Sm();function e(r){return t(n(r).toLowerCase())}return qu=e,qu}var Gu,Am;function Fk(){if(Am)return Gu;Am=1;function n(t,e,r,f){var m=-1,y=t==null?0:t.length;for(f&&y&&(r=t[++m]);++m<y;)r=e(r,t[m],m,t);return r}return Gu=n,Gu}var Yu,Cm;function Wk(){if(Cm)return Yu;Cm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Yu=n,Yu}var Ku,Tm;function Pk(){if(Tm)return Ku;Tm=1;var n=Wk(),t={À:"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=n(t);return Ku=e,Ku}var Qu,Em;function Hk(){if(Em)return Qu;Em=1;var n=Pk(),t=rl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",m="\\u20d0-\\u20ff",y=r+f+m,v="["+y+"]",h=RegExp(v,"g");function p(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return Qu=p,Qu}var Zu,Rm;function zk(){if(Rm)return Zu;Rm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Zu=t,Zu}var Ju,Mm;function jk(){if(Mm)return Ju;Mm=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return Ju=t,Ju}var Xu,Lm;function Bk(){if(Lm)return Xu;Lm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,m="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\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",c="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",l=v+h+p+a,o="['’]",u="["+l+"]",g="["+f+"]",w="\\d+",x="["+m+"]",M="["+y+"]",C="[^"+n+l+w+m+y+c+"]",k="\\ud83c[\\udffb-\\udfff]",b="(?:"+g+"|"+k+")",T="[^"+n+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+c+"]",N="\\u200d",S="(?:"+M+"|"+C+")",_="(?:"+E+"|"+C+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+s+"]?",H="(?:"+N+"(?:"+[T,R,I].join("|")+")"+F+O+")*",B="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,X="(?:"+[x,R,I].join("|")+")"+q,G=RegExp([E+"?"+M+"+"+$+"(?="+[u,E,"$"].join("|")+")",_+"+"+L+"(?="+[u,E+S,"$"].join("|")+")",E+"?"+S+"+"+$,E+"+"+L,V,B,w,X].join("|"),"g");function Z(re){return re.match(G)||[]}return Xu=Z,Xu}var eh,Im;function Uk(){if(Im)return eh;Im=1;var n=zk(),t=jk(),e=rl(),r=Bk();function f(m,y,v){return m=e(m),y=v?void 0:y,y===void 0?t(m)?r(m):n(m):m.match(y)||[]}return eh=f,eh}var th,Om;function Vk(){if(Om)return th;Om=1;var n=Fk(),t=Hk(),e=Uk(),r="['’]",f=RegExp(r,"g");function m(y){return function(v){return n(e(t(v).replace(f,"")),y,"")}}return th=m,th}var nh,Dm;function qk(){if(Dm)return nh;Dm=1;var n=Nk(),t=Vk(),e=t(function(r,f,m){return f=f.toLowerCase(),r+(m?n(f):f)});return nh=e,nh}var Gk=qk();const Yk=Ta(Gk),Kk=Object.assign({"./ArrayWidget.vue":()=>Ie(()=>Le.import("./ArrayWidget-DzHELdHv-2696cd6b28635276d405.js"),void 0),"./ArrayplotWidget.vue":()=>Ie(()=>Le.import("./ArrayplotWidget-BDvziGSm-24e5ff0c0b4a199e3ea3.js"),void 0),"./BlockWidget.vue":()=>Ie(()=>Le.import("./BlockWidget-D0On4x3d-2ac3b1d1c1a09e783c0b.js"),void 0),"./ButtonWidget.vue":()=>Ie(()=>Le.import("./ButtonWidget-BOYLHMt4-9aba3794db0d9db7834f.js"),void 0),"./CanvasWidget.vue":()=>Ie(()=>Le.import("./CanvasWidget-CQIqiLEy-c7c4f7f9070cb3817fd1.js"),void 0),"./CanvasdotWidget.vue":()=>Ie(()=>Le.import("./CanvasdotWidget-BVWutPMF-13837ef7df386e2436fe.js"),void 0),"./CanvasimageWidget.vue":()=>Ie(()=>Le.import("./CanvasimageWidget-ayu_ASKf-b9339ee17da39f4bc322.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ie(()=>Le.import("./CanvasimagevalueWidget-mv319g5T-740baed1210ff9968ec2.js"),void 0),"./CanvaslabelWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelWidget-BNjbXDb8-14f72e6adbce8bb523c0.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelvalueWidget-CrhPwTSP-55b64e9988925d3fbb08.js"),void 0),"./CanvaslineWidget.vue":()=>Ie(()=>Le.import("./CanvaslineWidget--HdKH6oO-f12b92ae65dc6cf7b5ff.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslinevalueWidget-CJsuF6RY-b9d6619170a3312b237d.js"),void 0),"./CheckbuttonWidget.vue":()=>Ie(()=>Le.import("./CheckbuttonWidget-CQ2HlgIk-8dec3f4b4831dd22d182.js"),void 0),"./ComboboxWidget.vue":()=>Ie(()=>Le.import("./ComboboxWidget-BxILACwz-5738650176ceb313e762.js"),void 0),"./DateWidget.vue":()=>Ie(()=>Le.import("./DateWidget-CIkO0xqH-e14dd793f075c6841391.js"),void 0),"./DynamicWidget.vue":()=>Ie(()=>Le.import("./DynamicWidget-gFSYxzvT-c291e579d06e10a13784.js"),void 0),"./FormatvalueWidget.vue":()=>Ie(()=>Le.import("./FormatvalueWidget-D8-EO_3E-6bc3157ab3980836108b.js"),void 0),"./HorizontalWidget.vue":()=>Ie(()=>Le.import("./HorizontalWidget-Bp-qtqoh-fc1cf0904a77bfa0068a.js"),void 0),"./HorizontalboxWidget.vue":()=>Ie(()=>Le.import("./HorizontalboxWidget-CrJuGY3s-d9a22e6cef2994363aca.js"),void 0),"./HorizontallineWidget.vue":()=>Ie(()=>Le.import("./HorizontallineWidget-CbxREBYI-1362b40d6a8124d24f9e.js"),void 0),"./IframeWidget.vue":()=>Ie(()=>Le.import("./IframeWidget-DusiWNNj-ae649580a2f8eab41a17.js"),void 0),"./ImageviewerWidget.vue":()=>Ie(()=>Le.import("./ImageviewerWidget-c0gJ9VDC-12cd17a70e49c80b3d4d.js"),void 0),"./LabelWidget.vue":()=>Ie(()=>Le.import("./LabelWidget-pPgc0ve3-e0ef8efa33466d8fdb63.js"),void 0),"./LabelledWidget.vue":()=>Ie(()=>Le.import("./LabelledWidget-CkNjby55-9c47047f9f63581c90d7.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ie(()=>Le.import("./LabelprogressbarWidget-e2R2yQKw-a316a81263d2499a7cf6.js"),void 0),"./LabelsparklineWidget.vue":()=>Ie(()=>Le.import("./LabelsparklineWidget-D7MQ_oNw-12fe286901042e7980a8.js"),void 0),"./LabelvalueWidget.vue":()=>Ie(()=>Le.import("./LabelvalueWidget-4DShBBvr-28575ba1584e3fae7e98.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ie(()=>Le.import("./LabelvaluedescWidget-Z1m8Bi6N-1d5d5add0e4e5883c03b.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitsbarWidget-DVa-oYxU-b7703e2a74107a1cf740.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitscolumnWidget-DduuX632-c9637de9afa2e5bced7f.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluerangebarWidget-BR9vXOlt-7813249045b6400a527b.js"),void 0),"./LedWidget.vue":()=>Ie(()=>Le.import("./LedWidget-f7bf8ls_-1cef4036b9c90c045dd3.js"),void 0),"./LimitsbarWidget.vue":()=>Ie(()=>Le.import("./LimitsbarWidget-B7fHaDcJ-ae0ea9dc7683a2c018bd.js"),void 0),"./LimitscolorWidget.vue":()=>Ie(()=>Le.import("./LimitscolorWidget-CpC4D_TC-a173e3f568bb6f7f1d3c.js"),void 0),"./LimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LimitscolumnWidget-C9FbNC-U-cb9bb49906cdac34c1d1.js"),void 0),"./LinegraphWidget.vue":()=>Ie(()=>Le.import("./LinegraphWidget-DkWDQ_3K-2ef4b172beb756114eb6.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ie(()=>Le.import("./MatrixbycolumnsWidget-CHJDyYa3-6d65d34d91c8e5dfa80d.js"),void 0),"./ProgressbarWidget.vue":()=>Ie(()=>Le.import("./ProgressbarWidget-CRZDxClT-751a7b0b797c6f195af4.js"),void 0),"./RadiobuttonWidget.vue":()=>Ie(()=>Le.import("./RadiobuttonWidget-BW4yFweH-1db16aae077b84718b7f.js"),void 0),"./RadiogroupWidget.vue":()=>Ie(()=>Le.import("./RadiogroupWidget-_0bVCHjr-eecbb69ec63d9d2ab35b.js"),void 0),"./RangebarWidget.vue":()=>Ie(()=>Le.import("./RangebarWidget-CEQFiG4l-a1790d4d4f5165e09dcd.js"),void 0),"./RollupWidget.vue":()=>Ie(()=>Le.import("./RollupWidget-579c7y0R-b9e24995a7d9c1a43457.js"),void 0),"./ScrollwindowWidget.vue":()=>Ie(()=>Le.import("./ScrollwindowWidget-Kcre9gM3-31f516364bd724df2f68.js"),void 0),"./SignalWidget.vue":()=>Ie(()=>Le.import("./SignalWidget-D55Myd0q-8eb78ba401507ca9321d.js"),void 0),"./SpacerWidget.vue":()=>Ie(()=>Le.import("./SpacerWidget-DBDv_w_s-34160af149d5d21a9b17.js"),void 0),"./SparklineWidget.vue":()=>Ie(()=>Le.import("./SparklineWidget-DJvIL24z-6509163db95abd5b7f84.js"),void 0),"./TabbookWidget.vue":()=>Ie(()=>Le.import("./TabbookWidget-DH9DHnp1-e92a91c60f451c7c2424.js"),void 0),"./TextboxWidget.vue":()=>Ie(()=>Le.import("./TextboxWidget-DCjIEzJn-248a1e809eceb4248176.js"),void 0),"./TextfieldWidget.vue":()=>Ie(()=>Le.import("./TextfieldWidget-BRQ6oPzR-d10b17c67bc8737a0818.js"),void 0),"./TimeWidget.vue":()=>Ie(()=>Le.import("./TimeWidget-pXtrK5IC-134beb6b14d77155b1ab.js"),void 0),"./TitleWidget.vue":()=>Ie(()=>Le.import("./TitleWidget-CfAa2SyT-ce1c88278226076fb803.js"),void 0),"./ValueWidget.vue":()=>Ie(()=>Le.import("./ValueWidget-DIFivXw_-dc1b3dc2a36555831ac8.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ie(()=>Le.import("./ValuelimitsbarWidget-Cb7_SIUF-867b769b720540aad858.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./ValuelimitscolumnWidget-D8bgZ7YP-80b0b012da1f40f36c08.js"),void 0),"./ValuerangebarWidget.vue":()=>Ie(()=>Le.import("./ValuerangebarWidget-VKygtFwP-e74e25236cfe4bcd54ae.js"),void 0),"./VerticalWidget.vue":()=>Ie(()=>Le.import("./VerticalWidget-BuvedA_b-d7b6c91f4a81b25f71f0.js"),void 0),"./VerticalboxWidget.vue":()=>Ie(()=>Le.import("./VerticalboxWidget-D_LcL3GF-519d9b8de53903c45777.js"),void 0)}),Qk=Object.entries(Kk).reduce((n,[t,e])=>{t=t.split("/").pop();const r=Dk(Yk(t.replace(/\.\w+$/,"")));return{...n,[r]:Fd(e)}},{}),LO=Pn("D",{components:Qk});function Nm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Zk}=Object.prototype,{getPrototypeOf:rh}=Object,il=(n=>t=>{const e=Zk.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=n=>(n=n.toLowerCase(),t=>il(t)===n),ol=n=>t=>typeof t===n,{isArray:Uo}=Array,Ds=ol("undefined");function Jk(n){return n!==null&&!Ds(n)&&n.constructor!==null&&!Ds(n.constructor)&&ar(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Fm=Rr("ArrayBuffer");function Xk(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Fm(n.buffer),t}const eS=ol("string"),ar=ol("function"),Wm=ol("number"),sl=n=>n!==null&&typeof n=="object",tS=n=>n===!0||n===!1,al=n=>{if(il(n)!=="object")return!1;const t=rh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},nS=Rr("Date"),rS=Rr("File"),iS=Rr("Blob"),oS=Rr("FileList"),sS=n=>sl(n)&&ar(n.pipe),aS=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ar(n.append)&&((t=il(n))==="formdata"||t==="object"&&ar(n.toString)&&n.toString()==="[object FormData]"))},lS=Rr("URLSearchParams"),[cS,uS,hS,dS]=["ReadableStream","Request","Response","Headers"].map(Rr),fS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Uo(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const m=e?Object.getOwnPropertyNames(n):Object.keys(n),y=m.length;let v;for(r=0;r<y;r++)v=m[r],t.call(null,n[v],v,n)}}function Pm(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hm=n=>!Ds(n)&&n!==oo;function ih(){const{caseless:n}=Hm(this)&&this||{},t={},e=(r,f)=>{const m=n&&Pm(t,f)||f;al(t[m])&&al(r)?t[m]=ih(t[m],r):al(r)?t[m]=ih({},r):Uo(r)?t[m]=r.slice():t[m]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Ns(arguments[r],e);return t}const pS=(n,t,e,{allOwnKeys:r}={})=>(Ns(t,(f,m)=>{e&&ar(f)?n[m]=Nm(f,e):n[m]=f},{allOwnKeys:r}),n),gS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),mS=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},yS=(n,t,e,r)=>{let f,m,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),m=f.length;m-- >0;)y=f[m],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&rh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},wS=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},vS=n=>{if(!n)return null;if(Uo(n))return n;let t=n.length;if(!Wm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},bS=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&rh(Uint8Array)),xS=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},_S=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},kS=Rr("HTMLFormElement"),SS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),zm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),$S=Rr("RegExp"),jm=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Ns(e,(f,m)=>{let y;(y=t(f,m,n))!==!1&&(r[m]=y||f)}),Object.defineProperties(n,r)},AS=n=>{jm(n,(t,e)=>{if(ar(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},CS=(n,t)=>{const e={},r=f=>{f.forEach(m=>{e[m]=!0})};return Uo(n)?r(n):r(String(n).split(t)),e},TS=()=>{},ES=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,oh="abcdefghijklmnopqrstuvwxyz",Bm="0123456789",Um={DIGIT:Bm,ALPHA:oh,ALPHA_DIGIT:oh+oh.toUpperCase()+Bm},RS=(n=16,t=Um.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function MS(n){return!!(n&&ar(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const LS=n=>{const t=new Array(10),e=(r,f)=>{if(sl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const m=Uo(r)?[]:{};return Ns(r,(y,v)=>{const h=e(y,f+1);!Ds(h)&&(m[v]=h)}),t[f]=void 0,m}}return r};return e(n,0)},IS=Rr("AsyncFunction"),OS=n=>n&&(sl(n)||ar(n))&&ar(n.then)&&ar(n.catch),Vm=((n,t)=>n?setImmediate:t?((e,r)=>(oo.addEventListener("message",({source:f,data:m})=>{f===oo&&m===e&&r.length&&r.shift()()},!1),f=>{r.push(f),oo.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ar(oo.postMessage)),DS=typeof queueMicrotask<"u"?queueMicrotask.bind(oo):typeof process<"u"&&process.nextTick||Vm,he={isArray:Uo,isArrayBuffer:Fm,isBuffer:Jk,isFormData:aS,isArrayBufferView:Xk,isString:eS,isNumber:Wm,isBoolean:tS,isObject:sl,isPlainObject:al,isReadableStream:cS,isRequest:uS,isResponse:hS,isHeaders:dS,isUndefined:Ds,isDate:nS,isFile:rS,isBlob:iS,isRegExp:$S,isFunction:ar,isStream:sS,isURLSearchParams:lS,isTypedArray:bS,isFileList:oS,forEach:Ns,merge:ih,extend:pS,trim:fS,stripBOM:gS,inherits:mS,toFlatObject:yS,kindOf:il,kindOfTest:Rr,endsWith:wS,toArray:vS,forEachEntry:xS,matchAll:_S,isHTMLForm:kS,hasOwnProperty:zm,hasOwnProp:zm,reduceDescriptors:jm,freezeMethods:AS,toObjectSet:CS,toCamelCase:SS,noop:TS,toFiniteNumber:ES,findKey:Pm,global:oo,isContextDefined:Hm,ALPHABET:Um,generateString:RS,isSpecCompliantForm:MS,toJSONObject:LS,isAsyncFn:IS,isThenable:OS,setImmediate:Vm,asap:DS};function Je(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}he.inherits(Je,Error,{toJSON:function(){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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const qm=Je.prototype,Gm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Gm[n]={value:n}}),Object.defineProperties(Je,Gm),Object.defineProperty(qm,"isAxiosError",{value:!0}),Je.from=(n,t,e,r,f,m)=>{const y=Object.create(qm);return he.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Je.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,m&&Object.assign(y,m),y};const NS=null;function sh(n){return he.isPlainObject(n)||he.isArray(n)}function Ym(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Km(n,t,e){return n?n.concat(t).map(function(r,f){return r=Ym(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function FS(n){return he.isArray(n)&&!n.some(sh)}const WS=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function ll(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||p,m=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!v&&he.isBlob(l))throw new Je("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function p(l,o,u){let g=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&FS(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(g=he.toArray(l)))return o=Ym(o),g.forEach(function(w,x){!(he.isUndefined(w)||w===null)&&t.append(y===!0?Km([o],x,m):y===null?o:o+"[]",h(w))}),!1}return sh(l)?!0:(t.append(Km(u,o,m),h(l)),!1)}const a=[],c=Object.assign(WS,{defaultVisitor:p,convertValue:h,isVisitable:sh});function s(l,o){if(!he.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),he.forEach(l,function(u,g){(!(he.isUndefined(u)||u===null)&&f.call(t,u,he.isString(g)?g.trim():g,o,c))===!0&&s(u,o?o.concat(g):[g])}),a.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Qm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ah(n,t){this._pairs=[],n&&ll(n,this,t)}const Zm=ah.prototype;Zm.append=function(n,t){this._pairs.push([n,t])},Zm.toString=function(n){const t=n?function(e){return n.call(this,e,Qm)}:Qm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function PS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jm(n,t,e){if(!t)return n;const r=e&&e.encode||PS;he.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let m;if(f?m=f(t,e):m=he.isURLSearchParams(t)?t.toString():new ah(t,e).toString(r),m){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+m}return n}let Xm=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ey={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HS=typeof URLSearchParams<"u"?URLSearchParams:ah,zS=typeof FormData<"u"?FormData:null,jS=typeof Blob<"u"?Blob:null,BS={isBrowser:!0,classes:{URLSearchParams:HS,FormData:zS,Blob:jS},protocols:["http","https","file","blob","url","data"]},lh=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,US=lh&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),VS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qS=lh&&window.location.href||"http://localhost",GS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lh,hasStandardBrowserEnv:US,hasStandardBrowserWebWorkerEnv:VS,navigator:ch,origin:qS},Symbol.toStringTag,{value:"Module"})),Mn={...GS,...BS};function YS(n,t){return ll(n,new Mn.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,m){return Mn.isNode&&he.isBuffer(e)?(this.append(r,e.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},t))}function KS(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QS(n){const t={},e=Object.keys(n);let r;const f=e.length;let m;for(r=0;r<f;r++)m=e[r],t[m]=n[m];return t}function ty(n){function t(e,r,f,m){let y=e[m++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=m>=e.length;return y=!y&&he.isArray(f)?f.length:y,h?(he.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!he.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],m)&&he.isArray(f[y])&&(f[y]=QS(f[y])),!v)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(r,f)=>{t(KS(r),f,e,0)}),e}return null}function ZS(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Fs={transitional:ey,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=he.isObject(n);if(f&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(ty(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let m;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return YS(n,this.formSerializer).toString();if((m=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return ll(m?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),ZS(n)):n}],transformResponse:[function(n){const t=this.transitional||Fs.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(m){if(f)throw m.name==="SyntaxError"?Je.from(m,Je.ERR_BAD_RESPONSE,this,null,this.response):m}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mn.classes.FormData,Blob:Mn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Fs.headers[n]={}});const JS=he.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"]),XS=n=>{const t={};let e,r,f;return n&&n.split(`
|
1409
|
+
`).forEach(function(m){f=m.indexOf(":"),e=m.substring(0,f).trim().toLowerCase(),r=m.substring(f+1).trim(),!(!e||t[e]&&JS[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},ny=Symbol("internals");function Ws(n){return n&&String(n).trim().toLowerCase()}function cl(n){return n===!1||n==null?n:he.isArray(n)?n.map(cl):String(n)}function e$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const t$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function uh(n,t,e,r,f){if(he.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!he.isString(t)){if(he.isString(r))return t.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(t)}}function n$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function r$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,m,y){return this[r].call(this,t,f,m,y)},configurable:!0})})}let Yn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function m(v,h,p){const a=Ws(h);if(!a)throw new Error("header name must be a non-empty string");const c=he.findKey(f,a);(!c||f[c]===void 0||p===!0||p===void 0&&f[c]!==!1)&&(f[c||h]=cl(v))}const y=(v,h)=>he.forEach(v,(p,a)=>m(p,a,h));if(he.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(he.isString(t)&&(t=t.trim())&&!t$(t))y(XS(t),e);else if(he.isHeaders(t))for(const[v,h]of t.entries())m(h,v,r);else t!=null&&m(e,t,r);return this}get(t,e){if(t=Ws(t),t){const r=he.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return e$(f);if(he.isFunction(e))return e.call(this,f,r);if(he.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ws(t),t){const r=he.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||uh(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function m(y){if(y=Ws(y),y){const v=he.findKey(r,y);v&&(!e||uh(r,r[v],v,e))&&(delete r[v],f=!0)}}return he.isArray(t)?t.forEach(m):m(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const m=e[r];(!t||uh(this,this[m],m,t,!0))&&(delete this[m],f=!0)}return f}normalize(t){const e=this,r={};return he.forEach(this,(f,m)=>{const y=he.findKey(r,m);if(y){e[y]=cl(f),delete e[m];return}const v=t?n$(m):String(m).trim();v!==m&&delete e[m],e[v]=cl(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&he.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
1410
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[ny]=this[ny]={accessors:{}}).accessors,r=this.prototype;function f(m){const y=Ws(m);e[y]||(r$(r,m),e[y]=!0)}return he.isArray(t)?t.forEach(f):f(t),this}};Yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Yn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),he.freezeMethods(Yn);function hh(n,t){const e=this||Fs,r=t||e,f=Yn.from(r.headers);let m=r.data;return he.forEach(n,function(y){m=y.call(e,m,f.normalize(),t?t.status:void 0)}),f.normalize(),m}function ry(n){return!!(n&&n.__CANCEL__)}function Vo(n,t,e){Je.call(this,n??"canceled",Je.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Vo,Je,{__CANCEL__:!0});function iy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Je("Request failed with status code "+e.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function i$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function o$(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,m=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),p=r[m];y||(y=h),e[f]=v,r[f]=h;let a=m,c=0;for(;a!==f;)c+=e[a++],a=a%n;if(f=(f+1)%n,f===m&&(m=(m+1)%n),h-y<t)return;const s=p&&h-p;return s?Math.round(c*1e3/s):void 0}}function s$(n,t){let e=0,r=1e3/t,f,m;const y=(v,h=Date.now())=>{e=h,f=null,m&&(clearTimeout(m),m=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),p=h-e;p>=r?y(v,h):(f=v,m||(m=setTimeout(()=>{m=null,y(f)},r-p)))},()=>f&&y(f)]}const ul=(n,t,e=3)=>{let r=0;const f=o$(50,250);return s$(m=>{const y=m.loaded,v=m.lengthComputable?m.total:void 0,h=y-r,p=f(h),a=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:p||void 0,estimated:p&&v&&a?(v-y)/p:void 0,event:m,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},oy=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},sy=n=>(...t)=>he.asap(()=>n(...t)),a$=Mn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Mn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Mn.origin),Mn.navigator&&/(msie|trident)/i.test(Mn.navigator.userAgent)):()=>!0,l$=Mn.hasStandardBrowserEnv?{write(n,t,e,r,f,m){const y=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),he.isString(r)&&y.push("path="+r),he.isString(f)&&y.push("domain="+f),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function c$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function u$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ay(n,t){return n&&!c$(t)?u$(n,t):t}const ly=n=>n instanceof Yn?{...n}:n;function so(n,t){t=t||{};const e={};function r(p,a,c,s){return he.isPlainObject(p)&&he.isPlainObject(a)?he.merge.call({caseless:s},p,a):he.isPlainObject(a)?he.merge({},a):he.isArray(a)?a.slice():a}function f(p,a,c,s){if(he.isUndefined(a)){if(!he.isUndefined(p))return r(void 0,p,c,s)}else return r(p,a,c,s)}function m(p,a){if(!he.isUndefined(a))return r(void 0,a)}function y(p,a){if(he.isUndefined(a)){if(!he.isUndefined(p))return r(void 0,p)}else return r(void 0,a)}function v(p,a,c){if(c in t)return r(p,a);if(c in n)return r(void 0,p)}const h={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(p,a,c)=>f(ly(p),ly(a),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(p){const a=h[p]||f,c=a(n[p],t[p],p);he.isUndefined(c)&&a!==v||(e[p]=c)}),e}const cy=n=>{const t=so({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:m,headers:y,auth:v}=t;t.headers=y=Yn.from(y),t.url=Jm(ay(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(he.isFormData(e)){if(Mn.hasStandardBrowserEnv||Mn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[p,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...a].join("; "))}}if(Mn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||r!==!1&&a$(t.url))){const p=f&&m&&l$.read(m);p&&y.set(f,p)}return t},h$=typeof XMLHttpRequest<"u",d$=h$&&function(n){return new Promise(function(t,e){const r=cy(n);let f=r.data;const m=Yn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,p,a,c,s,l;function o(){s&&s(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function g(){if(!u)return;const x=Yn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),M={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};iy(function(C){t(C),o()},function(C){e(C),o()},M),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new Je("Request aborted",Je.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Je("Network Error",Je.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||ey;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new Je(x,M.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,n,u)),u=null},f===void 0&&m.setContentType(null),"setRequestHeader"in u&&he.forEach(m.toJSON(),function(x,M){u.setRequestHeader(M,x)}),he.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=ul(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([a,s]=ul(v),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(p=x=>{u&&(e(!x||x.type?new Vo(null,n,u):x),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const w=i$(r.url);if(w&&Mn.protocols.indexOf(w)===-1){e(new Je("Unsupported protocol "+w+":",Je.ERR_BAD_REQUEST,n));return}u.send(f||null)})},f$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const m=function(p){if(!f){f=!0,v();const a=p instanceof Error?p:this.reason;r.abort(a instanceof Je?a:new Vo(a instanceof Error?a.message:a))}};let y=t&&setTimeout(()=>{y=null,m(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(m):p.removeEventListener("abort",m)}),n=null)};n.forEach(p=>p.addEventListener("abort",m));const{signal:h}=r;return h.unsubscribe=()=>he.asap(v),h}},p$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},g$=async function*(n,t){for await(const e of m$(n))yield*p$(e,t)},m$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},uy=(n,t,e,r)=>{const f=g$(n,t);let m=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:a}=await f.next();if(p){v(),h.close();return}let c=a.byteLength;if(e){let s=m+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(p){throw v(p),p}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},hl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hy=hl&&typeof ReadableStream=="function",y$=hl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),dy=(n,...t)=>{try{return!!n(...t)}catch{return!1}},w$=hy&&dy(()=>{let n=!1;const t=new Request(Mn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),fy=64*1024,dh=hy&&dy(()=>he.isReadableStream(new Response("").body)),dl={stream:dh&&(n=>n.body)};hl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dl[t]&&(dl[t]=he.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const v$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Mn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await y$(n)).byteLength},b$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??v$(t),x$=hl&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:m,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:p,headers:a,withCredentials:c="same-origin",fetchOptions:s}=cy(n);p=p?(p+"").toLowerCase():"text";let l=f$([f,m&&m.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let g;try{if(h&&w$&&e!=="get"&&e!=="head"&&(g=await b$(a,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(he.isFormData(r)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,R]=oy(g,ul(sy(h)));r=uy(k.body,fy,T,R)}}he.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let x=await fetch(o);const M=dh&&(p==="stream"||p==="response");if(dh&&(v||M&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=he.toFiniteNumber(x.headers.get("content-length")),[T,R]=v&&oy(b,ul(sy(v),!0))||[];x=new Response(uy(x.body,fy,T,()=>{R&&R(),u&&u()}),k)}p=p||"text";let C=await dl[he.findKey(dl,p)||"text"](x,n);return!M&&u&&u(),await new Promise((k,b)=>{iy(k,b,{data:C,headers:Yn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,n,o),{cause:w.cause||w}):Je.from(w,w&&w.code,n,o)}}),fh={http:NS,xhr:d$,fetch:x$};he.forEach(fh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const py=n=>`- ${n}`,_$=n=>he.isFunction(n)||n===null||n===!1,gy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let m=0;m<t;m++){e=n[m];let y;if(r=e,!_$(e)&&(r=fh[(y=String(e)).toLowerCase()],r===void 0))throw new Je(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+m]=r}if(!r){const m=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?m.length>1?`since :
|
1411
|
+
`+m.map(py).join(`
|
1412
|
+
`):" "+py(m[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:fh};function ph(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Vo(null,n)}function my(n){return ph(n),n.headers=Yn.from(n.headers),n.data=hh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),gy.getAdapter(n.adapter||Fs.adapter)(n).then(function(t){return ph(n),t.data=hh.call(n,n.transformResponse,t),t.headers=Yn.from(t.headers),t},function(t){return ry(t)||(ph(n),t&&t.response&&(t.response.data=hh.call(n,n.transformResponse,t.response),t.response.headers=Yn.from(t.response.headers))),Promise.reject(t)})}const yy="1.7.9",fl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{fl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const wy={};fl.transitional=function(n,t,e){function r(f,m){return"[Axios v"+yy+"] Transitional option '"+f+"'"+m+(e?". "+e:"")}return(f,m,y)=>{if(n===!1)throw new Je(r(m," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!wy[m]&&(wy[m]=!0,console.warn(r(m," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,m,y):!0}},fl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function k$(n,t,e){if(typeof n!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const m=r[f],y=t[m];if(y){const v=n[m],h=v===void 0||y(v,m,n);if(h!==!0)throw new Je("option "+m+" must be "+h,Je.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Je("Unknown option "+m,Je.ERR_BAD_OPTION)}}const pl={assertOptions:k$,validators:fl},Pr=pl.validators;let ao=class{constructor(t){this.defaults=t,this.interceptors={request:new Xm,response:new Xm}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const m=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?m&&!String(r.stack).endsWith(m.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1413
|
+
`+m):r.stack=m}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=so(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:m}=e;r!==void 0&&pl.assertOptions(r,{silentJSONParsing:Pr.transitional(Pr.boolean),forcedJSONParsing:Pr.transitional(Pr.boolean),clarifyTimeoutError:Pr.transitional(Pr.boolean)},!1),f!=null&&(he.isFunction(f)?e.paramsSerializer={serialize:f}:pl.assertOptions(f,{encode:Pr.function,serialize:Pr.function},!0)),pl.assertOptions(e,{baseUrl:Pr.spelling("baseURL"),withXsrfToken:Pr.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let y=m&&he.merge(m.common,m[e.method]);m&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete m[o]}),e.headers=Yn.concat(y,m);const v=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const p=[];this.interceptors.response.forEach(function(o){p.push(o.fulfilled,o.rejected)});let a,c=0,s;if(!h){const o=[my.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,p),s=o.length,a=Promise.resolve(e);c<s;)a=a.then(o[c++],o[c++]);return a}s=v.length;let l=e;for(c=0;c<s;){const o=v[c++],u=v[c++];try{l=o(l)}catch(g){u.call(this,g);break}}try{a=my.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,s=p.length;c<s;)a=a.then(p[c++],p[c++]);return a}getUri(t){t=so(this.defaults,t);const e=ay(t.baseURL,t.url);return Jm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){ao.prototype[n]=function(t,e){return this.request(so(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,m){return this.request(so(m||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}ao.prototype[n]=t(),ao.prototype[n+"Form"]=t(!0)});let S$=class jv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let m=r._listeners.length;for(;m-- >0;)r._listeners[m](f);r._listeners=null}),this.promise.then=f=>{let m;const y=new Promise(v=>{r.subscribe(v),m=v}).then(f);return y.cancel=function(){r.unsubscribe(m)},y},t(function(f,m,y){r.reason||(r.reason=new Vo(f,m,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new jv(function(e){t=e}),cancel:t}}};function $$(n){return function(t){return n.apply(null,t)}}function A$(n){return he.isObject(n)&&n.isAxiosError===!0}const gh={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};Object.entries(gh).forEach(([n,t])=>{gh[t]=n});function vy(n){const t=new ao(n),e=Nm(ao.prototype.request,t);return he.extend(e,ao.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return vy(so(n,r))},e}const ln=Pn("E",vy(Fs));ln.Axios=ao,ln.CanceledError=Vo,ln.CancelToken=S$,ln.isCancel=ry,ln.VERSION=yy,ln.toFormData=ll,ln.AxiosError=Je,ln.Cancel=ln.CanceledError,ln.all=function(n){return Promise.all(n)},ln.spread=$$,ln.isAxiosError=A$,ln.mergeConfig=so,ln.AxiosHeaders=Yn,ln.formToJSON=n=>ty(he.isHTMLForm(n)?new FormData(n):n),ln.getAdapter=gy.getAdapter,ln.HttpStatusCode=gh,ln.default=ln;const{Axios:IO,AxiosError:OO,CanceledError:DO,isCancel:NO,CancelToken:FO,VERSION:WO,all:PO,Cancel:HO,isAxiosError:zO,spread:jO,toFormData:BO,AxiosHeaders:UO,HttpStatusCode:VO,formToJSON:qO,getAdapter:GO,mergeConfig:YO}=ln;function by(){return Object.assign({},Ao())}function C$(n,t,e){const r=Wt(n,void 0);return r.setTime(r.getTime()+t*Aa),r}function T$(n,t){const e=()=>sn(void 0,NaN),r=L$(n);let f;if(r.date){const h=I$(r.date,2);f=O$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const m=+f;let y=0,v;if(r.time&&(y=D$(r.time),isNaN(y)))return e();if(r.timezone){if(v=N$(r.timezone),isNaN(v))return e()}else{const h=new Date(m+y),p=Wt(0,void 0);return p.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),p.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),p}return Wt(m+y+v,void 0)}const gl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},E$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,R$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,M$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function L$(n){const t={},e=n.split(gl.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],gl.timeZoneDelimiter.test(t.date)&&(t.date=n.split(gl.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=gl.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function I$(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,m=r[2]?parseInt(r[2]):null;return{year:m===null?f:m*100,restDateString:n.slice((r[1]||r[2]).length)}}function O$(n,t){if(t===null)return new Date(NaN);const e=n.match(E$);if(!e)return new Date(NaN);const r=!!e[4],f=Ps(e[1]),m=Ps(e[2])-1,y=Ps(e[3]),v=Ps(e[4]),h=Ps(e[5])-1;if(r)return z$(t,v,h)?F$(t,v,h):new Date(NaN);{const p=new Date(0);return!P$(t,m,y)||!H$(t,f)?new Date(NaN):(p.setUTCFullYear(t,m,Math.max(f,y)),p)}}function Ps(n){return n?parseInt(n):1}function D$(n){const t=n.match(R$);if(!t)return NaN;const e=mh(t[1]),r=mh(t[2]),f=mh(t[3]);return j$(e,r,f)?e*$c+r*Aa+f*1e3:NaN}function mh(n){return n&&parseFloat(n.replace(",","."))||0}function N$(n){if(n==="Z")return 0;const t=n.match(M$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return B$(r,f)?e*(r*$c+f*Aa):NaN}function F$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,m=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+m),r}const W$=[31,null,31,30,31,30,31,31,30,31,30,31];function xy(n){return n%400===0||n%4===0&&n%100!==0}function P$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(W$[t]||(xy(n)?29:28))}function H$(n,t){return t>=1&&t<=(xy(n)?366:365)}function z$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function j$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function B$(n,t){return t>=0&&t<=59}function U$(n,t,e){return C$(n,-t)}function _y(n,t,e){const r=by(),f=G$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?V$(f,t):q$(f,t)}function V$(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function q$(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function G$(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function Y$(n,t){const e=X$(t);return"formatToParts"in e?Q$(e,n):Z$(e,n)}const K$={year:0,month:1,day:2,hour:3,minute:4,second:5};function Q$(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const m=K$[e[f].type];m!==void 0&&(r[m]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function Z$(n,t){const e=n.format(t),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 yh={},ky=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")),J$=ky==="06/25/2014, 00:00:00"||ky==="06/25/2014 00:00:00";function X$(n){return yh[n]||(yh[n]=J$?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),yh[n]}function Sy(n,t,e,r,f,m,y){const v=new Date(0);return v.setUTCFullYear(n,t,e),v.setUTCHours(r,f,m,y),v}const $y=36e5,eA=6e4,wh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function vh(n,t,e){if(!n)return 0;let r=wh.timezoneZ.exec(n);if(r)return 0;let f,m;if(r=wh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Ay(f)?-(f*$y):NaN;if(r=wh.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const y=parseInt(r[3],10);return Ay(f,y)?(m=Math.abs(f)*$y+y*eA,r[1]==="+"?-m:m):NaN}if(rA(n)){t=new Date(t||Date.now());const y=e?t:tA(t),v=bh(y,n);return-(e?v:nA(t,v,n))}return NaN}function tA(n){return Sy(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function bh(n,t){const e=Y$(n,t),r=Sy(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const m=f%1e3;return f-=m>=0?m:1e3+m,r-f}function nA(n,t,e){let r=n.getTime()-t;const f=bh(new Date(r),e);if(t===f)return t;r-=f-t;const m=bh(new Date(r),e);return f===m?f:Math.max(f,m)}function Ay(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Cy={};function rA(n){if(Cy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Cy[n]=!0,!0}catch{return!1}}const iA=60*1e3,oA={X:function(n,t,e){const r=xh(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ty(r);case"XXXX":case"XX":return qo(r);case"XXXXX":case"XXX":default:return qo(r,":")}},x:function(n,t,e){const r=xh(e.timeZone,n);switch(t){case"x":return Ty(r);case"xxxx":case"xx":return qo(r);case"xxxxx":case"xxx":default:return qo(r,":")}},O:function(n,t,e){const r=xh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+sA(r,":");case"OOOO":default:return"GMT"+qo(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return _y("short",n,e);case"zzzz":default:return _y("long",n,e)}}};function xh(n,t){const e=n?vh(n,t,!0)/iA:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function ml(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function qo(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=ml(Math.floor(r/60),2),m=ml(Math.floor(r%60),2);return e+f+t+m}function Ty(n,t){return n%60===0?(n>0?"-":"+")+ml(Math.abs(n)/60,2):qo(n,t)}function sA(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),m=r%60;return m===0?e+String(f):e+String(f)+t+ml(m,2)}function Ey(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const aA=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_h=36e5,Ry=6e4,lA=2,zn={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:aA};function My(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?lA:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=cA(n),{year:f,restDateString:m}=uA(r.date,e),y=hA(m,f);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const v=y.getTime();let h=0,p;if(r.time&&(h=dA(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(p=vh(r.timeZone||t.timeZone,new Date(v+h)),isNaN(p))return new Date(NaN)}else p=Ey(new Date(v+h)),p=Ey(new Date(v+h+p));return new Date(v+h+p)}else return new Date(NaN)}function cA(n){const t={};let e=zn.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=zn.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=zn.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function uA(n,t){if(n){const e=zn.YYY[t],r=zn.YYYYY[t];let f=zn.YYYY.exec(n)||r.exec(n);if(f){const m=f[1];return{year:parseInt(m,10),restDateString:n.slice(m.length)}}if(f=zn.YY.exec(n)||e.exec(n),f){const m=f[1];return{year:parseInt(m,10)*100,restDateString:n.slice(m.length)}}}return{year:null}}function hA(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let m=zn.MM.exec(n);if(m)return e=new Date(0),r=parseInt(m[1],10)-1,Oy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(m=zn.DDD.exec(n),m){e=new Date(0);const y=parseInt(m[1],10);return gA(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(m=zn.MMDD.exec(n),m){e=new Date(0),r=parseInt(m[1],10)-1;const y=parseInt(m[2],10);return Oy(t,r,y)?(e.setUTCFullYear(t,r,y),e):new Date(NaN)}if(m=zn.Www.exec(n),m)return f=parseInt(m[1],10)-1,Dy(f)?Ly(t,f):new Date(NaN);if(m=zn.WwwD.exec(n),m){f=parseInt(m[1],10)-1;const y=parseInt(m[2],10)-1;return Dy(f,y)?Ly(t,f,y):new Date(NaN)}return null}function dA(n){let t,e,r=zn.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),kh(t)?t%24*_h:NaN;if(r=zn.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),kh(t,e)?t%24*_h+e*Ry:NaN;if(r=zn.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return kh(t,e,f)?t%24*_h+e*Ry+f*1e3:NaN}return null}function Ly(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,m=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+m),r}const fA=[31,28,31,30,31,30,31,31,30,31,30,31],pA=[31,29,31,30,31,30,31,31,30,31,30,31];function Iy(n){return n%400===0||n%4===0&&n%100!==0}function Oy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Iy(n);if(r&&e>pA[t]||!r&&e>fA[t])return!1}return!0}function gA(n,t){if(t<1)return!1;const e=Iy(n);return!(e&&t>366||!e&&t>365)}function Dy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function kh(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const mA=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function yA(n,t,e={}){t=String(t);const r=t.match(mA);if(r){const f=My(e.originalDate||n,e);t=r.reduce(function(m,y){if(y[0]==="'")return m;const v=m.indexOf(y),h=m[v-1]==="'",p=m.replace(y,"'"+oA[y[0]](f,y,e)+"'");return h?p.substring(0,v-1)+p.substring(v+1):p},t)}return Eo(n,t,e)}function wA(n,t,e){n=My(n,e);const r=vh(t,n,!0),f=new Date(n.getTime()-r),m=new Date(0);return m.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),m.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),m}function Sh(n,t,e,r){return r={...r,timeZone:t,originalDate:n},yA(wA(n,t,{timeZone:r.timeZone}),e,r)}const $h="yyyy-MM-dd",Ny="HH:mm:ss.SSS",vA="HH:mm:ss",yl=`${$h} ${Ny}`,KO=Pn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Eo(!t||t==="local"?U$(n,n.getTimezoneOffset()):n,yl)},formatDateTime(n,t){return!t||t==="local"?Eo(n,yl):Sh(n,t,yl)},formatDate:function(n,t){return!t||t==="local"?Eo(n,$h):Sh(n,this.timeZone,$h)},formatTime:function(n,t,e=Ny){return!t||t==="local"?Eo(n,e):Sh(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,vA)},formatTimestamp(n,t){return this.formatDateTime(T$(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var bA=Object.defineProperty,xA=(n,t,e)=>t in n?bA(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Te=(n,t,e)=>xA(n,typeof t!="symbol"?t+"":t,e);function Ah(n,t,e){const r=Wt(n,e==null?void 0:e.in);return isNaN(t)?sn((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function _A(n,t){const e=Wt(n,void 0).getDay();return e===0?7:e}function kA(n,t){const e=SA(t)?new t(0):sn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function SA(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const $A=10;class Fy{constructor(){Te(this,"subPriority",0)}validate(t,e){return!0}}class AA extends Fy{constructor(t,e,r,f,m){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,m&&(this.subPriority=m)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class CA extends Fy{constructor(t,e){super(),Te(this,"priority",$A),Te(this,"subPriority",-1),this.context=t||(r=>sn(e,r))}set(t,e){return e.timestampIsSet?t:sn(t,kA(t,this.context))}}class wt{run(t,e,r,f){const m=this.parse(t,e,r,f);return m?{setter:new AA(m.value,this.validate,this.set,this.priority,this.subPriority),rest:m.rest}:null}validate(t,e,r){return!0}}class TA extends wt{constructor(){super(...arguments),Te(this,"priority",140),Te(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const en={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Hr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function tn(n,t){return n&&{value:t(n.value),rest:n.rest}}function jt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function zr(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,m=e[3]?parseInt(e[3],10):0,y=e[5]?parseInt(e[5],10):0;return{value:r*(f*$c+m*Aa+y*eb),rest:t.slice(e[0].length)}}function Wy(n){return jt(en.anyDigitsSigned,n)}function Yt(n,t){switch(n){case 1:return jt(en.singleDigit,t);case 2:return jt(en.twoDigits,t);case 3:return jt(en.threeDigits,t);case 4:return jt(en.fourDigits,t);default:return jt(new RegExp("^\\d{1,"+n+"}"),t)}}function Py(n,t){switch(n){case 1:return jt(en.singleDigitSigned,t);case 2:return jt(en.twoDigitsSigned,t);case 3:return jt(en.threeDigitsSigned,t);case 4:return jt(en.fourDigitsSigned,t);default:return jt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Ch(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Hy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const m=r+50,y=Math.trunc(m/100)*100,v=n>=m%100;f=n+y-(v?100:0)}return e?f:1-f}function zy(n){return n%400===0||n%4===0&&n%100!==0}class EA extends wt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=m=>({year:m,isTwoDigitYear:e==="yy"});switch(e){case"y":return tn(Yt(4,t),f);case"yo":return tn(r.ordinalNumber(t,{unit:"year"}),f);default:return tn(Yt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const y=Hy(r.year,f);return t.setFullYear(y,0,1),t.setHours(0,0,0,0),t}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}}class RA extends wt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=m=>({year:m,isTwoDigitYear:e==="YY"});switch(e){case"Y":return tn(Yt(4,t),f);case"Yo":return tn(r.ordinalNumber(t,{unit:"year"}),f);default:return tn(Yt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const m=Cc(t,f);if(r.isTwoDigitYear){const v=Hy(r.year,m);return t.setFullYear(v,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),bi(t,f)}const y=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(y,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),bi(t,f)}}class MA extends wt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Py(e==="R"?4:e.length,t)}set(t,e,r){const f=sn(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Co(f)}}class LA extends wt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Py(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class IA extends wt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Yt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}let OA=class extends wt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Yt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}};class DA extends wt{constructor(){super(...arguments),Te(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Te(this,"priority",110)}parse(t,e,r){const f=m=>m-1;switch(e){case"M":return tn(jt(en.month,t),f);case"MM":return tn(Yt(2,t),f);case"Mo":return tn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class NA extends wt{constructor(){super(...arguments),Te(this,"priority",110),Te(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=m=>m-1;switch(e){case"L":return tn(jt(en.month,t),f);case"LL":return tn(Yt(2,t),f);case"Lo":return tn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}function FA(n,t,e){const r=Wt(n,e==null?void 0:e.in),f=cf(r,e)-t;return r.setDate(r.getDate()-f*7),Wt(r,e==null?void 0:e.in)}class WA extends wt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return jt(en.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Yt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return bi(FA(t,r,f),f)}}function PA(n,t,e){const r=Wt(n,void 0),f=lf(r)-t;return r.setDate(r.getDate()-f*7),r}class HA extends wt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return jt(en.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Yt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Co(PA(t,r))}}const zA=[31,28,31,30,31,30,31,31,30,31,30,31],jA=[31,29,31,30,31,30,31,31,30,31,30,31];class BA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subPriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return jt(en.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Yt(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=zy(r),m=t.getMonth();return f?e>=1&&e<=jA[m]:e>=1&&e<=zA[m]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class UA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subpriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return jt(en.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Yt(e.length,t)}}validate(t,e){const r=t.getFullYear();return zy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}}function Th(n,t,e){var r,f,m,y;const v=Ao(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??v.weekStartsOn??((y=(m=v.locale)==null?void 0:m.options)==null?void 0:y.weekStartsOn)??0,p=Wt(n,e==null?void 0:e.in),a=p.getDay(),c=(t%7+7)%7,s=7-h,l=t<0||t>6?t-(a+s)%7:(c+s)%7-(a+s)%7;return Ah(p,l,e)}class VA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Th(t,r,f),t.setHours(0,0,0,0),t}}class qA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const m=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"e":case"ee":return tn(Yt(e.length,t),m);case"eo":return tn(r.ordinalNumber(t,{unit:"day"}),m);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Th(t,r,f),t.setHours(0,0,0,0),t}}class GA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const m=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"c":case"cc":return tn(Yt(e.length,t),m);case"co":return tn(r.ordinalNumber(t,{unit:"day"}),m);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Th(t,r,f),t.setHours(0,0,0,0),t}}function YA(n,t,e){const r=Wt(n,void 0),f=_A(r),m=t-f;return Ah(r,m,e)}class KA extends wt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=m=>m===0?7:m;switch(e){case"i":case"ii":return Yt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return tn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return tn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return tn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return tn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=YA(t,r),t.setHours(0,0,0,0),t}}class QA extends wt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Ch(r),0,0,0),t}}class ZA extends wt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Ch(r),0,0,0),t}}class JA extends wt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Ch(r),0,0,0),t}}class XA extends wt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return jt(en.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Yt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class eC extends wt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return jt(en.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Yt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class tC extends wt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return jt(en.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Yt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class nC extends wt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return jt(en.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Yt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class rC extends wt{constructor(){super(...arguments),Te(this,"priority",60),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return jt(en.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Yt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class iC extends wt{constructor(){super(...arguments),Te(this,"priority",50),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return jt(en.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Yt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class oC extends wt{constructor(){super(...arguments),Te(this,"priority",30),Te(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return tn(Yt(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class sC extends wt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return zr(Hr.basicOptionalMinutes,t);case"XX":return zr(Hr.basic,t);case"XXXX":return zr(Hr.basicOptionalSeconds,t);case"XXXXX":return zr(Hr.extendedOptionalSeconds,t);case"XXX":default:return zr(Hr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:sn(t,t.getTime()-Ca(t)-r)}}class aC extends wt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return zr(Hr.basicOptionalMinutes,t);case"xx":return zr(Hr.basic,t);case"xxxx":return zr(Hr.basicOptionalSeconds,t);case"xxxxx":return zr(Hr.extendedOptionalSeconds,t);case"xxx":default:return zr(Hr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:sn(t,t.getTime()-Ca(t)-r)}}class lC extends wt{constructor(){super(...arguments),Te(this,"priority",40),Te(this,"incompatibleTokens","*")}parse(t){return Wy(t)}set(t,e,r){return[sn(t,r*1e3),{timestampIsSet:!0}]}}class cC extends wt{constructor(){super(...arguments),Te(this,"priority",20),Te(this,"incompatibleTokens","*")}parse(t){return Wy(t)}set(t,e,r){return[sn(t,r),{timestampIsSet:!0}]}}const uC={G:new TA,y:new EA,Y:new RA,R:new MA,u:new LA,Q:new IA,q:new OA,M:new DA,L:new NA,w:new WA,I:new HA,d:new BA,D:new UA,E:new VA,e:new qA,c:new GA,i:new KA,a:new QA,b:new ZA,B:new JA,h:new XA,H:new eC,K:new tC,k:new nC,m:new rC,s:new iC,S:new oC,X:new sC,x:new aC,t:new lC,T:new cC},hC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fC=/^'([^]*?)'?$/,pC=/''/g,gC=/\S/,mC=/[a-zA-Z]/;function yC(n,t,e,r){var f,m,y,v;const h=()=>sn(e,NaN),p=by(),a=p.locale??af,c=p.firstWeekContainsDate??((m=(f=p.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,s=p.weekStartsOn??((v=(y=p.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0;if(!t)return n?h():Wt(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:s,locale:a},o=[new CA(void 0,e)],u=t.match(dC).map(C=>{const k=C[0];if(k in Tc){const b=Tc[k];return b(C,a.formatLong)}return C}).join("").match(hC),g=[];for(let C of u){mf(C)&&Ec(C,t,n),gf(C)&&Ec(C,t,n);const k=C[0],b=uC[k];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const I=g.find(E=>T.includes(E.token)||E.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${C}\` at the same time`)}else if(b.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);g.push({token:k,fullToken:C});const R=b.run(n,C,a.match,l);if(!R)return h();o.push(R.setter),n=R.rest}else{if(k.match(mC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(C==="''"?C="'":k==="'"&&(C=wC(C)),n.indexOf(C)===0)n=n.slice(C.length);else return h()}}if(n.length>0&&gC.test(n))return h();const w=o.map(C=>C.priority).sort((C,k)=>k-C).filter((C,k,b)=>b.indexOf(C)===k).map(C=>o.filter(k=>k.priority===C).sort((k,b)=>b.subPriority-k.subPriority)).map(C=>C[0]);let x=Wt(e,void 0);if(isNaN(+x))return h();const M={};for(const C of w){if(!C.validate(x,l))return h();const k=C.set(x,M,l);Array.isArray(k)?(x=k[0],Object.assign(M,k[1])):x=k}return x}function wC(n){return n.match(fC)[1].replace(pC,"'")}const vC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function bC(n,t,e,r,f,m){const y=Gt("rux-icon");return Hn(),yi(y,{size:e.size,icon:e.icon,style:ms(m.colorStyle)},null,8,["size","icon","style"])}const xC=ws(vC,[["render",bC],["__scopeId","data-v-9af48e85"]]),_C="/icons/status-dark.png",kC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return _C},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=CC.indexOf(jy[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function SC(n,t,e,r,f,m){return Hn(),wi("div",{style:ms(m.iconStyle)},null,4)}const $C=ws(kC,[["render",SC]]),jy={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"},Eh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},AC=function(n){const t="#000000",e="#ffffff",r=Eh[jy[n]];if(r){const f=+`0x${r.slice(1,3)}`,m=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((f*299+m*587+y*114)/1e3>128)return t}return e},CC=Object.keys(Eh),TC={astro:{component:n=>gs(xC,{...n})},"astro-status":{component:n=>gs($C,{...n,status:n.icon})}},By="single-spa:app-change",EC={data(){return{show:!1}},created(){window.addEventListener(By,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=Zd().length===0},150)},unmounted(){window.removeEventListener(By,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},RC={class:"mx-1"};function MC(n,t,e,r,f,m){const y=Gt("v-card-title"),v=Gt("v-card-text"),h=Gt("v-card");return f.show?(Hn(),yi(h,{key:0},{default:kn(()=>[Ct(y,null,{default:kn(()=>t[0]||(t[0]=[Nr(" 404 Not Found ")])),_:1}),Ct(v,{class:"d-flex align-center mt-3"},{default:kn(()=>[t[1]||(t[1]=Nr(" The requested URL ")),ys("code",RC,$r(n.$route.fullPath),1),t[2]||(t[2]=Nr(" was not routable. ")),t[3]||(t[3]=ys("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):vi("",!0)}const Uy=[{path:"/",name:"Iframe",component:()=>Ie(()=>Le.import("./Iframe-de485ff376c64491a8c2.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:ws(EC,[["render",MC]])}];Uy.forEach(tf);const LC=Kd({history:Qd(),routes:Uy}),IC={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"}},OC={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:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},DC=["innerHTML"],NC={key:2},FC={key:3,class:"validate mt-4"};function WC(n,t,e,r,f,m){const y=Gt("v-spacer"),v=Gt("v-toolbar"),h=Gt("v-icon"),p=Gt("v-text-field"),a=Gt("v-card-text"),c=Gt("v-btn"),s=Gt("v-card-actions"),l=Gt("v-card"),o=Gt("v-dialog"),u=Gt("v-app");return Hn(),yi(u,null,{default:kn(()=>[Ct(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=g=>n.show=g),width:"600"},{default:kn(()=>[Ct(l,null,{default:kn(()=>[Ct(v,{height:"24"},{default:kn(()=>[Ct(y),ys("span",null,$r(n.params.title),1),Ct(y)]),_:1}),Ct(a,{class:"mt-4 pa-3"},{default:kn(()=>[n.params.validateText?(Hn(),yi(h,{key:0,class:"mr-2"},{default:kn(()=>t[2]||(t[2]=[Nr(" mdi-alert ")])),_:1})):vi("",!0),n.params.html?(Hn(),wi("span",{key:1,innerHTML:n.params.text},null,8,DC)):(Hn(),wi("span",NC,$r(n.params.text),1)),n.params.validateText?(Hn(),wi("div",FC,[Nr(" Enter "+$r(n.params.validateText)+" to confirm! ",1),Ct(p,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=g=>n.validationText=g),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):vi("",!0)]),_:1}),Ct(s,{class:"px-2"},{default:kn(()=>[Ct(y),n.params.cancelText?(Hn(),yi(c,{key:0,variant:"outlined","data-test":m.dataTestCancel,onClick:m.cancel},{default:kn(()=>[Nr($r(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):vi("",!0),Ct(c,{variant:"flat",color:n.params.okClass,"data-test":m.dataTestOk,onClick:m.ok},{default:kn(()=>[Nr($r(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const PC=ws(OC,[["render",WC],["__scopeId","data-v-581c0293"]]);class HC{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(PC);t.use(Mh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:r,okClass:f,validateText:m,cancelText:y,html:v}){return this.mount(),new Promise((h,p)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:m,cancelText:y,html:v},h,p)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:r,cancelText:f,html:!1})}}const zC={install(n,t){const e=new HC;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},jC={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(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1414
|
+
--toast-bg-color:${Eh[this.toastNotification.level]};
|
1415
|
+
--toast-fg-color:${AC(this.toastNotification.level)};
|
1416
|
+
`},contentStyle:function(){return`
|
1417
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
1418
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
1419
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1420
|
+
`}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},BC={key:0,class:"text-subtitle-1 mr-1 notification-text"},UC={key:1,class:"text-body-2 notification-text"},VC={key:2,class:"text-body-2 notification-text"};function qC(n,t,e,r,f,m){const y=Gt("v-icon"),v=Gt("v-spacer"),h=Gt("v-btn"),p=Gt("v-sheet"),a=Gt("v-slide-y-transition");return Hn(),yi(a,null,{default:kn(()=>[Vd(Ct(p,{style:ms(m.toastStyle),class:"toast-notification",onClick:m.expand},{default:kn(()=>[Ct(y,{class:"mr-1 notification-text"},{default:kn(()=>[Nr($r(m.toastNotificationIcon),1)]),_:1}),ys("div",{class:"toast-content",style:ms(m.contentStyle)},[n.toastNotification.title?(Hn(),wi("span",BC,$r(n.toastNotification.title)+": ",1)):vi("",!0),n.toastNotification.body?(Hn(),wi("span",UC,$r(n.toastNotification.body),1)):vi("",!0),n.toastNotification.message?(Hn(),wi("span",VC,$r(n.toastNotification.message),1)):vi("",!0)],4),Ct(v),Ct(h,{variant:"text",onClick:qd(m.hide,["stop"]),class:"notification-text"},{default:kn(()=>t[0]||(t[0]=[Nr(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Gd,n.showToast]])]),_:1})}const GC=ws(jC,[["render",qC],["__scopeId","data-v-b0459ba8"]]);class YC{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Sc(GC);t.use(Mh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:r,message:f,level:m,duration:y,type:v="alert",logToConsole:h=!1,saveToHistory:p=!0}){this.mount(),h&&console.log(f?`${m.toUpperCase()} - ${f}`:`${m.toUpperCase()} - ${e}: ${r}`),p&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:m}),this[t]({title:e,body:r,message:f,level:m,duration:y,type:v})}toast({title:t,body:e,message:r,level:f,duration:m,type:y}){this.$root.toast({title:t,body:e,message:r,level:f,type:y},m)}critical({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}caution({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}off({title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:m,logToConsole:y,saveToHistory:v})}}const KC={install(n,t){const e=new YC(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},Vy=100,qy=Jd({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=Vy&&(n.notifyHistory.length=Vy-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function Gy(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function QC(n,t){const e={},r=new Set(Object.keys(n));for(const f of t)r.has(f)&&(e[f]=n[f]);return e}function Yy(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const f in n)r[f]=n[f];for(const f in t){const m=n[f],y=t[f];if(Gy(m)&&Gy(y)){r[f]=Yy(m,y,e);continue}if(e&&Array.isArray(m)&&Array.isArray(y)){r[f]=e(m,y);continue}r[f]=y}return r}function Hs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Hs.cache.has(n))return Hs.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Hs.cache.set(n,t),t}Hs.cache=new Map;function ZC(n){Pd(`Vuetify: ${n}`)}function Ky(n,t){return e=>Object.keys(n).reduce((r,f)=>{const m=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...m,default:e[f]}:r[f]=m,t&&!r[f].source&&(r[f].source=t),r},{})}function Qy(n,t){const e=Bd();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function JC(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qy("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Rh=Symbol.for("vuetify:defaults");function Zy(){const n=Hd(Rh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function XC(n,t){var e,r;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((r=n.props)==null?void 0:r[Hs(t)])<"u"}function eT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zy();const r=Qy("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=kc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),m=new Proxy(n,{get(h,p){var a,c,s,l,o,u,g;const w=Reflect.get(h,p);return p==="class"||p==="style"?[(a=f.value)==null?void 0:a[p],w].filter(x=>x!=null):typeof p=="string"&&!XC(r.vnode,p)?((c=f.value)==null?void 0:c[p])!==void 0?(s=f.value)==null?void 0:s[p]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[p])!==void 0?(g=(u=e.value)==null?void 0:u.global)==null?void 0:g[p]:w:w}}),y=zd();jd(()=>{if(f.value){const h=Object.entries(f.value).filter(p=>{let[a]=p;return a.startsWith(a[0].toUpperCase())});y.value=h.length?Object.fromEntries(h):void 0}else y.value=void 0});function v(){const h=JC(Rh,r);Ud(Rh,kc(()=>y.value?Yy((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:m,provideSubDefaults:v}}function wl(n){if(n._setup=n._setup??n.setup,!n.name)return ZC("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Ky(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return QC(e,t)},n.props._as=String,n.setup=function(e,r){const f=Zy();if(!f.value)return n._setup(e,r);const{props:m,provideSubDefaults:y}=eT(e,e._as??n.name,f),v=n._setup(m,r);return y(),v}}return n}function tT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?wl:Wd)(t)}const nT=[String,Function,Object,Array],vl=Ky({icon:{type:nT},tag:{type:String,required:!0}},"icon");tT()({name:"VComponentIcon",props:vl(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ct(n.tag,null,{default:()=>{var f;return[n.icon?Ct(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),wl({name:"VSvgIcon",inheritAttrs:!1,props:vl(),setup(n,t){let{attrs:e}=t;return()=>Ct(n.tag,Yd(e,{style:null}),{default:()=>[Ct("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?Ct("path",{d:r[0],"fill-opacity":r[1]},null):Ct("path",{d:r},null)):Ct("path",{d:n.icon},null)])]})}}),wl({name:"VLigatureIcon",props:vl(),setup(n){return()=>Ct(n.tag,null,{default:()=>[n.icon]})}});const rT=wl({name:"VClassIcon",props:vl(),setup(n){return()=>Ct(n.tag,{class:n.icon},null)}}),iT={component:n=>gs(rT,{...n,class:"mdi"})},Mh=Xd({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:IC}},icons:{defaultSet:"mdi",sets:{mdi:iT,...TC}}}),Lh=Vv({createApp:Sc,appOptions:{render(){return gs(Xv,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(LC),n.use(qy),n.use(Mh),n.use(zC),n.use(KC,{store:qy})}}),ZO=Pn("b",Lh.bootstrap),JO=Pn("m",Lh.mount),XO=Pn("d",Lh.unmount)}}});
|