openc3-cosmos-tool-tablemanager 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tablemanager/ArrayWidget-D1PArcGr-5e95e59dcd9c498f7462.js +2 -0
- data/tools/tablemanager/{ArrayplotWidget-DGJEXAY0-91d5f5f22643db4f83d7.js → ArrayplotWidget-DPUPy0qM-02afcf3196e0ab69e054.js} +1 -1
- data/tools/tablemanager/{BarColumn-DwZmAe8g-b1b7c936b8c4d196f5b2.js → BarColumn-BpdscDQf-75c9b31e68a938d09581.js} +1 -1
- data/tools/tablemanager/{BlockWidget-BHtugveV-24f4ed2f1875b0e73ce6.js → BlockWidget-_VUsK5T9-b55f17f61fb9dc63ebb2.js} +2 -2
- data/tools/tablemanager/ButtonWidget-DE41o-cg-fd878760439035b4c3ad.js +2 -0
- data/tools/tablemanager/CanvasWidget-BEi8h3Mq-731b9435323b23471b38.js +1 -0
- data/tools/tablemanager/CanvasdotWidget-eZuMgkhL-e3ced7b65730b72ced83.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-BpM05v_m-56014748cf3f5ecae65c.js → CanvasimageWidget-COv_Qnc8-e72ec484ab8853f95915.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-E6G93iGc-5c7e605915ac0533d0f8.js → CanvasimagevalueWidget-BhuUqLOo-c978e5e18a04ebe27725.js} +1 -1
- data/tools/tablemanager/CanvaslabelWidget-DtvbgeYH-c7f72b59d16957ed11db.js +1 -0
- data/tools/tablemanager/{CanvaslabelvalueWidget-B0nJeS4X-081388af5418d024ae20.js → CanvaslabelvalueWidget-C_FRIeNb-77738c4dc906dd5186ef.js} +1 -1
- data/tools/tablemanager/CanvaslineWidget-D1K_6mAY-f5e0e4eb054a726b3fa3.js +1 -0
- data/tools/tablemanager/{CanvaslinevalueWidget-BwfFyCwH-f5105bf66afc47411398.js → CanvaslinevalueWidget-D4eaxWhR-4edb9ea2c937343604af.js} +1 -1
- data/tools/tablemanager/CheckbuttonWidget-ByxMDkiS-4eae4e3fd85f4e53163b.js +1 -0
- data/tools/tablemanager/ComboboxWidget-CAGxGv2r-7a2128f28ca0b22e3930.js +1 -0
- data/tools/tablemanager/{DateWidget-CAiG2FIl-8974d2013233ace03575.js → DateWidget-DkNWx28s-b05a32453043a2c4dee7.js} +1 -1
- data/tools/tablemanager/{DetailsDialog-q5SDzw3R-5b6c429783e6055b14b4.js → DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-BuSbQVhf-92b3a887d161c5debd83.js → DynamicWidget-BuSbQVhf-002551a789d140c03049.js} +1 -1
- data/tools/tablemanager/{FilechecksumWidget-DeW9wy5d-53853a7d1f86f4c7bf47.js → FilechecksumWidget-DSfNEnDJ-8de8e59b31eda4a23382.js} +1 -1
- data/tools/tablemanager/{FiledisplayWidget-C_zPFu2E-1f50702d4e35e8a1b146.js → FiledisplayWidget-D2cxMmrP-f986e2375a1de8049c8a.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget-BrvPWwfN-c719d590d6ca30637196.js → FormatvalueWidget-6-bj_PJO-a589d3637831f708d52e.js} +1 -1
- data/tools/tablemanager/Graph-Cz0Ns1FD-746f620dd1a4ae354bf5.js +1 -0
- data/tools/tablemanager/{GraphWidget-QS-VJoes-bf8cd808af1a8572eeca.js → GraphWidget-COXK3Dab-60eb240312875e235f41.js} +1 -1
- data/tools/tablemanager/{HorizontalWidget-cFSsdChw-f4b81125e13d416286b5.js → HorizontalWidget-C9UFBPsk-9a12a146ad84bb65862c.js} +1 -1
- data/tools/tablemanager/HorizontalboxWidget-CWLfmRtr-8d983507852559a33ad1.js +1 -0
- data/tools/tablemanager/{HorizontallineWidget-BqbLK0zc-63f04d4d32921b8f0338.js → HorizontallineWidget-DeFkOaYO-567c37b07d9e06c88f62.js} +1 -1
- data/tools/tablemanager/{IframeWidget-CITX8Es1-a6d41bb9ddc48a9408f3.js → IframeWidget-Bn9eGzrq-d787fdb2e4bff44fc5ed.js} +1 -1
- data/tools/tablemanager/{ImageLoader-DQV_11Vd-057d3d21e4709dfcb2f8.js → ImageLoader-_gAudhVo-d5409e20dc8fae1a1e77.js} +1 -1
- data/tools/tablemanager/{ImageviewerWidget-BIsSA7KD-e07c17c416967936de09.js → ImageviewerWidget-BUWhF32Z-1f0aab59a439aae5f3a5.js} +1 -1
- data/tools/tablemanager/{LabelWidget-FQI-cH_A-fdc45fd4a27f1965c765.js → LabelWidget-BhzkN06D-80ee3cd612c60e471dea.js} +1 -1
- data/tools/tablemanager/{LabelledWidget-KGXtQ4Zb-2bd96844e73006717b46.js → LabelledWidget-vx8NvW1b-5a692651bc93336c31bd.js} +1 -1
- data/tools/tablemanager/LabelprogressbarWidget-t5PvKuS4-33c79db8902659c02f08.js +1 -0
- data/tools/tablemanager/LabelsparklineWidget-CebbEH-j-ab1ff80b05b9d12e1847.js +1 -0
- data/tools/tablemanager/LabelvalueWidget-Cbs1DBK2-bab12a58f9349a0fac81.js +1 -0
- data/tools/tablemanager/{LabelvaluedescWidget-BppM5vGp-10583a91ca75140f1ad5.js → LabelvaluedescWidget-B7OIOGc0-88f646fffbb5da0600d4.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-C57kf-oQ-7243959fa5d615fad793.js +1 -0
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-BRlNDEqp-a8ab53d87ae363d6a4c8.js +1 -0
- data/tools/tablemanager/LabelvaluerangebarWidget-Pt_evm3v-8468d72c7f60d21444e7.js +1 -0
- data/tools/tablemanager/{Layout-d-vb0okO-ec80da92f46fda74e8fc.js → Layout-CKmC50QZ-f129ebe9d33eebd829c0.js} +1 -1
- data/tools/tablemanager/{LedWidget-Cmr6eVG2-18f13db3a2c52267fd78.js → LedWidget-D1lmNXpi-0532ee6126116c7b10e8.js} +1 -1
- data/tools/tablemanager/{LimitsBar-qMynDHYT-d6962c5816b0af6e1dcf.js → LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js} +1 -1
- data/tools/tablemanager/{LimitsbarWidget-CMvcwa-m-cfc6b4ec3b5292d9e5ad.js → LimitsbarWidget-VpxQXE-e-d51a6f6b51bdd91a0018.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-CZ9wMtcI-397b9d7345feb996626c.js → LimitscolorWidget-79P41CX7-10a451e619a6ee6377d6.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-r84KJGU--630178083b7420d3dcb1.js → LimitscolumnWidget-BFDXhJeZ-7265ed002be5217eb052.js} +1 -1
- data/tools/tablemanager/LinegraphWidget-VqkpOlws-b7a5600f0bc7eabe4d98.js +1 -0
- data/tools/tablemanager/MatrixbycolumnsWidget--ihvirDP-de5a9fd6e5d6cf1b75a9.js +1 -0
- data/tools/tablemanager/OpenC3TimePicker-B0lAIU91-4af4359c26da8bf0fd6e.js +1 -0
- data/tools/tablemanager/{ProgressbarWidget-DPbAVjdC-950884dfb2ab6b18713e.js → ProgressbarWidget-BIB3r9SL-5bff9b74a5a24ed332bb.js} +1 -1
- data/tools/tablemanager/RadiobuttonWidget-C5rxLM7K-6ba3c583302a040d1d44.js +1 -0
- data/tools/tablemanager/{RadiogroupWidget-CMM_p1eA-b952d23c29c125d9e7e0.js → RadiogroupWidget-CciTCv1U-8efa48d60d0b5ec07d7c.js} +1 -1
- data/tools/tablemanager/{RangebarWidget-DJXGUHAc-cb3e8fc32ed244040e9f.js → RangebarWidget-MPQYi2Km-08c5e4108a4d3988031d.js} +1 -1
- data/tools/tablemanager/{RollupWidget-BbWLSsTT-d0bb5029f70ebe3c9ec9.js → RollupWidget-CfjGAhzg-f761abccfc7066c772e5.js} +1 -1
- data/tools/tablemanager/ScrollwindowWidget-CupaygNN-8a53ebfdaf51c1036ebf.js +1 -0
- data/tools/tablemanager/{SignalWidget-65q0tiuo-b8f73bec8cff5e18010d.js → SignalWidget-C-qecoTO-910a9bc38b99bedcd57e.js} +1 -1
- data/tools/tablemanager/{SpacerWidget-DFzbojmX-439544d138673f167cbf.js → SpacerWidget-VVkOCb6N-4f3eea68b518ed5f022f.js} +1 -1
- data/tools/tablemanager/SparklineWidget-Dsmn38z_-9041d23b2e4e015d7a75.js +1 -0
- data/tools/tablemanager/{TabbookWidget-CELMWyx7-7af33bb0a8a9f8cfd444.js → TabbookWidget-CXklff-l-360d2c65390c0571d22b.js} +1 -1
- data/tools/tablemanager/TableManager-00f177903f37778a5336.js +16 -0
- data/tools/tablemanager/TextboxWidget-CHs2VYIv-2868d4fd63c2561bf97b.js +1 -0
- data/tools/tablemanager/TextfieldWidget-CdANAW-6-97c5831ab8e88bb90cb3.js +1 -0
- data/tools/tablemanager/TimeWidget-D0xT1wXR-dfefd33ed56e1d52f59d.js +1 -0
- data/tools/tablemanager/TitleWidget-68NWCcXB-1f3e7ca4624c976e380e.js +1 -0
- data/tools/tablemanager/{VWidget-BDy0211S-0e20de64faf652f6eef1.js → VWidget-oMbywhLA-a3445c8c7a212fc13231.js} +1 -1
- data/tools/tablemanager/ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js +1 -0
- data/tools/tablemanager/ValuelimitsbarWidget-B7KcRjLS-399973d3f9b5b24ed812.js +1 -0
- data/tools/tablemanager/{ValuelimitscolumnWidget-7DXCsVW_-256430774855a4a542bd.js → ValuelimitscolumnWidget-BVt6nLXq-6d27ca205ba3d773006f.js} +1 -1
- data/tools/tablemanager/ValuerangebarWidget-uVZEI32U-8b3b083a5f9cdbef7df9.js +1 -0
- data/tools/tablemanager/{VerticalWidget-BOtXAhxt-5e4c9d1cd9f7de6a3a9f.js → VerticalWidget-DlftYBjH-ead366d0a8e5ac6d1747.js} +1 -1
- data/tools/tablemanager/VerticalboxWidget-C7RrkfY0-24b8e8bde647e0523a8a.js +1 -0
- data/tools/tablemanager/{Widget-BDsgRxuV-0ee27357bedb11780ab2.js → Widget-D_HaosJK-24d34ad275ee06d9cb88.js} +1 -1
- data/tools/tablemanager/main-90fc5051cec3c87257d6.js +1497 -0
- data/tools/tablemanager/main.js +1 -1
- metadata +72 -72
- data/tools/tablemanager/ArrayWidget-CcQFJGCA-f231b89fb021aba5212e.js +0 -2
- data/tools/tablemanager/ButtonWidget-Cc9cYsg8-4c8564e5b813084f0c22.js +0 -2
- data/tools/tablemanager/CanvasWidget-Bn70gBcc-a0f4bbcadd8ae233c33f.js +0 -1
- data/tools/tablemanager/CanvasdotWidget-CMROfW3O-24b77de6fc57f6c6afa2.js +0 -1
- data/tools/tablemanager/CanvaslabelWidget-C074R2Fy-5d5bc71e5a8922b6d5a0.js +0 -1
- data/tools/tablemanager/CanvaslineWidget-CxnNAqOX-ad3e5ec7247519227dd9.js +0 -1
- data/tools/tablemanager/CheckbuttonWidget-yAm10oX0-2a5d7d1e219beeacd56c.js +0 -1
- data/tools/tablemanager/ComboboxWidget-BnWksnnp-b547dbc0d3cfb7babaee.js +0 -1
- data/tools/tablemanager/Graph-BCvaO4yI-f908519d103fe994d48b.js +0 -1
- data/tools/tablemanager/HorizontalboxWidget-CKA7rLGd-21e5cac4595b75ac9019.js +0 -1
- data/tools/tablemanager/LabelprogressbarWidget-72WyzD_Q-83ed58465cbd1c776337.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget-DtWNf4mK-a384be413f7c4f308093.js +0 -1
- data/tools/tablemanager/LabelvalueWidget-D_JLdY7r-37fcf5b7a01b8405e52d.js +0 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-B69ogLif-32f7e527784b412c76c3.js +0 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-DPYwFdgq-88e4af427d0101d6e2c0.js +0 -1
- data/tools/tablemanager/LabelvaluerangebarWidget-BT0BcOoK-b950af451ee3344ddc13.js +0 -1
- data/tools/tablemanager/LinegraphWidget-COGBGOjF-da8b26e4c1c27c91a0a3.js +0 -1
- data/tools/tablemanager/MatrixbycolumnsWidget-Dx2iz0YF-baaad99786a72a8e5eff.js +0 -1
- data/tools/tablemanager/OpenC3TimePicker-C3vCnk72-c3b637642f2d18362bd4.js +0 -1
- data/tools/tablemanager/RadiobuttonWidget-iXI9yCDk-bc1e3c1684232c056349.js +0 -1
- data/tools/tablemanager/ScrollwindowWidget-Dxhp7yKn-df01e5f5b5a0f23385fa.js +0 -1
- data/tools/tablemanager/SparklineWidget-Bu4I8zY0-5e3ae7c6264fb6221e50.js +0 -1
- data/tools/tablemanager/TableManager-1de8a7dfafe124bf884e.js +0 -16
- data/tools/tablemanager/TextboxWidget-DYsqXntS-9b9ac9b528c39a2e78d8.js +0 -1
- data/tools/tablemanager/TextfieldWidget-BIUgV9Q4-d1fa3486ce9e9f86183d.js +0 -1
- data/tools/tablemanager/TimeWidget-BPXcY1Wy-df6106df72f0570f5323.js +0 -1
- data/tools/tablemanager/TitleWidget-DJ9mHRLE-505381536ce922d060cb.js +0 -1
- data/tools/tablemanager/ValueWidget-DzOSy7lp-f87f7987cdf1897032cb.js +0 -1
- data/tools/tablemanager/ValuelimitsbarWidget-D5dSlW6D-07339164d1282f72cccd.js +0 -1
- data/tools/tablemanager/ValuerangebarWidget-BWjnpmyy-189339a4c5fd1b8e3621.js +0 -1
- data/tools/tablemanager/VerticalboxWidget-RAsXfGdI-d0c453757b2a1bbf74b0.js +0 -1
- data/tools/tablemanager/main-00f66f7e3e3538618993.js +0 -1496
|
@@ -1,1496 +0,0 @@
|
|
|
1
|
-
System.register(["vue","vue-router","pinia","single-spa","vuetify"],(function(Gn,tt){"use strict";var Mn,Wn,Fo,dr,Cn,Xr,ro,ff,pf,Ws,$a,Cl,Ai,Si,bo,gf,mf,vf,iu,yf,bf,wf,xf,Cf,ou,kf,_f,Af,Sf,$f,Mf,Tf,Rf,Ef,su,If;return{setters:[$t=>{Mn=$t.resolveComponent,Wn=$t.openBlock,Fo=$t.createBlock,dr=$t.withCtx,Cn=$t.createVNode,Xr=$t.createElementBlock,ro=$t.createElementVNode,ff=$t.useCssVars,pf=$t.defineAsyncComponent,Ws=$t.h,$a=$t.normalizeStyle,Cl=$t.Fragment,Ai=$t.createTextVNode,Si=$t.toDisplayString,bo=$t.createCommentVNode,gf=$t.defineComponent,mf=$t.warn,vf=$t.inject,iu=$t.computed,yf=$t.shallowRef,bf=$t.watchEffect,wf=$t.normalizeClass,xf=$t.getCurrentInstance,Cf=$t.provide,ou=$t.createApp,kf=$t.withKeys,_f=$t.withDirectives,Af=$t.withModifiers,Sf=$t.vShow,$f=$t.mergeProps},$t=>{Mf=$t.createRouter,Tf=$t.createWebHistory},$t=>{Rf=$t.defineStore,Ef=$t.createPinia},$t=>{su=$t.getMountedApps},$t=>{If=$t.createVuetify}],execute:(function(){Gn({$:Fr,C:Fa,E:tg,T:Vp,U:Tu,b:Qp,e:io,f:qs,h:Eu,i:Gp,j:qp,n:gy,o:Mr,q:Gs,v:eg});var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lf(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(v){return Object.getOwnPropertyDescriptor(t,v).enumerable}))),e.push.apply(e,r)}return e}function ns(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Lf(Object(e),!0).forEach((function(r){ew(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Lf(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ew(t,n,e){return(n=(function(r){var v=(function(g,p){if(rs(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,p);if(rs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(g)})(r,"string");return rs(v)==="symbol"?v:String(v)})(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function rs(t){return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rs(t)}(function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var n=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,v=String(e),g=v.length,p=-1,w="",h=v.charCodeAt(0);++p<g;)(r=v.charCodeAt(p))!=0?w+=r>=1&&r<=31||r==127||p==0&&r>=48&&r<=57||p==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":p==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+v.charAt(p):v.charAt(p):w+="�";return w};t.CSS||(t.CSS={}),t.CSS.escape=n})($t);var tw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function nw(t){if(rs(t)!=="object")throw new Error("single-spa-vue requires a configuration object");var n=ns(ns({},tw),t);if(!n.Vue&&!n.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!n.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(n.appOptions.el&&typeof n.appOptions.el!="string"&&!(n.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(rs(n.appOptions.el)));n.createApp=n.createApp||n.Vue&&n.Vue.createApp;var e={};return{bootstrap:rw.bind(null,n,e),mount:iw.bind(null,n,e),unmount:sw.bind(null,n,e),update:ow.bind(null,n,e)}}function rw(t){return t.loadRootComponent?t.loadRootComponent().then((function(n){return t.rootComponent=n})):Promise.resolve()}function iw(t,n,e){var r={};return Promise.resolve().then((function(){return(function(v,g){return typeof v.appOptions=="function"?v.appOptions(g):Promise.resolve(ns({},v.appOptions))})(t,e).then((function(v){var g;if(e.domElement&&!v.el&&(v.el=e.domElement),v.el)if(typeof v.el=="string"){if(!(g=document.querySelector(v.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(v.el))}else(g=v.el).id||(g.id="single-spa-application:".concat(e.name)),v.el="#".concat(CSS.escape(g.id));else{var p="single-spa-application:".concat(e.name);v.el="#".concat(CSS.escape(p)),(g=document.getElementById(p))||((g=document.createElement("div")).id=p,document.body.appendChild(g))}if(!t.replaceMode&&(v.el=v.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,v.render||v.template||!t.rootComponent||(v.render=function(d){return d(t.rootComponent)}),v.data||(v.data={});var h=v.data;if(v.data=function(){return ns(ns({},typeof h=="function"?h.call(this,this):h),e)},t.createApp){if(r.vueInstance=t.createApp(v),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return r.root=r.vueInstance.mount(v.el),n[e.name]=r,r.vueInstance}));r.root=r.vueInstance.mount(v.el)}else if(r.vueInstance=new t.Vue(v),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return n[e.name]=r,r.vueInstance}));return n[e.name]=r,r.vueInstance}))}))}function ow(t,n,e){return Promise.resolve().then((function(){var r=n[e.name],v=ns(ns({},t.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var p in v)g[p]=v[p]}))}function sw(t,n,e){return Promise.resolve().then((function(){var r=n[e.name];t.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)}))}const aw=Gn("_",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),lw={};function cw(t,n){const e=Mn("router-view"),r=Mn("v-app");return Wn(),Fo(r,{id:"innerapp"},{default:dr(()=>[Cn(e)]),_:1})}const uw=aw(lw,[["render",cw]]),e2="modulepreload",t2=function(t){return"/"+t},n2={},nt=function(n,e,r){let v=Promise.resolve();function g(p){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=p,window.dispatchEvent(w),!w.defaultPrevented)throw p}return v.then(p=>{for(const w of p||[])w.status==="rejected"&&g(w.reason);return n().catch(g)})},Of=function(t){!t.name!=="NotFound"&&(t.path=`/tools/tablemanager/${t.path.replace(/^\//,"")}`),t.children?.forEach(Of)},Bs=Gn("d",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),hw="/icons/customIcons.svg",au={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return hw+"#"+this.icon}}},Nf=()=>{ff(t=>({v4ccb3d08:t.color}))},Df=au.setup;au.setup=Df?(t,n)=>(Nf(),Df(t,n)):Nf;const dw={class:"cosmos-custom-icon"},fw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},pw=["href"];function gw(t,n,e,r,v,g){return Wn(),Xr("span",dw,[(Wn(),Xr("svg",fw,[ro("use",{href:g.iconSrc},null,8,pw)]))])}const mw=Bs(au,[["render",gw],["__scopeId","data-v-54b83b01"]]);function Pf(t,n){return function(){return t.apply(n,arguments)}}const{toString:vw}=Object.prototype,{getPrototypeOf:kl}=Object,{iterator:_l,toStringTag:Ff}=Symbol,Al=(t=>n=>{const e=vw.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),ji=t=>(t=t.toLowerCase(),n=>Al(n)===t),Sl=t=>n=>typeof n===t,{isArray:js}=Array,Hs=Sl("undefined");function Ma(t){return t!==null&&!Hs(t)&&t.constructor!==null&&!Hs(t.constructor)&&Zr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zf=ji("ArrayBuffer");function yw(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&zf(t.buffer),n}const bw=Sl("string"),Zr=Sl("function"),Wf=Sl("number"),Ta=t=>t!==null&&typeof t=="object",ww=t=>t===!0||t===!1,$l=t=>{if(Al(t)!=="object")return!1;const n=kl(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Ff in t)&&!(_l in t)},xw=t=>{if(!Ta(t)||Ma(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Cw=ji("Date"),kw=ji("File"),_w=t=>!!(t&&typeof t.uri<"u"),Aw=t=>t&&typeof t.getParts<"u",Sw=ji("Blob"),$w=ji("FileList"),Mw=t=>Ta(t)&&Zr(t.pipe);function Tw(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Bf=Tw(),jf=typeof Bf.FormData<"u"?Bf.FormData:void 0,Rw=t=>{if(!t)return!1;if(jf&&t instanceof jf)return!0;const n=kl(t);if(!n||n===Object.prototype||!Zr(t.append))return!1;const e=Al(t);return e==="formdata"||e==="object"&&Zr(t.toString)&&t.toString()==="[object FormData]"},Ew=ji("URLSearchParams"),[Iw,Lw,Ow,Nw]=["ReadableStream","Request","Response","Headers"].map(ji),Dw=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ra(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),js(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if(Ma(t))return;const g=e?Object.getOwnPropertyNames(t):Object.keys(t),p=g.length;let w;for(r=0;r<p;r++)w=g[r],n.call(null,t[w],w,t)}}function Hf(t,n){if(Ma(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uf=t=>!Hs(t)&&t!==is;function lu(){const{caseless:t,skipUndefined:n}=Uf(this)&&this||{},e={},r=(v,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const p=t&&Hf(e,g)||g;$l(e[p])&&$l(v)?e[p]=lu(e[p],v):$l(v)?e[p]=lu({},v):js(v)?e[p]=v.slice():(!n||!Hs(v))&&(e[p]=v)};for(let v=0,g=arguments.length;v<g;v++)arguments[v]&&Ra(arguments[v],r);return e}const Pw=(t,n,e,{allOwnKeys:r}={})=>(Ra(n,(v,g)=>{e&&Zr(v)?Object.defineProperty(t,g,{value:Pf(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,g,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Fw=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),zw=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},Ww=(t,n,e,r)=>{let v,g,p;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),g=v.length;g-- >0;)p=v[g],(!r||r(p,t,n))&&!w[p]&&(n[p]=t[p],w[p]=!0);t=e!==!1&&kl(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},Bw=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},jw=t=>{if(!t)return null;if(js(t))return t;let n=t.length;if(!Wf(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},Hw=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&kl(Uint8Array)),Uw=(t,n)=>{const e=(t&&t[_l]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},Vw=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},Gw=ji("HTMLFormElement"),qw=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),Vf=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),Kw=ji("RegExp"),Gf=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};Ra(e,(v,g)=>{let p;(p=n(v,g,t))!==!1&&(r[g]=p||v)}),Object.defineProperties(t,r)},Yw=t=>{Gf(t,(n,e)=>{if(Zr(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(Zr(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Jw=(t,n)=>{const e={},r=v=>{v.forEach(g=>{e[g]=!0})};return js(t)?r(t):r(String(t).split(n)),e},Xw=()=>{},Zw=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function Qw(t){return!!(t&&Zr(t.append)&&t[Ff]==="FormData"&&t[_l])}const ex=t=>{const n=new Array(10),e=(r,v)=>{if(Ta(r)){if(n.indexOf(r)>=0)return;if(Ma(r))return r;if(!("toJSON"in r)){n[v]=r;const g=js(r)?[]:{};return Ra(r,(p,w)=>{const h=e(p,v+1);!Hs(h)&&(g[w]=h)}),n[v]=void 0,g}}return r};return e(t,0)},tx=ji("AsyncFunction"),nx=t=>t&&(Ta(t)||Zr(t))&&Zr(t.then)&&Zr(t.catch),qf=((t,n)=>t?setImmediate:n?((e,r)=>(is.addEventListener("message",({source:v,data:g})=>{v===is&&g===e&&r.length&&r.shift()()},!1),v=>{r.push(v),is.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Zr(is.postMessage)),rx=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||qf,ix=t=>t!=null&&Zr(t[_l]),_e={isArray:js,isArrayBuffer:zf,isBuffer:Ma,isFormData:Rw,isArrayBufferView:yw,isString:bw,isNumber:Wf,isBoolean:ww,isObject:Ta,isPlainObject:$l,isEmptyObject:xw,isReadableStream:Iw,isRequest:Lw,isResponse:Ow,isHeaders:Nw,isUndefined:Hs,isDate:Cw,isFile:kw,isReactNativeBlob:_w,isReactNative:Aw,isBlob:Sw,isRegExp:Kw,isFunction:Zr,isStream:Mw,isURLSearchParams:Ew,isTypedArray:Hw,isFileList:$w,forEach:Ra,merge:lu,extend:Pw,trim:Dw,stripBOM:Fw,inherits:zw,toFlatObject:Ww,kindOf:Al,kindOfTest:ji,endsWith:Bw,toArray:jw,forEachEntry:Uw,matchAll:Vw,isHTMLForm:Gw,hasOwnProperty:Vf,hasOwnProp:Vf,reduceDescriptors:Gf,freezeMethods:Yw,toObjectSet:Jw,toCamelCase:qw,noop:Xw,toFiniteNumber:Zw,findKey:Hf,global:is,isContextDefined:Uf,isSpecCompliantForm:Qw,toJSONObject:ex,isAsyncFn:tx,isThenable:nx,setImmediate:qf,asap:rx,isIterable:ix};let ft=class J0 extends Error{static from(n,e,r,v,g,p){const w=new J0(n.message,e||n.code,r,v,g);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),p&&Object.assign(w,p),w}constructor(n,e,r,v,g){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),g&&(this.response=g,this.status=g.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}};ft.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ft.ERR_BAD_OPTION="ERR_BAD_OPTION",ft.ECONNABORTED="ECONNABORTED",ft.ETIMEDOUT="ETIMEDOUT",ft.ERR_NETWORK="ERR_NETWORK",ft.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ft.ERR_DEPRECATED="ERR_DEPRECATED",ft.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ft.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ft.ERR_CANCELED="ERR_CANCELED",ft.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ft.ERR_INVALID_URL="ERR_INVALID_URL",ft.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ox=null;function cu(t){return _e.isPlainObject(t)||_e.isArray(t)}function Kf(t){return _e.endsWith(t,"[]")?t.slice(0,-2):t}function uu(t,n,e){return t?t.concat(n).map(function(r,v){return r=Kf(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function sx(t){return _e.isArray(t)&&!t.some(cu)}const ax=_e.toFlatObject(_e,{},null,function(t){return/^is[A-Z]/.test(t)});function Ml(t,n,e){if(!_e.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,f){return!_e.isUndefined(f[s])});const r=e.metaTokens,v=e.visitor||l,g=e.dots,p=e.indexes,w=e.Blob||typeof Blob<"u"&&Blob,h=e.maxDepth===void 0?100:e.maxDepth,d=w&&_e.isSpecCompliantForm(n);if(!_e.isFunction(v))throw new TypeError("visitor must be a function");function a(s){if(s===null)return"";if(_e.isDate(s))return s.toISOString();if(_e.isBoolean(s))return s.toString();if(!d&&_e.isBlob(s))throw new ft("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(s)||_e.isTypedArray(s)?d&&typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function l(s,f,b){let x=s;if(_e.isReactNative(n)&&_e.isReactNativeBlob(s))return n.append(uu(b,f,g),a(s)),!1;if(s&&!b&&typeof s=="object"){if(_e.endsWith(f,"{}"))f=r?f:f.slice(0,-2),s=JSON.stringify(s);else if(_e.isArray(s)&&sx(s)||(_e.isFileList(s)||_e.endsWith(f,"[]"))&&(x=_e.toArray(s)))return f=Kf(f),x.forEach(function(I,M){!(_e.isUndefined(I)||I===null)&&n.append(p===!0?uu([f],M,g):p===null?f:f+"[]",a(I))}),!1}return cu(s)?!0:(n.append(uu(b,f,g),a(s)),!1)}const c=[],u=Object.assign(ax,{defaultVisitor:l,convertValue:a,isVisitable:cu});function i(s,f,b=0){if(!_e.isUndefined(s)){if(b>h)throw new ft("Object is too deeply nested ("+b+" levels). Max depth: "+h,ft.ERR_FORM_DATA_DEPTH_EXCEEDED);if(c.indexOf(s)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(s),_e.forEach(s,function(x,I){(!(_e.isUndefined(x)||x===null)&&v.call(n,x,_e.isString(I)?I.trim():I,f,u))===!0&&i(x,f?f.concat(I):[I],b+1)}),c.pop()}}if(!_e.isObject(t))throw new TypeError("data must be an object");return i(t),n}function Yf(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(e){return n[e]})}function hu(t,n){this._pairs=[],t&&Ml(t,this,n)}const Jf=hu.prototype;Jf.append=function(t,n){this._pairs.push([t,n])},Jf.toString=function(t){const n=t?function(e){return t.call(this,e,Yf)}:Yf;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function lx(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xf(t,n,e){if(!n)return t;const r=e&&e.encode||lx,v=_e.isFunction(e)?{serialize:e}:e,g=v&&v.serialize;let p;if(g?p=g(n,v):p=_e.isURLSearchParams(n)?n.toString():new hu(n,v).toString(r),p){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+p}return t}let Zf=class{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){_e.forEach(this.handlers,function(e){e!==null&&n(e)})}};const du={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},cx=typeof URLSearchParams<"u"?URLSearchParams:hu,ux=typeof FormData<"u"?FormData:null,hx=typeof Blob<"u"?Blob:null,dx={isBrowser:!0,classes:{URLSearchParams:cx,FormData:ux,Blob:hx},protocols:["http","https","file","blob","url","data"]},fu=typeof window<"u"&&typeof document<"u",pu=typeof navigator=="object"&&navigator||void 0,fx=fu&&(!pu||["ReactNative","NativeScript","NS"].indexOf(pu.product)<0),px=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gx=fu&&window.location.href||"http://localhost",mx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fu,hasStandardBrowserEnv:fx,hasStandardBrowserWebWorkerEnv:px,navigator:pu,origin:gx},Symbol.toStringTag,{value:"Module"})),$r={...mx,...dx};function vx(t,n){return Ml(t,new $r.classes.URLSearchParams,{visitor:function(e,r,v,g){return $r.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...n})}function yx(t){return _e.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function bx(t){const n={},e=Object.keys(t);let r;const v=e.length;let g;for(r=0;r<v;r++)g=e[r],n[g]=t[g];return n}function Qf(t){function n(e,r,v,g){let p=e[g++];if(p==="__proto__")return!0;const w=Number.isFinite(+p),h=g>=e.length;return p=!p&&_e.isArray(v)?v.length:p,h?(_e.hasOwnProp(v,p)?v[p]=_e.isArray(v[p])?v[p].concat(r):[v[p],r]:v[p]=r,!w):((!v[p]||!_e.isObject(v[p]))&&(v[p]=[]),n(e,r,v[p],g)&&_e.isArray(v[p])&&(v[p]=bx(v[p])),!w)}if(_e.isFormData(t)&&_e.isFunction(t.entries)){const e={};return _e.forEachEntry(t,(r,v)=>{n(yx(r),v,e,0)}),e}return null}const Us=(t,n)=>t!=null&&_e.hasOwnProp(t,n)?t[n]:void 0;function wx(t,n,e){if(_e.isString(t))try{return(n||JSON.parse)(t),_e.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const Ea={transitional:du,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=_e.isObject(t);if(v&&_e.isHTMLForm(t)&&(t=new FormData(t)),_e.isFormData(t))return r?JSON.stringify(Qf(t)):t;if(_e.isArrayBuffer(t)||_e.isBuffer(t)||_e.isStream(t)||_e.isFile(t)||_e.isBlob(t)||_e.isReadableStream(t))return t;if(_e.isArrayBufferView(t))return t.buffer;if(_e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(v){const p=Us(this,"formSerializer");if(e.indexOf("application/x-www-form-urlencoded")>-1)return vx(t,p).toString();if((g=_e.isFileList(t))||e.indexOf("multipart/form-data")>-1){const w=Us(this,"env"),h=w&&w.FormData;return Ml(g?{"files[]":t}:t,h&&new h,p)}}return v||r?(n.setContentType("application/json",!1),wx(t)):t}],transformResponse:[function(t){const n=Us(this,"transitional")||Ea.transitional,e=n&&n.forcedJSONParsing,r=Us(this,"responseType"),v=r==="json";if(_e.isResponse(t)||_e.isReadableStream(t))return t;if(t&&_e.isString(t)&&(e&&!r||v)){const g=!(n&&n.silentJSONParsing)&&v;try{return JSON.parse(t,Us(this,"parseReviver"))}catch(p){if(g)throw p.name==="SyntaxError"?ft.from(p,ft.ERR_BAD_RESPONSE,this,null,Us(this,"response")):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],t=>{Ea.headers[t]={}});const xx=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cx=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
2
|
-
`).forEach(function(g){v=g.indexOf(":"),e=g.substring(0,v).trim().toLowerCase(),r=g.substring(v+1).trim(),!(!e||n[e]&&xx[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},ep=Symbol("internals"),kx=/[^\x09\x20-\x7E\x80-\xFF]/g;function _x(t){let n=0,e=t.length;for(;n<e;){const r=t.charCodeAt(n);if(r!==9&&r!==32)break;n+=1}for(;e>n;){const r=t.charCodeAt(e-1);if(r!==9&&r!==32)break;e-=1}return n===0&&e===t.length?t:t.slice(n,e)}function Ia(t){return t&&String(t).trim().toLowerCase()}function Ax(t){return _x(t.replace(kx,""))}function Tl(t){return t===!1||t==null?t:_e.isArray(t)?t.map(Tl):Ax(String(t))}function Sx(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const $x=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function gu(t,n,e,r,v){if(_e.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!_e.isString(n)){if(_e.isString(r))return n.indexOf(r)!==-1;if(_e.isRegExp(r))return r.test(n)}}function Mx(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function Tx(t,n){const e=_e.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,g,p){return this[r].call(this,n,v,g,p)},configurable:!0})})}let Qr=class{constructor(n){n&&this.set(n)}set(n,e,r){const v=this;function g(w,h,d){const a=Ia(h);if(!a)throw new Error("header name must be a non-empty string");const l=_e.findKey(v,a);(!l||v[l]===void 0||d===!0||d===void 0&&v[l]!==!1)&&(v[l||h]=Tl(w))}const p=(w,h)=>_e.forEach(w,(d,a)=>g(d,a,h));if(_e.isPlainObject(n)||n instanceof this.constructor)p(n,e);else if(_e.isString(n)&&(n=n.trim())&&!$x(n))p(Cx(n),e);else if(_e.isObject(n)&&_e.isIterable(n)){let w={},h,d;for(const a of n){if(!_e.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?_e.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}p(w,e)}else n!=null&&g(e,n,r);return this}get(n,e){if(n=Ia(n),n){const r=_e.findKey(this,n);if(r){const v=this[r];if(!e)return v;if(e===!0)return Sx(v);if(_e.isFunction(e))return e.call(this,v,r);if(_e.isRegExp(e))return e.exec(v);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,e){if(n=Ia(n),n){const r=_e.findKey(this,n);return!!(r&&this[r]!==void 0&&(!e||gu(this,this[r],r,e)))}return!1}delete(n,e){const r=this;let v=!1;function g(p){if(p=Ia(p),p){const w=_e.findKey(r,p);w&&(!e||gu(r,r[w],w,e))&&(delete r[w],v=!0)}}return _e.isArray(n)?n.forEach(g):g(n),v}clear(n){const e=Object.keys(this);let r=e.length,v=!1;for(;r--;){const g=e[r];(!n||gu(this,this[g],g,n,!0))&&(delete this[g],v=!0)}return v}normalize(n){const e=this,r={};return _e.forEach(this,(v,g)=>{const p=_e.findKey(r,g);if(p){e[p]=Tl(v),delete e[g];return}const w=n?Mx(g):String(g).trim();w!==g&&delete e[g],e[w]=Tl(v),r[w]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const e=Object.create(null);return _e.forEach(this,(r,v)=>{r!=null&&r!==!1&&(e[v]=n&&_e.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,e])=>n+": "+e).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...e){const r=new this(n);return e.forEach(v=>r.set(v)),r}static accessor(n){const e=(this[ep]=this[ep]={accessors:{}}).accessors,r=this.prototype;function v(g){const p=Ia(g);e[p]||(Tx(r,g),e[p]=!0)}return _e.isArray(n)?n.forEach(v):v(n),this}};Qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(Qr.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),_e.freezeMethods(Qr);function mu(t,n){const e=this||Ea,r=n||e,v=Qr.from(r.headers);let g=r.data;return _e.forEach(t,function(p){g=p.call(e,g,v.normalize(),n?n.status:void 0)}),v.normalize(),g}function tp(t){return!!(t&&t.__CANCEL__)}let La=class extends ft{constructor(n,e,r){super(n??"canceled",ft.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function np(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new ft("Request failed with status code "+e.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function Rx(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Ex(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,g=0,p;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[g];p||(p=h),e[v]=w,r[v]=h;let a=g,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===g&&(g=(g+1)%t),h-p<n)return;const c=d&&h-d;return c?Math.round(l*1e3/c):void 0}}function Ix(t,n){let e=0,r=1e3/n,v,g;const p=(w,h=Date.now())=>{e=h,v=null,g&&(clearTimeout(g),g=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?p(w,h):(v=w,g||(g=setTimeout(()=>{g=null,p(v)},r-d)))},()=>v&&p(v)]}const Rl=(t,n,e=3)=>{let r=0;const v=Ex(50,250);return Ix(g=>{const p=g.loaded,w=g.lengthComputable?g.total:void 0,h=w!=null?Math.min(p,w):p,d=Math.max(0,h-r),a=v(d);r=Math.max(r,h);const l={loaded:h,total:w,progress:w?h/w:void 0,bytes:d,rate:a||void 0,estimated:a&&w?(w-h)/a:void 0,event:g,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},rp=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},ip=t=>(...n)=>_e.asap(()=>t(...n)),Lx=$r.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,$r.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL($r.origin),$r.navigator&&/(msie|trident)/i.test($r.navigator.userAgent)):()=>!0,Ox=$r.hasStandardBrowserEnv?{write(t,n,e,r,v,g,p){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];_e.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),_e.isString(r)&&w.push(`path=${r}`),_e.isString(v)&&w.push(`domain=${v}`),g===!0&&w.push("secure"),_e.isString(p)&&w.push(`SameSite=${p}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Nx(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Dx(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function op(t,n,e){let r=!Nx(n);return t&&(r||e===!1)?Dx(t,n):n}const sp=t=>t instanceof Qr?{...t}:t;function os(t,n){n=n||{};const e=Object.create(null);Object.defineProperty(e,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,a,l,c){return _e.isPlainObject(d)&&_e.isPlainObject(a)?_e.merge.call({caseless:c},d,a):_e.isPlainObject(a)?_e.merge({},a):_e.isArray(a)?a.slice():a}function v(d,a,l,c){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d,l,c)}else return r(d,a,l,c)}function g(d,a){if(!_e.isUndefined(a))return r(void 0,a)}function p(d,a){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(_e.hasOwnProp(n,l))return r(d,a);if(_e.hasOwnProp(t,l))return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,allowedSocketPaths:p,responseEncoding:p,validateStatus:w,headers:(d,a,l)=>v(sp(d),sp(a),l,!0)};return _e.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=_e.hasOwnProp(h,d)?h[d]:v,l=_e.hasOwnProp(t,d)?t[d]:void 0,c=_e.hasOwnProp(n,d)?n[d]:void 0,u=a(l,c,d);_e.isUndefined(u)&&a!==w||(e[d]=u)}),e}const ap=t=>{const n=os({},t),e=c=>_e.hasOwnProp(n,c)?n[c]:void 0,r=e("data");let v=e("withXSRFToken");const g=e("xsrfHeaderName"),p=e("xsrfCookieName");let w=e("headers");const h=e("auth"),d=e("baseURL"),a=e("allowAbsoluteUrls"),l=e("url");if(n.headers=w=Qr.from(w),n.url=Xf(op(d,l,a),t.params,t.paramsSerializer),h&&w.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),_e.isFormData(r)){if($r.hasStandardBrowserEnv||$r.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if(_e.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([i,s])=>{u.includes(i.toLowerCase())&&w.set(i,s)})}}if($r.hasStandardBrowserEnv&&(_e.isFunction(v)&&(v=v(n)),v===!0||v==null&&Lx(n.url))){const c=g&&p&&Ox.read(p);c&&w.set(g,c)}return n},Px=typeof XMLHttpRequest<"u",Fx=Px&&function(t){return new Promise(function(n,e){const r=ap(t);let v=r.data;const g=Qr.from(r.headers).normalize();let{responseType:p,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,c,u;function i(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=Qr.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),I={data:!p||p==="text"||p==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};np(function(M){n(M),i()},function(M){e(M),i()},I),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new ft("Request aborted",ft.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const I=x&&x.message?x.message:"Network Error",M=new ft(I,ft.ERR_NETWORK,t,s);M.event=x||null,e(M),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const I=r.transitional||du;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new ft(x,I.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,t,s)),s=null},v===void 0&&g.setContentType(null),"setRequestHeader"in s&&_e.forEach(g.toJSON(),function(x,I){s.setRequestHeader(I,x)}),_e.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),p&&p!=="json"&&(s.responseType=r.responseType),h&&([l,u]=Rl(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,c]=Rl(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new La(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=Rx(r.url);if(b&&$r.protocols.indexOf(b)===-1){e(new ft("Unsupported protocol "+b+":",ft.ERR_BAD_REQUEST,t));return}s.send(v||null)})},zx=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const g=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof ft?a:new La(a instanceof Error?a.message:a))}};let p=n&&setTimeout(()=>{p=null,g(new ft(`timeout of ${n}ms exceeded`,ft.ETIMEDOUT))},n);const w=()=>{t&&(p&&clearTimeout(p),p=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),t=null)};t.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>_e.asap(w),h}},Wx=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},Bx=async function*(t,n){for await(const e of jx(t))yield*Wx(e,n)},jx=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},lp=(t,n,e,r)=>{const v=Bx(t,n);let g=0,p,w=h=>{p||(p=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let c=g+=l;e(c)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},cp=64*1024,{isFunction:El}=_e,Hx=(({Request:t,Response:n})=>({Request:t,Response:n}))(_e.global),{ReadableStream:up,TextEncoder:hp}=_e.global,dp=(t,...n)=>{try{return!!t(...n)}catch{return!1}},Ux=t=>{t=_e.merge.call({skipUndefined:!0},Hx,t);const{fetch:n,Request:e,Response:r}=t,v=n?El(n):typeof fetch=="function",g=El(e),p=El(r);if(!v)return!1;const w=v&&El(up),h=v&&(typeof hp=="function"?(i=>s=>i.encode(s))(new hp):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&dp(()=>{let i=!1;const s=new e($r.origin,{body:new up,method:"POST",get duplex(){return i=!0,"half"}}),f=s.headers.has("Content-Type");return s.body!=null&&s.body.cancel(),i&&!f}),a=p&&w&&dp(()=>_e.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new ft(`Response type '${i}' is not supported`,ft.ERR_NOT_SUPPORT,f)})});const c=async i=>{if(i==null)return 0;if(_e.isBlob(i))return i.size;if(_e.isSpecCompliantForm(i))return(await new e($r.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(i)||_e.isArrayBuffer(i))return i.byteLength;if(_e.isURLSearchParams(i)&&(i=i+""),_e.isString(i))return(await h(i)).byteLength},u=async(i,s)=>_e.toFiniteNumber(i.getContentLength())??c(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:I,timeout:M,onDownloadProgress:A,onUploadProgress:C,responseType:O,headers:D,withCredentials:E="same-origin",fetchOptions:R}=ap(i),B=n||fetch;O=O?(O+"").toLowerCase():"text";let F=zx([x,I&&I.toAbortSignal()],M),N=null;const $=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await u(D,b))!==0){let Q=new e(s,{method:"POST",body:b,duplex:"half"}),le;if(_e.isFormData(b)&&(le=Q.headers.get("content-type"))&&D.setContentType(le),Q.body){const[ne,ce]=rp(k,Rl(ip(C)));b=lp(Q.body,cp,ne,ce)}}_e.isString(E)||(E=E?"include":"omit");const L=g&&"credentials"in e.prototype;if(_e.isFormData(b)){const Q=D.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&D.delete("content-type")}const W={...R,signal:F,method:f.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:L?E:void 0};N=g&&new e(s,W);let U=await(g?B(N,R):B(s,W));const q=a&&(O==="stream"||O==="response");if(a&&(A||q&&$)){const Q={};["status","statusText","headers"].forEach(ae=>{Q[ae]=U[ae]});const le=_e.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=A&&rp(le,Rl(ip(A),!0))||[];U=new r(lp(U.body,cp,ne,()=>{ce&&ce(),$&&$()}),Q)}O=O||"text";let Z=await l[_e.findKey(l,O)||"text"](U,i);return!q&&$&&$(),await new Promise((Q,le)=>{np(Q,le,{data:Z,headers:Qr.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:N})})}catch(L){throw $&&$(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,i,N,L&&L.response),{cause:L.cause||L}):ft.from(L,L&&L.code,i,N,L&&L.response)}}},Vx=new Map,fp=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,g=[r,v,e];let p=g.length,w=p,h,d,a=Vx;for(;w--;)h=g[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:Ux(n)),a=d;return d};fp();const vu={http:ox,xhr:Fx,fetch:{get:fp}};_e.forEach(vu,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const pp=t=>`- ${t}`,Gx=t=>_e.isFunction(t)||t===null||t===!1;function qx(t,n){t=_e.isArray(t)?t:[t];const{length:e}=t;let r,v;const g={};for(let p=0;p<e;p++){r=t[p];let w;if(v=r,!Gx(r)&&(v=vu[(w=String(r)).toLowerCase()],v===void 0))throw new ft(`Unknown adapter '${w}'`);if(v&&(_e.isFunction(v)||(v=v.get(n))))break;g[w||"#"+p]=v}if(!v){const p=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?p.length>1?`since :
|
|
4
|
-
`+p.map(pp).join(`
|
|
5
|
-
`):" "+pp(p[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const gp={getAdapter:qx,adapters:vu};function yu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new La(null,t)}function mp(t){return yu(t),t.headers=Qr.from(t.headers),t.data=mu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),gp.getAdapter(t.adapter||Ea.adapter,t)(t).then(function(n){return yu(t),n.data=mu.call(t,t.transformResponse,n),n.headers=Qr.from(n.headers),n},function(n){return tp(n)||(yu(t),n&&n.response&&(n.response.data=mu.call(t,t.transformResponse,n.response),n.response.headers=Qr.from(n.response.headers))),Promise.reject(n)})}const vp="1.15.2",Il={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Il[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const yp={};Il.transitional=function(t,n,e){function r(v,g){return"[Axios v"+vp+"] Transitional option '"+v+"'"+g+(e?". "+e:"")}return(v,g,p)=>{if(t===!1)throw new ft(r(g," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!yp[g]&&(yp[g]=!0,console.warn(r(g," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,g,p):!0}},Il.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function Kx(t,n,e){if(typeof t!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const g=r[v],p=Object.prototype.hasOwnProperty.call(n,g)?n[g]:void 0;if(p){const w=t[g],h=w===void 0||p(w,g,t);if(h!==!0)throw new ft("option "+g+" must be "+h,ft.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new ft("Unknown option "+g,ft.ERR_BAD_OPTION)}}const Ll={assertOptions:Kx,validators:Il},$i=Ll.validators;let ss=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Zf,response:new Zf}}async request(n,e){try{return await this._request(n,e)}catch(r){if(r instanceof Error){let v={};Error.captureStackTrace?Error.captureStackTrace(v):v=new Error;const g=(()=>{if(!v.stack)return"";const p=v.stack.indexOf(`
|
|
6
|
-
`);return p===-1?"":v.stack.slice(p+1)})();try{if(!r.stack)r.stack=g;else if(g){const p=g.indexOf(`
|
|
7
|
-
`),w=p===-1?-1:g.indexOf(`
|
|
8
|
-
`,p+1),h=w===-1?"":g.slice(w+1);String(r.stack).endsWith(h)||(r.stack+=`
|
|
9
|
-
`+g)}}catch{}}throw r}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=os(this.defaults,e);const{transitional:r,paramsSerializer:v,headers:g}=e;r!==void 0&&Ll.assertOptions(r,{silentJSONParsing:$i.transitional($i.boolean),forcedJSONParsing:$i.transitional($i.boolean),clarifyTimeoutError:$i.transitional($i.boolean),legacyInterceptorReqResOrdering:$i.transitional($i.boolean)},!1),v!=null&&(_e.isFunction(v)?e.paramsSerializer={serialize:v}:Ll.assertOptions(v,{encode:$i.function,serialize:$i.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ll.assertOptions(e,{baseUrl:$i.spelling("baseURL"),withXsrfToken:$i.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let p=g&&_e.merge(g.common,g[e.method]);g&&_e.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=Qr.concat(p,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){if(typeof i.runWhen=="function"&&i.runWhen(e)===!1)return;h=h&&i.synchronous;const s=e.transitional||du;s&&s.legacyInterceptorReqResOrdering?w.unshift(i.fulfilled,i.rejected):w.push(i.fulfilled,i.rejected)});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,c;if(!h){const i=[mp.bind(this),void 0];for(i.unshift(...w),i.push(...d),c=i.length,a=Promise.resolve(e);l<c;)a=a.then(i[l++],i[l++]);return a}c=w.length;let u=e;for(;l<c;){const i=w[l++],s=w[l++];try{u=i(u)}catch(f){s.call(this,f);break}}try{a=mp.call(this,u)}catch(i){return Promise.reject(i)}for(l=0,c=d.length;l<c;)a=a.then(d[l++],d[l++]);return a}getUri(n){n=os(this.defaults,n);const e=op(n.baseURL,n.url,n.allowAbsoluteUrls);return Xf(e,n.params,n.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(t){ss.prototype[t]=function(n,e){return this.request(os(e||{},{method:t,url:n,data:(e||{}).data}))}}),_e.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,g){return this.request(os(g||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}ss.prototype[t]=n(),ss.prototype[t+"Form"]=n(!0)});let Yx=class X0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](v);r._listeners=null}),this.promise.then=v=>{let g;const p=new Promise(w=>{r.subscribe(w),g=w}).then(v);return p.cancel=function(){r.unsubscribe(g)},p},n(function(v,g,p){r.reason||(r.reason=new La(v,g,p),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new X0(function(e){n=e}),cancel:n}}};function Jx(t){return function(n){return t.apply(null,n)}}function Xx(t){return _e.isObject(t)&&t.isAxiosError===!0}const bu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bu).forEach(([t,n])=>{bu[n]=t});function bp(t){const n=new ss(t),e=Pf(ss.prototype.request,n);return _e.extend(e,ss.prototype,n,{allOwnKeys:!0}),_e.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return bp(os(t,r))},e}const Bn=bp(Ea);Bn.Axios=ss,Bn.CanceledError=La,Bn.CancelToken=Yx,Bn.isCancel=tp,Bn.VERSION=vp,Bn.toFormData=Ml,Bn.AxiosError=ft,Bn.Cancel=Bn.CanceledError,Bn.all=function(t){return Promise.all(t)},Bn.spread=Jx,Bn.isAxiosError=Xx,Bn.mergeConfig=os,Bn.AxiosHeaders=Qr,Bn.formToJSON=t=>Qf(_e.isHTMLForm(t)?new FormData(t):t),Bn.getAdapter=gp.getAdapter,Bn.HttpStatusCode=bu,Bn.default=Bn;const{Axios:r2,AxiosError:i2,CanceledError:o2,isCancel:s2,CancelToken:a2,VERSION:l2,all:c2,Cancel:u2,isAxiosError:h2,spread:d2,toFormData:f2,AxiosHeaders:p2,HttpStatusCode:g2,formToJSON:m2,getAdapter:v2,mergeConfig:y2}=Bn,wu=Bn.create({baseURL:location.origin,timeout:6e4,params:{}});wu.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let n=`HTTP ${t.response.status} - `;t.response?.statusText&&(n+=`${t.response.statusText} `),t.response?.config?.data&&(n+=`${t.response.config.data} `),t.response?.data?.message?n+=`${t.response.data.message}`:t.response?.data?.exception?n+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(n+=`${t.response.data.error.class} `),n+=`${t.response.data.error.message}`):n+=`${t.response?.data}`;const{$cosmosNotify:e}=window;throw e&&e.serious({title:"Network error",body:n}),t}else throw t});const Ol=async function(t,n,{data:e,params:r={},headers:v,noAuth:g=!1,noScope:p=!1,onUploadProgress:w=!1}={}){if(!g){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}v.Authorization=localStorage.openc3Token}return v.manual=!0,!p&&!r.scope&&(r.scope=window.openc3Scope),wu({method:t,url:n,data:e,params:r,headers:v,onUploadProgress:w})},xu={Accept:"application/json"},wp={...xu,"Content-Type":"application/json"},Zx=Gn("l",{get:function(t,{params:n,headers:e=xu,noScope:r,noAuth:v,onUploadProgress:g}={}){return Ol("get",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:g})},put:function(t,{data:n,params:e,headers:r=wp,noScope:v,noAuth:g,onUploadProgress:p}={}){return Ol("put",t,{data:n,params:e,headers:r,noScope:v,noAuth:g,onUploadProgress:p})},post:function(t,{data:n,params:e,headers:r=wp,noScope:v,noAuth:g,onUploadProgress:p}={}){return Ol("post",t,{data:n,params:e,headers:r,noScope:v,noAuth:g,onUploadProgress:p})},delete:function(t,{params:n,headers:e=xu,noScope:r,noAuth:v,onUploadProgress:g}={}){return Ol("delete",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:g})}});let Nl=()=>({emit(t,...n){for(let e=this.events[t]||[],r=0,v=e.length;r<v;r++)e[r](...n)},events:{},on(t,n){return(this.events[t]||=[]).push(n),()=>{this.events[t]=this.events[t]?.filter(e=>n!==e)}}}),Oa=class extends Error{constructor(n,e){n instanceof Error?(super(n.message),this.cause=n):super(n),this.reason=e,this.name="ReasonError"}},Cu=class extends Oa{constructor(n){super("Rejected",n),this.name="SubscriptionRejectedError"}};class Qx extends Oa{constructor(n){super(n||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Hi extends Oa{constructor(n,e){e?super(n,e):super("Disconnected",n),this.name="DisconnectedError"}}class e1 extends Hi{constructor(n){super(n,"stale_connection"),this.name="StaleConnectionError"}}function xp(t){return t?`{${Object.keys(t).sort().filter(n=>t[n]!==void 0).map(n=>{let e=JSON.stringify(t[n]);return`${JSON.stringify(n)}:${e}`}).join(",")}}`:""}class t1{constructor(n){this.channel=n,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",n=>{if(n.type==="info"){this._state||(this._state=this.stateFromInfo(n));return}this._state&&(n.type==="join"?this._state[n.id]=n.info:n.type==="leave"&&delete this._state[n.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(n=>n()),this.listeners.length=0}async join(n,e){if(!this._info)return this._info={id:String(n),info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let n=await this.channel.perform("$presence:leave");return delete this._info,n}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let n=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(n),this._state}finally{delete this._promise}}stateFromInfo(n){return n.records.reduce((e,{id:r,info:v})=>(e[r]=v,e),{})}}const as=Symbol("state");let Cp=class{constructor(n={}){this.emitter=Nl(),this.params=Object.freeze(n),this.presence=new t1(this),this.initialConnect=!0,this[as]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=xp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[as]}attached(n){if(this.receiver){if(this.receiver!==n)throw Error("Already connected to a different receiver");return!1}return this.receiver=n,!0}connecting(){this[as]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[as]="connected";let n=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(){if(this.state==="connected")throw Error("Already connected");this[as]="connected";let n=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:n})}disconnected(n){this.state==="disconnected"||this.state==="closed"||(this[as]="disconnected",this.presence.reset(),this.emit("disconnect",n))}closed(n){this.state!=="closed"&&(this[as]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",n))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(n,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,n,e)}async send(n){return this.perform(void 0,n)}async whisper(n){try{await this.perform("$whisper",n)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(n,e){this.emit("message",n,e)}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}emit(n,...e){return this.emitter.emit(n,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((n,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(v=>v()),n()})),r.push(this.on("close",v=>{r.forEach(g=>g()),e(v||new Oa("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}};class n1{constructor(n){this.id=n,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(n){this.channels.includes(n)||this.channels.push(n)}remove(n){let e=this.channels.indexOf(n);e>-1&&this.channels.splice(e,1)}notify(n,...e){this.state=n==="restored"?"connected":n,e.length===1?this.channels.forEach(r=>r[n](e[0])):this.channels.forEach(r=>r[n]())}pending(n){this._checkIntent(n);let e=this._pendings[0];return!e||e.intent!==n?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(n){this._checkIntent(n);let e,r={promise:new Promise(g=>{e=g}),intent:n,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},v=this._pendingTop;return this._pendings.push(r),v&&await v.promise,this.gvl&&await this.gvl.acquire(r,n),r.acquired=!0,r}close(n){this.disposed=!0,this.intent=void 0,this.notify("closed",n)}_checkIntent(n){if(!(n==="unsubscribed"||n==="subscribed"))throw Error(`Unknown subscription intent: ${n}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(n){let e=this._pendingTop;return!e||e.acquired||e.intent!==n?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class r1{constructor(){this.queue=[]}async acquire(n,e){e==="subscribed"&&(this.queue.push(n.promise.then(()=>{this.queue.splice(this.queue.indexOf(n),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class i1{constructor(n){n.concurrentSubscribes===!1&&(this.glv=new r1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(n){return this._subscriptions[n]}create(n,{subscribe:e,unsubscribe:r}){let v=this._subscriptions[n]=new n1(n);return v.remoteId=this._localToRemote[n],v.subscriber=e,v.unsubscriber=r,v.gvl=this.glv,v}remove(n){delete this._subscriptions[n],delete this._localToRemote[n]}storeRemoteId(n,e){this._localToRemote[n]=e;let r=this.get(n);r&&(r.remoteId=e)}}class o1{constructor(n={}){this.subscriptions=new i1(n),this._pendingMessages=[],this._remoteToLocal={}}subscribe(n,e){this._remoteToLocal[e]=n,this.subscriptions.storeRemoteId(n,e),this.flush(e)}unsubscribe(n){let e=this.subscriptions.get(n);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(n)}transmit(n,e,r){let v=this._remoteToLocal[n];if(!v){this._pendingMessages.push([n,e,r]);return}let g=this.subscriptions.get(v);g&&g.channels.forEach(p=>{p.receive(e,r)})}notify(n,e,r){let v=this._remoteToLocal[n];if(!v)return;let g=this.subscriptions.get(v);g&&g.channels.forEach(p=>p.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(n=>n.channels)}flush(n){let e=[];for(let r of this._pendingMessages)r[0]===n?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const kp={debug:0,info:1,warn:2,error:3};let _p=class{constructor(n){this.level=n||"warn"}log(n,e,r){kp[n]<kp[this.level]||this.writeLogEntry(n,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(n,e){this.log("debug",n,e)}info(n,e){this.log("info",n,e)}warn(n,e){this.log("warn",n,e)}error(n,e){this.log("error",n,e)}},Na=class extends _p{writeLogEntry(){}};class s1{encode(n){return JSON.stringify(n)}decode(n){try{return JSON.parse(n)}catch{}}}let a1=0;class Ap{constructor(n={}){let{logger:e}=n;this.logger=e||new Na,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=n.subscribeCooldownInterval||250,this.subscribeRetryInterval=n.subscribeRetryInterval||5e3}attached(n){this.cable=n}subscribe(n,e){let r={channel:n};e&&Object.assign(r,e);let v=xp(r);if(this.pendingUnsubscriptions[v]){let p=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${p}`,v),new Promise(w=>{setTimeout(()=>{w(this.subscribe(n,e))},p)})}if(this.pendingSubscriptions[v])return this.logger.warn("subscription is already pending, skipping",v),Promise.reject(Error("Already subscribing"));let g=this.subscribeRetryInterval;return new Promise((p,w)=>{let h=++a1;this.pendingSubscriptions[v]={resolve:p,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(v)),this.maybeRetrySubscribe(h,v,g)})}buildSubscribeRequest(n){return{command:"subscribe",identifier:n}}maybeRetrySubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(n,e,r))},r)}maybeExpireSubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(delete this.pendingSubscriptions[e],v.reject(new Qx(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(n){return this.cable.send({command:"unsubscribe",identifier:n}),this.pendingUnsubscriptions[n]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[n]},this.subscribeCooldownInterval),Promise.resolve()}perform(n,e,r){return e==="$whisper"?this.whisper(n,r):(r||(r={}),r.action||=e,this.cable.send({command:"message",identifier:n,data:JSON.stringify(r)}),Promise.resolve())}whisper(n,e){return this.cable.send({command:"whisper",identifier:n,data:e}),Promise.resolve()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v,reason:g,reconnect:p}=n;if(e==="ping")return this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="welcome"){let w=n.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new Hi(g);this.reset(w),p===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Cu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(v)return{identifier:r,message:v};this.logger.warn(`unknown message type: ${e}`,{message:n})}reset(n){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(n);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Sp=()=>Date.now()/1e3|0;let l1=class extends Ap{constructor(n={}){super(n),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=n.historyTimestamp,this.disableSessionRecovery=n.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=Sp()),this.sessionId=void 0,this.sendPongs=n.pongs}reset(n){for(let e in this.pendingPresence)this.pendingPresence[e].reject(n);return this.pendingPresence={},super.reset()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v}=n;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(n);if(e==="reject_subscription")return super.receive(n);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(n);if(e==="ping")return this.restoreSince&&(this.restoreSince=Sp()),this.sendPongs&&this.sendPong(),this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",n),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",n),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=n.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),n.restored){let g=n.restored_ids||Object.keys(this.subscriptionStreams);for(let p of g)this.cable.send({identifier:p,command:"history",history:this.historyRequestFor(p)}),this.presenceInfo[p]&&this.cable.send({identifier:p,command:"join",presence:this.presenceInfo[p]});return this.cable.restored(g)}return this.cable.connected(this.sessionId)}if(e==="presence"){let g=v.type;if(g==="info"){let p=this.pendingPresence[r];p&&(delete this.pendingPresence[r],p.resolve(v))}else if(g==="error"){let p=this.pendingPresence[r];p&&(delete this.pendingPresence[r],p.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:v}}if(v){let g=this.trackStreamPosition(r,n.stream_id,n.epoch,n.offset);return{identifier:r,message:v,meta:g}}this.logger.warn(`unknown message type: ${e}`,{message:n})}perform(n,e,r){switch(e){case"$presence:join":return this.join(n,r);case"$presence:leave":return this.leave(n,r);case"$presence:info":return this.presence(n,r)}return super.perform(n,e,r)}unsubscribe(n){return delete this.presenceInfo[n],super.unsubscribe(n)}buildSubscribeRequest(n){let e=super.buildSubscribeRequest(n),r=this.historyRequestFor(n);r&&(e.history=r,this.pendingHistory[n]=!0);let v=this.presenceInfo[n];return v&&(e.presence=v),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(n){let e={},r=!1;if(this.subscriptionStreams[n])for(let v of this.subscriptionStreams[n]){let g=this.streamsPositions[v];g&&(r=!0,e[v]=g)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(n,e,r,v){if(!(!e||!r))return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),this.subscriptionStreams[n].add(e),this.streamsPositions[e]={epoch:r,offset:v},{stream:e,epoch:r,offset:v}}async sendPong(){await new Promise(n=>setTimeout(n,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(n,e){return this.presenceInfo[n]=e,this.cable.send({command:"join",identifier:n,presence:e}),Promise.resolve()}async leave(n,e){return delete this.presenceInfo[n],this.cable.send({command:"leave",identifier:n,presence:e}),Promise.resolve()}presence(n,e){return this.pendingPresence[n]?(this.logger.warn("presence is already pending, skipping",n),Promise.reject(Error("presence request is already pending"))):new Promise((r,v)=>{this.pendingPresence[n]={resolve:r,reject:v},this.cable.send({command:"presence",identifier:n,data:e})})}};class c1 extends Oa{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class $p extends Cp{static identifier="__ghost__";constructor(n,e){super(e),this.channelId=n}set channelId(n){this._channelId=n}get channelId(){return this._channelId}}const u1="$pubsub";let Mp=class extends Cp{static identifier=u1;async perform(n,e){if(n.startsWith("$"))return super.perform(n,e);throw Error("not implemented")}};const ls=Symbol("state");let h1=class{constructor({transport:t,protocol:n,encoder:e,logger:r,lazy:v,hubOptions:g,performFailures:p,transportConfigurator:w}){this.emitter=Nl(),this.transport=t,this.encoder=e,this.logger=r||new Na,this.protocol=n,this.performFailures=p||"throw",this.protocol.attached(this),this.hub=new o1(g||{}),this[ls]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,v===!1&&this.connect().catch(()=>{})}get state(){return this[ls]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[ls]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(e){this.handleClose(e)}return n}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ls]="connected",this.recovering&&this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",new Hi("recovery_failed"))),this.hub.subscriptions.all().forEach(n=>this._resubscribe(n));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[ls]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Hi("recovery_failed")),this._resubscribe(r))});let n=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}notify(t,n,e){n&&typeof n!="string"&&(e=n,n=void 0),n?this.hub.notify(n,"info",{type:t,data:e}):this.emit("info",{type:t,data:e})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new Hi(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[ls]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(n=>n.notify("connecting")):this.hub.subscriptions.all().forEach(n=>{n.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let n;t&&(n=t instanceof Hi?t:new Hi(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[ls]="closed";let e=n||new Hi("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",n)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let n=this.encoder.decode(t);if(n===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",n);let e=this.protocol.receive(n);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:v,message:g,meta:p}=e;r?this.hub.notify(v,r,g):this.hub.transmit(v,g,p)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let n=this.encoder.encode(t);if(n===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(n)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let n=new Mp({stream_name:t});return this.subscribe(n)}streamFromSigned(t){let n=new Mp({signed_stream_name:t});return this.subscribe(n)}subscribeTo(t,n){let e,r;return typeof t=="string"&&(r=t,t=$p),e=r?new t(r,n):new t(n),this.subscribe(e)}subscribe(t){if(!t.attached(this))return t;let n=t.identifier;t.connecting();let e=this.hub.subscriptions.get(n)||this.hub.subscriptions.create(n,{subscribe:r=>this._subscribe(r,t.channelId,t.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(t),e.intent==="subscribed"&&e.state==="connected"&&t.connected(),e.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,n,e){let r=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let v=await t.acquire("subscribed");if(v.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),v.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),v.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),v.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),t.notify("connected"),v.release();return}let g={identifier:n,params:e};this.logger.debug("subscribing",g);try{let p=await this.protocol.subscribe(n,e);this.hub.subscribe(r,p),this.logger.debug("subscribed",{...g,remoteId:p}),t.notify("connected")}catch(p){if(p){if(p instanceof Cu&&this.logger.warn("rejected",g),p instanceof Hi){this.logger.debug("disconnected during subscription; will retry on connect",g),v.release();return}this.logger.error("failed to subscribe",{error:p,...g})}t.close(p),this.hub.unsubscribe(r)}v.release()}unsubscribe(t){let n=t.identifier,e=this.hub.subscriptions.get(n);if(!e)throw Error(`Subscription not found: ${n}`);e.remove(t),t.closed(),e.maybeUnsubscribe()}async _unsubscribe(t){let n=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:n});let e=await t.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:n}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:n}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:n,intent:t.intent}),e.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:n}),e.release();return}let r=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:n}),t.close(),this.hub.unsubscribe(n),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:n})}catch(v){v&&(v instanceof Hi?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:n,error:v}):this.logger.error("unsubscribe failed",{id:n,error:v}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(n)):t.state="closed",e.release()}async perform(t,n,e){if(this.performFailures==="throw")return this._perform(t,n,e);try{return await this._perform(t,n,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(t,n,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new c1;let r=this.hub.subscriptions.get(t);if(!r)throw Error(`Subscription not found: ${t}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let v=r.remoteId,g={id:v,action:n,payload:e};this.logger.debug("perform",g);try{let p=await this.protocol.perform(v,n,e);return p&&this.logger.debug("perform result",{message:p,request:g}),p}catch(p){throw this.logger.error("perform failed",{error:p,request:g}),p}}on(t,n){return this.emitter.on(t,n)}once(t,n){let e=this.emitter.on(t,(...r)=>{e(),n(...r)});return e}emit(t,...n){return this.emitter.emit(t,...n)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,n)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),t()})),e.push(this.on("close",r=>{e.forEach(v=>v()),n(r)})),e.push(this.on("disconnect",r=>{e.forEach(v=>v()),n(r)}))}),this._pendingConnect)}};const d1={maxMissingPings:2,maxReconnectAttempts:1/0},Vs=()=>Date.now(),Tp=(t,n)=>{n=n||{};let{backoffRate:e,jitterRatio:r,maxInterval:v}=n;return e=e||2,r===void 0&&(r=.5),g=>{let p=t*e**g,w=p*e,h=p+(w-p)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),v&&v<h&&(h=v),h}};let Rp=class{constructor({pingInterval:t,...n}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(n=Object.assign({},d1,n),this.strategy=n.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=n.maxMissingPings,this.maxReconnectAttempts=n.maxReconnectAttempts,this.logger=n.logger||new Na,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Vs()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Vs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Vs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Vs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Vs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=Vs()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new e1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class f1{constructor(n,e={}){this.transports=n,this.transport=null,this.emitter=Nl(),this.unbind=[],this.logger=e.logger||new Na}displayName(){return"fallbacked transport"}async open(){for(let n=0;n<this.transports.length;n++){let e=this.transports[n];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(n){if(!this.transport)throw new Error("No transport is open");this.transport.send(n)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(n,e){this.transports.forEach(r=>{r.setParam(n,e)})}setToken(n,e){this.transports.forEach(r=>{r.setToken(n,e)})}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(n=>n()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",n=>{this.emitter.emit("data",n)}),this.transport.on("close",n=>{this.emitter.emit("close",n)}),this.transport.on("error",n=>{this.emitter.emit("error",n)}))}}let p1=class{constructor(n,e={}){this.url=n;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Nl();let{format:v,subprotocol:g,authStrategy:p}=e;this.format=v||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=p||"param",this.authProtocol="",this.subprotocol=g}displayName(){return"WebSocket("+this.url+")"}open(){let n=this.subprotocol;return this.authStrategy==="sub-protocol"&&(n=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,n,this.connectionOptions):this.ws=new this.Impl(this.url,n),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let v=[];v.push(this.once("open",()=>{v.forEach(g=>g()),e()})),v.push(this.once("close",()=>{v.forEach(g=>g()),r(Error("WS connection closed"))}))})}setURL(n){this.url=n}setParam(n,e){let r=new URL(this.url);r.searchParams.set(n,e);let v=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(v)}setToken(n,e="jid"){if(this.authStrategy==="param")this.setParam(e,n);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(v=>v.toLowerCase()===r)||r,this.connectionOptions.headers[r]=n}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${n}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(n){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(n)}close(){this.ws?this.onclose():this.connected=!1}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}initListeners(){this.ws.onerror=n=>{this.connected&&this.emitter.emit("error",n.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=n=>{let e=n.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}};class g1{constructor(n){this.channel=n}notify(n,...e){typeof this[n]=="function"&&this[n](...e)}perform(n,e={}){this.channel.perform(n,e)}send(n){this.channel.send(n)}whisper(n){return this.channel.whisper(n)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class m1 extends $p{constructor(n,e,r){super(n,e),this.subscription=new g1(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:v})=>this.subscription.notify("connected",{reconnected:v})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",v=>this.subscription.notify("received",v)),this.on("close",v=>{v&&v instanceof Cu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}let v1=class{constructor(n){this.cable=n}create(n,e){let r,v;typeof n=="object"?(r=n.channel,delete n.channel,v=n):(r=n,v={});let g=new m1(r,v,e);return g.subscription.notify("initialized"),this.cable.subscribe(g),g.subscription}findAll(n){return this.cable.hub.channels.filter(e=>e.identifier===n).map(e=>e.subscription)}},y1=class{constructor(n){this.cable=n,this.subscriptions=new v1(n)}send(n){return this.cable.send(n)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}};const Ep={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function b1(t,n){if(typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),n=n||{},!t&&!n.transport)throw Error("URL or transport must be specified");n=Object.assign({},Ep,n);let{protocol:e,websocketImplementation:r,websocketFormat:v,websocketOptions:g,websocketAuthStrategy:p,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:c,monitor:u,pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:I,historyTimestamp:M,protocolOptions:A,concurrentSubscribes:C,performFailures:O,transportConfigurator:D,auth:E}=n;if(d=d||new Na(h),typeof e=="string"){x=x||e;let F=e.substring(0,e.lastIndexOf("-")),N=e.substring(e.lastIndexOf("-")+1);if(A=A||{},F==="actioncable-v1")e=new Ap({logger:d,...A});else if(F==="actioncable-v1-ext")e=new l1({logger:d,historyTimestamp:M,...A});else throw Error(`Protocol is not supported yet: ${e}`);if(N==="json")l=l||new s1,v=v||"text";else if(N==="msgpack"){if(v="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(N==="protobuf"){if(v=v||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");a=a||new p1(t,{websocketImplementation:r,websocketOptions:g,subprotocol:x,authStrategy:p,format:v}),w&&(a=new f1([a,...w],{logger:d})),E&&E.token&&a.setToken(E.token,E.param||"jid"),s=s||Tp(i),u!==!1&&(u=u||new Rp({pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,logger:d}));let R={concurrentSubscribes:C},B=new h1({protocol:e,transport:a,encoder:l,logger:d,lazy:c,hubOptions:R,performFailures:O,transportConfigurator:D});return u&&(u.watch(B),B.monitor=u),I&&w1(B,async()=>{try{await I(a)}catch(F){return d.error("Failed to refresh authentication token: "+F),!1}return B.connect().catch(()=>{}),!0}),B}function w1(t,n){let e=!1;t.on("connect",()=>e=!1),t.on("close",async r=>{if(r){if(e){t.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await n())}})}class x1 extends _p{writeLogEntry(n,e,r){r?console[n](e,r):console[n](e)}}class C1 extends Rp{watch(n){super.watch(n),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let n=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=v=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:v})},r=()=>this.disconnect(new Hi("page_frozen"));document.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",n,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(n){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:n.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(n))}}const k1=["cable","action-cable"],_1="/cable",Dl=(t,n)=>{for(let e of k1){let r=t.head.querySelector(`meta[name='${e}-${n}']`);if(r)return r.getAttribute("content")}},Ip=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,A1=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"url");if(t)return Ip(t)}return Ip(_1)},S1=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"history-timestamp");if(t)return t|0}},$1=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token")},M1=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token-param")};function T1(t,n){typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),t=t||A1(),n=n||{},n.historyTimestamp||=S1();let e=$1();if(e){let d=M1();n.auth=Object.assign({token:e,param:d},n.auth||{})}n=Object.assign({},Ep,n);let{logLevel:r,logger:v,pingInterval:g,reconnectStrategy:p,maxMissingPings:w,maxReconnectAttempts:h}=n;return v=n.logger=n.logger||new x1(r),p=n.reconnectStrategy=n.reconnectStrategy||Tp(g),n.monitor!==!1&&(n.monitor=n.monitor||new C1({pingInterval:g,reconnectStrategy:p,maxMissingPings:w,maxReconnectAttempts:h,logger:v})),b1(t,n)}function R1(t,n){let e=T1(t,n);return new y1(e)}class E1{constructor(n="/openc3-api/cable",e="/openc3-api/auth/otp"){this._cable=null,this._url=n,this._otpUrl=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(n,e,r={},v={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(g=>(g&&OpenC3Auth.setTokens(),Zx.get(this._otpUrl,{params:{scope:e}}))).then(({data:g})=>{if(this._cable==null){const p=new URL(this._url,document.baseURI);p.searchParams.set("scope",e),p.searchParams.set("authorization",g),this._cable=R1(p.href)}return this._cable.subscriptions.create({channel:n,...v},r)})}recordPing(){}}Gn("z",E1),Gn("N",class{constructor(n,e,r="",v=""){this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=e,this.usage=r,this.url=v}});function Da(t){return I1.test(t)}const I1=/^-?[0-9]+$/;function Lp(t){return L1.test(t)}const L1=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Op(t,n){if(Da(t))return Number.isSafeInteger(Number.parseInt(t,10));const e=Number.parseFloat(t),r=String(e);if(t===r)return!0;const v=Np(t),g=Np(r);return!!(v===g||n?.approx===!0&&!Da(t)&&g.length>=14&&v.startsWith(g.substring(0,14)))}let Pa=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function O1(t){if(Op(t,{approx:!1}))return;if(Da(t))return Pa.truncate_integer;const n=Number.parseFloat(t);return Number.isFinite(n)?n===0?Pa.underflow:Pa.truncate_float:Pa.overflow}function Np(t){const{start:n,end:e}=N1(t),r=t.substring(n,e),v=r.indexOf(".");return v===-1?r:r.substring(0,v)+r.substring(v+1)}function N1(t){let n=0;for(t[0]==="-"&&n++;t[n]==="0"||t[n]===".";)n++;let e=t.lastIndexOf("e");for(e===-1&&(e=t.lastIndexOf("E")),e===-1&&(e=t.length);(t[e-1]==="0"||t[e-1]===".")&&e>n;)e--;return{start:n,end:e}}class D1{isLosslessNumber=!0;constructor(n){if(!Lp(n))throw new Error(`Invalid number (value: "${n}")`);this.value=n}valueOf(){const n=O1(this.value);if(n===void 0||n===Pa.truncate_float)return Number.parseFloat(this.value);if(Da(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${n} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function P1(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function F1(t){return new D1(t)}function z1(t,n){return ku({"":t},"",t,n)}function ku(t,n,e,r){return Array.isArray(e)?r.call(t,n,B1(e,r)):e&&typeof e=="object"&&!P1(e)?r.call(t,n,W1(e,r)):r.call(t,n,e)}function W1(t,n){for(const e of Object.keys(t)){const r=ku(t,e,t[e],n);r!==void 0?t[e]=r:delete t[e]}return t}function B1(t,n){for(let e=0;e<t.length;e++)t[e]=ku(t,String(e),t[e],n);return t}function j1(t,n,e){const r=typeof e=="function"?{parseNumber:e}:e,v=r?.parseNumber??F1,g=r?.onDuplicateKey??O;let p=0;const w=a();return b(w),I(),n?z1(w,n):w;function h(){if(t.charCodeAt(p)===K1){p++,c();const W={};let U=!0;for(;p<t.length&&t.charCodeAt(p)!==Pp;){U?U=!1:(s(),c());const q=p,Z=u();if(Z===void 0){C();return}c(),f();const Q=a();if(Q===void 0){F();return}if(Object.prototype.hasOwnProperty.call(W,Z)&&!_u(Q,W[Z])){const le=g({key:Z,position:q+1,oldValue:W[Z],newValue:Q});le!==void 0&&(W[Z]=le)}else W[Z]=Q}return t.charCodeAt(p)!==Pp&&D(),p++,W}}function d(){if(t.charCodeAt(p)===Y1){p++,c();const W=[];let U=!0;for(;p<t.length&&t.charCodeAt(p)!==Fp;){U?U=!1:s();const q=a();x(q),W.push(q)}return t.charCodeAt(p)!==Fp&&E(),p++,W}}function a(){c();const W=u()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return c(),W}function l(W,U){if(t.slice(p,p+W.length)===W)return p+=W.length,U}function c(){for(;H1(t.charCodeAt(p));)p++}function u(){if(t.charCodeAt(p)===Au){p++;let W="";for(;p<t.length&&t.charCodeAt(p)!==Au;){if(t.charCodeAt(p)===q1){const U=t[p+1],q=G1[U];q!==void 0?(W+=q,p++):U==="u"?Pl(t.charCodeAt(p+2))&&Pl(t.charCodeAt(p+3))&&Pl(t.charCodeAt(p+4))&&Pl(t.charCodeAt(p+5))?(W+=String.fromCharCode(Number.parseInt(t.slice(p+2,p+6),16)),p+=5):N(p):B(p)}else V1(t.charCodeAt(p))?W+=t[p]:R(t[p]);p++}return A(),p++,W}}function i(){const W=p;if(t.charCodeAt(p)===zp&&(p++,M(W)),t.charCodeAt(p)===Su)p++;else if(U1(t.charCodeAt(p)))for(p++;Fl(t.charCodeAt(p));)p++;if(t.charCodeAt(p)===rC)for(p++,M(W);Fl(t.charCodeAt(p));)p++;if(t.charCodeAt(p)===lC||t.charCodeAt(p)===aC)for(p++,(t.charCodeAt(p)===zp||t.charCodeAt(p)===eC)&&p++,M(W);Fl(t.charCodeAt(p));)p++;if(p>W)return v(t.slice(W,p))}function s(){if(t.charCodeAt(p)!==nC)throw new SyntaxError(`Comma ',' expected after value ${L()}`);p++}function f(){if(t.charCodeAt(p)!==iC)throw new SyntaxError(`Colon ':' expected after property name ${L()}`);p++}function b(W){if(W===void 0)throw new SyntaxError(`JSON value expected ${L()}`)}function x(W){if(W===void 0)throw new SyntaxError(`Array item expected ${L()}`)}function I(){if(p<t.length)throw new SyntaxError(`Expected end of input ${L()}`)}function M(W){if(!Fl(t.charCodeAt(p))){const U=t.slice(W,p);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${L()}`)}}function A(){if(t.charCodeAt(p)!==Au)throw new SyntaxError(`End of string '"' expected ${L()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${L()}`)}function O(W){let{key:U,position:q}=W;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${q}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${L()}`)}function E(){throw new SyntaxError(`Array item or end of array ']' expected ${L()}`)}function R(W){throw new SyntaxError(`Invalid character '${W}' ${$()}`)}function B(W){const U=t.slice(W,W+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function F(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function N(W){const U=t.slice(W,W+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${p}`}function k(){return p<t.length?`but got '${t[p]}'`:"but reached end of input"}function L(){return`${k()} ${$()}`}}function H1(t){return t===J1||t===X1||t===Z1||t===Q1}function Pl(t){return t>=Su&&t<=$u||t>=oC&&t<=cC||t>=sC&&t<=uC}function Fl(t){return t>=Su&&t<=$u}function U1(t){return t>=tC&&t<=$u}function V1(t){return t>=32&&t<=1114111}function _u(t,n){return t===n?!0:Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((e,r)=>_u(e,n[r])):Dp(t)&&Dp(n)?[...new Set([...Object.keys(t),...Object.keys(n)])].every(e=>_u(t[e],n[e])):!1}function Dp(t){return typeof t=="object"&&t!==null}const G1={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
10
|
-
`,r:"\r",t:" "},q1=92,K1=123,Pp=125,Y1=91,Fp=93,J1=32,X1=10,Z1=9,Q1=13,Au=34,eC=43,zp=45,Su=48,tC=49,$u=57,nC=44,rC=46,iC=58,oC=65,sC=97,aC=69,lC=101,cC=70,uC=102;function Wp(t,n,e,r){return v(t);function v(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!Lp(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h?.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return g(h);if(h&&typeof h=="object")return p(h)}function g(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const c=h[l];typeof c<"u"&&typeof c!="function"?a+=v(c):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function p(h,d){if(typeof h.toJSON=="function")return Wp(h.toJSON(),n,e,void 0);const a=Array.isArray(n)?n.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,c="{";for(const u of a){const i=h[u];if(w(u,i)){l?l=!1:c+=",";const s=JSON.stringify(u);c+=`${s}:`,c+=v(i)}}return c+="}",c}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function hC(t){return Da(t)&&!Op(t)?BigInt(t):parseFloat(t)}Gn("J",class{id=1;constructor(){}async exec(n,e,r={},v={},g=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,v.manual=!0,(await wu.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...v},timeout:g,transformRequest:[(p,w)=>Wp(p)],transformResponse:[p=>{try{return j1(p,void 0,hC)}catch{const w=typeof p=="string"?p.substring(0,200):String(p),h=new Error(`Server returned non-JSON response: ${w}`);throw h.name="ServerError",h}}]})).data.result}catch(p){let w=new Error;throw p.response?(w.name=p.response.data.error.data.class,w.message=p.response.data.error.data.message,w.object=p.response.data.error):p.request?(w.name="Request error",w.message="Request error, no response received"):w=p,w}}decode_openc3_type(n){if(n!==null&&typeof n=="object"&&n.json_class=="Float"&&n.raw){if(n.raw=="NaN")return NaN;if(n.raw=="Infinity")return 1/0;if(n.raw=="-Infinity")return-1/0}return null}encode_openc3_type(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(n=>{n&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(n){return this.exec("set_offline_access",[n])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(n,e,r,v,g){return this.exec("map_target_to_interface",[n,e],{cmd_only:r,tlm_only:v,unmap_old:g})}unmap_target_from_interface(n,e,r,v){return this.exec("unmap_target_from_interface",[n,e],{cmd_only:r,tlm_only:v})}connect_interface(n,...e){return e.length>0?this.exec("connect_interface",[n,...e]):this.exec("connect_interface",[n])}disconnect_interface(n){return this.exec("disconnect_interface",[n])}interface_cmd(n,e,...r){return this.exec("interface_cmd",[n,e,...r])}interface_target_enable(n,e,r=!1,v=!1){return this.exec("interface_target_enable",[n,e],{cmd_only:r,tlm_only:v})}interface_target_disable(n,e,r=!1,v=!1){return this.exec("interface_target_disable",[n,e],{cmd_only:r,tlm_only:v})}interface_details(n){return this.exec("interface_details",[n])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(n,e,r,v,g){return this.exec("map_target_to_router",[n,e],{cmd_only:r,tlm_only:v,unmap_old:g})}unmap_target_from_router(n,e,r,v){return this.exec("unmap_target_from_router",[n,e],{cmd_only:r,tlm_only:v})}connect_router(n){return this.exec("connect_router",[n])}disconnect_router(n){return this.exec("disconnect_router",[n])}router_target_enable(n,e,r=!1,v=!1){return this.exec("router_target_enable",[n,e],{cmd_only:r,tlm_only:v})}router_target_disable(n,e,r=!1,v=!1){return this.exec("router_target_disable",[n,e],{cmd_only:r,tlm_only:v})}router_details(n){return this.exec("router_details",[n])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(n){return this.exec("get_tlm_cnts",[n])}get_item(n,e,r){return this.exec("get_item",[n,e,r])}get_param(n,e,r){return this.exec("get_param",[n,e,r])}get_parameter(n,e,r){return this.exec("get_param",[n,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(n){return this.exec("set_limits_set",[n])}get_target(n){return this.exec("get_target",[n])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(n,e){return this.exec("get_tlm",[n,e])}get_telemetry(n,e){return this.exec("get_tlm",[n,e])}get_all_tlm(n){return this.exec("get_all_tlm",[n])}get_all_telemetry(n){return this.exec("get_all_tlm",[n])}get_all_tlm_names(n,e=!1){return this.exec("get_all_tlm_names",[n],{hidden:e})}get_all_telemetry_names(n){return this.exec("get_all_tlm_names",[n])}get_all_tlm_item_names(n){return this.exec("get_all_tlm_item_names",[n])}async get_tlm_packet(n,e,r,v=30){const g=await this.exec("get_tlm_packet",[n,e],{type:r,stale_time:v});if(g!=null){let p=g.length,w=null;for(let h=0;h<p;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}get_packet_derived_items(n,e){return this.exec("get_packet_derived_items",[n,e])}get_tlm_buffer(n,e){return this.exec("get_tlm_buffer",[n,e])}get_tlm_available(n){return this.exec("get_tlm_available",[n])}async get_tlm_values(n,e=30,r=null,v=null,g=null){let p={stale_time:e};r!==null&&(p.cache_timeout=r),v!==null&&(p.start_time=v.toISOString()),g!==null&&(p.end_time=g.toISOString());const w=await this.exec("get_tlm_values",[n],p,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(n,e,r){return this.exec("get_limits",[n,e,r])}async tlm(n,e,r,v="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[n]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(e))g=await this.exec("tlm",[n],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED or FORMATTED.`,w}else g=await this.exec("tlm",[n,e,r],{type:v});let p=this.decode_openc3_type(g);return p!==null&&(g=p),g}async inject_tlm(n,e,r=null,v="CONVERTED",g=!1){await this.exec("inject_tlm",[n,e,r],{type:v,stored:g})}set_tlm(n,e,r,v){return this.exec("set_tlm",[n,e,r],{type:v})}override_tlm(n,e,r,v){return this.exec("override_tlm",[n,e,r],{type:v})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(n,e,r,v){return this.exec("normalize_tlm",[n,e,r],{type:v})}get_all_cmds(n){return this.exec("get_all_cmds",[n])}get_all_commands(n){return this.exec("get_all_cmds",[n])}get_all_cmd_names(n,e=!1){return this.exec("get_all_cmd_names",[n],{hidden:e})}get_all_command_names(n){return this.exec("get_all_cmd_names",[n])}get_cmd(n,e){return this.exec("get_cmd",[n,e])}get_command(n,e){return this.exec("get_cmd",[n,e])}get_cmd_cnts(n){return this.exec("get_cmd_cnts",[n])}get_cmd_value(n,e,r,v="CONVERTED"){return this.exec("get_cmd_value",[n,e,r,v])}get_cmd_buffer(n,e){return this.exec("get_cmd_buffer",[n,e])}_cmd(n,e,r,v,g,p={}){let w=null;for(let h in v)Object.prototype.hasOwnProperty.call(v,h)&&(w=this.encode_openc3_type(v[h]),w!==null&&(v[h]=w));return this.exec(n,[e,r,v],p,g)}get_cmd_hazardous(n,e,r,v={}){return e===void 0?this.exec("get_cmd_hazardous",n,{},v):this._cmd("get_cmd_hazardous",n,e,r,v)}cmd(n,e,r,v={},g={}){return e===void 0?this.exec("cmd",n,g,v):this._cmd("cmd",n,e,r,v,g)}cmd_no_range_check(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_no_range_check",n,g,v):this._cmd("cmd_no_range_check",n,e,r,v,g)}cmd_raw(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_raw",n,g,v):this._cmd("cmd_raw",n,e,r,v,g)}cmd_raw_no_range_check(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_raw_no_range_check",n,g,v):this._cmd("cmd_raw_no_range_check",n,e,r,v,g)}cmd_no_hazardous_check(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_no_hazardous_check",n,g,v):this._cmd("cmd_no_hazardous_check",n,e,r,v,g)}cmd_no_checks(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_no_checks",n,g,v):this._cmd("cmd_no_checks",n,e,r,v,g)}cmd_raw_no_hazardous_check(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",n,g,v):this._cmd("cmd_raw_no_hazardous_check",n,e,r,v,g)}cmd_raw_no_checks(n,e,r,v={},g={}){return e===void 0?this.exec("cmd_raw_no_checks",n,g,v):this._cmd("cmd_raw_no_checks",n,e,r,v,g)}build_cmd(n,e,r,v={},g={}){return e===void 0?this.exec("build_cmd",n,g,v):this._cmd("build_cmd",n,e,r,v,g)}build_command(n,e,r,v={},g={}){return e===void 0?this.exec("build_cmd",n,g,v):this._cmd("build_cmd",n,e,r,v,g)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(n,e){return this.exec("send_raw",[n,e])}list_configs(n){return this.exec("list_configs",[n])}load_config(n,e){return this.exec("load_config",[n,e])}save_config(n,e,r){return this.exec("save_config",[n,e,r])}delete_config(n,e){return this.exec("delete_config",[n,e])}enable_limits(n,e,r){return this.exec("enable_limits",[n,e,r])}disable_limits(n,e,r){return this.exec("disable_limits",[n,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(n){return this.exec("get_overall_limits_state",[n])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(n,e){return this.exec("get_setting",[n],e)}get_settings(n,e){return this.exec("get_settings",n,e)}set_setting(n,e){return this.exec("set_setting",[n,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(n,e){return this.exec("set_setting",[n,e])}get_metrics(){return this.exec("get_metrics",[])}open_tab(n){window.open(n,"_blank")}async hashString(n){if(window.isSecureContext){const e=new TextEncoder().encode(n),r=await crypto.subtle.digest("SHA-256",e),v=new Uint8Array(r);return Array.from(v).map(g=>g.toString(16).padStart(2,"0")).join("")}}});const Bp=6048e5,dC=864e5,zl=6e4,Mu=36e5,fC=1e3,jp=Symbol.for("constructDateFrom");Gn({X:zl,Q:Mu,G:fC});function io(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&jp in t?t[jp](n):t instanceof Date?new t.constructor(n):new Date(n)}function Fr(t,n){return io(n||t,t)}let pC={};function Gs(){return pC}function qs(t,n){const e=Gs(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,v=Fr(t,n?.in),g=v.getDay(),p=(g<r?7:0)+g-r;return v.setDate(v.getDate()-p),v.setHours(0,0,0,0),v}function Fa(t,n){return qs(t,{...n,weekStartsOn:1})}function Hp(t,n){const e=Fr(t,n?.in),r=e.getFullYear(),v=io(e,0);v.setFullYear(r+1,0,4),v.setHours(0,0,0,0);const g=Fa(v),p=io(e,0);p.setFullYear(r,0,4),p.setHours(0,0,0,0);const w=Fa(p);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function Tu(t){const n=Fr(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function gC(t,...n){const e=io.bind(null,n.find(r=>typeof r=="object"));return n.map(e)}function Up(t,n){const e=Fr(t,n?.in);return e.setHours(0,0,0,0),e}function mC(t,n,e){const[r,v]=gC(e?.in,t,n),g=Up(r),p=Up(v),w=+g-Tu(g),h=+p-Tu(p);return Math.round((w-h)/dC)}function vC(t,n){const e=Hp(t,n),r=io(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Fa(r)}function yC(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Vp(t){return!(!yC(t)&&typeof t!="number"||isNaN(+Fr(t)))}function bC(t,n){const e=Fr(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const wC={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"}},xC=(t,n,e)=>{let r;const v=wC[t];return typeof v=="string"?r=v:n===1?r=v.one:r=v.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function Ru(t){return(n={})=>{const e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const CC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_C={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AC={date:Ru({formats:CC,defaultWidth:"full"}),time:Ru({formats:kC,defaultWidth:"full"}),dateTime:Ru({formats:_C,defaultWidth:"full"})},SC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$C=(t,n,e,r)=>SC[t];function za(t){return(n,e)=>{const r=e?.context?String(e.context):"standalone";let v;if(r==="formatting"&&t.formattingValues){const p=t.defaultFormattingWidth||t.defaultWidth,w=e?.width?String(e.width):p;v=t.formattingValues[w]||t.formattingValues[p]}else{const p=t.defaultWidth,w=e?.width?String(e.width):t.defaultWidth;v=t.values[w]||t.values[p]}const g=t.argumentCallback?t.argumentCallback(n):n;return v[g]}}const MC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},RC={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"]},EC={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"]},IC={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"}},LC={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"}},OC=(t,n)=>{const e=Number(t),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},NC={ordinalNumber:OC,era:za({values:MC,defaultWidth:"wide"}),quarter:za({values:TC,defaultWidth:"wide",argumentCallback:t=>t-1}),month:za({values:RC,defaultWidth:"wide"}),day:za({values:EC,defaultWidth:"wide"}),dayPeriod:za({values:IC,defaultWidth:"wide",formattingValues:LC,defaultFormattingWidth:"wide"})};function Wa(t){return(n,e={})=>{const r=e.width,v=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],g=n.match(v);if(!g)return null;const p=g[0],w=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(w)?PC(w,l=>l.test(p)):DC(w,l=>l.test(p));let d;d=t.valueCallback?t.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=n.slice(p.length);return{value:d,rest:a}}}function DC(t,n){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function PC(t,n){for(let e=0;e<t.length;e++)if(n(t[e]))return e}function FC(t){return(n,e={})=>{const r=n.match(t.matchPattern);if(!r)return null;const v=r[0],g=n.match(t.parsePattern);if(!g)return null;let p=t.valueCallback?t.valueCallback(g[0]):g[0];p=e.valueCallback?e.valueCallback(p):p;const w=n.slice(v.length);return{value:p,rest:w}}}const zC=/^(\d+)(th|st|nd|rd)?/i,WC=/\d+/i,BC={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},jC={any:[/^b/i,/^(a|c)/i]},HC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},UC={any:[/1/i,/2/i,/3/i,/4/i]},VC={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},GC={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]},qC={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},KC={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]},YC={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},JC={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}},XC={ordinalNumber:FC({matchPattern:zC,parsePattern:WC,valueCallback:t=>parseInt(t,10)}),era:Wa({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:jC,defaultParseWidth:"any"}),quarter:Wa({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:UC,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Wa({matchPatterns:VC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any"}),day:Wa({matchPatterns:qC,defaultMatchWidth:"wide",parsePatterns:KC,defaultParseWidth:"any"}),dayPeriod:Wa({matchPatterns:YC,defaultMatchWidth:"any",parsePatterns:JC,defaultParseWidth:"any"})},ZC=Gn("u",{code:"en-US",formatDistance:xC,formatLong:AC,formatRelative:$C,localize:NC,match:XC,options:{weekStartsOn:0,firstWeekContainsDate:1}});function QC(t,n){const e=Fr(t,n?.in);return mC(e,bC(e))+1}function Gp(t,n){const e=Fr(t,n?.in),r=+Fa(e)-+vC(e);return Math.round(r/Bp)+1}function Eu(t,n){const e=Fr(t,n?.in),r=e.getFullYear(),v=Gs(),g=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,p=io(n?.in||t,0);p.setFullYear(r+1,0,g),p.setHours(0,0,0,0);const w=qs(p,n),h=io(n?.in||t,0);h.setFullYear(r,0,g),h.setHours(0,0,0,0);const d=qs(h,n);return+e>=+w?r+1:+e>=+d?r:r-1}function ek(t,n){const e=Gs(),r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,v=Eu(t,n),g=io(n?.in||t,0);return g.setFullYear(v,0,r),g.setHours(0,0,0,0),qs(g,n)}function qp(t,n){const e=Fr(t,n?.in),r=+qs(e,n)-+ek(e,n);return Math.round(r/Bp)+1}function on(t,n){const e=t<0?"-":"",r=Math.abs(t).toString().padStart(n,"0");return e+r}const zo={y(t,n){const e=t.getFullYear(),r=e>0?e:1-e;return on(n==="yy"?r%100:r,n.length)},M(t,n){const e=t.getMonth();return n==="M"?String(e+1):on(e+1,2)},d(t,n){return on(t.getDate(),n.length)},a(t,n){const e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];default:return e==="am"?"a.m.":"p.m."}},h(t,n){return on(t.getHours()%12||12,n.length)},H(t,n){return on(t.getHours(),n.length)},m(t,n){return on(t.getMinutes(),n.length)},s(t,n){return on(t.getSeconds(),n.length)},S(t,n){const e=n.length,r=t.getMilliseconds(),v=Math.trunc(r*Math.pow(10,e-3));return on(v,n.length)}},Ks={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kp={G:function(t,n,e){const r=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){const r=t.getFullYear(),v=r>0?r:1-r;return e.ordinalNumber(v,{unit:"year"})}return zo.y(t,n)},Y:function(t,n,e,r){const v=Eu(t,r),g=v>0?v:1-v;if(n==="YY"){const p=g%100;return on(p,2)}return n==="Yo"?e.ordinalNumber(g,{unit:"year"}):on(g,n.length)},R:function(t,n){const e=Hp(t);return on(e,n.length)},u:function(t,n){const e=t.getFullYear();return on(e,n.length)},Q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return on(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return on(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){const r=t.getMonth();switch(n){case"M":case"MM":return zo.M(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){const r=t.getMonth();switch(n){case"L":return String(r+1);case"LL":return on(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){const v=qp(t,r);return n==="wo"?e.ordinalNumber(v,{unit:"week"}):on(v,n.length)},I:function(t,n,e){const r=Gp(t);return n==="Io"?e.ordinalNumber(r,{unit:"week"}):on(r,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):zo.d(t,n)},D:function(t,n,e){const r=QC(t);return n==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):on(r,n.length)},E:function(t,n,e){const r=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){const v=t.getDay(),g=(v-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(g);case"ee":return on(g,2);case"eo":return e.ordinalNumber(g,{unit:"day"});case"eee":return e.day(v,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(v,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(v,{width:"short",context:"formatting"});default:return e.day(v,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){const v=t.getDay(),g=(v-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(g);case"cc":return on(g,n.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(v,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(v,{width:"narrow",context:"standalone"});case"cccccc":return e.day(v,{width:"short",context:"standalone"});default:return e.day(v,{width:"wide",context:"standalone"})}},i:function(t,n,e){const r=t.getDay(),v=r===0?7:r;switch(n){case"i":return String(v);case"ii":return on(v,n.length);case"io":return e.ordinalNumber(v,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){const r=t.getHours();let v;switch(r===12?v=Ks.noon:r===0?v=Ks.midnight:v=r/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},B:function(t,n,e){const r=t.getHours();let v;switch(r>=17?v=Ks.evening:r>=12?v=Ks.afternoon:r>=4?v=Ks.morning:v=Ks.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let r=t.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return zo.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):zo.H(t,n)},K:function(t,n,e){const r=t.getHours()%12;return n==="Ko"?e.ordinalNumber(r,{unit:"hour"}):on(r,n.length)},k:function(t,n,e){let r=t.getHours();return r===0&&(r=24),n==="ko"?e.ordinalNumber(r,{unit:"hour"}):on(r,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):zo.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):zo.s(t,n)},S:function(t,n){return zo.S(t,n)},X:function(t,n,e){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Jp(r);case"XXXX":case"XX":return cs(r);default:return cs(r,":")}},x:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"x":return Jp(r);case"xxxx":case"xx":return cs(r);default:return cs(r,":")}},O:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Yp(r,":");default:return"GMT"+cs(r,":")}},z:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Yp(r,":");default:return"GMT"+cs(r,":")}},t:function(t,n,e){const r=Math.trunc(+t/1e3);return on(r,n.length)},T:function(t,n,e){return on(+t,n.length)}};function Yp(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.trunc(r/60),g=r%60;return g===0?e+String(v):e+String(v)+n+on(g,2)}function Jp(t,n){return t%60===0?(t>0?"-":"+")+on(Math.abs(t)/60,2):cs(t,n)}function cs(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=on(Math.trunc(r/60),2),g=on(r%60,2);return e+v+n+g}const Xp=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Zp=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},tk=(t,n)=>{const e=t.match(/(P+)(p+)?/)||[],r=e[1],v=e[2];if(!v)return Xp(t,n);let g;switch(r){case"P":g=n.dateTime({width:"short"});break;case"PP":g=n.dateTime({width:"medium"});break;case"PPP":g=n.dateTime({width:"long"});break;default:g=n.dateTime({width:"full"});break}return g.replace("{{date}}",Xp(r,n)).replace("{{time}}",Zp(v,n))},nk=Gn("a",{p:Zp,P:tk}),rk=/^D+$/,ik=/^Y+$/,ok=["D","DD","YY","YYYY"];function Qp(t){return rk.test(t)}function eg(t){return ik.test(t)}function tg(t,n,e){const r=sk(t,n,e);if(console.warn(r),ok.includes(t))throw new RangeError(r)}function sk(t,n,e){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ak=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ck=/^'([^]*?)'?$/,uk=/''/g,hk=/[a-zA-Z]/;function us(t,n,e){const r=Gs(),v=e?.locale??r.locale??ZC,g=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,p=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,w=Fr(t,e?.in);if(!Vp(w))throw new RangeError("Invalid time value");let h=n.match(lk).map(a=>{const l=a[0];if(l==="p"||l==="P"){const c=nk[l];return c(a,v.formatLong)}return a}).join("").match(ak).map(a=>{if(a==="''")return{isToken:!1,value:"'"};const l=a[0];if(l==="'")return{isToken:!1,value:dk(a)};if(Kp[l])return{isToken:!0,value:a};if(l.match(hk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:a}});v.localize.preprocessor&&(h=v.localize.preprocessor(w,h));const d={firstWeekContainsDate:g,weekStartsOn:p,locale:v};return h.map(a=>{if(!a.isToken)return a.value;const l=a.value;(!e?.useAdditionalWeekYearTokens&&eg(l)||!e?.useAdditionalDayOfYearTokens&&Qp(l))&&tg(l,n,String(t));const c=Kp[l[0]];return c(w,l,v.localize,d)}).join("")}function dk(t){const n=t.match(ck);return n?n[1].replace(uk,"'"):t}var Wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ng={exports:{}},rg;function fk(){return rg||(rg=1,(function(t,n){(function(){var e="ace",r=(function(){return this})();!r&&typeof window<"u"&&(r=window);var v=function(a,l,c){if(typeof a!="string"){v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=l),v.modules[a]||(v.payloads[a]=c,v.modules[a]=null)};v.modules={},v.payloads={};var g=function(a,l,c){if(typeof l=="string"){var u=h(a,l);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,f=l.length;s<f;++s){var b=h(a,l[s]);if(b==null&&p.original)return;i.push(b)}return c&&c.apply(null,i)||!0}},p=function(a,l){var c=g("",a,l);return c==null&&p.original?p.original.apply(this,arguments):c},w=function(a,l){if(l.indexOf("!")!==-1){var c=l.split("!");return w(a,c[0])+"!"+w(a,c[1])}if(l.charAt(0)=="."){var u=a.split("/").slice(0,-1).join("/");for(l=u+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var c=v.modules[l];if(!c){if(c=v.payloads[l],typeof c=="function"){var u={},i={id:l,uri:"",exports:u,packaged:!0},s=function(b,x){return g(l,b,x)},f=c(s,u,i);u=f||i.exports,v.modules[l]=u,delete v.payloads[l]}c=v.modules[l]=u||c}return c};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(v.original=l.define,l.define=v,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(p.original=l.require,l.require=p,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,v){function g(p,w,h){Object.defineProperty(p,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(p,w){return w=w||0,this.lastIndexOf(p,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(p,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=p.length;var d=h.indexOf(p,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(p){for(var w="",h=this;p>0;)p&1&&(w+=h),(p>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(p,w){return this.indexOf(p,w)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(p),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(p){return Object.keys(p).map(function(w){return p[w]})}),Array.prototype.find||g(Array.prototype,"find",function(p){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(p.call(h,a,d,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(p){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(p.call(h,a,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(p,w){return this.indexOf(p,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(p){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),c=arguments[2],u=c===void 0?h:c>>0,i=u<0?Math.max(h+u,0):Math.min(u,h);l<i;)w[l]=p,l++;return w}),Array.of||g(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,v){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,v){r.deepCopy=function g(p){if(typeof p!="object"||!p)return p;var w;if(Array.isArray(p)){w=[];for(var h=0;h<p.length;h++)w[h]=g(p[h]);return w}if(Object.prototype.toString.call(p)!=="[object Object]")return p;w={};for(var h in p)w[h]=g(p[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,p=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(p,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(c){d==null&&(d=setTimeout(a,c||h))};return l.delay=function(c){d&&clearTimeout(d),d=setTimeout(a,c||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,v){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var g=typeof navigator=="object"?navigator:{},p=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=p=="win",r.isMac=p=="mac",r.isLinux=p=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,v){var g=e("./useragent"),p="http://www.w3.org/1999/xhtml";r.buildDom=function c(u,i,s){if(typeof u=="string"&&u){var f=document.createTextNode(u);return i&&i.appendChild(f),f}if(!Array.isArray(u))return u&&u.appendChild&&i&&i.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var b=[],x=0;x<u.length;x++){var I=c(u[x],i,s);I&&b.push(I)}return b}var M=document.createElement(u[0]),A=u[1],C=1;A&&typeof A=="object"&&!Array.isArray(A)&&(C=2);for(var x=C;x<u.length;x++)c(u[x],M,s);return C==2&&Object.keys(A).forEach(function(O){var D=A[O];O==="class"?M.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||O=="value"||O[0]=="$"?M[O]=D:O==="ref"?s&&(s[D]=M):O==="style"?typeof D=="string"&&(M.style.cssText=D):D!=null&&M.setAttribute(O,D)}),i&&i.appendChild(M),M},r.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},r.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||p,c):document.createElement(c)},r.removeChildren=function(c){c.innerHTML=""},r.createTextNode=function(c,u){var i=u?u.ownerDocument:document;return i.createTextNode(c)},r.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},r.hasCssClass=function(c,u){var i=(c.className+"").split(/\s+/g);return i.indexOf(u)!==-1},r.addCssClass=function(c,u){r.hasCssClass(c,u)||(c.className+=" "+u)},r.removeCssClass=function(c,u){for(var i=c.className.split(/\s+/g);;){var s=i.indexOf(u);if(s==-1)break;i.splice(s,1)}c.className=i.join(" ")},r.toggleCssClass=function(c,u){for(var i=c.className.split(/\s+/g),s=!0;;){var f=i.indexOf(u);if(f==-1)break;s=!1,i.splice(f,1)}return s&&i.push(u),c.className=i.join(" "),s},r.setCssClass=function(c,u,i){i?r.addCssClass(c,u):r.removeCssClass(c,u)},r.hasCssString=function(c,u){var i=0,s;if(u=u||document,s=u.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===c)return!0}},r.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var w,h=[];r.useStrictCSP=function(c){w=c,c==!1?d():h||(h=[])};function d(){var c=h;h=null,c&&c.forEach(function(u){a(u[0],u[1])})}function a(c,u,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([c,u])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var f=s.ownerDocument||s;if(u&&r.hasCssString(u,s))return null;u&&(c+=`
|
|
11
|
-
/*# sourceURL=ace/css/`+u+" */");var b=r.createElement("style");b.appendChild(f.createTextNode(c)),u&&(b.id=u),s==f&&(s=r.getDocumentHead(f)),s.insertBefore(b,s.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(c,u){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(u))},r.$fixPositionBug=function(c){var u=c.getBoundingClientRect();if(c.style.left){var i=parseFloat(c.style.left),s=+u.left;Math.abs(i-s)>1&&(c.style.left=2*i-s+"px")}if(c.style.right){var i=parseFloat(c.style.right),s=window.innerWidth-u.right;Math.abs(i-s)>1&&(c.style.right=2*i-s+"px")}if(c.style.top){var i=parseFloat(c.style.top),s=+u.top;Math.abs(i-s)>1&&(c.style.top=2*i-s+"px")}if(c.style.bottom){var i=parseFloat(c.style.bottom),s=window.innerHeight-u.bottom;Math.abs(i-s)>1&&(c.style.bottom=2*i-s+"px")}},r.scrollbarWidth=function(c){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var i=r.createElement("ace_outer"),s=i.style;s.position="absolute",s.left="-10000px",s.overflow="hidden",s.width="200px",s.minWidth="0px",s.height="150px",s.display="block",i.appendChild(u);var f=c&&c.documentElement||document&&document.documentElement;if(!f)return 0;f.appendChild(i);var b=u.offsetWidth;s.overflow="scroll";var x=u.offsetWidth;return b===x&&(x=i.clientWidth),f.removeChild(i),b-x},r.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,u,i){c[u]!==i&&(c[u]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=g.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,g.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!g.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,u,i){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(i)+"px)"}:r.translate=function(c,u,i){c.style.top=Math.round(i)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,v){var g=e("./dom");r.get=function(p,w){var h=new XMLHttpRequest;h.open("GET",p,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},r.loadScript=function(p,w){var h=g.getDocumentHead(),d=document.createElement("script");d.src=p,h.appendChild(d),d.onload=d.onreadystatechange=function(a,l){(l||!d.readyState||d.readyState=="loaded"||d.readyState=="complete")&&(d=d.onload=d.onreadystatechange=null,l||w())}},r.qualifyURL=function(p){var w=document.createElement("a");return w.href=p,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,v){r.inherits=function(g,p){g.super_=p,g.prototype=Object.create(p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(g,p){for(var w in p)g[w]=p[w];return g},r.implement=function(g,p){r.mixin(g,p)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,v){var g={},p=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};g._emit=g._dispatchEvent=function(h,d){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],l=this._defaultHandlers[h];if(!(!a.length&&!l)){(typeof d!="object"||!d)&&(d={}),d.type||(d.type=h),d.stopPropagation||(d.stopPropagation=p),d.preventDefault||(d.preventDefault=w),a=a.slice();for(var c=0;c<a.length&&(a[c](d,this),!d.propagationStopped);c++);if(l&&!d.defaultPrevented)return l(d,this)}},g._signal=function(h,d){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var l=0;l<a.length;l++)a[l](d,this)}},g.once=function(h,d){var a=this;if(this.on(h,function l(){a.off(h,l),d.apply(null,arguments)}),!d)return new Promise(function(l){d=l})},g.setDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var l=a[h],c=a._disabled_[h];c||(a._disabled_[h]=c=[]),c.push(l);var u=c.indexOf(d);u!=-1&&c.splice(u,1)}a[h]=d},g.removeDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a){var l=a._disabled_[h];if(a[h]==d)l&&this.setDefaultHandler(h,l.pop());else if(l){var c=l.indexOf(d);c!=-1&&l.splice(c,1)}}},g.on=g.addEventListener=function(h,d,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[h];return l||(l=this._eventRegistry[h]=[]),l.indexOf(d)==-1&&l[a?"unshift":"push"](d),d},g.off=g.removeListener=g.removeEventListener=function(h,d){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var l=a.indexOf(d);l!==-1&&a.splice(l,1)}},g.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=g}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,r,v){r.reportError=function(g,p){var w=new Error(g);w.data=p,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,v){var g={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=g}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,r,v){"no use strict";var g=e("./oop"),p=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,d={setOptions:function(i){Object.keys(i).forEach(function(s){this.setOption(s,i[s])},this)},getOptions:function(i){var s={};if(i)Array.isArray(i)||(i=Object.keys(i));else{var f=this.$options;i=Object.keys(f).filter(function(b){return!f[b].hidden})}return i.forEach(function(b){s[b]=this.getOption(b)},this),s},setOption:function(i,s){if(this["$"+i]!==s){var f=this.$options[i];if(!f)return a('misspelled option "'+i+'"');if(f.forwardTo)return this[f.forwardTo]&&this[f.forwardTo].setOption(i,s);f.handlesSet||(this["$"+i]=s),f&&f.set&&f.set.call(this,s)}},getOption:function(i){var s=this.$options[i];return s?s.forwardTo?this[s.forwardTo]&&this[s.forwardTo].getOption(i):s&&s.get?s.get.call(this):this["$"+i]:a('misspelled option "'+i+'"')}};function a(i){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,c,u=(function(){function i(){this.$defaultOptions={},l=h,c="dollarSigns"}return i.prototype.defineOptions=function(s,f,b){return s.$options||(this.$defaultOptions[f]=s.$options={}),Object.keys(b).forEach(function(x){var I=b[x];typeof I=="string"&&(I={forwardTo:I}),I.name||(I.name=x),s.$options[I.name]=I,"initialValue"in I&&(s["$"+I.name]=I.initialValue)}),g.implement(s,d),this},i.prototype.resetOptions=function(s){Object.keys(s.$options).forEach(function(f){var b=s.$options[f];"value"in b&&s.setOption(f,b.value)})},i.prototype.setDefaultValue=function(s,f,b){if(!s){for(s in this.$defaultOptions)if(this.$defaultOptions[s][f])break;if(!this.$defaultOptions[s][f])return!1}var x=this.$defaultOptions[s]||(this.$defaultOptions[s]={});x[f]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,f,b):x[f].value=b)},i.prototype.setDefaultValues=function(s,f){Object.keys(f).forEach(function(b){this.setDefaultValue(s,b,f[b])},this)},i.prototype.setMessages=function(s,f){l=s,f&&f.placeholders&&(c=f.placeholders)},i.prototype.nls=function(s,f,b){l[s]||(a("No message found for the key '"+s+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+f+"'."),l[f]||a("No message found for the default string '"+f+"' in the provided messages. Falling back to the default English message."));var x=l[s]||l[f]||f;return b&&(c==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(I,M){return M=="$"?"$":b[M]})),c==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(I,M){return b[M]}))),x},i})();u.prototype.warn=a,u.prototype.reportError=w,g.implement(u.prototype,p),r.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-tm .ace_gutter {
|
|
12
|
-
background: #f0f0f0;
|
|
13
|
-
color: #333;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ace-tm .ace_print-margin {
|
|
17
|
-
width: 1px;
|
|
18
|
-
background: #e8e8e8;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ace-tm .ace_fold {
|
|
22
|
-
background-color: #6B72E6;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.ace-tm {
|
|
26
|
-
background-color: #FFFFFF;
|
|
27
|
-
color: black;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ace-tm .ace_cursor {
|
|
31
|
-
color: black;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ace-tm .ace_invisible {
|
|
35
|
-
color: rgb(191, 191, 191);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.ace-tm .ace_storage,
|
|
39
|
-
.ace-tm .ace_keyword {
|
|
40
|
-
color: blue;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ace-tm .ace_constant {
|
|
44
|
-
color: rgb(197, 6, 11);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.ace-tm .ace_constant.ace_buildin {
|
|
48
|
-
color: rgb(88, 72, 246);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ace-tm .ace_constant.ace_language {
|
|
52
|
-
color: rgb(88, 92, 246);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ace-tm .ace_constant.ace_library {
|
|
56
|
-
color: rgb(6, 150, 14);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ace-tm .ace_invalid {
|
|
60
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
61
|
-
color: red;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.ace-tm .ace_support.ace_function {
|
|
65
|
-
color: rgb(60, 76, 114);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.ace-tm .ace_support.ace_constant {
|
|
69
|
-
color: rgb(6, 150, 14);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ace-tm .ace_support.ace_type,
|
|
73
|
-
.ace-tm .ace_support.ace_class {
|
|
74
|
-
color: rgb(109, 121, 222);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ace-tm .ace_keyword.ace_operator {
|
|
78
|
-
color: rgb(104, 118, 135);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.ace-tm .ace_string {
|
|
82
|
-
color: rgb(3, 106, 7);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.ace-tm .ace_comment {
|
|
86
|
-
color: rgb(76, 136, 107);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ace-tm .ace_comment.ace_doc {
|
|
90
|
-
color: rgb(0, 102, 255);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
94
|
-
color: rgb(128, 159, 191);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.ace-tm .ace_constant.ace_numeric {
|
|
98
|
-
color: rgb(0, 0, 205);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ace-tm .ace_variable {
|
|
102
|
-
color: rgb(49, 132, 149);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ace-tm .ace_xml-pe {
|
|
106
|
-
color: rgb(104, 104, 91);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
|
110
|
-
color: #0000A2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.ace-tm .ace_heading {
|
|
115
|
-
color: rgb(12, 7, 255);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ace-tm .ace_list {
|
|
119
|
-
color:rgb(185, 6, 144);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.ace-tm .ace_meta.ace_tag {
|
|
123
|
-
color:rgb(0, 22, 142);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ace-tm .ace_string.ace_regex {
|
|
127
|
-
color: rgb(255, 0, 0)
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
|
131
|
-
background: rgb(181, 213, 255);
|
|
132
|
-
}
|
|
133
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
134
|
-
box-shadow: 0 0 3px 0px white;
|
|
135
|
-
}
|
|
136
|
-
.ace-tm .ace_marker-layer .ace_step {
|
|
137
|
-
background: rgb(252, 255, 0);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
|
141
|
-
background: rgb(164, 229, 101);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
|
145
|
-
margin: -1px 0 0 -1px;
|
|
146
|
-
border: 1px solid rgb(192, 192, 192);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
|
150
|
-
background: rgba(0, 0, 0, 0.07);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ace-tm .ace_gutter-active-line {
|
|
154
|
-
background-color : #dcdcdc;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
158
|
-
background: rgb(250, 250, 255);
|
|
159
|
-
border: 1px solid rgb(200, 200, 250);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.ace-tm .ace_indent-guide {
|
|
163
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.ace-tm .ace_indent-guide-active {
|
|
167
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
168
|
-
}
|
|
169
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,v){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var g=e("../lib/dom");g.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,v){"no use strict";var g=e("./lib/lang"),p=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;v.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!d.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return d[u]},r.set=function(u,i){if(d.hasOwnProperty(u))d[u]=i;else if(this.setDefaultValue("",u,i)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return g.copyObject(d)},r.$modes={},r.moduleUrl=function(u,i){if(d.$moduleUrls[u])return d.$moduleUrls[u];var s=u.split("/");i=i||s[s.length-2]||"";var f=i=="snippets"?"/":"-",b=s[s.length-1];if(i=="worker"&&f=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&s.length>1&&(b=s[s.length-2]);var I=d[i+"Path"];return I==null?I=d.basePath:f=="/"&&(i=f=""),I&&I.slice(-1)!="/"&&(I+="/"),I+i+f+b+this.get("suffix")},r.setModuleUrl=function(u,i){return d.$moduleUrls[u]=i};var a=function(u,i){if(u==="ace/theme/textmate"||u==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(u,i);console.error("loader is not configured")},l;r.setLoader=function(u){l=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,i){var s;if(Array.isArray(u))var f=u[0],b=u[1];else if(typeof u=="string")var b=u;var x=function(I){if(I&&!r.$loading[b])return i&&i(I);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var M=function(){a(b,function(A,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var O=r.$loading[b];r.$loading[b]=null,O.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return M();p.loadScript(r.moduleUrl(b,f),M),c()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(I){I.default?x(I.default):x(I)});else{try{s=this.$require(b)}catch{}x(s||r.$loaded[b])}},r.$require=function(u){if(typeof v.require=="function"){var i="require";return v[i](u)}},r.setModuleLoader=function(u,i){r.dynamicModules[u]=i};var c=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,v){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(d,a){e([d],function(l){a(null,l)})});var p=(function(){return this||typeof window<"u"&&window})();v.exports=function(d){g.init=w,g.$require=e,d.require=e},w(!0);function w(d){if(!(!p||!p.document)){g.set("packaged",d||e.packaged||v.packaged||p.define&&(void 0).packaged);var a={},l="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(l=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=u.getElementsByTagName("script"),s=0;s<i.length;s++){var f=i[s],b=f.src||f.getAttribute("src");if(b){for(var x=f.attributes,I=0,M=x.length;I<M;I++){var A=x[I];A.name.indexOf("data-ace-")===0&&(a[h(A.name.replace(/^data-ace-/,""))]=A.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var O in a)typeof a[O]<"u"&&g.set(O,a[O])}}function h(d){return d.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,v){var g=(function(){function p(w,h,d,a){this.start={row:w,column:h},this.end={row:d,column:a}}return p.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},p.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},p.prototype.contains=function(w,h){return this.compare(w,h)==0},p.prototype.compareRange=function(w){var h,d=w.end,a=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},p.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},p.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},p.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},p.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},p.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},p.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},p.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},p.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},p.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},p.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},p.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},p.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},p.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},p.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},p.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return p.fromPoints(a||this.start,d||this.end)},p.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var a={row:w,column:h};else var l={row:w,column:h};return p.fromPoints(a||this.start,l||this.end)},p.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},p.prototype.isMultiLine=function(){return this.start.row!==this.end.row},p.prototype.clone=function(){return p.fromPoints(this.start,this.end)},p.prototype.collapseRows=function(){return this.end.column==0?new p(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new p(this.start.row,0,this.end.row,0)},p.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new p(h.row,h.column,d.row,d.column)},p.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},p})();g.fromPoints=function(p,w){return new g(p.row,p.column,w.row,w.column)},g.comparePoints=function(p,w){return p.row-w.row||p.column-w.column},r.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,v){for(var g=e("./oop"),p={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,p.PRINTABLE_KEYS[48+h]=""+h,p.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,p.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,p.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];r.$codeToKeyCode=w,p.PRINTABLE_KEYS[173]="-";for(var c in p.FUNCTION_KEYS){var u=p.FUNCTION_KEYS[c].toLowerCase();p[u]=parseInt(c,10)}for(var c in p.PRINTABLE_KEYS){var u=p.PRINTABLE_KEYS[c].toLowerCase();p[u]=parseInt(c,10)}g.mixin(p,p.MODIFIER_KEYS),g.mixin(p,p.PRINTABLE_KEYS),g.mixin(p,p.FUNCTION_KEYS),p.enter=p.return,p.escape=p.esc,p.del=p.delete,(function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)p.KEY_MODS[s]=i.filter(function(f){return s&p.KEY_MODS[f]}).join("-")+"-"})(),p.KEY_MODS[0]="",p.KEY_MODS[-1]="input-",g.mixin(r,p),r.default=r,r.keyCodeToString=function(i){var s=p[i];return typeof s!="string"&&(s=String.fromCharCode(i)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var g=e("./keys"),p=e("./useragent"),w=null,h=0,d;function a(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&a(),d}function c(I,M,A){this.elem=I,this.type=M,this.callback=A}c.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=r.addListener=function(I,M,A,C){I.addEventListener(M,A,l()),C&&C.$toDestroy.push(new c(I,M,A))},i=r.removeListener=function(I,M,A){I.removeEventListener(M,A,l())};r.stopEvent=function(I){return r.stopPropagation(I),r.preventDefault(I),!1},r.stopPropagation=function(I){I.stopPropagation&&I.stopPropagation()},r.preventDefault=function(I){I.preventDefault&&I.preventDefault()},r.getButton=function(I){return I.type=="dblclick"?0:I.type=="contextmenu"||p.isMac&&I.ctrlKey&&!I.altKey&&!I.shiftKey?2:I.button},r.capture=function(I,M,A){var C=I&&I.ownerDocument||document;function O(D){M&&M(D),A&&A(D),i(C,"mousemove",M),i(C,"mouseup",O),i(C,"dragstart",O)}return u(C,"mousemove",M),u(C,"mouseup",O),u(C,"dragstart",O),O},r.addMouseWheelListener=function(I,M,A){u(I,"wheel",function(C){var O=.15,D=C.deltaX||0,E=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*O,C.wheelY=E*O;break;case C.DOM_DELTA_LINE:var R=15;C.wheelX=D*R,C.wheelY=E*R;break;case C.DOM_DELTA_PAGE:var B=150;C.wheelX=D*B,C.wheelY=E*B;break}M(C)},A)},r.addMultiMouseDownListener=function(I,M,A,C,O){var D=0,E,R,B,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function N($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,p.isIE){var k=Math.abs($.clientX-E)>5||Math.abs($.clientY-R)>5;(!B||k)&&(D=1),B&&clearTimeout(B),B=setTimeout(function(){B=null},M[D-1]||600),D==1&&(E=$.clientX,R=$.clientY)}if($._clicks=D,A[C]("mousedown",$),D>4)D=0;else if(D>1)return A[C](F[D],$)}Array.isArray(I)||(I=[I]),I.forEach(function($){u($,"mousedown",N,O)})};function s(I){return 0|(I.ctrlKey?1:0)|(I.altKey?2:0)|(I.shiftKey?4:0)|(I.metaKey?8:0)}r.getModifierString=function(I){return g.KEY_MODS[s(I)]};function f(I,M,A){var C=s(M);if(!A&&M.code&&(A=g.$codeToKeyCode[M.code]||A),!p.isMac&&w){if(M.getModifierState&&(M.getModifierState("OS")||M.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(A===18||A===17){var O=M.location;if(A===17&&O===1)w[A]==1&&(h=M.timeStamp);else if(A===18&&C===3&&O===2){var D=M.timeStamp-h;D<50&&(w.altGr=!0)}}}if(A in g.MODIFIER_KEYS&&(A=-1),!(!C&&A===13&&M.location===3&&(I(M,C,-A),M.defaultPrevented))){if(p.isChromeOS&&C&8){if(I(M,C,A),M.defaultPrevented)return;C&=-9}return!C&&!(A in g.FUNCTION_KEYS)&&!(A in g.PRINTABLE_KEYS)?!1:I(M,C,A)}}r.addCommandKeyListener=function(I,M,A){var C=null;u(I,"keydown",function(O){w[O.keyCode]=(w[O.keyCode]||0)+1;var D=f(M,O,O.keyCode);return C=O.defaultPrevented,D},A),u(I,"keypress",function(O){C&&(O.ctrlKey||O.altKey||O.shiftKey||O.metaKey)&&(r.stopEvent(O),C=null)},A),u(I,"keyup",function(O){w[O.keyCode]=null},A),w||(b(),u(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!p.isOldIE){var x=1;r.nextTick=function(I,M){M=M||window;var A="zero-timeout-message-"+x++,C=function(O){O.data==A&&(r.stopPropagation(O),i(M,"message",C),I())};u(M,"message",C),M.postMessage(A,"*")}}r.$idleBlocked=!1,r.onIdle=function(I,M){return setTimeout(function A(){r.$idleBlocked?setTimeout(A,100):I()},M)},r.$idleBlockId=null,r.blockIdle=function(I){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},I||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(I){setTimeout(I,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,v){var g;v.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,v){var g=e("../lib/event"),p=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,c=w.isIE,u=w.isChrome>63,i=400,s=e("../lib/keys"),f=s.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,I=w.isMobile,M=(function(){function A(C,O){var D=this;this.host=O,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",I||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),g.addListener(this.text,"blur",function(E){D.ignoreFocusEvents||(O.onBlur(E),D.$isFocused=!1)},O),g.addListener(this.text,"focus",function(E){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}O.onFocus(E),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},O),this.$focusScroll=!1,O.on("beforeEndOperation",function(){var E=O.curOp,R=E&&E.command&&E.command.name;if(R!="insertstring"){var B=R&&(E.docChanged||E.selectionChanged);D.inComposition&&B&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),O.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&O.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,g.addCommandKeyListener(this.text,function(E,R,B){if(!D.inComposition)return O.onCommandKey(E,R,B)},O),g.addListener(this.text,"select",this.onSelect.bind(this),O),g.addListener(this.text,"input",this.onInput.bind(this),O),g.addListener(this.text,"cut",this.onCut.bind(this),O),g.addListener(this.text,"copy",this.onCopy.bind(this),O),g.addListener(this.text,"paste",this.onPaste.bind(this),O),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&g.addListener(C,"keydown",function(E){if(!(w.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:D.onCopy(E);break;case 86:D.onPaste(E);break;case 88:D.onCut(E);break}},O),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),g.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),O),g.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),O),g.addListener(this.text,"keyup",this.onKeyup.bind(this),O),g.addListener(this.text,"keydown",this.syncComposition.bind(this),O),g.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),O),this.closeTimeout,g.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),O),g.addListener(this.text,"mousedown",function(E){E.preventDefault(),D.onContextMenuClose()},O),g.addListener(O.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),O),g.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),O),b&&this.addIosSelectionHandler(C,O,this.text)}return A.prototype.addIosSelectionHandler=function(C,O,D){var E=this,R=null,B=!1;D.addEventListener("keydown",function(N){R&&clearTimeout(R),B=!0},!0),D.addEventListener("keyup",function(N){R=setTimeout(function(){B=!1},100)},!0);var F=function(N){if(document.activeElement===D&&!(B||E.inComposition||O.$mouseHandler.isMousePressed)&&!E.copied){var $=D.selectionStart,k=D.selectionEnd,L=null,W=0;if($==0?L=s.up:$==1?L=s.home:k>E.lastSelectionEnd&&E.lastValue[k]==`
|
|
170
|
-
`?L=s.end:$<E.lastSelectionStart&&E.lastValue[$-1]==" "?(L=s.left,W=f.option):$<E.lastSelectionStart||$==E.lastSelectionStart&&E.lastSelectionEnd!=E.lastSelectionStart&&$==k?L=s.left:k>E.lastSelectionEnd&&E.lastValue.slice(0,k).split(`
|
|
171
|
-
`).length>2?L=s.down:k>E.lastSelectionEnd&&E.lastValue[k-1]==" "?(L=s.right,W=f.option):(k>E.lastSelectionEnd||k==E.lastSelectionEnd&&E.lastSelectionEnd!=E.lastSelectionStart&&$==k)&&(L=s.right),$!==k&&(W|=f.shift),L){var U=O.onCommandKey({},W,L);if(!U&&O.commands){L=s.keyCodeToString(L);var q=O.commands.findKeyCommand(W,L);q&&O.execCommand(q)}E.lastSelectionStart=$,E.lastSelectionEnd=k,E.resetSelection("")}}};document.addEventListener("selectionchange",F),O.on("destroy",function(){document.removeEventListener("selectionchange",F)})},A.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},A.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},A.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},A.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},A.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var O=this.host.getSelectionRange();O.end.row=O.start.row,O.end.column=O.start.column,this.inComposition.markerRange=O,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},A.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},A.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},A.prototype.onCut=function(C){this.doCopy(C,!0)},A.prototype.onCopy=function(C){this.doCopy(C,!1)},A.prototype.onPaste=function(C){var O=this.handleClipboardData(C);a.pasteCancelled()||(typeof O=="string"?(O&&this.host.onPaste(O,C),w.isIE&&setTimeout(this.resetSelection),g.preventDefault(C)):(this.text.value="",this.pasted=!0))},A.prototype.doCopy=function(C,O){var D=this,E=this.host.getCopyText();if(!E)return g.preventDefault(C);this.handleClipboardData(C,E)?(b&&(this.resetSelection(E),this.copied=E,setTimeout(function(){D.copied=!1},10)),O?this.host.onCut():this.host.onCopy(),g.preventDefault(C)):(this.copied=!0,this.text.value=E,this.text.select(),setTimeout(function(){D.copied=!1,D.resetSelection(),O?D.host.onCut():D.host.onCopy()}))},A.prototype.handleClipboardData=function(C,O,D){var E=C.clipboardData||window.clipboardData;if(!(!E||l)){var R=c||D?"Text":"text/plain";try{return O?E.setData(R,O)!==!1:E.getData(R)}catch(B){if(!D)return this.handleClipboardData(B,O,!0)}}},A.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var O=this.text.value,D=this.sendText(O,!0);(O.length>i+100||x.test(D)||I&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},A.prototype.sendText=function(C,O){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var D=this.text.selectionStart,E=this.text.selectionEnd,R=this.lastSelectionStart,B=this.lastValue.length-this.lastSelectionEnd,F=C,N=C.length-D,$=C.length-E,k=0;R>0&&this.lastValue[k]==C[k];)k++,R--;for(F=F.slice(k),k=1;B>0&&this.lastValue.length-k>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-k]==C[C.length-k];)k++,B--;N-=k-1,$-=k-1;var L=F.length-k+1;if(L<0&&(R=-L,L=0),F=F.slice(0,L),!O&&!F&&!N&&!R&&!B&&!$)return"";this.sendingText=!0;var W=!1;return w.isAndroid&&F==". "&&(F=" ",W=!0),F&&!R&&!B&&!N&&!$||this.commandMode?this.host.onTextInput(F):this.host.onTextInput(F,{extendLeft:R,extendRight:B,restoreStart:N,restoreEnd:$}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=D,this.lastSelectionEnd=E,this.lastRestoreEnd=$,W?`
|
|
172
|
-
`:F},A.prototype.onSelect=function(C){var O=this;if(!this.inComposition){var D=function(E){return E.selectionStart===0&&E.selectionEnd>=O.lastValue.length&&E.value===O.lastValue&&O.lastValue&&E.selectionEnd!==O.lastSelectionEnd};this.copied?this.copied=!1:D(this.text)?(this.host.selectAll(),this.resetSelection()):I&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},A.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var O=`
|
|
173
|
-
ab`+C+`cde fg
|
|
174
|
-
`;O!=this.text.value&&(this.text.value=this.lastValue=O);var D=4,E=4+(C.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=D||this.lastSelectionEnd!=E)&&this.text.setSelectionRange(D,E),this.lastSelectionStart=D,this.lastSelectionEnd=E}},A.prototype.$resetSelection=function(){var C=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var O=0,D=0,E="",R=function(q,Z){for(var Q=Z,le=1;le<=q-C.rowStart&&le<2*C.numberOfExtraLines+1;le++)Q+=C.host.session.getLine(q-le).length+1;return Q};if(this.host.session){var B=this.host.selection,F=B.getRange(),N=B.cursor.row;N===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):N===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(N<this.rowStart-1||N>this.rowEnd+1)&&(this.rowStart=N>this.numberOfExtraLines?N-this.numberOfExtraLines:0,this.rowEnd=N>this.numberOfExtraLines?N+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var $=[],k=this.rowStart;k<=this.rowEnd;k++)$.push(this.host.session.getLine(k));if(E=$.join(`
|
|
175
|
-
`),O=R(F.start.row,F.start.column),D=R(F.end.row,F.end.column),F.start.row<this.rowStart){var L=this.host.session.getLine(this.rowStart-1);O=F.start.row<this.rowStart-1?0:O,D+=L.length+1,E=L+`
|
|
176
|
-
`+E}else if(F.end.row>this.rowEnd){var W=this.host.session.getLine(this.rowEnd+1);D=F.end.row>this.rowEnd+1?W.length:F.end.column,D+=E.length+1,E=E+`
|
|
177
|
-
`+W}else I&&N>0&&(E=`
|
|
178
|
-
`+E,D+=1,O+=1);E.length>i&&(O<i&&D<i?E=E.slice(0,i):(E=`
|
|
179
|
-
`,O==D?O=D=0:(O=0,D=1)));var U=E+`
|
|
180
|
-
|
|
181
|
-
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=O||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(O,D),this.lastSelectionStart=O,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},A.prototype.setHost=function(C){this.host=C},A.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},A.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var O=this.host.session.selection.cursor.row;C+=p("text-input.aria-label","Cursor at row $0",[O+1])}this.text.setAttribute("aria-label",C)},A.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",p("text-input.aria-roledescription","editor")),this.setAriaLabel())},A.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||u||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var O=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(D)for(var R=this.text.parentElement;R&&R.nodeType==1;)E.push(R),R.setAttribute("ace_nocontext","true"),!R.parentElement&&R.getRootNode?R=R.getRootNode().host:R=R.parentElement;this.text.focus({preventScroll:!0}),D&&E.forEach(function(B){B.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=O)},0)},A.prototype.blur=function(){this.text.blur()},A.prototype.isFocused=function(){return this.$isFocused},A.prototype.setInputHandler=function(C){this.inputHandler=C},A.prototype.getInputHandler=function(){return this.inputHandler},A.prototype.getElement=function(){return this.text},A.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},A.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},A.prototype.setCopyWithEmptySelection=function(C){},A.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},A.prototype.moveToMouse=function(C,O){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(O?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),R=h.computedStyle(this.host.container),B=E.top+(parseInt(R.borderTopWidth)||0),F=E.left+(parseInt(R.borderLeftWidth)||0),N=E.bottom-B-this.text.clientHeight-2,$=function(k){h.translate(D.text,k.clientX-F-2,Math.min(k.clientY-B-2,N))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&g.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},A.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},A})();r.TextInput=M,r.$setUserAgentForTests=function(A,C){I=A,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,v){var g=e("../lib/useragent"),p=0,w=550,h=(function(){function l(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(s){c[s]=this[s]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return l.prototype.onMouseDown=function(c){var u=c.inSelection(),i=c.getDocumentPosition();this.mousedownEvent=c;var s=this.editor,f=c.getButton();if(f!==0){var b=s.getSelectionRange(),x=b.isEmpty();(x||f==1)&&s.selection.moveToPosition(i),f==2&&(s.textInput.onContextMenu(c.domEvent),g.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(i,c.domEvent._clicks>1),c.preventDefault()},l.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(c):u||i.selection.moveToPosition(c),u||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var c,u=this.editor,i=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i);if(s==-1)c=this.$clickSelection.end;else if(s==1)c=this.$clickSelection.start;else{var f=a(this.$clickSelection,i,u.session);i=f.cursor,c=f.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(i),u.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(c){var u,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y),f=i.selection[c](s.row,s.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(f.start),x=this.$clickSelection.comparePoint(f.end);if(b==-1&&x<=0)u=this.$clickSelection.end,(f.end.row!=s.row||f.end.column!=s.column)&&(s=f.start);else if(x==1&&b>=0)u=this.$clickSelection.start,(f.start.row!=s.row||f.start.column!=s.column)&&(s=f.end);else if(b==-1&&x==1)s=f.end,u=f.start;else{var I=a(this.$clickSelection,s,i.session);s=I.cursor,u=I.anchor}i.selection.setSelectionAnchor(u.row,u.column)}i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var c=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>p||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),i=this.editor,s=i.session,f=s.getBracketRange(u);f?(f.isEmpty()&&(f.start.column--,f.end.column++),this.setState("select")):(f=i.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=f,this.select()},l.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var s=i.getSelectionRange();s.isMultiLine()&&s.contains(u.row,u.column)?(this.$clickSelection=i.selection.getLineRange(s.start.row),this.$clickSelection.end=i.selection.getLineRange(s.end.row).end):this.$clickSelection=i.selection.getLineRange(u.row),this.select()},l.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,s=c.domEvent.timeStamp,f=s-i.t,b=f?c.wheelX/f:i.vx,x=f?c.wheelY/f:i.vy;f<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var I=Math.abs(b/x),M=!1;if(I>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(M=!0),I<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(M=!0),M)i.allowed=s;else if(s-i.allowed<w){var A=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);A?(M=!0,i.allowed=s):i.allowed=0}if(i.t=s,i.vx=b,i.vy=x,M)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},l})();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function d(l,c,u,i){return Math.sqrt(Math.pow(u-l,2)+Math.pow(i-c,2))}function a(l,c,u){if(l.start.row==l.end.row)var i=2*c.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var i=3*c.column-2*u.getLine(l.start.row).length;else var i=2*c.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var g=e("../lib/event"),p=e("../lib/useragent"),w=(function(){function h(d,a){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=a,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,a=d.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return p.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h})();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,v){r.preventParentScroll=function(g){g.stopPropagation();var p=g.currentTarget,w=p.scrollHeight>p.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,v){var g=this&&this.__extends||(function(){var s=function(f,b){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,I){x.__proto__=I}||function(x,I){for(var M in I)Object.prototype.hasOwnProperty.call(I,M)&&(x[M]=I[M])},s(f,b)};return function(f,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");s(f,b);function x(){this.constructor=f}f.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}})(),p=this&&this.__values||function(s){var f=typeof Symbol=="function"&&Symbol.iterator,b=f&&s[f],x=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&x>=s.length&&(s=void 0),{value:s&&s[x++],done:!s}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=(function(){function s(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return s.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},s.prototype.getElement=function(){return this.$element||this.$init()},s.prototype.setText=function(f){this.getElement().textContent=f},s.prototype.setHtml=function(f){this.getElement().innerHTML=f},s.prototype.setPosition=function(f,b){this.getElement().style.left=f+"px",this.getElement().style.top=b+"px"},s.prototype.setClassName=function(f){w.addCssClass(this.getElement(),f)},s.prototype.setTheme=function(f){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),f.isDark&&w.addCssClass(this.getElement(),"ace_dark"),f.cssClass&&w.addCssClass(this.getElement(),f.cssClass),this.theme={isDark:f.isDark,cssClass:f.cssClass}},s.prototype.show=function(f,b,x){f!=null&&this.setText(f),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},s.prototype.hide=function(f){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},s.prototype.getHeight=function(){return this.getElement().offsetHeight},s.prototype.getWidth=function(){return this.getElement().offsetWidth},s.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},s})(),c=(function(){function s(){this.popups=[]}return s.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},s.prototype.removePopup=function(f){var b=this.popups.indexOf(f);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},s.prototype.updatePopups=function(){var f,b,x,I;this.popups.sort(function(F,N){return N.priority-F.priority});var M=[];try{for(var A=p(this.popups),C=A.next();!C.done;C=A.next()){var O=C.value,D=!0;try{for(var E=(x=void 0,p(M)),R=E.next();!R.done;R=E.next()){var B=R.value;if(this.doPopupsOverlap(B,O)){D=!1;break}}}catch(F){x={error:F}}finally{try{R&&!R.done&&(I=E.return)&&I.call(E)}finally{if(x)throw x.error}}D?M.push(O):O.hide()}}catch(F){f={error:F}}finally{try{C&&!C.done&&(b=A.return)&&b.call(A)}finally{if(f)throw f.error}}},s.prototype.doPopupsOverlap=function(f,b){var x=f.getElement().getBoundingClientRect(),I=b.getElement().getBoundingClientRect();return x.left<I.right&&x.right>I.left&&x.top<I.bottom&&x.bottom>I.top},s})(),u=new c;r.popupManager=u,r.Tooltip=l;var i=(function(s){g(f,s);function f(b){b===void 0&&(b=document.body);var x=s.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var I=x.getElement();return I.style.whiteSpace="pre-wrap",I.style.pointerEvents="auto",I.addEventListener("mouseout",x.onMouseOut),I.tabIndex=-1,I.addEventListener("blur",(function(){I.contains(document.activeElement)||this.hide()}).bind(x)),I.addEventListener("wheel",d),x}return f.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var I=x.$mouseHandler.isMousePressed;if(this.isOpen){var M=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(M.row,M.column)||I||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||I||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(b){var x=b.editor,I=b.getDocumentPosition(),M=x.session.getLine(I.row);if(I.column==M.length){var A=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(I.row,I.column);if(C.column!=A.column||C.row!=A.row)return!0}return!1},f.prototype.setDataProvider=function(b){this.$gatherData=b},f.prototype.showForRange=function(b,x,I,M){if(!(M&&M!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var A=b.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(A.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=A.textToScreenCoordinates(x.start.row,x.start.column),O=A.scroller.getBoundingClientRect();C.pageX<O.left&&(C.pageX=O.left);var D=this.getElement();D.innerHTML="",D.appendChild(I),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},f.prototype.$setPosition=function(b,x,I,M){var A=10;I&&this.addMarker(M,b.session);var C=b.renderer,O=this.getElement(),D=O.offsetHeight,E=O.offsetWidth,R=x.pageY,B=x.pageX,F=window.innerHeight-R-C.lineHeight,N=this.$shouldPlaceAbove(D,R,F-A);O.style.maxHeight=(N?R:F)-A+"px",O.style.top=N?"":R+C.lineHeight+"px",O.style.bottom=N?window.innerHeight-R+"px":"",O.style.left=Math.min(B,window.innerWidth-E-A)+"px"},f.prototype.$shouldPlaceAbove=function(b,x,I){return!(x-b<0&&x<I)},f.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},f.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},f})(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,v){var g=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(b[I]=x[I])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),p=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,f=s&&i[s],b=0;if(f)return f.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,a=e("../config").nls,l=e("../range").Range;function c(i){var s=i.editor,f=s.renderer.$gutterLayer;i.$tooltip=new u(s),i.$tooltip.addToEditor(s),i.$tooltip.setDataProvider(function(b,x){var I=b.getDocumentPosition().row;i.$tooltip.showTooltip(I)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!s.isFocused()||b.getButton()!=0)){var x=f.getRegion(b);if(x!="foldWidgets"){var I=b.getDocumentPosition().row,M=s.session.selection;if(b.getShiftKey())M.selectTo(I,0);else{if(b.domEvent.detail==2)return s.selectAll(),b.preventDefault();i.$clickSelection=s.selection.getLineRange(I)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=c;var u=(function(i){g(s,i);function s(f){var b=i.call(this,f.container)||this;b.id="gt"+ ++s.$uid,b.editor=f,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return s.prototype.onDomMouseMove=function(f){var b=new h(f,this.editor);this.onMouseMove(b,this.editor)},s.prototype.onDomMouseOut=function(f){var b=new h(f,this.editor);this.onMouseOut(b)},s.prototype.addToEditor=function(f){var b=f.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,f)},s.prototype.removeFromEditor=function(f){var b=f.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,f)},s.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(f){var b,x=this.editor.renderer.$gutterLayer,I=x.$annotations[f],M;I?M={displayText:Array.from(I.displayText),type:Array.from(I.type)}:M={displayText:[],type:[]};var A=x.session.getFoldLine(f);if(A&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},O={error:1,security:2,warning:3,info:4,hint:5},D,E=f+1;E<=A.end.row;E++)if(x.$annotations[E])for(var R=0;R<x.$annotations[E].text.length;R++){var B=x.$annotations[E].type[R];C[B].push(x.$annotations[E].text[R]),(!D||O[B]<O[D])&&(D=B)}if(["error","security","warning"].includes(D)){var F="".concat(s.annotationsToSummaryString(C)," in folded code.");M.displayText.push(F),M.type.push(D+"_fold")}}if(M.displayText.length===0)return this.hide();for(var N={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<M.displayText.length;E++){var k=w.createElement("span"),L=w.createElement("span");(b=L.classList).add.apply(b,["ace_".concat(M.type[E]),$]),L.setAttribute("aria-label","".concat(s.annotationLabels[M.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),k.appendChild(L),k.appendChild(w.createTextNode(M.displayText[E])),k.appendChild(w.createElement("br")),N[M.type[E].replace("_fold","")].push(k)}var W=w.createElement("span");N.error.forEach(function(Z){return W.appendChild(Z)}),N.security.forEach(function(Z){return W.appendChild(Z)}),N.warning.forEach(function(Z){return W.appendChild(Z)}),N.info.forEach(function(Z){return W.appendChild(Z)}),N.hint.forEach(function(Z){return W.appendChild(Z)}),W.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(f);U&&U.setAttribute("aria-describedby",this.id);var q=l.fromPoints({row:f,column:0},{row:f,column:0});this.showForRange(this.editor,q,W),this.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},s.prototype.$setPosition=function(f,b,x,I){var M=this.$findCellByRow(I.start.row);if(M){var A=M&&M.element,C=A&&A.querySelector(".ace_gutter_annotation");if(C){var O=C.getBoundingClientRect();if(O){var D={pageX:O.right,pageY:O.top};return i.prototype.$setPosition.call(this,f,D,!1,I)}}}},s.prototype.$shouldPlaceAbove=function(f,b,x){return x<f},s.prototype.$findLinkedAnnotationNode=function(f){var b=this.$findCellByRow(f);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},s.prototype.$findCellByRow=function(f){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===f})},s.prototype.hide=function(f){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,f)}},s.annotationsToSummaryString=function(f){var b,x,I=[],M=["error","security","warning","info","hint"];try{for(var A=p(M),C=A.next();!C.done;C=A.next()){var O=C.value;if(f[O].length){var D=f[O].length===1?s.annotationLabels[O].singular:s.annotationLabels[O].plural;I.push("".concat(f[O].length," ").concat(D))}}}catch(E){b={error:E}}finally{try{C&&!C.done&&(x=A.return)&&x.call(A)}finally{if(b)throw b.error}}return I.join(", ")},s.prototype.isOutsideOfText=function(f){var b=f.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(f.clientX>=x.left&&f.clientX<=x.right&&f.clientY>=x.top&&f.clientY<=x.bottom)},s})(d);u.$uid=0,r.GutterTooltip=u}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,v){var g=e("../lib/dom"),p=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,a=5;function l(u){var i=u.editor,s=g.createElement("div");s.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",s.textContent=" ";var f=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];f.forEach(function(ne){u[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(u));var b=i.container,x,I,M,A,C,O,D=0,E,R,B,F,N;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var ce=this;return setTimeout(function(){ce.startSelect(),ce.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var ae=ne.dataTransfer;ae.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(s),ae.setDragImage&&ae.setDragImage(s,0,0),setTimeout(function(){i.container.removeChild(s)}),ae.clearData(),ae.setData("Text",i.session.getTextRange()),R=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,R=!1,this.setState(null),!i.getReadOnly()){var ce=ne.dataTransfer.dropEffect;!E&&ce=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!Q(ne.dataTransfer)))return I=ne.clientX,M=ne.clientY,x||W(),D++,ne.dataTransfer.dropEffect=E=le(ne),p.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!Q(ne.dataTransfer)))return I=ne.clientX,M=ne.clientY,x||(W(),D++),q!==null&&(q=null),ne.dataTransfer.dropEffect=E=le(ne),p.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),E=null,p.preventDefault(ne)},this.onDrop=function(ne){if(O){var ce=ne.dataTransfer;if(R)switch(E){case"move":C.contains(O.row,O.column)?C={start:O,end:O}:C=i.moveText(C,O);break;case"copy":C=i.moveText(C,O,!0);break}else{var ae=ce.getData("Text");C={start:O,end:i.session.insert(O,ae)},i.focus(),E=null}return U(),p.preventDefault(ne)}},p.addListener(b,"dragstart",this.onDragStart.bind(u),i),p.addListener(b,"dragend",this.onDragEnd.bind(u),i),p.addListener(b,"dragenter",this.onDragEnter.bind(u),i),p.addListener(b,"dragover",this.onDragOver.bind(u),i),p.addListener(b,"dragleave",this.onDragLeave.bind(u),i),p.addListener(b,"drop",this.onDrop.bind(u),i);function $(ne,ce){var ae=Date.now(),de=!ce||ne.row!=ce.row,me=!ce||ne.column!=ce.column;if(!F||de||me)i.moveCursorToPosition(ne),F=ae,N={x:I,y:M};else{var $e=c(N.x,N.y,I,M);$e>a?F=null:ae-F>=d&&(i.renderer.scrollCursorIntoView(),F=null)}}function k(ne,ce){var ae=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,$e=i.renderer.scroller.getBoundingClientRect(),Me={x:{left:I-$e.left,right:$e.right-I},y:{top:M-$e.top,bottom:$e.bottom-M}},Te=Math.min(Me.x.left,Me.x.right),Xe=Math.min(Me.y.top,Me.y.bottom),qe={row:ne.row,column:ne.column};Te/me<=2&&(qe.column+=Me.x.left<Me.x.right?-3:2),Xe/de<=1&&(qe.row+=Me.y.top<Me.y.bottom?-1:1);var rt=ne.row!=qe.row,st=ne.column!=qe.column,et=!ce||ne.row!=ce.row;rt||st&&!et?B?ae-B>=h&&i.renderer.scrollCursorIntoView(qe):B=ae:B=null}function L(){var ne=O;O=i.renderer.screenToTextCoordinates(I,M),$(O,ne),k(O,ne)}function W(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(A),L(),A=setInterval(L,20),D=0,p.addListener(document,"mousemove",Z)}function U(){clearInterval(A),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!R&&i.$resetCursorStyle(),C=null,O=null,D=0,B=null,F=null,p.removeListener(document,"mousemove",Z)}var q=null;function Z(){q==null&&(q=setTimeout(function(){q!=null&&x&&U()},20))}function Q(ne){var ce=ne.types;return!ce||Array.prototype.some.call(ce,function(ae){return ae=="text/plain"||ae=="Text"})}function le(ne){var ce=["copy","copymove","all","uninitialized"],ae=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var $e="none";return de&&ce.indexOf(me)>=0?$e="copy":ae.indexOf(me)>=0?$e="move":ce.indexOf(me)>=0&&($e="copy"),$e}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,i=u.container;i.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var s=w.isWin?"default":"move";u.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(u){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var s=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&i.dragDrop()}if(this.state==="dragWait"){var s=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var i=this.editor,s=u.inSelection(),f=u.getButton(),b=u.domEvent.detail||1;if(b===1&&f===0&&s){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var I=i.container;I.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(l.prototype);function c(u,i,s,f){return Math.sqrt(Math.pow(s-u,2)+Math.pow(f-i,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,v){var g=e("./mouse_event").MouseEvent,p=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var a="scroll",l,c,u,i,s,f,b=0,x,I=0,M=0,A=0,C,O;function D(){var $=window.navigator&&window.navigator.clipboard,k=!1,L=function(){var q=d.getCopyText(),Z=d.session.getUndoManager().hasUndo();O.replaceChild(w.buildDom(k?["span",!q&&W("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&W("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&W("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&W("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Z&&W("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],W("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],W("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),O.firstChild)},W=function(q){return d.commands.canExecute(q,d)},U=function(q){var Z=q.target.getAttribute("action");if(Z=="more"||!k)return k=!k,L();Z=="paste"?$.readText().then(function(Q){d.execCommand(Z,Q)}):Z&&((Z=="cut"||Z=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Z)),O.firstChild.style.display="none",k=!1,Z!="openCommandPalette"&&d.focus()};O=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){a="menu",q.stopPropagation(),q.preventDefault(),d.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function E(){if(!d.getOption("enableMobileMenu")){O&&R();return}O||D();var $=d.selection.cursor,k=d.renderer.textToScreenCoordinates($.row,$.column),L=d.renderer.textToScreenCoordinates(0,0).pageX,W=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();O.style.top=k.pageY-U.top-3+"px",k.pageX-U.left<U.width-70?(O.style.left="",O.style.right="10px"):(O.style.right="",O.style.left=L+W-U.left+"px"),O.style.display="",O.firstChild.style.display="none",d.on("input",R)}function R($){O&&(O.style.display="none"),d.off("input",R)}function B(){s=null,clearTimeout(s);var $=d.selection.getRange(),k=$.contains(x.row,x.column);($.isEmpty()||!k)&&(d.selection.moveToPosition(x),d.selection.selectWord()),a="wait",E()}function F(){s=null,clearTimeout(s),d.selection.moveToPosition(x);var $=I>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),a="wait"}p.addListener(h,"contextmenu",function($){if(C){var k=d.textInput.getElement();k.focus()}},d),p.addListener(h,"touchstart",function($){var k=$.touches;if(s||k.length>1){clearTimeout(s),s=null,u=-1,a="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var L=d.renderer.layerConfig.lineHeight,W=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var q=k[0],Z=q.clientX,Q=q.clientY;Math.abs(l-Z)+Math.abs(c-Q)>L&&(u=-1),l=$.clientX=Z,c=$.clientY=Q,M=A=0;var le=new g($,d);if(x=le.getDocumentPosition(),U-u<500&&k.length==1&&!b)I++,$.preventDefault(),$.button=0,F();else{I=0;var ne=d.selection.cursor,ce=d.selection.isEmpty()?ne:d.selection.anchor,ae=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(ce,!0),me=d.renderer.scroller.getBoundingClientRect(),$e=d.renderer.layerConfig.offset,Me=d.renderer.scrollLeft,Te=function(rt,st){return rt=rt/W,st=st/L-.75,rt*rt+st*st};if($.clientX<me.left){a="zoom";return}var Xe=Te($.clientX-me.left-ae.left+Me,$.clientY-me.top-ae.top+$e),qe=Te($.clientX-me.left-de.left+Me,$.clientY-me.top-de.top+$e);Xe<3.5&&qe<3.5&&(a=Xe>qe?"cursor":"anchor"),qe<3.5?a="anchor":Xe<3.5?a="cursor":a="scroll",s=setTimeout(B,450)}u=U},d),p.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,f&&clearInterval(f),a=="zoom"?(a="",b=0):s?(d.selection.moveToPosition(x),b=0,E()):a=="scroll"?(N(),R()):E(),clearTimeout(s),s=null},d),p.addListener(h,"touchmove",function($){s&&(clearTimeout(s),s=null);var k=$.touches;if(!(k.length>1||a=="zoom")){var L=k[0],W=l-L.clientX,U=c-L.clientY;if(a=="wait")if(W*W+U*U>4)a="cursor";else return $.preventDefault();l=L.clientX,c=L.clientY,$.clientX=L.clientX,$.clientY=L.clientY;var q=$.timeStamp,Z=q-i;if(i=q,a=="scroll"){var Q=new g($,d);Q.speed=1,Q.wheelX=W,Q.wheelY=U,10*Math.abs(W)<Math.abs(U)&&(W=0),10*Math.abs(U)<Math.abs(W)&&(U=0),Z!=0&&(M=W/Z,A=U/Z),d._emit("mousewheel",Q),Q.propagationStopped||(M=A=0)}else{var le=new g($,d),ne=le.getDocumentPosition();a=="cursor"?d.selection.moveCursorToPosition(ne):a=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function N(){b+=60,f=setInterval(function(){b--<=0&&(clearInterval(f),f=null),Math.abs(M)<.01&&(M=0),Math.abs(A)<.01&&(A=0),b<20&&(M=.9*M),b<20&&(A=.9*A);var $=d.session.getScrollTop();d.renderer.scrollBy(10*M,10*A),$==d.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,v){var g=e("../lib/event"),p=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,c=e("../config"),u=(function(){function i(s){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var f=this;this.editor=s,new w(this),new h(this),new a(this);var b=function(M){var A=!document.hasFocus||!document.hasFocus()||!s.isFocused()&&document.activeElement==(s.textInput&&s.textInput.getElement());A&&window.focus(),s.focus(),setTimeout(function(){s.isFocused()||s.focus()})},x=s.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),s),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),s),g.addMultiMouseDownListener([x,s.renderer.scrollBarV&&s.renderer.scrollBarV.inner,s.renderer.scrollBarH&&s.renderer.scrollBarH.inner,s.textInput&&s.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",s),g.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel"),s),l(s.container,s);var I=s.renderer.$gutter;g.addListener(I,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),s),g.addListener(I,"click",this.onMouseEvent.bind(this,"gutterclick"),s),g.addListener(I,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),s),g.addListener(I,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),s),g.addListener(x,"mousedown",b,s),g.addListener(I,"mousedown",b,s),p.isIE&&s.renderer.scrollBarV&&(g.addListener(s.renderer.scrollBarV.element,"mousedown",b,s),g.addListener(s.renderer.scrollBarH.element,"mousedown",b,s)),s.on("mousemove",function(M){if(!(f.state||f.$dragDelay||!f.$dragEnabled)){var A=s.renderer.screenToTextCoordinates(M.x,M.y),C=s.session.selection.getRange(),O=s.renderer;!C.isEmpty()&&C.insideStart(A.row,A.column)?O.setCursorStyle("default"):O.setCursorStyle("")}},s)}return i.prototype.onMouseEvent=function(s,f){this.editor.session&&this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseMove=function(s,f){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseWheel=function(s,f){var b=new d(f,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=f.wheelX,b.wheelY=f.wheelY,this.editor._emit(s,b)},i.prototype.setState=function(s){this.state=s},i.prototype.captureMouse=function(s,f){this.x=s.x,this.y=s.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var I=this,M=!0,A=function(R){if(R){if(p.isWebKit&&!R.which&&I.releaseMouse)return I.releaseMouse();I.x=R.clientX,I.y=R.clientY,f&&f(R),I.mouseEvent=new d(R,I.editor),I.$mouseMoved=!0}},C=function(R){b.off("beforeEndOperation",E),M=!1,b.session&&O(),I[I.state+"End"]&&I[I.state+"End"](R),I.state="",I.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),I.$onCaptureMouseMove=I.releaseMouse=null,R&&I.onMouseEvent("mouseup",R),b.endOperation()},O=function(){I[I.state]&&I[I.state](),I.$mouseMoved=!1},D=function(){M&&(O(),g.nextFrame(D))};if(p.isOldIE&&s.domEvent.type=="dblclick")return setTimeout(function(){C(s)});var E=function(R){I.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(I[I.state+"End"]&&I[I.state+"End"](),I.state="",I.releaseMouse())};b.on("beforeEndOperation",E),b.startOperation({command:{name:"mouse"}}),I.$onCaptureMouseMove=A,I.releaseMouse=g.capture(this.editor.container,A,C),D()},i.prototype.cancelContextMenu=function(){var s=(function(f){f&&f.domEvent&&f.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",s),f&&f.domEvent&&g.stopEvent(f.domEvent))}).bind(this);setTimeout(s,10),this.editor.on("nativecontextmenu",s)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i})();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:p.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,v){var g=e("../lib/dom"),p=(function(){function w(h){h.on("click",function(d){var a=d.getDocumentPosition(),l=h.session,c=l.getFoldAt(a.row,a.column,1);c&&(d.getAccelKey()?l.removeFold(c):l.expandFold(c),d.stop());var u=d.domEvent&&d.domEvent.target;u&&g.hasCssClass(u,"ace_inline_button")&&g.hasCssClass(u,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,c=h.session;c.foldWidgets&&c.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,c=h.session,u=c.getParentFoldRangeData(l,!0),i=u.range||u.firstRange;if(i){l=i.start.row;var s=c.getFoldAt(l,c.getLine(l).length,1);s?c.removeFold(s):(c.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w})();r.FoldHandler=p}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,v){var g=e("../lib/keys"),p=e("../lib/event"),w=(function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var a=this.$handlers;if(a[a.length-1]!=d){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,a){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(d):this.$handlers.splice(a,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var a=this.$handlers.indexOf(d);return a==-1?!1:(this.$handlers.splice(a,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,a=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,a,l,c){for(var u,i=!1,s=this.$editor.commands,f=this.$handlers.length;f--&&(u=this.$handlers[f].handleKeyboard(this.$data,d,a,l,c),!(!(!u||!u.command)&&(u.command=="null"?i=!0:i=s.exec(u.command,this.$editor,u.args,c),i&&c&&d!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&p.stopEvent(c),i))););return!i&&d==-1&&(u={command:"insertstring"},i=s.exec("insertstring",this.$editor,a)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),i},h.prototype.onCommandKey=function(d,a,l){var c=g.keyCodeToString(l);return this.$callKeyboardHandlers(a,c,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h})();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,v){var g=0,p=0,w=!1,h=!1,d=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,u=1,i=0,s=1,f=2,b=3,x=4,I=5,M=6,A=7,C=8,O=9,D=10,E=11,R=12,B=13,F=14,N=15,$=16,k=17,L=18,W=[L,L,L,L,L,L,L,L,L,M,I,M,C,I,L,L,L,L,L,L,L,L,L,L,L,L,L,L,I,I,I,M,C,x,x,E,E,E,x,x,x,x,x,D,O,D,O,O,f,f,f,f,f,f,f,f,f,f,O,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,L,L,L,L,L,L,I,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,O,x,E,E,E,E,x,x,x,x,i,x,x,L,x,x,E,E,f,f,x,i,x,x,x,f,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,L,L,L,i,s,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,I,B,F,N,$,k,O,E,E,E,E,E,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,O,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function q(ne,ce,ae,de){var me=g?l:a,$e=null,Me=null,Te=null,Xe=0,qe=null,rt=null,st=-1,et=null,Pt=null,yr=[];if(!de)for(et=0,de=[];et<ae;et++)de[et]=le(ne[et]);for(p=g,w=!1,h=!1,d=!1,Pt=0;Pt<ae;Pt++){if($e=Xe,yr[Pt]=Me=Q(ne,de,yr,Pt),Xe=me[$e][Me],qe=Xe&240,Xe&=15,ce[Pt]=Te=me[Xe][5],qe>0)if(qe==16){for(et=st;et<Pt;et++)ce[et]=1;st=-1}else st=-1;if(rt=me[Xe][6],rt)st==-1&&(st=Pt);else if(st>-1){for(et=st;et<Pt;et++)ce[et]=Te;st=-1}de[Pt]==I&&(ce[Pt]=0),p|=Te}if(d){for(et=0;et<ae;et++)if(de[et]==M){ce[et]=g;for(var _t=et-1;_t>=0&&de[_t]==C;_t--)ce[_t]=g}}}function Z(ne,ce,ae){if(!(p<ne)){if(ne==1&&g==u&&!h){ae.reverse();return}for(var de=ae.length,me=0,$e,Me,Te,Xe;me<de;){if(ce[me]>=ne){for($e=me+1;$e<de&&ce[$e]>=ne;)$e++;for(Me=me,Te=$e-1;Me<Te;Me++,Te--)Xe=ae[Me],ae[Me]=ae[Te],ae[Te]=Xe;me=$e}me++}}}function Q(ne,ce,ae,de){var me=ce[de],$e,Me,Te,Xe;switch(me){case i:case s:w=!1;case x:case b:return me;case f:return w?b:f;case A:return w=!0,s;case C:return x;case O:return de<1||de+1>=ce.length||($e=ae[de-1])!=f&&$e!=b||(Me=ce[de+1])!=f&&Me!=b?x:(w&&(Me=b),Me==$e?Me:x);case D:return $e=de>0?ae[de-1]:I,$e==f&&de+1<ce.length&&ce[de+1]==f?f:x;case E:if(de>0&&ae[de-1]==f)return f;if(w)return x;for(Xe=de+1,Te=ce.length;Xe<Te&&ce[Xe]==E;)Xe++;return Xe<Te&&ce[Xe]==f?f:x;case R:for(Te=ce.length,Xe=de+1;Xe<Te&&ce[Xe]==R;)Xe++;if(Xe<Te){var qe=ne[de],rt=qe>=1425&&qe<=2303||qe==64286;if($e=ce[Xe],rt&&($e==s||$e==A))return s}return de<1||($e=ce[de-1])==I?x:ae[de-1];case I:return w=!1,h=!0,g;case M:return d=!0,x;case B:case F:case $:case k:case N:w=!1;case L:return x}}function le(ne){var ce=ne.charCodeAt(0),ae=ce>>8;return ae==0?ce>191?i:W[ce]:ae==5?/[\u0591-\u05f4]/.test(ne)?s:i:ae==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?R:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:ce==1642?E:/[\u06f0-\u06f9]/.test(ne)?f:A:ae==32&&ce<=8287?U[ce&255]:ae==254&&ce>=65136?A:x}r.L=i,r.R=s,r.EN=f,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,ce,ae){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),$e=new Array(de.length),Me=[];g=ae?u:c,q(de,Me,de.length,ce);for(var Te=0;Te<me.length;me[Te]=Te,Te++);Z(2,Me,me),Z(1,Me,me);for(var Te=0;Te<me.length-1;Te++)ce[Te]===b?Me[Te]=r.AN:Me[Te]===s&&(ce[Te]>A&&ce[Te]<B||ce[Te]===x||ce[Te]===L)?Me[Te]=r.ON_R:Te>0&&de[Te-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Te])&&(Me[Te-1]=Me[Te]=r.R_H,Te++);de[de.length-1]===r.DOT&&(Me[de.length-1]=r.B),de[0]===""&&(Me[0]=r.RLE);for(var Te=0;Te<me.length;Te++)$e[Te]=Me[me[Te]];return{logicalFromVisual:me,bidiLevels:$e}},r.hasBidiCharacters=function(ne,ce){for(var ae=!1,de=0;de<ne.length;de++)ce[de]=le(ne.charAt(de)),!ae&&(ce[de]==s||ce[de]==A||ce[de]==b)&&(ae=!0);return ae},r.getVisualFromLogicalIdx=function(ne,ce){for(var ae=0;ae<ce.logicalFromVisual.length;ae++)if(ce.logicalFromVisual[ae]==ne)return ae;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,v){var g=e("./lib/bidiutil"),p=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=(function(){function d(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(a.getValue())}return d.prototype.isBidiRow=function(a,l,c){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
|
|
182
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var c=this.session.$getRowCacheIndex(l,this.currentRow);c>=0&&(a=this.session.$docRowCache[c])}return a},d.prototype.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var c,u=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(c=this.session.$getRowCacheIndex(l,this.currentRow-a-1),c===u);)u=c,a++;else a=this.currentRow;return a},d.prototype.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var c=a===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[a];i&&(l===void 0&&(l=this.getSplitIndex()),l>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[g.L],this.line=l<i.length?this.line.substring(i[l-1],i[l]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[l]),l==i.length&&(this.line+=this.showInvisibles?u:g.DOT))}else this.line+=this.showInvisibles?u:g.DOT;var s=this.session,f=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,I){return x===" "||s.isFullWidth(x.charCodeAt(0))?(b=x===" "?s.getScreenTabSize(I+f):2,f+=b-1,p.stringRepeat(g.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==g.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var a=[];g.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=g.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,c=a.$measureCharWidth("ה");this.charWidths[g.L]=this.charWidths[g.EN]=this.charWidths[g.ON_R]=l,this.charWidths[g.R]=this.charWidths[g.AN]=c,this.charWidths[g.R_H]=c*.45,this.charWidths[g.B]=this.charWidths[g.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},d.prototype.setEolChar=function(a){this.EOL=a},d.prototype.setContentWidth=function(a){this.contentWidth=a},d.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(a,l){for(var c=a.getCursorPosition(),u=a.selection.getSelectionAnchor().row;u<=c.row;u++)!l&&a.session.getLine(u).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(u,0,1):l&&a.session.getLine(u).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:u},a.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,c=a>l?this.session.getOverwrite()?a:a-1:l,u=g.getVisualFromLogicalIdx(c,this.bidiMap),i=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&a<=l&&i[u]%2!==0&&u++;for(var f=0;f<u;f++)s+=this.charWidths[i[f]];return!this.session.getOverwrite()&&a>l&&i[u]%2===0&&(s+=this.charWidths[i[u]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},d.prototype.getSelections=function(a,l){var c=this.bidiMap,u=c.bidiLevels,i,s=[],f=0,b=Math.min(a,l)-this.wrapIndent,x=Math.max(a,l)-this.wrapIndent,I=!1,M=!1,A=0;this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,O=0;O<u.length;O++)C=c.logicalFromVisual[O],i=u[O],I=C>=b&&C<x,I&&!M?A=f:!I&&M&&s.push({left:A,width:f-A}),f+=this.charWidths[i],M=I;if(I&&O===u.length&&s.push({left:A,width:f-A}),this.isRtlDir)for(var D=0;D<s.length;D++)s[D].left+=this.rtlLineOffset;return s},d.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var l=0,c=Math.max(c,0),u=0,i=0,s=this.bidiMap.bidiLevels,f=this.charWidths[s[i]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+f/2;){if(u+=f,i===s.length-1){f=0;break}f=this.charWidths[s[++i]]}return i>0&&s[i-1]%2!==0&&s[i]%2===0?(c<u&&i--,l=this.bidiMap.logicalFromVisual[i]):i>0&&s[i-1]%2===0&&s[i]%2!==0?l=1+(c>u?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===s.length-1&&f===0&&s[i-1]%2===0||!this.isRtlDir&&i===0&&s[i]%2!==0?l=1+this.bidiMap.logicalFromVisual[i]:(i>0&&s[i-1]%2!==0&&f!==0&&i--,l=this.bidiMap.logicalFromVisual[i]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},d})();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,v){var g=e("./lib/oop"),p=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=(function(){function a(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(l,c){this.$isEmpty=!1,this.anchor.setPosition(l,c)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var l=this.anchor,c=this.lead;return l.row>c.row||l.row==c.row&&l.column>c.column},a.prototype.getRange=function(){var l=this.anchor,c=this.lead;return this.$isEmpty?h.fromPoints(c,c):this.isBackwards()?h.fromPoints(c,l):h.fromPoints(l,c)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(l,c){var u=c?l.end:l.start,i=c?l.start:l.end;this.$setSelection(u.row,u.column,i.row,i.column)},a.prototype.$setSelection=function(l,c,u,i){if(!this.$silent){var s=this.$isEmpty,f=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,c),this.cursor.setPosition(u,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||f)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(l){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),l.call(this)},a.prototype.selectTo=function(l,c){this.$moveSelection(function(){this.moveCursorTo(l,c)})},a.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},a.prototype.moveTo=function(l,c){this.clearSelection(),this.moveCursorTo(l,c)},a.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(l,c){if(typeof c>"u"){var u=l||this.lead;l=u.row,c=u.column}return this.session.getWordRange(l,c)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var l=this.getCursor(),c=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(c)},a.prototype.getLineRange=function(l,c){var u=typeof l=="number"?l:this.lead.row,i,s=this.session.getFoldLine(u);return s?(u=s.start.row,i=s.end.row):i=u,c===!0?new h(u,0,i,this.session.getLine(i).length):new h(u,0,i+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(l,c,u){var i=l.column,s=l.column+c;return u<0&&(i=l.column-c,s=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(i,s).split(" ").length-1==c},a.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(c.end.row,c.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 u=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var l=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(l,c),i=this.session.screenToDocumentPosition(u,0),s=this.session.getDisplayLine(l,null,i.row,i.column),f=s.match(/^\s*/);f[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(i.column+=f[0].length),this.moveCursorToPosition(i)},a.prototype.moveCursorLineEnd=function(){var l=this.lead,c=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var i=u.search(/\s+$/);i>0&&(c.column=i)}}this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,c=this.doc.getLine(l).length;this.moveCursorTo(l,c)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,c=this.lead.column,u=this.doc.getLine(l),i=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(l,c,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if(this.session.nonTokenRe.exec(i)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=u.substring(c)),c>=u.length){this.moveCursorTo(l,u.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,c)},a.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(l,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var i=this.session.getFoldStringAt(l,c,-1);i==null&&(i=this.doc.getLine(l).substring(0,c));var s=p.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(c-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(s)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,c)},a.prototype.$shortWordEndIndex=function(l){var c=0,u,i=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(l))c=this.session.tokenRe.lastIndex;else{for(;(u=l[c])&&i.test(u);)c++;if(c<1){for(s.lastIndex=0;(u=l[c])&&!s.test(u);)if(s.lastIndex=0,c++,i.test(u))if(c>2){c--;break}else{for(;(u=l[c])&&i.test(u);)c++;if(c>2)break}}}return s.lastIndex=0,c},a.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,c=this.lead.column,u=this.doc.getLine(l),i=u.substring(c),s=this.session.getFoldAt(l,c,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(c==u.length){var f=this.doc.getLength();do l++,i=this.doc.getLine(l);while(l<f&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),c=0}var b=this.$shortWordEndIndex(i);this.moveCursorTo(l,c+b)},a.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(l,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var i=this.session.getLine(l).substring(0,c);if(c===0){do l--,i=this.doc.getLine(l);while(l>0&&/^\s*$/.test(i));c=i.length,/\s+$/.test(i)||(i="")}var s=p.stringReverse(i),f=this.$shortWordEndIndex(s);return this.moveCursorTo(l,c-f)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(l,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(c===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var s=this.session.lineWidgets[this.lead.row];l<0?l-=s.rowsAbove||0:l>0&&(l+=s.rowCount-(s.rowsAbove||0))}var f=this.session.screenToDocumentPosition(u.row+l,u.column,i);l!==0&&c===0&&f.row===this.lead.row&&(f.column,this.lead.column),this.moveCursorTo(f.row,f.column+c,c===0)},a.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},a.prototype.moveCursorTo=function(l,c,u){var i=this.session.getFoldAt(l,c,1);i&&(l=i.start.row,c=i.start.column),this.$keepDesiredColumnOnChange=!0;var s=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(s.charAt(c))&&s.charAt(c-1)&&(this.lead.row==l&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(l,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(l,c,u){var i=this.session.screenToDocumentPosition(l,c);this.moveCursorTo(i.row,i.column,u)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(l){var c=this.getRange();return l?(l.start.column=c.start.column,l.start.row=c.start.row,l.end.column=c.end.column,l.end.row=c.end.row):l=c,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},a.prototype.getRangeOfMovements=function(l){var c=this.getCursor();try{l(this);var u=this.getCursor();return h.fromPoints(c,u)}catch{return h.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},a.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},a.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var c=l.length;c--;){var u=h.fromPoints(l[c].start,l[c].end);l[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},a.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(l[c]))return!1;return!0},a})();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,g.implement(d.prototype,w),r.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,v){var g=e("./lib/report_error").reportError,p=2e3,w=(function(){function h(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var a in this.states){for(var l=this.states[a],c=[],u=0,i=this.matchMappings[a]={defaultToken:"text"},s="g",f=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&s.indexOf("i")===-1&&(s+="i"),x.unicode&&s.indexOf("u")===-1&&(s+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var I=x.regex,M=new RegExp("(?:("+I+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||M==1?x.token=x.token[0]:M-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:M-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(M>1?x.onMatch=this.$applyToken:x.onMatch=x.token),M>1&&(/\\\d/.test(x.regex)?I=x.regex.replace(/\\([0-9]+)/g,function(A,C){return"\\"+(parseInt(C,10)+u+1)}):(M=1,I=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&f.push(x)),i[u]=b,u+=M,c.push(I),x.onMatch||(x.onMatch=null)}}c.length||(i[0]=0,c.push("$")),f.forEach(function(A){A.splitRegex=this.createSplitterRegexp(A.regex,s)},this),this.regExps[a]=new RegExp("("+c.join(")|(")+")|($)",s)}}return h.prototype.$setMaxTokenCount=function(d){p=d|0},h.prototype.$applyToken=function(d){var a=this.splitRegex.exec(d).slice(1),l=this.token.apply(this,a);if(typeof l=="string")return[{type:l,value:d}];for(var c=[],u=0,i=l.length;u<i;u++)a[u]&&(c[c.length]={type:l[u],value:a[u]});return c},h.prototype.$arrayTokens=function(d){if(!d)return[];var a=this.splitRegex.exec(d);if(!a)return"text";for(var l=[],c=this.tokenArray,u=0,i=c.length;u<i;u++)a[u+1]&&(l[l.length]={type:c[u],value:a[u+1]});return l},h.prototype.removeCapturingGroups=function(d){var a=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,c){return c?"(?:":l});return a},h.prototype.createSplitterRegexp=function(d,a){if(d.indexOf("(?=")!=-1){var l=0,c=!1,u={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,s,f,b,x,I){return c?c=x!="]":x?c=!0:b?(l==u.stack&&(u.end=I+1,u.stack=-1),l--):f&&(l++,f.length!=1&&(u.stack=l,u.start=I)),i}),u.end!=null&&/^\)*$/.test(d.substr(u.end))&&(d=d.substring(0,u.start)+d.substr(u.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(a||"").replace("g",""))},h.prototype.getLineTokens=function(d,a){if(a&&typeof a!="string"){var l=a.slice(0);a=l[0],a==="#tmp"&&(l.shift(),a=l.shift())}else var l=[];var c=a||"start",u=this.states[c];u||(c="start",u=this.states[c]);var i=this.matchMappings[c],s=this.regExps[c];s.lastIndex=0;for(var f,b=[],x=0,I=0,M={type:null,value:""};f=s.exec(d);){var A=i.defaultToken,C=null,O=f[0],D=s.lastIndex;if(D-O.length>x){var E=d.substring(x,D-O.length);M.type==A?M.value+=E:(M.type&&b.push(M),M={type:A,value:E})}for(var R=0;R<f.length-2;R++)if(f[R+1]!==void 0){C=u[i[R]],C.onMatch?A=C.onMatch(O,c,l,d):A=C.token,C.next&&(typeof C.next=="string"?c=C.next:c=C.next(c,l),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),i=this.matchMappings[c],x=D,s=this.regExps[c],s.lastIndex=D),C.consumeLineEnd&&(x=D);break}if(O){if(typeof A=="string")(!C||C.merge!==!1)&&M.type===A?M.value+=O:(M.type&&b.push(M),M={type:A,value:O});else if(A){M.type&&b.push(M),M={type:null,value:""};for(var R=0;R<A.length;R++)b.push(A[R])}}if(x==d.length)break;if(x=D,I++>p){for(I>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:d});x<d.length;)M.type&&b.push(M),M={value:d.substring(x,x+=500),type:"overflow"};c="start",l=[];break}}return M.type&&b.push(M),l.length>1&&l[0]!==c&&l.unshift("#tmp",c),{tokens:b,state:l.length?l:c}},h})();w.prototype.reportError=g,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){var g=e("../lib/deep_copy").deepCopy,p;p=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,a){if(!a){for(var l in d)this.$rules[l]=d[l];return}for(var l in d){for(var c=d[l],u=0;u<c.length;u++){var i=c[u];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(a)!==0&&(i.next=a+i.next),i.nextState&&i.nextState.indexOf(a)!==0&&(i.nextState=a+i.nextState))}this.$rules[a+l]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(d,a,l,c,u){var i=typeof d=="function"?new d().getRules():d;if(c)for(var s=0;s<c.length;s++)c[s]=a+c[s];else{c=[];for(var f in i)c.push(a+f)}if(this.addRules(i,a),l)for(var b=Array.prototype[u?"push":"unshift"],s=0;s<c.length;s++)b.apply(this.$rules[c[s]],g(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(d,a){return(d!="start"||a.length)&&a.unshift(this.nextState,d),this.nextState},h=function(d,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var d=0,a=this.$rules;function l(c){var u=a[c];u.processed=!0;for(var i=0;i<u.length;i++){var s=u[i],f=null;Array.isArray(s)&&(f=s,s={}),!s.regex&&s.start&&(s.regex=s.start,s.next||(s.next=[]),s.next.push({defaultToken:s.token},{token:s.token+".end",regex:s.end||s.start,next:"pop"}),s.token=s.token+".start",s.push=!0);var b=s.next||s.push;if(b&&Array.isArray(b)){var x=s.stateName;x||(x=s.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=d++)),a[x]=b,s.next=x,l(x)}else b=="pop"&&(s.next=h);if(s.push&&(s.nextState=s.next||s.push,s.next=w,delete s.push),s.rules)for(var I in s.rules)a[I]?a[I].push&&a[I].push.apply(a[I],s.rules[I]):a[I]=s.rules[I];var M=typeof s=="string"?s:s.include;if(M&&(M==="$self"&&(M="start"),Array.isArray(M)?f=M.map(function(C){return a[C]}):f=a[M]),f){var A=[i,1].concat(f);s.noEscape&&(A=A.filter(function(C){return!C.next})),u.splice.apply(u,A),i--}s.keywordMap&&(s.token=this.createKeywordMapper(s.keywordMap,s.defaultToken||"text",s.caseInsensitive),delete s.defaultToken)}}Object.keys(a).forEach(l,this)},this.createKeywordMapper=function(d,a,l,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(i){for(var s=d[i],f=s.split(c||"|"),b=f.length;b--;){var x=f[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),u[x]=i}},this),d=null,l?function(i){return u[i.toLowerCase()]||a}:function(i){return u[i]||a}},this.getKeywords=function(){return this.$keywords}}).call(p.prototype),r.TextHighlightRules=p}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,v){var g;g=function(){this.$behaviours={}},(function(){this.add=function(p,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[p]:this.$behaviours[p]={}}this.$behaviours[p][w]=h},this.addBehaviours=function(p){for(var w in p)for(var h in p[w])this.add(w,h,p[w][h])},this.remove=function(p){this.$behaviours&&this.$behaviours[p]&&delete this.$behaviours[p]},this.inherit=function(p,w){if(typeof p=="function")var h=new p().getBehaviours(w);else var h=p.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(p){if(p){for(var w={},h=0;h<p.length;h++)this.$behaviours[p[h]]&&(w[p[h]]=this.$behaviours[p[h]]);return w}else return this.$behaviours}}).call(g.prototype),r.Behaviour=g}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,v){var g=e("./range").Range,p=(function(){function w(h,d,a){this.$session=h,this.$row=d,this.$rowTokens=h.getTokens(d);var l=h.getTokenAt(d,a);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,d=this.$tokenIndex,a=h[d].start;if(a!==void 0)return a;for(a=0;d>0;)d-=1,a+=h[d].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new g(this.$row,d,this.$row,d+h.value.length)},w})();r.TokenIterator=p}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,v){var g=e("../../lib/oop"),p=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,c={},u={'"':'"',"'":"'"},i=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,c.rangeCount!=b.multiSelect.rangeCount&&(c={rangeCount:b.multiSelect.rangeCount})),c[x])return l=c[x];l=c[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(b,x,I,M){var A=b.end.row-b.start.row;return{text:I+x+M,selection:[0,b.start.column+1,A,b.end.column+(A?0:1)]}},f;f=function(b){b=b||{},this.add("braces","insertion",function(x,I,M,A,C){var O=M.getCursorPosition(),D=A.doc.getLine(O.row);if(C=="{"){i(M);var E=M.getSelectionRange(),R=A.doc.getTextRange(E),B=A.getTokenAt(O.row,O.column);if(R!==""&&R!=="{"&&M.getWrapBehavioursEnabled())return s(E,R,"{","}");if(B&&/(?:string)\.quasi|\.xml/.test(B.type)){var F=[/tag\-(?:open|name)/,/attribute\-name/];return F.some(function(q){return q.test(B.type)})||/(string)\.quasi/.test(B.type)&&B.value[O.column-B.start-1]!=="$"?void 0:(f.recordAutoInsert(M,A,"}"),{text:"{}",selection:[1,1]})}else if(f.isSaneInsertion(M,A))return/[\]\}\)]/.test(D[O.column])||M.inMultiSelectMode||b.braces?(f.recordAutoInsert(M,A,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(M,A,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(M);var N=D.substring(O.column,O.column+1);if(N=="}"){var $=A.$findOpeningBracket("}",{column:O.column+1,row:O.row});if($!==null&&f.isAutoInsertedClosing(O,D,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
|
183
|
-
`||C==`\r
|
|
184
|
-
`){i(M);var k="";f.isMaybeInsertedClosing(O,D)&&(k=h.stringRepeat("}",l.maybeInsertedBrackets),f.clearMaybeInsertedClosing());var N=D.substring(O.column,O.column+1);if(N==="}"){var L=A.findMatchingBracket({row:O.row,column:O.column+1},"}");if(!L)return null;var W=this.$getIndent(A.getLine(L.row))}else if(k)var W=this.$getIndent(D);else{f.clearMaybeInsertedClosing();return}var U=W+A.getTabString();return{text:`
|
|
185
|
-
`+U+`
|
|
186
|
-
`+W+k,selection:[1,U.length,1,U.length]}}else f.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,I,M,A,C){var O=A.doc.getTextRange(C);if(!C.isMultiLine()&&O=="{"){i(M);var D=A.doc.getLine(C.start.row),E=D.substring(C.end.column,C.end.column+1);if(E=="}")return C.end.column++,C;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,I,M,A,C){if(C=="("){i(M);var O=M.getSelectionRange(),D=A.doc.getTextRange(O);if(D!==""&&M.getWrapBehavioursEnabled())return s(O,D,"(",")");if(f.isSaneInsertion(M,A))return f.recordAutoInsert(M,A,")"),{text:"()",selection:[1,1]}}else if(C==")"){i(M);var E=M.getCursorPosition(),R=A.doc.getLine(E.row),B=R.substring(E.column,E.column+1);if(B==")"){var F=A.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(F!==null&&f.isAutoInsertedClosing(E,R,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,I,M,A,C){var O=A.doc.getTextRange(C);if(!C.isMultiLine()&&O=="("){i(M);var D=A.doc.getLine(C.start.row),E=D.substring(C.start.column+1,C.start.column+2);if(E==")")return C.end.column++,C}}),this.add("brackets","insertion",function(x,I,M,A,C){if(C=="["){i(M);var O=M.getSelectionRange(),D=A.doc.getTextRange(O);if(D!==""&&M.getWrapBehavioursEnabled())return s(O,D,"[","]");if(f.isSaneInsertion(M,A))return f.recordAutoInsert(M,A,"]"),{text:"[]",selection:[1,1]}}else if(C=="]"){i(M);var E=M.getCursorPosition(),R=A.doc.getLine(E.row),B=R.substring(E.column,E.column+1);if(B=="]"){var F=A.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(F!==null&&f.isAutoInsertedClosing(E,R,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,I,M,A,C){var O=A.doc.getTextRange(C);if(!C.isMultiLine()&&O=="["){i(M);var D=A.doc.getLine(C.start.row),E=D.substring(C.start.column+1,C.start.column+2);if(E=="]")return C.end.column++,C}}),this.add("string_dquotes","insertion",function(x,I,M,A,C){var O=A.$mode.$quotes||u;if(C.length==1&&O[C]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(C)!=-1)return;i(M);var D=C,E=M.getSelectionRange(),R=A.doc.getTextRange(E);if(R!==""&&(R.length!=1||!O[R])&&M.getWrapBehavioursEnabled())return s(E,R,D,D);if(!R){var B=M.getCursorPosition(),F=A.doc.getLine(B.row),N=F.substring(B.column-1,B.column),$=F.substring(B.column,B.column+1),k=A.getTokenAt(B.row,B.column),L=A.getTokenAt(B.row,B.column+1);if(N=="\\"&&k&&/escape/.test(k.type))return null;var W=k&&/string|escape/.test(k.type),U=!L||/string|escape/.test(L.type),q;if($==D)q=W!==U,q&&/string\.end/.test(L.type)&&(q=!1);else{if(W&&!U||W&&U)return null;var Z=A.$mode.tokenRe;Z.lastIndex=0;var Q=Z.test(N);Z.lastIndex=0;var le=Z.test($),ne=A.$mode.$pairQuotesAfter,ce=ne&&ne[D]&&ne[D].test(N);if(!ce&&Q||le||$&&!/[\s;,.})\]\\]/.test($))return null;var ae=F[B.column-2];if(N==D&&(ae==D||Z.test(ae)))return null;q=!0}return{text:q?D+D:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,I,M,A,C){var O=A.$mode.$quotes||u,D=A.doc.getTextRange(C);if(!C.isMultiLine()&&O.hasOwnProperty(D)){i(M);var E=A.doc.getLine(C.start.row),R=E.substring(C.start.column+1,C.start.column+2);if(R==D)return C.end.column++,C}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,I,M,A,C){if(x==="doc-start"&&(C===`
|
|
187
|
-
`||C===`\r
|
|
188
|
-
`)&&M.selection.isEmpty()){var O=M.getCursorPosition();if(O.column===0)return;for(var D=A.doc.getLine(O.row),E=A.doc.getLine(O.row+1),R=A.getTokens(O.row),B=0,F=0;F<R.length;F++){B+=R[F].value.length;var N=R[F];if(B>=O.column){if(B===O.column){if(!/\.doc/.test(N.type))return;if(/\*\//.test(N.value)){var $=R[F+1];if(!$||!/\.doc/.test($.type))return}}var k=O.column-(B-N.value.length),L=N.value.indexOf("*/"),W=N.value.indexOf("/**",L>-1?L+2:0);if(W!==-1&&k>W&&k<W+3||L!==-1&&W!==-1&&k>=L&&k<=W||!/\.doc/.test(N.type))return;break}}var U=this.$getIndent(D);if(/\s*\*/.test(E))return/^\s*\*/.test(D)?{text:C+U+"* ",selection:[1,2+U.length,1,2+U.length]}:{text:C+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(D.substring(0,O.column)))return{text:C+U+" * "+C+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})},f.isSaneInsertion=function(b,x){var I=b.getCursorPosition(),M=new w(x,I.row,I.column);if(!this.$matchTokenType(M.getCurrentToken()||"text",d)){if(/[)}\]]/.test(b.session.getLine(I.row)[I.column]))return!0;var A=new w(x,I.row,I.column+1);if(!this.$matchTokenType(A.getCurrentToken()||"text",d))return!1}return M.stepForward(),M.getCurrentTokenRow()!==I.row||this.$matchTokenType(M.getCurrentToken()||"text",a)},f.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},f.recordAutoInsert=function(b,x,I){var M=b.getCursorPosition(),A=x.doc.getLine(M.row);this.isAutoInsertedClosing(M,A,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=M.row,l.autoInsertedLineEnd=I+A.substr(M.column),l.autoInsertedBrackets++},f.recordMaybeInsert=function(b,x,I){var M=b.getCursorPosition(),A=x.doc.getLine(M.row);this.isMaybeInsertedClosing(M,A)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=M.row,l.maybeInsertedLineStart=A.substr(0,M.column)+I,l.maybeInsertedLineEnd=A.substr(M.column),l.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(b,x,I){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&I===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},g.inherits(f,p),r.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(e,r,v){for(var g=[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],p=0,w=[],h=0;h<g.length;h+=2)w.push(p+=g[h]),g[h+1]&&w.push(45,p+=g[h+1]);r.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,r,v){var g=e("../config"),p=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,d=e("../unicode"),a=e("../lib/lang"),l=e("../token_iterator").TokenIterator,c=e("../range").Range,u;u=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+d.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+d.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new p(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(i,s,f,b){var x=s.doc,I=!0,M=!0,A=1/0,C=s.getTabSize(),O=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var D=this.lineCommentStart.map(a.escapeRegExp).join("|"),E=this.lineCommentStart[0];else var D=a.escapeRegExp(this.lineCommentStart),E=this.lineCommentStart;D=new RegExp("^(\\s*)(?:"+D+") ?"),O=s.getUseSoftTabs();var R=function(q,Z){var Q=q.match(D);if(Q){var le=Q[1].length,ne=Q[0].length;!$(q,le,ne)&&Q[0][ne-1]==" "&&ne--,x.removeInLine(Z,le,ne)}},B=E+" ",F=function(q,Z){(!I||/\S/.test(q))&&($(q,A,A)?x.insertInLine({row:Z,column:A},B):x.insertInLine({row:Z,column:A},E))},N=function(q,Z){return D.test(q)},$=function(q,Z,Q){for(var le=0;Z--&&q.charAt(Z)==" ";)le++;if(le%C!=0)return!1;for(var le=0;q.charAt(Q++)==" ";)le++;return C>2?le%C!=C-1:le%C==0}}else{if(!this.blockComment)return!1;var E=this.blockComment.start,k=this.blockComment.end,D=new RegExp("^(\\s*)(?:"+a.escapeRegExp(E)+")"),L=new RegExp("(?:"+a.escapeRegExp(k)+")\\s*$"),F=function(ce,ae){N(ce,ae)||(!I||/\S/.test(ce))&&(x.insertInLine({row:ae,column:ce.length},k),x.insertInLine({row:ae,column:A},E))},R=function(ce,ae){var de;(de=ce.match(L))&&x.removeInLine(ae,ce.length-de[0].length,ce.length),(de=ce.match(D))&&x.removeInLine(ae,de[1].length,de[0].length)},N=function(ce,ae){if(D.test(ce))return!0;for(var de=s.getTokens(ae),me=0;me<de.length;me++)if(de[me].type==="comment")return!0}}function W(q){for(var Z=f;Z<=b;Z++)q(x.getLine(Z),Z)}var U=1/0;W(function(q,Z){var Q=q.search(/\S/);Q!==-1?(Q<A&&(A=Q),M&&!N(q,Z)&&(M=!1)):U>q.length&&(U=q.length)}),A==1/0&&(A=U,I=!1,M=!1),O&&A%C!=0&&(A=Math.floor(A/C)*C),W(M?R:F)},this.toggleBlockComment=function(i,s,f,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var I=new l(s,b.row,b.column),M=I.getCurrentToken();s.selection;var A=s.selection.toOrientedRange(),C,O;if(M&&/comment/.test(M.type)){for(var D,E;M&&/comment/.test(M.type);){var R=M.value.indexOf(x.start);if(R!=-1){var B=I.getCurrentTokenRow(),F=I.getCurrentTokenColumn()+R;D=new c(B,F,B,F+x.start.length);break}M=I.stepBackward()}for(var I=new l(s,b.row,b.column),M=I.getCurrentToken();M&&/comment/.test(M.type);){var R=M.value.indexOf(x.end);if(R!=-1){var B=I.getCurrentTokenRow(),F=I.getCurrentTokenColumn()+R;E=new c(B,F,B,F+x.end.length);break}M=I.stepForward()}E&&s.remove(E),D&&(s.remove(D),C=D.start.row,O=-x.start.length)}else O=x.start.length,C=f.start.row,s.insert(f.end,x.end),s.insert(f.start,x.start);A.start.row==C&&(A.start.column+=O),A.end.row==C&&(A.end.column+=O),s.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(i,s,f){return this.$getIndent(s)},this.checkOutdent=function(i,s,f){return!1},this.autoOutdent=function(i,s,f){},this.$getIndent=function(i){return i.match(/^\s*/)[0]},this.createWorker=function(i){return null},this.createModeDelegates=function(i){this.$embeds=[],this.$modes={};for(var s in i)if(i[s]){var f=i[s],b=f.prototype.$id,x=g.$modes[b];x||(g.$modes[b]=x=new f),g.$modes[s]||(g.$modes[s]=x),this.$embeds.push(s),this.$modes[s]=x}for(var I=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],M=function(O){(function(D){var E=I[O],R=D[E];D[I[O]]=function(){return this.$delegator(E,arguments,R)}})(A)},A=this,s=0;s<I.length;s++)M(s)},this.$delegator=function(i,s,f){var b=s[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],I=this.$modes[x];if(I)return I[i].apply(I,[b[1]].concat([].slice.call(s,1)))}b=b[0]||"start"}for(var M=0;M<this.$embeds.length;M++)if(this.$modes[this.$embeds[M]]){var A=b.split(this.$embeds[M]);if(!A[0]&&A[1]){s[0]=A[1];var I=this.$modes[this.$embeds[M]];return I[i].apply(I,s)}}var C=f.apply(this,s);return f?C:void 0},this.transformAction=function(i,s,f,b,x){if(this.$behaviour){var I=this.$behaviour.getBehaviours();for(var M in I)if(I[M][s]){var A=I[M][s].apply(this,arguments);if(A)return A}}},this.getKeywords=function(i){if(!this.completionKeywords){var s=this.$tokenizer.rules,f=[];for(var b in s)for(var x=s[b],I=0,M=x.length;I<M;I++)if(typeof x[I].token=="string")/keyword|support|storage/.test(x[I].token)&&f.push(x[I].regex);else if(typeof x[I].token=="object"){for(var A=0,C=x[I].token.length;A<C;A++)if(/keyword|support|storage/.test(x[I].token[A])){var b=x[I].regex.match(/\(.+?\)/g)[A];f.push(b.substr(1,b.length-2))}}this.completionKeywords=f}return i?f.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(i,s,f,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(I){return{name:I,value:I,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),r.Mode=u}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,v){var g=e("./lib/dom"),p=(function(){function w(h){this.session=h,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return w.prototype.getRowLength=function(h){var d;return this.lineWidgets?d=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:d=0,!this.$useWrapMode||!this.$wrapData[h]?1+d:this.$wrapData[h].length+1+d},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(d){d&&d.rowCount&&!d.hidden&&(h+=d.rowCount)}),h},w.prototype.$onChangeEditor=function(h){this.attach(h.editor)},w.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(h){var d=this.editor;if(d){this.editor=null,d.widgetManager=null,d.renderer.off("beforeRender",this.measureWidgets),d.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},w.prototype.updateOnFold=function(h,d){var a=d.lineWidgets;if(!(!a||!h.action)){for(var l=h.data,c=l.start.row,u=l.end.row,i=h.action=="add",s=c+1;s<u;s++)a[s]&&(a[s].hidden=i);a[u]&&(i?a[c]?a[u].hidden=i:a[c]=a[u]:(a[c]==a[u]&&(a[c]=void 0),a[u].hidden=i))}},w.prototype.updateOnChange=function(h){var d=this.session.lineWidgets;if(d){var a=h.start.row,l=h.end.row-a;if(l!==0)if(h.action=="remove"){var c=d.splice(a+1,l);!d[a]&&c[c.length-1]&&(d[a]=c.pop()),c.forEach(function(i){i&&this.removeLineWidget(i)},this),this.$updateRows()}else{var u=new Array(l);d[a]&&d[a].column!=null&&h.start.column>d[a].column&&a++,u.unshift(a,0),d.splice.apply(d,u),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var d=!0;h.forEach(function(a,l){if(a)for(d=!1,a.row=l;a.$oldWidget;)a.$oldWidget.row=l,a=a.$oldWidget}),d&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var d=this.session.lineWidgets[h.row];return d&&(h.$oldWidget=d,d.el&&d.el.parentNode&&(d.el.parentNode.removeChild(d.el),d._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},w.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var d=this.editor.renderer;h.html&&!h.el&&(h.el=g.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=g.createElement("div"),h.el.textContent=h.text),h.el&&(g.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&g.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",d.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/d.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var l=this.session.lineWidgets;h.row==a.end.row&&!l[a.start.row]?l[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,d),this.onWidgetChanged(h),h},w.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var d=this.session.lineWidgets[h.row];if(d==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;d;){if(d.$oldWidget==h){d.$oldWidget=h.$oldWidget;break}d=d.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var d=this.session.lineWidgets,a=d&&d[h],l=[];a;)l.push(a),a=a.$oldWidget;return l},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,d){var a=this.session._changedWidgets,l=d.layerConfig;if(!(!a||!a.length)){for(var c=1/0,u=0;u<a.length;u++){var i=a[u];if(!(!i||!i.el)&&i.session==this.session){if(!i._inDocument){if(this.session.lineWidgets[i.row]!=i)continue;i._inDocument=!0,d.container.appendChild(i.el)}i.h=i.el.offsetHeight,i.fixedWidth||(i.w=i.el.offsetWidth,i.screenWidth=Math.ceil(i.w/l.characterWidth));var s=i.h/l.lineHeight;i.coverLine&&(s-=this.session.getRowLineCount(i.row),s<0&&(s=0)),i.rowCount!=s&&(i.rowCount=s,i.row<c&&(c=i.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(h,d){var a=d.layerConfig,l=this.session.lineWidgets;if(l){for(var c=Math.min(this.firstRow,a.firstRow),u=Math.max(this.lastRow,a.lastRow,l.length);c>0&&!l[c];)c--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,d.$cursorLayer.config=a;for(var i=c;i<=u;i++){var s=l[i];if(!(!s||!s.el)){if(s.hidden){s.el.style.top=-100-(s.pixelHeight||0)+"px";continue}s._inDocument||(s._inDocument=!0,d.container.appendChild(s.el));var f=d.$cursorLayer.getPixelPosition({row:i,column:0},!0).top;s.coverLine||(f+=a.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=f-a.offset+"px";var b=s.coverGutter?0:d.gutterWidth;s.fixedWidth||(b-=d.scrollLeft),s.el.style.left=b+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=a.width+2*a.padding+"px"),s.fixedWidth?s.el.style.right=d.scrollBar.getWidth()+"px":s.el.style.right=""}}}},w})();r.LineWidgets=p}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,v){r.applyDelta=function(g,p,w){var h=p.start.row,d=p.start.column,a=g[h]||"";switch(p.action){case"insert":var l=p.lines;if(l.length===1)g[h]=a.substring(0,d)+p.lines[0]+a.substring(d);else{var c=[h,1].concat(p.lines);g.splice.apply(g,c),g[h]=a.substring(0,d)+g[h],g[h+p.lines.length-1]+=a.substring(d)}break;case"remove":var u=p.end.column,i=p.end.row;h===i?g[h]=a.substring(0,d)+a.substring(u):g.splice(h,i-h+1,a.substring(0,d)+g[i].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var g=e("./lib/oop"),p=e("./lib/event_emitter").EventEmitter,w=(function(){function a(l,c,u){this.$onChange=this.onChange.bind(this),this.attach(l),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var c=d(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},a.prototype.setPosition=function(l,c,u){var i;if(u?i={row:l,column:c}:i=this.$clipPositionToDocument(l,c),!(this.row==i.row&&this.column==i.column)){var s={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:s,value:i})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(l,c){var u={};return l>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):l<0?(u.row=0,u.column=0):(u.row=l,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},a})();w.prototype.$insertRight=!1,g.implement(w.prototype,p);function h(a,l,c){var u=c?a.column<=l.column:a.column<l.column;return a.row<l.row||a.row==l.row&&u}function d(a,l,c){var u=a.action=="insert",i=(u?1:-1)*(a.end.row-a.start.row),s=(u?1:-1)*(a.end.column-a.start.column),f=a.start,b=u?f:a.end;return h(l,f,c)?{row:l.row,column:l.column}:h(b,l,!c)?{row:l.row+i,column:l.column+(l.row==b.row?s:0)}:{row:f.row,column:f.column}}r.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,r,v){var g=e("./lib/oop"),p=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=e("./anchor").Anchor,a=(function(){function l(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return l.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new h(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(c,u){return new d(this,c,u)},l.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
|
|
189
|
-
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
190
|
-
`;case"unix":return`
|
|
191
|
-
`;default:return this.$autoNewLine||`
|
|
192
|
-
`}},l.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(c){return c==`\r
|
|
193
|
-
`||c=="\r"||c==`
|
|
194
|
-
`},l.prototype.getLine=function(c){return this.$lines[c]||""},l.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var i=u.length-1;c.end.row-c.start.row==i&&(u[i]=u[i].substring(0,c.end.column))}return u},l.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},l.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},l.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},l.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},l.prototype.insertInLine=function(c,u){var i=this.clippedPos(c.row,c.column),s=this.pos(c.row,c.column+u.length);return this.applyDelta({start:i,end:s,action:"insert",lines:[u]},!0),this.clonePos(s)},l.prototype.clippedPos=function(c,u){var i=this.getLength();c===void 0?c=i:c<0?c=0:c>=i&&(c=i-1,u=void 0);var s=this.getLine(c);return u==null&&(u=s.length),u=Math.min(Math.max(u,0),s.length),{row:c,column:u}},l.prototype.clonePos=function(c){return{row:c.row,column:c.column}},l.prototype.pos=function(c,u){return{row:c,column:u}},l.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},l.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var i=0;c<this.getLength()?(u=u.concat([""]),i=0):(u=[""].concat(u),c--,i=this.$lines[c].length),this.insertMergedLines({row:c,column:i},u)},l.prototype.insertMergedLines=function(c,u){var i=this.clippedPos(c.row,c.column),s={row:i.row+u.length-1,column:(u.length==1?i.column:0)+u[u.length-1].length};return this.applyDelta({start:i,end:s,action:"insert",lines:u}),this.clonePos(s)},l.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),i=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:i,action:"remove",lines:this.getLinesForRange({start:u,end:i})}),this.clonePos(u)},l.prototype.removeInLine=function(c,u,i){var s=this.clippedPos(c,u),f=this.clippedPos(c,i);return this.applyDelta({start:s,end:f,action:"remove",lines:this.getLinesForRange({start:s,end:f})},!0),this.clonePos(s)},l.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var i=u==this.getLength()-1&&c>0,s=u<this.getLength()-1,f=i?c-1:c,b=i?this.getLine(f).length:0,x=s?u+1:u,I=s?0:this.getLine(x).length,M=new h(f,b,x,I),A=this.$lines.slice(c,u+1);return this.applyDelta({start:M.start,end:M.end,action:"remove",lines:this.getLinesForRange(M)}),A},l.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(c,u){if(c instanceof h||(c=h.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var i;return u?i=this.insert(c.start,u):i=c.start,i},l.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},l.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},l.prototype.applyDelta=function(c,u){var i=c.action=="insert";(i?c.lines.length<=1&&!c.lines[0]:!h.comparePoints(c.start,c.end))||(i&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(p(this.$lines,c,u),this._signal("change",c)))},l.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},l.prototype.$splitAndapplyLargeDelta=function(c,u){for(var i=c.lines,s=i.length-u+1,f=c.start.row,b=c.start.column,x=0,I=0;x<s;x=I){I+=u-1;var M=i.slice(x,I);M.push(""),this.applyDelta({start:this.pos(f+x,b),end:this.pos(f+I,b=0),action:c.action,lines:M},!0)}c.lines=i.slice(x),c.start.row=f+x,c.start.column=b,this.applyDelta(c,!0)},l.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},l.prototype.indexToPosition=function(c,u){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=u||0,b=i.length;f<b;f++)if(c-=i[f].length+s,c<0)return{row:f,column:c+i[f].length+s};return{row:b-1,column:c+i[b-1].length+s}},l.prototype.positionToIndex=function(c,u){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=0,b=Math.min(c.row,i.length),x=u||0;x<b;++x)f+=i[x].length+s;return f+c.column},l.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},l})();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",g.implement(a.prototype,w),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var g=e("./lib/oop"),p=e("./lib/event_emitter").EventEmitter,w=(function(){function h(d,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=d;var l=this;this.$worker=function(){if(l.running){for(var c=new Date,u=l.currentLine,i=-1,s=l.doc,f=u;l.lines[u];)u++;var b=s.getLength(),x=0;for(l.running=!1;u<b;){l.$tokenizeRow(u),i=u;do u++;while(l.lines[u]);if(x++,x%5===0&&new Date-c>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=u,i==-1&&(i=u),f<=i&&l.fireUpdateEvent(f,i)}}}return h.prototype.setTokenizer=function(d){this.tokenizer=d,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(d){this.doc=d,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(d,a){var l={first:d,last:a};this._signal("update",{data:l})},h.prototype.start=function(d){this.currentLine=Math.min(d||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(d){var a=d.start.row,l=d.end.row-a;if(l===0)this.lines[a]=null;else if(d.action=="remove")this.lines.splice(a,l+1,null),this.states.splice(a,l+1,null);else{var c=Array(l+1);c.unshift(a,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(d){return this.lines[d]||this.$tokenizeRow(d)},h.prototype.getState=function(d){return this.currentLine==d&&this.$tokenizeRow(d),this.states[d]||"start"},h.prototype.$tokenizeRow=function(d){var a=this.doc.getLine(d),l=this.states[d-1],c=this.tokenizer.getLineTokens(a,l,d);return this.states[d]+""!=c.state+""?(this.states[d]=c.state,this.lines[d+1]=null,this.currentLine>d+1&&(this.currentLine=d+1)):this.currentLine==d&&(this.currentLine=d+1),this.lines[d]=c.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h})();g.implement(w.prototype,p),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,v){var g=e("./lib/lang"),p=e("./range").Range,w=(function(){function h(d,a,l){l===void 0&&(l="text"),this.setRegexp(d),this.clazz=a,this.type=l,this.docLen=0}return h.prototype.setRegexp=function(d){this.regExp+""!=d+""&&(this.regExp=d,this.cache=[])},h.prototype.update=function(d,a,l,c){if(this.regExp){for(var u=c.firstRow,i=c.lastRow,s={},f=l.$editor&&l.$editor.$search,b=f&&f.$isMultilineSearch(l.$editor.getLastSearchOptions()),x=u;x<=i;x++){var I=this.cache[x];if(I==null||l.getValue().length!=this.docLen){if(b){I=[];var M=f.$multiLineForward(l,this.regExp,x,i);if(M){var A=M.endRow<=i?M.endRow-1:i;A>x&&(x=A),I.push(new p(M.startRow,M.startCol,M.endRow,M.endCol))}I.length>this.MAX_RANGES&&(I=I.slice(0,this.MAX_RANGES))}else I=g.getMatchOffsets(l.getLine(x),this.regExp),I.length>this.MAX_RANGES&&(I=I.slice(0,this.MAX_RANGES)),I=I.map(function(E){return new p(x,E.offset,x,E.offset+E.length)});this.cache[x]=I.length?I:""}if(I.length!==0)for(var C=I.length;C--;){var O=I[C].toScreenRange(l),D=O.toString();s[D]||(s[D]=!0,a.drawSingleLineMarker(d,O,this.clazz,c))}}this.docLen=l.getValue().length}},h})();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,v){var g=(function(){function A(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return A.prototype.addSession=function(C){this.$session=C},A.prototype.add=function(C,O,D){if(!this.$fromUndo&&C!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),O===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),C.id=this.$rev=++this.$maxRev}(C.action=="remove"||C.action=="insert")&&(this.$lastDelta=C),this.lastDeltas.push(C)}},A.prototype.addSelection=function(C,O){this.selections.push({value:C,rev:O||this.$rev})},A.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},A.prototype.markIgnored=function(C,O){O==null&&(O=this.$rev+1);for(var D=this.$undoStack,E=D.length;E--;){var R=D[E][0];if(R.id<=C)break;R.id<O&&(R.ignore=!0)}this.lastDeltas=null},A.prototype.getSelection=function(C,O){for(var D=this.selections,E=D.length;E--;){var R=D[E];if(R.rev<C)return O&&(R=D[E+1]),R}},A.prototype.getRevision=function(){return this.$rev},A.prototype.getDeltas=function(C,O){O==null&&(O=this.$rev+1);for(var D=this.$undoStack,E=null,R=0,B=D.length;B--;){var F=D[B][0];if(F.id<O&&!E&&(E=B+1),F.id<=C){R=B+1;break}}return D.slice(R,E)},A.prototype.getChangedRanges=function(C,O){O==null&&(O=this.$rev+1)},A.prototype.getChangedLines=function(C,O){O==null&&(O=this.$rev+1)},A.prototype.undo=function(C,O){this.lastDeltas=null;var D=this.$undoStack;if(p(D,D.length)){C||(C=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=D.pop(),R=null;return E&&(R=C.undoChanges(E,O),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,R}},A.prototype.redo=function(C,O){if(this.lastDeltas=null,C||(C=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var D=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);M(this.$redoStack,D),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(B){B[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),R=null;return E&&(R=C.redoChanges(E,O),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,R},A.prototype.$syncRev=function(){var C=this.$undoStack,O=C[C.length-1],D=O&&O[0].id||0;this.$redoStackBaseRev=D,this.$rev=D},A.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=[]},A.prototype.canUndo=function(){return this.$undoStack.length>0},A.prototype.canRedo=function(){return this.$redoStack.length>0},A.prototype.bookmark=function(C){C==null&&(C=this.$rev),this.mark=C},A.prototype.isAtBookmark=function(){return this.$rev===this.mark},A.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},A.prototype.fromJSON=function(C){this.reset(),this.$undoStack=C.$undoStack,this.$redoStack=C.$redoStack},A.prototype.$prettyPrint=function(C){return C?l(C):l(this.$undoStack)+`
|
|
195
|
-
---
|
|
196
|
-
`+l(this.$redoStack)},A})();g.prototype.hasUndo=g.prototype.canUndo,g.prototype.hasRedo=g.prototype.canRedo,g.prototype.isClean=g.prototype.isAtBookmark,g.prototype.markClean=g.prototype.bookmark;function p(A,C){for(var O=C;O--;){var D=A[O];if(D&&!D[0].ignore){for(;O<C-1;){var E=i(A[O],A[O+1]);A[O]=E[0],A[O+1]=E[1],O++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function d(A){return{row:A.row,column:A.column}}function a(A){return{start:d(A.start),end:d(A.end),action:A.action,lines:A.lines.slice()}}function l(A){if(A=A||this,Array.isArray(A))return A.map(l).join(`
|
|
197
|
-
`);var C="";return A.action?(C=A.action=="insert"?"+":"-",C+="["+A.lines+"]"):A.value&&(Array.isArray(A.value)?C=A.value.map(c).join(`
|
|
198
|
-
`):C=c(A.value)),A.start&&(C+=c(A)),(A.id||A.rev)&&(C+=" ("+(A.id||A.rev)+")"),C}function c(A){return A.start.row+":"+A.start.column+"=>"+A.end.row+":"+A.end.column}function u(A,C){var O=A.action=="insert",D=C.action=="insert";if(O&&D)if(h(C.start,A.end)>=0)f(C,A,-1);else if(h(C.start,A.start)<=0)f(A,C,1);else return null;else if(O&&!D)if(h(C.start,A.end)>=0)f(C,A,-1);else if(h(C.end,A.start)<=0)f(A,C,-1);else return null;else if(!O&&D)if(h(C.start,A.start)>=0)f(C,A,1);else if(h(C.start,A.start)<=0)f(A,C,1);else return null;else if(!O&&!D)if(h(C.start,A.start)>=0)f(C,A,1);else if(h(C.end,A.start)<=0)f(A,C,-1);else return null;return[C,A]}function i(A,C){for(var O=A.length;O--;)for(var D=0;D<C.length;D++)if(!u(A[O],C[D])){for(;O<A.length;){for(;D--;)u(C[D],A[O]);D=C.length,O++}return[A,C]}return A.selectionBefore=C.selectionBefore=A.selectionAfter=C.selectionAfter=null,[C,A]}function s(A,C){var O=A.action=="insert",D=C.action=="insert";if(O&&D)h(A.start,C.start)<0?f(C,A,1):f(A,C,1);else if(O&&!D)h(A.start,C.end)>=0?f(A,C,-1):(h(A.start,C.start)<=0||f(A,w.fromPoints(C.start,A.start),-1),f(C,A,1));else if(!O&&D)h(C.start,A.end)>=0?f(C,A,-1):(h(C.start,A.start)<=0||f(C,w.fromPoints(A.start,C.start),-1),f(A,C,1));else if(!O&&!D)if(h(C.start,A.end)>=0)f(C,A,-1);else if(h(C.end,A.start)<=0)f(A,C,-1);else{var E,R;return h(A.start,C.start)<0&&(E=A,A=x(A,C.start)),h(A.end,C.end)>0&&(R=x(A,C.end)),b(C.end,A.start,A.end,-1),R&&!E&&(A.lines=R.lines,A.start=R.start,A.end=R.end,R=A),[C,E,R].filter(Boolean)}return[C,A]}function f(A,C,O){b(A.start,C.start,C.end,O),b(A.end,C.start,C.end,O)}function b(A,C,O,D){A.row==(D==1?C:O).row&&(A.column+=D*(O.column-C.column)),A.row+=D*(O.row-C.row)}function x(A,C){var O=A.lines,D=A.end;A.end=d(C);var E=A.end.row-A.start.row,R=O.splice(E,O.length),B=E?C.column:C.column-A.start.column;O.push(R[0].substring(0,B)),R[0]=R[0].substr(B);var F={start:d(C),end:D,lines:R,action:A.action};return F}function I(A,C){C=a(C);for(var O=A.length;O--;){for(var D=A[O],E=0;E<D.length;E++){var R=D[E],B=s(R,C);C=B[0],B.length!=2&&(B[2]?(D.splice(E+1,1,B[1],B[2]),E++):B[1]||(D.splice(E,1),E--))}D.length||A.splice(O,1)}return A}function M(A,C){for(var O=0;O<C.length;O++)for(var D=C[O],E=0;E<D.length;E++)I(A,D[E])}r.UndoManager=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,v){var g=e("../range").Range,p=(function(){function w(h,d){this.foldData=h,Array.isArray(d)?this.folds=d:d=this.folds=[d];var a=d[d.length-1];this.range=new g(d[0].start.row,d[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(d){d.start.row+=h,d.end.row+=h})},w.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(d,a){return-d.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},w.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},w.prototype.walk=function(h,d,a){var l=0,c=this.folds,u,i,s,f=!0;d==null&&(d=this.end.row,a=this.end.column);for(var b=0;b<c.length;b++){if(u=c[b],i=u.range.compareStart(d,a),i==-1){h(null,d,a,l,f);return}if(s=h(null,u.start.row,u.start.column,l,f),s=!s&&h(u.placeholder,u.start.row,u.start.column,l),s||i===0)return;f=!u.sameRow,l=u.end.column}h(null,d,a,l,f)},w.prototype.getNextFoldTo=function(h,d){for(var a,l,c=0;c<this.folds.length;c++){if(a=this.folds[c],l=a.range.compareEnd(h,d),l==-1)return{fold:a,kind:"after"};if(l===0)return{fold:a,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,d,a){var l=this.getNextFoldTo(h,d),c,u;if(l){if(c=l.fold,l.kind=="inside"&&c.start.column!=d&&c.start.row!=h)window.console&&window.console.log(h,d,c);else if(c.start.row==h){u=this.folds;var i=u.indexOf(c);for(i===0&&(this.start.column+=a),i;i<u.length;i++){if(c=u[i],c.start.column+=a,!c.sameRow)return;c.end.column+=a}this.end.column+=a}}},w.prototype.split=function(h,d){var a=this.getNextFoldTo(h,d);if(!a||a.kind=="inside")return null;var l=a.fold,c=this.folds,u=this.foldData,i=c.indexOf(l),s=c[i-1];this.end.row=s.end.row,this.end.column=s.end.column,c=c.splice(i,c.length-i);var f=new w(u,c);return u.splice(u.indexOf(this)+1,0,f),f},w.prototype.merge=function(h){for(var d=h.folds,a=0;a<d.length;a++)this.addFold(d[a]);var l=this.foldData;l.splice(l.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(d){h.push(" "+d.toString())}),h.push("]"),h.join(`
|
|
199
|
-
`)},w.prototype.idxToPosition=function(h){for(var d=0,a=0;a<this.folds.length;a++){var l=this.folds[a];if(h-=l.start.column-d,h<0)return{row:l.start.row,column:l.start.column+h};if(h-=l.placeholder.length,h<0)return l.start;d=l.end.column}return{row:this.end.row,column:this.end.column+h}},w})();r.FoldLine=p}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,v){var g=e("./range").Range,p=g.comparePoints,w=(function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(d,a,l){for(var c=this.ranges,u=l||0;u<c.length;u++){var i=c[u],s=p(d,i.end);if(!(s>0)){var f=p(d,i.start);return s===0?a&&f!==0?-u-2:u:f>0||f===0&&!a?u:-u-1}}return-u-1},h.prototype.add=function(d){var a=!d.isEmpty(),l=this.pointIndex(d.start,a);l<0&&(l=-l-1);var c=this.pointIndex(d.end,a,l);return c<0?c=-c-1:c++,this.ranges.splice(l,c-l,d)},h.prototype.addList=function(d){for(var a=[],l=d.length;l--;)a.push.apply(a,this.add(d[l]));return a},h.prototype.substractPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var d=[],a=this.ranges;a=a.sort(function(s,f){return p(s.start,f.start)});for(var l=a[0],c,u=1;u<a.length;u++){c=l,l=a[u];var i=p(c.end,l.start);i<0||i==0&&!c.isEmpty()&&!l.isEmpty()||(p(c.end,l.end)<0&&(c.end.row=l.end.row,c.end.column=l.end.column),a.splice(u,1),d.push(l),l=c,u--)}return this.ranges=a,d},h.prototype.contains=function(d,a){return this.pointIndex({row:d,column:a})>=0},h.prototype.containsPoint=function(d){return this.pointIndex(d)>=0},h.prototype.rangeAtPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(d,a){var l=this.ranges;if(l[0].start.row>a||l[l.length-1].start.row<d)return[];var c=this.pointIndex({row:d,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:a,column:0},c);u<0&&(u=-u-1);for(var i=[],s=c;s<u;s++)i.push(l[s]);return i},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(d){this.session&&this.detach(),this.session=d,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(d){for(var a=d.start,l=d.end,c=a.row,u=l.row,i=this.ranges,s=0,f=i.length;s<f;s++){var b=i[s];if(b.end.row>=c)break}if(d.action=="insert")for(var x=u-c,I=-a.column+l.column;s<f;s++){var b=i[s];if(b.start.row>c)break;if(b.start.row==c&&b.start.column>=a.column&&(b.start.column==a.column&&this.$bias<=0||(b.start.column+=I,b.start.row+=x)),b.end.row==c&&b.end.column>=a.column){if(b.end.column==a.column&&this.$bias<0)continue;b.end.column==a.column&&I>0&&s<f-1&&b.end.column>b.start.column&&b.end.column==i[s+1].start.column&&(b.end.column-=I),b.end.column+=I,b.end.row+=x}}else for(var x=c-u,I=a.column-l.column;s<f;s++){var b=i[s];if(b.start.row>u)break;b.end.row<u&&(c<b.end.row||c==b.end.row&&a.column<b.end.column)?(b.end.row=c,b.end.column=a.column):b.end.row==u?b.end.column<=l.column?(x||b.end.column>a.column)&&(b.end.column=a.column,b.end.row=a.row):(b.end.column+=I,b.end.row+=x):b.end.row>u&&(b.end.row+=x),b.start.row<u&&(c<b.start.row||c==b.start.row&&a.column<b.start.column)?(b.start.row=c,b.start.column=a.column):b.start.row==u?b.start.column<=l.column?(x||b.start.column>a.column)&&(b.start.column=a.column,b.start.row=a.row):(b.start.column+=I,b.start.row+=x):b.start.row>u&&(b.start.row+=x)}if(x!=0&&s<f)for(;s<f;s++){var b=i[s];b.start.row+=x,b.end.row+=x}},h})();w.prototype.comparePoints=p,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,v){var g=this&&this.__extends||(function(){var c=function(u,i){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},c(u,i)};return function(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");c(u,i);function s(){this.constructor=u}u.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),p=e("../range_list").RangeList,w=(function(c){g(u,c);function u(i,s){var f=c.call(this)||this;return f.foldLine=null,f.placeholder=s,f.range=i,f.start=i.start,f.end=i.end,f.sameRow=i.start.row==i.end.row,f.subFolds=f.ranges=[],f}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(i){this.foldLine=i,this.subFolds.forEach(function(s){s.setFoldLine(i)})},u.prototype.clone=function(){var i=this.range.clone(),s=new u(i,this.placeholder);return this.subFolds.forEach(function(f){s.subFolds.push(f.clone())}),s.collapseChildren=this.collapseChildren,s},u.prototype.addSubFold=function(i){if(!this.range.isEqual(i)){d(i,this.start);for(var s=i.start.row,f=i.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(s,f),x==1);b++);var I=this.subFolds[b],M=0;if(x==0){if(I.range.containsRange(i))return I.addSubFold(i);M=1}for(var s=i.range.end.row,f=i.range.end.column,A=b,x=-1;A<this.subFolds.length&&(x=this.subFolds[A].range.compare(s,f),x==1);A++);x==0&&A++;for(var C=this.subFolds.splice(b,A-b,i),O=x==0?C.length-1:C.length,D=M;D<O;D++)i.addSubFold(C[D]);return i.setFoldLine(this.foldLine),i}},u.prototype.restoreRange=function(i){return l(i,this.start)},u})(p);function h(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function d(c,u){h(c.start,u),h(c.end,u)}function a(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function l(c,u){a(c.start,u),a(c.end,u)}r.Fold=w}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,r,v){var g=e("../range").Range,p=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,d=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(l,c,u){var i=this.getFoldLine(l);if(!i)return null;for(var s=i.folds,f=0;f<s.length;f++){var b=s[f].range;if(b.contains(l,c)){if(u==1&&b.isEnd(l,c)&&!b.isEmpty()||u==-1&&b.isStart(l,c)&&!b.isEmpty())continue;return s[f]}}},this.getFoldsInRange=function(l){var c=l.start,u=l.end,i=this.$foldData,s=[];c.column+=1,u.column-=1;for(var f=0;f<i.length;f++){var b=i[f].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=i[f].folds,I=0;I<x.length;I++){var M=x[I];if(b=M.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;s.push(M)}}}}return c.column-=1,u.column+=1,s},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var c=[];l.forEach(function(i){c=c.concat(this.getFoldsInRange(i))},this)}else var c=this.getFoldsInRange(l);return c},this.getAllFolds=function(){for(var l=[],c=this.$foldData,u=0;u<c.length;u++)for(var i=0;i<c[u].folds.length;i++)l.push(c[u].folds[i]);return l},this.getFoldStringAt=function(l,c,u,i){if(i=i||this.getFoldLine(l),!i)return null;for(var s={end:{column:0}},f,b,x=0;x<i.folds.length;x++){b=i.folds[x];var I=b.range.compareEnd(l,c);if(I==-1){f=this.getLine(b.start.row).substring(s.end.column,b.start.column);break}else if(I===0)return null;s=b}return f||(f=this.getLine(b.start.row).substring(s.end.column)),u==-1?f.substring(0,c-s.end.column):u==1?f.substring(c-s.end.column):f},this.getFoldLine=function(l,c){var u=this.$foldData,i=0;for(c&&(i=u.indexOf(c)),i==-1&&(i=0),i;i<u.length;i++){var s=u[i];if(s.start.row<=l&&s.end.row>=l)return s;if(s.end.row>l)return null}return null},this.getNextFoldLine=function(l,c){var u=this.$foldData,i=0;for(c&&(i=u.indexOf(c)),i==-1&&(i=0),i;i<u.length;i++){var s=u[i];if(s.end.row>=l)return s}return null},this.getFoldedRowCount=function(l,c){for(var u=this.$foldData,i=c-l+1,s=0;s<u.length;s++){var f=u[s],b=f.end.row,x=f.start.row;if(b>=c){x<c&&(x>=l?i-=c-x:i=0);break}else b>=l&&(x>=l?i-=b-x:i-=b-l+1)}return i},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),l},this.addFold=function(l,c){var u=this.$foldData,i=!1,s;l instanceof w?s=l:(s=new w(c,l),s.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(s.range);var f=s.start.row,b=s.start.column,x=s.end.row,I=s.end.column,M=this.getFoldAt(f,b,1),A=this.getFoldAt(x,I,-1);if(M&&A==M)return M.addSubFold(s);M&&!M.range.isStart(f,b)&&this.removeFold(M),A&&!A.range.isEnd(x,I)&&this.removeFold(A);var C=this.getFoldsInRange(s.range);C.length>0&&(this.removeFolds(C),s.collapseChildren||C.forEach(function(R){s.addSubFold(R)}));for(var O=0;O<u.length;O++){var D=u[O];if(x==D.start.row){D.addFold(s),i=!0;break}else if(f==D.end.row){if(D.addFold(s),i=!0,!s.sameRow){var E=u[O+1];if(E&&E.start.row==x){D.merge(E);break}}break}else if(x<=D.start.row)break}return i||(D=this.$addFoldLine(new p(this.$foldData,s))),this.$useWrapMode?this.$updateWrapData(D.start.row,D.start.row):this.$updateRowLengthCache(D.start.row,D.start.row),this.$modified=!0,this._signal("changeFold",{data:s,action:"add"}),s},this.addFolds=function(l){l.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(l){var c=l.foldLine,u=c.start.row,i=c.end.row,s=this.$foldData,f=c.folds;if(f.length==1)s.splice(s.indexOf(c),1);else if(c.range.isEnd(l.end.row,l.end.column))f.pop(),c.end.row=f[f.length-1].end.row,c.end.column=f[f.length-1].end.column;else if(c.range.isStart(l.start.row,l.start.column))f.shift(),c.start.row=f[0].start.row,c.start.column=f[0].start.column;else if(l.sameRow)f.splice(f.indexOf(l),1);else{var b=c.split(l.start.row,l.start.column);f=b.folds,f.shift(),b.start.row=f[0].start.row,b.start.column=f[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,i):this.$updateRowLengthCache(u,i)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var c=[],u=0;u<l.length;u++)c.push(l[u]);c.forEach(function(i){this.removeFold(i)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(c){l.restoreRange(c),this.addFold(c)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(l,c){var u,i;if(l==null)u=new g(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof l=="number")u=new g(l,0,l,this.getLine(l).length);else if("row"in l)u=g.fromPoints(l,l);else{if(Array.isArray(l))return i=[],l.forEach(function(f){i=i.concat(this.unfold(f))},this),i;u=l}i=this.getFoldsInRangeList(u);for(var s=i;i.length==1&&g.comparePoints(i[0].start,u.start)<0&&g.comparePoints(i[0].end,u.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(i):this.expandFolds(i),s.length)return s},this.isRowFolded=function(l,c){return!!this.getFoldLine(l,c)},this.getRowFoldEnd=function(l,c){var u=this.getFoldLine(l,c);return u?u.end.row:l},this.getRowFoldStart=function(l,c){var u=this.getFoldLine(l,c);return u?u.start.row:l},this.getFoldDisplayLine=function(l,c,u,i,s){i==null&&(i=l.start.row),s==null&&(s=0),c==null&&(c=l.end.row),u==null&&(u=this.getLine(c).length);var f=this.doc,b="";return l.walk(function(x,I,M,A){if(!(I<i)){if(I==i){if(M<s)return;A=Math.max(s,A)}x!=null?b+=x:b+=f.getLine(I).substring(A,M)}},c,u),b},this.getDisplayLine=function(l,c,u,i){var s=this.getFoldLine(l);if(s)return this.getFoldDisplayLine(s,l,c,u,i);var f;return f=this.doc.getLine(l),f.substring(i||0,c||f.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(c){var u=c.folds.map(function(i){return i.clone()});return new p(l,u)}),l},this.toggleFold=function(l){var c=this.selection,u=c.getRange(),i,s;if(u.isEmpty()){var f=u.start;if(i=this.getFoldAt(f.row,f.column),i){this.expandFold(i);return}else if(l){var b=this.getFoldLine(f.row);b&&this.expandFolds(b.folds);return}else(s=this.findMatchingBracket(f))?u.comparePoint(s)==1?u.end=s:(u.start=s,u.start.column++,u.end.column--):(s=this.findMatchingBracket({row:f.row,column:f.column+1}))?(u.comparePoint(s)==1?u.end=s:u.start=s,u.start.column++):u=this.getCommentFoldRange(f.row,f.column)||u}else{var x=this.getFoldsInRange(u);if(l&&x.length){this.expandFolds(x);return}else x.length==1&&(i=x[0])}if(i||(i=this.getFoldAt(u.start.row,u.start.column)),i&&i.range.toString()==u.toString()){this.expandFold(i);return}var I="...";if(!u.isMultiLine()){if(I=this.getTextRange(u),I.length<4)return;I=I.trim().substring(0,2)+".."}this.addFold(I,u)},this.getCommentFoldRange=function(l,c,u){var i=new h(this,l,c),s=i.getCurrentToken(),f=s&&s.type;if(s&&/^comment|string/.test(f)){f=f.match(/comment|string/)[0],f=="comment"&&(f+="|doc-start|\\.doc");var b=new RegExp(f),x=new g;if(u!=1){do s=i.stepBackward();while(s&&b.test(s.type));s=i.stepForward()}x.start.row=i.getCurrentTokenRow(),x.start.column=i.getCurrentTokenColumn()+s.value.length,i=new h(this,l,c);var I=this.getState(i.$row);if(u!=-1){var M=-1;do if(s=i.stepForward(),M==-1){var A=this.getState(i.$row);I.toString()!==A.toString()&&(M=i.$row)}else if(i.$row>M)break;while(s&&b.test(s.type));s=i.stepBackward()}else s=i.getCurrentToken();return x.end.row=i.getCurrentTokenRow(),x.end.column=i.getCurrentTokenColumn(),x.start.row==x.end.row&&x.start.column>x.end.column?void 0:x}},this.foldAll=function(l,c,u,i){u==null&&(u=1e5);var s=this.foldWidgets;if(s){c=c||this.getLength(),l=l||0;for(var f=l;f<c;f++)if(s[f]==null&&(s[f]=this.getFoldWidget(f)),s[f]=="start"&&!(i&&!i(f))){var b=this.getFoldWidgetRange(f);b&&b.isMultiLine()&&b.end.row<=c&&b.start.row>=l&&(f=b.end.row,b.collapseChildren=u,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(c){for(var u=l.getTokens(c),i=0;i<u.length;i++){var s=u[i];if(!(s.type=="text"&&/^\s+$/.test(s.value)))return!!/comment/.test(s.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(l,c){var u=this.foldWidgets;if(!u||c&&u[l])return{};for(var i=l-1,s;i>=0;){var f=u[i];if(f==null&&(f=u[i]=this.getFoldWidget(i)),f=="start"){var b=this.getFoldWidgetRange(i);if(s||(s=b),b&&b.end.row>=l)break}i--}return{range:i!==-1&&b,firstRange:s}},this.onFoldWidgetClick=function(l,c){c instanceof d&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},i=this.$toggleFoldWidget(l,u);if(!i){var s=c.target||c.srcElement;s&&/ace_fold-widget/.test(s.className)&&(s.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,c){if(this.getFoldWidget){var u=this.getFoldWidget(l),i=this.getLine(l),s=u==="end"?-1:1,f=this.getFoldAt(l,s===-1?0:i.length,s);if(f)return c.children||c.all?this.removeFold(f):this.expandFold(f),f;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(f=this.getFoldAt(b.start.row,b.start.column,1),f&&b.isEqual(f.range)))return this.removeFold(f),f;if(c.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var I=x.range.start.row+1,M=x.range.end.row;this.foldAll(I,M,c.all?1e4:0)}else c.children?(M=b?b.end.row:this.getLength(),this.foldAll(l+1,M,c.all?1e4:0)):b&&(c.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var i=this.getParentFoldRangeData(c,!0);if(u=i.range||i.firstRange,u){c=u.start.row;var s=this.getFoldAt(c,this.getLine(c).length,1);s?this.removeFold(s):this.addFold("...",u)}}},this.updateFoldWidgets=function(l){var c=l.start.row,u=l.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(l.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var i=Array(u+1);i.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(l){var c=l.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,r,v){var g=e("../token_iterator").TokenIterator,p=e("../range").Range;function w(){this.findMatchingBracket=function(h,d){if(h.column==0)return null;var a=d||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var l=a.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h):null},this.getBracketRange=function(h){var d=this.getLine(h.row),a=!0,l,c=d.charAt(h.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=d.charAt(h.column),h={row:h.row,column:h.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),a=!1),!u)return null;if(u[1]){var i=this.$findClosingBracket(u[1],h);if(!i)return null;l=p.fromPoints(h,i),a||(l.end.column++,l.start.column--),l.cursor=l.end}else{var i=this.$findOpeningBracket(u[2],h);if(!i)return null;l=p.fromPoints(i,h),a||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(h,d){var a=this.getLine(h.row),l=/([\(\[\{])|([\)\]\}])/,c=!d&&a.charAt(h.column-1),u=c&&c.match(l);if(u||(c=(d===void 0||d)&&a.charAt(h.column),h={row:h.row,column:h.column+1},u=c&&c.match(l)),!u)return null;var i=new p(h.row,h.column-1,h.row,h.column),s=u[1]?this.$findClosingBracket(u[1],h):this.$findOpeningBracket(u[2],h);if(!s)return[i];var f=new p(s.row,s.column,s.row,s.column+1);return[i,f]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,d,a){var l=this.$brackets[h],c=1,u=new g(this,d.row,d.column),i=u.getCurrentToken();if(i||(i=u.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var s=d.column-u.getCurrentTokenColumn()-2,f=i.value;;){for(;s>=0;){var b=f.charAt(s);if(b==l){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:s+u.getCurrentTokenColumn()}}else b==h&&(c+=1);s-=1}do i=u.stepBackward();while(i&&!a.test(i.type));if(i==null)break;f=i.value,s=f.length-1}return null}},this.$findClosingBracket=function(h,d,a){var l=this.$brackets[h],c=1,u=new g(this,d.row,d.column),i=u.getCurrentToken();if(i||(i=u.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var s=d.column-u.getCurrentTokenColumn();;){for(var f=i.value,b=f.length;s<b;){var x=f.charAt(s);if(x==l){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:s+u.getCurrentTokenColumn()}}else x==h&&(c+=1);s+=1}do i=u.stepForward();while(i&&!a.test(i.type));if(i==null)break;s=0}return null}},this.getMatchingTags=function(h){var d=new g(this,h.row,h.column),a=this.$findTagName(d);if(a){var l=d.stepBackward();return l.value==="<"?this.$findClosingTag(d,a):this.$findOpeningTag(d,a)}},this.$findTagName=function(h){var d=h.getCurrentToken(),a=!1,l=!1;if(d&&d.type.indexOf("tag-name")===-1)do l?d=h.stepBackward():d=h.stepForward(),d&&(d.value==="/>"?l=!0:d.type.indexOf("tag-name")!==-1&&(a=!0));while(d&&!a);return d},this.$findClosingTag=function(h,d){var a,l=d.value,c=d.value,u=0,i=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);d=h.stepForward();var s=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length),f=!1;do{if(a=d,a.type.indexOf("tag-close")!==-1&&!f){var b=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d=h.stepForward(),d){if(d.value===">"&&!f){var b=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d.type.indexOf("tag-name")!==-1){if(l=d.value,c===l){if(a.value==="<")u++;else if(a.value==="</"&&(u--,u<0)){h.stepBackward();var x=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);d=h.stepForward();var I=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),d&&d.value===">")var M=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(c===l&&d.value==="/>"&&(u--,u<0))var x=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),I=x,M=I,b=new p(s.end.row,s.end.column,s.end.row,s.end.column+1)}}while(d&&u>=0);if(i&&b&&x&&M&&s&&I)return{openTag:new p(i.start.row,i.start.column,b.end.row,b.end.column),closeTag:new p(x.start.row,x.start.column,M.end.row,M.end.column),openTagName:s,closeTagName:I}},this.$findOpeningTag=function(h,d){var a=h.getCurrentToken(),l=d.value,c=0,u=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+2,f=new p(u,i,u,s);h.stepForward();var b=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),!(!d||d.value!==">")){var x=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(d=a,u=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+d.value.length,a=h.stepBackward(),d){if(d.type.indexOf("tag-name")!==-1){if(l===d.value)if(a.value==="<"){if(c++,c>0){var I=new p(u,i,u,s),M=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do d=h.stepForward();while(d&&d.value!==">");var A=new p(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&c--}else if(d.value==="/>"){for(var C=0,O=a;O;){if(O.type.indexOf("tag-name")!==-1&&O.value===l){c--;break}else if(O.value==="<")break;O=h.stepBackward(),C++}for(var D=0;D<C;D++)h.stepForward()}}while(a&&c<=0);if(M&&A&&f&&x&&I&&b)return{openTag:new p(M.start.row,M.start.column,A.end.row,A.end.column),closeTag:new p(f.start.row,f.start.column,x.end.row,x.end.column),openTagName:I,closeTagName:b}}}}r.BracketMatch=w}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,r,v){var g=e("./lib/oop"),p=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),d=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,l=e("./mode/text").Mode,c=e("./range").Range,u=e("./line_widgets").LineWidgets,i=e("./document").Document,s=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,b=e("./undomanager").UndoManager,x=(function(){function F(N,$){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"+ ++F.$uid,this.$foldData.toString=function(){return this.join(`
|
|
200
|
-
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new s(new l().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(L){k._signal("tokenizerUpdate",L)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof N!="object"||!N.getLine)&&(N=new i(N)),this.setDocument(N),this.selection=new a(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),h.resetOptions(this),this.setMode($),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return F.prototype.$initOperationListeners=function(){var N=this;this.curOp=null,this.on("change",function(){N.curOp||(N.startOperation(),N.curOp.selectionBefore=N.$lastSel),N.curOp.docChanged=!0},!0),this.on("changeSelection",function(){N.curOp||(N.startOperation(),N.curOp.selectionBefore=N.$lastSel),N.curOp.selectionChanged=!0},!0),this.$operationResetTimer=p.delayedCall(this.endOperation.bind(this,!0))},F.prototype.startOperation=function(N){if(this.curOp){if(!N||this.curOp.command)return;this.prevOp=this.curOp}N||(N={}),this.$operationResetTimer.schedule(),this.curOp={command:N.command||{},args:N.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",N)},F.prototype.endOperation=function(N){if(this.curOp){if(N&&N.returnValue===!1){this.curOp=null,this._signal("endOperation",N);return}if(N==!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",N)}},F.prototype.setDocument=function(N){this.doc&&this.doc.off("change",this.$onChange),this.doc=N,N.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},F.prototype.getDocument=function(){return this.doc},Object.defineProperty(F.prototype,"widgetManager",{get:function(){var N=new u(this);return this.widgetManager=N,this.$editor&&N.attach(this.$editor),N},set:function(N){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:N})},enumerable:!1,configurable:!0}),F.prototype.$resetRowCache=function(N){if(!N){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,k=this.$getRowCacheIndex(this.$docRowCache,N)+1;$>k&&(this.$docRowCache.splice(k,$),this.$screenRowCache.splice(k,$))},F.prototype.$getRowCacheIndex=function(N,$){for(var k=0,L=N.length-1;k<=L;){var W=k+L>>1,U=N[W];if($>U)k=W+1;else if($<U)L=W-1;else return W}return k-1},F.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},F.prototype.onChangeFold=function(N){var $=N.data;this.$resetRowCache($.start.row)},F.prototype.onChange=function(N){this.$modified=!0,this.$bidiHandler.onChange(N),this.$resetRowCache(N.start.row);var $=this.$updateInternalDataOnChange(N);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(N,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(N),this._signal("change",N)},F.prototype.onSelectionChange=function(){this._signal("changeSelection")},F.prototype.setValue=function(N){this.doc.setValue(N),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},F.fromJSON=function(N){typeof N=="string"&&(N=JSON.parse(N));var $=new b;$.$undoStack=N.history.undo,$.$redoStack=N.history.redo,$.mark=N.history.mark,$.$rev=N.history.rev;var k=new F(N.value);return N.folds.forEach(function(L){k.addFold("...",c.fromPoints(L.start,L.end))}),k.setAnnotations(N.annotations),k.setBreakpoints(N.breakpoints),k.setMode(N.mode),k.setScrollLeft(N.scrollLeft),k.setScrollTop(N.scrollTop),k.setUndoManager($),k.selection.fromJSON(N.selection),k},F.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(N){return N.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},F.prototype.toString=function(){return this.doc.getValue()},F.prototype.getSelection=function(){return this.selection},F.prototype.getState=function(N){return this.bgTokenizer.getState(N)},F.prototype.getTokens=function(N){return this.bgTokenizer.getTokens(N)},F.prototype.getTokenAt=function(N,$){var k=this.bgTokenizer.getTokens(N),L,W=0;if($==null){var U=k.length-1;W=this.getLine(N).length}else for(var U=0;U<k.length&&(W+=k[U].value.length,!(W>=$));U++);return L=k[U],L?(L.index=U,L.start=W-L.value.length,L):null},F.prototype.setUndoManager=function(N){if(this.$undoManager=N,this.$informUndoManager&&this.$informUndoManager.cancel(),N){var $=this;N.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=p.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},F.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},F.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},F.prototype.getTabString=function(){return this.getUseSoftTabs()?p.stringRepeat(" ",this.getTabSize()):" "},F.prototype.setUseSoftTabs=function(N){this.setOption("useSoftTabs",N)},F.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},F.prototype.setTabSize=function(N){this.setOption("tabSize",N)},F.prototype.getTabSize=function(){return this.$tabSize},F.prototype.isTabStop=function(N){return this.$useSoftTabs&&N.column%this.$tabSize===0},F.prototype.setNavigateWithinSoftTabs=function(N){this.setOption("navigateWithinSoftTabs",N)},F.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},F.prototype.setOverwrite=function(N){this.setOption("overwrite",N)},F.prototype.getOverwrite=function(){return this.$overwrite},F.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},F.prototype.addGutterDecoration=function(N,$){this.$decorations[N]||(this.$decorations[N]=""),this.$decorations[N]+=" "+$,this._signal("changeBreakpoint",{})},F.prototype.removeGutterCustomWidget=function(N){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(N)},F.prototype.addGutterCustomWidget=function(N,$){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(N,$)},F.prototype.removeGutterDecoration=function(N,$){this.$decorations[N]=(this.$decorations[N]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},F.prototype.getBreakpoints=function(){return this.$breakpoints},F.prototype.setBreakpoints=function(N){this.$breakpoints=[];for(var $=0;$<N.length;$++)this.$breakpoints[N[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},F.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},F.prototype.setBreakpoint=function(N,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[N]=$:delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},F.prototype.clearBreakpoint=function(N){delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},F.prototype.addMarker=function(N,$,k,L){var W=this.$markerId++,U={range:N,type:k||"line",renderer:typeof k=="function"?k:null,clazz:$,inFront:!!L,id:W};return L?(this.$frontMarkers[W]=U,this._signal("changeFrontMarker")):(this.$backMarkers[W]=U,this._signal("changeBackMarker")),W},F.prototype.addDynamicMarker=function(N,$){if(N.update){var k=this.$markerId++;return N.id=k,N.inFront=!!$,$?(this.$frontMarkers[k]=N,this._signal("changeFrontMarker")):(this.$backMarkers[k]=N,this._signal("changeBackMarker")),N}},F.prototype.removeMarker=function(N){var $=this.$frontMarkers[N]||this.$backMarkers[N];if($){var k=$.inFront?this.$frontMarkers:this.$backMarkers;delete k[N],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},F.prototype.getMarkers=function(N){return N?this.$frontMarkers:this.$backMarkers},F.prototype.highlight=function(N){if(!this.$searchHighlight){var $=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(N)},F.prototype.highlightLines=function(N,$,k,L){typeof $!="number"&&(k=$,$=N),k||(k="ace_step");var W=new c(N,0,$,1/0);return W.id=this.addMarker(W,k,"fullLine",L),W},F.prototype.setAnnotations=function(N){this.$annotations=N,this._signal("changeAnnotation",{})},F.prototype.getAnnotations=function(){return this.$annotations||[]},F.prototype.clearAnnotations=function(){this.setAnnotations([])},F.prototype.$detectNewLine=function(N){var $=N.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
|
201
|
-
`},F.prototype.getWordRange=function(N,$){var k=this.getLine(N),L=!1;if($>0&&(L=!!k.charAt($-1).match(this.tokenRe)),L||(L=!!k.charAt($).match(this.tokenRe)),L)var W=this.tokenRe;else if(/^\s+$/.test(k.slice($-1,$+1)))var W=/\s/;else var W=this.nonTokenRe;var U=$;if(U>0){do U--;while(U>=0&&k.charAt(U).match(W));U++}for(var q=$;q<k.length&&k.charAt(q).match(W);)q++;return new c(N,U,N,q)},F.prototype.getAWordRange=function(N,$){for(var k=this.getWordRange(N,$),L=this.getLine(k.end.row);L.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},F.prototype.setNewLineMode=function(N){this.doc.setNewLineMode(N)},F.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},F.prototype.setUseWorker=function(N){this.setOption("useWorker",N)},F.prototype.getUseWorker=function(){return this.$useWorker},F.prototype.onReloadTokenizer=function(N){var $=N.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",N)},F.prototype.setMode=function(N,$){if(N&&typeof N=="object"){if(N.getTokenizer)return this.$onChangeMode(N);var k=N,L=k.path}else L=N||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[L]&&!k){this.$onChangeMode(this.$modes[L]),$&&$();return}this.$modeId=L,h.loadModule(["mode",L],(function(W){if(!this.destroyed){if(this.$modeId!==L)return $&&$();this.$modes[L]&&!k?this.$onChangeMode(this.$modes[L]):W&&W.Mode&&(W=new W.Mode(k),k||(this.$modes[L]=W,W.$id=L),this.$onChangeMode(W)),$&&$()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},F.prototype.$onChangeMode=function(N,$){if($||(this.$modeId=N.$id),this.$mode!==N){var k=this.$mode;this.$mode=N,this.$stopWorker(),this.$useWorker&&this.$startWorker();var L=N.getTokenizer();if(L.on!==void 0){var W=this.onReloadTokenizer.bind(this);L.on("update",W)}this.bgTokenizer.setTokenizer(L),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=N.tokenRe,this.nonTokenRe=N.nonTokenRe,$||(N.attachToSession&&N.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(N.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:k,mode:N}))}},F.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},F.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(N){h.warn("Could not load worker",N),this.$worker=null}},F.prototype.getMode=function(){return this.$mode},F.prototype.setScrollTop=function(N){this.$scrollTop===N||isNaN(N)||(this.$scrollTop=N,this._signal("changeScrollTop",N))},F.prototype.getScrollTop=function(){return this.$scrollTop},F.prototype.setScrollLeft=function(N){this.$scrollLeft===N||isNaN(N)||(this.$scrollLeft=N,this._signal("changeScrollLeft",N))},F.prototype.getScrollLeft=function(){return this.$scrollLeft},F.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},F.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var N=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>N&&(N=$.screenWidth)}),this.lineWidgetWidth=N},F.prototype.$computeWidth=function(N){if(this.$modified||N){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),k=this.$rowLengthCache,L=0,W=0,U=this.$foldData[W],q=U?U.start.row:1/0,Z=$.length,Q=0;Q<Z;Q++){if(Q>q){if(Q=U.end.row+1,Q>=Z)break;U=this.$foldData[W++],q=U?U.start.row:1/0}k[Q]==null&&(k[Q]=this.$getStringScreenWidth($[Q])[0]),k[Q]>L&&(L=k[Q])}this.screenWidth=L}},F.prototype.getLine=function(N){return this.doc.getLine(N)},F.prototype.getLines=function(N,$){return this.doc.getLines(N,$)},F.prototype.getLength=function(){return this.doc.getLength()},F.prototype.getTextRange=function(N){return this.doc.getTextRange(N||this.selection.getRange())},F.prototype.insert=function(N,$){return this.doc.insert(N,$)},F.prototype.remove=function(N){return this.doc.remove(N)},F.prototype.removeFullLines=function(N,$){return this.doc.removeFullLines(N,$)},F.prototype.undoChanges=function(N,$){if(N.length){this.$fromUndo=!0;for(var k=N.length-1;k!=-1;k--){var L=N[k];L.action=="insert"||L.action=="remove"?this.doc.revertDelta(L):L.folds&&this.addFolds(L.folds)}!$&&this.$undoSelect&&(N.selectionBefore?this.selection.fromJSON(N.selectionBefore):this.selection.setRange(this.$getUndoSelection(N,!0))),this.$fromUndo=!1}},F.prototype.redoChanges=function(N,$){if(N.length){this.$fromUndo=!0;for(var k=0;k<N.length;k++){var L=N[k];(L.action=="insert"||L.action=="remove")&&this.doc.$safeApplyDelta(L)}!$&&this.$undoSelect&&(N.selectionAfter?this.selection.fromJSON(N.selectionAfter):this.selection.setRange(this.$getUndoSelection(N,!1))),this.$fromUndo=!1}},F.prototype.setUndoSelect=function(N){this.$undoSelect=N},F.prototype.$getUndoSelection=function(N,$){function k(Z){return $?Z.action!=="insert":Z.action==="insert"}for(var L,W,U=0;U<N.length;U++){var q=N[U];if(q.start){if(!L){k(q)?L=c.fromPoints(q.start,q.end):L=c.fromPoints(q.start,q.start);continue}k(q)?(W=q.start,L.compare(W.row,W.column)==-1&&L.setStart(W),W=q.end,L.compare(W.row,W.column)==1&&L.setEnd(W)):(W=q.start,L.compare(W.row,W.column)==-1&&(L=c.fromPoints(q.start,q.start)))}}return L},F.prototype.replace=function(N,$){return this.doc.replace(N,$)},F.prototype.moveText=function(N,$,k){var L=this.getTextRange(N),W=this.getFoldsInRange(N),U=c.fromPoints($,$);if(!k){this.remove(N);var q=N.start.row-N.end.row,Z=q?-N.end.column:N.start.column-N.end.column;Z&&(U.start.row==N.end.row&&U.start.column>N.end.column&&(U.start.column+=Z),U.end.row==N.end.row&&U.end.column>N.end.column&&(U.end.column+=Z)),q&&U.start.row>=N.end.row&&(U.start.row+=q,U.end.row+=q)}if(U.end=this.insert(U.start,L),W.length){var Q=N.start,le=U.start,q=le.row-Q.row,Z=le.column-Q.column;this.addFolds(W.map(function(ae){return ae=ae.clone(),ae.start.row==Q.row&&(ae.start.column+=Z),ae.end.row==Q.row&&(ae.end.column+=Z),ae.start.row+=q,ae.end.row+=q,ae}))}return U},F.prototype.indentRows=function(N,$,k){k=k.replace(/\t/g,this.getTabString());for(var L=N;L<=$;L++)this.doc.insertInLine({row:L,column:0},k)},F.prototype.outdentRows=function(N){for(var $=N.collapseRows(),k=new c(0,0,0,0),L=this.getTabSize(),W=$.start.row;W<=$.end.row;++W){var U=this.getLine(W);k.start.row=W,k.end.row=W;for(var q=0;q<L&&U.charAt(q)==" ";++q);q<L&&U.charAt(q)==" "?(k.start.column=q,k.end.column=q+1):(k.start.column=0,k.end.column=q),this.remove(k)}},F.prototype.$moveLines=function(N,$,k){if(N=this.getRowFoldStart(N),$=this.getRowFoldEnd($),k<0){var L=this.getRowFoldStart(N+k);if(L<0)return 0;var W=L-N}else if(k>0){var L=this.getRowFoldEnd($+k);if(L>this.doc.getLength()-1)return 0;var W=L-$}else{N=this.$clipRowToDocument(N),$=this.$clipRowToDocument($);var W=$-N+1}var U=new c(N,0,$,Number.MAX_VALUE),q=this.getFoldsInRange(U).map(function(Q){return Q=Q.clone(),Q.start.row+=W,Q.end.row+=W,Q}),Z=k==0?this.doc.getLines(N,$):this.doc.removeFullLines(N,$);return this.doc.insertFullLines(N+W,Z),q.length&&this.addFolds(q),W},F.prototype.moveLinesUp=function(N,$){return this.$moveLines(N,$,-1)},F.prototype.moveLinesDown=function(N,$){return this.$moveLines(N,$,1)},F.prototype.duplicateLines=function(N,$){return this.$moveLines(N,$,0)},F.prototype.$clipRowToDocument=function(N){return Math.max(0,Math.min(N,this.doc.getLength()-1))},F.prototype.$clipColumnToRow=function(N,$){return $<0?0:Math.min(this.doc.getLine(N).length,$)},F.prototype.$clipPositionToDocument=function(N,$){if($=Math.max(0,$),N<0)N=0,$=0;else{var k=this.doc.getLength();N>=k?(N=k-1,$=this.doc.getLine(k-1).length):$=Math.min(this.doc.getLine(N).length,$)}return{row:N,column:$}},F.prototype.$clipRangeToDocument=function(N){N.start.row<0?(N.start.row=0,N.start.column=0):N.start.column=this.$clipColumnToRow(N.start.row,N.start.column);var $=this.doc.getLength()-1;return N.end.row>$?(N.end.row=$,N.end.column=this.doc.getLine($).length):N.end.column=this.$clipColumnToRow(N.end.row,N.end.column),N},F.prototype.setUseWrapMode=function(N){if(N!=this.$useWrapMode){if(this.$useWrapMode=N,this.$modified=!0,this.$resetRowCache(0),N){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},F.prototype.getUseWrapMode=function(){return this.$useWrapMode},F.prototype.setWrapLimitRange=function(N,$){(this.$wrapLimitRange.min!==N||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:N,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},F.prototype.adjustWrapLimit=function(N,$){var k=this.$wrapLimitRange;k.max<0&&(k={min:$,max:$});var L=this.$constrainWrapLimit(N,k.min,k.max);return L!=this.$wrapLimit&&L>1?(this.$wrapLimit=L,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},F.prototype.$constrainWrapLimit=function(N,$,k){return $&&(N=Math.max($,N)),k&&(N=Math.min(k,N)),N},F.prototype.getWrapLimit=function(){return this.$wrapLimit},F.prototype.setWrapLimit=function(N){this.setWrapLimitRange(N,N)},F.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},F.prototype.$updateInternalDataOnChange=function(N){var $=this.$useWrapMode,k=N.action,L=N.start,W=N.end,U=L.row,q=W.row,Z=q-U,Q=null;if(this.$updating=!0,Z!=0)if(k==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(U,Z);var le=this.$foldData;Q=this.getFoldsInRange(N),this.removeFolds(Q);var ne=this.getFoldLine(W.row),ce=0;if(ne){ne.addRemoveChars(W.row,W.column,L.column-W.column),ne.shiftRow(-Z);var ae=this.getFoldLine(U);ae&&ae!==ne&&(ae.merge(ne),ne=ae),ce=le.indexOf(ne)+1}for(ce;ce<le.length;ce++){var ne=le[ce];ne.start.row>=W.row&&ne.shiftRow(-Z)}q=U}else{var de=Array(Z);de.unshift(U,0);var me=$?this.$wrapData:this.$rowLengthCache;me.splice.apply(me,de);var le=this.$foldData,ne=this.getFoldLine(U),ce=0;if(ne){var $e=ne.range.compareInside(L.row,L.column);$e==0?(ne=ne.split(L.row,L.column),ne&&(ne.shiftRow(Z),ne.addRemoveChars(q,0,W.column-L.column))):$e==-1&&(ne.addRemoveChars(U,0,W.column-L.column),ne.shiftRow(Z)),ce=le.indexOf(ne)+1}for(ce;ce<le.length;ce++){var ne=le[ce];ne.start.row>=U&&ne.shiftRow(Z)}}else{Z=Math.abs(N.start.column-N.end.column),k==="remove"&&(Q=this.getFoldsInRange(N),this.removeFolds(Q),Z=-Z);var ne=this.getFoldLine(U);ne&&ne.addRemoveChars(U,L.column,Z)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(U,q):this.$updateRowLengthCache(U,q),Q},F.prototype.$updateRowLengthCache=function(N,$){this.$rowLengthCache[N]=null,this.$rowLengthCache[$]=null},F.prototype.$updateWrapData=function(N,$){var k=this.doc.getAllLines(),L=this.getTabSize(),W=this.$wrapData,U=this.$wrapLimit,q,Z,Q=N;for($=Math.min($,k.length-1);Q<=$;)Z=this.getFoldLine(Q,Z),Z?(q=[],Z.walk((function(le,ne,ce,ae){var de;if(le!=null){de=this.$getDisplayTokens(le,q.length),de[0]=A;for(var me=1;me<de.length;me++)de[me]=C}else de=this.$getDisplayTokens(k[ne].substring(ae,ce),q.length);q=q.concat(de)}).bind(this),Z.end.row,k[Z.end.row].length+1),W[Z.start.row]=this.$computeWrapSplits(q,U,L),Q=Z.end.row+1):(q=this.$getDisplayTokens(k[Q]),W[Q]=this.$computeWrapSplits(q,U,L),Q++)},F.prototype.$computeWrapSplits=function(N,$,k){if(N.length==0)return[];var L=[],W=N.length,U=0,q=0,Z=this.$wrapAsCode,Q=this.$indentedSoftWrap,le=$<=Math.max(2*k,8)||Q===!1?0:Math.floor($/2);function ne(){var $e=0;if(le===0)return $e;if(Q)for(var Me=0;Me<N.length;Me++){var Te=N[Me];if(Te==D)$e+=1;else if(Te==E)$e+=k;else{if(Te==R)continue;break}}return Z&&Q!==!1&&($e+=k),Math.min($e,le)}function ce($e){for(var Me=$e-U,Te=U;Te<$e;Te++){var Xe=N[Te];(Xe===12||Xe===2)&&(Me-=1)}L.length||(ae=ne(),L.indent=ae),q+=Me,L.push(q),U=$e}for(var ae=0;W-U>$-ae;){var de=U+$-ae;if(N[de-1]>=D&&N[de]>=D){ce(de);continue}if(N[de]==A||N[de]==C){for(de;de!=U-1&&N[de]!=A;de--);if(de>U){ce(de);continue}for(de=U+$,de;de<N.length&&N[de]==C;de++);if(de==N.length)break;ce(de);continue}for(var me=Math.max(de-($-($>>2)),U-1);de>me&&N[de]<A;)de--;if(Z){for(;de>me&&N[de]<A;)de--;for(;de>me&&N[de]==O;)de--}else for(;de>me&&N[de]<D;)de--;if(de>me){ce(++de);continue}de=U+$,N[de]==M&&de--,ce(de-ae)}return L},F.prototype.$getDisplayTokens=function(N,$){var k=[],L;$=$||0;for(var W=0;W<N.length;W++){var U=N.charCodeAt(W);if(U==9){L=this.getScreenTabSize(k.length+$),k.push(E);for(var q=1;q<L;q++)k.push(R)}else U==32?k.push(D):U>39&&U<48||U>57&&U<64?k.push(O):U>=4352&&B(U)?k.push(I,M):k.push(I)}return k},F.prototype.$getStringScreenWidth=function(N,$,k){if($==0)return[0,0];$==null&&($=1/0),k=k||0;var L,W;for(W=0;W<N.length&&(L=N.charCodeAt(W),L==9?k+=this.getScreenTabSize(k):L>=4352&&B(L)?k+=2:k+=1,!(k>$));W++);return[k,W]},F.prototype.getRowLength=function(N){var $=1;return this.lineWidgets&&($+=this.lineWidgets[N]&&this.lineWidgets[N].rowCount||0),!this.$useWrapMode||!this.$wrapData[N]?$:this.$wrapData[N].length+$},F.prototype.getRowLineCount=function(N){return!this.$useWrapMode||!this.$wrapData[N]?1:this.$wrapData[N].length+1},F.prototype.getRowWrapIndent=function(N){if(this.$useWrapMode){var $=this.screenToDocumentPosition(N,Number.MAX_VALUE),k=this.$wrapData[$.row];return k.length&&k[0]<$.column?k.indent:0}else return 0},F.prototype.getScreenLastRowColumn=function(N){var $=this.screenToDocumentPosition(N,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},F.prototype.getDocumentLastRowColumn=function(N,$){var k=this.documentToScreenRow(N,$);return this.getScreenLastRowColumn(k)},F.prototype.getDocumentLastRowColumnPosition=function(N,$){var k=this.documentToScreenRow(N,$);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},F.prototype.getRowSplitData=function(N){if(this.$useWrapMode)return this.$wrapData[N]},F.prototype.getScreenTabSize=function(N){return this.$tabSize-(N%this.$tabSize|0)},F.prototype.screenToDocumentRow=function(N,$){return this.screenToDocumentPosition(N,$).row},F.prototype.screenToDocumentColumn=function(N,$){return this.screenToDocumentPosition(N,$).column},F.prototype.screenToDocumentPosition=function(N,$,k){if(N<0)return{row:0,column:0};var L,ce=0,W=0,U,ne=0,q=0,Z=this.$screenRowCache,Q=this.$getRowCacheIndex(Z,N),le=Z.length;if(le&&Q>=0)var ne=Z[Q],ce=this.$docRowCache[Q],ae=N>Z[le-1];else var ae=!le;for(var de=this.getLength()-1,me=this.getNextFoldLine(ce),$e=me?me.start.row:1/0;ne<=N&&(q=this.getRowLength(ce),!(ne+q>N||ce>=de));)ne+=q,ce++,ce>$e&&(ce=me.end.row+1,me=this.getNextFoldLine(ce,me),$e=me?me.start.row:1/0),ae&&(this.$docRowCache.push(ce),this.$screenRowCache.push(ne));if(me&&me.start.row<=ce)L=this.getFoldDisplayLine(me),ce=me.start.row;else{if(ne+q<=N||ce>de)return{row:de,column:this.getLine(de).length};L=this.getLine(ce),me=null}var Me=0,Te=Math.floor(N-ne);if(this.$useWrapMode){var Xe=this.$wrapData[ce];Xe&&(U=Xe[Te],Te>0&&Xe.length&&(Me=Xe.indent,W=Xe[Te-1]||Xe[Xe.length-1],L=L.substring(W)))}return k!==void 0&&this.$bidiHandler.isBidiRow(ne+Te,ce,Te)&&($=this.$bidiHandler.offsetToCol(k)),W+=this.$getStringScreenWidth(L,$-Me)[1],this.$useWrapMode&&W>=U&&(W=U-1),me?me.idxToPosition(W):{row:ce,column:W}},F.prototype.documentToScreenPosition=function(N,$){if(typeof $>"u")var k=this.$clipPositionToDocument(N.row,N.column);else k=this.$clipPositionToDocument(N,$);N=k.row,$=k.column;var ne=0,L=null,W=null;W=this.getFoldAt(N,$,1),W&&(N=W.start.row,$=W.start.column);var U,le=0,q=this.$docRowCache,Z=this.$getRowCacheIndex(q,N),Q=q.length;if(Q&&Z>=0)var le=q[Z],ne=this.$screenRowCache[Z],ce=N>q[Q-1];else var ce=!Q;for(var ae=this.getNextFoldLine(le),de=ae?ae.start.row:1/0;le<N;){if(le>=de){if(U=ae.end.row+1,U>N)break;ae=this.getNextFoldLine(U,ae),de=ae?ae.start.row:1/0}else U=le+1;ne+=this.getRowLength(le),le=U,ce&&(this.$docRowCache.push(le),this.$screenRowCache.push(ne))}var me="";ae&&le>=de?(me=this.getFoldDisplayLine(ae,N,$),L=ae.start.row):(me=this.getLine(N).substring(0,$),L=N);var $e=0;if(this.$useWrapMode){var Me=this.$wrapData[L];if(Me){for(var Te=0;me.length>=Me[Te];)ne++,Te++;me=me.substring(Me[Te-1]||0,me.length),$e=Te>0?Me.indent:0}}return this.lineWidgets&&this.lineWidgets[le]&&this.lineWidgets[le].rowsAbove&&(ne+=this.lineWidgets[le].rowsAbove),{row:ne,column:$e+this.$getStringScreenWidth(me)[0]}},F.prototype.documentToScreenColumn=function(N,$){return this.documentToScreenPosition(N,$).column},F.prototype.documentToScreenRow=function(N,$){return this.documentToScreenPosition(N,$).row},F.prototype.getScreenLength=function(){var N=0,$=null;if(this.$useWrapMode)for(var k=this.$wrapData.length,L=0,W=0,$=this.$foldData[W++],U=$?$.start.row:1/0;L<k;){var q=this.$wrapData[L];N+=q?q.length+1:1,L++,L>U&&(L=$.end.row+1,$=this.$foldData[W++],U=$?$.start.row:1/0)}else{N=this.getLength();for(var Z=this.$foldData,W=0;W<Z.length;W++)$=Z[W],N-=$.end.row-$.start.row}return this.lineWidgets&&(N+=this.$getWidgetScreenLength()),N},F.prototype.$setFontMetrics=function(N){this.$enableVarChar&&(this.$getStringScreenWidth=function($,k,L){if(k===0)return[0,0];k||(k=1/0),L=L||0;var W,U;for(U=0;U<$.length&&(W=$.charAt(U),W===" "?L+=this.getScreenTabSize(L):L+=N.getCharacterWidth(W),!(L>k));U++);return[L,U]})},F.prototype.getPrecedingCharacter=function(){var N=this.selection.getCursor();if(N.column===0)return N.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(N.row);return $[N.column-1]},F.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()},F})();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=B,g.implement(x.prototype,d);var I=1,M=2,A=3,C=4,O=9,D=10,E=11,R=12;function B(F){return F<4352?!1:F>=4352&&F<=4447||F>=4515&&F<=4519||F>=4602&&F<=4607||F>=9001&&F<=9002||F>=11904&&F<=11929||F>=11931&&F<=12019||F>=12032&&F<=12245||F>=12272&&F<=12283||F>=12288&&F<=12350||F>=12353&&F<=12438||F>=12441&&F<=12543||F>=12549&&F<=12589||F>=12593&&F<=12686||F>=12688&&F<=12730||F>=12736&&F<=12771||F>=12784&&F<=12830||F>=12832&&F<=12871||F>=12880&&F<=13054||F>=13056&&F<=19903||F>=19968&&F<=42124||F>=42128&&F<=42182||F>=43360&&F<=43388||F>=44032&&F<=55203||F>=55216&&F<=55238||F>=55243&&F<=55291||F>=63744&&F<=64255||F>=65040&&F<=65049||F>=65072&&F<=65106||F>=65108&&F<=65126||F>=65128&&F<=65131||F>=65281&&F<=65376||F>=65504&&F<=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(F){if(!F||F=="off"?F=!1:F=="free"?F=!0:F=="printMargin"?F=-1:typeof F=="string"&&(F=parseInt(F,10)||!1),this.$wrap!=F)if(this.$wrap=F,!F)this.setUseWrapMode(!1);else{var N=typeof F=="number"?F:null;this.setWrapLimitRange(N,N),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(F){F=F=="auto"?this.$mode.type!="text":F!="text",F!=this.$wrapAsCode&&(this.$wrapAsCode=F,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(F){this.$useWorker=F,this.$stopWorker(),F&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(F){F=parseInt(F),F>0&&this.$tabSize!==F&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=F,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(F){this.setFoldStyle(F)},handlesSet:!0},overwrite:{set:function(F){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(F){this.doc.setNewLineMode(F)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(F){this.setMode(F)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,r,v){var g=e("./lib/lang"),p=e("./lib/oop"),w=e("./range").Range,h=(function(){function c(){this.$options={}}return c.prototype.set=function(u){return p.mixin(this.$options,u),this},c.prototype.getOptions=function(){return g.copyObject(this.$options)},c.prototype.setOptions=function(u){this.$options=u},c.prototype.find=function(u){var i=this.$options,s=this.$matchIterator(u,i);if(!s)return!1;var f=null;return s.forEach(function(b,x,I,M){return f=new w(b,x,I,M),x==M&&i.start&&i.start.start&&i.skipCurrent!=!1&&f.isEqual(i.start)?(f=null,!1):!0}),f},c.prototype.findAll=function(u){var i=this.$options;if(!i.needle)return[];this.$assembleRegExp(i);var s=i.range,f=s?u.getLines(s.start.row,s.end.row):u.doc.getAllLines(),b=[],x=i.re;if(i.$isMultiLine){var I=x.length,M=f.length-I,A;e:for(var C=x.offset||0;C<=M;C++){for(var O=0;O<I;O++)if(f[C+O].search(x[O])==-1)continue e;var D=f[C],E=f[C+I-1],R=D.length-D.match(x[0])[0].length,B=E.match(x[I-1])[0].length;A&&A.end.row===C&&A.end.column>R||(b.push(A=new w(C,R,C+I-1,B)),I>2&&(C=C+I-2))}}else for(var F,N=0;N<f.length;N++)if(this.$isMultilineSearch(i)){var $=f.length-1;if(F=this.$multiLineForward(u,x,N,$),F){var k=F.endRow<=$?F.endRow-1:$;k>N&&(N=k),b.push(new w(F.startRow,F.startCol,F.endRow,F.endCol))}}else{F=g.getMatchOffsets(f[N],x);for(var O=0;O<F.length;O++){var L=F[O];b.push(new w(N,L.offset,N,L.offset+L.length))}}if(s){for(var W=s.start.column,U=s.end.column,N=0,O=b.length-1;N<O&&b[N].start.column<W&&b[N].start.row==0;)N++;for(var q=s.end.row-s.start.row;N<O&&b[O].end.column>U&&b[O].end.row==q;)O--;for(b=b.slice(N,O+1),N=0,O=b.length;N<O;N++)b[N].start.row+=s.start.row,b[N].end.row+=s.start.row}return b},c.prototype.parseReplaceString=function(u){for(var i={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},s="",f=0,b=u.length;f<b;f++){var x=u.charCodeAt(f);if(x===i.Backslash){if(f++,f>=b){s+="\\";break}var I=u.charCodeAt(f);switch(I){case i.Backslash:s+="\\";break;case i.n:s+=`
|
|
202
|
-
`;break;case i.t:s+=" ";break}continue}if(x===i.DollarSign){if(f++,f>=b){s+="$";break}var M=u.charCodeAt(f);if(M===i.DollarSign){s+="$$";continue}if(M===i.Digit0||M===i.Ampersand){s+="$&";continue}if(i.Digit1<=M&&M<=i.Digit9){s+="$"+u[f];continue}}s+=u[f]}return s||u},c.prototype.replace=function(u,i){var s=this.$options,f=this.$assembleRegExp(s);if(s.$isMultiLine)return i;if(f){var b=this.$isMultilineSearch(s);b&&(u=u.replace(/\r\n|\r|\n/g,`
|
|
203
|
-
`));var x=f.exec(u);if(!x||!b&&x[0].length!=u.length)return null;if(i=s.regExp?this.parseReplaceString(i):i.replace(/\$/g,"$$$$"),i=u.replace(f,i),s.preserveCase){i=i.split("");for(var I=Math.min(u.length,u.length);I--;){var M=u[I];M&&M.toLowerCase()!=M?i[I]=i[I].toUpperCase():i[I]=i[I].toLowerCase()}i=i.join("")}return i}},c.prototype.$assembleRegExp=function(u,i){if(u.needle instanceof RegExp)return u.re=u.needle;var s=u.needle;if(!u.needle)return u.re=!1;u.regExp||(s=g.escapeRegExp(s));var f=u.caseSensitive?"gm":"gmi";try{new RegExp(s,"u"),u.$supportsUnicodeFlag=!0,f+="u"}catch{u.$supportsUnicodeFlag=!1}if(u.wholeWord&&(s=d(s,u)),u.$isMultiLine=!i&&/[\n\r]/.test(s),u.$isMultiLine)return u.re=this.$assembleMultilineRegExp(s,f);try{var b=new RegExp(s,f)}catch{b=!1}return u.re=b},c.prototype.$assembleMultilineRegExp=function(u,i){for(var s=u.replace(/\r\n|\r|\n/g,`$
|
|
204
|
-
^`).split(`
|
|
205
|
-
`),f=[],b=0;b<s.length;b++)try{f.push(new RegExp(s[b],i))}catch{return!1}return f},c.prototype.$isMultilineSearch=function(u){return u.re&&/\\r\\n|\\r|\\n/.test(u.re.source)&&u.regExp&&!u.$isMultiLine},c.prototype.$multiLineForward=function(u,i,s,f){for(var b,x=l(u,s),I=s;I<=f;){for(var M=0;M<x&&!(I>f);M++){var A=u.getLine(I++);b=b==null?A:b+`
|
|
206
|
-
`+A}var C=i.exec(b);if(i.lastIndex=0,C){var O=b.slice(0,C.index).split(`
|
|
207
|
-
`),D=C[0].split(`
|
|
208
|
-
`),E=s+O.length-1,R=O[O.length-1].length,B=E+D.length-1,F=D.length==1?R+D[0].length:D[D.length-1].length;return{startRow:E,startCol:R,endRow:B,endCol:F}}}return null},c.prototype.$multiLineBackward=function(u,i,s,f,b){for(var x,I=l(u,f),M=u.getLine(f).length-s,A=f;A>=b;){for(var C=0;C<I&&A>=b;C++){var O=u.getLine(A--);x=x==null?O:O+`
|
|
209
|
-
`+x}var D=a(x,i,M);if(D){var E=x.slice(0,D.index).split(`
|
|
210
|
-
`),R=D[0].split(`
|
|
211
|
-
`),B=A+E.length,F=E[E.length-1].length,N=B+R.length-1,$=R.length==1?F+R[0].length:R[R.length-1].length;return{startRow:B,startCol:F,endRow:N,endCol:$}}}return null},c.prototype.$matchIterator=function(u,i){var s=this.$assembleRegExp(i);if(!s)return!1;var f=this.$isMultilineSearch(i),b=this.$multiLineForward,x=this.$multiLineBackward,I=i.backwards==!0,M=i.skipCurrent!=!1,A=s.unicode,C=i.range,O=i.start;O||(O=C?C[I?"end":"start"]:u.selection.getRange()),O.start&&(O=O[M!=I?"end":"start"]);var D=C?C.start.row:0,E=C?C.end.row:u.getLength()-1;if(I)var R=function(N){var $=O.row;if(!F($,O.column,N)){for($--;$>=D;$--)if(F($,Number.MAX_VALUE,N))return;if(i.wrap!=!1){for($=E,D=O.row;$>=D;$--)if(F($,Number.MAX_VALUE,N))return}}};else var R=function(N){var $=O.row;if(!F($,O.column,N)){for($=$+1;$<=E;$++)if(F($,0,N))return;if(i.wrap!=!1){for($=D,E=O.row;$<=E;$++)if(F($,0,N))return}}};if(i.$isMultiLine)var B=s.length,F=function(N,$,k){var L=I?N-B+1:N;if(!(L<0||L+B>u.getLength())){var W=u.getLine(L),U=W.search(s[0]);if(!(!I&&U<$||U===-1)){for(var q=1;q<B;q++)if(W=u.getLine(L+q),W.search(s[q])==-1)return;var Z=W.match(s[B-1])[0].length;if(!(I&&Z>$)&&k(L,U,L+B-1,Z))return!0}}};else if(I)var F=function(N,$,k){if(f){var L=x(u,s,$,N,D);if(!L)return!1;if(k(L.startRow,L.startCol,L.endRow,L.endCol))return!0}else{var W=u.getLine(N),U=[],q,Z=0;for(s.lastIndex=0;q=s.exec(W);){var Q=q[0].length;if(Z=q.index,!Q){if(Z>=W.length)break;s.lastIndex=Z+=g.skipEmptyMatch(W,Z,A)}if(q.index+Q>$)break;U.push(q.index,Q)}for(var le=U.length-1;le>=0;le-=2){var ne=U[le-1],Q=U[le];if(k(N,ne,N,ne+Q))return!0}}};else var F=function(N,$,k){if(s.lastIndex=$,f){var L=b(u,s,N,E);if(L){var W=L.endRow<=E?L.endRow-1:E;W>N&&(N=W)}if(!L)return!1;if(k(L.startRow,L.startCol,L.endRow,L.endCol))return!0}else for(var U=u.getLine(N),q,Z;Z=s.exec(U);){var Q=Z[0].length;if(q=Z.index,k(N,q,N,q+Q))return!0;if(!Q&&(s.lastIndex=q+=g.skipEmptyMatch(U,q,A),q>=U.length))return!1}};return{forEach:R}},c})();function d(c,u){var i=g.supportsLookbehind();function s(I,M){M===void 0&&(M=!0);var A=i&&u.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return A.test(I)||u.regExp?i&&u.$supportsUnicodeFlag?M?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(c),b=f[0],x=f[f.length-1];return s(b)+c+s(x,!1)}function a(c,u,i){for(var s=null,f=0;f<=c.length;){u.lastIndex=f;var b=u.exec(c);if(!b)break;var x=b.index+b[0].length;if(x>c.length-i)break;(!s||x>s.index+s[0].length)&&(s=b),f=b.index+1}return s}function l(c,u){var i=5e3,s={row:u,column:0},f=c.doc.positionToIndex(s),b=f+i,x=c.doc.indexToPosition(b),I=x.row;return I+1}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var g=this&&this.__extends||(function(){var c=function(u,i){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},c(u,i)};return function(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");c(u,i);function s(){this.constructor=u}u.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),p=e("../lib/keys"),w=e("../lib/useragent"),h=p.KEY_MODS,d=(function(){function c(u,i){this.$init(u,i,!1)}return c.prototype.$init=function(u,i,s){this.platform=i||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=s},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,i){var s=u&&(typeof u=="string"?u:u.name);u=this.commands[s],i||delete this.commands[s];var f=this.commandKeyBinding;for(var b in f){var x=f[b];if(x==u)delete f[b];else if(Array.isArray(x)){var I=x.indexOf(u);I!=-1&&(x.splice(I,1),x.length==1&&(f[b]=x[0]))}}},c.prototype.bindKey=function(u,i,s){if(typeof u=="object"&&u&&(s==null&&(s=u.position),u=u[this.platform]),!!u){if(typeof i=="function")return this.addCommand({exec:i,bindKey:u,name:i.name||u});u.split("|").forEach(function(f){var b="";if(f.indexOf(" ")!=-1){var x=f.split(/\s+/);f=x.pop(),x.forEach(function(A){var C=this.parseKeys(A),O=h[C.hashId]+C.key;b+=(b?" ":"")+O,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var I=this.parseKeys(f),M=h[I.hashId]+I.key;this._addCommandToBinding(b+M,i,s)},this)}},c.prototype._addCommandToBinding=function(u,i,s){var f=this.commandKeyBinding,b;if(!i)delete f[u];else if(!f[u]||this.$singleCommand)f[u]=i;else{Array.isArray(f[u])?(b=f[u].indexOf(i))!=-1&&f[u].splice(b,1):f[u]=[f[u]],typeof s!="number"&&(s=a(i));var x=f[u];for(b=0;b<x.length;b++){var I=x[b],M=a(I);if(M>s)break}x.splice(b,0,i)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(i){var s=u[i];if(s){if(typeof s=="string")return this.bindKey(s,i);typeof s=="function"&&(s={exec:s}),typeof s=="object"&&(s.name||(s.name=i),this.addCommand(s))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(i){this.removeCommand(u[i])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(i){this.bindKey(i,u[i])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var i=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(M){return M}),s=i.pop(),f=p[s];if(p.FUNCTION_KEYS[f])s=p.FUNCTION_KEYS[f].toLowerCase();else if(i.length){if(i.length==1&&i[0]=="shift")return{key:s.toUpperCase(),hashId:-1}}else return{key:s,hashId:-1};for(var b=0,x=i.length;x--;){var I=p.KEY_MODS[i[x]];if(I==null)return typeof console<"u"&&console.error("invalid modifier "+i[x]+" in "+u),!1;b|=I}return{key:s,hashId:b}},c.prototype.findKeyCommand=function(u,i){var s=h[u]+i;return this.commandKeyBinding[s]},c.prototype.handleKeyboard=function(u,i,s,f){if(!(f<0)){var b=h[i]+s,x=this.commandKeyBinding[b];return u.$keyChain&&(u.$keyChain+=" "+b,x=this.commandKeyBinding[u.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||b,{command:"null"}):(u.$keyChain&&((!i||i==4)&&s.length==1?u.$keyChain=u.$keyChain.slice(0,-b.length-1):(i==-1||f>0)&&(u.$keyChain="")),{command:x})}},c.prototype.getStatusText=function(u,i){return i.$keyChain||""},c})();function a(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var l=(function(c){g(u,c);function u(i,s){var f=c.call(this,i,s)||this;return f.$singleCommand=!0,f}return u})(d);l.call=function(c,u,i){d.prototype.$init.call(c,u,i,!0)},d.call=function(c,u,i){d.prototype.$init.call(c,u,i,!1)},r.HashHandler=l,r.MultiHashHandler=d}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,v){var g=this&&this.__extends||(function(){var a=function(l,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(u[s]=i[s])},a(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(l,c);function u(){this.constructor=l}l.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}})(),p=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,d=(function(a){g(l,a);function l(c,u){var i=a.call(this,u,c)||this;return i.byName=i.commands,i.setDefaultHandler("exec",function(s){return s.args?s.command.exec(s.editor,s.args,s.event,!1):s.command.exec(s.editor,{},s.event,!0)}),i}return l.prototype.exec=function(c,u,i){if(Array.isArray(c)){for(var s=c.length;s--;)if(this.exec(c[s],u,i))return!0;return!1}typeof c=="string"&&(c=this.commands[c]);var f={editor:u,command:c,args:i};return this.canExecute(c,u)?(f.returnValue=this._emit("exec",f),this._signal("afterExec",f),f.returnValue!==!1):(this._signal("commandUnavailable",f),!1)},l.prototype.canExecute=function(c,u){return typeof c=="string"&&(c=this.commands[c]),!(!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))},l.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._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(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},l})(w);p.implement(d.prototype,h),r.CommandManager=d}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,v){var g=e("../lib/lang"),p=e("../config"),w=e("../range").Range;function h(a,l){return{win:a,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){p.loadModule("ace/ext/settings_menu",function(l){l.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){p.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){p.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(a,l){typeof l=="number"&&!isNaN(l)&&a.gotoLine(l),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:h("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(a){p.loadModule("ace/ext/searchbox",function(l){l.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:h("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:h("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(a,l){a.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:h("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:h("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(a,l){a.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(a,l){a.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(a,l){a.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:h(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var l=a.$copyWithEmptySelection&&a.selection.isEmpty(),c=l?a.selection.getLineRange():a.selection.getRange();a._emit("cut",c),c.isEmpty()||a.session.remove(c),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,l){a.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(a){p.loadModule("ace/ext/searchbox",function(l){l.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(a){var l=a.selection.getRange();l.start.column=0,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var l=a.selection.getRange();l.end.column=Number.MAX_VALUE,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,l){a.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,l){a.insert(g.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var l=a.selection.getRange();l.start.column=l.end.column=0,l.end.row++,a.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(a){for(var l=a.selection.isBackwards(),c=l?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),u=l?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),i=a.session.doc.getLine(c.row).length,s=a.session.doc.getTextRange(a.selection.getRange()),f=s.replace(/\n\s*/," ").length,b=a.session.doc.getLine(c.row),x=c.row+1;x<=u.row+1;x++){var I=g.stringTrimLeft(g.stringTrimRight(a.session.doc.getLine(x)));I.length!==0&&(I=" "+I),b+=I}u.row+1<a.session.doc.getLength()-1&&(b+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new w(c.row,0,u.row+2,0),b),f>0?(a.selection.moveCursorTo(c.row,c.column),a.selection.selectTo(c.row,c.column+f)):(i=a.session.doc.getLine(c.row).length>i?i+1:i,a.selection.moveCursorTo(c.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var l=a.session.doc.getLength()-1,c=a.session.doc.getLine(l).length,u=a.selection.rangeList.ranges,i=[];u.length<1&&(u=[a.selection.getRange()]);for(var s=0;s<u.length;s++)s==u.length-1&&(u[s].end.row===l&&u[s].end.column===c||i.push(new w(u[s].end.row,u[s].end.column,l,c))),s===0?u[s].start.row===0&&u[s].start.column===0||i.push(new w(0,0,u[s].start.row,u[s].start.column)):i.push(new w(u[s-1].end.row,u[s-1].end.column,u[s].start.row,u[s].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var s=0;s<i.length;s++)a.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
|
|
212
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var l=a.getCursorPosition();a.selection.moveTo(l.row-1,Number.MAX_VALUE),a.insert(`
|
|
213
|
-
`),l.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(a){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),a.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var d=1;d<9;d++)r.commands.push({name:"foldToLevel"+d,description:"Fold To Level "+d,level:d,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(e,r,v){var g=e("../lib/keys"),p=(function(){function h(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return h.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},h.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},h.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen){d.preventDefault(),d.keyCode===g.escape&&this.annotationTooltip.hide();return}if(d.target===this.element){if(d.keyCode!=g.enter)return;d.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldLaneWidget(l),u=this.$findNearestAnnotation(l);if(!(c===null&&u===null)){var i=this.$findClosestNumber(c,u,l);if(i===c)if(this.activeLane="fold",this.activeRowIndex=c,this.$isCustomWidgetVisible(c)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(d),setTimeout((function(){this.editor._signal("gutterkeydown",new w(d,this))}).bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(d){if(d.keyCode===g.tab){d.preventDefault();return}if(d.keyCode===g.escape){d.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(d.keyCode===g.up){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(d.keyCode===g.down){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(d.keyCode===g.left){d.preventDefault(),this.$switchLane("annotation");return}if(d.keyCode===g.right){d.preventDefault(),this.$switchLane("fold");return}if(d.keyCode===g.enter||d.keyCode===g.space){switch(d.preventDefault(),this.activeLane){case"fold":var a=this.$rowIndexToRow(this.activeRowIndex),l=this.editor.session.$gutterCustomWidgets[a];if(l)l.callbacks&&l.callbacks.onClick&&l.callbacks.onClick(d,a);else if(this.gutterLayer.session.foldWidgets[a]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),d),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0;break}return}},h.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},h.prototype.$isFoldWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getFoldWidget(d).style.display!=="none";return a&&l},h.prototype.$isCustomWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=!!this.$getCustomWidget(d);return a&&l},h.prototype.$isAnnotationVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getAnnotation(d).style.display!=="none";return a&&l},h.prototype.$getFoldWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[1]},h.prototype.$getCustomWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[3]},h.prototype.$getAnnotation=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[2]},h.prototype.$findNearestFoldLaneWidget=function(d){if(this.$isCustomWidgetVisible(d)||this.$isFoldWidgetVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isCustomWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(d+a))return d+a;if(d-a>=0&&this.$isFoldWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+a))return d+a}return null},h.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isAnnotationVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+a))return d+a}return null},h.prototype.$focusFoldWidget=function(d){if(d!=null){var a=this.$getFoldWidget(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$focusCustomWidget=function(d){if(d!=null){var a=this.$getCustomWidget(d);a&&(a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus())}},h.prototype.$focusAnnotation=function(d){if(d!=null){var a=this.$getAnnotation(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$blurFoldWidget=function(d){var a=this.$getFoldWidget(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$blurCustomWidget=function(d){var a=this.$getCustomWidget(d);a&&(a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur())},h.prototype.$blurAnnotation=function(d){var a=this.$getAnnotation(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveAnnotationUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$findClosestNumber=function(d,a,l){return d===null?a:a===null||Math.abs(l-d)<=Math.abs(l-a)?d:a},h.prototype.$switchLane=function(d){switch(d){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var l=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(l===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$isCustomWidgetVisible(l)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(d){var a=this.lines.get(d);return a?a.row:null},h.prototype.$rowToRowIndex=function(d){for(var a=0;a<this.lines.getLength();a++){var l=this.lines.get(a);if(l.row==d)return a}return null},h})();r.GutterKeyboardHandler=p;var w=(function(){function h(d,a){this.gutterKeyboardHandler=a,this.domEvent=d}return h.prototype.getKey=function(){return g.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h})();r.GutterKeyboardEvent=w}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(e,r,v){var g=this&&this.__values||function($){var k=typeof Symbol=="function"&&Symbol.iterator,L=k&&$[k],W=0;if(L)return L.call($);if($&&typeof $.length=="number")return{next:function(){return $&&W>=$.length&&($=void 0),{value:$&&$[W++],done:!$}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},p=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),d=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,i=e("./edit_session").EditSession,s=e("./search").Search,f=e("./range").Range,b=e("./lib/event_emitter").EventEmitter,x=e("./commands/command_manager").CommandManager,I=e("./commands/default_commands").commands,M=e("./config"),A=e("./token_iterator").TokenIterator,C=e("./keyboard/gutter_handler").GutterKeyboardHandler,O=e("./config").nls,D=e("./clipboard"),E=e("./lib/keys"),R=e("./lib/event"),B=e("./tooltip").HoverTooltip,F=(function(){function $(k,L,W){this.id="editor"+ ++$.$uid,this.session,this.$toDestroy=[];var U=k.getContainerElement();this.container=U,this.renderer=k,this.commands=new x(d.isMac?"mac":"win",I),typeof document=="object"&&(this.textInput=new a(k.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new u(this),this.$search=new s().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(q,Z){Z._$emitInputEvent.schedule(31)}),this.setSession(L||W&&W.session||new i("")),M.resetOptions(this),W&&this.setOptions(W),M._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},$.prototype.startOperation=function(k){this.session.startOperation(k)},$.prototype.endOperation=function(k){this.session.endOperation(k)},$.prototype.onStartOperation=function(k){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,k||(this.previousCommand=null)},$.prototype.onEndOperation=function(k){if(this.curOp&&this.session){if(k&&k.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var L=this.curOp.command,W=L&&L.scrollIntoView;if(W){switch(W){case"center-animate":W="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var U=this.selection.getRange(),q=this.renderer.layerConfig;(U.start.row>=q.lastRow||U.end.row<=q.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}W=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(k){if(this.$mergeUndoDeltas){var L=this.prevOp,W=this.$mergeableCommands,U=L.command&&k.command.name==L.command.name;if(k.command.name=="insertstring"){var q=k.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),U=U&&this.mergeNextCommand&&(!/\s/.test(q)||/\s/.test(L.args)),this.mergeNextCommand=!0}else U=U&&W.indexOf(k.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(U=!1),U?this.session.mergeUndoDeltas=!0:W.indexOf(k.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(k,L){if(k&&typeof k=="string"&&k!="ace"){this.$keybindingId=k;var W=this;M.loadModule(["keybinding",k],function(U){W.$keybindingId==k&&W.keyBinding.setKeyboardHandler(U&&U.handler),L&&L()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(k),L&&L()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(k){if(this.session!=k){this.curOp&&this.endOperation(),this.curOp={};var L=this.session;if(L){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 W=this.session.getSelection();W.off("changeCursor",this.$onCursorChange),W.off("changeSelection",this.$onSelectionChange)}this.session=k,k?(this.$onDocumentChange=this.onDocumentChange.bind(this),k.on("change",this.$onDocumentChange),this.renderer.setSession(k),this.$onChangeMode=this.onChangeMode.bind(this),k.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),k.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),k.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),k.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),k.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),k.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=k.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(k)),this._signal("changeSession",{session:k,oldSession:L}),this.curOp=null,L&&L._signal("changeEditor",{oldEditor:this}),L&&(L.$editor=null),k&&k._signal("changeEditor",{editor:this}),k&&(k.$editor=this),k&&!k.destroyed&&k.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(k,L){return this.session.doc.setValue(k),L?L==1?this.navigateFileEnd():L==-1&&this.navigateFileStart():this.selectAll(),k},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(k){this.renderer.onResize(k)},$.prototype.setTheme=function(k,L){this.renderer.setTheme(k,L)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(k,L){this.renderer.setStyle(k,L)},$.prototype.unsetStyle=function(k){this.renderer.unsetStyle(k)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(k){this.setOption("fontSize",k)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var k=this;this.$highlightPending=!0,setTimeout(function(){k.$highlightPending=!1;var L=k.session;if(!(!L||L.destroyed)){L.$bracketHighlight&&(L.$bracketHighlight.markerIds.forEach(function(ae){L.removeMarker(ae)}),L.$bracketHighlight=null);var W=k.getCursorPosition(),U=k.getKeyboardHandler(),q=U&&U.$getDirectionForHighlight&&U.$getDirectionForHighlight(k),Z=L.getMatchingBracketRanges(W,q);if(!Z){var Q=new A(L,W.row,W.column),le=Q.getCurrentToken();if(le&&/\b(?:tag-open|tag-name)/.test(le.type)){var ne=L.getMatchingTags(W);ne&&(Z=[ne.openTagName.isEmpty()?ne.openTag:ne.openTagName,ne.closeTagName.isEmpty()?ne.closeTag:ne.closeTagName])}}if(!Z&&L.$mode.getMatching&&(Z=L.$mode.getMatching(k.session)),!Z){k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide();return}var ce="ace_bracket";Array.isArray(Z)?Z.length==1&&(ce="ace_error_bracket"):Z=[Z],Z.length==2&&(f.comparePoints(Z[0].end,Z[1].start)==0?Z=[f.fromPoints(Z[0].start,Z[1].end)]:f.comparePoints(Z[0].start,Z[1].end)==0&&(Z=[f.fromPoints(Z[1].start,Z[0].end)])),L.$bracketHighlight={ranges:Z,markerIds:Z.map(function(ae){return L.addMarker(ae,ce,"text")})},k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(k){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",k))},$.prototype.onBlur=function(k){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",k))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(k){var L=this.session.$useWrapMode,W=k.start.row==k.end.row?k.end.row:1/0;this.renderer.updateLines(k.start.row,W,L),this._signal("change",k),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(k){var L=k.data;this.renderer.updateLines(L.first,L.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.prototype.$updateHighlightActiveLine=function(){var k=this.getSession(),L;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(L=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(L=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(L=!1)),k.$highlightLineMarker&&!L)k.removeMarker(k.$highlightLineMarker.id),k.$highlightLineMarker=null;else if(!k.$highlightLineMarker&&L){var W=new f(L.row,L.column,L.row,1/0);W.id=k.addMarker(W,"ace_active-line","screenLine"),k.$highlightLineMarker=W}else L&&(k.$highlightLineMarker.start.row=L.row,k.$highlightLineMarker.end.row=L.row,k.$highlightLineMarker.start.column=L.column,k._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(k){var L=this.session;if(L.$selectionMarker&&L.removeMarker(L.$selectionMarker),L.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var W=this.selection.getRange(),U=this.getSelectionStyle();L.$selectionMarker=L.addMarker(W,"ace_selection",U)}var q=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(q),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var k=this.session,L=this.getSelectionRange();if(!(L.isEmpty()||L.isMultiLine())){var W=L.start.column,U=L.end.column,q=k.getLine(L.start.row),Z=q.substring(W,U);if(!(Z.length>5e3||!/[\w\d]/.test(Z))){var Q=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Z}),le=q.substring(W-1,U+1);if(Q.test(le))return Q}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(k){this.renderer.updateText(),this._emit("changeMode",k)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var k=this.getSelectedText(),L=this.session.doc.getNewLineCharacter(),W=!1;if(!k&&this.$copyWithEmptySelection){W=!0;for(var U=this.selection.getAllRanges(),q=0;q<U.length;q++){var Z=U[q];q&&U[q-1].start.row==Z.start.row||(k+=this.session.getLine(Z.start.row)+L)}}var Q={text:k};return this._signal("copy",Q),D.lineMode=W?Q.text:!1,Q.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(k,L){var W={text:k,event:L};this.commands.exec("paste",this,W)},$.prototype.$handlePaste=function(k){typeof k=="string"&&(k={text:k}),this._signal("paste",k);var L=k.text,W=L===D.lineMode,U=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)W?U.insert({row:this.selection.lead.row,column:0},L):this.insert(L);else if(W)this.selection.rangeList.ranges.forEach(function(ce){U.insert({row:ce.start.row,column:0},L)});else{var q=L.split(/\r\n|\r|\n/),Z=this.selection.rangeList.ranges,Q=q.length==2&&(!q[0]||!q[1]);if(q.length!=Z.length||Q)return this.commands.exec("insertstring",this,L);for(var le=Z.length;le--;){var ne=Z[le];ne.isEmpty()||U.remove(ne),U.insert(ne.start,q[le])}}},$.prototype.execCommand=function(k,L){return this.commands.exec(k,this,L)},$.prototype.insert=function(k,L){var W=this.session,U=W.getMode(),q=this.getCursorPosition();if(this.getBehavioursEnabled()&&!L){var Z=U.transformAction(W.getState(q.row),"insertion",this,W,k);Z&&(k!==Z.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),k=Z.text)}if(k==" "&&(k=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&k.indexOf(`
|
|
214
|
-
`)==-1){var Q=f.fromPoints(q,q);Q.end.column+=k.length,this.session.remove(Q)}}else{var Q=this.getSelectionRange();q=this.session.remove(Q),this.clearSelection()}if(k==`
|
|
215
|
-
`||k==`\r
|
|
216
|
-
`){var ae=W.getLine(q.row);if(q.column>ae.search(/\S|$/)){var le=ae.substr(q.column).search(/\S|$/);W.doc.removeInLine(q.row,q.column,q.column+le)}}this.clearSelection();var ne=q.column,ce=W.getState(q.row),ae=W.getLine(q.row),de=U.checkOutdent(ce,ae,k);if(W.insert(q,k),Z&&Z.selection&&(Z.selection.length==2?this.selection.setSelectionRange(new f(q.row,ne+Z.selection[0],q.row,ne+Z.selection[1])):this.selection.setSelectionRange(new f(q.row+Z.selection[0],Z.selection[1],q.row+Z.selection[2],Z.selection[3]))),this.$enableAutoIndent){if(W.getDocument().isNewLine(k)){var me=U.getNextLineIndent(ce,ae.slice(0,q.column),W.getTabString());W.insert({row:q.row+1,column:0},me)}de&&U.autoOutdent(ce,W,q.row)}},$.prototype.autoIndent=function(){for(var k=this.session,L=k.getMode(),W=this.selection.isEmpty()?[new f(0,0,k.doc.getLength()-1,0)]:this.selection.getAllRanges(),U="",q="",Z="",Q=k.getTabString(),le=0;le<W.length;le++)for(var ne=W[le].start.row,ce=W[le].end.row,ae=ne;ae<=ce;ae++){ae>0&&(U=k.getState(ae-1),q=k.getLine(ae-1),Z=L.getNextLineIndent(U,q,Q));var de=k.getLine(ae),me=L.$getIndent(de);if(Z!==me){if(me.length>0){var $e=new f(ae,0,ae,me.length);k.remove($e)}Z.length>0&&k.insert({row:ae,column:0},Z)}L.autoOutdent(U,k,ae)}},$.prototype.onTextInput=function(k,L){if(!L)return this.keyBinding.onTextInput(k);this.startOperation({command:{name:"insertstring"}});var W=this.applyComposition.bind(this,k,L);this.selection.rangeCount?this.forEachSelection(W):W(),this.endOperation()},$.prototype.applyComposition=function(k,L){if(L.extendLeft||L.extendRight){var W=this.selection.getRange();W.start.column-=L.extendLeft,W.end.column+=L.extendRight,W.start.column<0&&(W.start.row--,W.start.column+=this.session.getLine(W.start.row).length+1),this.selection.setRange(W),!k&&!W.isEmpty()&&this.remove()}if((k||!this.selection.isEmpty())&&this.insert(k,!0),L.restoreStart||L.restoreEnd){var W=this.selection.getRange();W.start.column-=L.restoreStart,W.end.column-=L.restoreEnd,this.selection.setRange(W)}},$.prototype.onCommandKey=function(k,L,W){return this.keyBinding.onCommandKey(k,L,W)},$.prototype.setOverwrite=function(k){this.session.setOverwrite(k)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(k){this.setOption("scrollSpeed",k)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(k){this.setOption("dragDelay",k)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(k){this.setOption("selectionStyle",k)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(k){this.setOption("highlightActiveLine",k)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(k){this.setOption("highlightSelectedWord",k)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(k){this.renderer.setAnimatedScroll(k)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(k){this.renderer.setShowInvisibles(k)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(k){this.renderer.setDisplayIndentGuides(k)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(k){this.renderer.setHighlightIndentGuides(k)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(k){this.renderer.setShowPrintMargin(k)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(k){this.renderer.setPrintMarginColumn(k)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(k){this.setOption("readOnly",k)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(k){this.setOption("behavioursEnabled",k)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(k){this.setOption("wrapBehavioursEnabled",k)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(k){this.setOption("showFoldWidgets",k)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(k){this.selection.isEmpty()&&(k=="left"?this.selection.selectLeft():this.selection.selectRight());var L=this.getSelectionRange();if(this.getBehavioursEnabled()){var W=this.session,U=W.getState(L.start.row),q=W.getMode().transformAction(U,"deletion",this,W,L);if(L.end.column===0){var Z=W.getTextRange(L);if(Z[Z.length-1]==`
|
|
217
|
-
`){var Q=W.getLine(L.end.row);/^\s+$/.test(Q)&&(L.end.column=Q.length)}}q&&(L=q)}this.session.remove(L),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var k=this.getSelectionRange();k.start.column==k.end.column&&k.start.row==k.end.row&&(k.end.column=0,k.end.row++),this.session.remove(k),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var k=this.getCursorPosition();this.insert(`
|
|
218
|
-
`),this.moveCursorToPosition(k)},$.prototype.setGhostText=function(k,L){this.renderer.setGhostText(k,L)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var k=this.getCursorPosition(),L=k.column;if(L!==0){var W=this.session.getLine(k.row),U,q;L<W.length?(U=W.charAt(L)+W.charAt(L-1),q=new f(k.row,L-1,k.row,L+1)):(U=W.charAt(L-1)+W.charAt(L-2),q=new f(k.row,L-2,k.row,L)),this.session.replace(q,U),this.session.selection.moveToPosition(q.end)}}},$.prototype.toLowerCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),W=this.session.getTextRange(L);this.session.replace(L,W.toLowerCase()),this.selection.setSelectionRange(k)},$.prototype.toUpperCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),W=this.session.getTextRange(L);this.session.replace(L,W.toUpperCase()),this.selection.setSelectionRange(k)},$.prototype.indent=function(){var k=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var W=this.$getSelectedRows();k.indentRows(W.first,W.last," ");return}else if(L.start.column<L.end.column){var U=k.getTextRange(L);if(!/^\s+$/.test(U)){var W=this.$getSelectedRows();k.indentRows(W.first,W.last," ");return}}var q=k.getLine(L.start.row),Z=L.start,Q=k.getTabSize(),le=k.documentToScreenColumn(Z.row,Z.column);if(this.session.getUseSoftTabs())var ne=Q-le%Q,ce=h.stringRepeat(" ",ne);else{for(var ne=le%Q;q[L.start.column-1]==" "&≠)L.start.column--,ne--;this.selection.setSelectionRange(L),ce=" "}return this.insert(ce)},$.prototype.blockIndent=function(){var k=this.$getSelectedRows();this.session.indentRows(k.first,k.last," ")},$.prototype.blockOutdent=function(){var k=this.session.getSelection();this.session.outdentRows(k.getRange())},$.prototype.sortLines=function(){for(var k=this.$getSelectedRows(),L=this.session,W=[],U=k.first;U<=k.last;U++)W.push(L.getLine(U));W.sort(function(Q,le){return Q.toLowerCase()<le.toLowerCase()?-1:Q.toLowerCase()>le.toLowerCase()?1:0});for(var q=new f(0,0,0,0),U=k.first;U<=k.last;U++){var Z=L.getLine(U);q.start.row=U,q.end.row=U,q.end.column=Z.length,L.replace(q,W[U-k.first])}},$.prototype.toggleCommentLines=function(){var k=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(k,this.session,L.first,L.last)},$.prototype.toggleBlockComment=function(){var k=this.getCursorPosition(),L=this.session.getState(k.row),W=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,W,k)},$.prototype.getNumberAt=function(k,L){var W=/[\-]?[0-9]+(?:\.[0-9]+)?/g;W.lastIndex=0;for(var U=this.session.getLine(k);W.lastIndex<L;){var q=W.exec(U);if(q.index<=L&&q.index+q[0].length>=L){var Z={value:q[0],start:q.index,end:q.index+q[0].length};return Z}}return null},$.prototype.modifyNumber=function(k){var L=this.selection.getCursor().row,W=this.selection.getCursor().column,U=new f(L,W-1,L,W),q=this.session.getTextRange(U);if(!isNaN(parseFloat(q))&&isFinite(q)){var Z=this.getNumberAt(L,W);if(Z){var Q=Z.value.indexOf(".")>=0?Z.start+Z.value.indexOf(".")+1:Z.end,le=Z.start+Z.value.length-Q,ne=parseFloat(Z.value);ne*=Math.pow(10,le),Q!==Z.end&&W<Q?k*=Math.pow(10,Z.end-W-1):k*=Math.pow(10,Z.end-W),ne+=k,ne/=Math.pow(10,le);var ce=ne.toFixed(le),ae=new f(L,Z.start,L,Z.end);this.session.replace(ae,ce),this.moveCursorTo(L,Math.max(Z.start+1,W+ce.length-Z.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var k=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var W=this.getSelectedText(),U=this.selection.getWordRange().start.column,q=W.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Z=L-U-1;Z<0&&(Z=0);var Q=0,le=0,ne=this;W.match(/[A-Za-z0-9_]+/)&&q.forEach(function(qe,rt){le=Q+qe.length,Z>=Q&&Z<=le&&(W=qe,ne.selection.clearSelection(),ne.moveCursorTo(k,Q+U),ne.selection.selectTo(k,le+U)),Q=le});for(var ce=this.$toggleWordPairs,ae,de=0;de<ce.length;de++)for(var me=ce[de],$e=0;$e<=1;$e++){var Me=+!$e,Te=W.match(new RegExp("^\\s?_?("+h.escapeRegExp(me[$e])+")\\s?$","i"));if(Te){var Xe=W.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(Te[1])+")($|\\s)","g"));Xe&&(ae=W.replace(new RegExp(h.escapeRegExp(me[$e]),"i"),function(qe){var rt=me[Me];return qe.toUpperCase()==qe?rt=rt.toUpperCase():qe.charAt(0).toUpperCase()==qe.charAt(0)&&(rt=rt.substr(0,0)+me[Me].charAt(0).toUpperCase()+rt.substr(1)),rt}),this.insert(ae),ae="")}}},$.prototype.findLinkAt=function(k,L){var W,U,q=this.session.getLine(k),Z=q.split(/((?:https?|ftp):\/\/[\S]+)/),Q=L;Q<0&&(Q=0);var le=0,ne=0,ce;try{for(var ae=g(Z),de=ae.next();!de.done;de=ae.next()){var me=de.value;if(ne=le+me.length,Q>=le&&Q<=ne&&me.match(/((?:https?|ftp):\/\/[\S]+)/)){ce=me.replace(/[\s:.,'";}\]]+$/,"");break}le=ne}}catch($e){W={error:$e}}finally{try{de&&!de.done&&(U=ae.return)&&U.call(ae)}finally{if(W)throw W.error}}return ce},$.prototype.openLink=function(){var k=this.selection.getCursor(),L=this.findLinkAt(k.row,k.column);return L&&window.open(L,"_blank"),L!=null},$.prototype.removeLines=function(){var k=this.$getSelectedRows();this.session.removeFullLines(k.first,k.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var k=this.selection,L=this.session,W=k.getRange(),U=k.isBackwards();if(W.isEmpty()){var q=W.start.row;L.duplicateLines(q,q)}else{var Z=U?W.start:W.end,Q=L.insert(Z,L.getTextRange(W));W.start=Z,W.end=Q,k.setSelectionRange(W,U)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(k,L,W){return this.session.moveText(k,L,W)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(k,L){var W,U,q=this.selection;if(!q.inMultiSelectMode||this.inVirtualSelectionMode){var Z=q.toOrientedRange();W=this.$getSelectedRows(Z),U=this.session.$moveLines(W.first,W.last,L?0:k),L&&k==-1&&(U=0),Z.moveBy(U,0),q.fromOrientedRange(Z)}else{var Q=q.rangeList.ranges;q.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var le=0,ne=0,ce=Q.length,ae=0;ae<ce;ae++){var de=ae;Q[ae].moveBy(le,0),W=this.$getSelectedRows(Q[ae]);for(var me=W.first,$e=W.last;++ae<ce;){ne&&Q[ae].moveBy(ne,0);var Me=this.$getSelectedRows(Q[ae]);if(L&&Me.first!=$e||!L&&Me.first>$e+1)break;$e=Me.last}for(ae--,le=this.session.$moveLines(me,$e,L?0:k),L&&k==-1&&(de=ae+1);de<=ae;)Q[de].moveBy(le,0),de++;L||(le=0),ne+=le}q.fromOrientedRange(q.ranges[0]),q.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(k){return k=(k||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(k.start.row),last:this.session.getRowFoldEnd(k.end.row)}},$.prototype.onCompositionStart=function(k){this.renderer.showComposition(k)},$.prototype.onCompositionUpdate=function(k){this.renderer.setCompositionText(k)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(k){return k>=this.getFirstVisibleRow()&&k<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(k){return k>=this.renderer.getFirstFullyVisibleRow()&&k<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(k,L){var W=this.renderer,U=this.renderer.layerConfig,q=k*Math.floor(U.height/U.lineHeight);L===!0?this.selection.$moveSelection(function(){this.moveCursorBy(q,0)}):L===!1&&(this.selection.moveCursorBy(q,0),this.selection.clearSelection());var Z=W.scrollTop;W.scrollBy(0,q*U.lineHeight),L!=null&&W.scrollCursorIntoView(null,.5),W.animateScrolling(Z)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(k){this.renderer.scrollToRow(k)},$.prototype.scrollToLine=function(k,L,W,U){this.renderer.scrollToLine(k,L,W,U)},$.prototype.centerSelection=function(){var k=this.getSelectionRange(),L={row:Math.floor(k.start.row+(k.end.row-k.start.row)/2),column:Math.floor(k.start.column+(k.end.column-k.start.column)/2)};this.renderer.alignCursor(L,.5)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(k,L){this.selection.moveCursorTo(k,L)},$.prototype.moveCursorToPosition=function(k){this.selection.moveCursorToPosition(k)},$.prototype.jumpToMatching=function(k,L){var W=this.getCursorPosition(),U=new A(this.session,W.row,W.column),q=U.getCurrentToken(),Z=0;q&&q.type.indexOf("tag-name")!==-1&&(q=U.stepBackward());var Q=q||U.stepForward();if(Q){var le,ne=!1,ce={},ae=W.column-Q.start,de,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Q.value.match(/[{}()\[\]]/g)){for(;ae<Q.value.length&&!ne;ae++)if(me[Q.value[ae]])switch(de=me[Q.value[ae]]+"."+Q.type.replace("rparen","lparen"),isNaN(ce[de])&&(ce[de]=0),Q.value[ae]){case"(":case"[":case"{":ce[de]++;break;case")":case"]":case"}":ce[de]--,ce[de]===-1&&(le="bracket",ne=!0);break}}else Q.type.indexOf("tag-name")!==-1&&(isNaN(ce[Q.value])&&(ce[Q.value]=0),q.value==="<"&&Z>1?ce[Q.value]++:q.value==="</"&&ce[Q.value]--,ce[Q.value]===-1&&(le="tag",ne=!0));ne||(q=Q,Z++,Q=U.stepForward(),ae=0)}while(Q&&!ne);if(le){var $e,Me;if(le==="bracket")$e=this.session.getBracketRange(W),$e||($e=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()+ae-1,U.getCurrentTokenRow(),U.getCurrentTokenColumn()+ae-1),Me=$e.start,(L||Me.row===W.row&&Math.abs(Me.column-W.column)<2)&&($e=this.session.getBracketRange(Me)));else if(le==="tag"){if(!Q||Q.type.indexOf("tag-name")===-1)return;if($e=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2,U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2),$e.compare(W.row,W.column)===0){var Te=this.session.getMatchingTags(W);Te&&(Te.openTag.contains(W.row,W.column)?($e=Te.closeTag,Me=$e.start):($e=Te.openTag,Te.closeTag.start.row===W.row&&Te.closeTag.start.column===W.column?Me=$e.end:Me=$e.start))}Me=Me||$e.start}Me=$e&&$e.cursor||Me,Me&&(k?$e&&L?this.selection.setRange($e):$e&&$e.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Me.row,Me.column):this.selection.moveTo(Me.row,Me.column))}}},$.prototype.gotoLine=function(k,L,W){this.selection.clearSelection(),this.session.unfold({row:k-1,column:L||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(k-1,L||0),this.isRowFullyVisible(k-1)||this.scrollToLine(k-1,!0,W)},$.prototype.navigateTo=function(k,L){this.selection.moveTo(k,L)},$.prototype.navigateUp=function(k){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(-k||-1,0)},$.prototype.navigateDown=function(k){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(k||1,0)},$.prototype.navigateLeft=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorLeft();else{var L=this.getSelectionRange().start;this.moveCursorToPosition(L)}this.clearSelection()},$.prototype.navigateRight=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorRight();else{var L=this.getSelectionRange().end;this.moveCursorToPosition(L)}this.clearSelection()},$.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},$.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},$.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},$.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},$.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},$.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},$.prototype.replace=function(k,L){L&&this.$search.set(L);var W=this.$search.find(this.session),U=0;return W&&(this.$tryReplace(W,k)&&(U=1),this.selection.setSelectionRange(W),this.renderer.scrollSelectionIntoView(W.start,W.end)),U},$.prototype.replaceAll=function(k,L){L&&this.$search.set(L);var W=this.$search.findAll(this.session),U=0;if(!W.length)return U;var q=this.getSelectionRange();this.selection.moveTo(0,0);for(var Z=W.length-1;Z>=0;--Z)this.$tryReplace(W[Z],k)&&U++;return this.selection.setSelectionRange(q),U},$.prototype.$tryReplace=function(k,L){var W=this.session.getTextRange(k);return L=this.$search.replace(W,L),L!==null?(k.end=this.session.replace(k,L),k):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(k,L,W){L||(L={}),typeof k=="string"||k instanceof RegExp?L.needle=k:typeof k=="object"&&p.mixin(L,k);var U=this.selection.getRange();L.needle==null&&(k=this.session.getTextRange(U)||this.$search.$options.needle,k||(U=this.session.getWordRange(U.start.row,U.start.column),k=this.session.getTextRange(U)),this.$search.set({needle:k})),this.$search.set(L),L.start||this.$search.set({start:U});var q=this.$search.find(this.session);if(L.preventScroll)return q;if(q)return this.revealRange(q,W),q;L.backwards?U.start=U.end:U.end=U.start,this.selection.setRange(U)},$.prototype.findNext=function(k,L){this.find({skipCurrent:!0,backwards:!1},k,L)},$.prototype.findPrevious=function(k,L){this.find(k,{skipCurrent:!0,backwards:!0},L)},$.prototype.revealRange=function(k,L){this.session.unfold(k),this.selection.setSelectionRange(k);var W=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(k.start,k.end,.5),L!==!1&&this.renderer.animateScrolling(W)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(k){k.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(k){if(k){var L,W=this,U=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var q=this.$scrollAnchor;q.style.cssText="position:absolute",this.container.insertBefore(q,this.container.firstChild);var Z=this.on("changeSelection",function(){U=!0}),Q=this.renderer.on("beforeRender",function(){U&&(L=W.renderer.container.getBoundingClientRect())}),le=this.renderer.on("afterRender",function(){if(U&&L&&(W.isFocused()||W.searchBox&&W.searchBox.isFocused())){var ne=W.renderer,ce=ne.$cursorLayer.$pixelPos,ae=ne.layerConfig,de=ce.top-ae.offset;ce.top>=0&&de+L.top<0?U=!0:ce.top<ae.height&&ce.top+L.top+ae.lineHeight>window.innerHeight?U=!1:U=null,U!=null&&(q.style.top=de+"px",q.style.left=ce.left+"px",q.style.height=ae.lineHeight+"px",q.scrollIntoView(U)),U=L=null}});this.setAutoScrollEditorIntoView=function(ne){ne||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Z),this.renderer.off("afterRender",le),this.renderer.off("beforeRender",Q))}}},$.prototype.$resetCursorStyle=function(){var k=this.$cursorStyle||"ace",L=this.renderer.$cursorLayer;L&&(L.setSmoothBlinking(/smooth/.test(k)),L.isBlinking=!this.$readOnly&&k!="wide",w.setCssClass(L.element,"ace_slim-cursors",/slim/.test(k)))},$.prototype.prompt=function(k,L,W){var U=this;M.loadModule("ace/ext/prompt",function(q){q.prompt(U,k,L,W)})},Object.defineProperty($.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new B(this.container))},set:function(k){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=k},enumerable:!1,configurable:!0}),$})();F.$uid=0,F.prototype.curOp=null,F.prototype.prevOp={},F.prototype.$mergeableCommands=["backspace","del","insertstring"],F.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"],["&&","||"],["==","!="]],p.implement(F.prototype,b),M.defineOptions(F.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){var k=this;if(this.textInput.setReadOnly($),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(W){var U=!1;if(W&&W.type=="keydown"){if(W&&W.key&&!W.ctrlKey&&!W.metaKey&&(W.key==" "&&W.preventDefault(),U=W.key.length==1),!U)return}else W&&W.type!=="exec"&&(U=!0);if(U){var q=w.createElement("div");q.textContent=O("editor.tooltip.disable-editing","Editing is disabled"),k.hoverTooltip.isOpen||k.hoverTooltip.showForRange(k,k.getSelectionRange(),q)}else k.hoverTooltip&&k.hoverTooltip.isOpen&&k.hoverTooltip.hide()});var L=this.textInput.getElement();$?(R.addListener(L,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(R.removeListener(L,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback))}},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?N.attach(this):N.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var k=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(k&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!k&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var L=w.createElement("div");L.className="ace_placeholder",L.textContent=this.$placeholder||"",this.renderer.placeholderNode=L,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!k&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var k={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(U){U.blur(),U.renderer.scroller.focus()},readOnly:!0},L=function(U){if(U.target==this.renderer.scroller&&U.keyCode===E.enter){U.preventDefault();var q=this.getCursorPosition().row;this.isRowVisible(q)||this.scrollToLine(q,!0,!0),this.focus()}},W;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(d.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",O("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",O("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",L.bind(this)),this.commands.addCommand(k),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",O("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",O("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),W||(W=new C(this)),W.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",L.bind(this)),this.commands.removeCommand(k),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),W&&W.removeListener())},initialValue:!1},textInputAriaLabel:{set:function($){this.$textInputAriaLabel=$},initialValue:""},enableMobileMenu:{set:function($){this.$enableMobileMenu=$},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function($,k){return(Math.abs($.selection.lead.row-k)||k+1+(k<9?"·":""))+""},getWidth:function($,k,L){return Math.max(k.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function($,k){k.renderer.$loop.schedule(k.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};r.Editor=F}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,v){var g=e("../lib/dom"),p=(function(){function w(h,d){this.element=h,this.canvasHeight=d||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){g.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,d){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,d,a){var l=d.firstRowScreen*d.lineHeight,c=Math.floor(l/this.canvasHeight),u=a.documentToScreenRow(h,0)*d.lineHeight;return u-c*this.canvasHeight},w.prototype.computeLineHeight=function(h,d,a){return d.lineHeight*a.getRowLineCount(h)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(h){return this.cells[h]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var d=g.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.appendChild(d)}else this.cells.push(h),this.element.appendChild(h.element)},w.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var d=g.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(d,this.element.firstChild):this.element.appendChild(d)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},w.prototype.createCell=function(h,d,a,l){var c=this.cellCache.pop();if(!c){var u=g.createElement("div");l&&l(u),this.element.appendChild(u),c={element:u,text:"",row:h}}return c.row=h,c},w})();r.Lines=p}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,r,v){var g=e("../lib/dom"),p=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,d=e("./lines").Lines,a=e("../config").nls,l=(function(){function u(i){this.$showCursorMarker=null,this.element=g.createElement("div"),this.element.className="ace_layer ace_gutter-layer",i.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new d(this.element),this.$lines.$offsetCoefficient=1}return u.prototype.setSession=function(i){this.session&&this.session.off("change",this.$updateAnnotations),this.session=i,i&&i.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(i,s)},u.prototype.removeGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(i,s)},u.prototype.setAnnotations=function(i){this.$annotations=[];for(var s=0;s<i.length;s++){var f=i[s],b=f.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var I=f.text,M=f.text,A=f.type;I=I?w.escapeHTML(I):f.html||"",M=M||f.html||"",x.text.indexOf(I)===-1&&(x.text.push(I),x.type.push(A),x.displayText.push(M));var C=f.className;C?x.className=C:A==="error"?x.className=" ace_error":A==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":A==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":A==="info"&&!x.className?x.className=" ace_info":A==="hint"&&!x.className&&(x.className=" ace_hint")}},u.prototype.$updateAnnotations=function(i){if(this.$annotations.length){var s=i.start.row,f=i.end.row-s;if(f!==0)if(i.action=="remove")this.$annotations.splice(s,f+1,null);else{var b=new Array(f+1);b.unshift(s,1),this.$annotations.splice.apply(this.$annotations,b)}}},u.prototype.update=function(i){this.config=i;var s=this.session,f=i.firstRow,b=Math.min(i.lastRow+i.gutterOffset,s.getLength()-1);this.oldLastRow=b,this.config=i,this.$lines.moveContainer(i),this.$updateCursorRow();for(var x=s.getNextFoldLine(f),I=x?x.start.row:1/0,M=null,A=-1,C=f;;){if(C>I&&(C=x.end.row+1,x=s.getNextFoldLine(C,x),I=x?x.start.row:1/0),C>b){for(;this.$lines.getLength()>A+1;)this.$lines.pop();break}M=this.$lines.get(++A),M?M.row=C:(M=this.$lines.createCell(C,i,this.session,c),this.$lines.push(M)),this.$renderCell(M,i,x,C),C++}this._signal("afterRender"),this.$updateGutterWidth(i),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},u.prototype.$updateGutterWidth=function(i){var s=this.session,f=s.gutterRenderer||this.$renderer,b=s.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||s.$useWrapMode)&&(x=s.getLength()+b-1);var I=f?f.getWidth(s,x,i):x.toString().length*i.characterWidth,M=this.$padding||this.$computePadding();I+=M.left+M.right,I!==this.gutterWidth&&!isNaN(I)&&(this.gutterWidth=I,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",I))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},u.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!(this.$cursorCell&&this.$cursorCell.row==i)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var s=this.$lines.cells;this.$cursorCell=null;for(var f=0;f<s.length;f++){var b=s[f];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(f>0&&x&&x.start.row==s[f-1].row)b=s[f-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},u.prototype.$updateCursorMarker=function(){if(this.session){var i=this.session;this.$highlightElement||(this.$highlightElement=g.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var s=i.selection.cursor,f=this.config,b=this.$lines,x=f.firstRowScreen*f.lineHeight,I=Math.floor(x/b.canvasHeight),M=i.documentToScreenRow(s)*f.lineHeight,A=M-I*b.canvasHeight;g.setStyle(this.$highlightElement.style,"height",f.lineHeight+"px"),g.setStyle(this.$highlightElement.style,"top",A+"px")}},u.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=f,!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(b>f)for(var x=this.session.getFoldedRowCount(f+1,b);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLines(i,i.firstRow,s.firstRow-1)),f>b&&this.$lines.push(this.$renderLines(i,b+1,f)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},u.prototype.$renderLines=function(i,s,f){for(var b=[],x=s,I=this.session.getNextFoldLine(x),M=I?I.start.row:1/0;x>M&&(x=I.end.row+1,I=this.session.getNextFoldLine(x,I),M=I?I.start.row:1/0),!(x>f);){var A=this.$lines.createCell(x,i,this.session,c);this.$renderCell(A,i,I,x),b.push(A),x++}return b},u.prototype.$renderCell=function(i,s,f,b){var x=i.element,I=this.session,M=x.childNodes[0],A=x.childNodes[1],C=x.childNodes[2],O=x.childNodes[3],D=C.firstChild,E=I.$firstLineNumber,R=I.$breakpoints,B=I.$decorations,F=I.gutterRenderer||this.$renderer,N=this.$showFoldWidgets&&I.foldWidgets,$=f?f.start.row:Number.MAX_VALUE,k=s.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",W=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",U=(F?F.getText(I,b):b+E).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||f&&b<this.$cursorRow&&b>=$&&this.$cursorRow<=f.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),R[b]&&(L+=R[b]),B[b]&&(L+=B[b]),this.$annotations[b]&&b!==$&&(L+=this.$annotations[b].className),N){var q=N[b];q==null&&(q=N[b]=I.getFoldWidget(b))}if(q){var Z="ace_fold-widget ace_"+q,Q=q=="start"&&b==$&&b<f.end.row;if(Q){Z+=" ace_closed";for(var le="",ne=!1,ce=b+1;ce<=f.end.row;ce++)if(this.$annotations[ce]){if(this.$annotations[ce].className===" ace_error"){ne=!0,le=" ace_error_fold";break}this.$annotations[ce].className===" ace_security"?(ne=!0,le=" ace_security_fold"):this.$annotations[ce].className===" ace_warning"&&le!==" ace_security_fold"&&(ne=!0,le=" ace_warning_fold")}L+=le}else Z+=" ace_open";A.className!=Z&&(A.className=Z),g.setStyle(A.style,"height",k),g.setStyle(A.style,"display","inline-block"),A.setAttribute("role","button"),A.setAttribute("tabindex","-1");var ae=I.getFoldWidgetRange(b);ae?A.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[ae.start.row+1,ae.end.row+1])):f?A.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[f.start.row+1,f.end.row+1])):A.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),Q?(A.setAttribute("aria-expanded","false"),A.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(A.setAttribute("aria-expanded","true"),A.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else A&&(g.setStyle(A.style,"display","none"),A.setAttribute("tabindex","0"),A.removeAttribute("role"),A.removeAttribute("aria-label"));var de=this.session.$gutterCustomWidgets[b];if(de?this.$addCustomWidget(b,de,i):O&&this.$removeCustomWidget(b,i),ne&&this.$showFoldedAnnotations){C.className="ace_gutter_annotation",D.className=W,D.className+=le,g.setStyle(D.style,"height",k),g.setStyle(C.style,"display","block"),g.setStyle(C.style,"height",k);var me;switch(le){case" ace_error_fold":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security_fold":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning_fold":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else if(this.$annotations[b]){C.className="ace_gutter_annotation",D.className=W,this.$useSvgGutterIcons?D.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),g.setStyle(D.style,"height",k),g.setStyle(C.style,"display","block"),g.setStyle(C.style,"height",k);var me;switch(this.$annotations[b].className){case" ace_error":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break;case" ace_info":me=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[U]);break;case" ace_hint":me=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else g.setStyle(C.style,"display","none"),C.removeAttribute("aria-label"),C.removeAttribute("role"),C.setAttribute("tabindex","0");return U!==M.data&&(M.data=U),x.className!=L&&(x.className=L),g.setStyle(i.element.style,"height",this.$lines.computeLineHeight(b,s,I)+"px"),g.setStyle(i.element.style,"top",this.$lines.computeLineTop(b,s,I)+"px"),i.text=U,C.style.display==="none"&&A.style.display==="none"&&!de?i.element.setAttribute("aria-hidden",!0):i.element.setAttribute("aria-hidden",!1),i},u.prototype.setHighlightGutterLine=function(i){this.$highlightGutterLine=i,!i&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},u.prototype.setShowLineNumbers=function(i){this.$renderer=!i&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(i){i?g.addCssClass(this.element,"ace_folding-enabled"):g.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=i,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$hideFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&g.setStyle(b.style,"display","none")}},u.prototype.$showFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&this.session.foldWidgets&&this.session.foldWidgets[f.row]&&g.setStyle(b.style,"display","inline-block")}},u.prototype.$getGutterCell=function(i){var s=this.$lines.cells,f=0,b=s.length-1;if(!(i<s[0].row||i>s[b].row)){for(;f<=b;){var x=Math.floor((f+b)/2),I=s[x];if(I.row>i)b=x-1;else if(I.row<i)f=x+1;else return I}return I}},u.prototype.$addCustomWidget=function(i,s,f){var b=s.className,x=s.label,I=s.title,M=s.callbacks;this.session.$gutterCustomWidgets[i]={className:b,label:x,title:I,callbacks:M},this.$hideFoldWidget(i,f);var A=f||this.$getGutterCell(i);if(A&&A.element){var C=A.element.querySelector(".ace_custom-widget");C&&C.remove(),C=g.createElement("span"),C.className="ace_custom-widget ".concat(b),C.setAttribute("tabindex","-1"),C.setAttribute("role","button"),C.setAttribute("aria-label",x),C.setAttribute("title",I),g.setStyle(C.style,"display","inline-block"),g.setStyle(C.style,"height","inherit"),M&&M.onClick&&C.addEventListener("click",function(O){M.onClick(O,i),O.stopPropagation()}),A.element.appendChild(C)}},u.prototype.$removeCustomWidget=function(i,s){delete this.session.$gutterCustomWidgets[i],this.$showFoldWidget(i,s);var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.querySelector(".ace_custom-widget");b&&f.element.removeChild(b)}},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var i=g.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(i.borderLeftWidth)||0)+(parseInt(i.paddingLeft)||0)+1,this.$padding.right=(parseInt(i.borderRightWidth)||0)+(parseInt(i.paddingRight)||0),this.$padding},u.prototype.getRegion=function(i){var s=this.$padding||this.$computePadding(),f=this.element.getBoundingClientRect();if(i.x<s.left+f.left)return"markers";if(this.$showFoldWidgets&&i.x>f.right-s.right)return"foldWidgets"},u})();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer=void 0,l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,p.implement(l.prototype,h);function c(u){var i=document.createTextNode("");u.appendChild(i);var s=g.createElement("span");u.appendChild(s);var f=g.createElement("span");u.appendChild(f);var b=g.createElement("span");return f.appendChild(b),u}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,v){var g=e("../range").Range,p=e("../lib/dom"),w=(function(){function d(a){this.element=p.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return d.prototype.setPadding=function(a){this.$padding=a},d.prototype.setSession=function(a){this.session=a},d.prototype.setMarkers=function(a){this.markers=a},d.prototype.elt=function(a,l){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=l,c.className=a},d.prototype.update=function(a){if(a){this.config=a,this.i=0;var l;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(l,this,this.session,a);continue}var i=u.range.clipRows(a.firstRow,a.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),u.renderer){var s=this.$getTop(i.start.row,a),f=this.$padding+i.start.column*a.characterWidth;u.renderer(l,i,f,s,a)}else u.type=="fullLine"?this.drawFullLineMarker(l,i,u.clazz,a):u.type=="screenLine"?this.drawScreenLineMarker(l,i,u.clazz,a):i.isMultiLine()?u.type=="text"?this.drawTextMarker(l,i,u.clazz,a):this.drawMultiLineMarker(l,i,u.clazz,a):this.drawSingleLineMarker(l,i,u.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},d.prototype.$getTop=function(a,l){return(a-l.firstRowScreen)*l.lineHeight},d.prototype.drawTextMarker=function(a,l,c,u,i){for(var s=this.session,f=l.start.row,b=l.end.row,x=f,I=0,M=0,A=s.getScreenLastRowColumn(x),C=new g(x,l.start.column,x,M);x<=b;x++)C.start.row=C.end.row=x,C.start.column=x==f?l.start.column:s.getRowWrapIndent(x),C.end.column=A,I=M,M=A,A=x+1<b?s.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(a,C,c+(x==f?" ace_start":"")+" ace_br"+h(x==f||x==f+1&&l.start.column,I<M,M>A,x==b),u,x==b?0:1,i)},d.prototype.drawMultiLineMarker=function(a,l,c,u,i){var s=this.$padding,f=u.lineHeight,b=this.$getTop(l.start.row,u),x=s+l.start.column*u.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var I=l.clone();I.end.row=I.start.row,I.end.column=this.session.getLine(I.start.row).length,this.drawBidiSingleLineMarker(a,I,c+" ace_br1 ace_start",u,null,i)}else this.elt(c+" ace_br1 ace_start","height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+x+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var I=l.clone();I.start.row=I.end.row,I.start.column=0,this.drawBidiSingleLineMarker(a,I,c+" ace_br12",u,null,i)}else{b=this.$getTop(l.end.row,u);var M=l.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+f+"px;width:"+M+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}if(f=(l.end.row-l.start.row-1)*u.lineHeight,!(f<=0)){b=this.$getTop(l.start.row+1,u);var A=(l.start.column?1:0)|(l.end.column?0:8);this.elt(c+(A?" ace_br"+A:""),"height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}},d.prototype.drawSingleLineMarker=function(a,l,c,u,i,s){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(a,l,c,u,i,s);var f=u.lineHeight,b=(l.end.column+(i||0)-l.start.column)*u.characterWidth,x=this.$getTop(l.start.row,u),I=this.$padding+l.start.column*u.characterWidth;this.elt(c,"height:"+f+"px;width:"+b+"px;top:"+x+"px;left:"+I+"px;"+(s||""))},d.prototype.drawBidiSingleLineMarker=function(a,l,c,u,i,s){var f=u.lineHeight,b=this.$getTop(l.start.row,u),x=this.$padding,I=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);I.forEach(function(M){this.elt(c,"height:"+f+"px;width:"+(M.width+(i||0))+"px;top:"+b+"px;left:"+(x+M.left)+"px;"+(s||""))},this)},d.prototype.drawFullLineMarker=function(a,l,c,u,i){var s=this.$getTop(l.start.row,u),f=u.lineHeight;l.start.row!=l.end.row&&(f+=this.$getTop(l.end.row,u)-s),this.elt(c,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d.prototype.drawScreenLineMarker=function(a,l,c,u,i){var s=this.$getTop(l.start.row,u),f=u.lineHeight;this.elt(c,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d})();w.prototype.$padding=0;function h(d,a,l,c){return(d?1:0)|(a?2:0)|(l?4:0)|(c?8:0)}r.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,v){var g=new Set(["text","rparen","lparen"]);r.isTextToken=function(p){return g.has(p)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,d=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,l=e("./text_util").isTextToken,c=(function(){function u(i){this.dom=p,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",i.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return u.prototype.$updateEolChar=function(){var i=this.session.doc,s=i.getNewLineCharacter()==`
|
|
219
|
-
`&&i.getNewLineMode()!="windows",f=s?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=f)return this.EOL_CHAR=f,!0},u.prototype.setPadding=function(i){this.$padding=i,this.element.style.margin="0 "+i+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(i){this.$fontMetrics=i,this.$fontMetrics.on("changeCharacterSize",(function(s){this._signal("changeCharacterSize",s)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(i){this.session=i,i&&this.$computeTabString()},u.prototype.setShowInvisibles=function(i){return this.showInvisibles==i?!1:(this.showInvisibles=i,typeof i=="string"?(this.showSpaces=/tab/i.test(i),this.showTabs=/space/i.test(i),this.showEOL=/eol/i.test(i)):this.showSpaces=this.showTabs=this.showEOL=i,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(i){return this.displayIndentGuides==i?!1:(this.displayIndentGuides=i,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(i){return this.$highlightIndentGuides===i?!1:(this.$highlightIndentGuides=i,i)},u.prototype.$computeTabString=function(){var i=this.session.getTabSize();this.tabSize=i;for(var s=this.$tabStrings=[0],f=1;f<i+1;f++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=w.stringRepeat(this.TAB_CHAR,f),s.push(b)}else s.push(this.dom.createTextNode(w.stringRepeat(" ",f),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",I=this.showSpaces?" ace_invisible ace_invisible_space":"",M=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),A=this.showTabs?" ace_invisible ace_invisible_tab":"",C=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):M,b=this.dom.createElement("span");b.className=x+I,b.textContent=M,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+A,b.textContent=C,this.$tabStrings[" "]=b}},u.prototype.updateLines=function(i,s,f){if(this.config.lastRow!=i.lastRow||this.config.firstRow!=i.firstRow)return this.update(i);this.config=i;for(var b=Math.max(s,i.firstRow),x=Math.min(f,i.lastRow),I=this.element.childNodes,M=0,A=i.firstRow;A<b;A++){var C=this.session.getFoldLine(A);if(C)if(C.containsRow(b)){b=C.start.row;break}else A=C.end.row;M++}for(var O=!1,A=b,C=this.session.getNextFoldLine(A),D=C?C.start.row:1/0;A>D&&(A=C.end.row+1,C=this.session.getNextFoldLine(A,C),D=C?C.start.row:1/0),!(A>x);){var E=I[M++];if(E){this.dom.removeChildren(E),this.$renderLine(E,A,A==D?C:!1),O&&(E.style.top=this.$lines.computeLineTop(A,i,this.session)+"px");var R=i.lineHeight*this.session.getRowLength(A)+"px";E.style.height!=R&&(O=!0,E.style.height=R)}A++}if(O)for(;M<this.$lines.cells.length;){var B=this.$lines.cells[M++];B.element.style.top=this.$lines.computeLineTop(B.row,i,this.session)+"px"}},u.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=i.lastRow,b=s?s.lastRow:-1;if(!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(!s||s.lastRow<i.firstRow)return this.update(i);if(i.lastRow<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(s.lastRow>i.lastRow)for(var x=this.session.getFoldedRowCount(i.lastRow+1,s.lastRow);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLinesFragment(i,i.firstRow,s.firstRow-1)),i.lastRow>s.lastRow&&this.$lines.push(this.$renderLinesFragment(i,s.lastRow+1,i.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(i,s,f){for(var b=[],x=s,I=this.session.getNextFoldLine(x),M=I?I.start.row:1/0;x>M&&(x=I.end.row+1,I=this.session.getNextFoldLine(x,I),M=I?I.start.row:1/0),!(x>f);){var A=this.$lines.createCell(x,i,this.session),C=A.element;this.dom.removeChildren(C),p.setStyle(C.style,"height",this.$lines.computeLineHeight(x,i,this.session)+"px"),p.setStyle(C.style,"top",this.$lines.computeLineTop(x,i,this.session)+"px"),this.$renderLine(C,x,x==M?I:!1),this.$useLineGroups()?C.className="ace_line_group":C.className="ace_line",b.push(A),x++}return b},u.prototype.update=function(i){this.$lines.moveContainer(i),this.config=i;for(var s=i.firstRow,f=i.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(i,s,f))},u.prototype.$renderToken=function(i,s,f,b){for(var x=this,I=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,M=this.dom.createFragment(this.element),A,C=0;A=I.exec(b);){var O=A[1],D=A[2],E=A[3],R=A[4],B=A[5];if(!(!x.showSpaces&&D)){var F=C!=A.index?b.slice(C,A.index):"";if(C=A.index+A[0].length,F&&M.appendChild(this.dom.createTextNode(F,this.element)),O){var N=x.session.getScreenTabSize(s+A.index),$=x.$tabStrings[N].cloneNode(!0);$.charCount=1,M.appendChild($),s+=N-1}else if(D)if(x.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=w.stringRepeat(x.SPACE_CHAR,D.length),M.appendChild(k)}else M.appendChild(this.dom.createTextNode(D,this.element));else if(E){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=w.stringRepeat(x.SPACE_CHAR,E.length),M.appendChild(k)}else if(R){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=x.showSpaces?x.SPACE_CHAR:R,M.appendChild(k)}else if(B){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=B,M.appendChild(k)}}}if(M.appendChild(this.dom.createTextNode(C?b.slice(C):b,this.element)),l(f.type))i.appendChild(M);else{var L="ace_"+f.type.replace(/\./g," ace_"),k=this.dom.createElement("span");f.type=="fold"&&(k.style.width=f.value.length*this.config.characterWidth+"px",k.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),k.className=L,k.appendChild(M),i.appendChild(k)}return s+b.length},u.prototype.renderIndentGuide=function(i,s,f){var b=s.search(this.$indentGuideRe);if(b<=0||b>=f)return s;if(s[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,I=0;I<x;I++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}else if(s[0]==" "){for(var I=0;I<b;I++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}return this.$highlightIndentGuide(),s},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var i=this.session.doc.$lines;if(i){var s=this.session.selection.getCursor(),f=/^\s*/.exec(this.session.doc.getLine(s.row))[0].length,b=Math.floor(f/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:s.row};var x=this.session.$bracketHighlight;if(x){for(var I=this.session.$bracketHighlight.ranges,M=0;M<I.length;M++)if(s.row!==I[M].start.row){this.$highlightIndentGuideMarker.end=I[M].start.row+1,s.row>I[M].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&i[s.row]!==""&&s.column===i[s.row].length){this.$highlightIndentGuideMarker.dir=1;for(var M=s.row+1;M<i.length;M++){var A=i[M],C=/^\s*/.exec(A)[0].length;if(A!==""&&(this.$highlightIndentGuideMarker.end=M,C<=f))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var i=this.element.querySelectorAll(".ace_indent-guide-active"),s=0;s<i.length;s++)i[s].classList.remove("ace_indent-guide-active")},u.prototype.$setIndentGuideActive=function(i,s){var f=this.session.doc.getLine(i.row);if(f!==""){var b=i.element;if(i.element.classList&&i.element.classList.contains("ace_line_group"))if(i.element.childNodes.length>0)b=i.element.childNodes[0];else return;var x=b.childNodes;if(x){var I=x[s-1];I&&I.classList&&I.classList.contains("ace_indent-guide")&&I.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var i=this.$lines.cells;this.$clearActiveIndentGuide();var s=this.$highlightIndentGuideMarker.indentLevel;if(s!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var f=0;f<i.length;f++){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}else for(var f=i.length-1;f>=0;f--){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}}},u.prototype.$createLineElement=function(i){var s=this.dom.createElement("div");return s.className="ace_line",s.style.height=this.config.lineHeight+"px",s},u.prototype.$renderWrappedLine=function(i,s,f){var b=0,x=0,I=f[0],M=0,A=this.$createLineElement();i.appendChild(A);for(var C=0;C<s.length;C++){var O=s[C],D=O.value;if(C==0&&this.displayIndentGuides){if(b=D.length,D=this.renderIndentGuide(A,D,I),!D)continue;b-=D.length}if(b+D.length<I)M=this.$renderToken(A,M,O,D),b+=D.length;else{for(;b+D.length>=I;){M=this.$renderToken(A,M,O,D.substring(0,I-b)),D=D.substring(I-b),b=I,A=this.$createLineElement(),i.appendChild(A);var E=this.dom.createTextNode(w.stringRepeat(" ",f.indent),this.element);E.charCount=0,A.appendChild(E),x++,M=0,I=f[x]||Number.MAX_VALUE}D.length!=0&&(b+=D.length,M=this.$renderToken(A,M,O,D))}}f[f.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(A,M,null,"",!0)},u.prototype.$renderSimpleLine=function(i,s){for(var f=0,b=0;b<s.length;b++){var x=s[b],I=x.value;if(!(b==0&&this.displayIndentGuides&&(I=this.renderIndentGuide(i,I),!I))){if(f+I.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(i,f,x,I);f=this.$renderToken(i,f,x,I)}}},u.prototype.$renderOverflowMessage=function(i,s,f,b,x){f&&this.$renderToken(i,s,f,b.slice(0,this.MAX_LINE_LENGTH-s));var I=this.dom.createElement("span");I.className="ace_inline_button ace_keyword ace_toggle_wrap",I.textContent=x?"<hide>":"<click to see more...>",i.appendChild(I)},u.prototype.$renderLine=function(i,s,f){if(!f&&f!=!1&&(f=this.session.getFoldLine(s)),f)var b=this.$getFoldLineTokens(s,f);else var b=this.session.getTokens(s);var x=i;if(b.length){var I=this.session.getRowSplitData(s);if(I&&I.length){this.$renderWrappedLine(i,b,I);var x=i.lastChild}else{var x=i;this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x));if(this.showEOL&&x){f&&(s=f.end.row);var M=this.dom.createElement("span");M.className="ace_invisible ace_invisible_eol",M.textContent=s==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(M)}},u.prototype.$getFoldLineTokens=function(i,s){var f=this.session,b=[];function x(M,A,C){for(var O=0,D=0;D+M[O].value.length<A;)if(D+=M[O].value.length,O++,O==M.length)return;if(D!=A){var E=M[O].value.substring(A-D);E.length>C-A&&(E=E.substring(0,C-A)),b.push({type:M[O].type,value:E}),D=A+E.length,O+=1}for(;D<C&&O<M.length;){var E=M[O].value;E.length+D>C?b.push({type:M[O].type,value:E.substring(0,C-D)}):b.push(M[O]),D+=E.length,O+=1}}var I=f.getTokens(i);return s.walk(function(M,A,C,O,D){M!=null?b.push({type:"fold",value:M}):(D&&(I=f.getTokens(A)),I.length&&x(I,O,C))},s.end.row,this.session.getLine(s.end.row).length),b},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u})();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,g.implement(c.prototype,d),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,v){var g=e("../lib/dom"),p=(function(){function w(h){this.element=g.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(),g.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var d=this.cursors,a=d.length;a--;)g.setStyle(d[a].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,d=h.length;d--;)h[d].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&g.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,g.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,g.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=g.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,g.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,g.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,g.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&&g.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),g.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var d=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),d()},this.blinkInterval),d()}},w.prototype.getPixelPosition=function(h,d){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),l=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),c=(a.row-(d?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:c}},w.prototype.isCursorInView=function(h,d){return h.top>=0&&h.top<d.maxHeight},w.prototype.update=function(h){this.config=h;var d=this.session.$selectionMarkers,a=0,l=0;(d===void 0||d.length===0)&&(d=[{cursor:null}]);for(var a=0,c=d.length;a<c;a++){var u=this.getPixelPosition(d[a].cursor,!0);if(!((u.top>h.height+h.offset||u.top<0)&&a>1)){var i=this.cursors[l++]||this.addCursor(),s=i.style;this.drawCursor?this.drawCursor(i,u,h,d[a],this.session):this.isCursorInView(u,h)?(g.setStyle(s,"display","block"),g.translate(i,u.left,u.top),g.setStyle(s,"width",Math.round(h.characterWidth)+"px"),g.setStyle(s,"height",h.lineHeight+"px")):g.setStyle(s,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=u,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?g.addCssClass(this.element,"ace_overwrite-cursors"):g.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w})();p.prototype.$padding=0,p.prototype.drawCursor=null,r.Cursor=p}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var g=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(b[I]=x[I])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),p=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter,a=32768,l=(function(){function i(s,f){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+f,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return i.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},i})();p.implement(l.prototype,d);var c=(function(i){g(s,i);function s(f,b){var x=i.call(this,f,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=w.scrollbarWidth(f.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return s.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var f=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-f)/(this.coeff-f)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},s.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},s.prototype.setHeight=function(f){this.element.style.height=f+"px"},s.prototype.setScrollHeight=function(f){this.scrollHeight=f,f>a?(this.coeff=a/f,f=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=f+"px"},s.prototype.setScrollTop=function(f){this.scrollTop!=f&&(this.skipEvent=!0,this.scrollTop=f,this.element.scrollTop=f*this.coeff)},s})(l);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=(function(i){g(s,i);function s(f,b){var x=i.call(this,f,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return s.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},s.prototype.getHeight=function(){return this.isVisible?this.height:0},s.prototype.setWidth=function(f){this.element.style.width=f+"px"},s.prototype.setInnerWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollLeft=function(f){this.scrollLeft!=f&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=f)},s})(l);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=u,r.VScrollBar=c,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var g=this&&this.__extends||(function(){var u=function(i,s){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(f[x]=b[x])},u(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");u(i,s);function f(){this.constructor=i}i.prototype=s===null?Object.create(s):(f.prototype=s.prototype,new f)}})(),p=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
220
|
-
position: absolute;
|
|
221
|
-
background: rgba(128, 128, 128, 0.6);
|
|
222
|
-
-moz-box-sizing: border-box;
|
|
223
|
-
box-sizing: border-box;
|
|
224
|
-
border: 1px solid #bbb;
|
|
225
|
-
border-radius: 2px;
|
|
226
|
-
z-index: 8;
|
|
227
|
-
}
|
|
228
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
229
|
-
position: absolute;
|
|
230
|
-
z-index: 6;
|
|
231
|
-
background: none;
|
|
232
|
-
overflow: hidden!important;
|
|
233
|
-
}
|
|
234
|
-
.ace_editor>.ace_sb-v {
|
|
235
|
-
z-index: 6;
|
|
236
|
-
right: 0;
|
|
237
|
-
top: 0;
|
|
238
|
-
width: 12px;
|
|
239
|
-
}
|
|
240
|
-
.ace_editor>.ace_sb-v div {
|
|
241
|
-
z-index: 8;
|
|
242
|
-
right: 0;
|
|
243
|
-
width: 100%;
|
|
244
|
-
}
|
|
245
|
-
.ace_editor>.ace_sb-h {
|
|
246
|
-
bottom: 0;
|
|
247
|
-
left: 0;
|
|
248
|
-
height: 12px;
|
|
249
|
-
}
|
|
250
|
-
.ace_editor>.ace_sb-h div {
|
|
251
|
-
bottom: 0;
|
|
252
|
-
height: 100%;
|
|
253
|
-
}
|
|
254
|
-
.ace_editor>.ace_sb_grabbed {
|
|
255
|
-
z-index: 8;
|
|
256
|
-
background: #000;
|
|
257
|
-
}`,"ace_scrollbar.css",!1);var a=(function(){function u(i,s){this.element=w.createElement("div"),this.element.className="ace_sb"+s,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1},u})();p.implement(a.prototype,d);var l=(function(u){g(i,u);function i(s,f){var b=u.call(this,s,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=s,b.width=b.VScrollWidth,b.renderer=f,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientY,I=function(R){x=R.clientY},M=function(){clearInterval(D)},A=f.clientY,C=this.thumbTop,O=function(){if(x!==void 0){var R=b.scrollTopFromThumbTop(C+x-A);R!==b.scrollTop&&b._emit("scroll",{data:R})}};h.capture(this.inner,I,M);var D=setInterval(O,20);return h.preventDefault(f)}var E=f.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.height},i.prototype.scrollTopFromThumbTop=function(s){var f=s*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return f=f>>0,f<0?f=0:f>this.pageHeight-this.viewHeight&&(f=this.pageHeight-this.viewHeight),f},i.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},i.prototype.setHeight=function(s){this.height=Math.max(0,s),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},i.prototype.setScrollHeight=function(s,f){this.pageHeight===s&&!f||(this.pageHeight=s,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},i.prototype.setScrollTop=function(s){this.scrollTop=s,s<0&&(s=0),this.thumbTop=s*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},i})(a);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=(function(u){g(i,u);function i(s,f){var b=u.call(this,s,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=f,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientX,I=function(R){x=R.clientX},M=function(){clearInterval(D)},A=f.clientX,C=this.thumbLeft,O=function(){if(x!==void 0){var R=b.scrollLeftFromThumbLeft(C+x-A);R!==b.scrollLeft&&b._emit("scroll",{data:R})}};h.capture(this.inner,I,M);var D=setInterval(O,20);return h.preventDefault(f)}var E=f.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.isVisible?this.height:0},i.prototype.scrollLeftFromThumbLeft=function(s){var f=s*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return f=f>>0,f<0?f=0:f>this.pageWidth-this.viewWidth&&(f=this.pageWidth-this.viewWidth),f},i.prototype.setWidth=function(s){this.width=Math.max(0,s),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},i.prototype.setScrollWidth=function(s,f){this.pageWidth===s&&!f||(this.pageWidth=s,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},i.prototype.setScrollLeft=function(s){this.scrollLeft=s,s<0&&(s=0),this.thumbLeft=s*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},i})(a);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=c,r.VScrollBar=l,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,v){var g=e("./lib/event"),p=(function(){function w(h,d){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=d||window;var a=this;this._flush=function(l){a.pending=!1;var c=a.changes;if(c&&(g.blockIdle(100),a.changes=0,a.onRender(c)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return w.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(g.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var d=this.changes;return this.changes=0,d},w})();r.RenderLoop=p}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),d=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=512,c=typeof ResizeObserver=="function",u=200,i=(function(){function s(f){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),f.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return s.prototype.$setMeasureNodeStyles=function(f,b){f.width=f.height="auto",f.left=f.top="0px",f.visibility="hidden",f.position="absolute",f.whiteSpace="pre",d.isIE<8?f["font-family"]="inherit":f.font="inherit",f.overflow=b?"hidden":"visible"},s.prototype.checkForSizeChanges=function(f){if(f===void 0&&(f=this.$measureSizes()),f&&(this.$characterSize.width!==f.width||this.$characterSize.height!==f.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=f,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===f.width&&b.height===f.height,this._emit("changeCharacterSize",{data:f})}},s.prototype.$addObserver=function(){var f=this;this.$observer=new window.ResizeObserver(function(b){f.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},s.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var f=this;return this.$pollSizeChangesTimer=h.onIdle(function b(){f.checkForSizeChanges(),h.onIdle(b,500)},500)},s.prototype.setPolling=function(f){f?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},s.prototype.$measureSizes=function(f){var b={height:(f||this.$measureNode).clientHeight,width:(f||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},s.prototype.$measureCharWidth=function(f){this.$main.textContent=w.stringRepeat(f,l);var b=this.$main.getBoundingClientRect();return b.width/l},s.prototype.getCharacterWidth=function(f){var b=this.charSizes[f];return b===void 0&&(b=this.charSizes[f]=this.$measureCharWidth(f)/this.$characterSize.width),b},s.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},s.prototype.$getZoom=function(f){return!f||!f.parentElement?1:(Number(window.getComputedStyle(f).zoom)||1)*this.$getZoom(f.parentElement)},s.prototype.$initTransformMeasureNodes=function(){var f=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=p.buildDom([f(0,0),f(u,0),f(0,u),f(u,u)],this.el)},s.prototype.transformCoordinates=function(f,b){if(f){var x=this.$getZoom(this.el);f=C(1/x,f)}function I(Z,Q,le){var ne=Z[1]*Q[0]-Z[0]*Q[1];return[(-Q[1]*le[0]+Q[0]*le[1])/ne,(+Z[1]*le[0]-Z[0]*le[1])/ne]}function M(Z,Q){return[Z[0]-Q[0],Z[1]-Q[1]]}function A(Z,Q){return[Z[0]+Q[0],Z[1]+Q[1]]}function C(Z,Q){return[Z*Q[0],Z*Q[1]]}this.els||this.$initTransformMeasureNodes();function O(Z){var Q=Z.getBoundingClientRect();return[Q.left,Q.top]}var D=O(this.els[0]),E=O(this.els[1]),R=O(this.els[2]),B=O(this.els[3]),F=I(M(B,E),M(B,R),M(A(E,R),A(B,D))),N=C(1+F[0],M(E,D)),$=C(1+F[1],M(R,D));if(b){var k=b,L=F[0]*k[0]/u+F[1]*k[1]/u+1,W=A(C(k[0],N),C(k[1],$));return A(C(1/L/u,W),D)}var U=M(f,D),q=I(M(N,C(F[0],U)),M($,C(F[1],U)),U);return C(u,q)},s})();i.prototype.$characterSize={width:0,height:0},g.implement(i.prototype,a),r.FontMetrics=i}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
258
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
|
259
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
|
260
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
261
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
262
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
263
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
264
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
265
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
266
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
267
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
268
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
269
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
270
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
271
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
272
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
.ace_editor {
|
|
276
|
-
position: relative;
|
|
277
|
-
overflow: hidden;
|
|
278
|
-
padding: 0;
|
|
279
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
280
|
-
direction: ltr;
|
|
281
|
-
text-align: left;
|
|
282
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
283
|
-
forced-color-adjust: none;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.ace_scroller {
|
|
287
|
-
position: absolute;
|
|
288
|
-
overflow: hidden;
|
|
289
|
-
top: 0;
|
|
290
|
-
bottom: 0;
|
|
291
|
-
background-color: inherit;
|
|
292
|
-
-ms-user-select: none;
|
|
293
|
-
-moz-user-select: none;
|
|
294
|
-
-webkit-user-select: none;
|
|
295
|
-
user-select: none;
|
|
296
|
-
cursor: text;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.ace_content {
|
|
300
|
-
position: absolute;
|
|
301
|
-
box-sizing: border-box;
|
|
302
|
-
min-width: 100%;
|
|
303
|
-
contain: style size layout;
|
|
304
|
-
font-variant-ligatures: no-common-ligatures;
|
|
305
|
-
}
|
|
306
|
-
.ace_invisible {
|
|
307
|
-
font-variant-ligatures: none;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.ace_keyboard-focus:focus {
|
|
311
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
312
|
-
outline: none;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.ace_dragging .ace_scroller:before{
|
|
316
|
-
position: absolute;
|
|
317
|
-
top: 0;
|
|
318
|
-
left: 0;
|
|
319
|
-
right: 0;
|
|
320
|
-
bottom: 0;
|
|
321
|
-
content: '';
|
|
322
|
-
background: rgba(250, 250, 250, 0.01);
|
|
323
|
-
z-index: 1000;
|
|
324
|
-
}
|
|
325
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
|
326
|
-
background: rgba(0, 0, 0, 0.01);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.ace_gutter {
|
|
330
|
-
position: absolute;
|
|
331
|
-
overflow : hidden;
|
|
332
|
-
width: auto;
|
|
333
|
-
top: 0;
|
|
334
|
-
bottom: 0;
|
|
335
|
-
left: 0;
|
|
336
|
-
cursor: default;
|
|
337
|
-
z-index: 4;
|
|
338
|
-
-ms-user-select: none;
|
|
339
|
-
-moz-user-select: none;
|
|
340
|
-
-webkit-user-select: none;
|
|
341
|
-
user-select: none;
|
|
342
|
-
contain: style size layout;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.ace_gutter-active-line {
|
|
346
|
-
position: absolute;
|
|
347
|
-
left: 0;
|
|
348
|
-
right: 0;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.ace_scroller.ace_scroll-left:after {
|
|
352
|
-
content: "";
|
|
353
|
-
position: absolute;
|
|
354
|
-
top: 0;
|
|
355
|
-
right: 0;
|
|
356
|
-
bottom: 0;
|
|
357
|
-
left: 0;
|
|
358
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
359
|
-
pointer-events: none;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
363
|
-
position: absolute;
|
|
364
|
-
top: 0;
|
|
365
|
-
left: 0;
|
|
366
|
-
right: 0;
|
|
367
|
-
padding-left: 19px;
|
|
368
|
-
padding-right: 6px;
|
|
369
|
-
background-repeat: no-repeat;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
373
|
-
margin-left: -14px;
|
|
374
|
-
float: left;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
|
378
|
-
margin-left: -19px;
|
|
379
|
-
float: left;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.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 {
|
|
383
|
-
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==");
|
|
384
|
-
background-repeat: no-repeat;
|
|
385
|
-
background-position: 2px center;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
389
|
-
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==");
|
|
390
|
-
background-repeat: no-repeat;
|
|
391
|
-
background-position: 2px center;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
395
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
396
|
-
background-repeat: no-repeat;
|
|
397
|
-
background-position: 2px center;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.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 {
|
|
401
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.ace_icon_svg.ace_error {
|
|
405
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
406
|
-
background-color: crimson;
|
|
407
|
-
}
|
|
408
|
-
.ace_icon_svg.ace_security {
|
|
409
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
410
|
-
background-color: crimson;
|
|
411
|
-
}
|
|
412
|
-
.ace_icon_svg.ace_warning {
|
|
413
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
414
|
-
background-color: darkorange;
|
|
415
|
-
}
|
|
416
|
-
.ace_icon_svg.ace_info {
|
|
417
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
418
|
-
background-color: royalblue;
|
|
419
|
-
}
|
|
420
|
-
.ace_icon_svg.ace_hint {
|
|
421
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
422
|
-
background-color: silver;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.ace_icon_svg.ace_error_fold {
|
|
426
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
427
|
-
background-color: crimson;
|
|
428
|
-
}
|
|
429
|
-
.ace_icon_svg.ace_security_fold {
|
|
430
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
431
|
-
background-color: crimson;
|
|
432
|
-
}
|
|
433
|
-
.ace_icon_svg.ace_warning_fold {
|
|
434
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
435
|
-
background-color: darkorange;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.ace_scrollbar {
|
|
439
|
-
contain: strict;
|
|
440
|
-
position: absolute;
|
|
441
|
-
right: 0;
|
|
442
|
-
bottom: 0;
|
|
443
|
-
z-index: 6;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.ace_scrollbar-inner {
|
|
447
|
-
position: absolute;
|
|
448
|
-
cursor: text;
|
|
449
|
-
left: 0;
|
|
450
|
-
top: 0;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.ace_scrollbar-v{
|
|
454
|
-
overflow-x: hidden;
|
|
455
|
-
overflow-y: scroll;
|
|
456
|
-
top: 0;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.ace_scrollbar-h {
|
|
460
|
-
overflow-x: scroll;
|
|
461
|
-
overflow-y: hidden;
|
|
462
|
-
left: 0;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.ace_print-margin {
|
|
466
|
-
position: absolute;
|
|
467
|
-
height: 100%;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.ace_text-input {
|
|
471
|
-
position: absolute;
|
|
472
|
-
z-index: 0;
|
|
473
|
-
width: 0.5em;
|
|
474
|
-
height: 1em;
|
|
475
|
-
opacity: 0;
|
|
476
|
-
background: transparent;
|
|
477
|
-
-moz-appearance: none;
|
|
478
|
-
appearance: none;
|
|
479
|
-
border: none;
|
|
480
|
-
resize: none;
|
|
481
|
-
outline: none;
|
|
482
|
-
overflow: hidden;
|
|
483
|
-
font: inherit;
|
|
484
|
-
padding: 0 1px;
|
|
485
|
-
margin: 0 -1px;
|
|
486
|
-
contain: strict;
|
|
487
|
-
-ms-user-select: text;
|
|
488
|
-
-moz-user-select: text;
|
|
489
|
-
-webkit-user-select: text;
|
|
490
|
-
user-select: text;
|
|
491
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
|
492
|
-
white-space: pre!important;
|
|
493
|
-
}
|
|
494
|
-
.ace_text-input.ace_composition {
|
|
495
|
-
background: transparent;
|
|
496
|
-
color: inherit;
|
|
497
|
-
z-index: 1000;
|
|
498
|
-
opacity: 1;
|
|
499
|
-
}
|
|
500
|
-
.ace_composition_placeholder { color: transparent }
|
|
501
|
-
.ace_composition_marker {
|
|
502
|
-
border-bottom: 1px solid;
|
|
503
|
-
position: absolute;
|
|
504
|
-
border-radius: 0;
|
|
505
|
-
margin-top: 1px;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
[ace_nocontext=true] {
|
|
509
|
-
transform: none!important;
|
|
510
|
-
filter: none!important;
|
|
511
|
-
clip-path: none!important;
|
|
512
|
-
mask : none!important;
|
|
513
|
-
contain: none!important;
|
|
514
|
-
perspective: none!important;
|
|
515
|
-
mix-blend-mode: initial!important;
|
|
516
|
-
z-index: auto;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
.ace_layer {
|
|
520
|
-
z-index: 1;
|
|
521
|
-
position: absolute;
|
|
522
|
-
overflow: hidden;
|
|
523
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
524
|
-
word-wrap: normal;
|
|
525
|
-
white-space: pre;
|
|
526
|
-
height: 100%;
|
|
527
|
-
width: 100%;
|
|
528
|
-
box-sizing: border-box;
|
|
529
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
530
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
|
531
|
-
pointer-events: none;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.ace_gutter-layer {
|
|
535
|
-
position: relative;
|
|
536
|
-
width: auto;
|
|
537
|
-
text-align: right;
|
|
538
|
-
pointer-events: auto;
|
|
539
|
-
height: 1000000px;
|
|
540
|
-
contain: style size layout;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.ace_text-layer {
|
|
544
|
-
font: inherit !important;
|
|
545
|
-
position: absolute;
|
|
546
|
-
height: 1000000px;
|
|
547
|
-
width: 1000000px;
|
|
548
|
-
contain: style size layout;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
552
|
-
contain: style size layout;
|
|
553
|
-
position: absolute;
|
|
554
|
-
top: 0;
|
|
555
|
-
left: 0;
|
|
556
|
-
right: 0;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.ace_hidpi .ace_text-layer,
|
|
560
|
-
.ace_hidpi .ace_gutter-layer,
|
|
561
|
-
.ace_hidpi .ace_content,
|
|
562
|
-
.ace_hidpi .ace_gutter {
|
|
563
|
-
contain: strict;
|
|
564
|
-
}
|
|
565
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
|
566
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
567
|
-
contain: strict;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.ace_cjk {
|
|
571
|
-
display: inline-block;
|
|
572
|
-
text-align: center;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.ace_cursor-layer {
|
|
576
|
-
z-index: 4;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.ace_cursor {
|
|
580
|
-
z-index: 4;
|
|
581
|
-
position: absolute;
|
|
582
|
-
box-sizing: border-box;
|
|
583
|
-
border-left: 2px solid;
|
|
584
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
585
|
-
transform: translatez(0);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.ace_multiselect .ace_cursor {
|
|
589
|
-
border-left-width: 1px;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.ace_slim-cursors .ace_cursor {
|
|
593
|
-
border-left-width: 1px;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.ace_overwrite-cursors .ace_cursor {
|
|
597
|
-
border-left-width: 0;
|
|
598
|
-
border-bottom: 1px solid;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.ace_hidden-cursors .ace_cursor {
|
|
602
|
-
opacity: 0.2;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
606
|
-
opacity: 0;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.ace_smooth-blinking .ace_cursor {
|
|
610
|
-
transition: opacity 0.18s;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.ace_animate-blinking .ace_cursor {
|
|
614
|
-
animation-duration: 1000ms;
|
|
615
|
-
animation-timing-function: step-end;
|
|
616
|
-
animation-name: blink-ace-animate;
|
|
617
|
-
animation-iteration-count: infinite;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
621
|
-
animation-duration: 1000ms;
|
|
622
|
-
animation-timing-function: ease-in-out;
|
|
623
|
-
animation-name: blink-ace-animate-smooth;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
@keyframes blink-ace-animate {
|
|
627
|
-
from, to { opacity: 1; }
|
|
628
|
-
60% { opacity: 0; }
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
@keyframes blink-ace-animate-smooth {
|
|
632
|
-
from, to { opacity: 1; }
|
|
633
|
-
45% { opacity: 1; }
|
|
634
|
-
60% { opacity: 0; }
|
|
635
|
-
85% { opacity: 0; }
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
639
|
-
position: absolute;
|
|
640
|
-
z-index: 3;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.ace_marker-layer .ace_selection {
|
|
644
|
-
position: absolute;
|
|
645
|
-
z-index: 5;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.ace_marker-layer .ace_bracket {
|
|
649
|
-
position: absolute;
|
|
650
|
-
z-index: 6;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
.ace_marker-layer .ace_error_bracket {
|
|
654
|
-
position: absolute;
|
|
655
|
-
border-bottom: 1px solid #DE5555;
|
|
656
|
-
border-radius: 0;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
.ace_marker-layer .ace_active-line {
|
|
660
|
-
position: absolute;
|
|
661
|
-
z-index: 2;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
.ace_marker-layer .ace_selected-word {
|
|
665
|
-
position: absolute;
|
|
666
|
-
z-index: 4;
|
|
667
|
-
box-sizing: border-box;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.ace_line .ace_fold {
|
|
671
|
-
box-sizing: border-box;
|
|
672
|
-
|
|
673
|
-
display: inline-block;
|
|
674
|
-
height: 11px;
|
|
675
|
-
margin-top: -2px;
|
|
676
|
-
vertical-align: middle;
|
|
677
|
-
|
|
678
|
-
background-image:
|
|
679
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
680
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
681
|
-
background-repeat: no-repeat, repeat-x;
|
|
682
|
-
background-position: center center, top left;
|
|
683
|
-
color: transparent;
|
|
684
|
-
|
|
685
|
-
border: 1px solid black;
|
|
686
|
-
border-radius: 2px;
|
|
687
|
-
|
|
688
|
-
cursor: pointer;
|
|
689
|
-
pointer-events: auto;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.ace_dark .ace_fold {
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
.ace_fold:hover{
|
|
696
|
-
background-image:
|
|
697
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
698
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
.ace_tooltip {
|
|
702
|
-
background-color: #f5f5f5;
|
|
703
|
-
border: 1px solid gray;
|
|
704
|
-
border-radius: 1px;
|
|
705
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
706
|
-
color: black;
|
|
707
|
-
padding: 3px 4px;
|
|
708
|
-
position: fixed;
|
|
709
|
-
z-index: 999999;
|
|
710
|
-
box-sizing: border-box;
|
|
711
|
-
cursor: default;
|
|
712
|
-
white-space: pre-wrap;
|
|
713
|
-
word-wrap: break-word;
|
|
714
|
-
line-height: normal;
|
|
715
|
-
font-style: normal;
|
|
716
|
-
font-weight: normal;
|
|
717
|
-
letter-spacing: normal;
|
|
718
|
-
pointer-events: none;
|
|
719
|
-
overflow: auto;
|
|
720
|
-
max-width: min(33em, 66vw);
|
|
721
|
-
overscroll-behavior: contain;
|
|
722
|
-
}
|
|
723
|
-
.ace_tooltip pre {
|
|
724
|
-
white-space: pre-wrap;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
.ace_tooltip.ace_dark {
|
|
728
|
-
background-color: #636363;
|
|
729
|
-
color: #fff;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
.ace_tooltip:focus {
|
|
733
|
-
outline: 1px solid #5E9ED6;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.ace_icon {
|
|
737
|
-
display: inline-block;
|
|
738
|
-
width: 18px;
|
|
739
|
-
vertical-align: top;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.ace_icon_svg {
|
|
743
|
-
display: inline-block;
|
|
744
|
-
width: 12px;
|
|
745
|
-
vertical-align: top;
|
|
746
|
-
-webkit-mask-repeat: no-repeat;
|
|
747
|
-
-webkit-mask-size: 12px;
|
|
748
|
-
-webkit-mask-position: center;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
752
|
-
padding-right: 13px;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.ace_fold-widget, .ace_custom-widget {
|
|
756
|
-
box-sizing: border-box;
|
|
757
|
-
|
|
758
|
-
margin: 0 -12px 0 1px;
|
|
759
|
-
display: none;
|
|
760
|
-
width: 11px;
|
|
761
|
-
vertical-align: top;
|
|
762
|
-
|
|
763
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
764
|
-
background-repeat: no-repeat;
|
|
765
|
-
background-position: center;
|
|
766
|
-
|
|
767
|
-
border-radius: 3px;
|
|
768
|
-
|
|
769
|
-
border: 1px solid transparent;
|
|
770
|
-
cursor: pointer;
|
|
771
|
-
pointer-events: auto;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
.ace_custom-widget {
|
|
775
|
-
background: none;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.ace_folding-enabled .ace_fold-widget {
|
|
779
|
-
display: inline-block;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.ace_fold-widget.ace_end {
|
|
783
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.ace_fold-widget.ace_closed {
|
|
787
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
.ace_fold-widget:hover {
|
|
791
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
792
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
793
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.ace_fold-widget:active {
|
|
797
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
798
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
799
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* Dark version for fold widgets
|
|
803
|
-
*/
|
|
804
|
-
.ace_dark .ace_fold-widget {
|
|
805
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
806
|
-
}
|
|
807
|
-
.ace_dark .ace_fold-widget.ace_end {
|
|
808
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
809
|
-
}
|
|
810
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
|
811
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
812
|
-
}
|
|
813
|
-
.ace_dark .ace_fold-widget:hover {
|
|
814
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
815
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
816
|
-
}
|
|
817
|
-
.ace_dark .ace_fold-widget:active {
|
|
818
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
.ace_inline_button {
|
|
822
|
-
border: 1px solid lightgray;
|
|
823
|
-
display: inline-block;
|
|
824
|
-
margin: -1px 8px;
|
|
825
|
-
padding: 0 5px;
|
|
826
|
-
pointer-events: auto;
|
|
827
|
-
cursor: pointer;
|
|
828
|
-
}
|
|
829
|
-
.ace_inline_button:hover {
|
|
830
|
-
border-color: gray;
|
|
831
|
-
background: rgba(200,200,200,0.2);
|
|
832
|
-
display: inline-block;
|
|
833
|
-
pointer-events: auto;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
.ace_fold-widget.ace_invalid {
|
|
837
|
-
background-color: #FFB4B4;
|
|
838
|
-
border-color: #DE5555;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
|
842
|
-
transition: opacity 0.4s ease 0.05s;
|
|
843
|
-
opacity: 0;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
847
|
-
transition: opacity 0.05s ease 0.05s;
|
|
848
|
-
opacity:1;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.ace_underline {
|
|
852
|
-
text-decoration: underline;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.ace_bold {
|
|
856
|
-
font-weight: bold;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
.ace_nobold .ace_bold {
|
|
860
|
-
font-weight: normal;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
.ace_italic {
|
|
864
|
-
font-style: italic;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
.ace_error-marker {
|
|
869
|
-
background-color: rgba(255, 0, 0,0.2);
|
|
870
|
-
position: absolute;
|
|
871
|
-
z-index: 9;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
.ace_highlight-marker {
|
|
875
|
-
background-color: rgba(255, 255, 0,0.2);
|
|
876
|
-
position: absolute;
|
|
877
|
-
z-index: 8;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
.ace_mobile-menu {
|
|
881
|
-
position: absolute;
|
|
882
|
-
line-height: 1.5;
|
|
883
|
-
border-radius: 4px;
|
|
884
|
-
-ms-user-select: none;
|
|
885
|
-
-moz-user-select: none;
|
|
886
|
-
-webkit-user-select: none;
|
|
887
|
-
user-select: none;
|
|
888
|
-
background: white;
|
|
889
|
-
box-shadow: 1px 3px 2px grey;
|
|
890
|
-
border: 1px solid #dcdcdc;
|
|
891
|
-
color: black;
|
|
892
|
-
}
|
|
893
|
-
.ace_dark > .ace_mobile-menu {
|
|
894
|
-
background: #333;
|
|
895
|
-
color: #ccc;
|
|
896
|
-
box-shadow: 1px 3px 2px grey;
|
|
897
|
-
border: 1px solid #444;
|
|
898
|
-
|
|
899
|
-
}
|
|
900
|
-
.ace_mobile-button {
|
|
901
|
-
padding: 2px;
|
|
902
|
-
cursor: pointer;
|
|
903
|
-
overflow: hidden;
|
|
904
|
-
}
|
|
905
|
-
.ace_mobile-button:hover {
|
|
906
|
-
background-color: #eee;
|
|
907
|
-
opacity:1;
|
|
908
|
-
}
|
|
909
|
-
.ace_mobile-button:active {
|
|
910
|
-
background-color: #ddd;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
.ace_placeholder {
|
|
914
|
-
position: relative;
|
|
915
|
-
font-family: arial;
|
|
916
|
-
transform: scale(0.9);
|
|
917
|
-
transform-origin: left;
|
|
918
|
-
white-space: pre;
|
|
919
|
-
opacity: 0.7;
|
|
920
|
-
margin: 0 10px;
|
|
921
|
-
z-index: 1;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
.ace_ghost_text {
|
|
925
|
-
opacity: 0.5;
|
|
926
|
-
font-style: italic;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.ace_ghost_text_container > div {
|
|
930
|
-
white-space: pre;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
.ghost_text_line_wrapped::after {
|
|
934
|
-
content: "↩";
|
|
935
|
-
position: absolute;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
.ace_lineWidgetContainer.ace_ghost_text {
|
|
939
|
-
margin: 0px 4px
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
.ace_screenreader-only {
|
|
943
|
-
position:absolute;
|
|
944
|
-
left:-10000px;
|
|
945
|
-
top:auto;
|
|
946
|
-
width:1px;
|
|
947
|
-
height:1px;
|
|
948
|
-
overflow:hidden;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
.ace_hidden_token {
|
|
952
|
-
display: none;
|
|
953
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var g=e("../lib/dom"),p=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=(function(){function d(a,l){this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(a)}return d.prototype.$createCanvas=function(){this.canvas=g.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},d.prototype.setScrollBarV=function(a){this.$createCanvas(),this.scrollbarV=a,a.element.appendChild(this.canvas),this.setDimensions()},d.prototype.$updateDecorators=function(a){if(typeof this.canvas.getContext!="function")return;var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(a);var c=this.canvas.getContext("2d");function u(N,$){return N.priority<$.priority?-1:N.priority>$.priority?1:0}var i=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),i){var s={info:1,warning:2,error:3};i.forEach(function(N){N.priority=s[N.type]||null}),i=i.sort(u);for(var f=0;f<i.length;f++){var b=i[f].row,x=this.getVerticalOffsetForRow(b),I=x+this.lineHeight,M=Math.round(this.heightRatio*x),A=Math.round(this.heightRatio*I),C=Math.round((M+A)/2),O=A-C;O<this.halfMinDecorationHeight&&(O=this.halfMinDecorationHeight),C-O<0&&(C=O),C+O>this.canvasHeight&&(C=this.canvasHeight-O);var D=C-O,E=C+O,R=E-D;c.fillStyle=l[i[f].type]||null,c.fillRect(0,D,Math.round(this.oneZoneWidth-1),R)}}var B=this.renderer.session.selection.getCursor();if(B){var F=Math.round(this.getVerticalOffsetForRow(B.row)*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,F,this.canvasWidth,2)}},d.prototype.getVerticalOffsetForRow=function(a){a=a|0;var l=this.renderer.session.documentToScreenRow(a,0)*this.lineHeight;return l},d.prototype.setDimensions=function(a){a=a||this.renderer.layerConfig,this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},d.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},d.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},d})();p.implement(h.prototype,w),r.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,r,v){var g=e("./lib/oop"),p=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),d=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,i=e("./scrollbar").VScrollBar,s=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,b=e("./renderloop").RenderLoop,x=e("./layer/font_metrics").FontMetrics,I=e("./lib/event_emitter").EventEmitter,M=e("./css/editor-css"),A=e("./layer/decorators").Decorator,C=e("./lib/useragent"),O=e("./layer/text_util").isTextToken;p.importCssString(M,"ace_editor.css",!1);var D=(function(){function E(R,B){var F=this;this.container=R||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(B),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=p.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=p.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=p.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new d(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var N=this.$textLayer=new l(this.content);this.canvas=N.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new i(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function($){F.$scrollAnimation||F.session.setScrollTop($.data-F.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){F.$scrollAnimation||F.session.setScrollLeft($.data-F.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($){F.updateCharacterSize(),F.onResize(!0,F.gutterWidth,F.$size.width,F.$size.height),F._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!C.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return E.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),p.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},E.prototype.setSession=function(R){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=R,R&&this.scrollMargin.top&&R.getScrollTop()<=0&&R.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(R),this.$markerBack.setSession(R),this.$markerFront.setSession(R),this.$gutterLayer.setSession(R),this.$textLayer.setSession(R),R&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},E.prototype.updateLines=function(R,B,F){if(B===void 0&&(B=1/0),this.$changedLines?(this.$changedLines.firstRow>R&&(this.$changedLines.firstRow=R),this.$changedLines.lastRow<B&&(this.$changedLines.lastRow=B)):this.$changedLines={firstRow:R,lastRow:B},this.$changedLines.lastRow<this.layerConfig.firstRow)if(F)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},E.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},E.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},E.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},E.prototype.updateFull=function(R){R?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},E.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},E.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},E.prototype.onResize=function(R,B,F,N){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=R?1:0;var $=this.container;N||(N=$.clientHeight||$.scrollHeight),!N&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",N=$.clientHeight||$.scrollHeight),F||(F=$.clientWidth||$.scrollWidth);var k=this.$updateCachedSize(R,B,F,N);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!F&&!N)return this.resizing=0;R&&(this.$gutterLayer.$padding=null),R?this.$renderChanges(k|this.$changes,!0):this.$loop.schedule(k|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},E.prototype.$updateCachedSize=function(R,B,F,N){N-=this.$extraHeight||0;var $=0,k=this.$size,L={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(N&&(R||k.height!=N)&&(k.height=N,$|=this.CHANGE_SIZE,k.scrollerHeight=k.height,this.$horizScroll&&(k.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(k.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),F&&(R||k.width!=F)){$|=this.CHANGE_SIZE,k.width=F,B==null&&(B=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=B,p.setStyle(this.scrollBarH.element.style,"left",B+"px"),p.setStyle(this.scroller.style,"left",B+this.margin.left+"px"),k.scrollerWidth=Math.max(0,F-B-this.scrollBarV.getWidth()-this.margin.h),p.setStyle(this.$gutter.style,"left",this.margin.left+"px");var W=this.scrollBarV.getWidth()+"px";p.setStyle(this.scrollBarH.element.style,"right",W),p.setStyle(this.scroller.style,"right",W),p.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||R)&&($|=this.CHANGE_FULL)}return k.$dirty=!F||!N,$&&this._signal("resize",L),$},E.prototype.onGutterResize=function(R){var B=this.$showGutter?R:0;B!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,B,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()},E.prototype.adjustWrapLimit=function(){var R=this.$size.scrollerWidth-this.$padding*2,B=Math.floor(R/this.characterWidth);return this.session.adjustWrapLimit(B,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(R){this.setOption("animatedScroll",R)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(R){this.setOption("showInvisibles",R),this.session.$bidiHandler.setShowInvisibles(R)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(R){this.setOption("displayIndentGuides",R)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(R){this.setOption("highlightIndentGuides",R)},E.prototype.setShowPrintMargin=function(R){this.setOption("showPrintMargin",R)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(R){this.setOption("printMarginColumn",R)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(R){return this.setOption("showGutter",R)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(R){this.setOption("fadeFoldWidgets",R)},E.prototype.setHighlightGutterLine=function(R){this.setOption("highlightGutterLine",R)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var R=p.createElement("div");R.className="ace_layer ace_print-margin-layer",this.$printMarginEl=p.createElement("div"),this.$printMarginEl.className="ace_print-margin",R.appendChild(this.$printMarginEl),this.content.insertBefore(R,this.content.firstChild)}var B=this.$printMarginEl.style;B.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",B.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},E.prototype.getContainerElement=function(){return this.container},E.prototype.getMouseEventTarget=function(){return this.scroller},E.prototype.getTextAreaContainer=function(){return this.container},E.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var R=this.textarea.style,B=this.$composition;if(!this.$keepTextAreaAtCursor&&!B){p.translate(this.textarea,-100,0);return}var F=this.$cursorLayer.$pixelPos;if(F){B&&B.markerRange&&(F=this.$cursorLayer.getPixelPosition(B.markerRange.start,!0));var N=this.layerConfig,$=F.top,k=F.left;$-=N.offset;var L=B&&B.useTextareaForIME||C.isMobile?this.lineHeight:1;if($<0||$>N.height-L){p.translate(this.textarea,0,0);return}var W=1,U=this.$size.height-L;if(!B)$+=this.lineHeight;else if(B.useTextareaForIME){var q=this.textarea.value;W=this.characterWidth*this.session.$getStringScreenWidth(q)[0]}else $+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-W&&(k=this.$size.scrollerWidth-W),k+=this.gutterWidth+this.margin.left,p.setStyle(R,"height",L+"px"),p.setStyle(R,"width",W+"px"),p.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-W),Math.min($,U))}}},E.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},E.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},E.prototype.getLastFullyVisibleRow=function(){var R=this.layerConfig,B=R.lastRow,F=this.session.documentToScreenRow(B,0)*R.lineHeight;return F-this.session.getScrollTop()>R.height-R.lineHeight?B-1:B},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(R){this.$padding=R,this.$textLayer.setPadding(R),this.$cursorLayer.setPadding(R),this.$markerFront.setPadding(R),this.$markerBack.setPadding(R),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(R,B,F,N){var $=this.scrollMargin;$.top=R|0,$.bottom=B|0,$.right=N|0,$.left=F|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},E.prototype.setMargin=function(R,B,F,N){var $=this.margin;$.top=R|0,$.bottom=B|0,$.right=N|0,$.left=F|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},E.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},E.prototype.setHScrollBarAlwaysVisible=function(R){this.setOption("hScrollBarAlwaysVisible",R)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(R){this.setOption("vScrollBarAlwaysVisible",R)},E.prototype.$updateScrollBarV=function(){var R=this.layerConfig.maxHeight,B=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(R-=(B-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>R-B&&(R=this.scrollTop+B,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(R+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},E.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},E.prototype.freeze=function(){this.$frozen=!0},E.prototype.unfreeze=function(){this.$frozen=!1},E.prototype.$renderChanges=function(R,B){if(this.$changes&&(R|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!R&&!B){this.$changes|=R;return}if(this.$size.$dirty)return this.$changes|=R,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",R),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var F=this.layerConfig;if(R&this.CHANGE_FULL||R&this.CHANGE_SIZE||R&this.CHANGE_TEXT||R&this.CHANGE_LINES||R&this.CHANGE_SCROLL||R&this.CHANGE_H_SCROLL){if(R|=this.$computeLayerConfig()|this.$loop.clear(),F.firstRow!=this.layerConfig.firstRow&&F.firstRowScreen==this.layerConfig.firstRowScreen){var N=this.scrollTop+(F.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;N>0&&(this.scrollTop=N,R=R|this.CHANGE_SCROLL,R|=this.$computeLayerConfig()|this.$loop.clear())}F=this.layerConfig,this.$updateScrollBarV(),R&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),p.translate(this.content,-this.scrollLeft,-F.offset);var $=F.width+2*this.$padding+"px",k=F.minHeight+"px";p.setStyle(this.content.style,"width",$),p.setStyle(this.content.style,"height",k)}if(R&this.CHANGE_H_SCROLL&&(p.translate(this.content,-this.scrollLeft,-F.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),R&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(F),this.$showGutter&&this.$gutterLayer.update(F),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F),this.$markerBack.update(F),this.$markerFront.update(F),this.$cursorLayer.update(F),this.$moveTextAreaToCursor(),this._signal("afterRender",R);return}if(R&this.CHANGE_SCROLL){this.$changedLines=null,R&this.CHANGE_TEXT||R&this.CHANGE_LINES?this.$textLayer.update(F):this.$textLayer.scrollLines(F),this.$showGutter&&(R&this.CHANGE_GUTTER||R&this.CHANGE_LINES?this.$gutterLayer.update(F):this.$gutterLayer.scrollLines(F)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F),this.$markerBack.update(F),this.$markerFront.update(F),this.$cursorLayer.update(F),this.$moveTextAreaToCursor(),this._signal("afterRender",R);return}R&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(F),this.$showGutter&&this.$gutterLayer.update(F),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F)):R&this.CHANGE_LINES?((this.$updateLines()||R&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(F),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F)):R&this.CHANGE_TEXT||R&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(F),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F)):R&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(F),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(F)),R&this.CHANGE_CURSOR&&(this.$cursorLayer.update(F),this.$moveTextAreaToCursor()),R&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(F),R&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(F),this._signal("afterRender",R)},E.prototype.$autosize=function(){var R=this.session.getScreenLength()*this.lineHeight,B=this.$maxLines*this.lineHeight,F=Math.min(B,Math.max((this.$minLines||1)*this.lineHeight,R))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(F+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&F>this.$maxPixelHeight&&(F=this.$maxPixelHeight);var N=F<=2*this.lineHeight,$=!N&&R>B;if(F!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var k=this.container.clientWidth;this.container.style.height=F+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,F),this.desiredHeight=F,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var R=this.session,B=this.$size,F=B.height<=2*this.lineHeight,N=this.session.getScreenLength(),$=N*this.lineHeight,k=this.$getLongestLine(),L=!F&&(this.$hScrollBarAlwaysVisible||B.scrollerWidth-k-2*this.$padding<0),W=this.$horizScroll!==L;W&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var U=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),F=B.height<=2*this.lineHeight);var q=B.scrollerHeight+this.lineHeight,Z=!this.$maxLines&&this.$scrollPastEnd?(B.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=Z;var Q=this.scrollMargin;this.session.setScrollTop(Math.max(-Q.top,Math.min(this.scrollTop,$-B.scrollerHeight+Q.bottom))),this.session.setScrollLeft(Math.max(-Q.left,Math.min(this.scrollLeft,k+2*this.$padding-B.scrollerWidth+Q.right)));var le=!F&&(this.$vScrollBarAlwaysVisible||B.scrollerHeight-$+Z<0||this.scrollTop>Q.top),ne=U!==le;ne&&(this.$vScroll=le,this.scrollBarV.setVisible(le));var ce=this.scrollTop%this.lineHeight,ae=Math.ceil(q/this.lineHeight)-1,de=Math.max(0,Math.round((this.scrollTop-ce)/this.lineHeight)),me=de+ae,$e,Me,Te=this.lineHeight;de=R.screenToDocumentRow(de,0);var Xe=R.getFoldLine(de);Xe&&(de=Xe.start.row),$e=R.documentToScreenRow(de,0),Me=R.getRowLength(de)*Te,me=Math.min(R.screenToDocumentRow(me,0),R.getLength()-1),q=B.scrollerHeight+R.getRowLength(me)*Te+Me,ce=this.scrollTop-$e*Te,ce<0&&$e>0&&($e=Math.max(0,$e+Math.floor(ce/Te)),ce=this.scrollTop-$e*Te);var qe=0;return(this.layerConfig.width!=k||W)&&(qe=this.CHANGE_H_SCROLL),(W||ne)&&(qe|=this.$updateCachedSize(!0,this.gutterWidth,B.width,B.height),this._signal("scrollbarVisibilityChanged"),ne&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:de,firstRowScreen:$e,lastRow:me,lineHeight:Te,characterWidth:this.characterWidth,minHeight:q,maxHeight:$,offset:ce,gutterOffset:Te?Math.max(0,Math.ceil((ce+B.height-B.scrollerHeight)/Te)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),qe},E.prototype.$updateLines=function(){if(this.$changedLines){var R=this.$changedLines.firstRow,B=this.$changedLines.lastRow;this.$changedLines=null;var F=this.layerConfig;if(!(R>F.lastRow+1)&&!(B<F.firstRow)){if(B===1/0){this.$showGutter&&this.$gutterLayer.update(F),this.$textLayer.update(F);return}return this.$textLayer.updateLines(F,R,B),!0}}},E.prototype.$getLongestLine=function(){var R=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(R+=1),this.$textLayer&&R>this.$textLayer.MAX_LINE_LENGTH&&(R=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(R*this.characterWidth))},E.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},E.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},E.prototype.addGutterDecoration=function(R,B){this.$gutterLayer.addGutterDecoration(R,B)},E.prototype.removeGutterDecoration=function(R,B){this.$gutterLayer.removeGutterDecoration(R,B)},E.prototype.updateBreakpoints=function(R){this._rows=R,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(R){this.$gutterLayer.setAnnotations(R),this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},E.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},E.prototype.showCursor=function(){this.$cursorLayer.showCursor()},E.prototype.scrollSelectionIntoView=function(R,B,F){this.scrollCursorIntoView(R,F),this.scrollCursorIntoView(B,F)},E.prototype.scrollCursorIntoView=function(R,B,F){if(this.$size.scrollerHeight!==0){var N=this.$cursorLayer.getPixelPosition(R),$=N.left,k=N.top,L=F&&F.top||0,W=F&&F.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var U=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;U+L>k?(B&&U+L>k+this.lineHeight&&(k-=B*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):U+this.$size.scrollerHeight-W<k+this.lineHeight&&(B&&U+this.$size.scrollerHeight-W<k-this.lineHeight&&(k+=B*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+W-this.$size.scrollerHeight));var q=this.scrollLeft,Z=2*this.layerConfig.characterWidth;$-Z<q?($-=Z,$<this.$padding+Z&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=Z,q+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):q<=this.$padding&&$-q<this.characterWidth&&this.session.setScrollLeft(0))}},E.prototype.getScrollTop=function(){return this.session.getScrollTop()},E.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},E.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},E.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},E.prototype.scrollToRow=function(R){this.session.setScrollTop(R*this.lineHeight)},E.prototype.alignCursor=function(R,B){typeof R=="number"&&(R={row:R,column:0});var F=this.$cursorLayer.getPixelPosition(R),N=this.$size.scrollerHeight-this.lineHeight,$=F.top-N*(B||0);return this.session.setScrollTop($),$},E.prototype.$calcSteps=function(R,B){var F=0,N=this.STEPS,$=[],k=function(L,W,U){return U*(Math.pow(L-1,3)+1)+W};for(F=0;F<N;++F)$.push(k(F/this.STEPS,R,B-R));return $},E.prototype.scrollToLine=function(R,B,F,N){var $=this.$cursorLayer.getPixelPosition({row:R,column:0}),k=$.top;B&&(k-=this.$size.scrollerHeight/2);var L=this.scrollTop;this.session.setScrollTop(k),F!==!1&&this.animateScrolling(L,N)},E.prototype.animateScrolling=function(R,B){var F=this.scrollTop;if(!this.$animatedScroll)return;var N=this;if(R==F)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(R=$[0],R==F))return}var k=N.$calcSteps(R,F);this.$scrollAnimation={from:R,to:F,steps:k},clearInterval(this.$timer),N.session.setScrollTop(k.shift()),N.session.$scrollTop=F;function L(){N.$timer=clearInterval(N.$timer),N.$scrollAnimation=null,N.$stopAnimation=!1,B&&B()}this.$timer=setInterval(function(){if(N.$stopAnimation){L();return}if(!N.session)return clearInterval(N.$timer);k.length?(N.session.setScrollTop(k.shift()),N.session.$scrollTop=F):F!=null?(N.session.$scrollTop=-1,N.session.setScrollTop(F),F=null):L()},10)},E.prototype.scrollToY=function(R){this.scrollTop!==R&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=R)},E.prototype.scrollToX=function(R){this.scrollLeft!==R&&(this.scrollLeft=R),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(R,B){this.session.setScrollTop(B),this.session.setScrollLeft(R)},E.prototype.scrollBy=function(R,B){B&&this.session.setScrollTop(this.session.getScrollTop()+B),R&&this.session.setScrollLeft(this.session.getScrollLeft()+R)},E.prototype.isScrollableBy=function(R,B){if(B<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||B>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||R<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||R>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(R,B){var F;if(this.$hasCssTransforms){F={top:0,left:0};var N=this.$fontMetrics.transformCoordinates([R,B]);R=N[1]-this.gutterWidth-this.margin.left,B=N[0]}else F=this.scroller.getBoundingClientRect();var $=R+this.scrollLeft-F.left-this.$padding,k=$/this.characterWidth,L=Math.floor((B+this.scrollTop-F.top)/this.lineHeight),W=this.$blockCursor?Math.floor(k):Math.round(k);return{row:L,column:W,side:k-W>0?1:-1,offsetX:$}},E.prototype.screenToTextCoordinates=function(R,B){var F;if(this.$hasCssTransforms){F={top:0,left:0};var N=this.$fontMetrics.transformCoordinates([R,B]);R=N[1]-this.gutterWidth-this.margin.left,B=N[0]}else F=this.scroller.getBoundingClientRect();var $=R+this.scrollLeft-F.left-this.$padding,k=$/this.characterWidth,L=this.$blockCursor?Math.floor(k):Math.round(k),W=Math.floor((B+this.scrollTop-F.top)/this.lineHeight);return this.session.screenToDocumentPosition(W,Math.max(L,0),$)},E.prototype.textToScreenCoordinates=function(R,B){var F=this.scroller.getBoundingClientRect(),N=this.session.documentToScreenPosition(R,B),$=this.$padding+(this.session.$bidiHandler.isBidiRow(N.row,R)?this.session.$bidiHandler.getPosLeft(N.column):Math.round(N.column*this.characterWidth)),k=N.row*this.lineHeight;return{pageX:F.left+$-this.scrollLeft,pageY:F.top+k-this.scrollTop}},E.prototype.visualizeFocus=function(){p.addCssClass(this.container,"ace_focus")},E.prototype.visualizeBlur=function(){p.removeCssClass(this.container,"ace_focus")},E.prototype.showComposition=function(R){this.$composition=R,R.cssText||(R.cssText=this.textarea.style.cssText),R.useTextareaForIME==null&&(R.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(p.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):R.markerId=this.session.addMarker(R.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(R){var B=this.session.selection.cursor;this.addToken(R,"composition_placeholder",B.row,B.column),this.$moveTextAreaToCursor()},E.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),p.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var R=this.session.selection.cursor;this.removeExtraToken(R.row,R.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(R,B){var F=this.session.selection.cursor,N=B||{row:F.row,column:F.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(R,N);this.addToken($[0].text,"ghost_text",N.row,N.column),this.$ghostText={text:R,position:{row:N.row,column:N.column}};var k=p.createElement("div");if($.length>1){var L=this.hideTokensAfterPosition(N.row,N.column),W;$.slice(1).forEach(function(ne){var ce=p.createElement("div"),ae=p.createElement("span");ae.className="ace_ghost_text",ne.wrapped&&(ce.className="ghost_text_line_wrapped"),ne.text.length===0&&(ne.text=" "),ae.appendChild(p.createTextNode(ne.text)),ce.appendChild(ae),k.appendChild(ce),W=ce}),L.forEach(function(ne){var ce=p.createElement("span");O(ne.type)||(ce.className="ace_"+ne.type.replace(/\./g," ace_")),ce.appendChild(p.createTextNode(ne.value)),W.appendChild(ce)}),this.$ghostTextWidget={el:k,row:N.row,column:N.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var U=this.$cursorLayer.getPixelPosition(N,!0),q=this.container,Z=q.getBoundingClientRect().height,Q=$.length*this.lineHeight,le=Q<Z-U.top;if(le)return;Q<Z?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(N.row)}},E.prototype.$calculateWrappedTextChunks=function(R,B){var F=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(F/this.characterWidth)-2;N=N<=0?60:N;for(var $=R.split(/\r?\n/),k=[],L=0;L<$.length;L++){var W=this.session.$getDisplayTokens($[L],B.column),U=this.session.$computeWrapSplits(W,N,this.session.$tabSize);if(U.length>0){var q=0;U.push($[L].length);for(var Z=0;Z<U.length;Z++){var Q=$[L].slice(q,U[Z]);k.push({text:Q,wrapped:!0}),q=U[Z]}}else k.push({text:$[L],wrapped:!1})}return k},E.prototype.removeGhostText=function(){if(this.$ghostText){var R=this.$ghostText.position;this.removeExtraToken(R.row,R.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(R,B,F,N){var $=this.session;$.bgTokenizer.lines[F]=null;var k={type:B,value:R},L=$.getTokens(F);if(N==null||!L.length)L.push(k);else for(var W=0,U=0;U<L.length;U++){var q=L[U];if(W+=q.value.length,N<=W){var Z=q.value.length-(W-N),Q=q.value.slice(0,Z),le=q.value.slice(Z);L.splice(U,1,{type:q.type,value:Q},k,{type:q.type,value:le});break}}this.updateLines(F,F)},E.prototype.hideTokensAfterPosition=function(R,B){for(var F=this.session.getTokens(R),N=0,$=!1,k=[],L=0;L<F.length;L++){var W=F[L];if(N+=W.value.length,W.type!=="ghost_text"){if($){k.push({type:W.type,value:W.value}),W.type="hidden_token";continue}N===B&&($=!0)}}return this.updateLines(R,R),k},E.prototype.removeExtraToken=function(R,B){this.session.bgTokenizer.lines[R]=null,this.updateLines(R,R)},E.prototype.setTheme=function(R,B){var F=this;if(this.$themeId=R,F._dispatchEvent("themeChange",{theme:R}),!R||typeof R=="string"){var N=R||this.$options.theme.initialValue;h.loadModule(["theme",N],$)}else $(R);function $(k){if(F.$themeId!=R)return B&&B();if(!k||!k.cssClass)throw new Error("couldn't load module "+R+" or it didn't call define");k.$id&&(F.$themeId=k.$id),p.importCssString(k.cssText,k.cssClass,F.container),F.theme&&p.removeCssClass(F.container,F.theme.cssClass);var L="padding"in k?k.padding:"padding"in(F.theme||{})?4:F.$padding;if(F.$padding&&L!=F.$padding&&F.setPadding(L),F.$gutterLayer){var W=k.$showGutterCursorMarker;W&&!F.$gutterLayer.$showCursorMarker?F.$gutterLayer.$showCursorMarker="theme":!W&&F.$gutterLayer.$showCursorMarker=="theme"&&(F.$gutterLayer.$showCursorMarker=null)}F.$theme=k.cssClass,F.theme=k,p.addCssClass(F.container,k.cssClass),p.setCssClass(F.container,"ace_dark",k.isDark),F.$size&&(F.$size.width=0,F.$updateSizeAsync()),F._dispatchEvent("themeLoaded",{theme:k}),B&&B(),C.isSafari&&F.scroller&&(F.scroller.style.background="red",F.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(R,B){p.setCssClass(this.container,R,B!==!1)},E.prototype.unsetStyle=function(R){p.removeCssClass(this.container,R)},E.prototype.setCursorStyle=function(R){p.setStyle(this.scroller.style,"cursor",R)},E.prototype.setMouseCursor=function(R){p.setStyle(this.scroller.style,"cursor",R)},E.prototype.attachToShadowRoot=function(){p.importCssString(M,"ace_editor.css",this.container)},E.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},E.prototype.$updateCustomScrollbar=function(R){var B=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),R===!0?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new s(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(F){B.$scrollAnimation||B.session.setScrollTop(F.data-B.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(F){B.$scrollAnimation||B.session.setScrollLeft(F.data-B.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new A(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new i(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(F){B.$scrollAnimation||B.session.setScrollTop(F.data-B.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(F){B.$scrollAnimation||B.session.setScrollLeft(F.data-B.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var R=this;this.$resizeTimer=w.delayedCall(function(){R.destroyed||R.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(B){var F=B[0].contentRect.width,N=B[0].contentRect.height;Math.abs(R.$size.width-F)>1||Math.abs(R.$size.height-N)>1?R.$resizeTimer.delay():R.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E})();D.prototype.CHANGE_CURSOR=1,D.prototype.CHANGE_MARKER=2,D.prototype.CHANGE_GUTTER=4,D.prototype.CHANGE_SCROLL=8,D.prototype.CHANGE_LINES=16,D.prototype.CHANGE_TEXT=32,D.prototype.CHANGE_SIZE=64,D.prototype.CHANGE_MARKER_BACK=128,D.prototype.CHANGE_MARKER_FRONT=256,D.prototype.CHANGE_FULL=512,D.prototype.CHANGE_H_SCROLL=1024,D.prototype.$changes=0,D.prototype.$padding=null,D.prototype.$frozen=!1,D.prototype.STEPS=8,g.implement(D.prototype,I),h.defineOptions(D.prototype,"renderer",{useResizeObserver:{set:function(E){!E&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):E&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(E){this.$textLayer.setShowInvisibles(E)&&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(E){typeof E=="number"&&(this.$printMarginColumn=E),this.$showPrintMargin=!!E,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(E){this.$gutter.style.display=E?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(E){this.$gutterLayer.$useSvgGutterIcons=E},initialValue:!1},showFoldedAnnotations:{set:function(E){this.$gutterLayer.$showFoldedAnnotations=E},initialValue:!1},fadeFoldWidgets:{set:function(E){p.setCssClass(this.$gutter,"ace_fade-fold-widgets",E)},initialValue:!1},showFoldWidgets:{set:function(E){this.$gutterLayer.setShowFoldWidgets(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(E){this.$textLayer.setDisplayIndentGuides(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(E){this.$textLayer.setHighlightIndentGuides(E)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(E){this.$gutterLayer.setHighlightGutterLine(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(E){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(E){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(E){typeof E=="number"&&(E=E+"px"),this.container.style.fontSize=E,this.updateFontSize()},initialValue:12},fontFamily:{set:function(E){this.container.style.fontFamily=E,this.updateFontSize()}},maxLines:{set:function(E){this.updateFull()}},minLines:{set:function(E){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(E){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(E){E=+E||0,this.$scrollPastEnd!=E&&(this.$scrollPastEnd=E,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(E){this.$gutterLayer.$fixedWidth=!!E,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(E){this.$updateCustomScrollbar(E)},initialValue:!1},theme:{set:function(E){this.setTheme(E)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!C.isMobile&&!C.isIE}}),r.VirtualRenderer=D}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function d(u){var i="importScripts('"+p.qualifyURL(u)+"');";try{return new Blob([i],{type:"application/javascript"})}catch{var s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,f=new s;return f.append(i),f.getBlob("application/javascript")}}function a(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var i=d(u),s=window.URL||window.webkitURL,f=s.createObjectURL(i);return new Worker(f)}return new Worker(u)}var l=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,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(){g.implement(this,w),this.$createWorkerFromOldConfig=function(u,i,s,f,b){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)f=f||h.moduleUrl(i,"worker");else{var x=this.$normalizePath;f=f||x(e.toUrl("ace/worker/worker.js",null,"_"));var I={};u.forEach(function(M){I[M]=x(e.toUrl(M,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(f),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:I,module:i,classname:s}),this.$worker},this.onMessage=function(u){var i=u.data;switch(i.type){case"event":this._signal(i.name,{data:i.data});break;case"call":var s=this.callbacks[i.id];s&&(s(i.data),delete this.callbacks[i.id]);break;case"error":this.reportError(i.data);break;case"log":window.console&&console.log&&console.log.apply(console,i.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return p.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,i){this.$worker.postMessage({command:u,args:i})},this.call=function(u,i,s){if(s){var f=this.callbackId++;this.callbacks[f]=s,i.push(f)}this.send(u,i)},this.emit=function(u,i){try{i.data&&i.data.err&&(i.data.err={message:i.data.err.message,stack:i.data.err.stack,code:i.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:i.data}})}catch(s){console.error(s.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(l.prototype);var c=function(u,i,s){var f=null,b=!1,x=Object.create(w),I=[],M=new l({messageBuffer:I,terminate:function(){},postMessage:function(C){I.push(C),f&&(b?setTimeout(A):A())}});M.setEmitSync=function(C){b=C};var A=function(){var C=I.shift();C.command?f[C.command].apply(f,C.args):C.event&&x._signal(C.event,C.data)};return x.postMessage=function(C){M.onMessage({data:C})},x.callback=function(C,O){this.postMessage({type:"call",id:O,data:C})},x.emit=function(C,O){this.postMessage({type:"event",name:C,data:O})},h.loadModule(["worker",i],function(C){for(f=new C[s](x);I.length;)A()}),M};r.UIWorkerClient=c,r.WorkerClient=l,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,v){var g=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=(function(){function d(a,l,c,u,i,s){var f=this;this.length=l,this.session=a,this.doc=a.getDocument(),this.mainClass=i,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){f.onCursorChange()})},this.$pos=c;var b=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return d.prototype.setup=function(){var a=this,l=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new g(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var s=l.createAnchor(i.row,i.column);s.$insertRight=!0,s.detach(),a.others.push(s)}),c.setUndoSelect(!1)},d.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,l=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=a.addMarker(new g(c.row,c.column,c.row,c.column+l.length),l.othersClass,null,!1)})}},d.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a<this.others.length;a++)this.session.removeMarker(this.others[a].markerId)}},d.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var l=a;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var c=a.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,u=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,i=l.start.column-this.pos.column;if(this.updateAnchors(a),u&&(this.length+=c),u&&!this.session.$fromUndo){if(a.action==="insert")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.insertMergedLines(b,a.lines)}else if(a.action==="remove")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.remove(new g(b.row,b.column,b.row,b.column-c))}}this.$updating=!1,this.updateMarkers()}},d.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var l=this.others.length;l--;)this.others[l].onChange(a);this.updateMarkers()},d.prototype.updateMarkers=function(){if(!this.$updating){var a=this,l=this.session,c=function(i,s){l.removeMarker(i.markerId),i.markerId=l.addMarker(new g(i.row,i.column,i.row,i.column+a.length),s,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},d.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},d.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},d.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),l=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,c=0;c<l;c++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},d})();w.implement(h.prototype,p),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var g=e("../lib/event"),p=e("../lib/useragent");function w(d,a){return d.row==a.row&&d.column==a.column}function h(d){var a=d.domEvent,l=a.altKey,c=a.shiftKey,u=a.ctrlKey,i=d.getAccelKey(),s=d.getButton();if(u&&p.isMac&&(s=a.button),d.editor.inMultiSelectMode&&s==2){d.editor.textInput.onContextMenu(d.domEvent);return}if(!u&&!l&&!i){s===0&&d.editor.inMultiSelectMode&&d.editor.exitMultiSelectMode();return}if(s===0){var f=d.editor,b=f.selection,x=f.inMultiSelectMode,I=d.getDocumentPosition(),M=b.getCursor(),A=d.inSelection()||b.isEmpty()&&w(I,M),C=d.x,O=d.y,D=function(Q){C=Q.clientX,O=Q.clientY},E=f.session,R=f.renderer.pixelToScreenCoordinates(C,O),B=R,F;if(f.$mouseHandler.$enableJumpToDef)u&&l||i&&l?F=c?"block":"add":l&&f.$blockSelectEnabled&&(F="block");else if(i&&!l){if(F="add",!x&&c)return}else l&&f.$blockSelectEnabled&&(F="block");if(F&&p.isMac&&a.ctrlKey&&f.$mouseHandler.cancelContextMenu(),F=="add"){if(!x&&A)return;if(!x){var N=b.toOrientedRange();f.addSelectionMarker(N)}var $=b.rangeList.rangeAtPoint(I);f.inVirtualSelectionMode=!0,c&&($=null,N=b.ranges[0]||N,f.removeSelectionMarker(N)),f.once("mouseup",function(){var Q=b.toOrientedRange();$&&Q.isEmpty()&&w($.cursor,Q.cursor)?b.substractPoint(Q.cursor):(c?b.substractPoint(N.cursor):N&&(f.removeSelectionMarker(N),b.addRange(N)),b.addRange(Q)),f.inVirtualSelectionMode=!1})}else if(F=="block"){d.stop(),f.inVirtualSelectionMode=!0;var k,L=[],W=function(){var Q=f.renderer.pixelToScreenCoordinates(C,O),le=E.screenToDocumentPosition(Q.row,Q.column,Q.offsetX);w(B,Q)&&w(le,b.lead)||(B=Q,f.selection.moveToPosition(le),f.renderer.scrollCursorIntoView(),f.removeSelectionMarkers(L),L=b.rectangularRangeBlock(B,R),f.$mouseHandler.$clickSelection&&L.length==1&&L[0].isEmpty()&&(L[0]=f.$mouseHandler.$clickSelection.clone()),L.forEach(f.addSelectionMarker,f),f.updateSelectionMarkers())};x&&!i?b.toSingleRange():!x&&i&&(k=b.toOrientedRange(),f.addSelectionMarker(k)),c?R=E.documentToScreenPosition(b.lead):b.moveToPosition(I),B={row:-1,column:-1};var U=function(Q){W(),clearInterval(Z),f.removeSelectionMarkers(L),L.length||(L=[b.toOrientedRange()]),k&&(f.removeSelectionMarker(k),b.toSingleRange(k));for(var le=0;le<L.length;le++)b.addRange(L[le]);f.inVirtualSelectionMode=!1,f.$mouseHandler.$clickSelection=null},q=W;g.capture(f.container,D,U);var Z=setInterval(function(){q()},20);return d.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,v){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(p){p.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(p){p.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(p){p.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(p){p.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(p){p.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(p){p.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(p){p.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(p){p.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(p){p.multiSelect.rangeCount>1?p.multiSelect.joinSelections():p.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(p){p.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(p){p.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(p){p.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(p){p.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(p){return p&&p.inMultiSelectMode}}];var g=e("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new g(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,r,v){var g=e("./range_list").RangeList,p=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,d=e("./lib/event"),a=e("./lib/lang"),l=e("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=e("./search").Search,u=new c;function i(M,A,C){return u.$options.wrap=!0,u.$options.needle=A,u.$options.backwards=C==-1,u.find(M)}var s=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(s.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(M,A){if(M){if(!this.inMultiSelectMode&&this.rangeCount===0){var C=this.toOrientedRange();if(this.rangeList.add(C),this.rangeList.add(M),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),A||this.fromOrientedRange(M);this.rangeList.removeAll(),this.rangeList.add(C),this.$onAddRange(C)}M.cursor||(M.cursor=M.end);var O=this.rangeList.add(M);return this.$onAddRange(M),O.length&&this.$onRemoveRange(O),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),A||this.fromOrientedRange(M)}},this.toSingleRange=function(M){M=M||this.ranges[0];var A=this.rangeList.removeAll();A.length&&this.$onRemoveRange(A),M&&this.fromOrientedRange(M)},this.substractPoint=function(M){var A=this.rangeList.substractPoint(M);if(A)return this.$onRemoveRange(A),A[0]},this.mergeOverlappingRanges=function(){var M=this.rangeList.merge();M.length&&this.$onRemoveRange(M)},this.$onAddRange=function(M){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(M),this._signal("addRange",{range:M})},this.$onRemoveRange=function(M){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var A=this.rangeList.ranges.pop();M.push(A),this.rangeCount=0}for(var C=M.length;C--;){var O=this.ranges.indexOf(M[C]);this.ranges.splice(O,1)}this._signal("removeRange",{ranges:M}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),A=A||this.ranges[0],A&&!A.isEqual(this.getRange())&&this.fromOrientedRange(A)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new g,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var M=this.ranges.length?this.ranges:[this.getRange()],A=[],C=0;C<M.length;C++){var O=M[C],D=O.start.row,E=O.end.row;if(D===E)A.push(O.clone());else{for(A.push(new p(D,O.start.column,D,this.session.getLine(D).length));++D<E;)A.push(this.getLineRange(D,!0));A.push(new p(E,0,E,O.end.column))}C==0&&!this.isBackwards()&&(A=A.reverse())}this.toSingleRange();for(var C=A.length;C--;)this.addRange(A[C])},this.joinSelections=function(){var M=this.rangeList.ranges,A=M[M.length-1],C=p.fromPoints(M[0].start,A.end);this.toSingleRange(),this.setSelectionRange(C,A.cursor==A.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var M=this.rangeList.ranges,A=M[M.length-1],C=p.fromPoints(M[0].start,A.end);this.toSingleRange(),this.setSelectionRange(C,A.cursor==A.start)}else{var O=this.session.documentToScreenPosition(this.cursor),D=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(O,D);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(M,A,C){var O=[],D=M.column<A.column;if(D)var E=M.column,R=A.column,B=M.offsetX,F=A.offsetX;else var E=A.column,R=M.column,B=A.offsetX,F=M.offsetX;var N=M.row<A.row;if(N)var $=M.row,k=A.row;else var $=A.row,k=M.row;E<0&&(E=0),$<0&&($=0),$==k&&(C=!0);for(var L,W=$;W<=k;W++){var U=p.fromPoints(this.session.screenToDocumentPosition(W,E,B),this.session.screenToDocumentPosition(W,R,F));if(U.isEmpty()){if(L&&b(U.end,L))break;L=U.end}U.cursor=D?U.start:U.end,O.push(U)}if(N&&O.reverse(),!C){for(var q=O.length-1;O[q].isEmpty()&&q>0;)q--;if(q>0)for(var Z=0;O[Z].isEmpty();)Z++;for(var Q=q;Q>=Z;Q--)O[Q].isEmpty()&&O.splice(Q,1)}return O}}).call(w.prototype);var f=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(M){M.cursor||(M.cursor=M.end);var A=this.getSelectionStyle();return M.marker=this.session.addMarker(M,"ace_selection",A),this.session.$selectionMarkers.push(M),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,M},this.removeSelectionMarker=function(M){if(M.marker){this.session.removeMarker(M.marker);var A=this.session.$selectionMarkers.indexOf(M);A!=-1&&this.session.$selectionMarkers.splice(A,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(M){for(var A=this.session.$selectionMarkers,C=M.length;C--;){var O=M[C];if(O.marker){this.session.removeMarker(O.marker);var D=A.indexOf(O);D!=-1&&A.splice(D,1)}}this.session.selectionMarkerCount=A.length},this.$onAddRange=function(M){this.addSelectionMarker(M.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(M){this.removeSelectionMarkers(M.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(M){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(M){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(M){var A=M.command,C=M.editor;if(C.multiSelect){if(A.multiSelectAction)A.multiSelectAction=="forEach"?O=C.forEachSelection(A,M.args):A.multiSelectAction=="forEachLine"?O=C.forEachSelection(A,M.args,!0):A.multiSelectAction=="single"?(C.exitMultiSelectMode(),O=A.exec(C,M.args||{})):O=A.multiSelectAction(C,M.args||{});else{var O=A.exec(C,M.args||{});C.multiSelect.addRange(C.multiSelect.toOrientedRange()),C.multiSelect.mergeOverlappingRanges()}return O}},this.forEachSelection=function(M,A,C){if(!this.inVirtualSelectionMode){var O=C&&C.keepOrder,D=C==!0||C&&C.$byLines,E=this.session,R=this.selection,B=R.rangeList,F=(O?R:B).ranges,N;if(!F.length)return M.exec?M.exec(this,A||{}):M(this,A||{});var $=R._eventRegistry;R._eventRegistry={};var k=new w(E);this.inVirtualSelectionMode=!0;for(var L=F.length;L--;){if(D)for(;L>0&&F[L].start.row==F[L-1].end.row;)L--;k.fromOrientedRange(F[L]),k.index=L,this.selection=E.selection=k;var W=M.exec?M.exec(this,A||{}):M(this,A||{});!N&&W!==void 0&&(N=W),k.toOrientedRange(F[L])}k.detach(),this.selection=E.selection=R,this.inVirtualSelectionMode=!1,R._eventRegistry=$,R.mergeOverlappingRanges(),R.ranges[0]&&R.fromOrientedRange(R.ranges[0]);var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),N}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var M="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var A=this.multiSelect.rangeList.ranges,C=[],O=0;O<A.length;O++)C.push(this.session.getTextRange(A[O]));var D=this.session.getDocument().getNewLineCharacter();M=C.join(D),M.length==(C.length-1)*D.length&&(M="")}else this.selection.isEmpty()||(M=this.session.getTextRange(this.getSelectionRange()));return M},this.$checkMultiselectChange=function(M,A){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var C=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&A==this.multiSelect.anchor)return;var O=A==this.multiSelect.anchor?C.cursor==C.start?C.end:C.start:C.cursor;O.row!=A.row||this.session.$clipPositionToDocument(O.row,O.column).column!=A.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(M,A,C){if(A=A||{},A.needle=M||A.needle,A.needle==null){var O=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();A.needle=this.session.getTextRange(O)}this.$search.set(A);var D=this.$search.findAll(this.session);if(!D.length)return 0;var E=this.multiSelect;C||E.toSingleRange(D[0]);for(var R=D.length;R--;)E.addRange(D[R],!0);return O&&E.rangeList.rangeAtPoint(O.start)&&E.addRange(O,!0),D.length},this.selectMoreLines=function(M,A){var C=this.selection.toOrientedRange(),O=C.cursor==C.end,D=this.session.documentToScreenPosition(C.cursor);this.selection.$desiredColumn&&(D.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(D.row+M,D.column);if(C.isEmpty())var B=E;else var R=this.session.documentToScreenPosition(O?C.end:C.start),B=this.session.screenToDocumentPosition(R.row+M,R.column);if(O){var F=p.fromPoints(E,B);F.cursor=F.start}else{var F=p.fromPoints(B,E);F.cursor=F.end}if(F.desiredColumn=D.column,!this.selection.inMultiSelectMode)this.selection.addRange(C);else if(A)var N=C.cursor;this.selection.addRange(F),N&&this.selection.substractPoint(N)},this.transposeSelections=function(M){for(var A=this.session,C=A.multiSelect,O=C.ranges,D=O.length;D--;){var E=O[D];if(E.isEmpty()){var R=A.getWordRange(E.start.row,E.start.column);E.start.row=R.start.row,E.start.column=R.start.column,E.end.row=R.end.row,E.end.column=R.end.column}}C.mergeOverlappingRanges();for(var B=[],D=O.length;D--;){var E=O[D];B.unshift(A.getTextRange(E))}M<0?B.unshift(B.pop()):B.push(B.shift());for(var D=O.length;D--;){var E=O[D],F=E.clone();A.replace(E,B[D]),E.start.row=F.start.row,E.start.column=F.start.column}C.fromOrientedRange(C.ranges[0])},this.selectMore=function(M,A,C){var O=this.session,D=O.multiSelect,E=D.toOrientedRange();if(!(E.isEmpty()&&(E=O.getWordRange(E.start.row,E.start.column),E.cursor=M==-1?E.start:E.end,this.multiSelect.addRange(E),C))){var R=O.getTextRange(E),B=i(O,R,M);B&&(B.cursor=M==-1?B.start:B.end,this.session.unfold(B),this.multiSelect.addRange(B),this.renderer.scrollCursorIntoView(null,.5)),A&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var M=this.session,A=M.multiSelect,C=A.ranges,O=-1,D=C.filter(function(q){if(q.cursor.row==O)return!0;O=q.cursor.row});if(!C.length||D.length==C.length-1){var E=this.selection.getRange(),R=E.start.row,B=E.end.row,F=R==B;if(F){var N=this.session.getLength(),$;do $=this.session.getLine(B);while(/[=:]/.test($)&&++B<N);do $=this.session.getLine(R);while(/[=:]/.test($)&&--R>0);R<0&&(R=0),B>=N&&(B=N-1)}var k=this.session.removeFullLines(R,B);k=this.$reAlignText(k,F),this.session.insert({row:R,column:0},k.join(`
|
|
954
|
-
`)+`
|
|
955
|
-
`),F||(E.start.column=0,E.end.column=k[k.length-1].length),this.selection.setRange(E)}else{D.forEach(function(q){A.substractPoint(q.cursor)});var L=0,W=1/0,U=C.map(function(q){var Z=q.cursor,Q=M.getLine(Z.row),le=Q.substr(Z.column).search(/\S/g);return le==-1&&(le=0),Z.column>L&&(L=Z.column),le<W&&(W=le),le});C.forEach(function(q,Z){var Q=q.cursor,le=L-Q.column,ne=U[Z]-W;le>ne?M.insert(Q,a.stringRepeat(" ",le-ne)):M.remove(new p(Q.row,Q.column,Q.row,Q.column-le+ne)),q.start.column=q.end.column=L,q.start.row=q.end.row=Q.row,q.cursor=q.end}),A.fromOrientedRange(C[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(M,A){var C=!0,O=!0,D,E,R;return M.map(function(k){var L=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?D==null?(D=L[1].length,E=L[2].length,R=L[3].length,L):(D+E+R!=L[1].length+L[2].length+L[3].length&&(O=!1),D!=L[1].length&&(C=!1),D>L[1].length&&(D=L[1].length),E<L[2].length&&(E=L[2].length),R>L[3].length&&(R=L[3].length),L):[k]}).map(A?F:C?O?N:F:$);function B(k){return a.stringRepeat(" ",k)}function F(k){return k[2]?B(D)+k[2]+B(E-k[2].length+R)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function N(k){return k[2]?B(D+E-k[2].length)+k[2]+B(R)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function $(k){return k[2]?B(D)+k[2]+B(R)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(f.prototype);function b(M,A){return M.row==A.row&&M.column==A.column}r.onSessionChange=function(M){var A=M.session;A&&!A.multiSelect&&(A.$selectionMarkers=[],A.selection.$initRangeList(),A.multiSelect=A.selection),this.multiSelect=A&&A.multiSelect;var C=M.oldSession;C&&(C.multiSelect.off("addRange",this.$onAddRange),C.multiSelect.off("removeRange",this.$onRemoveRange),C.multiSelect.off("multiSelect",this.$onMultiSelect),C.multiSelect.off("singleSelect",this.$onSingleSelect),C.multiSelect.lead.off("change",this.$checkMultiselectChange),C.multiSelect.anchor.off("change",this.$checkMultiselectChange)),A&&(A.multiSelect.on("addRange",this.$onAddRange),A.multiSelect.on("removeRange",this.$onRemoveRange),A.multiSelect.on("multiSelect",this.$onMultiSelect),A.multiSelect.on("singleSelect",this.$onSingleSelect),A.multiSelect.lead.on("change",this.$checkMultiselectChange),A.multiSelect.anchor.on("change",this.$checkMultiselectChange)),A&&this.inMultiSelectMode!=A.selection.inMultiSelectMode&&(A.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(M){M.$multiselectOnSessionChange||(M.$onAddRange=M.$onAddRange.bind(M),M.$onRemoveRange=M.$onRemoveRange.bind(M),M.$onMultiSelect=M.$onMultiSelect.bind(M),M.$onSingleSelect=M.$onSingleSelect.bind(M),M.$multiselectOnSessionChange=r.onSessionChange.bind(M),M.$checkMultiselectChange=M.$checkMultiselectChange.bind(M),M.$multiselectOnSessionChange(M),M.on("changeSession",M.$multiselectOnSessionChange),M.on("mousedown",h),M.commands.addCommands(l.defaultCommands),I(M))}function I(M){if(!M.textInput)return;var A=M.textInput.getElement(),C=!1;d.addListener(A,"keydown",function(D){var E=D.keyCode==18&&!(D.ctrlKey||D.shiftKey||D.metaKey);M.$blockSelectEnabled&&E?C||(M.renderer.setMouseCursor("crosshair"),C=!0):C&&O()},M),d.addListener(A,"keyup",O,M),d.addListener(A,"blur",O,M);function O(D){C&&(M.renderer.setMouseCursor(""),C=!1)}}r.MultiSelect=x,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(M){x(this),M?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(M){this.$blockSelectEnabled=M},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,v){var g=e("../../range").Range,p=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,d){var a=w.getLine(d);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(w,h,d){return null},this.indentationBlock=function(w,h,d){var a=/\S/,l=w.getLine(h),c=l.search(a);if(c!=-1){for(var u=d||l.length,i=w.getLength(),s=h,f=h;++h<i;){var b=w.getLine(h).search(a);if(b!=-1){if(b<=c){var x=w.getTokenAt(h,0);if(!x||x.type!=="string")break}f=h}}if(f>s){var I=w.getLine(f).length;return new g(s,u,f,I)}}},this.openingBracketBlock=function(w,h,d,a,l){var c={row:d,column:a+1},u=w.$findClosingBracket(h,c,l);if(u){var i=w.foldWidgets[u.row];return i==null&&(i=w.getFoldWidget(u.row)),i=="start"&&u.row>c.row&&(u.row--,u.column=w.getLine(u.row).length),g.fromPoints(c,u)}},this.closingBracketBlock=function(w,h,d,a,l){var c={row:d,column:a},u=w.$findOpeningBracket(h,c);if(u)return u.column++,c.column--,g.fromPoints(u,c)}}).call(p.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,v){var g=e("../lib/dom"),p=e("../range").Range,w=e("../config").nls;function h(a,l,c){for(var u=0,i=a.length-1;u<=i;){var s=u+i>>1,f=c(l,a[s]);if(f>0)u=s+1;else if(f<0)i=s-1;else return s}return-(u+1)}function d(a,l,c){var u=a.getAnnotations().sort(p.comparePoints);if(u.length){var i=h(u,{row:l,column:-1},p.comparePoints);i<0&&(i=-i-1),i>=u.length?i=c>0?0:u.length-1:i===0&&c<0&&(i=u.length-1);var s=u[i];if(!(!s||!c)){if(s.row===l){do s=u[i+=c];while(s&&s.row===l);if(!s)return u.slice()}var f=[];l=s.row;do f[c<0?"unshift":"push"](s),s=u[i+=c];while(s&&s.row==l);return f.length&&f}}}r.showErrorMarker=function(a,l){var c=a.session,u=a.getCursorPosition(),i=u.row,s=c.widgetManager.getWidgetsAtRow(i).filter(function(D){return D.type=="errorMarker"})[0];s?s.destroy():i-=l;var f=d(c,i,l),b;if(f){var x=f[0];u.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,u.row=x.row,b=a.renderer.$gutterLayer.$annotations[u.row]}else{if(s)return;b={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(u.row),a.selection.moveToPosition(u);var I={row:u.row,fixedWidth:!0,coverGutter:!0,el:g.createElement("div"),type:"errorMarker"},M=I.el.appendChild(g.createElement("div")),A=I.el.appendChild(g.createElement("div"));A.className="error_widget_arrow "+b.className;var C=a.renderer.$cursorLayer.getPixelPosition(u).left;A.style.left=C+a.renderer.gutterWidth-5+"px",I.el.className="error_widget_wrapper",M.className="error_widget "+b.className,b.displayText.forEach(function(D,E){M.appendChild(g.createTextNode(D)),E<b.displayText.length-1&&M.appendChild(g.createElement("br"))}),M.appendChild(g.createElement("div"));var O=function(D,E,R){if(E===0&&(R==="esc"||R==="return"))return I.destroy(),{command:"null"}};I.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(O),c.widgetManager.removeLineWidget(I),a.off("changeSelection",I.destroy),a.off("changeSession",I.destroy),a.off("mouseup",I.destroy),a.off("change",I.destroy))},a.keyBinding.addKeyboardHandler(O),a.on("changeSelection",I.destroy),a.on("changeSession",I.destroy),a.on("mouseup",I.destroy),a.on("change",I.destroy),a.session.widgetManager.addLineWidget(I),I.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:I.el.offsetHeight})},g.importCssString(`
|
|
956
|
-
.error_widget_wrapper {
|
|
957
|
-
background: inherit;
|
|
958
|
-
color: inherit;
|
|
959
|
-
border:none
|
|
960
|
-
}
|
|
961
|
-
.error_widget {
|
|
962
|
-
border-top: solid 2px;
|
|
963
|
-
border-bottom: solid 2px;
|
|
964
|
-
margin: 5px 0;
|
|
965
|
-
padding: 10px 40px;
|
|
966
|
-
white-space: pre-wrap;
|
|
967
|
-
}
|
|
968
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
969
|
-
border-color: #ff5a5a
|
|
970
|
-
}
|
|
971
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
972
|
-
border-color: #F1D817
|
|
973
|
-
}
|
|
974
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
975
|
-
border-color: #5a5a5a
|
|
976
|
-
}
|
|
977
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
978
|
-
border-color: #5aaa5a
|
|
979
|
-
}
|
|
980
|
-
.error_widget_arrow {
|
|
981
|
-
position: absolute;
|
|
982
|
-
border: solid 5px;
|
|
983
|
-
border-top-color: transparent!important;
|
|
984
|
-
border-right-color: transparent!important;
|
|
985
|
-
border-left-color: transparent!important;
|
|
986
|
-
top: -5px;
|
|
987
|
-
}
|
|
988
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,r,v){e("./loader_build")(r);var g=e("./lib/dom"),p=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,d=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),r.config=e("./config"),r.edit=function(c,u){if(typeof c=="string"){var i=c;if(c=document.getElementById(i),!c)throw new Error("ace.edit can't find div #"+i)}if(c&&c.env&&c.env.editor instanceof w)return c.env.editor;var s="";if(c&&/input|textarea/i.test(c.tagName)){var f=c;s=f.value,c=g.createElement("pre"),f.parentNode.replaceChild(c,f)}else c&&(s=c.textContent,c.innerHTML="");var b=r.createEditSession(s),x=new w(new a(c),b,u),I={document:b,editor:x,onResize:x.resize.bind(x,null)};return f&&(I.textarea=f),x.on("destroy",function(){I.editor.container.env=null}),x.container.env=x.env=I,x},r.createEditSession=function(c,u){var i=new h(c,u);return i.setUndoManager(new d),i},r.Range=p,r.Editor=w,r.EditSession=h,r.UndoManager=d,r.VirtualRenderer=a;var l=r.config.version;r.version=l}),(function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=(function(){return this})();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var v in e)e.hasOwnProperty(v)&&(r.ace[v]=e[v]);r.ace.default=r.ace,t&&(t.exports=r.ace)})})()})(ng)),ng.exports}var x2=Gn("m",fk()),ig={exports:{}},og;function pk(){return og||(og=1,(function(t,n){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},d=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},c=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},u=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},i=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},s=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},f=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",I="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",M="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",A=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":I,"variable.language":M,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),C=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,O={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(D,E,R){R.length&&(R=[]);var B=D[D.length-1];return R.unshift(B,E),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(D,E,R){R.length&&(R=[]);var B=D[D.length-1];return R.unshift(B,E),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(D,E,R){R.length&&(R=[]);var B=D[D.length-1];return R.unshift(B,E),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(D,E,R){R.length&&(R=[]);var B=D[D.length-1];return R.unshift(B,E),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(D,E,R){R.length&&(R=[]);var B=D[D.length-1];return R.unshift(B,E),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},s,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+C+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},c,u,w,h,i,d,a,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:A,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(D,E,R){var B=D[2]=="-"||D[2]=="~"?"indentedHeredoc":"heredoc",F=D.split(this.splitRegex);return R.push(B,F[3]),[{type:"constant",value:F[1]},{type:"string",value:F[2]},{type:"support.class",value:F[3]},{type:"string",value:F[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(D,E,R){return D===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(D,E,R){return D===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(D,E){return E[0]==="heredoc"||E[0]==="indentedHeredoc"?E[0]:D}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(D,E,R){return this.next="",D=="}"&&R.length>1&&R[1]!="start"&&(R.shift(),this.next=R.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,R){return R.length&&D===R[0]?(R.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,R){return R.length&&D===O[R[0]]?(R.shift(),this.next=R.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,R){return R.length&&D===R[0]?(R.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,R){return R.length&&D===O[R[0]]?(R.shift(),this.next=R.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,R){return R.length&&D===R[0]?(R.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,R){return R.length&&D===O[R[0]]?(R.shift(),this.next=R.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,R){return R.length&&D===R[0]?(R.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,R){return R.length&&D===O[R[0]]?(R.shift(),this.next=R.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(D,E,R){return R.length&&D===R[0]?(R.unshift(D,E),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(D,E,R){return R.length&&D[0]===O[R[0]]?(R.shift(),this.next=R.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()};g.inherits(f,p),r.RubyHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var g=e("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,c=w.findMatchingBracket({row:h,column:l});if(!c||c.row==h)return 0;var u=this.$getIndent(w.getLine(c.row));w.replace(new g(h,0,h,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,v){var g=e("../../lib/oop"),p=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,d=r.FoldMode=function(){};g.inherits(d,p),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(a,l,c){var u=a.getLine(c),i=this.foldingStartMarker.test(u),s=this.foldingStopMarker.test(u);if(i&&!s){var f=u.match(this.foldingStartMarker);if(f[1]){if((f[1]=="if"||f[1]=="else"||f[1]=="while"||f[1]=="until"||f[1]=="unless")&&(f[1]=="else"&&/^\s*else\s*$/.test(u)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(u)===!1)||f[1]=="when"&&/\sthen\s/.test(u)===!0)return;if(a.getTokenAt(c,f.index+2).type==="keyword")return"start"}else if(!f[3]||a.getTokenAt(c,f.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!s||i&&s)return"";var f=u.match(this.foldingStopMarker);if(f[3]==="end"){if(a.getTokenAt(c,f.index+1).type==="keyword")return"end"}else if(!f[1]||a.getTokenAt(c,f.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,c){var u=a.doc.getLine(c),i=this.foldingStartMarker.exec(u);if(i)return i[1]||i[3]?this.rubyBlock(a,c,i.index+2):this.openingBracketBlock(a,"{",c,i.index);var i=this.foldingStopMarker.exec(u);if(i)return i[3]==="end"&&a.getTokenAt(c,i.index+1).type==="keyword"?this.rubyBlock(a,c,i.index+1):i[1]==="=end"&&a.getTokenAt(c,i.index+1).type==="comment.multiline"?this.rubyBlock(a,c,i.index+1):this.closingBracketBlock(a,"}",c,i.index+i[0].length)},this.rubyBlock=function(a,l,c,u){var i=new h(a,l,c),s=i.getCurrentToken();if(!(!s||s.type!="keyword"&&s.type!="comment.multiline")){var f=s.value,b=a.getLine(l);switch(s.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);if(!x.test(b))return;var I=this.indentKeywords[f];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var I=1;break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");if(!x.test(b))return;var I=1;break;default:var I=this.indentKeywords[f]}var M=[f];if(I){var A=I===-1?a.getLine(l-1).length:a.getLine(l).length,C=l,O=[];if(O.push(i.getCurrentTokenRange()),i.step=I===-1?i.stepBackward:i.stepForward,s.type=="comment.multiline"){for(;s=i.step();)if(s.type==="comment.multiline"){if(I==1){if(A=6,s.value=="=end")break}else if(s.value=="=begin")break}}else for(;s=i.step();){var D=!1;if(s.type==="keyword"){var E=I*this.indentKeywords[s.value];switch(b=a.getLine(i.getCurrentTokenRow()),s.value){case"do":for(var R=i.$tokenIndex-1;R>=0;R--){var B=i.$rowTokens[R];if(B&&(B.value=="while"||B.value=="until"||B.value=="for")){E=0;break}}break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");(!x.test(b)||f=="case")&&(E=0,D=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);x.test(b)||(E=0,D=!0);break;case"when":(/\sthen\s/.test(b)||f=="case")&&(E=0,D=!0)}if(E>0)M.unshift(s.value);else if(E<=0&&D===!1){if(M.shift(),!M.length&&((f=="while"||f=="until"||f=="for")&&s.value!="do"||s.value=="do"&&I==-1&&E!=0||s.value!="do"))break;E===0&&M.unshift(s.value)}}}if(!s)return null;if(u)return O.push(i.getCurrentTokenRange()),O;var l=i.getCurrentTokenRow();if(I===-1){if(s.type==="comment.multiline")var F=6;else var F=a.getLine(l).length;return new w(l,F,C-1,A)}return new w(C,A,l-1,a.getLine(l-1).length)}}}}).call(d.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../range").Range,a=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};g.inherits(l,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(c,u,i){var s=this.$getIndent(u),f=this.getTokenizer().getLineTokens(u,c),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(c=="start"){var x=u.match(/^.*[\{\(\[]\s*$/),I=u.match(/^\s*(class|def|module)\s.*$/),M=u.match(/.*do(\s*|\s+\|.*\|\s*)$/),A=u.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||I||M||A)&&(s+=i)}return s},this.checkOutdent=function(c,u,i){return/^\s+(end|else|rescue|ensure)$/.test(u+i)||this.$outdent.checkOutdent(u,i)},this.autoOutdent=function(c,u,i){var s=u.getLine(i);if(/}/.test(s))return this.$outdent.autoOutdent(u,i);var f=this.$getIndent(s),b=u.getLine(i-1),x=this.$getIndent(b),I=u.getTabString();x.length<=f.length&&f.slice(-I.length)==I&&u.remove(new d(i,f.length-I.length,i,f.length))},this.getMatching=function(c,u,i){if(u==null){var s=c.selection.lead;i=s.column,u=s.row}var f=c.getTokenAt(u,i);if(f&&f.value in this.indentKeywords)return this.foldingRules.rubyBlock(c,u,i,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/ruby"],function(e){t&&(t.exports=e)})})()})(ig)),ig.exports}pk();var sg={exports:{}},ag;function gk(){return ag||(ag=1,(function(t,n){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",d="True|False|None|NotImplemented|Ellipsis|__debug__",a="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":d,keyword:h},"identifier"),c="[uU]?",u="[rR]",i="[fF]",s="(?:[rR][fF]|[fF][rR])",f="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",I="(?:0[bB][01]+)",M="(?:"+f+"|"+b+"|"+x+"|"+I+")",A="(?:[eE][+-]?\\d+)",C="(?:\\.\\d+)",O="(?:\\d+)",D="(?:(?:"+O+"?"+C+")|(?:"+O+"\\.))",E="(?:(?:"+D+"|"+O+")"+A+")",R="(?:"+E+"|"+D+")",B=`\\\\(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:c+'"{3}',next:"qqstring3"},{token:"string",regex:c+'"(?=.)',next:"qqstring"},{token:"string",regex:c+"'{3}",next:"qstring3"},{token:"string",regex:c+"'(?=.)",next:"qstring"},{token:"string",regex:u+'"{3}',next:"rawqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rawqqstring"},{token:"string",regex:u+"'{3}",next:"rawqstring3"},{token:"string",regex:u+"'(?=.)",next:"rawqstring"},{token:"string",regex:i+'"{3}',next:"fqqstring3"},{token:"string",regex:i+'"(?=.)',next:"fqqstring"},{token:"string",regex:i+"'{3}",next:"fqstring3"},{token:"string",regex:i+"'(?=.)",next:"fqstring"},{token:"string",regex:s+'"{3}',next:"rfqqstring3"},{token:"string",regex:s+'"(?=.)',next:"rfqqstring"},{token:"string",regex:s+"'{3}",next:"rfqstring3"},{token:"string",regex:s+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:B},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:B},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:B},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:B},{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:B},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:B},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:B},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:B},{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:"(?:"+R+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:R},{token:"constant.numeric",regex:M+"[lL]\\b"},{token:"constant.numeric",regex:M+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};g.inherits(w,p),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var g=e("../../lib/oop"),p=e("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};g.inherits(w,p),(function(){this.getFoldWidgetRange=function(h,d,a){var l=h.getLine(a),c=l.match(this.foldingStartMarker);if(c)return c[1]?this.openingBracketBlock(h,c[1],a,c.index):c[2]?this.indentationBlock(h,a,c.index+c[2].length):this.indentationBlock(h,a)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,d=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};g.inherits(a,p),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(c,u,i){var s=this.$getIndent(u),f=this.getTokenizer().getLineTokens(u,c),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(c=="start"){var x=u.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,u,i){if(i!==`\r
|
|
989
|
-
`&&i!=="\r"&&i!==`
|
|
990
|
-
`)return!1;var s=this.getTokenizer().getLineTokens(u.trim(),c).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(c,u,i){i+=1;var s=this.$getIndent(u.getLine(i)),f=u.getTabString();s.slice(-f.length)==f&&u.remove(new d(i,s.length-f.length,i,s.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/python"],function(e){t&&(t.exports=e)})})()})(sg)),sg.exports}gk();var lg={exports:{}},cg;function mk(){return cg||(cg=1,(function(t,n){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};g.inherits(w,p),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var g=e("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,c=w.findMatchingBracket({row:h,column:l});if(!c||c.row==h)return 0;var u=this.$getIndent(w.getLine(c.row));w.replace(new g(h,0,h,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var g=e("../../lib/oop"),p=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};g.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var c=d.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var u=this._getFoldWidgetBase(d,a,l);return!u&&this.startRegionRe.test(c)?"start":u},this.getFoldWidgetRange=function(d,a,l,c){var u=d.getLine(l);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(d,u,l);var i=u.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(c?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=u.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),c=l.search(/\S/),u=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(c>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=u)break;if(x.isMultiLine())a=x.end.row;else if(c==b)break}s=a}}return new p(u,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var c=a.search(/\s*$/),u=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<u;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new p(i,c,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new d};g.inherits(l,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(c,u,i){var s=this.$getIndent(u);if(c=="start"){var f=u.match(/^.*[\{\(\[]\s*$/);f&&(s+=i)}return s},this.checkOutdent=function(c,u,i){return this.$outdent.checkOutdent(u,i)},this.autoOutdent=function(c,u,i){this.$outdent.autoOutdent(u,i)},this.createWorker=function(c){var u=new a(["ace"],"ace/mode/json_worker","JsonWorker");return u.attachToDocument(c.getDocument()),u.on("annotate",function(i){c.setAnnotations(i.data)}),u.on("terminate",function(){c.clearAnnotations()}),u},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/json"],function(e){t&&(t.exports=e)})})()})(lg)),lg.exports}mk();var ug={exports:{}},hg;function vk(){return hg||(hg=1,(function(t,n){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop");e("../lib/lang");var p=e("./text_highlight_rules").TextHighlightRules,w=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=r.supportFunction="rgb|rgba|url|attr|counter|counters",d=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",i=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",s=function(){var f=this.createKeywordMapper({"support.function":h,"support.constant":d,"support.type":w,"support.constant.color":a,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{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:"("+c+")(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:c},{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:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:i},{include:"url"},{token:f,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};g.inherits(s,p),r.CssHighlightRules=s}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};g.inherits(w,p),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,r,v){function g(){var c=a.replace("\\d","\\d\\-"),u={onMatch:function(s,f,b){var x=s.charAt(1)=="/"?2:1;return x==1?(f!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&f==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:s.slice(0,x)},{type:"meta.tag.tag-name.xml",value:s.substr(x)}]},regex:"</?(?:"+c+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(u);var i={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[i,u,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(s,f,b){return f==b[0]&&b.shift(),s.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:s}]},nextState:"jsx"},i,p("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:c},{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"}]},u],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function p(c){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,d=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",l=function(c){var u={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},i=this.createKeywordMapper(u,"identifier"),s="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",f="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(u).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),p("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+s+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:i,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),p("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:[p("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!c||!c.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(I,M,A){if(this.next=I=="{"?this.nextState:"",I=="{"&&A.length)A.unshift("start",M);else if(I=="}"&&A.length&&(A.shift(),this.next=A.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return I=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:f},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!c||c.jsx!=0)&&g.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,d),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=function(h){var d="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+d+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:d},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+d+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+d+":)?"+d+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:d},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,d,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:d+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,c,u){return u.splice(0),this.token}}],this.embedRules(h,d,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(p.prototype),g.inherits(w,p),r.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,d=e("./xml_highlight_rules").XmlHighlightRules,a=p.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){d.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(c,u){var i=a[u];return["meta.tag.punctuation."+(c=="<"?"":"end-")+"tag-open.xml","meta.tag"+(i?"."+i:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};g.inherits(l,d),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,v){var g=e("../config").$modes,p=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,d=e("./html_highlight_rules").HtmlHighlightRules,a=function(c){return"(?:[^"+w.escapeRegExp(c)+"\\\\]|\\\\.)*"},l=function(){d.call(this);var c={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(i,s,f,b){var x=i.match(/^(\s*)([`~]+)(.*)/),I=/[\w-]+|$/.exec(x[3])[0];return g[I]||(I=""),f.unshift("githubblock",[],[x[1],x[2],I],s),this.token},next:"githubblock"},u=[{token:"support.function",regex:".*",onMatch:function(i,s,f,b){var x=f[1],I=f[2][0],M=f[2][1],A=f[2][2],C=/^(\s*)(`+|~+)\s*$/.exec(i);if(C&&C[1].length<I.length+3&&C[2].length>=M.length&&C[2][0]==M[0])return f.splice(0,3),this.next=f.shift(),this.token;if(this.next="",A&&g[A]){var O=g[A].getTokenizer().getLineTokens(i,x.slice(0));return f[1]=O.state,O.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(i){return"markup.heading."+i.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},c,{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},c,{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:u}),this.normalizeRules()};p.inherits(l,h),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,v){var g=e("../../lib/oop"),p=e("./fold_mode").FoldMode,w=e("../../range").Range,h=r.FoldMode=function(){};g.inherits(h,p),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(d,a,l){var c=d.getLine(l);return this.foldingStartMarker.test(c)?c[0]=="`"&&d.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(d,a,l){function c(D){return I=d.getTokens(D)[0],I&&I.type.lastIndexOf(M,0)===0}function u(){var D=I.value[0];return D=="="?6:D=="-"?5:7-I.value.search(/[^#]|$/)}var i=d.getLine(l),s=i.length,f=d.getLength(),b=l,x=l;if(i.match(this.foldingStartMarker)){if(i[0]=="`"){if(d.bgTokenizer.getState(l)!=="start"){for(;++l<f&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(b,s,l,0)}for(;l-- >0&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(l,i.length,b,0)}var I,M="markup.heading";if(c(l)){for(var A=u();++l<f;)if(c(l)){var C=u();if(C>=A)break}if(x=l-(!I||["=","-"].indexOf(I.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(d.getLine(x));)x--;if(x>b){var O=d.getLine(x).length;return new w(b,s,x,O)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var g=e("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,c=w.findMatchingBracket({row:h,column:l});if(!c||c.row==h)return 0;var u=this.$getIndent(w.getLine(c.row));w.replace(new g(h,0,h,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,v){function g(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var p=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,d=function(){this.add("string_dquotes","insertion",function(a,l,c,u,i){if(i=='"'||i=="'"){var s=i,f=u.doc.getTextRange(c.getSelectionRange());if(f!==""&&f!=="'"&&f!='"'&&c.getWrapBehavioursEnabled())return{text:s+f+s,selection:!1};var b=c.getCursorPosition(),x=u.doc.getLine(b.row),I=x.substring(b.column,b.column+1),M=new h(u,b.row,b.column),A=M.getCurrentToken();if(I==s&&(g(A,"attribute-value")||g(A,"string")))return{text:"",selection:[1,1]};if(A||(A=M.stepBackward()),!A)return;for(;g(A,"tag-whitespace")||g(A,"whitespace");)A=M.stepBackward();var C=!I||I.match(/\s/);if(g(A,"attribute-equals")&&(C||I==">")||g(A,"decl-attribute-equals")&&(C||I=="?"))return{text:s+s,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,c,u,i){var s=u.doc.getTextRange(i);if(!i.isMultiLine()&&(s=='"'||s=="'")){var f=u.doc.getLine(i.start.row),b=f.substring(i.start.column+1,i.start.column+2);if(b==s)return i.end.column++,i}}),this.add("autoclosing","insertion",function(a,l,c,u,i){if(i==">"){var s=c.getSelectionRange().start,f=new h(u,s.row,s.column),b=f.getCurrentToken()||f.stepBackward();if(!b||!(g(b,"tag-name")||g(b,"tag-whitespace")||g(b,"attribute-name")||g(b,"attribute-equals")||g(b,"attribute-value"))||g(b,"reference.attribute-value"))return;if(g(b,"attribute-value")){var x=f.getCurrentTokenColumn()+b.value.length;if(s.column<x)return;if(s.column==x){var I=f.stepForward();if(I&&g(I,"attribute-value"))return;f.stepBackward()}}if(/^\s*>/.test(u.getLine(s.row).slice(s.column)))return;for(;!g(b,"tag-name");)if(b=f.stepBackward(),b.value=="<"){b=f.stepForward();break}var M=f.getCurrentTokenRow(),A=f.getCurrentTokenColumn();if(g(f.stepBackward(),"end-tag-open"))return;var C=b.value;return M==s.row&&(C=C.substring(0,s.column-A)),this.voidElements&&this.voidElements.hasOwnProperty(C.toLowerCase())?void 0:{text:"></"+C+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,c,u,i){if(i==`
|
|
991
|
-
`){var s=c.getCursorPosition(),f=u.getLine(s.row),b=new h(u,s.row,s.column),x=b.getCurrentToken();if(g(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var I=x.value,M=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[I]||!this.voidElements){var A=u.getTokenAt(s.row,s.column+1),f=u.getLine(M),C=this.$getIndent(f),O=C+u.getTabString();return A&&A.value==="</"?{text:`
|
|
992
|
-
`+O+`
|
|
993
|
-
`+C,selection:[1,O.length,1,O.length]}:{text:`
|
|
994
|
-
`+O}}}}})};p.inherits(d,w),r.XmlBehaviour=d}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,r,v){var g=e("../../lib/oop"),p=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,d=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,c,u,i,s){if(s==">"){var f=u.getSelectionRange().start,b=new p(i,f.row,f.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};g.inherits(d,w),r.JavaScriptBehaviour=d}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){function g(l,c){return l&&l.type&&l.type.lastIndexOf(c+".xml")>-1}var p=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,d=r.FoldMode=function(l,c){h.call(this),this.voidElements=l||{},this.optionalEndTags=p.mixin({},this.voidElements),c&&p.mixin(this.optionalEndTags,c)};p.inherits(d,h);var a=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,c,u){var i=this._getFirstTagInLine(l,u);return i?i.closing||!i.tagName&&i.selfClosing?c==="markbeginend"?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())||this._findEndTagInLine(l,u,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(l,u)},this.getCommentFoldWidget=function(l,c){return/comment/.test(l.getState(c))&&/<!-/.test(l.getLine(c))?"start":""},this._getFirstTagInLine=function(l,c){for(var u=l.getTokens(c),i=new a,s=0;s<u.length;s++){var f=u[s];if(g(f,"tag-open")){if(i.end.column=i.start.column+f.value.length,i.closing=g(f,"end-tag-open"),f=u[++s],!f)return null;if(i.tagName=f.value,f.value===""){if(f=u[++s],!f)return null;i.tagName=f.value}for(i.end.column+=f.value.length,s++;s<u.length;s++)if(f=u[s],i.end.column+=f.value.length,g(f,"tag-close")){i.selfClosing=f.value=="/>";break}return i}if(g(f,"tag-close"))return i.selfClosing=f.value=="/>",i;i.start.column+=f.value.length}return null},this._findEndTagInLine=function(l,c,u,i){for(var s=l.getTokens(c),f=0,b=0;b<s.length;b++){var x=s[b];if(f+=x.value.length,!(f<i-1)&&g(x,"end-tag-open")&&(x=s[b+1],g(x,"tag-name")&&x.value===""&&(x=s[b+2]),x&&x.value==u))return!0}return!1},this.getFoldWidgetRange=function(l,c,u){var i=this._getFirstTagInLine(l,u);if(!i)return this.getCommentFoldWidget(l,u)&&l.getCommentFoldRange(u,l.getLine(u).length);var s=l.getMatchingTags({row:u,column:0});if(s)return new w(s.openTag.end.row,s.openTag.end.column,s.closeTag.start.row,s.closeTag.start.column)}}).call(d.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var g=e("../../lib/oop"),p=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};g.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var c=d.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var u=this._getFoldWidgetBase(d,a,l);return!u&&this.startRegionRe.test(c)?"start":u},this.getFoldWidgetRange=function(d,a,l,c){var u=d.getLine(l);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(d,u,l);var i=u.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(c?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=u.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),c=l.search(/\S/),u=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(c>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=u)break;if(x.isMultiLine())a=x.end.row;else if(c==b)break}s=a}}return new p(u,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var c=a.search(/\s*$/),u=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<u;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new p(i,c,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,v){var g=e("../../lib/oop"),p=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end))),this.xmlFoldMode=new p};g.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var c=this.getFoldWidgetBase(d,a,l);return c||this.xmlFoldMode.getFoldWidget(d,a,l)},this.getFoldWidgetRange=function(d,a,l,c){var u=this.getFoldWidgetRangeBase(d,a,l,c);return u||this.xmlFoldMode.getFoldWidgetRange(d,a,l)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,l=e("./folding/javascript").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new l};g.inherits(c,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(u,i,s){var f=this.$getIndent(i),b=this.getTokenizer().getLineTokens(i,u),x=b.tokens,I=b.state;if(x.length&&x[x.length-1].type=="comment")return f;if(u=="start"||u=="no_regex"){var M=i.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);M&&(f+=s)}else if(u=="doc-start"&&(I=="start"||I=="no_regex"))return"";return f},this.checkOutdent=function(u,i,s){return this.$outdent.checkOutdent(i,s)},this.autoOutdent=function(u,i,s){this.$outdent.autoOutdent(i,s)},this.createWorker=function(u){var i=new d(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return i.attachToDocument(u.getDocument()),i.on("annotate",function(s){u.setAnnotations(s.data)}),i.on("terminate",function(){u.clearAnnotations()}),i},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,v){var g={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}},p=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var d=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});g.hasOwnProperty(d)||(g[d]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,d,a){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var l=h.getLine(d.row).substr(0,d.column),c=/\([^)]*$/.test(l);return c&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,h,d,a):this.getPropertyCompletions(w,h,d,a,c)}return[]},this.getPropertyCompletions=function(w,h,d,a,l){l=l||!1;var c=Object.keys(g);return c.map(function(u){return{caption:u,snippet:u+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,d,a){var l=h.getLine(d.row).substr(0,d.column),c=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!c)return[];var u=[];return c in g&&typeof g[c]=="object"&&(u=Object.keys(g[c])),u.map(function(i){return{caption:i,snippet:i,meta:"property value",score:1e6}})}}).call(p.prototype),r.CssCompletions=p}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,r,v){var g=e("../../lib/oop");e("../behaviour").Behaviour;var p=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(p),this.add("colon","insertion",function(d,a,l,c,u){if(u===":"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=new w(c,i.row,i.column),f=s.getCurrentToken();if(f&&f.value.match(/\s+/)&&(f=s.stepBackward()),f&&f.type==="support.type"){var b=c.doc.getLine(i.row),x=b.substring(i.column,i.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(i.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(d,a,l,c,u){var i=c.doc.getTextRange(u);if(!u.isMultiLine()&&i===":"){var s=l.getCursorPosition(),f=new w(c,s.row,s.column),b=f.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=f.stepBackward()),b&&b.type==="support.type"){var x=c.doc.getLine(u.start.row),I=x.substring(u.end.column,u.end.column+1);if(I===";")return u.end.column++,u}}}),this.add("semicolon","insertion",function(d,a,l,c,u){if(u===";"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=c.doc.getLine(i.row),f=s.substring(i.column,i.column+1);if(f===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(d,a,l,c,u){if(u==="!"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=c.doc.getLine(i.row);if(/^\s*(;|}|$)/.test(s.substring(i.column)))return{text:"!important",selection:[10,10]}}})};g.inherits(h,p),r.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new c};g.inherits(u,p),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(i,s,f){var b=this.$getIndent(s),x=this.getTokenizer().getLineTokens(s,i).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var I=s.match(/^.*\{\s*$/);return I&&(b+=f),b},this.checkOutdent=function(i,s,f){return this.$outdent.checkOutdent(s,f)},this.autoOutdent=function(i,s,f){this.$outdent.autoOutdent(s,f)},this.getCompletions=function(i,s,f,b){return this.$completer.getCompletions(i,s,f,b)},this.createWorker=function(i){var s=new d(["ace"],"ace/mode/css_worker","Worker");return s.attachToDocument(i.getDocument()),s.on("annotate",function(f){i.setAnnotations(f.data)}),s.on("terminate",function(){i.clearAnnotations()}),s},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(u.prototype),r.Mode=u}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var g=e("../../lib/oop"),p=e("./fold_mode").FoldMode,w=r.FoldMode=function(h,d){this.defaultMode=h,this.subModes=d};g.inherits(w,p),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var d in this.subModes)if(h.indexOf(d)===0)return this.subModes[d];return null},this.$tryMode=function(h,d,a,l){var c=this.$getMode(h);return c?c.getFoldWidget(d,a,l):""},this.getFoldWidget=function(h,d,a){return this.$tryMode(h.getState(a-1),h,d,a)||this.$tryMode(h.getState(a),h,d,a)||this.defaultMode.getFoldWidget(h,d,a)},this.getFoldWidgetRange=function(h,d,a){var l=this.$getMode(h.getState(a-1));return(!l||!l.getFoldWidget(h,d,a))&&(l=this.$getMode(h.getState(a))),(!l||!l.getFoldWidget(h,d,a))&&(l=this.defaultMode),l.getFoldWidgetRange(h,d,a)}}).call(w.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,v){var g=e("../../lib/oop"),p=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,d=r.FoldMode=function(a,l){p.call(this,new w(a,l),{"js-":new h,"css-":new h})};g.inherits(d,p)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,v){function g(s,f){return s.type.lastIndexOf(f+".xml")>-1}function p(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!g(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function w(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!g(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var h=e("../token_iterator").TokenIterator,d=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],a=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=d.concat(a),c={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:{}},u=Object.keys(c),i=function(){};(function(){this.getCompletions=function(s,f,b,x){var I=f.getTokenAt(b.row,b.column);if(!I)return[];if(g(I,"tag-name")||g(I,"tag-open")||g(I,"end-tag-open"))return this.getTagCompletions(s,f,b,x);if(g(I,"tag-whitespace")||g(I,"attribute-name"))return this.getAttributeCompletions(s,f,b,x);if(g(I,"attribute-value"))return this.getAttributeValueCompletions(s,f,b,x);var M=f.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(M)?this.getHTMLEntityCompletions(s,f,b,x):[]},this.getTagCompletions=function(s,f,b,x){return u.map(function(I){return{value:I,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(s,f,b,x){var I=p(f,b);if(!I)return[];var M=l;return I in c&&(M=M.concat(Object.keys(c[I]))),M.map(function(A){return{caption:A,snippet:A+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(s,f,b,x){var I=p(f,b),M=w(f,b);if(!I)return[];var A=[];return I in c&&M in c[I]&&typeof c[I][M]=="object"&&(A=Object.keys(c[I][M])),A.map(function(C){return{caption:C,snippet:C,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(s,f,b,x){var I=["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 I.map(function(M){return{caption:M,snippet:M,meta:"html entity",score:1e6}})}}).call(i.prototype),r.HtmlCompletions=i}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,d=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,c=e("./folding/html").FoldMode,u=e("./html_completions").HtmlCompletions,i=e("../worker/worker_client").WorkerClient,s=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],f=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new u,this.createModeDelegates({"js-":h,"css-":d}),this.foldingRules=new c(this.voidElements,p.arrayToMap(f))};g.inherits(b,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=p.arrayToMap(s),this.getNextLineIndent=function(x,I,M){return this.$getIndent(I)},this.checkOutdent=function(x,I,M){return!1},this.getCompletions=function(x,I,M,A){return this.$completer.getCompletions(x,I,M,A)},this.createWorker=function(x){if(this.constructor==b){var I=new i(["ace"],"ace/mode/html_worker","Worker");return I.attachToDocument(x.getDocument()),this.fragmentContext&&I.call("setOptions",[{context:this.fragmentContext}]),I.on("error",function(M){x.setAnnotations(M.data)}),I.on("terminate",function(){x.clearAnnotations()}),I}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),r.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var g=e("../lib/oop"),p=e("./text_highlight_rules").TextHighlightRules,w=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",d=function(){var a=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",c="(?:\\.\\d+)",u="(?:\\d+)",i="(?:(?:"+u+"?"+c+")|(?:"+u+"\\.))",s="(?:(?:"+i+"|"+u+"))",f="(?:"+s+"|"+i+")",b="(?:&"+u+")",x="[a-zA-Z_][a-zA-Z0-9_]*",I="(?:"+x+"(?==))",M="(?:\\$(?:SHLVL|\\$|\\!|\\?))",A="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(C,O,D){var E=C[2]=="-"?"indentedHeredoc":"heredoc",R=C.split(this.splitRegex);return D.push(E,R[4]),[{type:"constant",value:R[1]},{type:"text",value:R[2]},{type:"string",value:R[3]},{type:"support.class",value:R[4]},{type:"string",value:R[5]}]},rules:{heredoc:[{onMatch:function(C,O,D){return C===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(C,O,D){return C===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(C,O){return O[0]==="heredoc"||O[0]==="indentedHeredoc"?O[0]:C}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:M},{token:"variable",regex:I},{include:"variables"},{token:"support.function",regex:A},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:f},{token:"constant.numeric",regex:l+"\\b"},{token:a,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};g.inherits(d,p),r.ShHighlightRules=d}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,r,v){var g=e("../lib/oop"),p=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,d=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=w,this.foldingRules=new d,this.$behaviour=this.$defaultBehaviour};g.inherits(a,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(c,u,i){var s=this.$getIndent(u),f=this.getTokenizer().getLineTokens(u,c),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(c=="start"){var x=u.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,u,i){if(i!==`\r
|
|
995
|
-
`&&i!=="\r"&&i!==`
|
|
996
|
-
`)return!1;var s=this.getTokenizer().getLineTokens(u.trim(),c).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(c,u,i){i+=1;var s=this.$getIndent(u.getLine(i)),f=u.getTabString();s.slice(-f.length)==f&&u.remove(new h(i,s.length-f.length,i,s.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,r,v){var g=e("../lib/oop"),p=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,d=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=h,this.$behaviour=new d,this.foldingRules=new a};g.inherits(c,w),(function(){this.voidElements=p.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(u){var i=new l(["ace"],"ace/mode/xml_worker","Worker");return i.attachToDocument(u.getDocument()),i.on("error",function(s){u.setAnnotations(s.data)}),i.on("terminate",function(){u.clearAnnotations()}),i},this.$id="ace/mode/xml"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,r,v){var g=e("../lib/oop"),p=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,d=e("./folding/markdown").FoldMode,a=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new d,this.$behaviour=new p({braces:!0})};g.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,c,u){if(l=="listblock"){var i=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(c);if(!i)return"";var s=i[2];return s||(s=parseInt(i[3],10)+1+"."),i[1]+s+i[4]}return this.$getIndent(c)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/markdown"],function(e){t&&(t.exports=e)})})()})(ug)),ug.exports}vk();var dg={exports:{}},fg;function yk(){return fg||(fg=1,(function(t,n){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-twilight .ace_gutter {
|
|
997
|
-
background: #232323;
|
|
998
|
-
color: #E2E2E2
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.ace-twilight .ace_print-margin {
|
|
1002
|
-
width: 1px;
|
|
1003
|
-
background: #232323
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
.ace-twilight {
|
|
1007
|
-
background-color: #141414;
|
|
1008
|
-
color: #F8F8F8
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
.ace-twilight .ace_cursor {
|
|
1012
|
-
color: #A7A7A7
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
.ace-twilight .ace_marker-layer .ace_selection {
|
|
1016
|
-
background: rgba(221, 240, 255, 0.20)
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1020
|
-
box-shadow: 0 0 3px 0px #141414;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.ace-twilight .ace_marker-layer .ace_step {
|
|
1024
|
-
background: rgb(102, 82, 0)
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1028
|
-
margin: -1px 0 0 -1px;
|
|
1029
|
-
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1033
|
-
background: rgba(255, 255, 255, 0.031)
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
.ace-twilight .ace_gutter-active-line {
|
|
1037
|
-
background-color: rgba(255, 255, 255, 0.031)
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1041
|
-
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
.ace-twilight .ace_invisible {
|
|
1045
|
-
color: rgba(255, 255, 255, 0.25)
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
.ace-twilight .ace_keyword,
|
|
1049
|
-
.ace-twilight .ace_meta {
|
|
1050
|
-
color: #CDA869
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
.ace-twilight .ace_constant,
|
|
1054
|
-
.ace-twilight .ace_constant.ace_character,
|
|
1055
|
-
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1056
|
-
.ace-twilight .ace_constant.ace_other,
|
|
1057
|
-
.ace-twilight .ace_heading,
|
|
1058
|
-
.ace-twilight .ace_markup.ace_heading,
|
|
1059
|
-
.ace-twilight .ace_support.ace_constant {
|
|
1060
|
-
color: #CF6A4C
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
.ace-twilight .ace_invalid.ace_illegal {
|
|
1064
|
-
color: #F8F8F8;
|
|
1065
|
-
background-color: rgba(86, 45, 86, 0.75)
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1069
|
-
text-decoration: underline;
|
|
1070
|
-
font-style: italic;
|
|
1071
|
-
color: #D2A8A1
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
.ace-twilight .ace_support {
|
|
1075
|
-
color: #9B859D
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
.ace-twilight .ace_fold {
|
|
1079
|
-
background-color: #AC885B;
|
|
1080
|
-
border-color: #F8F8F8
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
.ace-twilight .ace_support.ace_function {
|
|
1084
|
-
color: #DAD085
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
.ace-twilight .ace_list,
|
|
1088
|
-
.ace-twilight .ace_markup.ace_list,
|
|
1089
|
-
.ace-twilight .ace_storage {
|
|
1090
|
-
color: #F9EE98
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1094
|
-
.ace-twilight .ace_meta.ace_tag {
|
|
1095
|
-
color: #AC885B
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.ace-twilight .ace_string {
|
|
1099
|
-
color: #8F9D6A
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.ace-twilight .ace_string.ace_regexp {
|
|
1103
|
-
color: #E9C062
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
.ace-twilight .ace_comment {
|
|
1107
|
-
font-style: italic;
|
|
1108
|
-
color: #5F5A60
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
.ace-twilight .ace_variable {
|
|
1112
|
-
color: #7587A6
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
.ace-twilight .ace_xml-pe {
|
|
1116
|
-
color: #494949
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
.ace-twilight .ace_indent-guide {
|
|
1120
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
.ace-twilight .ace_indent-guide-active {
|
|
1124
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1125
|
-
}
|
|
1126
|
-
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,v){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=e("./twilight-css");var g=e("../lib/dom");g.importCssString(r.cssText,r.cssClass,!1)}),(function(){ace.require(["ace/theme/twilight"],function(e){t&&(t.exports=e)})})()})(dg)),dg.exports}yk();var pg={exports:{}},gg;function bk(){return gg||(gg=1,(function(t,n){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,r,v){function g(C){var O=new Date().toLocaleString("en-us",C);return O.length==1?"0"+O:O}var p=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,d=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,i=e("./clipboard"),s={CURRENT_WORD:function(C){return C.session.getTextRange(C.session.getWordRange())},SELECTION:function(C,O,D){var E=C.session.getTextRange();return D?E.replace(/\n\r?([ \t]*\S)/g,`
|
|
1127
|
-
`+D+"$1"):E},CURRENT_LINE:function(C){return C.session.getLine(C.getCursorPosition().row)},PREV_LINE:function(C){return C.session.getLine(C.getCursorPosition().row-1)},LINE_INDEX:function(C){return C.getCursorPosition().row},LINE_NUMBER:function(C){return C.getCursorPosition().row+1},SOFT_TABS:function(C){return C.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(C){return C.session.getTabSize()},CLIPBOARD:function(C){return i.getText&&i.getText()},FILENAME:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0]},FILENAME_BASE:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(C){return this.FILEPATH(C).replace(/[^/\\]*$/,"")},FILEPATH:function(C){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(C){var O=C.session.$mode||{};return O.blockComment&&O.blockComment.start||""},BLOCK_COMMENT_END:function(C){var O=C.session.$mode||{};return O.blockComment&&O.blockComment.end||""},LINE_COMMENT:function(C){var O=C.session.$mode||{};return O.lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};s.SELECTED_TEXT=s.SELECTION;var f=(function(){function C(){this.snippetMap={},this.snippetNameMap={},this.variables=s}return C.prototype.getTokenizer=function(){return C.$tokenizer||this.createTokenizer()},C.prototype.createTokenizer=function(){function O(R){return R=R.substr(1),/^\d+$/.test(R)?[{tabstopId:parseInt(R,10)}]:[{text:R}]}function D(R){return"(?:[^\\\\"+R+"]|\\\\.)"}var E={regex:"/("+D("/")+"+)/",onMatch:function(R,B,F){var N=F[0];return N.fmtString=!0,N.guard=R.slice(1,-1),N.flag="",""},next:"formatString"};return C.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(R,B,F){var N=R[1];return(N=="}"&&F.length||"`$\\".indexOf(N)!=-1)&&(R=N),[R]}},{regex:/}/,onMatch:function(R,B,F){return[F.length?F.shift():R]}},{regex:/\$(?:\d+|\w+)/,onMatch:O},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(R,B,F){var N=O(R.substr(1));return F.unshift(N[0]),N},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+D("\\|")+"*\\|",onMatch:function(R,B,F){var N=R.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return F[0].choices=N,[N[0]]},next:"start"},E,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(R,B,F){return F.length&&F[0].expectElse?(F[0].expectElse=!1,F[0].ifEnd={elseEnd:F[0]},[F[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(R,B,F){var N=R[1];return N=="}"&&F.length||"`$\\".indexOf(N)!=-1?R=N:N=="n"?R=`
|
|
1128
|
-
`:N=="t"?R=" ":"ulULE".indexOf(N)!=-1&&(R={changeCase:N,local:N>"a"}),[R]}},{regex:"/\\w*}",onMatch:function(R,B,F){var N=F.shift();return N&&(N.flag=R.slice(1,-1)),this.next=N&&N.tabstopId?"start":"",[N||R]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(R,B,F){return[{text:R.slice(1)}]}},{regex:/\${\w+/,onMatch:function(R,B,F){var N={text:R.slice(2)};return F.unshift(N),[N]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(R,B,F){var N=F.shift();return this.next=N&&N.tabstopId?"start":"",[N||R]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(R,B,F){var N=F[0];return N.formatFunction=R.slice(2,-1),[F.shift()]},next:"formatString"},E,{regex:/:[\?\-+]?/,onMatch:function(R,B,F){R[1]=="+"&&(F[0].ifEnd=F[0]),R[1]=="?"&&(F[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),C.$tokenizer},C.prototype.tokenizeTmSnippet=function(O,D){return this.getTokenizer().getLineTokens(O,D).tokens.map(function(E){return E.value||E})},C.prototype.getVariableValue=function(O,D,E){if(/^\d+$/.test(D))return(this.variables.__||{})[D]||"";if(/^[A-Z]\d+$/.test(D))return(this.variables[D[0]+"__"]||{})[D.substr(1)]||"";if(D=D.replace(/^TM_/,""),!this.variables.hasOwnProperty(D))return"";var R=this.variables[D];return typeof R=="function"&&(R=this.variables[D](O,D,E)),R??""},C.prototype.tmStrFormat=function(O,D,E){if(!D.fmt)return O;var R=D.flag||"",B=D.guard;B=new RegExp(B,R.replace(/[^gim]/g,""));var F=typeof D.fmt=="string"?this.tokenizeTmSnippet(D.fmt,"formatString"):D.fmt,N=this,$=O.replace(B,function(){var k=N.variables.__;N.variables.__=[].slice.call(arguments);for(var L=N.resolveVariables(F,E),W="E",U=0;U<L.length;U++){var q=L[U];if(typeof q=="object")if(L[U]="",q.changeCase&&q.local){var Z=L[U+1];Z&&typeof Z=="string"&&(q.changeCase=="u"?L[U]=Z[0].toUpperCase():L[U]=Z[0].toLowerCase(),L[U+1]=Z.substr(1))}else q.changeCase&&(W=q.changeCase);else W=="U"?L[U]=q.toUpperCase():W=="L"&&(L[U]=q.toLowerCase())}return N.variables.__=k,L.join("")});return $},C.prototype.tmFormatFunction=function(O,D,E){return D.formatFunction=="upcase"?O.toUpperCase():D.formatFunction=="downcase"?O.toLowerCase():O},C.prototype.resolveVariables=function(O,D){function E(W){var U=O.indexOf(W,N+1);U!=-1&&(N=U)}for(var R=[],B="",F=!0,N=0;N<O.length;N++){var $=O[N];if(typeof $=="string"){R.push($),$==`
|
|
1129
|
-
`?(F=!0,B=""):F&&(B=/^\t*/.exec($)[0],F=/\S/.test($));continue}if($){if(F=!1,$.fmtString){var k=O.indexOf($,N+1);k==-1&&(k=O.length),$.fmt=O.slice(N+1,k),N=k}if($.text){var L=this.getVariableValue(D,$.text,B)+"";$.fmtString&&(L=this.tmStrFormat(L,$,D)),$.formatFunction&&(L=this.tmFormatFunction(L,$,D)),L&&!$.ifEnd?(R.push(L),E($)):!L&&$.ifEnd&&E($.ifEnd)}else $.elseEnd?E($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&R.push($)}}return R},C.prototype.getDisplayTextForSnippet=function(O,D){var E=b.call(this,O,D);return E.text},C.prototype.insertSnippetForSelection=function(O,D,E){E===void 0&&(E={});var R=b.call(this,O,D,E),B=O.getSelectionRange(),F=O.session.replace(B,R.text),N=new x(O),$=O.inVirtualSelectionMode&&O.selection.index;N.addTabstops(R.tabstops,B.start,F,$)},C.prototype.insertSnippet=function(O,D,E){E===void 0&&(E={});var R=this;if(O.inVirtualSelectionMode)return R.insertSnippetForSelection(O,D,E);O.forEachSelection(function(){R.insertSnippetForSelection(O,D,E)},null,{keepOrder:!0}),O.tabstopManager&&O.tabstopManager.tabNext()},C.prototype.$getScope=function(O){var D=O.session.$mode.$id||"";if(D=D.split("/").pop(),D==="html"||D==="php"){D==="php"&&!O.session.$mode.inlinePhp&&(D="html");var E=O.getCursorPosition(),R=O.session.getState(E.row);typeof R=="object"&&(R=R[0]),R.substring&&(R.substring(0,3)=="js-"?D="javascript":R.substring(0,4)=="css-"?D="css":R.substring(0,4)=="php-"&&(D="php"))}return D},C.prototype.getActiveScopes=function(O){var D=this.$getScope(O),E=[D],R=this.snippetMap;return R[D]&&R[D].includeScopes&&E.push.apply(E,R[D].includeScopes),E.push("_"),E},C.prototype.expandWithTab=function(O,D){var E=this,R=O.forEachSelection(function(){return E.expandSnippetForSelection(O,D)},null,{keepOrder:!0});return R&&O.tabstopManager&&O.tabstopManager.tabNext(),R},C.prototype.expandSnippetForSelection=function(O,D){var E=O.getCursorPosition(),R=O.session.getLine(E.row),B=R.substring(0,E.column),F=R.substr(E.column),N=this.snippetMap,$;return this.getActiveScopes(O).some(function(k){var L=N[k];return L&&($=this.findMatchingSnippet(L,B,F)),!!$},this),$?(D&&D.dryRun||(O.session.doc.removeInLine(E.row,E.column-$.replaceBefore.length,E.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(O,$.content),this.variables.M__=this.variables.T__=null),!0):!1},C.prototype.findMatchingSnippet=function(O,D,E){for(var R=O.length;R--;){var B=O[R];if(!(B.startRe&&!B.startRe.test(D))&&!(B.endRe&&!B.endRe.test(E))&&!(!B.startRe&&!B.endRe))return B.matchBefore=B.startRe?B.startRe.exec(D):[""],B.matchAfter=B.endRe?B.endRe.exec(E):[""],B.replaceBefore=B.triggerRe?B.triggerRe.exec(D)[0]:"",B.replaceAfter=B.endTriggerRe?B.endTriggerRe.exec(E)[0]:"",B}},C.prototype.register=function(O,D){function E(k){return k&&!/^\^?\(.*\)\$?$|^\\b$/.test(k)&&(k="(?:"+k+")"),k||""}function R(k,L,W){return k=E(k),L=E(L),k=L+k,k&&k[k.length-1]!="$"&&(k+="$"),new RegExp(k)}function B(k){k.scope||(k.scope=D||"_"),D=k.scope,F[D]||(F[D]=[],N[D]={});var L=N[D];if(k.name){var W=L[k.name];W&&$.unregister(W),L[k.name]=k}F[D].push(k),k.prefix&&(k.tabTrigger=k.prefix),!k.content&&k.body&&(k.content=Array.isArray(k.body)?k.body.join(`
|
|
1130
|
-
`):k.body),k.tabTrigger&&!k.trigger&&(!k.guard&&/^\w/.test(k.tabTrigger)&&(k.guard="\\b"),k.trigger=d.escapeRegExp(k.tabTrigger)),!(!k.trigger&&!k.guard&&!k.endTrigger&&!k.endGuard)&&(k.startRe=R(k.trigger,k.guard),k.triggerRe=new RegExp(k.trigger),k.endRe=R(k.endTrigger,k.endGuard),k.endTriggerRe=new RegExp(k.endTrigger))}var F=this.snippetMap,N=this.snippetNameMap,$=this;O||(O=[]),Array.isArray(O)?O.forEach(B):Object.keys(O).forEach(function(k){B(O[k])}),this._signal("registerSnippets",{scope:D})},C.prototype.unregister=function(O,D){function E(F){var N=B[F.scope||D];if(N&&N[F.name]){delete N[F.name];var $=R[F.scope||D],k=$&&$.indexOf(F);k>=0&&$.splice(k,1)}}var R=this.snippetMap,B=this.snippetNameMap;O.content?E(O):Array.isArray(O)&&O.forEach(E)},C.prototype.parseSnippetFile=function(O){O=O.replace(/\r/g,"");for(var D=[],E={},R=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,B;B=R.exec(O);){if(B[1])try{E=JSON.parse(B[1]),D.push(E)}catch{}if(B[4])E.content=B[4].replace(/^\t/gm,""),D.push(E),E={};else{var F=B[2],N=B[3];if(F=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;E.guard=$.exec(N)[1],E.trigger=$.exec(N)[1],E.endTrigger=$.exec(N)[1],E.endGuard=$.exec(N)[1]}else F=="snippet"?(E.tabTrigger=N.match(/^\S*/)[0],E.name||(E.name=N)):F&&(E[F]=N)}}return D},C.prototype.getSnippetByName=function(O,D){var E=this.snippetNameMap,R;return this.getActiveScopes(D).some(function(B){var F=E[B];return F&&(R=F[O]),!!R},this),R},C})();w.implement(f.prototype,h);var b=function(C,O,D){function E(de){for(var me=[],$e=0;$e<de.length;$e++){var Me=de[$e];if(typeof Me=="object"){if(L[Me.tabstopId])continue;var Te=de.lastIndexOf(Me,$e-1);Me=me[Te]||{tabstopId:Me.tabstopId}}me[$e]=Me}return me}D===void 0&&(D={});var R=C.getCursorPosition(),B=C.session.getLine(R.row),F=C.session.getTabString(),N=B.match(/^\s*/)[0];R.column<N.length&&(N=N.slice(0,R.column)),O=O.replace(/\r/g,"");var $=this.tokenizeTmSnippet(O);$=this.resolveVariables($,C),$=$.map(function(de){return de==`
|
|
1131
|
-
`&&!D.excludeExtraIndent?de+N:typeof de=="string"?de.replace(/\t/g,F):de});var k=[];$.forEach(function(de,me){if(typeof de=="object"){var $e=de.tabstopId,Me=k[$e];if(Me||(Me=k[$e]=[],Me.index=$e,Me.value="",Me.parents={}),Me.indexOf(de)===-1){de.choices&&!Me.choices&&(Me.choices=de.choices),Me.push(de);var Te=$.indexOf(de,me+1);if(Te!==-1){var Xe=$.slice(me+1,Te),qe=Xe.some(function(rt){return typeof rt=="object"});qe&&!Me.value?Me.value=Xe:Xe.length&&(!Me.value||typeof Me.value!="string")&&(Me.value=Xe.join(""))}}}}),k.forEach(function(de){de.length=0});for(var L={},W=0;W<$.length;W++){var U=$[W];if(typeof U=="object"){var q=U.tabstopId,Z=k[q],Q=$.indexOf(U,W+1);if(L[q]){L[q]===U&&(delete L[q],Object.keys(L).forEach(function(de){Z.parents[de]=!0}));continue}L[q]=U;var le=Z.value;typeof le!="string"?le=E(le):U.fmt&&(le=this.tmStrFormat(le,U,C)),$.splice.apply($,[W+1,Math.max(0,Q-W)].concat(le,U)),Z.indexOf(U)===-1&&Z.push(U)}}var ne=0,ce=0,ae="";return $.forEach(function(de){if(typeof de=="string"){var me=de.split(`
|
|
1132
|
-
`);me.length>1?(ce=me[me.length-1].length,ne+=me.length-1):ce+=de.length,ae+=de}else de&&(de.start?de.end={row:ne,column:ce}:de.start={row:ne,column:ce})}),{text:ae,tabstops:k,tokens:$}},x=(function(){function C(O){if(this.index=0,this.ranges=[],this.tabstops=[],O.tabstopManager)return O.tabstopManager;O.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=d.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(O)}return C.prototype.attach=function(O){this.$openTabstops=null,this.selectedTabstop=null,this.editor=O,this.session=O.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},C.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},C.prototype.onChange=function(O){for(var D=O.action[0]=="r",E=this.selectedTabstop||{},R=E.parents||{},B=this.tabstops.slice(),F=0;F<B.length;F++){var N=B[F],$=N==E||R[N.index];if(N.rangeList.$bias=$?0:1,O.action=="remove"&&N!==E){var k=N.parents&&N.parents[E.index],L=N.rangeList.pointIndex(O.start,k);L=L<0?-L-1:L+1;var W=N.rangeList.pointIndex(O.end,k);W=W<0?-W-1:W-1;for(var U=N.rangeList.ranges.slice(L,W),q=0;q<U.length;q++)this.removeRange(U[q])}N.rangeList.$onChange(O)}var Z=this.session;!this.$inChange&&D&&Z.getLength()==1&&!Z.getValue()&&this.detach()},C.prototype.updateLinkedFields=function(){var O=this.selectedTabstop;if(!(!O||!O.hasLinkedRanges||!O.firstNonLinked)){this.$inChange=!0;for(var D=this.session,E=D.getTextRange(O.firstNonLinked),R=0;R<O.length;R++){var B=O[R];if(B.linked){var F=B.original,N=r.snippetManager.tmStrFormat(E,F,this.editor);D.replace(B,N)}}this.$inChange=!1}},C.prototype.onAfterExec=function(O){O.command&&!O.command.readOnly&&this.updateLinkedFields()},C.prototype.onChangeSelection=function(){if(this.editor){for(var O=this.editor.selection.lead,D=this.editor.selection.anchor,E=this.editor.selection.isEmpty(),R=0;R<this.ranges.length;R++)if(!this.ranges[R].linked){var B=this.ranges[R].contains(O.row,O.column),F=E||this.ranges[R].contains(D.row,D.column);if(B&&F)return}this.detach()}},C.prototype.onChangeSession=function(){this.detach()},C.prototype.tabNext=function(O){var D=this.tabstops.length,E=this.index+(O||1);E=Math.min(Math.max(E,1),D),E==D&&(E=0),this.selectTabstop(E),this.updateTabstopMarkers(),E===0&&this.detach()},C.prototype.selectTabstop=function(O){this.$openTabstops=null;var D=this.tabstops[this.index];if(D&&this.addTabstopMarkers(D),this.index=O,D=this.tabstops[this.index],!(!D||!D.length)){this.selectedTabstop=D;var E=D.firstNonLinked||D;if(D.choices&&(E.cursor=E.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(E);else{var R=this.editor.multiSelect;R.toSingleRange(E);for(var B=0;B<D.length;B++)D.hasLinkedRanges&&D[B].linked||R.addRange(D[B].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},C.prototype.addTabstops=function(O,D,E){var R=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!O[0]){var B=a.fromPoints(E,E);M(B.start,D),M(B.end,D),O[0]=[B],O[0].index=0}var F=this.index,N=[F+1,0],$=this.ranges,k=this.snippetId=(this.snippetId||0)+1;O.forEach(function(L,W){var U=this.$openTabstops[W]||L;U.snippetId=k;for(var q=0;q<L.length;q++){var Z=L[q],Q=a.fromPoints(Z.start,Z.end||Z.start);I(Q.start,D),I(Q.end,D),Q.original=Z,Q.tabstop=U,$.push(Q),U!=L?U.unshift(Q):U[q]=Q,Z.fmtString||U.firstNonLinked&&R?(Q.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=Q)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===L&&(N.push(U),this.$openTabstops[W]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new l,U.rangeList.$bias=0,U.rangeList.addList(U)},this),N.length>2&&(this.tabstops.length&&N.push(N.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,N))},C.prototype.addTabstopMarkers=function(O){var D=this.session;O.forEach(function(E){E.markerId||(E.markerId=D.addMarker(E,"ace_snippet-marker","text"))})},C.prototype.removeTabstopMarkers=function(O){var D=this.session;O.forEach(function(E){D.removeMarker(E.markerId),E.markerId=null})},C.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var O=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&O--,this.tabstops.forEach(function(D){D.snippetId===O?this.addTabstopMarkers(D):this.removeTabstopMarkers(D)},this)}},C.prototype.removeRange=function(O){var D=O.tabstop.indexOf(O);D!=-1&&O.tabstop.splice(D,1),D=this.ranges.indexOf(O),D!=-1&&this.ranges.splice(D,1),D=O.tabstop.rangeList.ranges.indexOf(O),D!=-1&&O.tabstop.splice(D,1),this.session.removeMarker(O.markerId),O.tabstop.length||(D=this.tabstops.indexOf(O.tabstop),D!=-1&&this.tabstops.splice(D,1),this.tabstops.length||this.detach())},C})();x.prototype.keyboardHandler=new c,x.prototype.keyboardHandler.bindKeys({Tab:function(C){r.snippetManager&&r.snippetManager.expandWithTab(C)||(C.tabstopManager.tabNext(1),C.renderer.scrollCursorIntoView())},"Shift-Tab":function(C){C.tabstopManager.tabNext(-1),C.renderer.scrollCursorIntoView()},Esc:function(C){C.tabstopManager.detach()}});var I=function(C,O){C.row==0&&(C.column+=O.column),C.row+=O.row},M=function(C,O){C.row==O.row&&(C.column-=O.column),C.row-=O.row};p.importCssString(`
|
|
1133
|
-
.ace_snippet-marker {
|
|
1134
|
-
-moz-box-sizing: border-box;
|
|
1135
|
-
box-sizing: border-box;
|
|
1136
|
-
background: rgba(194, 193, 208, 0.09);
|
|
1137
|
-
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1138
|
-
position: absolute;
|
|
1139
|
-
}`,"snippets.css",!1),r.snippetManager=new f;var A=e("./editor").Editor;(function(){this.insertSnippet=function(C,O){return r.snippetManager.insertSnippet(this,C,O)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(A.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,r,v){var g=e("../virtual_renderer").VirtualRenderer,p=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),d=e("../lib/lang"),a=e("../lib/dom"),l=e("../config").nls,c=e("./../lib/useragent"),u=function(I){return"suggest-aria-id:".concat(I)},i=c.isSafari?"menu":"listbox",s=c.isSafari?"menuitem":"option",f=c.isSafari?"aria-current":"aria-selected",b=function(I){var M=new g(I);M.$maxLines=4;var A=new p(M);return A.setHighlightActiveLine(!1),A.setShowPrintMargin(!1),A.renderer.setShowGutter(!1),A.renderer.setHighlightGutterLine(!1),A.$mouseHandler.$focusTimeout=0,A.$highlightTagPending=!0,A},x=(function(){function I(M){var A=a.createElement("div"),C=b(A);M&&M.appendChild(A),A.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var O=function(){};C.focus=O,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=O,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function($){var k=$.getDocumentPosition();C.selection.moveToPosition(k),R.start.row=R.end.row=k.row,$.stop()});var D,E=new w(-1,0,-1,1/0),R=new w(-1,0,-1,1/0);R.id=C.session.addMarker(R,"ace_active-line","fullLine"),C.setSelectOnHover=function($){$?E.id&&(C.session.removeMarker(E.id),E.id=null):E.id=C.session.addMarker(E,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function($){if(!D){D=$;return}if(!(D.x==$.x&&D.y==$.y)){D=$,D.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var k=D.getDocumentPosition().row;E.start.row!=k&&(E.id||C.setRow(k),F(k))}}),C.renderer.on("beforeRender",function(){if(D&&E.start.row!=-1){D.$pos=null;var $=D.getDocumentPosition().row;E.id||C.setRow($),F($,!0)}}),C.renderer.on("afterRender",function(){for(var $=C.renderer.$textLayer,k=$.config.firstRow,L=$.config.lastRow;k<=L;k++){var W=$.element.childNodes[k-$.config.firstRow];W.setAttribute("role",s),W.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),W.setAttribute("aria-setsize",C.data.length),W.setAttribute("aria-describedby","doc-tooltip"),W.setAttribute("aria-posinset",k+1);var U=C.getData(k);if(U){var q="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");W.setAttribute("aria-label",q)}var Z=W.querySelectorAll(".ace_completion-highlight");Z.forEach(function(Q){Q.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var $=C.getRow(),k=C.renderer.$textLayer,L=k.element.childNodes[$-k.config.firstRow],W=document.activeElement;if(L!==C.selectedNode&&C.selectedNode&&(a.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(f),C.selectedNode.removeAttribute("id")),W.removeAttribute("aria-activedescendant"),C.selectedNode=L,L){var U=u($);a.addCssClass(L,"ace_selected"),L.id=U,k.element.setAttribute("aria-activedescendant",U),W.setAttribute("aria-activedescendant",U),L.setAttribute(f,"true")}});var B=function(){F(-1)},F=function($,k){$!==E.start.row&&(E.start.row=E.end.row=$,k||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return E.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,B()}),C.on("hide",B),C.on("changeSelection",B),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function($){var k=C.data[$];return typeof k=="string"?k:k&&k.value||""};var N=C.session.bgTokenizer;return N.$tokenizeRow=function($){function k(de,me){de&&W.push({type:(L.className||"")+(me||""),value:de})}var L=C.data[$],W=[];if(!L)return W;typeof L=="string"&&(L={value:L});for(var U=L.caption||L.value||L.name,q=U.toLowerCase(),Z=(C.filterText||"").toLowerCase(),Q=0,le=0,ne=0;ne<=Z.length;ne++)if(ne!=le&&(L.matchMask&1<<ne||ne==Z.length)){var ce=Z.slice(le,ne);le=ne;var ae=q.indexOf(ce,Q);if(ae==-1)continue;k(U.slice(Q,ae),""),Q=ae+ce.length,k(U.slice(ae,Q),"completion-highlight")}return k(U.slice(Q,U.length),""),W.push({type:"completion-spacer",value:" "}),L.meta&&W.push({type:"completion-meta",value:L.meta}),L.message&&W.push({type:"completion-message",value:L.message}),W},N.$updateOnChange=O,N.start=O,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function($,k){C.filterText=k||"",C.setValue(d.stringRepeat(`
|
|
1140
|
-
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return R.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),R.start.row!=$&&(C.selection.clearSelection(),R.start.row=R.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,k,L,W){if(!W&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===L)return!0;var U=this.container,q=this.renderer.scrollBar.width||10,Z=window.innerHeight-q,Q=window.innerWidth-q,le=this.renderer,ne=le.$maxLines*k*1.4,ce={top:0,bottom:0},ae=Z-$.top-3*this.$borderSize-k,de=$.top-3*this.$borderSize;L||(de<=ae||ae>=ne?L="bottom":L="top"),L==="top"?(ce.bottom=$.top-this.$borderSize,ce.top=ce.bottom-ne):L==="bottom"&&(ce.top=$.top+k+this.$borderSize,ce.bottom=ce.top+ne);var me=ce.top>=0&&ce.bottom<=Z;if(!W&&!me)return!1;me?le.$maxPixelHeight=null:L==="top"?le.$maxPixelHeight=de:le.$maxPixelHeight=ae,L==="top"?(U.style.top="",U.style.bottom=Z+q-ce.bottom+"px",C.isTopdown=!1):(U.style.top=ce.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var $e=$.left;return $e+U.offsetWidth>Q&&($e=Q-U.offsetWidth),U.style.left=$e+"px",U.style.right="",a.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=L,!0},C.show=function($,k,L){this.tryShow($,k,L?"bottom":void 0,!0)},C.goTo=function($){var k=this.getRow(),L=this.session.getLength()-1;switch($){case"up":k=k<=0?L:k-1;break;case"down":k=k>=L?-1:k+1;break;case"start":k=0;break;case"end":k=L}this.setRow(k)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return I})();a.importCssString(`
|
|
1141
|
-
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1142
|
-
background-color: #CAD6FA;
|
|
1143
|
-
z-index: 1;
|
|
1144
|
-
}
|
|
1145
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1146
|
-
background-color: #3a674e;
|
|
1147
|
-
}
|
|
1148
|
-
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1149
|
-
border: 1px solid #abbffe;
|
|
1150
|
-
margin-top: -1px;
|
|
1151
|
-
background: rgba(233,233,253,0.4);
|
|
1152
|
-
position: absolute;
|
|
1153
|
-
z-index: 2;
|
|
1154
|
-
}
|
|
1155
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1156
|
-
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1157
|
-
background: rgba(58, 103, 78, 0.62);
|
|
1158
|
-
}
|
|
1159
|
-
.ace_completion-meta {
|
|
1160
|
-
opacity: 0.5;
|
|
1161
|
-
margin-left: 0.9em;
|
|
1162
|
-
}
|
|
1163
|
-
.ace_completion-message {
|
|
1164
|
-
margin-left: 0.9em;
|
|
1165
|
-
color: blue;
|
|
1166
|
-
}
|
|
1167
|
-
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1168
|
-
color: #2d69c7;
|
|
1169
|
-
}
|
|
1170
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1171
|
-
color: #93ca12;
|
|
1172
|
-
}
|
|
1173
|
-
.ace_editor.ace_autocomplete {
|
|
1174
|
-
width: 300px;
|
|
1175
|
-
z-index: 200000;
|
|
1176
|
-
border: 1px lightgray solid;
|
|
1177
|
-
position: fixed;
|
|
1178
|
-
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1179
|
-
line-height: 1.4;
|
|
1180
|
-
background: #fefefe;
|
|
1181
|
-
color: #111;
|
|
1182
|
-
}
|
|
1183
|
-
.ace_dark.ace_editor.ace_autocomplete {
|
|
1184
|
-
border: 1px #484747 solid;
|
|
1185
|
-
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1186
|
-
line-height: 1.4;
|
|
1187
|
-
background: #25282c;
|
|
1188
|
-
color: #c1c1c1;
|
|
1189
|
-
}
|
|
1190
|
-
.ace_autocomplete .ace_text-layer {
|
|
1191
|
-
width: calc(100% - 8px);
|
|
1192
|
-
}
|
|
1193
|
-
.ace_autocomplete .ace_line {
|
|
1194
|
-
display: flex;
|
|
1195
|
-
align-items: center;
|
|
1196
|
-
}
|
|
1197
|
-
.ace_autocomplete .ace_line > * {
|
|
1198
|
-
min-width: 0;
|
|
1199
|
-
flex: 0 0 auto;
|
|
1200
|
-
}
|
|
1201
|
-
.ace_autocomplete .ace_line .ace_ {
|
|
1202
|
-
flex: 0 1 auto;
|
|
1203
|
-
overflow: hidden;
|
|
1204
|
-
text-overflow: ellipsis;
|
|
1205
|
-
}
|
|
1206
|
-
.ace_autocomplete .ace_completion-spacer {
|
|
1207
|
-
flex: 1;
|
|
1208
|
-
}
|
|
1209
|
-
.ace_autocomplete.ace_loading:after {
|
|
1210
|
-
content: "";
|
|
1211
|
-
position: absolute;
|
|
1212
|
-
top: 0px;
|
|
1213
|
-
height: 2px;
|
|
1214
|
-
width: 8%;
|
|
1215
|
-
background: blue;
|
|
1216
|
-
z-index: 100;
|
|
1217
|
-
animation: ace_progress 3s infinite linear;
|
|
1218
|
-
animation-delay: 300ms;
|
|
1219
|
-
transform: translateX(-100%) scaleX(1);
|
|
1220
|
-
}
|
|
1221
|
-
@keyframes ace_progress {
|
|
1222
|
-
0% { transform: translateX(-100%) scaleX(1) }
|
|
1223
|
-
50% { transform: translateX(625%) scaleX(2) }
|
|
1224
|
-
100% { transform: translateX(1500%) scaleX(3) }
|
|
1225
|
-
}
|
|
1226
|
-
@media (prefers-reduced-motion) {
|
|
1227
|
-
.ace_autocomplete.ace_loading:after {
|
|
1228
|
-
transform: translateX(625%) scaleX(2);
|
|
1229
|
-
animation: none;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=u}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,v){var g=(function(){function p(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return p.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[d-a.config.firstRow];if(l){for(var c="doc-tooltip ",u=0;u<this._lines.length;u++)c+="ace-inline-screenreader-line-".concat(u," ");l.setAttribute("aria-describedby",c)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},p.prototype.destroy=function(){this.screenReaderDiv.remove()},p.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);d.appendChild(a),w.appendChild(d)}return w},p})();r.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,v){var g=e("../snippets").snippetManager,p=e("./inline_screenreader").AceInlineScreenReader,w=(function(){function h(){this.editor=null}return h.prototype.show=function(d,a,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new p(d));var c=a.snippet?g.getDisplayTextForSnippet(d,a.snippet):a.value;return a.hideInlinePreview||!c||!c.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(c),c=c.slice(l.length),c===""?d.removeGhostText():d.setGhostText(c),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h})();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,v){r.parForEach=function(p,w,h){var d=0,a=p.length;a===0&&h();for(var l=0;l<a;l++)w(p[l],function(c,u){d++,d===a&&h(c,u)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(p,w,h){h=h||g;for(var d=[],a=w-1;a>=0&&h.test(p[a]);a--)d.push(p[a]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(p,w,h){h=h||g;for(var d=[],a=w;a<p.length&&h.test(p[a]);a++)d.push(p[a]);return d},r.getCompletionPrefix=function(p){var w=p.getCursorPosition(),h=p.session.getLine(w.row),d;return p.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(p,h){var h=h??p.session.getPrecedingCharacter();return p.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,v){var g=e("./keyboard/hash_handler").HashHandler,p=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),c=e("./snippets").snippetManager,u=e("./config"),i=e("./lib/event"),s=e("./lib/scroll").preventParentScroll,f=function(M,A){A.completer&&A.completer.destroy()},b=(function(){function M(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,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 A=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!A||this.editor.completers.length===0||(this.completions=new I(M.completionsForLoading),this.openPopup(this.editor,A.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(M,"completionsForLoading",{get:function(){return[{caption:u.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),M.prototype.$init=function(){return this.popup=new p(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(A){this.insertMatch(),A.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},M.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},M.prototype.getPopup=function(){return this.popup||this.$init()},M.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},M.prototype.$seen=function(A){!this.hasSeen.has(A)&&A&&A.completer&&A.completer.onSeen&&typeof A.completer.onSeen=="function"&&(A.completer.onSeen(this.editor,A),this.hasSeen.add(A))},M.prototype.$onPopupChange=function(A){if(this.inlineRenderer&&this.inlineEnabled){var C=A?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},M.prototype.$updateGhostText=function(A){var C=this.base.row,O=this.base.column,D=this.editor.getCursorPosition().column,E=this.editor.session.getLine(C).slice(O,D);this.inlineRenderer.show(this.editor,A,E)?this.$seen(A):this.inlineRenderer.hide()},M.prototype.$onPopupRender=function(){var A=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var O=this.popup.getData(C);O&&(!A||O.hideInlinePreview)&&this.$seen(O)}},M.prototype.$onPopupShow=function(A){this.$onPopupChange(A),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},M.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var A=this.editor.container.parentNode,C=[];A;)C.push(A),A.addEventListener("scroll",this.onLayoutChange,{passive:!0}),A=A.parentNode;this.$elements=C}},M.prototype.unObserveLayoutChanges=function(){var A=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",A.onLayoutChange,{passive:!0})}),this.$elements=null},M.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},M.prototype.$updatePopupPosition=function(){var A=this.editor,C=A.renderer,O=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var E=A.container.getBoundingClientRect();D.top+=E.top-C.layerConfig.offset,D.left+=E.left-A.renderer.scrollLeft,D.left+=C.gutterWidth;var R={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(R.top+=C.$ghostTextWidget.el.offsetHeight);var B=A.container.getBoundingClientRect().bottom-O,F=B<R.top?{top:B,left:R.left}:R;this.popup.tryShow(F,O,"bottom")||this.popup.tryShow(D,O,"top")||this.popup.show(D,O)},M.prototype.openPopup=function(A,C,O){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),E=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),A.keyBinding.addKeyboardHandler(this.keyboardHandler);var R;this.stickySelection&&(R=this.popup.data.indexOf(E)),(!R||R===-1)&&(R=0),this.popup.setRow(this.autoSelect?R:-1),R===D&&E!==this.completions.filtered[R]&&this.$onPopupChange();var B=this.inlineRenderer&&this.inlineEnabled;if(R===D&&B){var F=this.popup.getData(this.popup.getRow());this.$updateGhostText(F)}O||(this.popup.setTheme(A.getTheme()),this.popup.setFontSize(A.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},M.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},M.prototype.changeListener=function(A){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},M.prototype.blurListener=function(A){var C=document.activeElement,O=this.editor.textInput.getElement(),D=A.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(A.relatedTarget),E=this.popup&&this.popup.container;C!=O&&C.parentNode!=E&&!D&&C!=this.tooltipNode&&A.relatedTarget!=O&&this.detach()},M.prototype.mousedownListener=function(A){this.detach()},M.prototype.mousewheelListener=function(A){this.popup&&!this.popup.isMouseOver&&this.detach()},M.prototype.mouseOutListener=function(A){this.popup.isOpen&&this.$updatePopupPosition()},M.prototype.goTo=function(A){this.popup.goTo(A)},M.prototype.insertMatch=function(A,C){if(A||(A=this.popup.getData(this.popup.getRow())),!A)return!1;if(A.value==="")return this.detach();var O=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,A,O.filterText,C);return this.completions==O&&this.detach(),D},M.prototype.showPopup=function(A,C){this.editor&&this.detach(),this.activated=!0,this.editor=A,A.completer!=this&&(A.completer&&A.completer.detach(),A.completer=this),A.on("changeSelection",this.changeListener),A.on("blur",this.blurListener),A.on("mousedown",this.mousedownListener),A.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},M.prototype.getCompletionProvider=function(A){return this.completionProvider||(this.completionProvider=new x(A)),this.completionProvider},M.prototype.gatherCompletions=function(A,C){return this.getCompletionProvider().gatherCompletions(A,C)},M.prototype.updateCompletions=function(A,C){if(A&&this.base&&this.completions){var D=this.editor.getCursorPosition(),E=this.editor.session.getTextRange({start:this.base,end:D});if(E==this.completions.filterText)return;if(this.completions.setFilter(E),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==E&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,E,A);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new I(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",A)}var O=this.editor.getSession(),D=this.editor.getCursorPosition(),E=d.getCompletionPrefix(this.editor);this.base=O.doc.createAnchor(D.row,D.column-E.length),this.base.$insertRight=!0;var R={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:E,pos:D}).provideCompletions(this.editor,R,(function(B,F,N){var $=F.filtered,k=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),N){if(!$.length){var L=!this.autoShown&&this.emptyMessage;if(typeof L=="function"&&(L=this.emptyMessage(k)),L){var W=[{caption:L,value:""}];this.completions=new I(W),this.openPopup(this.editor,k,A),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==k&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!N&&this.showLoadingState?new I(M.completionsForLoading.concat($),F.filterText):F,this.openPopup(this.editor,k,A),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!N)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},M.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},M.prototype.updateDocTooltip=function(){var A=this.popup,C=this.completions&&this.completions.filtered,O=C&&(C[A.getHoveredRow()]||C[A.getRow()]),D=null;if(!O||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var E=this.editor.completers.length,R=0;R<E;R++){var B=this.editor.completers[R];if(B.getDocTooltip&&O.completerId===B.id){D=B.getDocTooltip(O);break}}if(!D&&typeof O!="string"&&(D=O),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},M.prototype.showDocTooltip=function(A){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",s));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var O=this.tooltipNode;A.docHTML?O.innerHTML=A.docHTML:A.docText&&(O.textContent=A.docText),O.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,E=D.container.getBoundingClientRect(),R=400,B=300,F=D.renderer.scrollBar.width||10,N=E.left,$=window.innerWidth-E.right-F,k=D.isTopdown?window.innerHeight-F-E.bottom:E.top,L=[Math.min($/R,1),Math.min(N/R,1),Math.min(k/B,1)*.9],W=Math.max.apply(Math,L),U=O.style;U.display="block",W==L[0]||L[0]>=1?(U.left=E.right+1+"px",U.right="",U.maxWidth=R*W+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-E.top,B)+"px"):W==L[1]||L[1]>=1?(U.right=window.innerWidth-E.left+"px",U.left="",U.maxWidth=R*W+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-E.top,B)+"px"):W==L[2]&&(U.left=E.left+"px",U.right="",U.maxWidth=Math.min(R,window.innerWidth-E.left)+"px",D.isTopdown?(U.top=E.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-E.bottom,B)+"px"):(U.top="",U.bottom=window.innerHeight-E.top+"px",U.maxHeight=Math.min(E.top,B)+"px")),l.$fixPositionBug(O)},M.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var A=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==A&&this.editor.focus(),this.tooltipNode=null,A.parentNode&&A.parentNode.removeChild(A)}},M.prototype.onTooltipClick=function(A){for(var C=A.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},M.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var A=this.popup.container;A&&A.parentNode&&A.parentNode.removeChild(A)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",f),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},M.for=function(A){return A.completer instanceof M||(A.completer&&(A.completer.destroy(),A.completer=null),u.get("sharedPopups")?(M.$sharedInstance||(M.$sharedInstance=new M),A.completer=M.$sharedInstance):(A.completer=new M,A.once("destroy",f))),A.completer},M})();b.prototype.commands={Up:function(M){M.completer.goTo("up")},Down:function(M){M.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(M){M.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(M){M.completer.goTo("end")},Esc:function(M){M.completer.detach()},Return:function(M){return M.completer.insertMatch()},"Shift-Return":function(M){M.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(M){var A=M.completer.insertMatch();if(A||M.tabstopManager)return A;M.completer.goTo("down")},Backspace:function(M){M.execCommand("backspace");var A=d.getCompletionPrefix(M);!A&&M.completer&&M.completer.detach()},PageUp:function(M){M.completer.popup.gotoPageUp()},PageDown:function(M){M.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(M,A){var C=b.for(M);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(M,A),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=(function(){function M(A){this.initialPosition=A,this.active=!0}return M.prototype.insertByIndex=function(A,C,O){return!this.completions||!this.completions.filtered?!1:this.insertMatch(A,this.completions.filtered[C],O)},M.prototype.insertMatch=function(A,C,O){if(!C)return!1;if(A.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(A,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,E=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,E+=C.range.end.column-this.initialPosition.pos.column),D||E){var R;A.selection.getAllRanges?R=A.selection.getAllRanges():R=[A.getSelectionRange()];for(var B=0,F;F=R[B];B++)F.start.column-=D,F.end.column+=E,A.session.remove(F)}C.snippet?c.insertSnippet(A,C.snippet):this.$insertString(A,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(A,C),C.command&&C.command==="startAutocomplete"&&A.execCommand(C.command)}return A.endOperation(),!0},M.prototype.$insertString=function(A,C){var O=C.value||C;A.execCommand("insertstring",O)},M.prototype.gatherCompletions=function(A,C){var O=A.getSession(),D=A.getCursorPosition(),E=d.getCompletionPrefix(A),R=[];this.completers=A.completers;var B=A.completers.length;return A.completers.forEach(function(F,N){F.getCompletions(A,O,D,E,function($,k){F.hideInlinePreview&&(k=k.map(function(L){return Object.assign(L,{hideInlinePreview:F.hideInlinePreview})})),!$&&k&&(R=R.concat(k)),C(null,{prefix:d.getCompletionPrefix(A),matches:R,finished:--B===0})})}),!0},M.prototype.provideCompletions=function(A,C,O){var D=(function(F){var N=F.prefix,$=F.matches;this.completions=new I($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(N),(F.finished||this.completions.filtered.length)&&O(null,this.completions,F.finished)}).bind(this),E=!0,R=null;if(this.gatherCompletions(A,(function(F,N){if(this.active){F&&(O(F,[],!0),this.detach());var $=N.prefix;if($.indexOf(N.prefix)===0){if(E){R=N;return}D(N)}}}).bind(this)),E=!1,R){var B=R;R=null,D(B)}},M.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(A){typeof A.cancel=="function"&&A.cancel()})},M})(),I=(function(){function M(A,C){this.all=A,this.filtered=A,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return M.prototype.setFilter=function(A){if(A.length>this.filterText&&A.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=A,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,E){return E.exactMatch-D.exactMatch||E.$score-D.$score||(D.caption||D.value).localeCompare(E.caption||E.value)});var O=null;C=C.filter(function(D){var E=D.snippet||D.caption||D.value;return E===O?!1:(O=E,!0)}),this.filtered=C},M.prototype.filterCompletions=function(A,C){var O=[],D=C.toUpperCase(),E=C.toLowerCase();e:for(var R=0,B;B=A[R];R++){if(B.skipFilter){B.$score=B.score,O.push(B);continue}var F=!this.ignoreCaption&&B.caption||B.value||B.snippet;if(F){var N=-1,$=0,k=0,L,W;if(this.exactMatch){if(C!==F.substr(0,C.length))continue e}else{var U=F.toLowerCase().indexOf(E);if(U>-1)k=U;else for(var q=0;q<C.length;q++){var Z=F.indexOf(E[q],N+1),Q=F.indexOf(D[q],N+1);if(L=Z>=0&&(Q<0||Z<Q)?Z:Q,L<0)continue e;W=L-N-1,W>0&&(N===-1&&(k+=10),k+=W,$|=1<<q),N=L}}B.matchMask=$,B.exactMatch=k?0:1,B.$score=(B.score||0)-k,O.push(B)}}return O},M})();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=I}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,v){var g=(function(){function p(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return p.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},p.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},p.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},p.prototype.update=function(w,h,d,a){if(!(!this.markers||!this.markers.length))for(var l=a.firstRow,c=a.lastRow,u,i=0,s=0,f=0;f<this.markers.length;f++){var b=this.markers[f];if(!(b.range.end.row<l)&&!(b.range.start.row>c)&&(b.range.start.row===s?i++:(s=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,c);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var I=x.toScreenRange(d);if(I.isEmpty()){u=d.getNextFoldLine(x.end.row,u),u&&u.end.row>x.end.row&&(l=u.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,I,b.className,a):I.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,I,b.className,a):h.drawTextMarker(w,I,b.className,a):h.drawSingleLineMarker(w,I,b.className+" ace_br15",a)}}}},p})();g.prototype.MAX_MARKERS=1e4,r.MarkerGroup=g}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,v){function g(d,a){var l=d.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function p(d,a){var l=g(d,a),c=d.getValue().split(h),u=Object.create(null),i=c[l];return c.forEach(function(s,f){if(!(!s||s===i)){var b=Math.abs(l-f),x=c.length-b;u[s]?u[s]=Math.max(x,u[s]):u[s]=x}}),u}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.id="textCompleter",r.getCompletions=function(d,a,l,c,u){var i=p(a,l),s=Object.keys(i);u(null,s.map(function(f){return{caption:f,value:f,score:i[f],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,v){var g=e("../snippets").snippetManager,p=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),a=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),c={getCompletions:function(E,R,B,F,N){if(R.$mode.completer)return R.$mode.completer.getCompletions(E,R,B,F,N);var $=E.session.getState(B.row),k=R.$mode.getCompletions($,R,B,F);k=k.map(function(L){return L.completerId=c.id,L}),N(null,k)},id:"keywordCompleter"},u=function(E){var R={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(B,F,N,$){return R[F]=$||""}).replace(/\$(\d+?)/g,function(B,F){return R[F]})},i={getCompletions:function(E,R,B,F,N){var $=[],k=R.getTokenAt(B.row,B.column);k&&k.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=g.getActiveScopes(E);var L=g.snippetMap,W=[];$.forEach(function(U){for(var q=L[U]||[],Z=q.length;Z--;){var Q=q[Z],le=Q.name||Q.tabTrigger;le&&W.push({caption:le,snippet:Q.content,meta:Q.tabTrigger&&!Q.name?Q.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),N(null,W)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(u(E.snippet))].join(""))},id:"snippetCompleter"},s=[i,l,c];r.setCompleters=function(E){s.length=0,E&&s.push.apply(s,E)},r.addCompleter=function(E){s.push(E)},r.textCompleter=l,r.keyWordCompleter=c,r.snippetCompleter=i;var f={name:"expandSnippet",exec:function(E){return g.expandWithTab(E)},bindKey:"Tab"},b=function(E,R){x(R.session.$mode)},x=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(g.files||(g.files={}),I(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(x))},I=function(E,R){!R||!E||g.files[E]||(g.files[E]={},w.loadModule(R,function(B){B&&(g.files[E]=B,!B.snippets&&B.snippetText&&(B.snippets=g.parseSnippetFile(B.snippetText)),g.register(B.snippets||[],B.scope),B.includeScopes&&(g.snippetMap[B.scope].includeScopes=B.includeScopes,B.includeScopes.forEach(function(F){x("ace/mode/"+F)})))}))},M=function(E){var R=E.editor,B=R.completer&&R.completer.activated;if(E.command.name==="backspace")B&&!d.getCompletionPrefix(R)&&R.completer.detach();else if(E.command.name==="insertstring"&&!B){A=E;var F=E.editor.$liveAutocompletionDelay;F?C.delay(F):O(E)}},A,C=h.delayedCall(function(){O(A)},0),O=function(E){var R=E.editor,B=d.getCompletionPrefix(R),F=E.args,N=d.triggerAutocomplete(R,F);if(B&&B.length>=R.$liveAutocompletionThreshold||N){var $=p.for(R);$.autoShown=!0,$.showPopup(R)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(p.for(this),this.completers||(this.completers=Array.isArray(E)?E:s),this.commands.addCommand(p.startCommand)):this.commands.removeCommand(p.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:s),this.commands.on("afterExec",M)):this.commands.off("afterExec",M)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(f),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(f),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=a}),(function(){ace.require(["ace/ext/language_tools"],function(e){t&&(t.exports=e)})})()})(pg)),pg.exports}bk();var mg={exports:{}},vg;function wk(){return vg||(vg=1,(function(t,n){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
1233
|
-
|
|
1234
|
-
/* ------------------------------------------------------------------------------------------
|
|
1235
|
-
* Editor Search Form
|
|
1236
|
-
* --------------------------------------------------------------------------------------- */
|
|
1237
|
-
.ace_search {
|
|
1238
|
-
background-color: #ddd;
|
|
1239
|
-
color: #666;
|
|
1240
|
-
border: 1px solid #cbcbcb;
|
|
1241
|
-
border-top: 0 none;
|
|
1242
|
-
overflow: hidden;
|
|
1243
|
-
margin: 0;
|
|
1244
|
-
padding: 4px 6px 0 4px;
|
|
1245
|
-
position: absolute;
|
|
1246
|
-
top: 0;
|
|
1247
|
-
z-index: 99;
|
|
1248
|
-
white-space: normal;
|
|
1249
|
-
}
|
|
1250
|
-
.ace_search.left {
|
|
1251
|
-
border-left: 0 none;
|
|
1252
|
-
border-radius: 0px 0px 5px 0px;
|
|
1253
|
-
left: 0;
|
|
1254
|
-
}
|
|
1255
|
-
.ace_search.right {
|
|
1256
|
-
border-radius: 0px 0px 0px 5px;
|
|
1257
|
-
border-right: 0 none;
|
|
1258
|
-
right: 0;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
.ace_search_form, .ace_replace_form {
|
|
1262
|
-
margin: 0 20px 4px 0;
|
|
1263
|
-
overflow: hidden;
|
|
1264
|
-
line-height: 1.9;
|
|
1265
|
-
}
|
|
1266
|
-
.ace_replace_form {
|
|
1267
|
-
margin-right: 0;
|
|
1268
|
-
}
|
|
1269
|
-
.ace_search_form.ace_nomatch {
|
|
1270
|
-
outline: 1px solid red;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
.ace_search_field {
|
|
1274
|
-
border-radius: 3px 0 0 3px;
|
|
1275
|
-
background-color: white;
|
|
1276
|
-
color: black;
|
|
1277
|
-
border: 1px solid #cbcbcb;
|
|
1278
|
-
border-right: 0 none;
|
|
1279
|
-
outline: 0;
|
|
1280
|
-
padding: 0;
|
|
1281
|
-
font-size: inherit;
|
|
1282
|
-
margin: 0;
|
|
1283
|
-
line-height: inherit;
|
|
1284
|
-
padding: 0 6px;
|
|
1285
|
-
min-width: 17em;
|
|
1286
|
-
vertical-align: top;
|
|
1287
|
-
min-height: 1.8em;
|
|
1288
|
-
box-sizing: content-box;
|
|
1289
|
-
}
|
|
1290
|
-
.ace_searchbtn {
|
|
1291
|
-
border: 1px solid #cbcbcb;
|
|
1292
|
-
line-height: inherit;
|
|
1293
|
-
display: inline-block;
|
|
1294
|
-
padding: 0 6px;
|
|
1295
|
-
background: #fff;
|
|
1296
|
-
border-right: 0 none;
|
|
1297
|
-
border-left: 1px solid #dcdcdc;
|
|
1298
|
-
cursor: pointer;
|
|
1299
|
-
margin: 0;
|
|
1300
|
-
position: relative;
|
|
1301
|
-
color: #666;
|
|
1302
|
-
}
|
|
1303
|
-
.ace_searchbtn:last-child {
|
|
1304
|
-
border-radius: 0 3px 3px 0;
|
|
1305
|
-
border-right: 1px solid #cbcbcb;
|
|
1306
|
-
}
|
|
1307
|
-
.ace_searchbtn:disabled {
|
|
1308
|
-
background: none;
|
|
1309
|
-
cursor: default;
|
|
1310
|
-
}
|
|
1311
|
-
.ace_searchbtn:hover {
|
|
1312
|
-
background-color: #eef1f6;
|
|
1313
|
-
}
|
|
1314
|
-
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1315
|
-
padding: 0px 0.7em
|
|
1316
|
-
}
|
|
1317
|
-
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1318
|
-
content: "";
|
|
1319
|
-
border: solid 2px #888;
|
|
1320
|
-
width: 0.5em;
|
|
1321
|
-
height: 0.5em;
|
|
1322
|
-
border-width: 2px 0 0 2px;
|
|
1323
|
-
display:inline-block;
|
|
1324
|
-
transform: rotate(-45deg);
|
|
1325
|
-
}
|
|
1326
|
-
.ace_searchbtn.next:after {
|
|
1327
|
-
border-width: 0 2px 2px 0 ;
|
|
1328
|
-
}
|
|
1329
|
-
.ace_searchbtn_close {
|
|
1330
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1331
|
-
border-radius: 50%;
|
|
1332
|
-
border: 0 none;
|
|
1333
|
-
color: #656565;
|
|
1334
|
-
cursor: pointer;
|
|
1335
|
-
font: 16px/16px Arial;
|
|
1336
|
-
padding: 0;
|
|
1337
|
-
height: 14px;
|
|
1338
|
-
width: 14px;
|
|
1339
|
-
top: 9px;
|
|
1340
|
-
right: 7px;
|
|
1341
|
-
position: absolute;
|
|
1342
|
-
}
|
|
1343
|
-
.ace_searchbtn_close:hover {
|
|
1344
|
-
background-color: #656565;
|
|
1345
|
-
background-position: 50% 100%;
|
|
1346
|
-
color: white;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
.ace_button {
|
|
1350
|
-
margin-left: 2px;
|
|
1351
|
-
cursor: pointer;
|
|
1352
|
-
-webkit-user-select: none;
|
|
1353
|
-
-moz-user-select: none;
|
|
1354
|
-
-o-user-select: none;
|
|
1355
|
-
-ms-user-select: none;
|
|
1356
|
-
user-select: none;
|
|
1357
|
-
overflow: hidden;
|
|
1358
|
-
opacity: 0.7;
|
|
1359
|
-
border: 1px solid rgba(100,100,100,0.23);
|
|
1360
|
-
padding: 1px;
|
|
1361
|
-
box-sizing: border-box!important;
|
|
1362
|
-
color: black;
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
.ace_button:hover {
|
|
1366
|
-
background-color: #eee;
|
|
1367
|
-
opacity:1;
|
|
1368
|
-
}
|
|
1369
|
-
.ace_button:active {
|
|
1370
|
-
background-color: #ddd;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
.ace_button.checked {
|
|
1374
|
-
border-color: #3399ff;
|
|
1375
|
-
opacity:1;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
.ace_search_options{
|
|
1379
|
-
margin-bottom: 3px;
|
|
1380
|
-
text-align: right;
|
|
1381
|
-
-webkit-user-select: none;
|
|
1382
|
-
-moz-user-select: none;
|
|
1383
|
-
-o-user-select: none;
|
|
1384
|
-
-ms-user-select: none;
|
|
1385
|
-
user-select: none;
|
|
1386
|
-
clear: both;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
.ace_search_counter {
|
|
1390
|
-
float: left;
|
|
1391
|
-
font-family: arial;
|
|
1392
|
-
padding: 0 8px;
|
|
1393
|
-
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/ext/searchbox","ace/ext/searchbox","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,v){var g=e("../lib/dom"),p=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),d=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=e("../config").nls,c=999;g.importCssString(h,"ace_searchbox",!1);var u=(function(){function f(b,x,I){this.activeInput,this.element=g.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(b),g.importCssString(h,"ace_searchbox",b.container),w.addListener(this.element,"touchstart",function(M){M.stopPropagation()},b)}return f.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},f.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},f.prototype.onEditorInput=function(){this.find(!1,!1,!0)},f.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},f.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;w.addListener(b,"mousedown",function(I){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(I)}),w.addListener(b,"click",function(I){var M=I.target||I.srcElement,A=M.getAttribute("action");A&&x[A]?x[A]():x.$searchBarKb.commands[A]&&x.$searchBarKb.commands[A].exec(x),w.stopPropagation(I)}),w.addCommandKeyListener(b,function(I,M,A){var C=a.keyCodeToString(A),O=x.$searchBarKb.findKeyCommand(M,C);O&&O.exec&&(O.exec(x),w.stopEvent(I))}),this.$onChange=p.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},f.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},f.prototype.$syncOptions=function(b){g.setCssClass(this.replaceOption,"checked",this.searchRange),g.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",g.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),g.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),g.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},f.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},f.prototype.find=function(b,x,I){if(this.editor.session){var M=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:I,range:this.searchRange}),A=!M&&this.searchInput.value;g.setCssClass(this.searchBox,"ace_nomatch",A),this.editor._emit("findSearchBox",{match:!A}),this.highlight(),this.updateCounter()}},f.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,I=x.unicode,M=0,A=0;if(x){var C=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue();b.$search.$isMultilineSearch(b.getLastSearchOptions())&&(C=C.replace(/\r\n|\r|\n/g,`
|
|
1394
|
-
`),b.session.doc.$autoNewLine=`
|
|
1395
|
-
`);var O=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(O-=b.session.doc.positionToIndex(this.searchRange.start));for(var D=x.lastIndex=0,E;(E=x.exec(C))&&(M++,D=E.index,D<=O&&A++,!(M>c||!E[0]&&(x.lastIndex=D+=p.skipEmptyMatch(C,D,I),D>=C.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[A,M>c?c+"+":M])},f.prototype.findNext=function(){this.find(!0,!1)},f.prototype.findPrev=function(){this.find(!0,!0)},f.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;g.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},f.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},f.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},f.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},f.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},f.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=x,this.editor.$search.$options.regExp&&(b=p.escapeRegExp(b)),b!=null&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},f.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},f})(),i=new d;i.bindKeys({"Ctrl-f|Command-f":function(f){var b=f.isReplace=!f.isReplace;f.replaceBox.style.display=b?"":"none",f.replaceOption.checked=!1,f.$syncOptions(),f.searchInput.focus()},"Ctrl-H|Command-Option-F":function(f){f.editor.getReadOnly()||(f.replaceOption.checked=!0,f.$syncOptions(),f.replaceInput.focus())},"Ctrl-G|Command-G":function(f){f.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(f){f.findPrev()},esc:function(f){setTimeout(function(){f.hide()})},Return:function(f){f.activeInput==f.replaceInput&&f.replace(),f.findNext()},"Shift-Return":function(f){f.activeInput==f.replaceInput&&f.replace(),f.findPrev()},"Alt-Return":function(f){f.activeInput==f.replaceInput&&f.replaceAll(),f.findAll()},Tab:function(f){(f.activeInput==f.replaceInput?f.searchInput:f.replaceInput).focus()}}),i.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(f){f.regExpOption.checked=!f.regExpOption.checked,f.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(f){f.caseSensitiveOption.checked=!f.caseSensitiveOption.checked,f.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(f){f.wholeWordOption.checked=!f.wholeWordOption.checked,f.$syncOptions()}},{name:"toggleReplace",exec:function(f){f.replaceOption.checked=!f.replaceOption.checked,f.$syncOptions()}},{name:"searchInSelection",exec:function(f){f.searchOption.checked=!f.searchRange,f.setSearchRange(f.searchOption.checked&&f.editor.getSelectionRange()),f.$syncOptions()}}]);var s=new d([{bindKey:"Esc",name:"closeSearchBar",exec:function(f){f.searchBox.hide()}}]);u.prototype.$searchBarKb=i,u.prototype.$closeSearchBarKb=s,r.SearchBox=u,r.Search=function(f,b){var x=f.searchBox||new u(f),I=f.session.selection.getRange(),M=I.isMultiLine()?"":f.session.getTextRange(I);x.show(M,b)}}),(function(){ace.require(["ace/ext/searchbox"],function(e){t&&(t.exports=e)})})()})(mg)),mg.exports}wk();var yg={exports:{}},bg;function xk(){return bg||(bg=1,(function(t,n){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,v){function g(d,a){function l(E,R,B){if(!(E.length<R)){var F=E.slice(0,R),N=E.slice(R),$=/^(?:(\s+)|(\S+)(\s+))/.exec(N),k=/(?:(\s+)|(\s+)(\S+))$/.exec(F),L=0,W=0;if(k&&!k[2]&&(L=R-k[1].length,W=R),$&&!$[2]&&(L||(L=R),W=R+$[1].length),L)return{start:L,end:W};if(k&&k[2]&&k.index>B)return{start:k.index,end:k.index+k[2].length};if($&&$[2])return L=R+$[2].length,{start:L,end:L+$[3].length}}}for(var c=a.column||d.getOption("printMarginColumn"),u=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),f=d.session;i<=s;){var b=f.getLine(i);if(b.length>c){var x=l(b,c,5);if(x){var I=/^\s*/.exec(b)[0];f.replace(new w(i,x.start,i,x.end),`
|
|
1396
|
-
`+I)}s++}else if(u&&/\S/.test(b)&&i!=s){var M=f.getLine(i+1);if(M&&/\S/.test(M)){var A=b.replace(/\s+$/,""),C=M.replace(/^\s+/,""),O=A+" "+C,x=l(O,c,5);if(x&&x.start>A.length||O.length<c){var D=new w(i,A.length,i+1,M.length-C.length);f.replace(D," "),i--,s--}else A.length<b.length&&f.remove(new w(i,A.length,i,b.length))}}i++}}function p(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var c=a.session.$undoManager.$lastDelta;g(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),c!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",p):this.commands.off("afterExec",p)},value:!1}}),r.hardWrap=g}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,v){function g(y){return{row:y.line,column:y.ch}}function p(y){return new De(y.row,y.column)}function w(y,S,_){if(S.line===_.line&&S.ch>=_.ch-1){var P=y.getLine(S.line),z=P.charCodeAt(S.ch);55296<=z&&z<=55551&&(_.ch+=1)}return{start:S,end:_}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),ze.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",co),O(y),ze.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",co),ze.off(y.getInputField(),"paste",a(y)),y.state.vim=null,en&&clearTimeout(en)}function a(y){var S=y.state.vim;return S.onPasteFn||(S.onPasteFn=function(){S.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Fn.enterInsertMode(y,{},S))}),S.onPasteFn}function l(y,S){return S>=y.firstLine()&&S<=y.lastLine()}function c(y){return/^[a-z]$/.test(y)}function u(y){return"()[]{}".indexOf(y)!=-1}function i(y){return va.test(y)}function s(y){return at.test(y)}function f(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,S){for(var _=0;_<S.length;_++)if(S[_]==y)return!0;return!1}function I(y,S,_,P,z){if(S===void 0&&!z)throw Error("defaultValue is required unless callback is provided");if(_||(_="string"),Wt[y]={type:_,defaultValue:S,callback:z},P)for(var j=0;j<P.length;j++)Wt[P[j]]=Wt[y];S&&M(y,S)}function M(y,S,_,P){var z=Wt[y];P=P||{};var j=P.scope;if(!z)return new Error("Unknown option: "+y);if(z.type=="boolean"){if(S&&S!==!0)return new Error("Invalid argument: "+y+"="+S);S!==!1&&(S=!0)}z.callback?(j!=="local"&&z.callback(S,void 0),j!=="global"&&_&&z.callback(S,_)):(j!=="local"&&(z.value=z.type=="boolean"?!!S:S),j!=="global"&&_&&(_.state.vim.options[y]={value:S}))}function A(y,S,_){var P=Wt[y];_=_||{};var z=_.scope;if(!P)return new Error("Unknown option: "+y);if(P.callback){var j=S&&P.callback(void 0,S);return z!=="global"&&j!==void 0?j:z!=="local"?P.callback():void 0}var j=z!=="global"&&S&&S.state.vim.options[y];return(j||z!=="local"&&P||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Pn()}function O(y){return y.state.vim||(y.state.vim={inputState:new $,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),y.state.vim}function D(){je={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Li(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new q({}),searchHistoryController:new Z,exCommandHistoryController:new Z};for(var y in Wt){var S=Wt[y];S.value=S.defaultValue}}function E(y){function S(Y){typeof Y=="string"?Lt.value=Y:Lt=null}if(y[0]=="<"){var _=y.toLowerCase().slice(1,-1),P=_.split("-");if(_=P.pop()||"",_=="lt")y="<";else if(_=="space")y=" ";else if(_=="cr")y=`
|
|
1397
|
-
`;else if(Zi[_]){var z=Lt.value,j={key:Zi[_],target:{value:z,selectionEnd:z.length,selectionStart:z.length}};Lt.onKeyDown&&Lt.onKeyDown(j,Lt.value,S),Lt&&Lt.onKeyUp&&Lt.onKeyUp(j,Lt.value,S);return}}if(y==`
|
|
1398
|
-
`){var G=Lt;Lt=null,G.onClose&&G.onClose(G.value)}else Lt.value=(Lt.value||"")+y}function R(y,S,_){var P=Oi;if(_){if(Lr.indexOf(_)!=-1)return;Lr.push(_),Oi=_.noremap!=0}try{for(var z=O(y),j=/<(?:[CSMA]-)*\w+>|./gi,G;G=j.exec(S);){var Y=G[0],X=z.insertMode;if(Lt){E(Y);continue}var re=bt.handleKey(y,Y,"mapping");if(!re&&X&&z.insertMode){if(Y[0]=="<"){var ue=Y.toLowerCase().slice(1,-1),ye=ue.split("-");if(ue=ye.pop()||"",ue=="lt")Y="<";else if(ue=="space")Y=" ";else if(ue=="cr")Y=`
|
|
1399
|
-
`;else{if(Zi.hasOwnProperty(ue)){Y=Zi[ue],$s(y,Y);continue}Y=Y[0],j.lastIndex=G.index+1}}y.replaceSelection(Y)}}}finally{if(Lr.pop(),Oi=Lr.length?P:!1,!Lr.length&&Lt){var Ce=Lt;Lt=null,sr(y,Ce)}}}function B(y,S){var _=y.key;if(!Xn[_]){_.length>1&&_[0]=="n"&&(_=_.replace("Numpad","")),_=Or[_]||_;var P="";if(y.ctrlKey&&(P+="C-"),y.altKey&&(P+="A-"),y.metaKey&&(P+="M-"),ze.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(P=P.slice(2)),(P||_.length>1)&&y.shiftKey&&(P+="S-"),S&&!S.expectLiteralNext&&_.length==1){if(Ln.keymap&&_ in Ln.keymap)(Ln.remapCtrl!=0||!P)&&(_=Ln.keymap[_]);else if(_.charCodeAt(0)>255){var z=y.code&&y.code.slice(-1)||"";y.shiftKey||(z=z.toLowerCase()),z&&(_=z)}}return P+=_,P.length>1&&(P="<"+P+">"),P}}function F(y,S){Ln.string!==y&&(Ln=N(y)),Ln.remapCtrl=S}function N(y){function S(P){return P.split(/\\?(.)/).filter(Boolean)}var _={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(P){if(P){var z=P.split(/((?:[^\\;]|\\.)+);/);if(z.length==3){var j=S(z[1]),G=S(z[2]);if(j.length!==G.length)return;for(var Y=0;Y<j.length;++Y)_[j[Y]]=G[Y]}else if(z.length==1){var X=S(P);if(X.length%2!==0)return;for(var Y=0;Y<X.length;Y+=2)_[X[Y]]=X[Y+1]}}}),{keymap:_,string:y}):{keymap:_,string:""}}function $(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function k(y,S){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,ze.signal(y,"vim-command-done",S)}function L(){this.removed=[],this.inserted=""}function W(y,S,_){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!S,this.blockwise=!!_}function U(y,S){var _=je.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");_[y]=S,Rs.push(y)}function q(y){this.registers=y,this.unnamedRegister=y['"']=new W,y["."]=new W,y[":"]=new W,y["/"]=new W,y["+"]=new W}function Z(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function Q(y,S){An[y]=S}function le(y,S){for(var _=[],P=0;P<S;P++)_.push(y);return _}function ne(y,S){Yo[y]=S}function ce(y,S){Fn[y]=S}function ae(y,S,_){var P=y.state.vim,z=P.insertMode||P.visualMode,j=Math.min(Math.max(y.firstLine(),S.line),y.lastLine()),G=y.getLine(j),Y=G.length-1+ +!!z,X=Math.min(Math.max(0,S.ch),Y),re=G.charCodeAt(X);if(56320<=re&&re<=57343){var ue=1;_&&_.line==j&&_.ch>X&&(ue=-1),X+=ue,X>Y&&(X-=2)}return new De(j,X)}function de(y){var S={};for(var _ in y)y.hasOwnProperty(_)&&(S[_]=y[_]);return S}function me(y,S,_){return typeof S=="object"&&(_=S.ch,S=S.line),new De(y.line+S,y.ch+_)}function $e(y,S,_,P){P.operator&&(_="operatorPending");for(var z,j=[],G=[],Y=Oi?S.length-$o:0,X=Y;X<S.length;X++){var re=S[X];_=="insert"&&re.context!="insert"||re.context&&re.context!=_||P.operator&&re.type=="action"||!(z=Me(y,re.keys))||(z=="partial"&&j.push(re),z=="full"&&G.push(re))}return{partial:j.length&&j,full:G.length&&G}}function Me(y,S){var _=S.slice(-11)=="<character>",P=S.slice(-10)=="<register>";if(_||P){var z=S.length-(_?11:10),j=y.slice(0,z),G=S.slice(0,z);return j==G&&y.length>z?"full":G.indexOf(j)==0?"partial":!1}return y==S?"full":S.indexOf(y)==0?"partial":!1}function Te(y){var S=/^.*(<[^>]+>)$/.exec(y),_=S?S[1]:y.slice(-1);if(_.length>1)switch(_){case"<CR>":_=`
|
|
1400
|
-
`;break;case"<Space>":_=" ";break;default:_=""}return _}function Xe(y,S,_){return function(){for(var P=0;P<_;P++)S(y)}}function qe(y){return new De(y.line,y.ch)}function rt(y,S){return y.ch==S.ch&&y.line==S.line}function st(y,S){return y.line<S.line?!0:y.line==S.line&&y.ch<S.ch}function et(y,S){return arguments.length>2&&(S=et.apply(void 0,Array.prototype.slice.call(arguments,1))),st(y,S)?y:S}function Pt(y,S){return arguments.length>2&&(S=Pt.apply(void 0,Array.prototype.slice.call(arguments,1))),st(y,S)?S:y}function yr(y,S,_){var P=st(y,S),z=st(S,_);return P&&z}function _t(y,S){return y.getLine(S).length}function rr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function kn(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function br(y,S,_){var P=_t(y,S),z=new Array(_-P+1).join(" ");y.setCursor(new De(S,P)),y.replaceRange(z,y.getCursor())}function un(y,S){var _=[],P=y.listSelections(),z=qe(y.clipPos(S)),j=!rt(S,z),G=y.getCursor("head"),Y=ut(P,G),X=rt(P[Y].head,P[Y].anchor),re=P.length-1,ue=re-Y>Y?re:0,ye=P[ue].anchor,Ce=Math.min(ye.line,z.line),ve=Math.max(ye.line,z.line),we=ye.ch,Oe=z.ch,Ie=P[ue].head.ch-we,Ve=Oe-we;Ie>0&&Ve<=0?(we++,j||Oe--):Ie<0&&Ve>=0?(we--,X||Oe++):Ie<0&&Ve==-1&&(we--,Oe++);for(var lt=Ce;lt<=ve;lt++){var Je={anchor:new De(lt,we),head:new De(lt,Oe)};_.push(Je)}return y.setSelections(_),S.ch=Oe,ye.ch=we,ye}function ir(y,S,_){for(var P=[],z=0;z<_;z++){var j=me(S,z,0);P.push({anchor:j,head:j})}y.setSelections(P,0)}function ut(y,S,_){for(var P=0;P<y.length;P++){var z=rt(y[P].anchor,S),j=rt(y[P].head,S);if(z||j)return P}return-1}function Ge(y,S){var _=S.lastSelection,P=function(){var j=y.listSelections(),G=j[0],Y=j[j.length-1],X=st(G.anchor,G.head)?G.anchor:G.head,re=st(Y.anchor,Y.head)?Y.head:Y.anchor;return[X,re]},z=function(){var j=y.getCursor(),G=y.getCursor(),Y=_.visualBlock;if(Y){var X=Y.width,re=Y.height;G=new De(j.line+re,j.ch+X);for(var ue=[],ye=j.line;ye<G.line;ye++){var Ce=new De(ye,j.ch),ve=new De(ye,G.ch),we={anchor:Ce,head:ve};ue.push(we)}y.setSelections(ue)}else{var Oe=_.anchorMark.find(),Ie=_.headMark.find(),Ve=Ie.line-Oe.line,lt=Ie.ch-Oe.ch;G={line:G.line+Ve,ch:Ve?G.ch:lt+G.ch},_.visualLine&&(j=new De(j.line,0),G=new De(G.line,_t(y,G.line))),y.setSelection(j,G)}return[j,G]};return S.visualMode?P():z()}function At(y,S){var _=S.sel.anchor,P=S.sel.head;S.lastPastedText&&(P=y.posFromIndex(y.indexFromPos(_)+S.lastPastedText.length),S.lastPastedText=null),S.lastSelection={anchorMark:y.setBookmark(_),headMark:y.setBookmark(P),anchor:qe(_),head:qe(P),visualMode:S.visualMode,visualLine:S.visualLine,visualBlock:S.visualBlock}}function Kt(y,S,_,P){var z=y.state.vim.sel,j=P?S:z.head,G=P?S:z.anchor,Y;return st(_,S)&&(Y=_,_=S,S=Y),st(j,G)?(j=et(S,j),G=Pt(G,_)):(G=et(S,G),j=Pt(j,_),j=me(j,0,-1),j.ch==-1&&j.line!=y.firstLine()&&(j=new De(j.line-1,_t(y,j.line-1)))),[G,j]}function Tn(y,S,z){var P=y.state.vim;S=S||P.sel;var z=z||P.visualLine?"line":P.visualBlock?"block":"char",j=jn(y,S,z);y.setSelections(j.ranges,j.primary)}function jn(y,S,_,P){var z=qe(S.head),j=qe(S.anchor);if(_=="char"){var G=!P&&!st(S.head,S.anchor)?1:0,Y=st(S.head,S.anchor)?1:0;return z=me(S.head,0,G),j=me(S.anchor,0,Y),{ranges:[{anchor:j,head:z}],primary:0}}if(_=="line"){if(st(S.head,S.anchor))z.ch=0,j.ch=_t(y,j.line);else{j.ch=0;var X=y.lastLine();z.line>X&&(z.line=X),z.ch=_t(y,z.line)}return{ranges:[{anchor:j,head:z}],primary:0}}if(_=="block"){var re=Math.min(j.line,z.line),ue=j.ch,ye=Math.max(j.line,z.line),Ce=z.ch;ue<Ce?Ce+=1:ue+=1;for(var ve=ye-re+1,we=z.line==re?0:ve-1,Oe=[],Ie=0;Ie<ve;Ie++)Oe.push({anchor:new De(re+Ie,ue),head:new De(re+Ie,Ce)});return{ranges:Oe,primary:we}}}function or(y){var S=y.getCursor("head");return y.getSelection().length==1&&(S=et(S,y.getCursor("anchor"))),S}function hn(y,S){var _=y.state.vim;S!==!1&&y.setCursor(ae(y,_.sel.head)),At(y,_),_.visualMode=!1,_.visualLine=!1,_.visualBlock=!1,_.insertMode||ze.signal(y,"vim-mode-change",{mode:"normal"})}function Dn(y,S,_){var P=y.getRange(S,_);if(/\n\s*$/.test(P)){var z=P.split(`
|
|
1401
|
-
`);z.pop();for(var j,j=z.pop();z.length>0&&j&&f(j);j=z.pop())_.line--,_.ch=0;j?(_.line--,_.ch=_t(y,_.line)):_.ch=0}}function Rn(y,S,_){S.ch=0,_.ch=0,_.line++}function Ut(y){if(!y)return 0;var S=y.search(/\S/);return S==-1?y.length:S}function Qt(y,S,_){var P=S.inclusive,z=S.innerWord,j=S.bigWord,G=S.noSymbol,Y=S.multiline,X=_||or(y),re=y.getLine(X.line),ue=re,ye=X.line,Ce=ye,ve=X.ch,we,Oe=G?Mo[0]:Ii[0];if(z&&/\s/.test(re.charAt(ve)))Oe=function(xn){return/\s/.test(xn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=mi(y,X,!0,j,!0);break}j?Oe=Ii[0]:(Oe=Mo[0],Oe(re.charAt(ve))||(Oe=Mo[1]))}for(var Ie=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Ie=we.to,Ce=we.line,ue=y.getLine(Ce),!ue&&Ie==0&&Ie++;else for(;Oe(re.charAt(Ie))&&Ie<re.length;)Ie++;if(P){var lt=Ie,Je=X.ch<=Ve&&/\s/.test(re.charAt(X.ch));if(!Je)for(;/\s/.test(ue.charAt(Ie))&&Ie<ue.length;)Ie++;if(lt==Ie||Je){for(var Qe=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Je&&(Ve=Qe)}}return{start:new De(ye,Ve),end:new De(Ce,Ie)}}function Rr(y,S,_){var P=S;if(!ze.findMatchingTag||!ze.findEnclosingTag)return{start:P,end:P};var z=ze.findMatchingTag(y,S)||ze.findEnclosingTag(y,S);return!z||!z.open||!z.close?{start:P,end:P}:_?{start:z.open.from,end:z.close.to}:{start:z.open.to,end:z.close.from}}function Hr(y,S,_){rt(S,_)||je.jumpList.add(y,S,_)}function wr(y,S){je.lastCharacterSearch.increment=y,je.lastCharacterSearch.forward=S.forward,je.lastCharacterSearch.selectedCharacter=S.selectedCharacter}function gi(y,S,_,P){var z=qe(y.getCursor()),j=_?1:-1,G=_?y.lineCount():-1,Y=z.ch,X=z.line,re=y.getLine(X),ue={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:P,reverseSymb:(_?{")":"(","}":"{"}:{"(":")","{":"}"})[P],forward:_,depth:0,curMoveThrough:!1},ye=bi[P];if(!ye)return z;var Ce=wi[ye].init,ve=wi[ye].isComplete;for(Ce&&Ce(ue);X!==G&&S;){if(ue.index+=j,ue.nextCh=ue.lineText.charAt(ue.index),!ue.nextCh){if(X+=j,ue.lineText=y.getLine(X)||"",j>0)ue.index=0;else{var we=ue.lineText.length;ue.index=we>0?we-1:0}ue.nextCh=ue.lineText.charAt(ue.index)}ve(ue)&&(z.line=X,z.ch=ue.index,S--)}return ue.nextCh||ue.curMoveThrough?new De(X,ue.index):z}function mi(y,S,_,P,z){var j=S.line,G=S.ch,Y=y.getLine(j),X=_?1:-1,re=P?Ii:Mo;if(z&&Y==""){if(j+=X,Y=y.getLine(j),!l(y,j))return null;G=_?0:Y.length}for(;;){if(z&&Y=="")return{from:0,to:0,line:j};for(var ue=X>0?Y.length:-1,ye=ue,Ce=ue;G!=ue;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(G))){for(ye=G;G!=ue&&re[we](Y.charAt(G));)G+=X;if(Ce=G,ve=ye!=Ce,ye==S.ch&&j==S.line&&Ce==ye+X)continue;return{from:Math.min(ye,Ce+1),to:Math.max(ye,Ce),line:j}}ve||(G+=X)}if(j+=X,!l(y,j))return null;Y=y.getLine(j),G=X>0?0:Y.length}}function Jn(y,S,_,P,z,j){var G=qe(S),Y=[];(P&&!z||!P&&z)&&_++;for(var X=!P||!z,re=0;re<_;re++){var ue=mi(y,S,P,j,X);if(!ue){var ye=_t(y,y.lastLine());Y.push(P?{line:y.lastLine(),from:ye,to:ye}:{line:0,from:0,to:0});break}Y.push(ue),S=new De(ue.line,P?ue.to-1:ue.from)}var Ce=Y.length!=_,ve=Y[0],we=Y.pop();return P&&!z?(!Ce&&(ve.from!=G.ch||ve.line!=G.line)&&(we=Y.pop()),new De(we.line,we.from)):P&&z?new De(we.line,we.to-1):!P&&z?(!Ce&&(ve.to!=G.ch||ve.line!=G.line)&&(we=Y.pop()),new De(we.line,we.to)):new De(we.line,we.from)}function Ki(y,S,_,P,z){var j=S,G=new De(j.line+_.repeat-1,1/0),Y=y.clipPos(G);return Y.ch--,z||(P.lastHPos=1/0,P.lastHSPos=y.charCoords(Y,"div").left),G}function Ur(y,S,_,P,z){for(var j=z||y.getCursor(),G=j.ch,Y,X=0;X<S;X++){var re=y.getLine(j.line);if(Y=bn(G,re,P,_),Y==-1)return null;G=Y}return new De(y.getCursor().line,Y)}function ws(y,S){var _=y.getCursor().line;return ae(y,new De(_,S-1))}function Vr(y,S,_,P){!x(_,po)&&!Xt.test(_)||(S.marks[_]&&S.marks[_].clear(),S.marks[_]=y.setBookmark(P))}function bn(y,S,_,P,z){var j;return P?(j=S.indexOf(_,y+1),j!=-1):(j=S.lastIndexOf(_,y-1),j!=-1),j}function vi(y,S,_,P,z){function j(Ve){return!/\S/.test(y.getLine(Ve))}function G(Ve,lt,Je){return Je?j(Ve)!=j(Ve+lt):!j(Ve)&&j(Ve+lt)}function Y(Ve){P=P>0?1:-1;var lt=y.ace.session.getFoldLine(Ve);lt&&Ve+P>lt.start.row&&Ve+P<lt.end.row&&(P=(P>0?lt.end.row:lt.start.row)-Ve)}var X=S.line,re=y.firstLine(),ue=y.lastLine(),ye,Ce,ve=X;if(P){for(;re<=ve&&ve<=ue&&_>0;)Y(ve),G(ve,P)&&_--,ve+=P;return new De(ve,0)}var we=y.state.vim;if(we.visualLine&&G(X,1,!0)){var Oe=we.sel.anchor;G(Oe.line,-1,!0)&&(!z||Oe.line!=X)&&(X+=1)}var Ie=j(X);for(ve=X;ve<=ue&&_;ve++)G(ve,1,!0)&&(!z||j(ve)!=Ie)&&_--;for(Ce=new De(ve,0),ve>ue&&!Ie?Ie=!0:z=!1,ve=X;ve>re&&!((!z||j(ve)==Ie||ve==X)&&G(ve,-1,!0));ve--);return ye=new De(ve,0),{start:ye,end:Ce}}function Co(y,S,_,P,z){function j(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function G(re,ue,ye,Ce){var ve=re.getLine(ue),we={line:ve,ln:ue,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!z)return{ln:we.ln,pos:we.pos+1};for(j(we);we.line!==null&&f(we.line[we.pos]);)Oe=we.pos,j(we);return{ln:we.ln,pos:Oe+1}}j(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ue,ye,Ce){var ve=re.getLine(ue),we={line:ve,ln:ue,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(!f(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return z?f(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};j(we)}return we.line=ve,z&&f(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var X={ln:S.line,pos:S.ch};_>0;)P<0?X=Y(y,X.ln,X.pos,P):X=G(y,X.ln,X.pos,P),_--;return new De(X.ln,X.pos)}function ri(y,S,_,P){function z(X,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(X,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=X.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function j(X,re,ue,ye){var Ie=X.getLine(re),Ce=Ie==="",ve={line:Ie,ln:re,pos:ue,dir:ye},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(z(X,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(Ce&&ve.line!==""&&!f(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!Ce&&(ve.pos===ve.line.length-1||f(ve.line[ve.pos+1]))&&(Ce=!0),z(X,ve)}var Ie=X.getLine(we.ln);we.pos=0;for(var Ve=Ie.length-1;Ve>=0;--Ve)if(!f(Ie[Ve])){we.pos=Ve;break}return we}function G(X,re,ue,ye){var Oe=X.getLine(re),Ce={line:Oe,ln:re,pos:ue,dir:ye},ve={ln:Ce.ln,pos:null},we=Ce.line==="";for(z(X,Ce);Ce.line!==null;){if(Ce.line===""&&!we)return ve.pos!==null?ve:{ln:Ce.ln,pos:Ce.pos};if(!(!b(Ce.line[Ce.pos])||ve.pos===null||Ce.ln===ve.ln&&Ce.pos+1===ve.pos))return ve;Ce.line!==""&&!f(Ce.line[Ce.pos])&&(we=!1,ve={ln:Ce.ln,pos:Ce.pos}),z(X,Ce)}var Oe=X.getLine(ve.ln);ve.pos=0;for(var Ie=0;Ie<Oe.length;++Ie)if(!f(Oe[Ie])){ve.pos=Ie;break}return ve}for(var Y={ln:S.line,pos:S.ch};_>0;)P<0?Y=G(y,Y.ln,Y.pos,P):Y=j(y,Y.ln,Y.pos,P),_--;return new De(Y.ln,Y.pos)}function wn(y,S,_,P){var z=S,j,G,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[_],X={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[_],re=y.getLine(z.line).charAt(z.ch),ue=re===X?1:0;if(j=y.scanForBracket(new De(z.line,z.ch+ue),-1,void 0,{bracketRegex:Y}),G=y.scanForBracket(new De(z.line,z.ch+ue),1,void 0,{bracketRegex:Y}),!j||!G)return null;if(j=j.pos,G=G.pos,j.line==G.line&&j.ch>G.ch||j.line>G.line){var ye=j;j=G,G=ye}return P?G.ch+=1:j.ch+=1,{start:j,end:G}}function xr(y,S,_,P){var z=qe(S),j=y.getLine(z.line),G=j.split(""),Y,X,re,ue,ye=G.indexOf(_);if(z.ch<ye)z.ch=ye;else if(ye<z.ch&&G[z.ch]==_){var Ce=/string/.test(y.getTokenTypeAt(me(S,0,1))),ve=/string/.test(y.getTokenTypeAt(S)),we=Ce&&!ve;we||(X=z.ch,--z.ch)}if(G[z.ch]==_&&!X)Y=z.ch+1;else for(re=z.ch;re>-1&&!Y;re--)G[re]==_&&(Y=re+1);if(Y&&!X)for(re=Y,ue=G.length;re<ue&&!X;re++)G[re]==_&&(X=re);return!Y||!X?{start:z,end:z}:(P&&(--Y,++X),{start:new De(z.line,Y),end:new De(z.line,X)})}function Er(){}function En(y){var S=y.state.vim;return S.searchState_||(S.searchState_=new Er)}function gn(y){return ii(y,"/")}function fr(y){return so(y,"/")}function ii(y,S){var _=so(y,S)||[];if(!_.length)return[];var P=[];if(_[0]===0){for(var z=0;z<_.length;z++)typeof _[z]=="number"&&P.push(y.substring(_[z]+1,_[z+1]));return P}}function so(y,S){S||(S="/");for(var _=!1,P=[],z=0;z<y.length;z++){var j=y.charAt(z);!_&&j==S&&P.push(z),_=!_&&j=="\\"}return P}function ao(y){for(var S="|(){",_="}",P=!1,z=[],j=-1;j<y.length;j++){var G=y.charAt(j)||"",Y=y.charAt(j+1)||"",X=Y&&S.indexOf(Y)!=-1;P?((G!=="\\"||!X)&&z.push(G),P=!1):G==="\\"?(P=!0,Y&&_.indexOf(Y)!=-1&&(X=!0),(!X||Y==="\\")&&z.push(G)):(z.push(G),X&&Y!=="\\"&&z.push("\\"))}return z.join("")}function ko(y){for(var S=!1,_=[],P=-1;P<y.length;P++){var z=y.charAt(P)||"",j=y.charAt(P+1)||"";Ni[z+j]?(_.push(Ni[z+j]),P++):S?(_.push(z),S=!1):z==="\\"?(S=!0,i(j)||j==="$"?_.push("$"):j!=="/"&&j!=="\\"&&_.push("\\")):(z==="$"&&_.push("$"),_.push(z),j==="/"&&_.push("\\"))}return _.join("")}function Ir(y){for(var S=new ze.StringStream(y),_=[];!S.eol();){for(;S.peek()&&S.peek()!="\\";)_.push(S.next());var P=!1;for(var z in Es)if(S.match(z,!0)){P=!0,_.push(Es[z]);break}P||_.push(S.next())}return _.join("")}function oi(y,S,_){var P=je.registerController.getRegister("/");if(P.setText(y),y instanceof RegExp)return y;var z=fr(y),j,G;if(!z.length)j=y;else{j=y.substring(0,z[0]);var Y=y.substring(z[0]);G=Y.indexOf("i")!=-1}if(!j)return null;A("pcre")||(j=ao(j)),_&&(S=/^[^A-Z]*$/.test(j));var X=new RegExp(j,S||G?"im":"m");return X}function Gr(y){typeof y=="string"&&(y=document.createElement(y));for(var S,_=1;_<arguments.length;_++)if(S=arguments[_])if(typeof S!="object"&&(S=document.createTextNode(S)),S.nodeType)y.appendChild(S);else for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(P[0]==="$"?y.style[P.slice(1)]=S[P]:y.setAttribute(P,S[P]));return y}function It(y,S){var _=Gr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},S);y.openNotification?y.openNotification(_,{bottom:!0,duration:5e3}):alert(_.innerText)}function _o(y,S){return Gr("div",{$display:"flex"},Gr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Gr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),S&&Gr("span",{$color:"#888"},S))}function sr(y,S){if(Lr.length){S.value||(S.value=""),Lt=S;return}var _=_o(S.prefix,S.desc);if(y.openDialog)y.openDialog(_,S.onClose,{onKeyDown:S.onKeyDown,onKeyUp:S.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:S.value});else{var P="";typeof S.prefix!="string"&&S.prefix&&(P+=S.prefix.textContent),S.desc&&(P+=" "+S.desc),S.onClose(prompt(P,""))}}function _n(y,S){if(y instanceof RegExp&&S instanceof RegExp){for(var _=["global","multiline","ignoreCase","source"],P=0;P<_.length;P++){var z=_[P];if(y[z]!==S[z])return!1}return!0}return!1}function oe(y,S,_,P){if(S){var z=En(y),j=oi(S,!!_,!!P);if(j)return Be(y,j),_n(j,z.getQuery())||z.setQuery(j),j}}function Ne(y){if(y.source.charAt(0)=="^")var S=!0;return{token:function(_){if(S&&!_.sol()){_.skipToEnd();return}var P=_.match(y,!1);if(P)return P[0].length==0?(_.next(),"searching"):!_.sol()&&(_.backUp(1),!y.exec(_.next()+P[0]))?(_.next(),null):(_.match(y),"searching");for(;!_.eol()&&(_.next(),!_.match(y,!1)););},query:y}}function Be(y,S){clearTimeout(en);var _=En(y);_.highlightTimeout=en,en=setTimeout(function(){if(y.state.vim){var P=En(y);P.highlightTimeout=null;var z=P.getOverlay();(!z||S!=z.query)&&(z&&y.removeOverlay(z),z=Ne(S),y.addOverlay(z),y.showMatchesOnScrollbar&&(P.getScrollbarAnnotate()&&P.getScrollbarAnnotate().clear(),P.setScrollbarAnnotate(y.showMatchesOnScrollbar(S))),P.setOverlay(z))}},50)}function yt(y,S,_,P){return P===void 0&&(P=1),y.operation(function(){for(var z=y.getCursor(),j=y.getSearchCursor(_,z),G=0;G<P;G++){var Y=j.find(S);if(G==0&&Y&&rt(j.from(),z)){var X=S?j.from():j.to();Y=j.find(S),Y&&!Y[0]&&rt(j.from(),X)&&y.getLine(X.line).length==X.ch&&(Y=j.find(S))}if(!Y&&(j=y.getSearchCursor(_,S?new De(y.lastLine()):new De(y.firstLine(),0)),!j.find(S)))return}return j.from()})}function dn(y,S,_,P,z){return P===void 0&&(P=1),y.operation(function(){var j=y.getCursor(),G=y.getSearchCursor(_,j),Y=G.find(!S);!z.visualMode&&Y&&rt(G.from(),j)&&G.find(!S);for(var X=0;X<P;X++)if(Y=G.find(S),!Y&&(G=y.getSearchCursor(_,S?new De(y.lastLine()):new De(y.firstLine(),0)),!G.find(S)))return;return[G.from(),G.to()]})}function jt(y){var S=En(y);S.highlightTimeout&&(clearTimeout(S.highlightTimeout),S.highlightTimeout=null),y.removeOverlay(En(y).getOverlay()),S.setOverlay(null),S.getScrollbarAnnotate()&&(S.getScrollbarAnnotate().clear(),S.setScrollbarAnnotate(null))}function Cr(y,S,_){return typeof y!="number"&&(y=y.line),S instanceof Array?x(y,S):typeof _=="number"?y>=S&&y<=_:y==S}function Hn(y){var S=y.ace.renderer;return{top:S.getFirstFullyVisibleRow(),bottom:S.getLastFullyVisibleRow()}}function sn(y,S,_){if(_=="'"||_=="`")return je.jumpList.find(y,-1)||new De(0,0);if(_==".")return pr(y);var P=S.marks[_];return P&&P.find()}function pr(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var S=y.doc.history.done,_=S.length;_--;)if(S[_].changes)return qe(S[_].changes[0].to)}function fn(y,S,_,P,z,j,G,Y,X){function re(){y.operation(function(){for(;!Oe;)ue(),Ce();ve()})}function ue(){var Je=y.getRange(j.from(),j.to()),Qe=Je.replace(G,Y),xn=j.to().line;j.replace(Qe),Ve=j.to().line,z+=Ve-xn,lt=Ve<xn}function ye(){var Je=Ie&&qe(j.to()),Qe=j.findNext();return Qe&&!Qe[0]&&Je&&rt(j.from(),Je)&&(Qe=j.findNext()),Qe}function Ce(){for(;ye()&&Cr(j.from(),P,z);)if(!(!_&&j.from().line==Ve&&!lt)){y.scrollIntoView(j.from(),30),y.setSelection(j.from(),j.to()),Ie=j.from(),Oe=!1;return}Oe=!0}function ve(Je){if(Je&&Je(),y.focus(),Ie){y.setCursor(Ie);var Qe=y.state.vim;Qe.exMode=!1,Qe.lastHPos=Qe.lastHSPos=Ie.ch}X&&X()}function we(Je,Qe,xn){ze.e_stop(Je);var xt=B(Je);switch(xt){case"y":ue(),Ce();break;case"n":Ce();break;case"a":var Vt=X;X=void 0,y.operation(re),X=Vt;break;case"l":ue();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(xn)}return Oe&&ve(xn),!0}y.state.vim.exMode=!0;var Oe=!1,Ie,Ve,lt;if(Ce(),Oe){It(y,"No matches for "+G.source);return}if(!S){re(),X&&X();return}sr(y,{prefix:Gr("span","replace with ",Gr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function gr(y,S){var _=y.state.vim,P=je.macroModeState,z=je.registerController.getRegister("."),j=P.isPlaying,G=P.lastInsertModeChanges;j||(y.off("change",Ho),_.insertEnd&&_.insertEnd.clear(),_.insertEnd=null,ze.off(y.getInputField(),"keydown",Ao)),!j&&_.insertModeRepeat>1&&(Ss(y,_,_.insertModeRepeat-1,!0),_.lastEditInputState.repeatOverride=_.insertModeRepeat),delete _.insertModeRepeat,_.insertMode=!1,S||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),z.setText(G.changes.join("")),ze.signal(y,"vim-mode-change",{mode:"normal"}),P.isRecording&&ar(P)}function lo(y){In.unshift(y)}function xs(y,S,_,P,z){var j={keys:y,type:S};j[S]=_,j[S+"Args"]=P;for(var G in z)j[G]=z[G];lo(j)}function Cs(y,S,_,P){var z=je.registerController.getRegister(P);if(P==":"){z.keyBuffer[0]&&Nr.processCommand(y,z.keyBuffer[0]),_.isPlaying=!1;return}var j=z.keyBuffer,G=0;_.isPlaying=!0,_.replaySearchQueries=z.searchQueries.slice(0);for(var Y=0;Y<j.length;Y++)for(var X=j[Y],re,ue;X;)if(re=/<\w+-.+?>|<\w+>|./.exec(X),ue=re[0],X=X.substring(re.index+ue.length),bt.handleKey(y,ue,"macro"),S.insertMode){var ye=z.insertModeChanges[G++].changes;je.macroModeState.lastInsertModeChanges.changes=ye,Vo(y,ye,1),gr(y)}_.isPlaying=!1}function ks(y,S){if(!y.isPlaying){var _=y.latestRegister,P=je.registerController.getRegister(_);P&&P.pushText(S)}}function ar(y){if(!y.isPlaying){var S=y.latestRegister,_=je.registerController.getRegister(S);_&&_.pushInsertModeChanges&&_.pushInsertModeChanges(y.lastInsertModeChanges)}}function _s(y,S){if(!y.isPlaying){var _=y.latestRegister,P=je.registerController.getRegister(_);P&&P.pushSearchQuery&&P.pushSearchQuery(S)}}function Ho(y,S){var _=je.macroModeState,P=_.lastInsertModeChanges;if(!_.isPlaying)for(var z=y.state.vim;S;){if(P.expectCursorActivityForChange=!0,P.ignoreCount>1)P.ignoreCount--;else if(S.origin=="+input"||S.origin=="paste"||S.origin===void 0){var j=y.listSelections().length;j>1&&(P.ignoreCount=j);var G=S.text.join(`
|
|
1402
|
-
`);if(P.maybeReset&&(P.changes=[],P.maybeReset=!1),G)if(y.state.overwrite&&!/\n/.test(G))P.changes.push([G]);else{if(G.length>1){var Y=z&&z.insertEnd&&z.insertEnd.find(),X=y.getCursor();if(Y&&Y.line==X.line){var re=Y.ch-X.ch;re>0&&re<G.length&&(P.changes.push([G,re]),G="")}}G&&P.changes.push(G)}}S=S.next}}function co(y){var S=y.state.vim;if(S.insertMode){var _=je.macroModeState;if(_.isPlaying)return;var P=_.lastInsertModeChanges;P.expectCursorActivityForChange?P.expectCursorActivityForChange=!1:(P.maybeReset=!0,S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||As(y,S)}function As(y,S,_){var P=y.getCursor("anchor"),z=y.getCursor("head");if(S.visualMode&&!y.somethingSelected()?hn(y,!1):!S.visualMode&&!S.insertMode&&y.somethingSelected()&&(S.visualMode=!0,S.visualLine=!1,ze.signal(y,"vim-mode-change",{mode:"visual"})),S.visualMode){var j=st(z,P)?0:-1,G=st(z,P)?-1:0;z=me(z,0,j),P=me(P,0,G),S.sel={anchor:P,head:z},Vr(y,S,"<",et(z,P)),Vr(y,S,">",Pt(z,P))}else!S.insertMode&&!_&&(S.lastHPos=y.getCursor().ch)}function Uo(y,S){this.keyName=y,this.key=S.key,this.ctrlKey=S.ctrlKey,this.altKey=S.altKey,this.metaKey=S.metaKey,this.shiftKey=S.shiftKey}function Ao(y){var S=je.macroModeState,_=S.lastInsertModeChanges,P=ze.keyName?ze.keyName(y):y.key;P&&(P.indexOf("Delete")!=-1||P.indexOf("Backspace")!=-1)&&(_.maybeReset&&(_.changes=[],_.maybeReset=!1),_.changes.push(new Uo(P,y)))}function Ss(y,S,_,P){function z(){Y?yi.processAction(y,S,S.lastEditActionCommand):yi.evalInput(y,S)}function j(ue){if(G.lastInsertModeChanges.changes.length>0){ue=S.lastEditActionCommand?ue:1;var ye=G.lastInsertModeChanges;Vo(y,ye.changes,ue)}}var G=je.macroModeState;G.isPlaying=!0;var Y=!!S.lastEditActionCommand,X=S.inputState;if(S.inputState=S.lastEditInputState,Y&&S.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<_;re++)z(),j(1);else P||z(),j(_);S.inputState=X,S.insertMode&&!P&&gr(y),G.isPlaying=!1}function $s(y,S){ze.lookupKey(S,"vim-insert",function(_){return typeof _=="string"?ze.commands[_](y):_(y),!0})}function Vo(y,S,_){var P=y.getCursor("head"),z=je.macroModeState.lastInsertModeChanges.visualBlock;z&&(ir(y,P,z+1),_=y.listSelections().length,y.setCursor(P));for(var j=0;j<_;j++){z&&y.setCursor(me(P,j,0));for(var G=0;G<S.length;G++){var Y=S[G];if(Y instanceof Uo)$s(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var X=y.getCursor(),re=me(X,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],X,Y[1]?X:re),y.setCursor(re)}}}z&&y.setCursor(me(P,0,1))}function fa(y,S,_,P){S.length>1&&S[0]=="n"&&(S=S.replace("numpad","")),S=go[S]||S;var z="";if(_.ctrlKey&&(z+="C-"),_.altKey&&(z+="A-"),(z||S.length>1)&&_.shiftKey&&(z+="S-"),P&&!P.expectLiteralNext&&S.length==1){if(Ln.keymap&&S in Ln.keymap)(Ln.remapCtrl!==!1||!z)&&(S=Ln.keymap[S]);else if(S.charCodeAt(0)>255){var j=_.code&&_.code.slice(-1)||"";_.shiftKey||(j=j.toLowerCase()),j&&(S=j)}}return z+=S,z.length>1&&(z="<"+z+">"),z}function uo(y){var S=new y.constructor;return Object.keys(y).forEach(function(_){if(_!="insertEnd"){var P=y[_];Array.isArray(P)?P=P.slice():P&&typeof P=="object"&&P.constructor!=Object&&(P=uo(P)),S[_]=P}}),y.sel&&(S.sel={head:y.sel.head&&qe(y.sel.head),anchor:y.sel.anchor&&qe(y.sel.anchor)}),S}function Go(y,S,_){var P=!1,z=bt.maybeInitVimState_(y),j=z.visualBlock||z.wasInVisualBlock,G=y.ace.inMultiSelectMode;if(z.wasInVisualBlock&&!G?z.wasInVisualBlock=!1:G&&z.visualBlock&&(z.wasInVisualBlock=!0),S=="<Esc>"&&!z.insertMode&&!z.visualMode&&G)y.ace.exitMultiSelectMode();else if(j||!G||y.ace.inVirtualSelectionMode)P=bt.handleKey(y,S,_);else{var Y=uo(z),X=z.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ue=y.ace.selection;y.state.vim.lastHPos=ue.$desiredColumn==null?ue.lead.column:ue.$desiredColumn,y.state.vim.inputState.changeQueue=X[re];var ye=y.getCursor("head"),Ce=y.getCursor("anchor"),ve=st(ye,Ce)?0:-1,we=st(ye,Ce)?-1:0;ye=me(ye,0,ve),Ce=me(Ce,0,we),y.state.vim.sel.head=ye,y.state.vim.sel.anchor=Ce,P=kr(y,S,_),ue.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(X[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=uo(Y)),re++}),y.curOp.cursorActivity&&!P&&(y.curOp.cursorActivity=!1),z.status=y.state.vim.status,y.state.vim=z,z.inputState.changeQueueList=X,z.inputState.changeQueue=null},!0)}return P&&!z.visualMode&&!z.insert&&z.visualMode!=y.somethingSelected()&&As(y,z,!0),P}function Yi(y,S){S.off("beforeEndOperation",Yi);var _=S.state.cm.vimCmd;_&&S.execCommand(_.exec?_:_.name,_.args),S.curOp=S.prevOp}var lr=e("../range").Range,Ms=e("../lib/event_emitter").EventEmitter,qr=e("../lib/dom"),pa=e("../lib/oop"),ga=e("../lib/keys"),qo=e("../lib/event"),Ji=e("../search").Search,So=e("../lib/useragent"),Ko=e("../search_highlight").SearchHighlight,ho=e("../commands/multi_select_commands"),ma=e("../mode/text").Mode.prototype.tokenRe,fo=e("../ext/hardwrap").hardWrap;e("../multi_select");var ze=function(y){this.ace=y,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};ze.Pos=function(y,S){if(!(this instanceof De))return new De(y,S);this.line=y,this.ch=S},ze.defineOption=function(y,S,_){},ze.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
|
|
1403
|
-
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},ze.keyMap={},ze.addClass=ze.rmClass=function(){},ze.e_stop=ze.e_preventDefault=qo.stopEvent,ze.keyName=function(y){var S=ga[y.keyCode]||y.key||"";return S.length==1&&(S=S.toUpperCase()),S=qo.getModifierString(y).replace(/(^|-)\w/g,function(_){return _.toUpperCase()})+S,S},ze.keyMap.default=function(y){return function(S){var _=S.ace.commands.commandKeyBinding[y.toLowerCase()];return _&&S.ace.execCommand(_)!==!1}},ze.lookupKey=function y(S,_,P){_||(_="default"),typeof _=="string"&&(_=ze.keyMap[_]||ze.keyMap.default);var z=typeof _=="function"?_(S):_[S];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&P(z))return"handled";if(_.fallthrough){if(!Array.isArray(_.fallthrough))return y(S,_.fallthrough,P);for(var j=0;j<_.fallthrough.length;j++){var G=y(S,_.fallthrough[j],P);if(G)return G}}},ze.findMatchingTag=function(y,S){return y.findMatchingTag(S)},ze.findEnclosingTag=function(y,S){},ze.signal=function(y,S,_){return y._signal(S,_)},ze.on=qo.addListener,ze.off=qo.removeListener,ze.isWordChar=function(y){return y<""?/^\w$/.test(y):(ma.lastIndex=0,ma.test(y))},(function(){pa.implement(ze.prototype,Ms),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(_){this.$lineHandleChanges&&this.$lineHandleChanges.push(_);var P={text:_.action[0]=="i"?_.lines:[]},z=this.curOp=this.curOp||{};z.changeHandlers||(z.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),z.lastChange?z.lastChange.next=z.lastChange=P:z.lastChange=z.change=P,this.$updateMarkers(_)},this.onSelectionChange=function(){var _=this.curOp=this.curOp||{};_.cursorActivityHandlers||(_.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(ho.keyboardHandler)},this.operation=function(_,P){if(!P&&this.curOp||P&&this.curOp&&this.curOp.force)return _();if((P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var z=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var j=this.curOp=this.curOp||{};this.curOp.force=P;var G=_();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!j.cursorActivity&&!j.lastChange&&z&&(this.ace.prevOp=z)),(P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),G},this.onBeforeEndOperation=function(){var _=this.curOp;_&&(_.change&&this.signal("change",_.change,_),_&&_.cursorActivity&&this.signal("cursorActivity",null,_),this.curOp=null)},this.signal=function(_,P,z){var j=z?z[_+"Handlers"]:(this._eventRegistry||{})[_];if(j){j=j.slice();for(var G=0;G<j.length;G++)j[G](this,P)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(_,P){typeof _=="object"&&(P=_.ch,_=_.line);var z=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:_,column:P}),this.ace.selection.moveTo(_,P),z&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(_){var P=this.ace.selection,z=_=="anchor"?P.isEmpty()?P.lead:P.anchor:_=="head"||!_?P.lead:P.getRange()[_];return p(z)},this.listSelections=function(_){var P=this.ace.multiSelect.rangeList.ranges;return!P.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:P.map(function(z){return{anchor:this.clipPos(p(z.cursor==z.end?z.start:z.end)),head:this.clipPos(p(z.cursor))}},this)},this.setSelections=function(_,P){var z=this.ace.multiSelect,j=_.map(function(re){var ue=g(re.anchor),ye=g(re.head),Ce=lr.comparePoints(ue,ye)<0?new lr.fromPoints(ue,ye):new lr.fromPoints(ye,ue);return Ce.cursor=lr.comparePoints(Ce.start,ye)?Ce.end:Ce.start,Ce});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(j[0]);return}P?j[P]&&j.push(j.splice(P,1)[0]):j=j.reverse(),z.toSingleRange(j[0].clone());for(var G=this.ace.session,Y=0;Y<j.length;Y++){var X=G.$clipRangeToDocument(j[Y]);z.addRange(X)}},this.setSelection=function(_,P,z){var j=this.ace.selection;j.moveTo(_.line,_.ch),j.selectTo(P.line,P.ch),z&&z.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(_){return!this.ace.selection.isEmpty()},this.clipPos=function(_){var P=this.ace.session.$clipPositionToDocument(_.line,_.ch);return p(P)},this.foldCode=function(_){this.ace.session.$toggleFoldWidget(_.line,{})},this.markText=function(_){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(_){var P=_.action=="insert",z=_.start,j=_.end,G=(j.row-z.row)*(P?1:-1),Y=(j.column-z.column)*(P?1:-1);P&&(j=z);for(var X in this.marks){var re=this.marks[X],ue=lr.comparePoints(re,z);if(!(ue<0)){if(ue===0&&P)if(!re.$insertRight)ue=1;else{if(re.bias!=1){re.bias=-1;continue}ue=1}var ye=P?ue:lr.comparePoints(re,j);if(ye>0){re.row+=G,re.column+=re.row==j.row?Y:0;continue}!P&&ye<=0&&(re.row=z.row,re.column=z.column,ye===0&&(re.bias=1))}}};var y=function(_,P,z,j){this.cm=_,this.id=P,this.row=z,this.column=j,_.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return p(this)},this.setBookmark=function(_,P){var z=new y(this,this.$uid++,_.line,_.ch);return(!P||!P.insertLeft)&&(z.$insertRight=!0),this.marks[z.id]=z,z},this.moveH=function(_,P){if(P=="char"){var z=this.ace.selection;z.clearSelection(),z.moveCursorBy(0,_)}},this.findPosV=function(_,P,z,j){if(z=="page"){var G=this.ace.renderer,Y=G.layerConfig;P*=Math.floor(Y.height/Y.lineHeight),z="line"}if(z=="line"){var X=this.ace.session.documentToScreenPosition(_.line,_.ch);j!=null&&(X.column=j),X.row+=P,X.row=Math.min(Math.max(0,X.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(X.row,X.column);return p(re)}debugger},this.charCoords=function(_,P){if(P=="div"||!P){var z=this.ace.session.documentToScreenPosition(_.line,_.ch);return{left:z.column,top:z.row}}if(P=="local"){var j=this.ace.renderer,z=this.ace.session.documentToScreenPosition(_.line,_.ch),G=j.layerConfig.lineHeight,Y=j.layerConfig.characterWidth,X=G*z.row;return{left:z.column*Y,top:X,bottom:X+G}}},this.coordsChar=function(_,P){var z=this.ace.renderer;if(P=="local"){var j=Math.max(0,Math.floor(_.top/z.lineHeight)),G=Math.max(0,Math.floor(_.left/z.characterWidth)),Y=z.session.screenToDocumentPosition(j,G);return p(Y)}if(P=="div")throw"not implemented"},this.getSearchCursor=function(_,P,z){var j=!1,G=!1;_ instanceof RegExp&&!_.global&&(j=!_.ignoreCase,_=_.source,G=!0),_=="\\n"&&(_=`
|
|
1404
|
-
`,G=!1);var Y=new Ji;P.ch==null&&(P.ch=Number.MAX_VALUE);var X={row:P.line,column:P.ch},re=this,ue=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ye){Y.setOptions({needle:_,caseSensitive:j,wrap:!1,backwards:ye,regExp:G,start:ue||X});var Ce=Y.find(re.ace.session);return ue=Ce,ue&&[!ue.isEmpty()]},from:function(){return ue&&p(ue.start)},to:function(){return ue&&p(ue.end)},replace:function(ye){ue&&(ue.end=re.ace.session.doc.replace(ue,ye))}}},this.scrollTo=function(_,P){var z=this.ace.renderer,j=z.layerConfig,G=j.maxHeight;G-=(z.$size.scrollerHeight-z.lineHeight)*z.$scrollPastEnd,P!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(P,G))),_!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(_,j.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(_,P){if(_){var z=this.ace.renderer,j={top:0,bottom:P};z.scrollCursorIntoView(g(_),z.lineHeight*2/z.$size.scrollerHeight,j)}},this.getLine=function(_){return this.ace.session.getLine(_)},this.getRange=function(_,P){return this.ace.session.getTextRange(new lr(_.line,_.ch,P.line,P.ch))},this.replaceRange=function(_,P,z){z||(z=P);var j=new lr(P.line,P.ch,z.line,z.ch);return this.ace.session.$clipRangeToDocument(j),this.ace.session.replace(j,_)},this.replaceSelection=this.replaceSelections=function(_){var P=Array.isArray(_)&&_,z=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(z.getRange(),P?_[0]||"":_);return}z.inVirtualSelectionMode=!0;var j=z.rangeList.ranges;j.length||(j=[this.ace.multiSelect.getRange()]);for(var G=j.length;G--;)this.ace.session.replace(j[G],P?_[G]||"":_);z.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(_){return this.getRange(_.anchor,_.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var S={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(_,P){switch(this.state[_]=P,_){case"indentWithTabs":_=S[_],P=!P;break;case"keyMap":this.state.$keyMap=P;return;default:_=S[_]}_&&this.ace.setOption(_,P)},this.getOption=function(_){var P,z=S[_];switch(z&&(P=this.ace.getOption(z)),_){case"indentWithTabs":return _=S[_],!P;case"keyMap":return this.state.$keyMap||"vim"}return z?P:this.state[_]},this.toggleOverwrite=function(_){return this.state.overwrite=_,this.ace.setOverwrite(_)},this.addOverlay=function(_){if(!this.$searchHighlight||!this.$searchHighlight.session){var P=new Ko(null,"ace_highlight-marker","text"),z=this.ace.session.addDynamicMarker(P);P.id=z.id,P.session=this.ace.session,P.destroy=function(G){P.session.off("change",P.updateOnChange),P.session.off("changeEditor",P.destroy),P.session.removeMarker(P.id),P.session=null},P.updateOnChange=function(G){var Y=G.start.row;Y==G.end.row?P.cache[Y]=void 0:P.cache.splice(Y,P.cache.length)},P.session.on("changeEditor",P.destroy),P.session.on("change",P.updateOnChange)}var j=new RegExp(_.query.source,"gmi");this.$searchHighlight=_.highlight=P,this.$searchHighlight.setRegexp(j),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(_){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var _=this.ace.renderer,P=_.layerConfig;return{left:_.scrollLeft,top:_.scrollTop,height:P.maxHeight,width:P.width,clientHeight:P.height,clientWidth:P.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(_){return this.ace.setValue(_,-1)},this.getTokenTypeAt=function(_){var P=this.ace.session.getTokenAt(_.line,_.ch);return P&&/comment|string/.test(P.type)?"string":""},this.findMatchingBracket=function(_){var P=this.ace.session.findMatchingBracket(g(_));return{to:P&&p(P)}},this.findMatchingTag=function(_){var P=this.ace.session.getMatchingTags(g(_));if(P)return{open:{from:p(P.openTag.start),to:p(P.openTag.end)},close:{from:p(P.closeTag.start),to:p(P.closeTag.end)}}},this.indentLine=function(_,P){P===!0?this.ace.session.indentRows(_,_," "):P===!1&&this.ace.session.outdentRows(new lr(_,0,_,0))},this.indexFromPos=function(_){return this.ace.session.doc.positionToIndex(g(_))},this.posFromIndex=function(_){return p(this.ace.session.doc.indexToPosition(_))},this.focus=function(_){return this.ace.textInput.focus()},this.blur=function(_){return this.ace.blur()},this.defaultTextHeight=function(_){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(_,P,z,j){var G=j.bracketRegex.source,Y=/paren|text|operator|tag/;if(P==1)var X=this.ace.session.$findClosingBracket(G.slice(1,2),g(_),Y);else{var X=this.ace.session.$findOpeningBracket(G.slice(-2,-1),{row:_.line,column:_.ch+1},Y);!X&&j.bracketRegex&&j.bracketRegex.test(this.getLine(_.line)[_.ch-1])&&(X={row:_.line,column:_.ch-1})}return X&&{pos:p(X)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(_){if(ze.commands.hasOwnProperty(_))return ze.commands[_](this);if(_=="indentAuto")return this.ace.execCommand("autoindent");console.log(_+" is not implemented")},this.getLineNumber=function(_){var P=this.$lineHandleChanges;if(!P)return null;for(var z=_.row,j=0;j<P.length;j++){var G=P[j];if(G.start.row!=G.end.row){if(G.action[0]=="i")G.start.row<z&&(z+=G.end.row-G.start.row);else if(G.start.row<z){if(z<G.end.row||z==G.end.row&&G.start.column>0)return null;z-=G.end.row-G.start.row}}}return z},this.getLineHandle=function(_){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(_),row:_}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var _=this.ace.session.$undoManager;if(_&&_.$lastDelta)return p(_.$lastDelta.end)}}).call(ze.prototype);var Ts=ze.StringStream=function(y,S){this.pos=this.start=0,this.string=y,this.tabSize=S||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Ts.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(y){var S=this.string.charAt(this.pos);if(typeof y=="string")var _=S==y;else var _=S&&(y.test?y.test(S):y(S));if(_)return++this.pos,S},eatWhile:function(y){for(var S=this.pos;this.eat(y););return this.pos>S},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var S=this.string.indexOf(y,this.pos);if(S>-1)return this.pos=S,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,S,_){if(typeof y!="string"){var P=this.string.slice(this.pos).match(y);return P&&P.index>0?null:(P&&S!==!1&&(this.pos+=P[0].length),P)}var z=function(G){return _?G.toLowerCase():G},j=this.string.substr(this.pos,y.length);if(z(j)==z(y))return S!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,S){this.lineStart+=y;try{return S()}finally{this.lineStart-=y}}},ze.defineExtension=function(y,S){ze.prototype[y]=S},qr.importCssString(`.normal-mode .ace_cursor{
|
|
1405
|
-
border: none;
|
|
1406
|
-
background-color: rgba(255,0,0,0.5);
|
|
1407
|
-
}
|
|
1408
|
-
.normal-mode .ace_hidden-cursors .ace_cursor{
|
|
1409
|
-
background-color: transparent;
|
|
1410
|
-
border: 1px solid red;
|
|
1411
|
-
opacity: 0.7
|
|
1412
|
-
}
|
|
1413
|
-
.ace_dialog {
|
|
1414
|
-
position: absolute;
|
|
1415
|
-
left: 0; right: 0;
|
|
1416
|
-
background: inherit;
|
|
1417
|
-
z-index: 15;
|
|
1418
|
-
padding: .1em .8em;
|
|
1419
|
-
overflow: hidden;
|
|
1420
|
-
color: inherit;
|
|
1421
|
-
}
|
|
1422
|
-
.ace_dialog-top {
|
|
1423
|
-
border-bottom: 1px solid #444;
|
|
1424
|
-
top: 0;
|
|
1425
|
-
}
|
|
1426
|
-
.ace_dialog-bottom {
|
|
1427
|
-
border-top: 1px solid #444;
|
|
1428
|
-
bottom: 0;
|
|
1429
|
-
}
|
|
1430
|
-
.ace_dialog input {
|
|
1431
|
-
border: none;
|
|
1432
|
-
outline: none;
|
|
1433
|
-
background: transparent;
|
|
1434
|
-
width: 20em;
|
|
1435
|
-
color: inherit;
|
|
1436
|
-
font-family: monospace;
|
|
1437
|
-
}`,"vimMode",!1),(function(){function y(_,P,z){var j=_.ace.container,G;return G=j.appendChild(document.createElement("div")),z?G.className="ace_dialog ace_dialog-bottom":G.className="ace_dialog ace_dialog-top",typeof P=="string"?G.innerHTML=P:G.appendChild(P),G}function S(_,P){_.state.currentNotificationClose&&_.state.currentNotificationClose(),_.state.currentNotificationClose=P}ze.defineExtension("openDialog",function(_,P,z){function j(ye){if(typeof ye=="string")re.value=ye;else{if(Y||ye&&ye.type=="blur"&&document.activeElement===re)return;X.state.dialog==G&&(X.state.dialog=null,X.focus()),Y=!0,G.remove(),z.onClose&&z.onClose(G);var Ce=X;Ce.state.vim&&(Ce.state.vim.status=null,Ce.ace._signal("changeStatus"),Ce.ace.renderer.$loop.schedule(Ce.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){z||(z={}),S(this,null);var G=y(this,_,z.bottom),Y=!1,X=this;this.state.dialog=G;var re=G.getElementsByTagName("input")[0],ue;return re?(z.value&&(re.value=z.value,z.selectValueOnOpen!==!1&&re.select()),z.onInput&&ze.on(re,"input",function(ye){z.onInput(ye,re.value,j)}),z.onKeyUp&&ze.on(re,"keyup",function(ye){z.onKeyUp(ye,re.value,j)}),ze.on(re,"keydown",function(ye){z&&z.onKeyDown&&z.onKeyDown(ye,re.value,j)||(ye.keyCode==13&&P(re.value),(ye.keyCode==27||z.closeOnEnter!==!1&&ye.keyCode==13)&&(ze.e_stop(ye),j()))}),z.closeOnBlur!==!1&&ze.on(re,"blur",j),re.focus()):(ue=G.getElementsByTagName("button")[0])&&(ze.on(ue,"click",function(){j(),X.focus()}),z.closeOnBlur!==!1&&ze.on(ue,"blur",j),ue.focus()),j}}),ze.defineExtension("openNotification",function(_,P){function z(){G||(G=!0,clearTimeout(Y),j.remove())}if(!this.virtualSelectionMode()){S(this,z);var j=y(this,_,P&&P.bottom),G=!1,Y,X=P&&typeof P.duration<"u"?P.duration:5e3;return ze.on(j,"click",function(re){ze.e_preventDefault(re),z()}),X&&(Y=setTimeout(z,X)),z}})})();var De=ze.Pos,In=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],$o=In.length,Xi=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Ln=N(""),va=/[\d]/,Mo=[ze.isWordChar,function(y){return y&&!ze.isWordChar(y)&&!/\s/.test(y)}],Ii=[function(y){return/\S/.test(y)}],po=["<",">"],Rs=["-",'"',".",":","_","/","+"],Xt=/^\w$/,at;try{at=new RegExp("^[\\p{Lu}]$","u")}catch{at=/^[A-Z]$/}var Wt={};I("filetype",void 0,"string",["ft"],function(y,S){if(S!==void 0){if(y===void 0){var _=S.getOption("mode");return _=="null"?"":_}var _=y==""?"null":y;S.setOption("mode",_)}}),I("textwidth",80,"number",["tw"],function(y,S){if(S!==void 0){if(y===void 0){var _=S.getOption("textwidth");return _}var P=Math.round(y);P>1&&S.setOption("textwidth",P)}});var Li=function(){function y(X,re,ue){function ye(Oe){var Ie=++z%P,Ve=Y[Ie];Ve&&Ve.clear(),Y[Ie]=X.setBookmark(Oe)}var Ce=z%P,ve=Y[Ce];if(ve){var we=ve.find();we&&!rt(we,re)&&ye(re)}else ye(re);ye(ue),j=z,G=z-P+1,G<0&&(G=0)}function S(X,re){z+=re,z>j?z=j:z<G&&(z=G);var ue=Y[(P+z)%P];if(ue&&!ue.find()){var ye=re>0?1:-1,Ce,ve=X.getCursor();do if(z+=ye,ue=Y[(P+z)%P],ue&&(Ce=ue.find())&&!rt(ve,Ce))break;while(z<j&&z>G)}return ue}function _(X,re){var ue=z,ye=S(X,re);return z=ue,ye&&ye.find()}var P=100,z=-1,j=0,G=0,Y=new Array(P);return{cachedCursor:void 0,add:y,find:_,move:S}},Pn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=je.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,S){var _=je.registerController.getRegister(S);if(_){if(_.clear(),this.latestRegister=S,y.openDialog){var P=Gr("span",{class:"cm-vim-message"},"recording @"+S);this.onRecordingDone=y.openDialog(P,null,{bottom:!0})}this.isRecording=!0}}};var je,mn,bt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return je.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return je},maybeInitVimState_:O,suppressErrorLogging:!1,InsertModeKey:Uo,map:function(y,S,_){Nr.map(y,S,_)},unmap:function(y,S){return Nr.unmap(y,S)},noremap:function(y,S,_){Nr.map(y,S,_,!0)},mapclear:function(y){var S=In.length,_=$o,P=In.slice(0,S-_);if(In=In.slice(S-_),y)for(var z=P.length-1;z>=0;z--){var j=P[z];if(y!==j.context)if(j.context)this._mapCommand(j);else{var G=["normal","insert","visual"];for(var Y in G)if(G[Y]!==y){var X={};for(var re in j)X[re]=j[re];X.context=G[Y],this._mapCommand(X)}}}},langmap:F,vimKeyFromEvent:B,setOption:M,getOption:A,defineOption:I,defineEx:function(y,S,_){if(!S)S=y;else if(y.indexOf(S)!==0)throw new Error('(Vim.defineEx) "'+S+'" is not a prefix of "'+y+'", command not registered');cr[y]=_,Nr.commandMap_[S]={name:y,shortName:S,type:"api"}},handleKey:function(y,S,_){var P=this.findKey(y,S,_);if(typeof P=="function")return P()},multiSelectHandleKey:Go,findKey:function(y,S,_){function P(){var re=je.macroModeState;if(re.isRecording){if(S=="q")return re.exitMacroRecordMode(),k(y),!0;_!="mapping"&&ks(re,S)}}function z(){if(S=="<Esc>"){if(Y.visualMode)hn(y);else{if(!Y.insertMode)return;gr(y)}return k(y),!0}}function j(){if(z())return!0;Y.inputState.keyBuffer.push(S);var re=Y.inputState.keyBuffer.join(""),ue=S.length==1,ye=yi.matchCommand(re,In,Y.inputState,"insert"),Ce=Y.inputState.changeQueue;if(ye.type=="none")return k(y),!1;if(ye.type=="partial"){if(ye.expectLiteralNext&&(Y.expectLiteralNext=!0),mn&&window.clearTimeout(mn),mn=ue&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&k(y)},A("insertModeEscKeysTimeout")),ue){var ve=y.listSelections();(!Ce||Ce.removed.length!=ve.length)&&(Ce=Y.inputState.changeQueue=new L),Ce.inserted+=S;for(var we=0;we<ve.length;we++){var Oe=et(ve[we].anchor,ve[we].head),Ie=Pt(ve[we].anchor,ve[we].head),Ve=y.getRange(Oe,y.state.overwrite?me(Ie,0,1):Ie);Ce.removed[we]=(Ce.removed[we]||"")+Ve}}return!ue}if(Y.expectLiteralNext=!1,mn&&window.clearTimeout(mn),ye.command&&Ce){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var lt=ve[we].head;y.replaceRange(Ce.removed[we]||"",me(lt,0,-Ce.inserted.length),lt,"+input")}je.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||k(y),ye.command}function G(){if(P()||z())return!0;Y.inputState.keyBuffer.push(S);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ue=/^(\d*)(.*)$/.exec(re);if(!ue)return k(y),!1;var ye=Y.visualMode?"visual":"normal",Ce=ue[2]||ue[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==Ce&&(Ce=Y.inputState.operatorShortcut);var ve=yi.matchCommand(Ce,In,Y.inputState,ye);return ve.type=="none"?(k(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(k(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ue=/^(\d*)(.*)$/.exec(re),ue[1]&&ue[1]!="0"&&Y.inputState.pushRepeatDigit(ue[1]),ve.command)}var Y=O(y),X;return Y.insertMode?X=j():X=G(),X===!1?!Y.insertMode&&S.length===1?function(){return!0}:void 0:X===!0?function(){return!0}:function(){if(!((X.operator||X.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{X.type=="keyToKey"?R(y,X.toKeys,X):yi.processCommand(y,Y,X)}catch(re){throw y.state.vim=void 0,O(y),bt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,S){Nr.processCommand(y,S)},defineMotion:Q,defineAction:ce,defineOperator:ne,mapCommand:xs,_mapCommand:lo,defineRegister:U,exitVisualMode:hn,exitInsertMode:gr},Lr=[],Oi=!1,Lt,Or={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Xn={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Zi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Or)).forEach(function(y){Zi[(Or[y]||"").toLowerCase()]=Zi[y.toLowerCase()]=y}),I("langmap",void 0,"string",["lmap"],function(y,S){if(y===void 0)return Ln.string;F(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},W.prototype={setText:function(y,S,_){this.keyBuffer=[y||""],this.linewise=!!S,this.blockwise=!!_},pushText:function(y,S){S&&(this.linewise||this.keyBuffer.push(`
|
|
1438
|
-
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Pn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},q.prototype={pushText:function(y,S,_,P,z){if(y!=="_"){P&&_.charAt(_.length-1)!==`
|
|
1439
|
-
`&&(_+=`
|
|
1440
|
-
`);var j=this.isValidRegister(y)?this.getRegister(y):null;if(!j){switch(S){case"yank":this.registers[0]=new W(_,P,z);break;case"delete":case"change":_.indexOf(`
|
|
1441
|
-
`)==-1?this.registers["-"]=new W(_,P):(this.shiftNumericRegisters_(),this.registers[1]=new W(_,P))}this.unnamedRegister.setText(_,P,z);return}var G=s(y);G?j.pushText(_,P):j.setText(_,P,z),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(_),this.unnamedRegister.setText(j.toString(),P)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new W),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,Rs)||Xt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Z.prototype={nextMatch:function(y,S){var _=this.historyBuffer,P=S?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var z=this.iterator+P;S?z>=0:z<_.length;z+=P)for(var j=_[z],G=0;G<=j.length;G++)if(this.initialPrefix==j.substring(0,G))return this.iterator=z,j;if(z>=_.length)return this.iterator=_.length,this.initialPrefix;if(z<0)return y},pushInput:function(y){var S=this.historyBuffer.indexOf(y);S>-1&&this.historyBuffer.splice(S,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var yi={matchCommand:function(y,S,_,P){var z=$e(y,S,P,_);if(!z.full&&!z.partial)return{type:"none"};if(!z.full&&z.partial)return{type:"partial",expectLiteralNext:z.partial.length==1&&z.partial[0].keys.slice(-11)=="<character>"};for(var j,G=0;G<z.full.length;G++){var Y=z.full[G];j||(j=Y)}if(j.keys.slice(-11)=="<character>"||j.keys.slice(-10)=="<register>"){var X=Te(y);if(!X||X.length>1)return{type:"clear"};_.selectedCharacter=X}return{type:"full",command:j}},processCommand:function(y,S,_){switch(S.inputState.repeatOverride=_.repeatOverride,_.type){case"motion":this.processMotion(y,S,_);break;case"operator":this.processOperator(y,S,_);break;case"operatorMotion":this.processOperatorMotion(y,S,_);break;case"action":this.processAction(y,S,_);break;case"search":this.processSearch(y,S,_);break;case"ex":case"keyToEx":this.processEx(y,S,_);break}},processMotion:function(y,S,_){S.inputState.motion=_.motion,S.inputState.motionArgs=de(_.motionArgs),this.evalInput(y,S)},processOperator:function(y,S,_){var P=S.inputState;if(P.operator){if(P.operator==_.operator){P.motion="expandToLine",P.motionArgs={linewise:!0},this.evalInput(y,S);return}k(y)}P.operator=_.operator,P.operatorArgs=de(_.operatorArgs),_.keys.length>1&&(P.operatorShortcut=_.keys),_.exitVisualBlock&&(S.visualBlock=!1,Tn(y)),S.visualMode&&this.evalInput(y,S)},processOperatorMotion:function(y,S,_){var P=S.visualMode,z=de(_.operatorMotionArgs);z&&P&&z.visualLine&&(S.visualLine=!0),this.processOperator(y,S,_),P||this.processMotion(y,S,_)},processAction:function(y,S,_){var P=S.inputState,z=P.getRepeat(),j=!!z,G=de(_.actionArgs)||{};P.selectedCharacter&&(G.selectedCharacter=P.selectedCharacter),_.operator&&this.processOperator(y,S,_),_.motion&&this.processMotion(y,S,_),(_.motion||_.operator)&&this.evalInput(y,S),G.repeat=z||1,G.repeatIsExplicit=j,G.registerName=P.registerName,k(y),S.lastMotion=null,_.isEdit&&this.recordLastEdit(S,P,_),Fn[_.action](y,G,S)},processSearch:function(y,S,_){function P(Ie,Ve,lt){je.searchHistoryController.pushInput(Ie),je.searchHistoryController.reset();try{oe(y,Ie,Ve,lt)}catch{It(y,"Invalid regex: "+Ie),k(y);return}yi.processMotion(y,S,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:_.searchArgs.toJumplist}})}function z(Ie){P(Ie,!0,!0);var Ve=je.macroModeState;Ve.isRecording&&_s(Ve,Ie)}function j(Ie,Ve,lt){var Je=B(Ie),Qe,xn;Je=="<Up>"||Je=="<Down>"?(Qe=Je=="<Up>",xn=Ie.target?Ie.target.selectionEnd:0,Ve=je.searchHistoryController.nextMatch(Ve,Qe)||"",lt(Ve),xn&&Ie.target&&(Ie.target.selectionEnd=Ie.target.selectionStart=Math.min(xn,Ie.target.value.length))):Je&&Je!="<Left>"&&Je!="<Right>"&&je.searchHistoryController.reset();var xt;try{xt=oe(y,Ve,!0,!0)}catch{}xt?y.scrollIntoView(yt(y,!Y,xt),30):(jt(y),y.scrollTo(ye.left,ye.top))}function G(Ie,Ve,lt){var Je=B(Ie);Je=="<Esc>"||Je=="<C-c>"||Je=="<C-[>"||Je=="<BS>"&&Ve==""?(je.searchHistoryController.pushInput(Ve),je.searchHistoryController.reset(),oe(y,ue),jt(y),y.scrollTo(ye.left,ye.top),ze.e_stop(Ie),k(y),lt(),y.focus()):Je=="<Up>"||Je=="<Down>"?ze.e_stop(Ie):Je=="<C-u>"&&(ze.e_stop(Ie),lt(""))}if(y.getSearchCursor){var Y=_.searchArgs.forward,X=_.searchArgs.wholeWordOnly;En(y).setReversed(!Y);var re=Y?"/":"?",ue=En(y).getQuery(),ye=y.getScrollInfo();switch(_.searchArgs.querySrc){case"prompt":var Ce=je.macroModeState;if(Ce.isPlaying){var Oe=Ce.replaySearchQueries.shift();P(Oe,!0,!1)}else sr(y,{onClose:z,prefix:re,desc:"(JavaScript regexp)",onKeyUp:j,onKeyDown:G});break;case"wordUnderCursor":var ve=Qt(y,{noSymbol:!0}),we=!0;if(ve||(ve=Qt(y,{noSymbol:!1}),we=!1),!ve){It(y,"No word under cursor"),k(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&X?Oe="\\b"+Oe+"\\b":Oe=kn(Oe),je.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),P(Oe,!0,!1)}}},processEx:function(y,S,_){function P(j){je.exCommandHistoryController.pushInput(j),je.exCommandHistoryController.reset(),Nr.processCommand(y,j),y.state.vim&&k(y)}function z(j,G,Y){var X=B(j),re,ue;(X=="<Esc>"||X=="<C-c>"||X=="<C-[>"||X=="<BS>"&&G=="")&&(je.exCommandHistoryController.pushInput(G),je.exCommandHistoryController.reset(),ze.e_stop(j),k(y),Y(),y.focus()),X=="<Up>"||X=="<Down>"?(ze.e_stop(j),re=X=="<Up>",ue=j.target?j.target.selectionEnd:0,G=je.exCommandHistoryController.nextMatch(G,re)||"",Y(G),ue&&j.target&&(j.target.selectionEnd=j.target.selectionStart=Math.min(ue,j.target.value.length))):X=="<C-u>"?(ze.e_stop(j),Y("")):X&&X!="<Left>"&&X!="<Right>"&&je.exCommandHistoryController.reset()}_.type=="keyToEx"?Nr.processCommand(y,_.exArgs.input):S.visualMode?sr(y,{onClose:P,prefix:":",value:"'<,'>",onKeyDown:z,selectValueOnOpen:!1}):sr(y,{onClose:P,prefix:":",onKeyDown:z})},evalInput:function(y,S){var _=S.inputState,P=_.motion,z=_.motionArgs||{},j=_.operator,G=_.operatorArgs||{},Y=_.registerName,X=S.sel,re=qe(S.visualMode?ae(y,X.head):y.getCursor("head")),ue=qe(S.visualMode?ae(y,X.anchor):y.getCursor("anchor")),ye=qe(re),Ce=qe(ue),ve,we,Oe;if(j&&this.recordLastEdit(S,_),_.repeatOverride!==void 0?Oe=_.repeatOverride:Oe=_.getRepeat(),Oe>0&&z.explicitRepeat?z.repeatIsExplicit=!0:(z.noRepeat||!z.explicitRepeat&&Oe===0)&&(Oe=1,z.repeatIsExplicit=!1),_.selectedCharacter&&(z.selectedCharacter=G.selectedCharacter=_.selectedCharacter),z.repeat=Oe,k(y),P){var Ie=An[P](y,re,z,S,_);if(S.lastMotion=An[P],!Ie)return;if(z.toJumplist){!j&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=je.jumpList,lt=Ve.cachedCursor;lt?(Hr(y,lt,Ie),delete Ve.cachedCursor):Hr(y,re,Ie)}Ie instanceof Array?(we=Ie[0],ve=Ie[1]):ve=Ie,ve||(ve=qe(re)),S.visualMode?((!S.visualBlock||ve.ch!==1/0)&&(ve=ae(y,ve,ye)),we&&(we=ae(y,we)),we=we||Ce,X.anchor=we,X.head=ve,Tn(y),Vr(y,S,"<",st(we,ve)?we:ve),Vr(y,S,">",st(we,ve)?ve:we)):j||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=ae(y,ve,ye),y.setCursor(ve.line,ve.ch))}if(j){if(G.lastSel){we=Ce;var Je=G.lastSel,Qe=Math.abs(Je.head.line-Je.anchor.line),xn=Math.abs(Je.head.ch-Je.anchor.ch);Je.visualLine?ve=new De(Ce.line+Qe,Ce.ch):Je.visualBlock?ve=new De(Ce.line+Qe,Ce.ch+xn):Je.head.line==Je.anchor.line?ve=new De(Ce.line,Ce.ch+xn):ve=new De(Ce.line+Qe,Ce.ch),S.visualMode=!0,S.visualLine=Je.visualLine,S.visualBlock=Je.visualBlock,X=S.sel={anchor:we,head:ve},Tn(y)}else S.visualMode&&(G.lastSel={anchor:qe(X.anchor),head:qe(X.head),visualBlock:S.visualBlock,visualLine:S.visualLine});var xt,Vt,Mt,Ct,Zn;if(S.visualMode){xt=et(X.head,X.anchor),Vt=Pt(X.head,X.anchor),Mt=S.visualLine||G.linewise,Ct=S.visualBlock?"block":Mt?"line":"char";var ur=w(y,xt,Vt);if(Zn=jn(y,{anchor:ur.start,head:ur.end},Ct),Mt){var Sn=Zn.ranges;if(Ct=="block")for(var V=0;V<Sn.length;V++)Sn[V].head.ch=_t(y,Sn[V].head.line);else Ct=="line"&&(Sn[0].head=new De(Sn[0].head.line+1,0))}}else{if(xt=qe(we||Ce),Vt=qe(ve||ye),st(Vt,xt)){var J=xt;xt=Vt,Vt=J}Mt=z.linewise||G.linewise,Mt?Rn(y,xt,Vt):z.forward&&Dn(y,xt,Vt),Ct="char";var ie=!z.inclusive||Mt,ur=w(y,xt,Vt);Zn=jn(y,{anchor:ur.start,head:ur.end},Ct,ie)}y.setSelections(Zn.ranges,Zn.primary),S.lastMotion=null,G.repeat=Oe,G.registerName=Y,G.linewise=Mt;var se=Yo[j](y,G,Zn.ranges,Ce,ve);S.visualMode&&hn(y,se!=null),se&&y.setCursor(se)}},recordLastEdit:function(y,S,_){var P=je.macroModeState;P.isPlaying||(y.lastEditInputState=S,y.lastEditActionCommand=_,P.lastInsertModeChanges.changes=[],P.lastInsertModeChanges.expectCursorActivityForChange=!1,P.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},An={moveToTopLine:function(y,S,_){var P=Hn(y).top+_.repeat-1;return new De(P,Ut(y.getLine(P)))},moveToMiddleLine:function(y){var S=Hn(y),_=Math.floor((S.top+S.bottom)*.5);return new De(_,Ut(y.getLine(_)))},moveToBottomLine:function(y,S,_){var P=Hn(y).bottom-_.repeat+1;return new De(P,Ut(y.getLine(P)))},expandToLine:function(y,S,_){var P=S;return new De(P.line+_.repeat-1,1/0)},findNext:function(y,S,_){var P=En(y),z=P.getQuery();if(z){var j=!_.forward;return j=P.isReversed()?!j:j,Be(y,z),yt(y,j,z,_.repeat)}},findAndSelectNextInclusive:function(y,S,_,P,z){var j=En(y),G=j.getQuery();if(G){var Y=!_.forward;Y=j.isReversed()?!Y:Y;var X=dn(y,Y,G,_.repeat,P);if(X){if(z.operator)return X;var re=X[0],ue=new De(X[1].line,X[1].ch-1);if(P.visualMode){(P.visualLine||P.visualBlock)&&(P.visualLine=!1,P.visualBlock=!1,ze.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var ye=P.sel.anchor;if(ye)return j.isReversed()?_.forward?[ye,re]:[ye,ue]:_.forward?[ye,ue]:[ye,re]}else P.visualMode=!0,P.visualLine=!1,P.visualBlock=!1,ze.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ue,re]:[re,ue]}}},goToMark:function(y,S,_,P){var z=sn(y,P,_.selectedCharacter);return z?_.linewise?{line:z.line,ch:Ut(y.getLine(z.line))}:z:null},moveToOtherHighlightedEnd:function(y,S,_,P){if(P.visualBlock&&_.sameLine){var z=P.sel;return[ae(y,new De(z.anchor.line,z.head.ch)),ae(y,new De(z.head.line,z.anchor.ch))]}return[P.sel.head,P.sel.anchor]},jumpToMark:function(y,S,_,P){for(var z=S,j=0;j<_.repeat;j++){var G=z;for(var Y in P.marks)if(c(Y)){var X=P.marks[Y].find(),re=_.forward?st(X,G):st(G,X);if(!re&&!(_.linewise&&X.line==G.line)){var ue=rt(G,z),ye=_.forward?yr(G,X,z):yr(z,X,G);(ue||ye)&&(z=X)}}}return _.linewise&&(z=new De(z.line,Ut(y.getLine(z.line)))),z},moveByCharacters:function(y,S,_){var P=S,z=_.repeat,j=_.forward?P.ch+z:P.ch-z;return new De(P.line,j)},moveByLines:function(y,S,_,P){var z=S,j=z.ch;switch(P.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:j=P.lastHPos;break;default:P.lastHPos=j}var G=_.repeat+(_.repeatOffset||0),Y=_.forward?z.line+G:z.line-G,X=y.firstLine(),re=y.lastLine();if(Y<X&&z.line==X)return this.moveToStartOfLine(y,S,_,P);if(Y>re&&z.line==re)return Ki(y,S,_,P,!0);var ue=y.ace.session.getFoldLine(Y);return ue&&(_.forward?Y>ue.start.row&&(Y=ue.end.row+1):Y=ue.start.row),_.toFirstChar&&(j=Ut(y.getLine(Y)),P.lastHPos=j),P.lastHSPos=y.charCoords(new De(Y,j),"div").left,new De(Y,j)},moveByDisplayLines:function(y,S,_,P){var z=S;switch(P.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:P.lastHSPos=y.charCoords(z,"div").left}var j=_.repeat,X=y.findPosV(z,_.forward?j:-j,"line",P.lastHSPos);if(X.hitSide)if(_.forward)var G=y.charCoords(X,"div"),Y={top:G.top+8,left:P.lastHSPos},X=y.coordsChar(Y,"div");else{var re=y.charCoords(new De(y.firstLine(),0),"div");re.left=P.lastHSPos,X=y.coordsChar(re,"div")}return P.lastHPos=X.ch,X},moveByPage:function(y,S,_){var P=S,z=_.repeat;return y.findPosV(P,_.forward?z:-z,"page")},moveByParagraph:function(y,S,_){var P=_.forward?1:-1;return vi(y,S,_.repeat,P)},moveBySentence:function(y,S,_){var P=_.forward?1:-1;return ri(y,S,_.repeat,P)},moveByScroll:function(y,S,_,P){var z=y.getScrollInfo(),j=null,G=_.repeat;G||(G=z.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(S,"local");if(_.repeat=G,j=An.moveByDisplayLines(y,S,_,P),!j)return null;var X=y.charCoords(j,"local");return y.scrollTo(null,z.top+X.top-Y.top),j},moveByWords:function(y,S,_){return Jn(y,S,_.repeat,!!_.forward,!!_.wordEnd,!!_.bigWord)},moveTillCharacter:function(y,S,_){var P=_.repeat,z=Ur(y,P,_.forward,_.selectedCharacter,S),j=_.forward?-1:1;return wr(j,_),z?(z.ch+=j,z):null},moveToCharacter:function(y,S,_){var P=_.repeat;return wr(0,_),Ur(y,P,_.forward,_.selectedCharacter,S)||S},moveToSymbol:function(y,S,_){var P=_.repeat;return gi(y,P,_.forward,_.selectedCharacter)||S},moveToColumn:function(y,S,_,P){var z=_.repeat;return P.lastHPos=z-1,P.lastHSPos=y.charCoords(S,"div").left,ws(y,z)},moveToEol:function(y,S,_,P){return Ki(y,S,_,P,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,S){var _=S;return new De(_.line,Ut(y.getLine(_.line)))},moveToMatchedSymbol:function(y,S){for(var _=S,P=_.line,z=_.ch,j=y.getLine(P),G;z<j.length;z++)if(G=j.charAt(z),G&&u(G)){var Y=y.getTokenTypeAt(new De(P,z+1));if(Y!=="string"&&Y!=="comment")break}if(z<j.length){var X=/[<>]/.test(j[z])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new De(P,z+1),{bracketRegex:X});return re.to}return _},moveToStartOfLine:function(y,S){return new De(S.line,0)},moveToLineOrEdgeOfDocument:function(y,S,_){var P=_.forward?y.lastLine():y.firstLine();return _.repeatIsExplicit&&(P=_.repeat-y.getOption("firstLineNumber")),new De(P,Ut(y.getLine(P)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var S=y.getCursor();return S.sticky=="before"&&S.ch--,S},textObjectManipulation:function(y,S,_,P){var z={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},j={"'":!0,'"':!0,"`":!0},G=_.selectedCharacter;G=="b"?G="(":G=="B"&&(G="{");var Y=!_.textObjectInner,X,re;if(z[G]){if(re=!0,X=wn(y,S,G,Y),!X){var ue=y.getSearchCursor(new RegExp("\\"+G,"g"),S);ue.find()&&(X=wn(y,ue.from(),G,Y))}}else if(j[G])re=!0,X=xr(y,S,G,Y);else if(G==="W"||G==="w")for(var ye=_.repeat||1;ye-- >0;){var Ce=Qt(y,{inclusive:Y,innerWord:!Y,bigWord:G==="W",noSymbol:G==="W",multiline:!0},X&&X.end);Ce&&(X||(X=Ce),X.end=Ce.end)}else if(G==="p")if(X=vi(y,S,_.repeat,0,Y),_.linewise=!0,P.visualMode)P.visualLine||(P.visualLine=!0);else{var ve=P.inputState.operatorArgs;ve&&(ve.linewise=!0),X.end.line--}else if(G==="t")X=Rr(y,S,Y);else if(G==="s"){var we=y.getLine(S.line);S.ch>0&&b(we[S.ch])&&(S.ch-=1);var Oe=Co(y,S,_.repeat,1,Y),Ie=Co(y,S,_.repeat,-1,Y);f(y.getLine(Ie.line)[Ie.ch])&&f(y.getLine(Oe.line)[Oe.ch-1])&&(Ie={line:Ie.line,ch:Ie.ch+1}),X={start:Ie,end:Oe}}return X?y.state.vim.visualMode?Kt(y,X.start,X.end,re):[X.start,X.end]:null},repeatLastCharacterSearch:function(y,S,_){var P=je.lastCharacterSearch,z=_.repeat,j=_.forward===P.forward,G=(P.increment?1:0)*(j?-1:1);y.moveH(-G,"char"),_.inclusive=!!j;var Y=Ur(y,z,j,P.selectedCharacter);return Y?(Y.ch+=G,Y):(y.moveH(G,"char"),S)}},Yo={change:function(y,S,_){var P,z,j=y.state.vim,G=_[0].anchor,Y=_[0].head;if(j.visualMode)if(S.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(G,Y),z=y.getSelection(),y.replaceSelection(""),P=G;else{z=y.getSelection();var X=le("",_.length);y.replaceSelections(X),P=et(_[0].head,_[0].anchor)}else{z=y.getRange(G,Y);var re=j.lastEditInputState||{};if(re.motion=="moveByWords"&&!f(z)){var ue=/\s+$/.exec(z);ue&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ue[0].length),z=z.slice(0,-ue[0].length))}S.linewise&&(G=new De(G.line,Ut(y.getLine(G.line))),Y.line>G.line&&(Y=new De(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",G,Y),P=G}je.registerController.pushText(S.registerName,"change",z,S.linewise,_.length>1),Fn.enterInsertMode(y,{head:P},y.state.vim)},delete:function(y,S,_){var P,z,j=y.state.vim;if(j.visualBlock){z=y.getSelection();var G=le("",_.length);y.replaceSelections(G),P=et(_[0].head,_[0].anchor)}else{var Y=_[0].anchor,X=_[0].head;S.linewise&&X.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==X.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new De(Y.line-1,_t(y,Y.line-1))),z=y.getRange(Y,X),y.replaceRange("",Y,X),P=Y,S.linewise&&(P=An.moveToFirstNonWhiteSpaceCharacter(y,Y))}return je.registerController.pushText(S.registerName,"delete",z,S.linewise,j.visualBlock),ae(y,P)},indent:function(y,S,_){var P=y.state.vim,z=P.visualMode?S.repeat:1;if(P.visualBlock){for(var j=y.getOption("tabSize"),G=y.getOption("indentWithTabs")?" ":" ".repeat(j),Y,X=_.length-1;X>=0;X--)if(Y=et(_[X].anchor,_[X].head),S.indentRight)y.replaceRange(G.repeat(z),Y,Y);else{for(var re=y.getLine(Y.line),ue=0,ye=0;ye<z;ye++){var Ce=re[Y.ch+ue];if(Ce==" ")ue++;else{if(Ce!=" ")break;ue++;for(var ve=1;ve<G.length&&(Ce=re[Y.ch+ue],Ce===" ");ve++)ue++}}y.replaceRange("",Y,me(Y,0,ue))}return Y}if(y.indentMore)for(var ye=0;ye<z;ye++)S.indentRight?y.indentMore():y.indentLess();else{var we=_[0].anchor.line,Oe=P.visualBlock?_[_.length-1].anchor.line:_[0].head.line;S.linewise&&Oe--;for(var X=we;X<=Oe;X++)for(var ye=0;ye<z;ye++)y.indentLine(X,S.indentRight)}return An.moveToFirstNonWhiteSpaceCharacter(y,_[0].anchor)},indentAuto:function(y,S,_){return y.execCommand("indentAuto"),An.moveToFirstNonWhiteSpaceCharacter(y,_[0].anchor)},hardWrap:function(y,S,_,P,z){if(y.hardWrap){var j=_[0].anchor.line,G=_[0].head.line;S.linewise&&G--;var Y=y.hardWrap({from:j,to:G});return Y>j&&S.linewise&&Y--,S.keepCursor?P:new De(Y,0)}},changeCase:function(y,S,_,P,z){for(var j=y.getSelections(),G=[],Y=S.toLower,X=0;X<j.length;X++){var re=j[X],ue="";if(Y===!0)ue=re.toLowerCase();else if(Y===!1)ue=re.toUpperCase();else for(var ye=0;ye<re.length;ye++){var Ce=re.charAt(ye);ue+=s(Ce)?Ce.toLowerCase():Ce.toUpperCase()}G.push(ue)}return y.replaceSelections(G),S.shouldMoveCursor?z:!y.state.vim.visualMode&&S.linewise&&_[0].anchor.line+1==_[0].head.line?An.moveToFirstNonWhiteSpaceCharacter(y,P):S.linewise?P:et(_[0].anchor,_[0].head)},yank:function(y,S,_,P){var z=y.state.vim,j=y.getSelection(),G=z.visualMode?et(z.sel.anchor,z.sel.head,_[0].head,_[0].anchor):P;return je.registerController.pushText(S.registerName,"yank",j,S.linewise,z.visualBlock),G}},Fn={jumpListWalk:function(y,S,_){if(!_.visualMode){var P=S.repeat,z=S.forward,j=je.jumpList,G=j.move(y,z?P:-P),Y=G?G.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,S,_){if(!_.visualMode){var P=S.repeat||1,z=y.defaultTextHeight(),j=y.getScrollInfo().top,G=z*P,Y=S.forward?j+G:j-G,X=qe(y.getCursor()),re=y.charCoords(X,"local");if(S.forward)Y>re.top?(X.line+=(Y-re.top)/z,X.line=Math.ceil(X.line),y.setCursor(X),re=y.charCoords(X,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ue=Y+y.getScrollInfo().clientHeight;ue<re.bottom?(X.line-=(re.bottom-ue)/z,X.line=Math.floor(X.line),y.setCursor(X),re=y.charCoords(X,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,S){var _=y.getCursor().line,P=y.charCoords(new De(_,0),"local"),z=y.getScrollInfo().clientHeight,j=P.top;switch(S.position){case"center":j=P.bottom-z/2;break;case"bottom":var G=new De(_,y.getLine(_).length-1),Y=y.charCoords(G,"local"),X=Y.bottom-j;j=j-z+X}y.scrollTo(null,j)},replayMacro:function(y,S,_){var P=S.selectedCharacter,z=S.repeat,j=je.macroModeState;for(P=="@"?P=j.latestRegister:j.latestRegister=P;z--;)Cs(y,_,j,P)},enterMacroRecordMode:function(y,S){var _=je.macroModeState,P=S.selectedCharacter;je.registerController.isValidRegister(P)&&_.enterMacroRecordMode(y,P)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),ze.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),ze.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,S,_){if(!y.getOption("readOnly")){_.insertMode=!0,_.insertModeRepeat=S&&S.repeat||1;var P=S?S.insertAt:null,z=_.sel,j=S.head||y.getCursor("head"),G=y.listSelections().length;if(P=="eol")j=new De(j.line,_t(y,j.line));else if(P=="bol")j=new De(j.line,0);else if(P=="charAfter"){var Y=w(y,j,me(j,0,1));j=Y.end}else if(P=="firstNonBlank"){var Y=w(y,j,An.moveToFirstNonWhiteSpaceCharacter(y,j));j=Y.end}else if(P=="startOfSelectedArea"){if(!_.visualMode)return;_.visualBlock?(j=new De(Math.min(z.head.line,z.anchor.line),Math.min(z.head.ch,z.anchor.ch)),G=Math.abs(z.head.line-z.anchor.line)+1):z.head.line<z.anchor.line?j=z.head:j=new De(z.anchor.line,0)}else if(P=="endOfSelectedArea"){if(!_.visualMode)return;_.visualBlock?(j=new De(Math.min(z.head.line,z.anchor.line),Math.max(z.head.ch,z.anchor.ch)+1),G=Math.abs(z.head.line-z.anchor.line)+1):z.head.line>=z.anchor.line?j=me(z.head,0,1):j=new De(z.anchor.line,0)}else if(P=="inplace"){if(_.visualMode)return}else P=="lastEdit"&&(j=pr(y)||j);y.setOption("disableInput",!1),S&&S.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),ze.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),ze.signal(y,"vim-mode-change",{mode:"insert"})),je.macroModeState.isPlaying||(y.on("change",Ho),_.insertEnd&&_.insertEnd.clear(),_.insertEnd=y.setBookmark(j,{insertLeft:!0}),ze.on(y.getInputField(),"keydown",Ao)),_.visualMode&&hn(y),ir(y,j,G)}},toggleVisualMode:function(y,S,_){var P=S.repeat,z=y.getCursor(),j;if(_.visualMode)_.visualLine^S.linewise||_.visualBlock^S.blockwise?(_.visualLine=!!S.linewise,_.visualBlock=!!S.blockwise,ze.signal(y,"vim-mode-change",{mode:"visual",subMode:_.visualLine?"linewise":_.visualBlock?"blockwise":""}),Tn(y)):hn(y);else{_.visualMode=!0,_.visualLine=!!S.linewise,_.visualBlock=!!S.blockwise,j=ae(y,new De(z.line,z.ch+P-1));var G=w(y,z,j);_.sel={anchor:G.start,head:G.end},ze.signal(y,"vim-mode-change",{mode:"visual",subMode:_.visualLine?"linewise":_.visualBlock?"blockwise":""}),Tn(y),Vr(y,_,"<",et(z,j)),Vr(y,_,">",Pt(z,j))}},reselectLastSelection:function(y,S,_){var P=_.lastSelection;if(_.visualMode&&At(y,_),P){var z=P.anchorMark.find(),j=P.headMark.find();if(!z||!j)return;_.sel={anchor:z,head:j},_.visualMode=!0,_.visualLine=P.visualLine,_.visualBlock=P.visualBlock,Tn(y),Vr(y,_,"<",et(z,j)),Vr(y,_,">",Pt(z,j)),ze.signal(y,"vim-mode-change",{mode:"visual",subMode:_.visualLine?"linewise":_.visualBlock?"blockwise":""})}},joinLines:function(y,S,_){var P,z;if(_.visualMode){if(P=y.getCursor("anchor"),z=y.getCursor("head"),st(z,P)){var j=z;z=P,P=j}z.ch=_t(y,z.line)-1}else{var G=Math.max(S.repeat,2);P=y.getCursor(),z=ae(y,new De(P.line+G-1,1/0))}for(var Y=0,X=P.line;X<z.line;X++){Y=_t(y,P.line);var re="",ue=0;if(!S.keepSpaces){var ye=y.getLine(P.line+1);ue=ye.search(/\S/),ue==-1?ue=ye.length:re=" "}y.replaceRange(re,new De(P.line,Y),new De(P.line+1,ue))}var Ce=ae(y,new De(P.line,Y));_.visualMode&&hn(y,!1),y.setCursor(Ce)},newLineAndEnterInsertMode:function(y,S,_){_.insertMode=!0;var P=qe(y.getCursor());if(P.line===y.firstLine()&&!S.after)y.replaceRange(`
|
|
1442
|
-
`,new De(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{P.line=S.after?P.line:P.line-1,P.ch=_t(y,P.line),y.setCursor(P);var z=ze.commands.newlineAndIndentContinueComment||ze.commands.newlineAndIndent;z(y)}this.enterInsertMode(y,{repeat:S.repeat},_)},paste:function(y,S,_){var P=this,z=je.registerController.getRegister(S.registerName),j=function(){var G=z.toString();P.continuePaste(y,S,_,G,z)};S.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(G){P.continuePaste(y,S,_,G,z)},function(){j()}):j()},continuePaste:function(y,S,_,P,z){var j=qe(y.getCursor());if(P){if(S.matchIndent){var G=y.getOption("tabSize"),Y=function(Sn){var V=Sn.split(" ").length-1,J=Sn.split(" ").length-1;return V*G+J*1},X=y.getLine(y.getCursor().line),re=Y(X.match(/^\s*/)[0]),ue=P.replace(/\n$/,""),ye=P!==ue,Ce=Y(P.match(/^\s*/)[0]),P=ue.replace(/^\s*/gm,function(Sn){var V=re+(Y(Sn)-Ce);if(V<0)return"";if(y.getOption("indentWithTabs")){var J=Math.floor(V/G);return Array(J+1).join(" ")}return Array(V+1).join(" ")});P+=ye?`
|
|
1443
|
-
`:""}if(S.repeat>1)var P=Array(S.repeat+1).join(P);var ve=z.linewise,we=z.blockwise;if(we){P=P.split(`
|
|
1444
|
-
`),ve&&P.pop();for(var Oe=0;Oe<P.length;Oe++)P[Oe]=P[Oe]==""?" ":P[Oe];j.ch+=S.after?1:0,j.ch=Math.min(_t(y,j.line),j.ch)}else ve?_.visualMode?P=_.visualLine?P.slice(0,-1):`
|
|
1445
|
-
`+P.slice(0,P.length-1)+`
|
|
1446
|
-
`:S.after?(P=`
|
|
1447
|
-
`+P.slice(0,P.length-1),j.ch=_t(y,j.line)):j.ch=0:j.ch+=S.after?1:0;var Ie;if(_.visualMode){_.lastPastedText=P;var Ve,lt=Ge(y,_),Je=lt[0],Qe=lt[1],xn=y.getSelection(),xt=y.listSelections(),Vt=new Array(xt.length).join("1").split("1");_.lastSelection&&(Ve=_.lastSelection.headMark.find()),je.registerController.unnamedRegister.setText(xn),we?(y.replaceSelections(Vt),Qe=new De(Je.line+P.length-1,Je.ch),y.setCursor(Je),un(y,Qe),y.replaceSelections(P),Ie=Je):_.visualBlock?(y.replaceSelections(Vt),y.setCursor(Je),y.replaceRange(P,Je,Je),Ie=Je):(y.replaceRange(P,Je,Qe),Ie=y.posFromIndex(y.indexFromPos(Je)+P.length-1)),Ve&&(_.lastSelection.headMark=y.setBookmark(Ve)),ve&&(Ie.ch=0)}else if(we){y.setCursor(j);for(var Oe=0;Oe<P.length;Oe++){var Mt=j.line+Oe;Mt>y.lastLine()&&y.replaceRange(`
|
|
1448
|
-
`,new De(Mt,0));var Ct=_t(y,Mt);Ct<j.ch&&br(y,Mt,j.ch)}y.setCursor(j),un(y,new De(j.line+P.length-1,j.ch)),y.replaceSelections(P),Ie=j}else if(y.replaceRange(P,j),ve){var Mt=S.after?j.line+1:j.line;Ie=new De(Mt,Ut(y.getLine(Mt)))}else Ie=qe(j),/\n/.test(P)||(Ie.ch+=P.length-(S.after?1:0));_.visualMode&&hn(y,!1),y.setCursor(Ie)}},undo:function(y,S){y.operation(function(){Xe(y,ze.commands.undo,S.repeat)(),y.setCursor(ae(y,y.getCursor("start")))})},redo:function(y,S){Xe(y,ze.commands.redo,S.repeat)()},setRegister:function(y,S,_){_.inputState.registerName=S.selectedCharacter},insertRegister:function(y,S,_){var P=S.selectedCharacter,z=je.registerController.getRegister(P),j=z&&z.toString();j&&y.replaceSelection(j)},oneNormalCommand:function(y,S,_){gr(y,!0),_.insertModeReturn=!0,ze.on(y,"vim-command-done",function P(){_.visualMode||(_.insertModeReturn&&(_.insertModeReturn=!1,_.insertMode||Fn.enterInsertMode(y,{},_)),ze.off(y,"vim-command-done",P))})},setMark:function(y,S,_){var P=S.selectedCharacter;Vr(y,_,P,y.getCursor())},replace:function(y,S,_){var P=S.selectedCharacter,z=y.getCursor(),j,G,Y=y.listSelections();if(_.visualMode)z=y.getCursor("start"),G=y.getCursor("end");else{var X=y.getLine(z.line);j=z.ch+S.repeat,j>X.length&&(j=X.length),G=new De(z.line,j)}var re=w(y,z,G);if(z=re.start,G=re.end,P==`
|
|
1449
|
-
`)_.visualMode||y.replaceRange("",z,G),(ze.commands.newlineAndIndentContinueComment||ze.commands.newlineAndIndent)(y);else{var ue=y.getRange(z,G);if(ue=ue.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P),ue=ue.replace(/[^\n]/g,P),_.visualBlock){var ye=new Array(y.getOption("tabSize")+1).join(" ");ue=y.getSelection(),ue=ue.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P),ue=ue.replace(/\t/g,ye).replace(/[^\n]/g,P).split(`
|
|
1450
|
-
`),y.replaceSelections(ue)}else y.replaceRange(ue,z,G);_.visualMode?(z=st(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(z),hn(y,!1)):y.setCursor(me(G,0,-1))}},incrementNumberToken:function(y,S){for(var _=y.getCursor(),P=y.getLine(_.line),z=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,j,G,Y,X;(j=z.exec(P))!==null&&(G=j.index,Y=G+j[0].length,!(_.ch<Y)););if(!(!S.backtrack&&Y<=_.ch)&&j){var re=j[2]||j[4],ue=j[3]||j[5],ye=S.increase?1:-1,Ce={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(j[1]+ue,Ce)+ye*S.repeat;X=ve.toString(Ce);var we=re?new Array(ue.length-X.length+1+j[1].length).join("0"):"";X.charAt(0)==="-"?X="-"+re+we+X.substr(1):X=re+we+X;var Oe=new De(_.line,G),Ie=new De(_.line,Y);y.replaceRange(X,Oe,Ie),y.setCursor(new De(_.line,G+X.length-1))}},repeatLastEdit:function(y,S,_){var P=_.lastEditInputState;if(P){var z=S.repeat;z&&S.repeatIsExplicit?_.lastEditInputState.repeatOverride=z:z=_.lastEditInputState.repeatOverride||z,Ss(y,_,z,!1)}},indent:function(y,S){y.indentLine(y.getCursor().line,S.indentRight)},exitInsertMode:gr},bi={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},wi={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var S=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,S}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var S=y.lineText.match(/^#(\w+)/)[1];if(S==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if(S==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if(S==="else"&&y.depth===0)return!0}return!1}}};I("pcre",!0,"boolean"),Er.prototype={getQuery:function(){return je.query},setQuery:function(y){je.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return je.isReversed},setReversed:function(y){je.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var Ni={"\\n":`
|
|
1451
|
-
`,"\\r":"\r","\\t":" "},Es={"\\/":"/","\\\\":"\\","\\n":`
|
|
1452
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},en=0,ya=function(){this.buildCommandMap_()};ya.prototype={processCommand:function(y,S,_){var P=this;y.operation(function(){y.curOp.isVimOp=!0,P._processCommand(y,S,_)})},_processCommand:function(y,S,_){var P=y.state.vim,z=je.registerController.getRegister(":"),j=z.toString(),G=new ze.StringStream(S);z.setText(S);var Y=_||{};Y.input=S;try{this.parseInput_(y,G,Y)}catch(ue){throw It(y,ue.toString()),ue}P.visualMode&&hn(y);var X,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(X=this.matchCommand_(Y.commandName),X){if(re=X.name,X.excludeFromCommandHistory&&z.setText(j),this.parseCommandArgs_(G,Y,X),X.type=="exToKey"){R(y,X.toKeys,X);return}if(X.type=="exToEx"){this.processCommand(y,X.toInput);return}}if(!re){It(y,'Not an editor command ":'+S+'"');return}try{cr[re](y,Y),(!X||!X.possiblyAsync)&&Y.callback&&Y.callback()}catch(ue){throw It(y,ue.toString()),ue}},parseInput_:function(y,S,_){if(S.eatWhile(":"),S.eat("%")?(_.line=y.firstLine(),_.lineEnd=y.lastLine()):(_.line=this.parseLineSpec_(y,S),_.line!==void 0&&S.eat(",")&&(_.lineEnd=this.parseLineSpec_(y,S))),_.line==null)if(y.state.vim.visualMode){var P=sn(y,y.state.vim,"<");_.selectionLine=P&&P.line,P=sn(y,y.state.vim,">"),_.selectionLineEnd=P&&P.line}else _.selectionLine=y.getCursor().line;else _.selectionLine=_.line,_.selectionLineEnd=_.lineEnd;var z=S.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return z?_.commandName=z[1]:_.commandName=S.match(/.*/)[0],_},parseLineSpec_:function(y,S){var _=S.match(/^(\d+)/);if(_)return parseInt(_[1],10)-1;switch(S.next()){case".":return this.parseLineSpecOffset_(S,y.getCursor().line);case"$":return this.parseLineSpecOffset_(S,y.lastLine());case"'":var P=S.next(),z=sn(y,y.state.vim,P);if(!z)throw new Error("Mark not set");return this.parseLineSpecOffset_(S,z.line);case"-":case"+":return S.backUp(1),this.parseLineSpecOffset_(S,y.getCursor().line);default:return S.backUp(1),void 0}},parseLineSpecOffset_:function(y,S){var _=y.match(/^([+-])?(\d+)/);if(_){var P=parseInt(_[2],10);_[1]=="-"?S-=P:S+=P}return S},parseCommandArgs_:function(y,S,_){if(!y.eol()){S.argString=y.match(/.*/)[0];var P=_.argDelimiter||/\s+/,z=rr(S.argString).split(P);z.length&&z[0]&&(S.args=z)}},matchCommand_:function(y){for(var S=y.length;S>0;S--){var _=y.substring(0,S);if(this.commandMap_[_]){var P=this.commandMap_[_];if(P.name.indexOf(y)===0)return P}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Xi.length;y++){var S=Xi[y],_=S.shortName||S.name;this.commandMap_[_]=S}},map:function(y,S,_,P){if(y!=":"&&y.charAt(0)==":"){if(_)throw Error("Mode not supported for ex mappings");var z=y.substring(1);S!=":"&&S.charAt(0)==":"?this.commandMap_[z]={name:z,type:"exToEx",toInput:S.substring(1),user:!0}:this.commandMap_[z]={name:z,type:"exToKey",toKeys:S,user:!0}}else{var j={keys:y,type:"keyToKey",toKeys:S,noremap:!!P};_&&(j.context=_),In.unshift(j)}},unmap:function(y,S){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var _=y.substring(1);if(this.commandMap_[_]&&this.commandMap_[_].user)return delete this.commandMap_[_],!0}else for(var P=y,z=0;z<In.length;z++)if(P==In[z].keys&&In[z].context===S)return In.splice(z,1),!0}};var cr={colorscheme:function(y,S){if(!S.args||S.args.length<1){It(y,y.getOption("theme"));return}y.setOption("theme",S.args[0])},map:function(y,S,_,P){var z=S.args;if(!z||z.length<2){y&&It(y,"Invalid mapping: "+S.input);return}Nr.map(z[0],z[1],_,P)},imap:function(y,S){this.map(y,S,"insert")},nmap:function(y,S){this.map(y,S,"normal")},vmap:function(y,S){this.map(y,S,"visual")},omap:function(y,S){this.map(y,S,"operatorPending")},noremap:function(y,S){this.map(y,S,void 0,!0)},inoremap:function(y,S){this.map(y,S,"insert",!0)},nnoremap:function(y,S){this.map(y,S,"normal",!0)},vnoremap:function(y,S){this.map(y,S,"visual",!0)},onoremap:function(y,S){this.map(y,S,"operatorPending",!0)},unmap:function(y,S,_){var P=S.args;(!P||P.length<1||!Nr.unmap(P[0],_))&&y&&It(y,"No such mapping: "+S.input)},mapclear:function(y,S){bt.mapclear()},imapclear:function(y,S){bt.mapclear("insert")},nmapclear:function(y,S){bt.mapclear("normal")},vmapclear:function(y,S){bt.mapclear("visual")},omapclear:function(y,S){bt.mapclear("operatorPending")},move:function(y,S){yi.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:S.line+1})},set:function(y,S){var _=S.args,P=S.setCfg||{};if(!_||_.length<1){y&&It(y,"Invalid mapping: "+S.input);return}var z=_[0].split("="),j=z[0],G=z[1],Y=!1,X=!1;if(j.charAt(j.length-1)=="?"){if(G)throw Error("Trailing characters: "+S.argString);j=j.substring(0,j.length-1),Y=!0}else j.charAt(j.length-1)=="!"&&(j=j.substring(0,j.length-1),X=!0);G===void 0&&j.substring(0,2)=="no"&&(j=j.substring(2),G=!1);var re=Wt[j]&&Wt[j].type=="boolean";if(re&&(X?G=!A(j,y,P):G==null&&(G=!0)),!re&&G===void 0||Y){var ue=A(j,y,P);ue instanceof Error?It(y,ue.message):ue===!0||ue===!1?It(y," "+(ue?"":"no")+j):It(y," "+j+"="+ue)}else{var ye=M(j,G,y,P);ye instanceof Error&&It(y,ye.message)}},setlocal:function(y,S){S.setCfg={scope:"local"},this.set(y,S)},setglobal:function(y,S){S.setCfg={scope:"global"},this.set(y,S)},registers:function(y,S){var _=S.args,P=je.registerController.registers,z=`----------Registers----------
|
|
1453
|
-
|
|
1454
|
-
`;if(_){var j;_=_.join("");for(var G=0;G<_.length;G++)if(j=_.charAt(G),!!je.registerController.isValidRegister(j)){var Y=P[j]||new W;z+='"'+j+" "+Y.toString()+`
|
|
1455
|
-
`}}else for(var j in P){var X=P[j].toString();X.length&&(z+='"'+j+" "+X+`
|
|
1456
|
-
`)}It(y,z)},sort:function(y,S){function _(){if(S.argString){var Mt=new ze.StringStream(S.argString);if(Mt.eat("!")&&(j=!0),Mt.eol())return;if(!Mt.eatSpace())return"Invalid arguments";var Ct=Mt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Ct&&!Mt.eol())return"Invalid arguments";if(Ct[1]){G=Ct[1].indexOf("i")!=-1,Y=Ct[1].indexOf("u")!=-1;var Zn=Ct[1].indexOf("d")!=-1||Ct[1].indexOf("n")!=-1&&1,ur=Ct[1].indexOf("x")!=-1&&1,Sn=Ct[1].indexOf("o")!=-1&&1;if(Zn+ur+Sn>1)return"Invalid arguments";X=Zn&&"decimal"||ur&&"hex"||Sn&&"octal"}Ct[2]&&(re=new RegExp(Ct[2].substr(1,Ct[2].length-2),G?"i":""))}}function P(Mt,Ct){if(j){var Zn;Zn=Mt,Mt=Ct,Ct=Zn}G&&(Mt=Mt.toLowerCase(),Ct=Ct.toLowerCase());var ur=X&&Ie.exec(Mt),Sn=X&&Ie.exec(Ct);return ur?(ur=parseInt((ur[1]+ur[2]).toLowerCase(),Ve),Sn=parseInt((Sn[1]+Sn[2]).toLowerCase(),Ve),ur-Sn):Mt<Ct?-1:1}function z(Mt,Ct){if(j){var Zn;Zn=Mt,Mt=Ct,Ct=Zn}return G&&(Mt[0]=Mt[0].toLowerCase(),Ct[0]=Ct[0].toLowerCase()),Mt[0]<Ct[0]?-1:1}var j,G,Y,X,re,ue=_();if(ue){It(y,ue+": "+S.argString);return}var ye=S.line||y.firstLine(),Ce=S.lineEnd||S.line||y.lastLine();if(ye!=Ce){var ve=new De(ye,0),we=new De(Ce,_t(y,Ce)),Oe=y.getRange(ve,we).split(`
|
|
1457
|
-
`),Ie=re||(X=="decimal"?/(-?)([\d]+)/:X=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:X=="octal"?/([0-7]+)/:null),Ve=X=="decimal"?10:X=="hex"?16:X=="octal"?8:null,lt=[],Je=[];if(X||re)for(var Qe=0;Qe<Oe.length;Qe++){var xn=re?Oe[Qe].match(re):null;xn&&xn[0]!=""?lt.push(xn):!re&&Ie.exec(Oe[Qe])?lt.push(Oe[Qe]):Je.push(Oe[Qe])}else Je=Oe;if(lt.sort(re?z:P),re)for(var Qe=0;Qe<lt.length;Qe++)lt[Qe]=lt[Qe].input;else X||Je.sort(P);if(Oe=j?lt.concat(Je):Je.concat(lt),Y){var xt=Oe,Vt;Oe=[];for(var Qe=0;Qe<xt.length;Qe++)xt[Qe]!=Vt&&Oe.push(xt[Qe]),Vt=xt[Qe]}y.replaceRange(Oe.join(`
|
|
1458
|
-
`),ve,we)}},vglobal:function(y,S){this.global(y,S)},normal:function(y,S){var _=S.argString;if(_&&_[0]=="!"&&(_=_.slice(1),Oi=!0),_=_.trimStart(),!_){It(y,"Argument is required.");return}var P=S.line;if(typeof P=="number")for(var z=isNaN(S.lineEnd)?P:S.lineEnd,j=P;j<=z;j++)y.setCursor(j,0),R(y,S.argString.trimStart()),y.state.vim.insertMode&&gr(y,!0);else R(y,S.argString.trimStart()),y.state.vim.insertMode&&gr(y,!0)},global:function(y,S){var _=S.argString;if(!_){It(y,"Regular Expression missing from global");return}var P=S.commandName[0]==="v";_[0]==="!"&&S.commandName[0]==="g"&&(P=!0,_=_.slice(1));var z=S.line!==void 0?S.line:y.firstLine(),j=S.lineEnd||S.line||y.lastLine(),G=gn(_),Y=_,X;if(G.length&&(Y=G[0],X=G.slice(1,G.length).join("/")),Y)try{oe(y,Y,!0,!0)}catch{It(y,"Invalid regex: "+Y);return}for(var re=En(y).getQuery(),ue=[],ye=z;ye<=j;ye++){var Ce=y.getLine(ye),ve=re.test(Ce);ve!==P&&ue.push(X?y.getLineHandle(ye):Ce)}if(!X){It(y,ue.join(`
|
|
1459
|
-
`));return}var we=0,Oe=function(){if(we<ue.length){var Ie=ue[we++],Ve=y.getLineNumber(Ie);if(Ve==null){Oe();return}var lt=Ve+1+X;Nr.processCommand(y,lt,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,S){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var _=S.argString,P=_?ii(_,_[0]):[],z,j="",G,Y,X,re=!1,ue=!1;if(P.length)z=P[0],A("pcre")&&z!==""&&(z=new RegExp(z).source),j=P[1],j!==void 0&&(A("pcre")?j=Ir(j.replace(/([^\\])&/g,"$1$$&")):j=ko(j),je.lastSubstituteReplacePart=j),G=P[2]?P[2].split(" "):[];else if(_&&_.length){It(y,"Substitutions should be of the form :s/pattern/replace/");return}if(G&&(Y=G[0],X=parseInt(G[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ue=!0),A("pcre")?z=z+"/"+Y:z=z.replace(/\//g,"\\/")+"/"+Y)),z)try{oe(y,z,!0,!0)}catch{It(y,"Invalid regex: "+z);return}if(j=j||je.lastSubstituteReplacePart,j===void 0){It(y,"No previous substitute regular expression");return}var ye=En(y),Ce=ye.getQuery(),ve=S.line!==void 0?S.line:y.getCursor().line,we=S.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),X&&(ve=we,we=ve+X-1);var Oe=ae(y,new De(ve,0)),Ie=y.getSearchCursor(Ce,Oe);fn(y,re,ue,ve,we,Ie,Ce,j,S.callback)},startinsert:function(y,S){R(y,S.argString=="!"?"A":"i",{})},redo:ze.commands.redo,undo:ze.commands.undo,write:function(y){ze.commands.save?ze.commands.save(y):y.save&&y.save()},nohlsearch:function(y){jt(y)},yank:function(y){var S=qe(y.getCursor()),_=S.line,P=y.getLine(_);je.registerController.pushText("0","yank",P,!0,!0)},delete:function(y,S){var _=S.selectionLine,P=isNaN(S.selectionLineEnd)?_:S.selectionLineEnd;Yo.delete(y,{linewise:!0},[{anchor:new De(_,0),head:new De(P+1,0)}])},join:function(y,S){var _=S.selectionLine,P=isNaN(S.selectionLineEnd)?_:S.selectionLineEnd;y.setCursor(new De(_,0)),Fn.joinLines(y,{repeat:P-_},y.state.vim)},delmarks:function(y,S){if(!S.argString||!rr(S.argString)){It(y,"Argument required");return}for(var _=y.state.vim,P=new ze.StringStream(rr(S.argString));!P.eol();){P.eatSpace();var z=P.pos;if(!P.match(/[a-zA-Z]/,!1)){It(y,"Invalid argument: "+S.argString.substring(z));return}var j=P.next();if(P.match("-",!0)){if(!P.match(/[a-zA-Z]/,!1)){It(y,"Invalid argument: "+S.argString.substring(z));return}var G=j,Y=P.next();if(!(c(G)&&c(Y)||s(G)&&s(Y))){It(y,"Invalid argument: "+G+"-");return}var X=G.charCodeAt(0),re=Y.charCodeAt(0);if(X>=re){It(y,"Invalid argument: "+S.argString.substring(z));return}for(var ue=0;ue<=re-X;ue++){var ye=String.fromCharCode(X+ue);delete _.marks[ye]}}else delete _.marks[j]}}},Nr=new ya;I("insertModeEscKeysTimeout",200,"number"),ze.Vim=bt;var go={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},kr=bt.handleKey.bind(bt);bt.handleKey=function(y,S,_){return y.operation(function(){return kr(y,S,_)},!0)},D(),r.CodeMirror=ze;var si=bt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,S,_,P,z){var j=this.state.vim||{},G=_.characterWidth,Y=_.lineHeight,X=S.top,re=S.left;if(!j.insertMode){var ue=P.cursor?lr.comparePoints(P.cursor,P.start)<=0:z.selection.isBackwards()||z.selection.isEmpty();!ue&&re>G&&(re-=G)}!j.insertMode&&j.status&&(Y/=2,X+=Y),qr.translate(y,re,X),qr.setStyle(y.style,"width",G+"px"),qr.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var S=y.state.cm,_=si(S);if(!_.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,S,_,P,z){var j=y.editor,G=j.state.cm,Y=si(G);if(P!=-1){if(Y.insertMode||(S==-1?(_.charCodeAt(0)>255&&y.inputKey&&(_=y.inputKey,_&&y.inputHash==4&&(_=_.toUpperCase())),y.inputChar=_):S==4||S==0?y.inputKey==_&&y.inputHash==S&&y.inputChar?(_=y.inputChar,S=-1):(y.inputChar=null,y.inputKey=_,y.inputHash=S):y.inputChar=y.inputKey=null),G.state.overwrite&&Y.insertMode&&_=="backspace"&&S==0)return{command:"gotoleft"};if(_=="c"&&S==1&&!So.isMac&&j.getCopyText())return j.once("copy",function(){Y.insertMode?j.selection.clearSelection():G.operation(function(){hn(G)})}),{command:"null",passEvent:!0};if(_=="esc"&&!Y.insertMode&&!Y.visualMode&&!G.ace.inMultiSelectMode){var X=En(G),re=X.getOverlay();re&&G.removeOverlay(re)}if(S==-1||S&1||S===0&&_.length>1){var ue=Y.insertMode,ye=fa(S,_,z||{},Y);Y.status==null&&(Y.status="");var Ce=Go(G,ye,"user");return Y=si(G),Ce&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),G._signal("changeStatus"),!Ce&&(S!=-1||ue)?void 0:{command:"null",passEvent:!Ce}}}},attach:function(y){function S(){var P=si(_).insertMode;_.ace.renderer.setStyle("normal-mode",!P),y.textInput.setCommandMode(!P),y.renderer.$keepTextAreaAtCursor=P,y.renderer.$blockCursor=!P}y.state||(y.state={});var _=new ze(y);y.state.cm=_,y.$vimModeHandler=this,h(_),si(_).status=null,_.on("vim-command-done",function(){_.virtualSelectionMode()||(si(_).status=null,_.ace._signal("changeStatus"),_.ace.session.markUndoGroup())}),_.on("changeStatus",function(){_.ace.renderer.updateCursor(),_.ace._signal("changeStatus")}),_.on("vim-mode-change",function(){_.virtualSelectionMode()||(S(),_._signal("changeStatus"))}),S(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(_)},detach:function(y){var S=y.state.cm;d(S),S.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var S=y.state.cm,_=si(S);if(_.insertMode)return"INSERT";var P="";return _.visualMode&&(P+="VISUAL",_.visualLine&&(P+=" LINE"),_.visualBlock&&(P+=" BLOCK")),_.status&&(P+=(P?" ":"")+_.status),P}},bt.defineOption({name:"wrap",set:function(y,S){S&&S.ace.setOption("wrap",y)},type:"boolean"},!1),bt.defineEx("write","w",function(){console.log(":write is not implemented")}),In.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),In.push({keys:"gq",type:"operator",operator:"hardWrap"}),bt.defineOperator("hardWrap",function(y,S,_,P,z){var j=_[0].anchor.line,G=_[0].head.line;return S.linewise&&G--,fo(y.ace,{startRow:j,endRow:G}),De(G,0)}),I("textwidth",void 0,"number",["tw"],function(y,S){if(S!==void 0){if(y===void 0){var _=S.ace.getOption("printMarginColumn");return _}var P=Math.round(y);P>1&&S.ace.setOption("printMarginColumn",P)}}),Fn.aceCommand=function(y,S,_){y.vimCmd=S,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Yi):Yi(null,y.ace)},Fn.fold=function(y,S,_){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(S.all?2:0)+(S.open?1:0)])},$o=In.length,r.handler.defaultKeymap=In,r.handler.actions=Fn,r.Vim=bt}),(function(){ace.require(["ace/keyboard/vim"],function(e){t&&(t.exports=e)})})()})(yg)),yg.exports}xk();var wg={},xg;function Ck(){return xg||(xg=1,(function(t){(function(){var n={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return v(p(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function v(w,h){var d=1,a=w.length,l,c="",u,i,s,f,b,x,I,M;for(u=0;u<a;u++)if(typeof w[u]=="string")c+=w[u];else if(typeof w[u]=="object"){if(s=w[u],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(n.not_type.test(s.type)&&n.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),n.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(n.number.test(s.type)&&(I=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}n.json.test(s.type)?c+=l:(n.number.test(s.type)&&(!I||s.sign)?(M=I?"+":"-",l=l.toString().replace(n.sign,"")):M="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(M+l).length,f=s.width&&x>0?b.repeat(x):"",c+=s.align?M+l+f:b==="0"?M+f+l:f+M+l)}return c}var g=Object.create(null);function p(w){if(g[w])return g[w];for(var h=w,d,a=[],l=0;h;){if((d=n.text.exec(h))!==null)a.push(d[0]);else if((d=n.modulo.exec(h))!==null)a.push("%");else if((d=n.placeholder.exec(h))!==null){if(d[2]){l|=1;var c=[],u=d[2],i=[];if((i=n.key.exec(u))!==null)for(c.push(i[1]);(u=u.substring(i[0].length))!=="";)if((i=n.key_access.exec(u))!==null)c.push(i[1]);else if((i=n.index_access.exec(u))!==null)c.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=c}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=a}t.sprintf=e,t.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()})(wg)),wg}Ck();var Bl={exports:{}},kk=Bl.exports,Cg;function _k(){return Cg||(Cg=1,(function(t,n){(function(){var e,r="4.18.1",v=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",w="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",d="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",c=1,u=2,i=4,s=1,f=2,b=1,x=2,I=4,M=8,A=16,C=32,O=64,D=128,E=256,R=512,B=30,F="...",N=800,$=16,k=1,L=2,W=3,U=1/0,q=9007199254740991,Z=17976931348623157e292,Q=NaN,le=4294967295,ne=le-1,ce=le>>>1,ae=[["ary",D],["bind",b],["bindKey",x],["curry",M],["curryRight",A],["flip",R],["partial",C],["partialRight",O],["rearg",E]],de="[object Arguments]",me="[object Array]",$e="[object AsyncFunction]",Me="[object Boolean]",Te="[object Date]",Xe="[object DOMException]",qe="[object Error]",rt="[object Function]",st="[object GeneratorFunction]",et="[object Map]",Pt="[object Number]",yr="[object Null]",_t="[object Object]",rr="[object Promise]",kn="[object Proxy]",br="[object RegExp]",un="[object Set]",ir="[object String]",ut="[object Symbol]",Ge="[object Undefined]",At="[object WeakMap]",Kt="[object WeakSet]",Tn="[object ArrayBuffer]",jn="[object DataView]",or="[object Float32Array]",hn="[object Float64Array]",Dn="[object Int8Array]",Rn="[object Int16Array]",Ut="[object Int32Array]",Qt="[object Uint8Array]",Rr="[object Uint8ClampedArray]",Hr="[object Uint16Array]",wr="[object Uint32Array]",gi=/\b__p \+= '';/g,mi=/\b(__p \+=) '' \+/g,Jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ki=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,ws=RegExp(Ki.source),Vr=RegExp(Ur.source),bn=/<%-([\s\S]+?)%>/g,vi=/<%([\s\S]+?)%>/g,Co=/<%=([\s\S]+?)%>/g,ri=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/,xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/[\\^$.*+?()[\]{}|]/g,En=RegExp(Er.source),gn=/^\s+/,fr=/\s/,ii=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,so=/\{\n\/\* \[wrapped with (.+)\] \*/,ao=/,? & /,ko=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ir=/[()=,{}\[\]\/\s]/,oi=/\\(\\)?/g,Gr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/\w*$/,_o=/^[-+]0x[0-9a-f]+$/i,sr=/^0b[01]+$/i,_n=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,Ne=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,dn=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",Cr="\\u0300-\\u036f",Hn="\\ufe20-\\ufe2f",sn="\\u20d0-\\u20ff",pr=Cr+Hn+sn,fn="\\u2700-\\u27bf",gr="a-z\\xdf-\\xf6\\xf8-\\xff",lo="\\xac\\xb1\\xd7\\xf7",xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cs="\\u2000-\\u206f",ks=" \\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",ar="A-Z\\xc0-\\xd6\\xd8-\\xde",_s="\\ufe0e\\ufe0f",Ho=lo+xs+Cs+ks,co="['’]",As="["+jt+"]",Uo="["+Ho+"]",Ao="["+pr+"]",Ss="\\d+",$s="["+fn+"]",Vo="["+gr+"]",fa="[^"+jt+Ho+Ss+fn+gr+ar+"]",uo="\\ud83c[\\udffb-\\udfff]",Go="(?:"+Ao+"|"+uo+")",Yi="[^"+jt+"]",lr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ms="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+ar+"]",pa="\\u200d",ga="(?:"+Vo+"|"+fa+")",qo="(?:"+qr+"|"+fa+")",Ji="(?:"+co+"(?:d|ll|m|re|s|t|ve))?",So="(?:"+co+"(?:D|LL|M|RE|S|T|VE))?",Ko=Go+"?",ho="["+_s+"]?",ma="(?:"+pa+"(?:"+[Yi,lr,Ms].join("|")+")"+ho+Ko+")*",fo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ze="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ts=ho+Ko+ma,De="(?:"+[$s,lr,Ms].join("|")+")"+Ts,In="(?:"+[Yi+Ao+"?",Ao,lr,Ms,As].join("|")+")",$o=RegExp(co,"g"),Xi=RegExp(Ao,"g"),Ln=RegExp(uo+"(?="+uo+")|"+In+Ts,"g"),va=RegExp([qr+"?"+Vo+"+"+Ji+"(?="+[Uo,qr,"$"].join("|")+")",qo+"+"+So+"(?="+[Uo,qr+ga,"$"].join("|")+")",qr+"?"+ga+"+"+Ji,qr+"+"+So,ze,fo,Ss,De].join("|"),"g"),Mo=RegExp("["+pa+jt+pr+_s+"]"),Ii=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,po=["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"],Rs=-1,Xt={};Xt[or]=Xt[hn]=Xt[Dn]=Xt[Rn]=Xt[Ut]=Xt[Qt]=Xt[Rr]=Xt[Hr]=Xt[wr]=!0,Xt[de]=Xt[me]=Xt[Tn]=Xt[Me]=Xt[jn]=Xt[Te]=Xt[qe]=Xt[rt]=Xt[et]=Xt[Pt]=Xt[_t]=Xt[br]=Xt[un]=Xt[ir]=Xt[At]=!1;var at={};at[de]=at[me]=at[Tn]=at[jn]=at[Me]=at[Te]=at[or]=at[hn]=at[Dn]=at[Rn]=at[Ut]=at[et]=at[Pt]=at[_t]=at[br]=at[un]=at[ir]=at[ut]=at[Qt]=at[Rr]=at[Hr]=at[wr]=!0,at[qe]=at[rt]=at[At]=!1;var Wt={À:"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"},Li={"&":"&","<":"<",">":">",'"':""","'":"'"},Pn={"&":"&","<":"<",">":">",""":'"',"'":"'"},je={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mn=parseFloat,bt=parseInt,Lr=typeof Wo=="object"&&Wo&&Wo.Object===Object&&Wo,Oi=typeof self=="object"&&self&&self.Object===Object&&self,Lt=Lr||Oi||Function("return this")(),Or=n&&!n.nodeType&&n,Xn=Or&&!0&&t&&!t.nodeType&&t,Zi=Xn&&Xn.exports===Or,yi=Zi&&Lr.process,An=(function(){try{var ge=Xn&&Xn.require&&Xn.require("util").types;return ge||yi&&yi.binding&&yi.binding("util")}catch{}})(),Yo=An&&An.isArrayBuffer,Fn=An&&An.isDate,bi=An&&An.isMap,wi=An&&An.isRegExp,Ni=An&&An.isSet,Es=An&&An.isTypedArray;function en(ge,Se,ke){switch(ke.length){case 0:return ge.call(Se);case 1:return ge.call(Se,ke[0]);case 2:return ge.call(Se,ke[0],ke[1]);case 3:return ge.call(Se,ke[0],ke[1],ke[2])}return ge.apply(Se,ke)}function ya(ge,Se,ke,Ue){for(var ct=-1,kt=ge==null?0:ge.length;++ct<kt;){var Yt=ge[ct];Se(Ue,Yt,ke(Yt),ge)}return Ue}function cr(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue&&Se(ge[ke],ke,ge)!==!1;);return ge}function Nr(ge,Se){for(var ke=ge==null?0:ge.length;ke--&&Se(ge[ke],ke,ge)!==!1;);return ge}function go(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue;)if(!Se(ge[ke],ke,ge))return!1;return!0}function kr(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length,ct=0,kt=[];++ke<Ue;){var Yt=ge[ke];Se(Yt,ke,ge)&&(kt[ct++]=Yt)}return kt}function si(ge,Se){var ke=ge==null?0:ge.length;return!!ke&&ye(ge,Se,0)>-1}function y(ge,Se,ke){for(var Ue=-1,ct=ge==null?0:ge.length;++Ue<ct;)if(ke(Se,ge[Ue]))return!0;return!1}function S(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length,ct=Array(Ue);++ke<Ue;)ct[ke]=Se(ge[ke],ke,ge);return ct}function _(ge,Se){for(var ke=-1,Ue=Se.length,ct=ge.length;++ke<Ue;)ge[ct+ke]=Se[ke];return ge}function P(ge,Se,ke,Ue){var ct=-1,kt=ge==null?0:ge.length;for(Ue&&kt&&(ke=ge[++ct]);++ct<kt;)ke=Se(ke,ge[ct],ct,ge);return ke}function z(ge,Se,ke,Ue){var ct=ge==null?0:ge.length;for(Ue&&ct&&(ke=ge[--ct]);ct--;)ke=Se(ke,ge[ct],ct,ge);return ke}function j(ge,Se){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue;)if(Se(ge[ke],ke,ge))return!0;return!1}var G=Oe("length");function Y(ge){return ge.split("")}function X(ge){return ge.match(ko)||[]}function re(ge,Se,ke){var Ue;return ke(ge,function(ct,kt,Yt){if(Se(ct,kt,Yt))return Ue=kt,!1}),Ue}function ue(ge,Se,ke,Ue){for(var ct=ge.length,kt=ke+(Ue?1:-1);Ue?kt--:++kt<ct;)if(Se(ge[kt],kt,ge))return kt;return-1}function ye(ge,Se,ke){return Se===Se?wt(ge,Se,ke):ue(ge,ve,ke)}function Ce(ge,Se,ke,Ue){for(var ct=ke-1,kt=ge.length;++ct<kt;)if(Ue(ge[ct],Se))return ct;return-1}function ve(ge){return ge!==ge}function we(ge,Se){var ke=ge==null?0:ge.length;return ke?Je(ge,Se)/ke:Q}function Oe(ge){return function(Se){return Se==null?e:Se[ge]}}function Ie(ge){return function(Se){return ge==null?e:ge[Se]}}function Ve(ge,Se,ke,Ue,ct){return ct(ge,function(kt,Yt,Nt){ke=Ue?(Ue=!1,kt):Se(ke,kt,Yt,Nt)}),ke}function lt(ge,Se){var ke=ge.length;for(ge.sort(Se);ke--;)ge[ke]=ge[ke].value;return ge}function Je(ge,Se){for(var ke,Ue=-1,ct=ge.length;++Ue<ct;){var kt=Se(ge[Ue]);kt!==e&&(ke=ke===e?kt:ke+kt)}return ke}function Qe(ge,Se){for(var ke=-1,Ue=Array(ge);++ke<ge;)Ue[ke]=Se(ke);return Ue}function xn(ge,Se){return S(Se,function(ke){return[ke,ge[ke]]})}function xt(ge){return ge&&ge.slice(0,ht(ge)+1).replace(gn,"")}function Vt(ge){return function(Se){return ge(Se)}}function Mt(ge,Se){return S(Se,function(ke){return ge[ke]})}function Ct(ge,Se){return ge.has(Se)}function Zn(ge,Se){for(var ke=-1,Ue=ge.length;++ke<Ue&&ye(Se,ge[ke],0)>-1;);return ke}function ur(ge,Se){for(var ke=ge.length;ke--&&ye(Se,ge[ke],0)>-1;);return ke}function Sn(ge,Se){for(var ke=ge.length,Ue=0;ke--;)ge[ke]===Se&&++Ue;return Ue}var V=Ie(Wt),J=Ie(Li);function ie(ge){return"\\"+je[ge]}function se(ge,Se){return ge==null?e:ge[Se]}function pe(ge){return Mo.test(ge)}function xe(ge){return Ii.test(ge)}function Re(ge){for(var Se,ke=[];!(Se=ge.next()).done;)ke.push(Se.value);return ke}function Fe(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue,ct){ke[++Se]=[ct,Ue]}),ke}function We(ge,Se){return function(ke){return ge(Se(ke))}}function He(ge,Se){for(var ke=-1,Ue=ge.length,ct=0,kt=[];++ke<Ue;){var Yt=ge[ke];(Yt===Se||Yt===l)&&(ge[ke]=l,kt[ct++]=ke)}return kt}function Ke(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue){ke[++Se]=Ue}),ke}function Ze(ge){var Se=-1,ke=Array(ge.size);return ge.forEach(function(Ue){ke[++Se]=[Ue,Ue]}),ke}function wt(ge,Se,ke){for(var Ue=ke-1,ct=ge.length;++Ue<ct;)if(ge[Ue]===Se)return Ue;return-1}function Gt(ge,Se,ke){for(var Ue=ke+1;Ue--;)if(ge[Ue]===Se)return Ue;return Ue}function Ot(ge){return pe(ge)?pn(ge):G(ge)}function vt(ge){return pe(ge)?$n(ge):Y(ge)}function ht(ge){for(var Se=ge.length;Se--&&fr.test(ge.charAt(Se)););return Se}var ot=Ie(Pn);function pn(ge){for(var Se=Ln.lastIndex=0;Ln.test(ge);)++Se;return Se}function $n(ge){return ge.match(Ln)||[]}function Qn(ge){return ge.match(va)||[]}var tn=(function ge(Se){Se=Se==null?Lt:an.defaults(Lt.Object(),Se,an.pick(Lt,po));var ke=Se.Array,Ue=Se.Date,ct=Se.Error,kt=Se.Function,Yt=Se.Math,Nt=Se.Object,ai=Se.RegExp,_r=Se.String,vn=Se.TypeError,Di=ke.prototype,Ar=kt.prototype,To=Nt.prototype,_c=Se["__core-js_shared__"],Ac=Ar.toString,nn=To.hasOwnProperty,JT=0,sb=(function(){var o=/[^.]+$/.exec(_c&&_c.keys&&_c.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Sc=To.toString,XT=Ac.call(Nt),ZT=Lt._,QT=ai("^"+Ac.call(nn).replace(Er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$c=Zi?Se.Buffer:e,Jo=Se.Symbol,Mc=Se.Uint8Array,ab=$c?$c.allocUnsafe:e,Tc=We(Nt.getPrototypeOf,Nt),lb=Nt.create,cb=To.propertyIsEnumerable,Rc=Di.splice,ub=Jo?Jo.isConcatSpreadable:e,ll=Jo?Jo.iterator:e,Is=Jo?Jo.toStringTag:e,Ec=(function(){try{var o=Ps(Nt,"defineProperty");return o({},"",{}),o}catch{}})(),eR=Se.clearTimeout!==Lt.clearTimeout&&Se.clearTimeout,tR=Ue&&Ue.now!==Lt.Date.now&&Ue.now,nR=Se.setTimeout!==Lt.setTimeout&&Se.setTimeout,Ic=Yt.ceil,Lc=Yt.floor,yd=Nt.getOwnPropertySymbols,rR=$c?$c.isBuffer:e,hb=Se.isFinite,iR=Di.join,oR=We(Nt.keys,Nt),hr=Yt.max,Dr=Yt.min,sR=Ue.now,aR=Se.parseInt,db=Yt.random,lR=Di.reverse,bd=Ps(Se,"DataView"),cl=Ps(Se,"Map"),wd=Ps(Se,"Promise"),ba=Ps(Se,"Set"),ul=Ps(Se,"WeakMap"),hl=Ps(Nt,"create"),Oc=ul&&new ul,wa={},cR=Fs(bd),uR=Fs(cl),hR=Fs(wd),dR=Fs(ba),fR=Fs(ul),Nc=Jo?Jo.prototype:e,dl=Nc?Nc.valueOf:e,fb=Nc?Nc.toString:e;function ee(o){if(zn(o)&&!St(o)&&!(o instanceof Bt)){if(o instanceof Pi)return o;if(nn.call(o,"__wrapped__"))return p0(o)}return new Pi(o)}var xa=(function(){function o(){}return function(m){if(!On(m))return{};if(lb)return lb(m);o.prototype=m;var T=new o;return o.prototype=e,T}})();function Dc(){}function Pi(o,m){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=e}ee.templateSettings={escape:bn,evaluate:vi,interpolate:Co,variable:"",imports:{_:ee}},ee.prototype=Dc.prototype,ee.prototype.constructor=ee,Pi.prototype=xa(Dc.prototype),Pi.prototype.constructor=Pi;function Bt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function pR(){var o=new Bt(this.__wrapped__);return o.__actions__=li(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=li(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=li(this.__views__),o}function gR(){if(this.__filtered__){var o=new Bt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function mR(){var o=this.__wrapped__.value(),m=this.__dir__,T=St(o),H=m<0,K=T?o.length:0,te=ME(0,K,this.__views__),he=te.start,fe=te.end,be=fe-he,Ee=H?fe:he-1,Le=this.__iteratees__,Pe=Le.length,Ye=0,it=Dr(be,this.__takeCount__);if(!T||!H&&K==be&&it==be)return Pb(o,this.__actions__);var mt=[];e:for(;be--&&Ye<it;){Ee+=m;for(var Et=-1,dt=o[Ee];++Et<Pe;){var Ft=Le[Et],Ht=Ft.iteratee,ki=Ft.type,Jr=Ht(dt);if(ki==L)dt=Jr;else if(!Jr){if(ki==k)continue e;break e}}mt[Ye++]=dt}return mt}Bt.prototype=xa(Dc.prototype),Bt.prototype.constructor=Bt;function Ls(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function vR(){this.__data__=hl?hl(null):{},this.size=0}function yR(o){var m=this.has(o)&&delete this.__data__[o];return this.size-=m?1:0,m}function bR(o){var m=this.__data__;if(hl){var T=m[o];return T===d?e:T}return nn.call(m,o)?m[o]:e}function wR(o){var m=this.__data__;return hl?m[o]!==e:nn.call(m,o)}function xR(o,m){var T=this.__data__;return this.size+=this.has(o)?0:1,T[o]=hl&&m===e?d:m,this}Ls.prototype.clear=vR,Ls.prototype.delete=yR,Ls.prototype.get=bR,Ls.prototype.has=wR,Ls.prototype.set=xR;function Ro(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function CR(){this.__data__=[],this.size=0}function kR(o){var m=this.__data__,T=Pc(m,o);if(T<0)return!1;var H=m.length-1;return T==H?m.pop():Rc.call(m,T,1),--this.size,!0}function _R(o){var m=this.__data__,T=Pc(m,o);return T<0?e:m[T][1]}function AR(o){return Pc(this.__data__,o)>-1}function SR(o,m){var T=this.__data__,H=Pc(T,o);return H<0?(++this.size,T.push([o,m])):T[H][1]=m,this}Ro.prototype.clear=CR,Ro.prototype.delete=kR,Ro.prototype.get=_R,Ro.prototype.has=AR,Ro.prototype.set=SR;function Eo(o){var m=-1,T=o==null?0:o.length;for(this.clear();++m<T;){var H=o[m];this.set(H[0],H[1])}}function $R(){this.size=0,this.__data__={hash:new Ls,map:new(cl||Ro),string:new Ls}}function MR(o){var m=Yc(this,o).delete(o);return this.size-=m?1:0,m}function TR(o){return Yc(this,o).get(o)}function RR(o){return Yc(this,o).has(o)}function ER(o,m){var T=Yc(this,o),H=T.size;return T.set(o,m),this.size+=T.size==H?0:1,this}Eo.prototype.clear=$R,Eo.prototype.delete=MR,Eo.prototype.get=TR,Eo.prototype.has=RR,Eo.prototype.set=ER;function Os(o){var m=-1,T=o==null?0:o.length;for(this.__data__=new Eo;++m<T;)this.add(o[m])}function IR(o){return this.__data__.set(o,d),this}function LR(o){return this.__data__.has(o)}Os.prototype.add=Os.prototype.push=IR,Os.prototype.has=LR;function Qi(o){var m=this.__data__=new Ro(o);this.size=m.size}function OR(){this.__data__=new Ro,this.size=0}function NR(o){var m=this.__data__,T=m.delete(o);return this.size=m.size,T}function DR(o){return this.__data__.get(o)}function PR(o){return this.__data__.has(o)}function FR(o,m){var T=this.__data__;if(T instanceof Ro){var H=T.__data__;if(!cl||H.length<v-1)return H.push([o,m]),this.size=++T.size,this;T=this.__data__=new Eo(H)}return T.set(o,m),this.size=T.size,this}Qi.prototype.clear=OR,Qi.prototype.delete=NR,Qi.prototype.get=DR,Qi.prototype.has=PR,Qi.prototype.set=FR;function pb(o,m){var T=St(o),H=!T&&zs(o),K=!T&&!H&&ts(o),te=!T&&!H&&!K&&Aa(o),he=T||H||K||te,fe=he?Qe(o.length,_r):[],be=fe.length;for(var Ee in o)(m||nn.call(o,Ee))&&!(he&&(Ee=="length"||K&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Oo(Ee,be)))&&fe.push(Ee);return fe}function gb(o){var m=o.length;return m?o[Ed(0,m-1)]:e}function zR(o,m){return Jc(li(o),Ns(m,0,o.length))}function WR(o){return Jc(li(o))}function xd(o,m,T){(T!==e&&!to(o[m],T)||T===e&&!(m in o))&&mo(o,m,T)}function fl(o,m,T){var H=o[m];(!(nn.call(o,m)&&to(H,T))||T===e&&!(m in o))&&mo(o,m,T)}function Pc(o,m){for(var T=o.length;T--;)if(to(o[T][0],m))return T;return-1}function BR(o,m,T,H){return Xo(o,function(K,te,he){m(H,K,T(K),he)}),H}function mb(o,m){return o&&yo(m,mr(m),o)}function jR(o,m){return o&&yo(m,ui(m),o)}function mo(o,m,T){m=="__proto__"&&Ec?Ec(o,m,{configurable:!0,enumerable:!0,value:T,writable:!0}):o[m]=T}function Cd(o,m){for(var T=-1,H=m.length,K=ke(H),te=o==null;++T<H;)K[T]=te?e:rf(o,m[T]);return K}function Ns(o,m,T){return o===o&&(T!==e&&(o=o<=T?o:T),m!==e&&(o=o>=m?o:m)),o}function Fi(o,m,T,H,K,te){var he,fe=m&c,be=m&u,Ee=m&i;if(T&&(he=K?T(o,H,K,te):T(o)),he!==e)return he;if(!On(o))return o;var Le=St(o);if(Le){if(he=RE(o),!fe)return li(o,he)}else{var Pe=Pr(o),Ye=Pe==rt||Pe==st;if(ts(o))return Wb(o,fe);if(Pe==_t||Pe==de||Ye&&!K){if(he=be||Ye?{}:o0(o),!fe)return be?bE(o,jR(he,o)):yE(o,mb(he,o))}else{if(!at[Pe])return K?o:{};he=EE(o,Pe,fe)}}te||(te=new Qi);var it=te.get(o);if(it)return it;te.set(o,he),O0(o)?o.forEach(function(dt){he.add(Fi(dt,m,T,dt,o,te))}):I0(o)&&o.forEach(function(dt,Ft){he.set(Ft,Fi(dt,m,T,Ft,o,te))});var mt=Ee?be?jd:Bd:be?ui:mr,Et=Le?e:mt(o);return cr(Et||o,function(dt,Ft){Et&&(Ft=dt,dt=o[Ft]),fl(he,Ft,Fi(dt,m,T,Ft,o,te))}),he}function HR(o){var m=mr(o);return function(T){return vb(T,o,m)}}function vb(o,m,T){var H=T.length;if(o==null)return!H;for(o=Nt(o);H--;){var K=T[H],te=m[K],he=o[K];if(he===e&&!(K in o)||!te(he))return!1}return!0}function yb(o,m,T){if(typeof o!="function")throw new vn(p);return wl(function(){o.apply(e,T)},m)}function pl(o,m,T,H){var K=-1,te=si,he=!0,fe=o.length,be=[],Ee=m.length;if(!fe)return be;T&&(m=S(m,Vt(T))),H?(te=y,he=!1):m.length>=v&&(te=Ct,he=!1,m=new Os(m));e:for(;++K<fe;){var Le=o[K],Pe=T==null?Le:T(Le);if(Le=H||Le!==0?Le:0,he&&Pe===Pe){for(var Ye=Ee;Ye--;)if(m[Ye]===Pe)continue e;be.push(Le)}else te(m,Pe,H)||be.push(Le)}return be}var Xo=Vb(vo),bb=Vb(_d,!0);function UR(o,m){var T=!0;return Xo(o,function(H,K,te){return T=!!m(H,K,te),T}),T}function Fc(o,m,T){for(var H=-1,K=o.length;++H<K;){var te=o[H],he=m(te);if(he!=null&&(fe===e?he===he&&!Ci(he):T(he,fe)))var fe=he,be=te}return be}function VR(o,m,T,H){var K=o.length;for(T=Rt(T),T<0&&(T=-T>K?0:K+T),H=H===e||H>K?K:Rt(H),H<0&&(H+=K),H=T>H?0:D0(H);T<H;)o[T++]=m;return o}function wb(o,m){var T=[];return Xo(o,function(H,K,te){m(H,K,te)&&T.push(H)}),T}function Sr(o,m,T,H,K){var te=-1,he=o.length;for(T||(T=LE),K||(K=[]);++te<he;){var fe=o[te];m>0&&T(fe)?m>1?Sr(fe,m-1,T,H,K):_(K,fe):H||(K[K.length]=fe)}return K}var kd=Gb(),xb=Gb(!0);function vo(o,m){return o&&kd(o,m,mr)}function _d(o,m){return o&&xb(o,m,mr)}function zc(o,m){return kr(m,function(T){return No(o[T])})}function Ds(o,m){m=Qo(m,o);for(var T=0,H=m.length;o!=null&&T<H;)o=o[eo(m[T++])];return T&&T==H?o:e}function Cb(o,m,T){var H=m(o);return St(o)?H:_(H,T(o))}function Kr(o){return o==null?o===e?Ge:yr:Is&&Is in Nt(o)?$E(o):WE(o)}function Ad(o,m){return o>m}function GR(o,m){return o!=null&&nn.call(o,m)}function qR(o,m){return o!=null&&m in Nt(o)}function KR(o,m,T){return o>=Dr(m,T)&&o<hr(m,T)}function Sd(o,m,T){for(var H=T?y:si,K=o[0].length,te=o.length,he=te,fe=ke(te),be=1/0,Ee=[];he--;){var Le=o[he];he&&m&&(Le=S(Le,Vt(m))),be=Dr(Le.length,be),fe[he]=!T&&(m||K>=120&&Le.length>=120)?new Os(he&&Le):e}Le=o[0];var Pe=-1,Ye=fe[0];e:for(;++Pe<K&&Ee.length<be;){var it=Le[Pe],mt=m?m(it):it;if(it=T||it!==0?it:0,!(Ye?Ct(Ye,mt):H(Ee,mt,T))){for(he=te;--he;){var Et=fe[he];if(!(Et?Ct(Et,mt):H(o[he],mt,T)))continue e}Ye&&Ye.push(mt),Ee.push(it)}}return Ee}function YR(o,m,T,H){return vo(o,function(K,te,he){m(H,T(K),te,he)}),H}function gl(o,m,T){m=Qo(m,o),o=c0(o,m);var H=o==null?o:o[eo(Wi(m))];return H==null?e:en(H,o,T)}function kb(o){return zn(o)&&Kr(o)==de}function JR(o){return zn(o)&&Kr(o)==Tn}function XR(o){return zn(o)&&Kr(o)==Te}function ml(o,m,T,H,K){return o===m?!0:o==null||m==null||!zn(o)&&!zn(m)?o!==o&&m!==m:ZR(o,m,T,H,ml,K)}function ZR(o,m,T,H,K,te){var he=St(o),fe=St(m),be=he?me:Pr(o),Ee=fe?me:Pr(m);be=be==de?_t:be,Ee=Ee==de?_t:Ee;var Le=be==_t,Pe=Ee==_t,Ye=be==Ee;if(Ye&&ts(o)){if(!ts(m))return!1;he=!0,Le=!1}if(Ye&&!Le)return te||(te=new Qi),he||Aa(o)?n0(o,m,T,H,K,te):AE(o,m,be,T,H,K,te);if(!(T&s)){var it=Le&&nn.call(o,"__wrapped__"),mt=Pe&&nn.call(m,"__wrapped__");if(it||mt){var Et=it?o.value():o,dt=mt?m.value():m;return te||(te=new Qi),K(Et,dt,T,H,te)}}return Ye?(te||(te=new Qi),SE(o,m,T,H,K,te)):!1}function QR(o){return zn(o)&&Pr(o)==et}function $d(o,m,T,H){var K=T.length,te=K,he=!H;if(o==null)return!te;for(o=Nt(o);K--;){var fe=T[K];if(he&&fe[2]?fe[1]!==o[fe[0]]:!(fe[0]in o))return!1}for(;++K<te;){fe=T[K];var be=fe[0],Ee=o[be],Le=fe[1];if(he&&fe[2]){if(Ee===e&&!(be in o))return!1}else{var Pe=new Qi;if(H)var Ye=H(Ee,Le,be,o,m,Pe);if(!(Ye===e?ml(Le,Ee,s|f,H,Pe):Ye))return!1}}return!0}function _b(o){if(!On(o)||NE(o))return!1;var m=No(o)?QT:_n;return m.test(Fs(o))}function eE(o){return zn(o)&&Kr(o)==br}function tE(o){return zn(o)&&Pr(o)==un}function nE(o){return zn(o)&&nu(o.length)&&!!Xt[Kr(o)]}function Ab(o){return typeof o=="function"?o:o==null?hi:typeof o=="object"?St(o)?Mb(o[0],o[1]):$b(o):K0(o)}function Md(o){if(!bl(o))return oR(o);var m=[];for(var T in Nt(o))nn.call(o,T)&&T!="constructor"&&m.push(T);return m}function rE(o){if(!On(o))return zE(o);var m=bl(o),T=[];for(var H in o)H=="constructor"&&(m||!nn.call(o,H))||T.push(H);return T}function Td(o,m){return o<m}function Sb(o,m){var T=-1,H=ci(o)?ke(o.length):[];return Xo(o,function(K,te,he){H[++T]=m(K,te,he)}),H}function $b(o){var m=Ud(o);return m.length==1&&m[0][2]?a0(m[0][0],m[0][1]):function(T){return T===o||$d(T,o,m)}}function Mb(o,m){return Gd(o)&&s0(m)?a0(eo(o),m):function(T){var H=rf(T,o);return H===e&&H===m?of(T,o):ml(m,H,s|f)}}function Wc(o,m,T,H,K){o!==m&&kd(m,function(te,he){if(K||(K=new Qi),On(te))iE(o,m,he,T,Wc,H,K);else{var fe=H?H(Kd(o,he),te,he+"",o,m,K):e;fe===e&&(fe=te),xd(o,he,fe)}},ui)}function iE(o,m,T,H,K,te,he){var fe=Kd(o,T),be=Kd(m,T),Ee=he.get(be);if(Ee){xd(o,T,Ee);return}var Le=te?te(fe,be,T+"",o,m,he):e,Pe=Le===e;if(Pe){var Ye=St(be),it=!Ye&&ts(be),mt=!Ye&&!it&&Aa(be);Le=be,Ye||it||mt?St(fe)?Le=fe:Un(fe)?Le=li(fe):it?(Pe=!1,Le=Wb(be,!0)):mt?(Pe=!1,Le=Bb(be,!0)):Le=[]:xl(be)||zs(be)?(Le=fe,zs(fe)?Le=P0(fe):(!On(fe)||No(fe))&&(Le=o0(be))):Pe=!1}Pe&&(he.set(be,Le),K(Le,be,H,te,he),he.delete(be)),xd(o,T,Le)}function Tb(o,m){var T=o.length;if(T)return m+=m<0?T:0,Oo(m,T)?o[m]:e}function Rb(o,m,T){m.length?m=S(m,function(te){return St(te)?function(he){return Ds(he,te.length===1?te[0]:te)}:te}):m=[hi];var H=-1;m=S(m,Vt(gt()));var K=Sb(o,function(te,he,fe){var be=S(m,function(Ee){return Ee(te)});return{criteria:be,index:++H,value:te}});return lt(K,function(te,he){return vE(te,he,T)})}function oE(o,m){return Eb(o,m,function(T,H){return of(o,H)})}function Eb(o,m,T){for(var H=-1,K=m.length,te={};++H<K;){var he=m[H],fe=Ds(o,he);T(fe,he)&&vl(te,Qo(he,o),fe)}return te}function sE(o){return function(m){return Ds(m,o)}}function Rd(o,m,T,H){var K=H?Ce:ye,te=-1,he=m.length,fe=o;for(o===m&&(m=li(m)),T&&(fe=S(o,Vt(T)));++te<he;)for(var be=0,Ee=m[te],Le=T?T(Ee):Ee;(be=K(fe,Le,be,H))>-1;)fe!==o&&Rc.call(fe,be,1),Rc.call(o,be,1);return o}function Ib(o,m){for(var T=o?m.length:0,H=T-1;T--;){var K=m[T];if(T==H||K!==te){var te=K;Oo(K)?Rc.call(o,K,1):Od(o,K)}}return o}function Ed(o,m){return o+Lc(db()*(m-o+1))}function aE(o,m,T,H){for(var K=-1,te=hr(Ic((m-o)/(T||1)),0),he=ke(te);te--;)he[H?te:++K]=o,o+=T;return he}function Id(o,m){var T="";if(!o||m<1||m>q)return T;do m%2&&(T+=o),m=Lc(m/2),m&&(o+=o);while(m);return T}function Dt(o,m){return Yd(l0(o,m,hi),o+"")}function lE(o){return gb(Sa(o))}function cE(o,m){var T=Sa(o);return Jc(T,Ns(m,0,T.length))}function vl(o,m,T,H){if(!On(o))return o;m=Qo(m,o);for(var K=-1,te=m.length,he=te-1,fe=o;fe!=null&&++K<te;){var be=eo(m[K]),Ee=T;if(be==="__proto__"||be==="constructor"||be==="prototype")return o;if(K!=he){var Le=fe[be];Ee=H?H(Le,be,fe):e,Ee===e&&(Ee=On(Le)?Le:Oo(m[K+1])?[]:{})}fl(fe,be,Ee),fe=fe[be]}return o}var Lb=Oc?function(o,m){return Oc.set(o,m),o}:hi,uE=Ec?function(o,m){return Ec(o,"toString",{configurable:!0,enumerable:!1,value:af(m),writable:!0})}:hi;function hE(o){return Jc(Sa(o))}function zi(o,m,T){var H=-1,K=o.length;m<0&&(m=-m>K?0:K+m),T=T>K?K:T,T<0&&(T+=K),K=m>T?0:T-m>>>0,m>>>=0;for(var te=ke(K);++H<K;)te[H]=o[H+m];return te}function dE(o,m){var T;return Xo(o,function(H,K,te){return T=m(H,K,te),!T}),!!T}function Bc(o,m,T){var H=0,K=o==null?H:o.length;if(typeof m=="number"&&m===m&&K<=ce){for(;H<K;){var te=H+K>>>1,he=o[te];he!==null&&!Ci(he)&&(T?he<=m:he<m)?H=te+1:K=te}return K}return Ld(o,m,hi,T)}function Ld(o,m,T,H){var K=0,te=o==null?0:o.length;if(te===0)return 0;m=T(m);for(var he=m!==m,fe=m===null,be=Ci(m),Ee=m===e;K<te;){var Le=Lc((K+te)/2),Pe=T(o[Le]),Ye=Pe!==e,it=Pe===null,mt=Pe===Pe,Et=Ci(Pe);if(he)var dt=H||mt;else Ee?dt=mt&&(H||Ye):fe?dt=mt&&Ye&&(H||!it):be?dt=mt&&Ye&&!it&&(H||!Et):it||Et?dt=!1:dt=H?Pe<=m:Pe<m;dt?K=Le+1:te=Le}return Dr(te,ne)}function Ob(o,m){for(var T=-1,H=o.length,K=0,te=[];++T<H;){var he=o[T],fe=m?m(he):he;if(!T||!to(fe,be)){var be=fe;te[K++]=he===0?0:he}}return te}function Nb(o){return typeof o=="number"?o:Ci(o)?Q:+o}function xi(o){if(typeof o=="string")return o;if(St(o))return S(o,xi)+"";if(Ci(o))return fb?fb.call(o):"";var m=o+"";return m=="0"&&1/o==-U?"-0":m}function Zo(o,m,T){var H=-1,K=si,te=o.length,he=!0,fe=[],be=fe;if(T)he=!1,K=y;else if(te>=v){var Ee=m?null:kE(o);if(Ee)return Ke(Ee);he=!1,K=Ct,be=new Os}else be=m?[]:fe;e:for(;++H<te;){var Le=o[H],Pe=m?m(Le):Le;if(Le=T||Le!==0?Le:0,he&&Pe===Pe){for(var Ye=be.length;Ye--;)if(be[Ye]===Pe)continue e;m&&be.push(Pe),fe.push(Le)}else K(be,Pe,T)||(be!==fe&&be.push(Pe),fe.push(Le))}return fe}function Od(o,m){m=Qo(m,o);var T=-1,H=m.length;if(!H)return!0;for(;++T<H;){var K=eo(m[T]);if(K==="__proto__"&&!nn.call(o,"__proto__")||(K==="constructor"||K==="prototype")&&T<H-1)return!1}var te=c0(o,m);return te==null||delete te[eo(Wi(m))]}function Db(o,m,T,H){return vl(o,m,T(Ds(o,m)),H)}function jc(o,m,T,H){for(var K=o.length,te=H?K:-1;(H?te--:++te<K)&&m(o[te],te,o););return T?zi(o,H?0:te,H?te+1:K):zi(o,H?te+1:0,H?K:te)}function Pb(o,m){var T=o;return T instanceof Bt&&(T=T.value()),P(m,function(H,K){return K.func.apply(K.thisArg,_([H],K.args))},T)}function Nd(o,m,T){var H=o.length;if(H<2)return H?Zo(o[0]):[];for(var K=-1,te=ke(H);++K<H;)for(var he=o[K],fe=-1;++fe<H;)fe!=K&&(te[K]=pl(te[K]||he,o[fe],m,T));return Zo(Sr(te,1),m,T)}function Fb(o,m,T){for(var H=-1,K=o.length,te=m.length,he={};++H<K;){var fe=H<te?m[H]:e;T(he,o[H],fe)}return he}function Dd(o){return Un(o)?o:[]}function Pd(o){return typeof o=="function"?o:hi}function Qo(o,m){return St(o)?o:Gd(o,m)?[o]:f0(rn(o))}var fE=Dt;function es(o,m,T){var H=o.length;return T=T===e?H:T,!m&&T>=H?o:zi(o,m,T)}var zb=eR||function(o){return Lt.clearTimeout(o)};function Wb(o,m){if(m)return o.slice();var T=o.length,H=ab?ab(T):new o.constructor(T);return o.copy(H),H}function Fd(o){var m=new o.constructor(o.byteLength);return new Mc(m).set(new Mc(o)),m}function pE(o,m){var T=m?Fd(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.byteLength)}function gE(o){var m=new o.constructor(o.source,It.exec(o));return m.lastIndex=o.lastIndex,m}function mE(o){return dl?Nt(dl.call(o)):{}}function Bb(o,m){var T=m?Fd(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.length)}function jb(o,m){if(o!==m){var T=o!==e,H=o===null,K=o===o,te=Ci(o),he=m!==e,fe=m===null,be=m===m,Ee=Ci(m);if(!fe&&!Ee&&!te&&o>m||te&&he&&be&&!fe&&!Ee||H&&he&&be||!T&&be||!K)return 1;if(!H&&!te&&!Ee&&o<m||Ee&&T&&K&&!H&&!te||fe&&T&&K||!he&&K||!be)return-1}return 0}function vE(o,m,T){for(var H=-1,K=o.criteria,te=m.criteria,he=K.length,fe=T.length;++H<he;){var be=jb(K[H],te[H]);if(be){if(H>=fe)return be;var Ee=T[H];return be*(Ee=="desc"?-1:1)}}return o.index-m.index}function Hb(o,m,T,H){for(var K=-1,te=o.length,he=T.length,fe=-1,be=m.length,Ee=hr(te-he,0),Le=ke(be+Ee),Pe=!H;++fe<be;)Le[fe]=m[fe];for(;++K<he;)(Pe||K<te)&&(Le[T[K]]=o[K]);for(;Ee--;)Le[fe++]=o[K++];return Le}function Ub(o,m,T,H){for(var K=-1,te=o.length,he=-1,fe=T.length,be=-1,Ee=m.length,Le=hr(te-fe,0),Pe=ke(Le+Ee),Ye=!H;++K<Le;)Pe[K]=o[K];for(var it=K;++be<Ee;)Pe[it+be]=m[be];for(;++he<fe;)(Ye||K<te)&&(Pe[it+T[he]]=o[K++]);return Pe}function li(o,m){var T=-1,H=o.length;for(m||(m=ke(H));++T<H;)m[T]=o[T];return m}function yo(o,m,T,H){var K=!T;T||(T={});for(var te=-1,he=m.length;++te<he;){var fe=m[te],be=H?H(T[fe],o[fe],fe,T,o):e;be===e&&(be=o[fe]),K?mo(T,fe,be):fl(T,fe,be)}return T}function yE(o,m){return yo(o,Vd(o),m)}function bE(o,m){return yo(o,r0(o),m)}function Hc(o,m){return function(T,H){var K=St(T)?ya:BR,te=m?m():{};return K(T,o,gt(H,2),te)}}function Ca(o){return Dt(function(m,T){var H=-1,K=T.length,te=K>1?T[K-1]:e,he=K>2?T[2]:e;for(te=o.length>3&&typeof te=="function"?(K--,te):e,he&&Yr(T[0],T[1],he)&&(te=K<3?e:te,K=1),m=Nt(m);++H<K;){var fe=T[H];fe&&o(m,fe,H,te)}return m})}function Vb(o,m){return function(T,H){if(T==null)return T;if(!ci(T))return o(T,H);for(var K=T.length,te=m?K:-1,he=Nt(T);(m?te--:++te<K)&&H(he[te],te,he)!==!1;);return T}}function Gb(o){return function(m,T,H){for(var K=-1,te=Nt(m),he=H(m),fe=he.length;fe--;){var be=he[o?fe:++K];if(T(te[be],be,te)===!1)break}return m}}function wE(o,m,T){var H=m&b,K=yl(o);function te(){var he=this&&this!==Lt&&this instanceof te?K:o;return he.apply(H?T:this,arguments)}return te}function qb(o){return function(m){m=rn(m);var T=pe(m)?vt(m):e,H=T?T[0]:m.charAt(0),K=T?es(T,1).join(""):m.slice(1);return H[o]()+K}}function ka(o){return function(m){return P(G0(V0(m).replace($o,"")),o,"")}}function yl(o){return function(){var m=arguments;switch(m.length){case 0:return new o;case 1:return new o(m[0]);case 2:return new o(m[0],m[1]);case 3:return new o(m[0],m[1],m[2]);case 4:return new o(m[0],m[1],m[2],m[3]);case 5:return new o(m[0],m[1],m[2],m[3],m[4]);case 6:return new o(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new o(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var T=xa(o.prototype),H=o.apply(T,m);return On(H)?H:T}}function xE(o,m,T){var H=yl(o);function K(){for(var te=arguments.length,he=ke(te),fe=te,be=_a(K);fe--;)he[fe]=arguments[fe];var Ee=te<3&&he[0]!==be&&he[te-1]!==be?[]:He(he,be);if(te-=Ee.length,te<T)return Zb(o,m,Uc,K.placeholder,e,he,Ee,e,e,T-te);var Le=this&&this!==Lt&&this instanceof K?H:o;return en(Le,this,he)}return K}function Kb(o){return function(m,T,H){var K=Nt(m);if(!ci(m)){var te=gt(T,3);m=mr(m),T=function(fe){return te(K[fe],fe,K)}}var he=o(m,T,H);return he>-1?K[te?m[he]:he]:e}}function Yb(o){return Lo(function(m){var T=m.length,H=T,K=Pi.prototype.thru;for(o&&m.reverse();H--;){var te=m[H];if(typeof te!="function")throw new vn(p);if(K&&!he&&Kc(te)=="wrapper")var he=new Pi([],!0)}for(H=he?H:T;++H<T;){te=m[H];var fe=Kc(te),be=fe=="wrapper"?Hd(te):e;be&&qd(be[0])&&be[1]==(D|M|C|E)&&!be[4].length&&be[9]==1?he=he[Kc(be[0])].apply(he,be[3]):he=te.length==1&&qd(te)?he[fe]():he.thru(te)}return function(){var Ee=arguments,Le=Ee[0];if(he&&Ee.length==1&&St(Le))return he.plant(Le).value();for(var Pe=0,Ye=T?m[Pe].apply(this,Ee):Le;++Pe<T;)Ye=m[Pe].call(this,Ye);return Ye}})}function Uc(o,m,T,H,K,te,he,fe,be,Ee){var Le=m&D,Pe=m&b,Ye=m&x,it=m&(M|A),mt=m&R,Et=Ye?e:yl(o);function dt(){for(var Ft=arguments.length,Ht=ke(Ft),ki=Ft;ki--;)Ht[ki]=arguments[ki];if(it)var Jr=_a(dt),_i=Sn(Ht,Jr);if(H&&(Ht=Hb(Ht,H,K,it)),te&&(Ht=Ub(Ht,te,he,it)),Ft-=_i,it&&Ft<Ee){var Vn=He(Ht,Jr);return Zb(o,m,Uc,dt.placeholder,T,Ht,Vn,fe,be,Ee-Ft)}var no=Pe?T:this,Po=Ye?no[o]:o;return Ft=Ht.length,fe?Ht=BE(Ht,fe):mt&&Ft>1&&Ht.reverse(),Le&&be<Ft&&(Ht.length=be),this&&this!==Lt&&this instanceof dt&&(Po=Et||yl(Po)),Po.apply(no,Ht)}return dt}function Jb(o,m){return function(T,H){return YR(T,o,m(H),{})}}function Vc(o,m){return function(T,H){var K;if(T===e&&H===e)return m;if(T!==e&&(K=T),H!==e){if(K===e)return H;typeof T=="string"||typeof H=="string"?(T=xi(T),H=xi(H)):(T=Nb(T),H=Nb(H)),K=o(T,H)}return K}}function zd(o){return Lo(function(m){return m=S(m,Vt(gt())),Dt(function(T){var H=this;return o(m,function(K){return en(K,H,T)})})})}function Gc(o,m){m=m===e?" ":xi(m);var T=m.length;if(T<2)return T?Id(m,o):m;var H=Id(m,Ic(o/Ot(m)));return pe(m)?es(vt(H),0,o).join(""):H.slice(0,o)}function CE(o,m,T,H){var K=m&b,te=yl(o);function he(){for(var fe=-1,be=arguments.length,Ee=-1,Le=H.length,Pe=ke(Le+be),Ye=this&&this!==Lt&&this instanceof he?te:o;++Ee<Le;)Pe[Ee]=H[Ee];for(;be--;)Pe[Ee++]=arguments[++fe];return en(Ye,K?T:this,Pe)}return he}function Xb(o){return function(m,T,H){return H&&typeof H!="number"&&Yr(m,T,H)&&(T=H=e),m=Do(m),T===e?(T=m,m=0):T=Do(T),H=H===e?m<T?1:-1:Do(H),aE(m,T,H,o)}}function qc(o){return function(m,T){return typeof m=="string"&&typeof T=="string"||(m=Bi(m),T=Bi(T)),o(m,T)}}function Zb(o,m,T,H,K,te,he,fe,be,Ee){var Le=m&M,Pe=Le?he:e,Ye=Le?e:he,it=Le?te:e,mt=Le?e:te;m|=Le?C:O,m&=~(Le?O:C),m&I||(m&=-4);var Et=[o,m,K,it,Pe,mt,Ye,fe,be,Ee],dt=T.apply(e,Et);return qd(o)&&u0(dt,Et),dt.placeholder=H,h0(dt,o,m)}function Wd(o){var m=Yt[o];return function(T,H){if(T=Bi(T),H=H==null?0:Dr(Rt(H),292),H&&hb(T)){var K=(rn(T)+"e").split("e"),te=m(K[0]+"e"+(+K[1]+H));return K=(rn(te)+"e").split("e"),+(K[0]+"e"+(+K[1]-H))}return m(T)}}var kE=ba&&1/Ke(new ba([,-0]))[1]==U?function(o){return new ba(o)}:uf;function Qb(o){return function(m){var T=Pr(m);return T==et?Fe(m):T==un?Ze(m):xn(m,o(m))}}function Io(o,m,T,H,K,te,he,fe){var be=m&x;if(!be&&typeof o!="function")throw new vn(p);var Ee=H?H.length:0;if(Ee||(m&=-97,H=K=e),he=he===e?he:hr(Rt(he),0),fe=fe===e?fe:Rt(fe),Ee-=K?K.length:0,m&O){var Le=H,Pe=K;H=K=e}var Ye=be?e:Hd(o),it=[o,m,T,H,K,Le,Pe,te,he,fe];if(Ye&&FE(it,Ye),o=it[0],m=it[1],T=it[2],H=it[3],K=it[4],fe=it[9]=it[9]===e?be?0:o.length:hr(it[9]-Ee,0),!fe&&m&(M|A)&&(m&=-25),!m||m==b)var mt=wE(o,m,T);else m==M||m==A?mt=xE(o,m,fe):(m==C||m==(b|C))&&!K.length?mt=CE(o,m,T,H):mt=Uc.apply(e,it);var Et=Ye?Lb:u0;return h0(Et(mt,it),o,m)}function e0(o,m,T,H){return o===e||to(o,To[T])&&!nn.call(H,T)?m:o}function t0(o,m,T,H,K,te){return On(o)&&On(m)&&(te.set(m,o),Wc(o,m,e,t0,te),te.delete(m)),o}function _E(o){return xl(o)?e:o}function n0(o,m,T,H,K,te){var he=T&s,fe=o.length,be=m.length;if(fe!=be&&!(he&&be>fe))return!1;var Ee=te.get(o),Le=te.get(m);if(Ee&&Le)return Ee==m&&Le==o;var Pe=-1,Ye=!0,it=T&f?new Os:e;for(te.set(o,m),te.set(m,o);++Pe<fe;){var mt=o[Pe],Et=m[Pe];if(H)var dt=he?H(Et,mt,Pe,m,o,te):H(mt,Et,Pe,o,m,te);if(dt!==e){if(dt)continue;Ye=!1;break}if(it){if(!j(m,function(Ft,Ht){if(!Ct(it,Ht)&&(mt===Ft||K(mt,Ft,T,H,te)))return it.push(Ht)})){Ye=!1;break}}else if(!(mt===Et||K(mt,Et,T,H,te))){Ye=!1;break}}return te.delete(o),te.delete(m),Ye}function AE(o,m,T,H,K,te,he){switch(T){case jn:if(o.byteLength!=m.byteLength||o.byteOffset!=m.byteOffset)return!1;o=o.buffer,m=m.buffer;case Tn:return!(o.byteLength!=m.byteLength||!te(new Mc(o),new Mc(m)));case Me:case Te:case Pt:return to(+o,+m);case qe:return o.name==m.name&&o.message==m.message;case br:case ir:return o==m+"";case et:var fe=Fe;case un:var be=H&s;if(fe||(fe=Ke),o.size!=m.size&&!be)return!1;var Ee=he.get(o);if(Ee)return Ee==m;H|=f,he.set(o,m);var Le=n0(fe(o),fe(m),H,K,te,he);return he.delete(o),Le;case ut:if(dl)return dl.call(o)==dl.call(m)}return!1}function SE(o,m,T,H,K,te){var he=T&s,fe=Bd(o),be=fe.length,Ee=Bd(m),Le=Ee.length;if(be!=Le&&!he)return!1;for(var Pe=be;Pe--;){var Ye=fe[Pe];if(!(he?Ye in m:nn.call(m,Ye)))return!1}var it=te.get(o),mt=te.get(m);if(it&&mt)return it==m&&mt==o;var Et=!0;te.set(o,m),te.set(m,o);for(var dt=he;++Pe<be;){Ye=fe[Pe];var Ft=o[Ye],Ht=m[Ye];if(H)var ki=he?H(Ht,Ft,Ye,m,o,te):H(Ft,Ht,Ye,o,m,te);if(!(ki===e?Ft===Ht||K(Ft,Ht,T,H,te):ki)){Et=!1;break}dt||(dt=Ye=="constructor")}if(Et&&!dt){var Jr=o.constructor,_i=m.constructor;Jr!=_i&&"constructor"in o&&"constructor"in m&&!(typeof Jr=="function"&&Jr instanceof Jr&&typeof _i=="function"&&_i instanceof _i)&&(Et=!1)}return te.delete(o),te.delete(m),Et}function Lo(o){return Yd(l0(o,e,v0),o+"")}function Bd(o){return Cb(o,mr,Vd)}function jd(o){return Cb(o,ui,r0)}var Hd=Oc?function(o){return Oc.get(o)}:uf;function Kc(o){for(var m=o.name+"",T=wa[m],H=nn.call(wa,m)?T.length:0;H--;){var K=T[H],te=K.func;if(te==null||te==o)return K.name}return m}function _a(o){var m=nn.call(ee,"placeholder")?ee:o;return m.placeholder}function gt(){var o=ee.iteratee||lf;return o=o===lf?Ab:o,arguments.length?o(arguments[0],arguments[1]):o}function Yc(o,m){var T=o.__data__;return OE(m)?T[typeof m=="string"?"string":"hash"]:T.map}function Ud(o){for(var m=mr(o),T=m.length;T--;){var H=m[T],K=o[H];m[T]=[H,K,s0(K)]}return m}function Ps(o,m){var T=se(o,m);return _b(T)?T:e}function $E(o){var m=nn.call(o,Is),T=o[Is];try{o[Is]=e;var H=!0}catch{}var K=Sc.call(o);return H&&(m?o[Is]=T:delete o[Is]),K}var Vd=yd?function(o){return o==null?[]:(o=Nt(o),kr(yd(o),function(m){return cb.call(o,m)}))}:hf,r0=yd?function(o){for(var m=[];o;)_(m,Vd(o)),o=Tc(o);return m}:hf,Pr=Kr;(bd&&Pr(new bd(new ArrayBuffer(1)))!=jn||cl&&Pr(new cl)!=et||wd&&Pr(wd.resolve())!=rr||ba&&Pr(new ba)!=un||ul&&Pr(new ul)!=At)&&(Pr=function(o){var m=Kr(o),T=m==_t?o.constructor:e,H=T?Fs(T):"";if(H)switch(H){case cR:return jn;case uR:return et;case hR:return rr;case dR:return un;case fR:return At}return m});function ME(o,m,T){for(var H=-1,K=T.length;++H<K;){var te=T[H],he=te.size;switch(te.type){case"drop":o+=he;break;case"dropRight":m-=he;break;case"take":m=Dr(m,o+he);break;case"takeRight":o=hr(o,m-he);break}}return{start:o,end:m}}function TE(o){var m=o.match(so);return m?m[1].split(ao):[]}function i0(o,m,T){m=Qo(m,o);for(var H=-1,K=m.length,te=!1;++H<K;){var he=eo(m[H]);if(!(te=o!=null&&T(o,he)))break;o=o[he]}return te||++H!=K?te:(K=o==null?0:o.length,!!K&&nu(K)&&Oo(he,K)&&(St(o)||zs(o)))}function RE(o){var m=o.length,T=new o.constructor(m);return m&&typeof o[0]=="string"&&nn.call(o,"index")&&(T.index=o.index,T.input=o.input),T}function o0(o){return typeof o.constructor=="function"&&!bl(o)?xa(Tc(o)):{}}function EE(o,m,T){var H=o.constructor;switch(m){case Tn:return Fd(o);case Me:case Te:return new H(+o);case jn:return pE(o,T);case or:case hn:case Dn:case Rn:case Ut:case Qt:case Rr:case Hr:case wr:return Bb(o,T);case et:return new H;case Pt:case ir:return new H(o);case br:return gE(o);case un:return new H;case ut:return mE(o)}}function IE(o,m){var T=m.length;if(!T)return o;var H=T-1;return m[H]=(T>1?"& ":"")+m[H],m=m.join(T>2?", ":" "),o.replace(ii,`{
|
|
1460
|
-
/* [wrapped with `+m+`] */
|
|
1461
|
-
`)}function LE(o){return St(o)||zs(o)||!!(ub&&o&&o[ub])}function Oo(o,m){var T=typeof o;return m=m??q,!!m&&(T=="number"||T!="symbol"&&Ne.test(o))&&o>-1&&o%1==0&&o<m}function Yr(o,m,T){if(!On(T))return!1;var H=typeof m;return(H=="number"?ci(T)&&Oo(m,T.length):H=="string"&&m in T)?to(T[m],o):!1}function Gd(o,m){if(St(o))return!1;var T=typeof o;return T=="number"||T=="symbol"||T=="boolean"||o==null||Ci(o)?!0:wn.test(o)||!ri.test(o)||m!=null&&o in Nt(m)}function OE(o){var m=typeof o;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?o!=="__proto__":o===null}function qd(o){var m=Kc(o),T=ee[m];if(typeof T!="function"||!(m in Bt.prototype))return!1;if(o===T)return!0;var H=Hd(T);return!!H&&o===H[0]}function NE(o){return!!sb&&sb in o}var DE=_c?No:df;function bl(o){var m=o&&o.constructor,T=typeof m=="function"&&m.prototype||To;return o===T}function s0(o){return o===o&&!On(o)}function a0(o,m){return function(T){return T==null?!1:T[o]===m&&(m!==e||o in Nt(T))}}function PE(o){var m=eu(o,function(H){return T.size===a&&T.clear(),H}),T=m.cache;return m}function FE(o,m){var T=o[1],H=m[1],K=T|H,te=K<(b|x|D),he=H==D&&T==M||H==D&&T==E&&o[7].length<=m[8]||H==(D|E)&&m[7].length<=m[8]&&T==M;if(!(te||he))return o;H&b&&(o[2]=m[2],K|=T&b?0:I);var fe=m[3];if(fe){var be=o[3];o[3]=be?Hb(be,fe,m[4]):fe,o[4]=be?He(o[3],l):m[4]}return fe=m[5],fe&&(be=o[5],o[5]=be?Ub(be,fe,m[6]):fe,o[6]=be?He(o[5],l):m[6]),fe=m[7],fe&&(o[7]=fe),H&D&&(o[8]=o[8]==null?m[8]:Dr(o[8],m[8])),o[9]==null&&(o[9]=m[9]),o[0]=m[0],o[1]=K,o}function zE(o){var m=[];if(o!=null)for(var T in Nt(o))m.push(T);return m}function WE(o){return Sc.call(o)}function l0(o,m,T){return m=hr(m===e?o.length-1:m,0),function(){for(var H=arguments,K=-1,te=hr(H.length-m,0),he=ke(te);++K<te;)he[K]=H[m+K];K=-1;for(var fe=ke(m+1);++K<m;)fe[K]=H[K];return fe[m]=T(he),en(o,this,fe)}}function c0(o,m){return m.length<2?o:Ds(o,zi(m,0,-1))}function BE(o,m){for(var T=o.length,H=Dr(m.length,T),K=li(o);H--;){var te=m[H];o[H]=Oo(te,T)?K[te]:e}return o}function Kd(o,m){if(!(m==="constructor"&&typeof o[m]=="function")&&m!="__proto__")return o[m]}var u0=d0(Lb),wl=nR||function(o,m){return Lt.setTimeout(o,m)},Yd=d0(uE);function h0(o,m,T){var H=m+"";return Yd(o,IE(H,jE(TE(H),T)))}function d0(o){var m=0,T=0;return function(){var H=sR(),K=$-(H-T);if(T=H,K>0){if(++m>=N)return arguments[0]}else m=0;return o.apply(e,arguments)}}function Jc(o,m){var T=-1,H=o.length,K=H-1;for(m=m===e?H:m;++T<m;){var te=Ed(T,K),he=o[te];o[te]=o[T],o[T]=he}return o.length=m,o}var f0=PE(function(o){var m=[];return o.charCodeAt(0)===46&&m.push(""),o.replace(xr,function(T,H,K,te){m.push(K?te.replace(oi,"$1"):H||T)}),m});function eo(o){if(typeof o=="string"||Ci(o))return o;var m=o+"";return m=="0"&&1/o==-U?"-0":m}function Fs(o){if(o!=null){try{return Ac.call(o)}catch{}try{return o+""}catch{}}return""}function jE(o,m){return cr(ae,function(T){var H="_."+T[0];m&T[1]&&!si(o,H)&&o.push(H)}),o.sort()}function p0(o){if(o instanceof Bt)return o.clone();var m=new Pi(o.__wrapped__,o.__chain__);return m.__actions__=li(o.__actions__),m.__index__=o.__index__,m.__values__=o.__values__,m}function HE(o,m,T){(T?Yr(o,m,T):m===e)?m=1:m=hr(Rt(m),0);var H=o==null?0:o.length;if(!H||m<1)return[];for(var K=0,te=0,he=ke(Ic(H/m));K<H;)he[te++]=zi(o,K,K+=m);return he}function UE(o){for(var m=-1,T=o==null?0:o.length,H=0,K=[];++m<T;){var te=o[m];te&&(K[H++]=te)}return K}function VE(){var o=arguments.length;if(!o)return[];for(var m=ke(o-1),T=arguments[0],H=o;H--;)m[H-1]=arguments[H];return _(St(T)?li(T):[T],Sr(m,1))}var GE=Dt(function(o,m){return Un(o)?pl(o,Sr(m,1,Un,!0)):[]}),qE=Dt(function(o,m){var T=Wi(m);return Un(T)&&(T=e),Un(o)?pl(o,Sr(m,1,Un,!0),gt(T,2)):[]}),KE=Dt(function(o,m){var T=Wi(m);return Un(T)&&(T=e),Un(o)?pl(o,Sr(m,1,Un,!0),e,T):[]});function YE(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Rt(m),zi(o,m<0?0:m,H)):[]}function JE(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Rt(m),m=H-m,zi(o,0,m<0?0:m)):[]}function XE(o,m){return o&&o.length?jc(o,gt(m,3),!0,!0):[]}function ZE(o,m){return o&&o.length?jc(o,gt(m,3),!0):[]}function QE(o,m,T,H){var K=o==null?0:o.length;return K?(T&&typeof T!="number"&&Yr(o,m,T)&&(T=0,H=K),VR(o,m,T,H)):[]}function g0(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var K=T==null?0:Rt(T);return K<0&&(K=hr(H+K,0)),ue(o,gt(m,3),K)}function m0(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var K=H-1;return T!==e&&(K=Rt(T),K=T<0?hr(H+K,0):Dr(K,H-1)),ue(o,gt(m,3),K,!0)}function v0(o){var m=o==null?0:o.length;return m?Sr(o,1):[]}function eI(o){var m=o==null?0:o.length;return m?Sr(o,U):[]}function tI(o,m){var T=o==null?0:o.length;return T?(m=m===e?1:Rt(m),Sr(o,m)):[]}function nI(o){for(var m=-1,T=o==null?0:o.length,H={};++m<T;){var K=o[m];mo(H,K[0],K[1])}return H}function y0(o){return o&&o.length?o[0]:e}function rI(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var K=T==null?0:Rt(T);return K<0&&(K=hr(H+K,0)),ye(o,m,K)}function iI(o){var m=o==null?0:o.length;return m?zi(o,0,-1):[]}var oI=Dt(function(o){var m=S(o,Dd);return m.length&&m[0]===o[0]?Sd(m):[]}),sI=Dt(function(o){var m=Wi(o),T=S(o,Dd);return m===Wi(T)?m=e:T.pop(),T.length&&T[0]===o[0]?Sd(T,gt(m,2)):[]}),aI=Dt(function(o){var m=Wi(o),T=S(o,Dd);return m=typeof m=="function"?m:e,m&&T.pop(),T.length&&T[0]===o[0]?Sd(T,e,m):[]});function lI(o,m){return o==null?"":iR.call(o,m)}function Wi(o){var m=o==null?0:o.length;return m?o[m-1]:e}function cI(o,m,T){var H=o==null?0:o.length;if(!H)return-1;var K=H;return T!==e&&(K=Rt(T),K=K<0?hr(H+K,0):Dr(K,H-1)),m===m?Gt(o,m,K):ue(o,ve,K,!0)}function uI(o,m){return o&&o.length?Tb(o,Rt(m)):e}var hI=Dt(b0);function b0(o,m){return o&&o.length&&m&&m.length?Rd(o,m):o}function dI(o,m,T){return o&&o.length&&m&&m.length?Rd(o,m,gt(T,2)):o}function fI(o,m,T){return o&&o.length&&m&&m.length?Rd(o,m,e,T):o}var pI=Lo(function(o,m){var T=o==null?0:o.length,H=Cd(o,m);return Ib(o,S(m,function(K){return Oo(K,T)?+K:K}).sort(jb)),H});function gI(o,m){var T=[];if(!(o&&o.length))return T;var H=-1,K=[],te=o.length;for(m=gt(m,3);++H<te;){var he=o[H];m(he,H,o)&&(T.push(he),K.push(H))}return Ib(o,K),T}function Jd(o){return o==null?o:lR.call(o)}function mI(o,m,T){var H=o==null?0:o.length;return H?(T&&typeof T!="number"&&Yr(o,m,T)?(m=0,T=H):(m=m==null?0:Rt(m),T=T===e?H:Rt(T)),zi(o,m,T)):[]}function vI(o,m){return Bc(o,m)}function yI(o,m,T){return Ld(o,m,gt(T,2))}function bI(o,m){var T=o==null?0:o.length;if(T){var H=Bc(o,m);if(H<T&&to(o[H],m))return H}return-1}function wI(o,m){return Bc(o,m,!0)}function xI(o,m,T){return Ld(o,m,gt(T,2),!0)}function CI(o,m){var T=o==null?0:o.length;if(T){var H=Bc(o,m,!0)-1;if(to(o[H],m))return H}return-1}function kI(o){return o&&o.length?Ob(o):[]}function _I(o,m){return o&&o.length?Ob(o,gt(m,2)):[]}function AI(o){var m=o==null?0:o.length;return m?zi(o,1,m):[]}function SI(o,m,T){return o&&o.length?(m=T||m===e?1:Rt(m),zi(o,0,m<0?0:m)):[]}function $I(o,m,T){var H=o==null?0:o.length;return H?(m=T||m===e?1:Rt(m),m=H-m,zi(o,m<0?0:m,H)):[]}function MI(o,m){return o&&o.length?jc(o,gt(m,3),!1,!0):[]}function TI(o,m){return o&&o.length?jc(o,gt(m,3)):[]}var RI=Dt(function(o){return Zo(Sr(o,1,Un,!0))}),EI=Dt(function(o){var m=Wi(o);return Un(m)&&(m=e),Zo(Sr(o,1,Un,!0),gt(m,2))}),II=Dt(function(o){var m=Wi(o);return m=typeof m=="function"?m:e,Zo(Sr(o,1,Un,!0),e,m)});function LI(o){return o&&o.length?Zo(o):[]}function OI(o,m){return o&&o.length?Zo(o,gt(m,2)):[]}function NI(o,m){return m=typeof m=="function"?m:e,o&&o.length?Zo(o,e,m):[]}function Xd(o){if(!(o&&o.length))return[];var m=0;return o=kr(o,function(T){if(Un(T))return m=hr(T.length,m),!0}),Qe(m,function(T){return S(o,Oe(T))})}function w0(o,m){if(!(o&&o.length))return[];var T=Xd(o);return m==null?T:S(T,function(H){return en(m,e,H)})}var DI=Dt(function(o,m){return Un(o)?pl(o,m):[]}),PI=Dt(function(o){return Nd(kr(o,Un))}),FI=Dt(function(o){var m=Wi(o);return Un(m)&&(m=e),Nd(kr(o,Un),gt(m,2))}),zI=Dt(function(o){var m=Wi(o);return m=typeof m=="function"?m:e,Nd(kr(o,Un),e,m)}),WI=Dt(Xd);function BI(o,m){return Fb(o||[],m||[],fl)}function jI(o,m){return Fb(o||[],m||[],vl)}var HI=Dt(function(o){var m=o.length,T=m>1?o[m-1]:e;return T=typeof T=="function"?(o.pop(),T):e,w0(o,T)});function x0(o){var m=ee(o);return m.__chain__=!0,m}function UI(o,m){return m(o),o}function Xc(o,m){return m(o)}var VI=Lo(function(o){var m=o.length,T=m?o[0]:0,H=this.__wrapped__,K=function(te){return Cd(te,o)};return m>1||this.__actions__.length||!(H instanceof Bt)||!Oo(T)?this.thru(K):(H=H.slice(T,+T+(m?1:0)),H.__actions__.push({func:Xc,args:[K],thisArg:e}),new Pi(H,this.__chain__).thru(function(te){return m&&!te.length&&te.push(e),te}))});function GI(){return x0(this)}function qI(){return new Pi(this.value(),this.__chain__)}function KI(){this.__values__===e&&(this.__values__=N0(this.value()));var o=this.__index__>=this.__values__.length,m=o?e:this.__values__[this.__index__++];return{done:o,value:m}}function YI(){return this}function JI(o){for(var m,T=this;T instanceof Dc;){var H=p0(T);H.__index__=0,H.__values__=e,m?K.__wrapped__=H:m=H;var K=H;T=T.__wrapped__}return K.__wrapped__=o,m}function XI(){var o=this.__wrapped__;if(o instanceof Bt){var m=o;return this.__actions__.length&&(m=new Bt(this)),m=m.reverse(),m.__actions__.push({func:Xc,args:[Jd],thisArg:e}),new Pi(m,this.__chain__)}return this.thru(Jd)}function ZI(){return Pb(this.__wrapped__,this.__actions__)}var QI=Hc(function(o,m,T){nn.call(o,T)?++o[T]:mo(o,T,1)});function eL(o,m,T){var H=St(o)?go:UR;return T&&Yr(o,m,T)&&(m=e),H(o,gt(m,3))}function tL(o,m){var T=St(o)?kr:wb;return T(o,gt(m,3))}var nL=Kb(g0),rL=Kb(m0);function iL(o,m){return Sr(Zc(o,m),1)}function oL(o,m){return Sr(Zc(o,m),U)}function sL(o,m,T){return T=T===e?1:Rt(T),Sr(Zc(o,m),T)}function C0(o,m){var T=St(o)?cr:Xo;return T(o,gt(m,3))}function k0(o,m){var T=St(o)?Nr:bb;return T(o,gt(m,3))}var aL=Hc(function(o,m,T){nn.call(o,T)?o[T].push(m):mo(o,T,[m])});function lL(o,m,T,H){o=ci(o)?o:Sa(o),T=T&&!H?Rt(T):0;var K=o.length;return T<0&&(T=hr(K+T,0)),ru(o)?T<=K&&o.indexOf(m,T)>-1:!!K&&ye(o,m,T)>-1}var cL=Dt(function(o,m,T){var H=-1,K=typeof m=="function",te=ci(o)?ke(o.length):[];return Xo(o,function(he){te[++H]=K?en(m,he,T):gl(he,m,T)}),te}),uL=Hc(function(o,m,T){mo(o,T,m)});function Zc(o,m){var T=St(o)?S:Sb;return T(o,gt(m,3))}function hL(o,m,T,H){return o==null?[]:(St(m)||(m=m==null?[]:[m]),T=H?e:T,St(T)||(T=T==null?[]:[T]),Rb(o,m,T))}var dL=Hc(function(o,m,T){o[T?0:1].push(m)},function(){return[[],[]]});function fL(o,m,T){var H=St(o)?P:Ve,K=arguments.length<3;return H(o,gt(m,4),T,K,Xo)}function pL(o,m,T){var H=St(o)?z:Ve,K=arguments.length<3;return H(o,gt(m,4),T,K,bb)}function gL(o,m){var T=St(o)?kr:wb;return T(o,tu(gt(m,3)))}function mL(o){var m=St(o)?gb:lE;return m(o)}function vL(o,m,T){(T?Yr(o,m,T):m===e)?m=1:m=Rt(m);var H=St(o)?zR:cE;return H(o,m)}function yL(o){var m=St(o)?WR:hE;return m(o)}function bL(o){if(o==null)return 0;if(ci(o))return ru(o)?Ot(o):o.length;var m=Pr(o);return m==et||m==un?o.size:Md(o).length}function wL(o,m,T){var H=St(o)?j:dE;return T&&Yr(o,m,T)&&(m=e),H(o,gt(m,3))}var xL=Dt(function(o,m){if(o==null)return[];var T=m.length;return T>1&&Yr(o,m[0],m[1])?m=[]:T>2&&Yr(m[0],m[1],m[2])&&(m=[m[0]]),Rb(o,Sr(m,1),[])}),Qc=tR||function(){return Lt.Date.now()};function CL(o,m){if(typeof m!="function")throw new vn(p);return o=Rt(o),function(){if(--o<1)return m.apply(this,arguments)}}function _0(o,m,T){return m=T?e:m,m=o&&m==null?o.length:m,Io(o,D,e,e,e,e,m)}function A0(o,m){var T;if(typeof m!="function")throw new vn(p);return o=Rt(o),function(){return--o>0&&(T=m.apply(this,arguments)),o<=1&&(m=e),T}}var Zd=Dt(function(o,m,T){var H=b;if(T.length){var K=He(T,_a(Zd));H|=C}return Io(o,H,m,T,K)}),S0=Dt(function(o,m,T){var H=b|x;if(T.length){var K=He(T,_a(S0));H|=C}return Io(m,H,o,T,K)});function $0(o,m,T){m=T?e:m;var H=Io(o,M,e,e,e,e,e,m);return H.placeholder=$0.placeholder,H}function M0(o,m,T){m=T?e:m;var H=Io(o,A,e,e,e,e,e,m);return H.placeholder=M0.placeholder,H}function T0(o,m,T){var H,K,te,he,fe,be,Ee=0,Le=!1,Pe=!1,Ye=!0;if(typeof o!="function")throw new vn(p);m=Bi(m)||0,On(T)&&(Le=!!T.leading,Pe="maxWait"in T,te=Pe?hr(Bi(T.maxWait)||0,m):te,Ye="trailing"in T?!!T.trailing:Ye);function it(Vn){var no=H,Po=K;return H=K=e,Ee=Vn,he=o.apply(Po,no),he}function mt(Vn){return Ee=Vn,fe=wl(Ft,m),Le?it(Vn):he}function Et(Vn){var no=Vn-be,Po=Vn-Ee,Y0=m-no;return Pe?Dr(Y0,te-Po):Y0}function dt(Vn){var no=Vn-be,Po=Vn-Ee;return be===e||no>=m||no<0||Pe&&Po>=te}function Ft(){var Vn=Qc();if(dt(Vn))return Ht(Vn);fe=wl(Ft,Et(Vn))}function Ht(Vn){return fe=e,Ye&&H?it(Vn):(H=K=e,he)}function ki(){fe!==e&&zb(fe),Ee=0,H=be=K=fe=e}function Jr(){return fe===e?he:Ht(Qc())}function _i(){var Vn=Qc(),no=dt(Vn);if(H=arguments,K=this,be=Vn,no){if(fe===e)return mt(be);if(Pe)return zb(fe),fe=wl(Ft,m),it(be)}return fe===e&&(fe=wl(Ft,m)),he}return _i.cancel=ki,_i.flush=Jr,_i}var kL=Dt(function(o,m){return yb(o,1,m)}),_L=Dt(function(o,m,T){return yb(o,Bi(m)||0,T)});function AL(o){return Io(o,R)}function eu(o,m){if(typeof o!="function"||m!=null&&typeof m!="function")throw new vn(p);var T=function(){var H=arguments,K=m?m.apply(this,H):H[0],te=T.cache;if(te.has(K))return te.get(K);var he=o.apply(this,H);return T.cache=te.set(K,he)||te,he};return T.cache=new(eu.Cache||Eo),T}eu.Cache=Eo;function tu(o){if(typeof o!="function")throw new vn(p);return function(){var m=arguments;switch(m.length){case 0:return!o.call(this);case 1:return!o.call(this,m[0]);case 2:return!o.call(this,m[0],m[1]);case 3:return!o.call(this,m[0],m[1],m[2])}return!o.apply(this,m)}}function SL(o){return A0(2,o)}var $L=fE(function(o,m){m=m.length==1&&St(m[0])?S(m[0],Vt(gt())):S(Sr(m,1),Vt(gt()));var T=m.length;return Dt(function(H){for(var K=-1,te=Dr(H.length,T);++K<te;)H[K]=m[K].call(this,H[K]);return en(o,this,H)})}),Qd=Dt(function(o,m){var T=He(m,_a(Qd));return Io(o,C,e,m,T)}),R0=Dt(function(o,m){var T=He(m,_a(R0));return Io(o,O,e,m,T)}),ML=Lo(function(o,m){return Io(o,E,e,e,e,m)});function TL(o,m){if(typeof o!="function")throw new vn(p);return m=m===e?m:Rt(m),Dt(o,m)}function RL(o,m){if(typeof o!="function")throw new vn(p);return m=m==null?0:hr(Rt(m),0),Dt(function(T){var H=T[m],K=es(T,0,m);return H&&_(K,H),en(o,this,K)})}function EL(o,m,T){var H=!0,K=!0;if(typeof o!="function")throw new vn(p);return On(T)&&(H="leading"in T?!!T.leading:H,K="trailing"in T?!!T.trailing:K),T0(o,m,{leading:H,maxWait:m,trailing:K})}function IL(o){return _0(o,1)}function LL(o,m){return Qd(Pd(m),o)}function OL(){if(!arguments.length)return[];var o=arguments[0];return St(o)?o:[o]}function NL(o){return Fi(o,i)}function DL(o,m){return m=typeof m=="function"?m:e,Fi(o,i,m)}function PL(o){return Fi(o,c|i)}function FL(o,m){return m=typeof m=="function"?m:e,Fi(o,c|i,m)}function zL(o,m){return m==null||vb(o,m,mr(m))}function to(o,m){return o===m||o!==o&&m!==m}var WL=qc(Ad),BL=qc(function(o,m){return o>=m}),zs=kb((function(){return arguments})())?kb:function(o){return zn(o)&&nn.call(o,"callee")&&!cb.call(o,"callee")},St=ke.isArray,jL=Yo?Vt(Yo):JR;function ci(o){return o!=null&&nu(o.length)&&!No(o)}function Un(o){return zn(o)&&ci(o)}function HL(o){return o===!0||o===!1||zn(o)&&Kr(o)==Me}var ts=rR||df,UL=Fn?Vt(Fn):XR;function VL(o){return zn(o)&&o.nodeType===1&&!xl(o)}function GL(o){if(o==null)return!0;if(ci(o)&&(St(o)||typeof o=="string"||typeof o.splice=="function"||ts(o)||Aa(o)||zs(o)))return!o.length;var m=Pr(o);if(m==et||m==un)return!o.size;if(bl(o))return!Md(o).length;for(var T in o)if(nn.call(o,T))return!1;return!0}function qL(o,m){return ml(o,m)}function KL(o,m,T){T=typeof T=="function"?T:e;var H=T?T(o,m):e;return H===e?ml(o,m,e,T):!!H}function ef(o){if(!zn(o))return!1;var m=Kr(o);return m==qe||m==Xe||typeof o.message=="string"&&typeof o.name=="string"&&!xl(o)}function YL(o){return typeof o=="number"&&hb(o)}function No(o){if(!On(o))return!1;var m=Kr(o);return m==rt||m==st||m==$e||m==kn}function E0(o){return typeof o=="number"&&o==Rt(o)}function nu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=q}function On(o){var m=typeof o;return o!=null&&(m=="object"||m=="function")}function zn(o){return o!=null&&typeof o=="object"}var I0=bi?Vt(bi):QR;function JL(o,m){return o===m||$d(o,m,Ud(m))}function XL(o,m,T){return T=typeof T=="function"?T:e,$d(o,m,Ud(m),T)}function ZL(o){return L0(o)&&o!=+o}function QL(o){if(DE(o))throw new ct(g);return _b(o)}function eO(o){return o===null}function tO(o){return o==null}function L0(o){return typeof o=="number"||zn(o)&&Kr(o)==Pt}function xl(o){if(!zn(o)||Kr(o)!=_t)return!1;var m=Tc(o);if(m===null)return!0;var T=nn.call(m,"constructor")&&m.constructor;return typeof T=="function"&&T instanceof T&&Ac.call(T)==XT}var tf=wi?Vt(wi):eE;function nO(o){return E0(o)&&o>=-q&&o<=q}var O0=Ni?Vt(Ni):tE;function ru(o){return typeof o=="string"||!St(o)&&zn(o)&&Kr(o)==ir}function Ci(o){return typeof o=="symbol"||zn(o)&&Kr(o)==ut}var Aa=Es?Vt(Es):nE;function rO(o){return o===e}function iO(o){return zn(o)&&Pr(o)==At}function oO(o){return zn(o)&&Kr(o)==Kt}var sO=qc(Td),aO=qc(function(o,m){return o<=m});function N0(o){if(!o)return[];if(ci(o))return ru(o)?vt(o):li(o);if(ll&&o[ll])return Re(o[ll]());var m=Pr(o),T=m==et?Fe:m==un?Ke:Sa;return T(o)}function Do(o){if(!o)return o===0?o:0;if(o=Bi(o),o===U||o===-U){var m=o<0?-1:1;return m*Z}return o===o?o:0}function Rt(o){var m=Do(o),T=m%1;return m===m?T?m-T:m:0}function D0(o){return o?Ns(Rt(o),0,le):0}function Bi(o){if(typeof o=="number")return o;if(Ci(o))return Q;if(On(o)){var m=typeof o.valueOf=="function"?o.valueOf():o;o=On(m)?m+"":m}if(typeof o!="string")return o===0?o:+o;o=xt(o);var T=sr.test(o);return T||oe.test(o)?bt(o.slice(2),T?2:8):_o.test(o)?Q:+o}function P0(o){return yo(o,ui(o))}function lO(o){return o?Ns(Rt(o),-q,q):o===0?o:0}function rn(o){return o==null?"":xi(o)}var cO=Ca(function(o,m){if(bl(m)||ci(m)){yo(m,mr(m),o);return}for(var T in m)nn.call(m,T)&&fl(o,T,m[T])}),F0=Ca(function(o,m){yo(m,ui(m),o)}),z0=Ca(function(o,m,T,H){yo(m,ui(m),o,H)}),nf=Ca(function(o,m,T,H){yo(m,mr(m),o,H)}),uO=Lo(Cd);function hO(o,m){var T=xa(o);return m==null?T:mb(T,m)}var dO=Dt(function(o,m){o=Nt(o);var T=-1,H=m.length,K=H>2?m[2]:e;for(K&&Yr(m[0],m[1],K)&&(H=1);++T<H;)for(var te=m[T],he=ui(te),fe=-1,be=he.length;++fe<be;){var Ee=he[fe],Le=o[Ee];(Le===e||to(Le,To[Ee])&&!nn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),fO=Dt(function(o){return o.push(e,t0),en(W0,e,o)});function pO(o,m){return re(o,gt(m,3),vo)}function gO(o,m){return re(o,gt(m,3),_d)}function mO(o,m){return o==null?o:kd(o,gt(m,3),ui)}function vO(o,m){return o==null?o:xb(o,gt(m,3),ui)}function yO(o,m){return o&&vo(o,gt(m,3))}function bO(o,m){return o&&_d(o,gt(m,3))}function wO(o){return o==null?[]:zc(o,mr(o))}function xO(o){return o==null?[]:zc(o,ui(o))}function rf(o,m,T){var H=o==null?e:Ds(o,m);return H===e?T:H}function CO(o,m){return o!=null&&i0(o,m,GR)}function of(o,m){return o!=null&&i0(o,m,qR)}var kO=Jb(function(o,m,T){m!=null&&typeof m.toString!="function"&&(m=Sc.call(m)),o[m]=T},af(hi)),_O=Jb(function(o,m,T){m!=null&&typeof m.toString!="function"&&(m=Sc.call(m)),nn.call(o,m)?o[m].push(T):o[m]=[T]},gt),AO=Dt(gl);function mr(o){return ci(o)?pb(o):Md(o)}function ui(o){return ci(o)?pb(o,!0):rE(o)}function SO(o,m){var T={};return m=gt(m,3),vo(o,function(H,K,te){mo(T,m(H,K,te),H)}),T}function $O(o,m){var T={};return m=gt(m,3),vo(o,function(H,K,te){mo(T,K,m(H,K,te))}),T}var MO=Ca(function(o,m,T){Wc(o,m,T)}),W0=Ca(function(o,m,T,H){Wc(o,m,T,H)}),TO=Lo(function(o,m){var T={};if(o==null)return T;var H=!1;m=S(m,function(te){return te=Qo(te,o),H||(H=te.length>1),te}),yo(o,jd(o),T),H&&(T=Fi(T,c|u|i,_E));for(var K=m.length;K--;)Od(T,m[K]);return T});function RO(o,m){return B0(o,tu(gt(m)))}var EO=Lo(function(o,m){return o==null?{}:oE(o,m)});function B0(o,m){if(o==null)return{};var T=S(jd(o),function(H){return[H]});return m=gt(m),Eb(o,T,function(H,K){return m(H,K[0])})}function IO(o,m,T){m=Qo(m,o);var H=-1,K=m.length;for(K||(K=1,o=e);++H<K;){var te=o==null?e:o[eo(m[H])];te===e&&(H=K,te=T),o=No(te)?te.call(o):te}return o}function LO(o,m,T){return o==null?o:vl(o,m,T)}function OO(o,m,T,H){return H=typeof H=="function"?H:e,o==null?o:vl(o,m,T,H)}var j0=Qb(mr),H0=Qb(ui);function NO(o,m,T){var H=St(o),K=H||ts(o)||Aa(o);if(m=gt(m,4),T==null){var te=o&&o.constructor;K?T=H?new te:[]:On(o)?T=No(te)?xa(Tc(o)):{}:T={}}return(K?cr:vo)(o,function(he,fe,be){return m(T,he,fe,be)}),T}function DO(o,m){return o==null?!0:Od(o,m)}function PO(o,m,T){return o==null?o:Db(o,m,Pd(T))}function FO(o,m,T,H){return H=typeof H=="function"?H:e,o==null?o:Db(o,m,Pd(T),H)}function Sa(o){return o==null?[]:Mt(o,mr(o))}function zO(o){return o==null?[]:Mt(o,ui(o))}function WO(o,m,T){return T===e&&(T=m,m=e),T!==e&&(T=Bi(T),T=T===T?T:0),m!==e&&(m=Bi(m),m=m===m?m:0),Ns(Bi(o),m,T)}function BO(o,m,T){return m=Do(m),T===e?(T=m,m=0):T=Do(T),o=Bi(o),KR(o,m,T)}function jO(o,m,T){if(T&&typeof T!="boolean"&&Yr(o,m,T)&&(m=T=e),T===e&&(typeof m=="boolean"?(T=m,m=e):typeof o=="boolean"&&(T=o,o=e)),o===e&&m===e?(o=0,m=1):(o=Do(o),m===e?(m=o,o=0):m=Do(m)),o>m){var H=o;o=m,m=H}if(T||o%1||m%1){var K=db();return Dr(o+K*(m-o+mn("1e-"+((K+"").length-1))),m)}return Ed(o,m)}var HO=ka(function(o,m,T){return m=m.toLowerCase(),o+(T?U0(m):m)});function U0(o){return sf(rn(o).toLowerCase())}function V0(o){return o=rn(o),o&&o.replace(Be,V).replace(Xi,"")}function UO(o,m,T){o=rn(o),m=xi(m);var H=o.length;T=T===e?H:Ns(Rt(T),0,H);var K=T;return T-=m.length,T>=0&&o.slice(T,K)==m}function VO(o){return o=rn(o),o&&Vr.test(o)?o.replace(Ur,J):o}function GO(o){return o=rn(o),o&&En.test(o)?o.replace(Er,"\\$&"):o}var qO=ka(function(o,m,T){return o+(T?"-":"")+m.toLowerCase()}),KO=ka(function(o,m,T){return o+(T?" ":"")+m.toLowerCase()}),YO=qb("toLowerCase");function JO(o,m,T){o=rn(o),m=Rt(m);var H=m?Ot(o):0;if(!m||H>=m)return o;var K=(m-H)/2;return Gc(Lc(K),T)+o+Gc(Ic(K),T)}function XO(o,m,T){o=rn(o),m=Rt(m);var H=m?Ot(o):0;return m&&H<m?o+Gc(m-H,T):o}function ZO(o,m,T){o=rn(o),m=Rt(m);var H=m?Ot(o):0;return m&&H<m?Gc(m-H,T)+o:o}function QO(o,m,T){return T||m==null?m=0:m&&(m=+m),aR(rn(o).replace(gn,""),m||0)}function eN(o,m,T){return(T?Yr(o,m,T):m===e)?m=1:m=Rt(m),Id(rn(o),m)}function tN(){var o=arguments,m=rn(o[0]);return o.length<3?m:m.replace(o[1],o[2])}var nN=ka(function(o,m,T){return o+(T?"_":"")+m.toLowerCase()});function rN(o,m,T){return T&&typeof T!="number"&&Yr(o,m,T)&&(m=T=e),T=T===e?le:T>>>0,T?(o=rn(o),o&&(typeof m=="string"||m!=null&&!tf(m))&&(m=xi(m),!m&&pe(o))?es(vt(o),0,T):o.split(m,T)):[]}var iN=ka(function(o,m,T){return o+(T?" ":"")+sf(m)});function oN(o,m,T){return o=rn(o),T=T==null?0:Ns(Rt(T),0,o.length),m=xi(m),o.slice(T,T+m.length)==m}function sN(o,m,T){var H=ee.templateSettings;T&&Yr(o,m,T)&&(m=e),o=rn(o),m=nf({},m,H,e0);var K=nf({},m.imports,H.imports,e0),te=mr(K),he=Mt(K,te);cr(te,function(dt){if(Ir.test(dt))throw new ct(h)});var fe,be,Ee=0,Le=m.interpolate||yt,Pe="__p += '",Ye=ai((m.escape||yt).source+"|"+Le.source+"|"+(Le===Co?Gr:yt).source+"|"+(m.evaluate||yt).source+"|$","g"),it="//# sourceURL="+(nn.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rs+"]")+`
|
|
1462
|
-
`;o.replace(Ye,function(dt,Ft,Ht,ki,Jr,_i){return Ht||(Ht=ki),Pe+=o.slice(Ee,_i).replace(dn,ie),Ft&&(fe=!0,Pe+=`' +
|
|
1463
|
-
__e(`+Ft+`) +
|
|
1464
|
-
'`),Jr&&(be=!0,Pe+=`';
|
|
1465
|
-
`+Jr+`;
|
|
1466
|
-
__p += '`),Ht&&(Pe+=`' +
|
|
1467
|
-
((__t = (`+Ht+`)) == null ? '' : __t) +
|
|
1468
|
-
'`),Ee=_i+dt.length,dt}),Pe+=`';
|
|
1469
|
-
`;var mt=nn.call(m,"variable")&&m.variable;if(!mt)Pe=`with (obj) {
|
|
1470
|
-
`+Pe+`
|
|
1471
|
-
}
|
|
1472
|
-
`;else if(Ir.test(mt))throw new ct(w);Pe=(be?Pe.replace(gi,""):Pe).replace(mi,"$1").replace(Jn,"$1;"),Pe="function("+(mt||"obj")+`) {
|
|
1473
|
-
`+(mt?"":`obj || (obj = {});
|
|
1474
|
-
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(be?`, __j = Array.prototype.join;
|
|
1475
|
-
function print() { __p += __j.call(arguments, '') }
|
|
1476
|
-
`:`;
|
|
1477
|
-
`)+Pe+`return __p
|
|
1478
|
-
}`;var Et=q0(function(){return kt(te,it+"return "+Pe).apply(e,he)});if(Et.source=Pe,ef(Et))throw Et;return Et}function aN(o){return rn(o).toLowerCase()}function lN(o){return rn(o).toUpperCase()}function cN(o,m,T){if(o=rn(o),o&&(T||m===e))return xt(o);if(!o||!(m=xi(m)))return o;var H=vt(o),K=vt(m),te=Zn(H,K),he=ur(H,K)+1;return es(H,te,he).join("")}function uN(o,m,T){if(o=rn(o),o&&(T||m===e))return o.slice(0,ht(o)+1);if(!o||!(m=xi(m)))return o;var H=vt(o),K=ur(H,vt(m))+1;return es(H,0,K).join("")}function hN(o,m,T){if(o=rn(o),o&&(T||m===e))return o.replace(gn,"");if(!o||!(m=xi(m)))return o;var H=vt(o),K=Zn(H,vt(m));return es(H,K).join("")}function dN(o,m){var T=B,H=F;if(On(m)){var K="separator"in m?m.separator:K;T="length"in m?Rt(m.length):T,H="omission"in m?xi(m.omission):H}o=rn(o);var te=o.length;if(pe(o)){var he=vt(o);te=he.length}if(T>=te)return o;var fe=T-Ot(H);if(fe<1)return H;var be=he?es(he,0,fe).join(""):o.slice(0,fe);if(K===e)return be+H;if(he&&(fe+=be.length-fe),tf(K)){if(o.slice(fe).search(K)){var Ee,Le=be;for(K.global||(K=ai(K.source,rn(It.exec(K))+"g")),K.lastIndex=0;Ee=K.exec(Le);)var Pe=Ee.index;be=be.slice(0,Pe===e?fe:Pe)}}else if(o.indexOf(xi(K),fe)!=fe){var Ye=be.lastIndexOf(K);Ye>-1&&(be=be.slice(0,Ye))}return be+H}function fN(o){return o=rn(o),o&&ws.test(o)?o.replace(Ki,ot):o}var pN=ka(function(o,m,T){return o+(T?" ":"")+m.toUpperCase()}),sf=qb("toUpperCase");function G0(o,m,T){return o=rn(o),m=T?e:m,m===e?xe(o)?Qn(o):X(o):o.match(m)||[]}var q0=Dt(function(o,m){try{return en(o,e,m)}catch(T){return ef(T)?T:new ct(T)}}),gN=Lo(function(o,m){return cr(m,function(T){T=eo(T),mo(o,T,Zd(o[T],o))}),o});function mN(o){var m=o==null?0:o.length,T=gt();return o=m?S(o,function(H){if(typeof H[1]!="function")throw new vn(p);return[T(H[0]),H[1]]}):[],Dt(function(H){for(var K=-1;++K<m;){var te=o[K];if(en(te[0],this,H))return en(te[1],this,H)}})}function vN(o){return HR(Fi(o,c))}function af(o){return function(){return o}}function yN(o,m){return o==null||o!==o?m:o}var bN=Yb(),wN=Yb(!0);function hi(o){return o}function lf(o){return Ab(typeof o=="function"?o:Fi(o,c))}function xN(o){return $b(Fi(o,c))}function CN(o,m){return Mb(o,Fi(m,c))}var kN=Dt(function(o,m){return function(T){return gl(T,o,m)}}),_N=Dt(function(o,m){return function(T){return gl(o,T,m)}});function cf(o,m,T){var H=mr(m),K=zc(m,H);T==null&&!(On(m)&&(K.length||!H.length))&&(T=m,m=o,o=this,K=zc(m,mr(m)));var te=!(On(T)&&"chain"in T)||!!T.chain,he=No(o);return cr(K,function(fe){var be=m[fe];o[fe]=be,he&&(o.prototype[fe]=function(){var Ee=this.__chain__;if(te||Ee){var Le=o(this.__wrapped__),Pe=Le.__actions__=li(this.__actions__);return Pe.push({func:be,args:arguments,thisArg:o}),Le.__chain__=Ee,Le}return be.apply(o,_([this.value()],arguments))})}),o}function AN(){return Lt._===this&&(Lt._=ZT),this}function uf(){}function SN(o){return o=Rt(o),Dt(function(m){return Tb(m,o)})}var $N=zd(S),MN=zd(go),TN=zd(j);function K0(o){return Gd(o)?Oe(eo(o)):sE(o)}function RN(o){return function(m){return o==null?e:Ds(o,m)}}var EN=Xb(),IN=Xb(!0);function hf(){return[]}function df(){return!1}function LN(){return{}}function ON(){return""}function NN(){return!0}function DN(o,m){if(o=Rt(o),o<1||o>q)return[];var T=le,H=Dr(o,le);m=gt(m),o-=le;for(var K=Qe(H,m);++T<o;)m(T);return K}function PN(o){return St(o)?S(o,eo):Ci(o)?[o]:li(f0(rn(o)))}function FN(o){var m=++JT;return rn(o)+m}var zN=Vc(function(o,m){return o+m},0),WN=Wd("ceil"),BN=Vc(function(o,m){return o/m},1),jN=Wd("floor");function HN(o){return o&&o.length?Fc(o,hi,Ad):e}function UN(o,m){return o&&o.length?Fc(o,gt(m,2),Ad):e}function VN(o){return we(o,hi)}function GN(o,m){return we(o,gt(m,2))}function qN(o){return o&&o.length?Fc(o,hi,Td):e}function KN(o,m){return o&&o.length?Fc(o,gt(m,2),Td):e}var YN=Vc(function(o,m){return o*m},1),JN=Wd("round"),XN=Vc(function(o,m){return o-m},0);function ZN(o){return o&&o.length?Je(o,hi):0}function QN(o,m){return o&&o.length?Je(o,gt(m,2)):0}return ee.after=CL,ee.ary=_0,ee.assign=cO,ee.assignIn=F0,ee.assignInWith=z0,ee.assignWith=nf,ee.at=uO,ee.before=A0,ee.bind=Zd,ee.bindAll=gN,ee.bindKey=S0,ee.castArray=OL,ee.chain=x0,ee.chunk=HE,ee.compact=UE,ee.concat=VE,ee.cond=mN,ee.conforms=vN,ee.constant=af,ee.countBy=QI,ee.create=hO,ee.curry=$0,ee.curryRight=M0,ee.debounce=T0,ee.defaults=dO,ee.defaultsDeep=fO,ee.defer=kL,ee.delay=_L,ee.difference=GE,ee.differenceBy=qE,ee.differenceWith=KE,ee.drop=YE,ee.dropRight=JE,ee.dropRightWhile=XE,ee.dropWhile=ZE,ee.fill=QE,ee.filter=tL,ee.flatMap=iL,ee.flatMapDeep=oL,ee.flatMapDepth=sL,ee.flatten=v0,ee.flattenDeep=eI,ee.flattenDepth=tI,ee.flip=AL,ee.flow=bN,ee.flowRight=wN,ee.fromPairs=nI,ee.functions=wO,ee.functionsIn=xO,ee.groupBy=aL,ee.initial=iI,ee.intersection=oI,ee.intersectionBy=sI,ee.intersectionWith=aI,ee.invert=kO,ee.invertBy=_O,ee.invokeMap=cL,ee.iteratee=lf,ee.keyBy=uL,ee.keys=mr,ee.keysIn=ui,ee.map=Zc,ee.mapKeys=SO,ee.mapValues=$O,ee.matches=xN,ee.matchesProperty=CN,ee.memoize=eu,ee.merge=MO,ee.mergeWith=W0,ee.method=kN,ee.methodOf=_N,ee.mixin=cf,ee.negate=tu,ee.nthArg=SN,ee.omit=TO,ee.omitBy=RO,ee.once=SL,ee.orderBy=hL,ee.over=$N,ee.overArgs=$L,ee.overEvery=MN,ee.overSome=TN,ee.partial=Qd,ee.partialRight=R0,ee.partition=dL,ee.pick=EO,ee.pickBy=B0,ee.property=K0,ee.propertyOf=RN,ee.pull=hI,ee.pullAll=b0,ee.pullAllBy=dI,ee.pullAllWith=fI,ee.pullAt=pI,ee.range=EN,ee.rangeRight=IN,ee.rearg=ML,ee.reject=gL,ee.remove=gI,ee.rest=TL,ee.reverse=Jd,ee.sampleSize=vL,ee.set=LO,ee.setWith=OO,ee.shuffle=yL,ee.slice=mI,ee.sortBy=xL,ee.sortedUniq=kI,ee.sortedUniqBy=_I,ee.split=rN,ee.spread=RL,ee.tail=AI,ee.take=SI,ee.takeRight=$I,ee.takeRightWhile=MI,ee.takeWhile=TI,ee.tap=UI,ee.throttle=EL,ee.thru=Xc,ee.toArray=N0,ee.toPairs=j0,ee.toPairsIn=H0,ee.toPath=PN,ee.toPlainObject=P0,ee.transform=NO,ee.unary=IL,ee.union=RI,ee.unionBy=EI,ee.unionWith=II,ee.uniq=LI,ee.uniqBy=OI,ee.uniqWith=NI,ee.unset=DO,ee.unzip=Xd,ee.unzipWith=w0,ee.update=PO,ee.updateWith=FO,ee.values=Sa,ee.valuesIn=zO,ee.without=DI,ee.words=G0,ee.wrap=LL,ee.xor=PI,ee.xorBy=FI,ee.xorWith=zI,ee.zip=WI,ee.zipObject=BI,ee.zipObjectDeep=jI,ee.zipWith=HI,ee.entries=j0,ee.entriesIn=H0,ee.extend=F0,ee.extendWith=z0,cf(ee,ee),ee.add=zN,ee.attempt=q0,ee.camelCase=HO,ee.capitalize=U0,ee.ceil=WN,ee.clamp=WO,ee.clone=NL,ee.cloneDeep=PL,ee.cloneDeepWith=FL,ee.cloneWith=DL,ee.conformsTo=zL,ee.deburr=V0,ee.defaultTo=yN,ee.divide=BN,ee.endsWith=UO,ee.eq=to,ee.escape=VO,ee.escapeRegExp=GO,ee.every=eL,ee.find=nL,ee.findIndex=g0,ee.findKey=pO,ee.findLast=rL,ee.findLastIndex=m0,ee.findLastKey=gO,ee.floor=jN,ee.forEach=C0,ee.forEachRight=k0,ee.forIn=mO,ee.forInRight=vO,ee.forOwn=yO,ee.forOwnRight=bO,ee.get=rf,ee.gt=WL,ee.gte=BL,ee.has=CO,ee.hasIn=of,ee.head=y0,ee.identity=hi,ee.includes=lL,ee.indexOf=rI,ee.inRange=BO,ee.invoke=AO,ee.isArguments=zs,ee.isArray=St,ee.isArrayBuffer=jL,ee.isArrayLike=ci,ee.isArrayLikeObject=Un,ee.isBoolean=HL,ee.isBuffer=ts,ee.isDate=UL,ee.isElement=VL,ee.isEmpty=GL,ee.isEqual=qL,ee.isEqualWith=KL,ee.isError=ef,ee.isFinite=YL,ee.isFunction=No,ee.isInteger=E0,ee.isLength=nu,ee.isMap=I0,ee.isMatch=JL,ee.isMatchWith=XL,ee.isNaN=ZL,ee.isNative=QL,ee.isNil=tO,ee.isNull=eO,ee.isNumber=L0,ee.isObject=On,ee.isObjectLike=zn,ee.isPlainObject=xl,ee.isRegExp=tf,ee.isSafeInteger=nO,ee.isSet=O0,ee.isString=ru,ee.isSymbol=Ci,ee.isTypedArray=Aa,ee.isUndefined=rO,ee.isWeakMap=iO,ee.isWeakSet=oO,ee.join=lI,ee.kebabCase=qO,ee.last=Wi,ee.lastIndexOf=cI,ee.lowerCase=KO,ee.lowerFirst=YO,ee.lt=sO,ee.lte=aO,ee.max=HN,ee.maxBy=UN,ee.mean=VN,ee.meanBy=GN,ee.min=qN,ee.minBy=KN,ee.stubArray=hf,ee.stubFalse=df,ee.stubObject=LN,ee.stubString=ON,ee.stubTrue=NN,ee.multiply=YN,ee.nth=uI,ee.noConflict=AN,ee.noop=uf,ee.now=Qc,ee.pad=JO,ee.padEnd=XO,ee.padStart=ZO,ee.parseInt=QO,ee.random=jO,ee.reduce=fL,ee.reduceRight=pL,ee.repeat=eN,ee.replace=tN,ee.result=IO,ee.round=JN,ee.runInContext=ge,ee.sample=mL,ee.size=bL,ee.snakeCase=nN,ee.some=wL,ee.sortedIndex=vI,ee.sortedIndexBy=yI,ee.sortedIndexOf=bI,ee.sortedLastIndex=wI,ee.sortedLastIndexBy=xI,ee.sortedLastIndexOf=CI,ee.startCase=iN,ee.startsWith=oN,ee.subtract=XN,ee.sum=ZN,ee.sumBy=QN,ee.template=sN,ee.times=DN,ee.toFinite=Do,ee.toInteger=Rt,ee.toLength=D0,ee.toLower=aN,ee.toNumber=Bi,ee.toSafeInteger=lO,ee.toString=rn,ee.toUpper=lN,ee.trim=cN,ee.trimEnd=uN,ee.trimStart=hN,ee.truncate=dN,ee.unescape=fN,ee.uniqueId=FN,ee.upperCase=pN,ee.upperFirst=sf,ee.each=C0,ee.eachRight=k0,ee.first=y0,cf(ee,(function(){var o={};return vo(ee,function(m,T){nn.call(ee.prototype,T)||(o[T]=m)}),o})(),{chain:!1}),ee.VERSION=r,cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),cr(["drop","take"],function(o,m){Bt.prototype[o]=function(T){T=T===e?1:hr(Rt(T),0);var H=this.__filtered__&&!m?new Bt(this):this.clone();return H.__filtered__?H.__takeCount__=Dr(T,H.__takeCount__):H.__views__.push({size:Dr(T,le),type:o+(H.__dir__<0?"Right":"")}),H},Bt.prototype[o+"Right"]=function(T){return this.reverse()[o](T).reverse()}}),cr(["filter","map","takeWhile"],function(o,m){var T=m+1,H=T==k||T==W;Bt.prototype[o]=function(K){var te=this.clone();return te.__iteratees__.push({iteratee:gt(K,3),type:T}),te.__filtered__=te.__filtered__||H,te}}),cr(["head","last"],function(o,m){var T="take"+(m?"Right":"");Bt.prototype[o]=function(){return this[T](1).value()[0]}}),cr(["initial","tail"],function(o,m){var T="drop"+(m?"":"Right");Bt.prototype[o]=function(){return this.__filtered__?new Bt(this):this[T](1)}}),Bt.prototype.compact=function(){return this.filter(hi)},Bt.prototype.find=function(o){return this.filter(o).head()},Bt.prototype.findLast=function(o){return this.reverse().find(o)},Bt.prototype.invokeMap=Dt(function(o,m){return typeof o=="function"?new Bt(this):this.map(function(T){return gl(T,o,m)})}),Bt.prototype.reject=function(o){return this.filter(tu(gt(o)))},Bt.prototype.slice=function(o,m){o=Rt(o);var T=this;return T.__filtered__&&(o>0||m<0)?new Bt(T):(o<0?T=T.takeRight(-o):o&&(T=T.drop(o)),m!==e&&(m=Rt(m),T=m<0?T.dropRight(-m):T.take(m-o)),T)},Bt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Bt.prototype.toArray=function(){return this.take(le)},vo(Bt.prototype,function(o,m){var T=/^(?:filter|find|map|reject)|While$/.test(m),H=/^(?:head|last)$/.test(m),K=ee[H?"take"+(m=="last"?"Right":""):m],te=H||/^find/.test(m);K&&(ee.prototype[m]=function(){var he=this.__wrapped__,fe=H?[1]:arguments,be=he instanceof Bt,Ee=fe[0],Le=be||St(he),Pe=function(Ft){var Ht=K.apply(ee,_([Ft],fe));return H&&Ye?Ht[0]:Ht};Le&&T&&typeof Ee=="function"&&Ee.length!=1&&(be=Le=!1);var Ye=this.__chain__,it=!!this.__actions__.length,mt=te&&!Ye,Et=be&&!it;if(!te&&Le){he=Et?he:new Bt(this);var dt=o.apply(he,fe);return dt.__actions__.push({func:Xc,args:[Pe],thisArg:e}),new Pi(dt,Ye)}return mt&&Et?o.apply(this,fe):(dt=this.thru(Pe),mt?H?dt.value()[0]:dt.value():dt)})}),cr(["pop","push","shift","sort","splice","unshift"],function(o){var m=Di[o],T=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",H=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var K=arguments;if(H&&!this.__chain__){var te=this.value();return m.apply(St(te)?te:[],K)}return this[T](function(he){return m.apply(St(he)?he:[],K)})}}),vo(Bt.prototype,function(o,m){var T=ee[m];if(T){var H=T.name+"";nn.call(wa,H)||(wa[H]=[]),wa[H].push({name:m,func:T})}}),wa[Uc(e,x).name]=[{name:"wrapper",func:e}],Bt.prototype.clone=pR,Bt.prototype.reverse=gR,Bt.prototype.value=mR,ee.prototype.at=VI,ee.prototype.chain=GI,ee.prototype.commit=qI,ee.prototype.next=KI,ee.prototype.plant=JI,ee.prototype.reverse=XI,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=ZI,ee.prototype.first=ee.prototype.head,ll&&(ee.prototype[ll]=YI),ee}),an=tn();Xn?((Xn.exports=an)._=an,Or._=an):Lt._=an}).call(kk)})(Bl,Bl.exports)),Bl.exports}var Ak=_k();Gn("k",Wl(Ak)).debounce(function(){this.rebuildDisplayText()},300);var kg={exports:{}},_g;function Sk(){return _g||(_g=1,(function(t,n){(function(){ace.require(["ace/mode/text"],function(e){t&&(t.exports=e)})})()})(kg)),kg.exports}Sk();const $k=!0,er="u-",Mk="uplot",Tk=er+"hz",Rk=er+"vt",Ek=er+"title",Ik=er+"wrap",Lk=er+"under",Ok=er+"over",Nk=er+"axis",hs=er+"off",Dk=er+"select",Pk=er+"cursor-x",Fk=er+"cursor-y",zk=er+"cursor-pt",Wk=er+"legend",Bk=er+"live",jk=er+"inline",Hk=er+"series",Uk=er+"marker",Ag=er+"label",Vk=er+"value",Ba="width",ja="height",Ha="top",Sg="bottom",Ys="left",Iu="right",Lu="#000",$g=Lu+"0",Ou="mousemove",Mg="mousedown",Nu="mouseup",Tg="mouseenter",Rg="mouseleave",Eg="dblclick",Gk="resize",qk="scroll",Ig="change",jl="dppxchange",Du="--",Js=typeof window<"u",Pu=Js?document:null,Xs=Js?window:null,Kk=Js?navigator:null;let Jt,Hl;function Fu(){let t=devicePixelRatio;Jt!=t&&(Jt=t,Hl&&Bu(Ig,Hl,Fu),Hl=matchMedia(`(min-resolution: ${Jt-.001}dppx) and (max-resolution: ${Jt+.001}dppx)`),ds(Ig,Hl,Fu),Xs.dispatchEvent(new CustomEvent(jl)))}function di(t,n){if(n!=null){let e=t.classList;!e.contains(n)&&e.add(n)}}function zu(t,n){let e=t.classList;e.contains(n)&&e.remove(n)}function yn(t,n,e){t.style[n]=e+"px"}function Ui(t,n,e,r){let v=Pu.createElement(t);return n!=null&&di(v,n),e?.insertBefore(v,r),v}function Mi(t,n){return Ui("div",t,n)}const Lg=new WeakMap;function oo(t,n,e,r,v){let g="translate("+n+"px,"+e+"px)",p=Lg.get(t);g!=p&&(t.style.transform=g,Lg.set(t,g),n<0||e<0||n>r||e>v?di(t,hs):zu(t,hs))}const Og=new WeakMap;function Ng(t,n,e){let r=n+e,v=Og.get(t);r!=v&&(Og.set(t,r),t.style.background=n,t.style.borderColor=e)}const Dg=new WeakMap;function Pg(t,n,e,r){let v=n+""+e,g=Dg.get(t);v!=g&&(Dg.set(t,v),t.style.height=e+"px",t.style.width=n+"px",t.style.marginLeft=r?-n/2+"px":0,t.style.marginTop=r?-e/2+"px":0)}const Wu={passive:!0},Yk={...Wu,capture:!0};function ds(t,n,e,r){n.addEventListener(t,e,r?Yk:Wu)}function Bu(t,n,e,r){n.removeEventListener(t,e,Wu)}Js&&Fu();function Vi(t,n,e,r){let v;e=e||0,r=r||n.length-1;let g=r<=2147483647;for(;r-e>1;)v=g?e+r>>1:pi((e+r)/2),n[v]<t?e=v:r=v;return t-n[e]<=n[r]-t?e:r}function Fg(t){return(n,e,r)=>{let v=-1,g=-1;for(let p=e;p<=r;p++)if(t(n[p])){v=p;break}for(let p=r;p>=e;p--)if(t(n[p])){g=p;break}return[v,g]}}const zg=t=>t!=null,Wg=t=>t!=null&&t>0,Ul=Fg(zg),Jk=Fg(Wg);function Xk(t,n,e,r=0,v=!1){let g=v?Jk:Ul,p=v?Wg:zg;[n,e]=g(t,n,e);let w=t[n],h=t[n];if(n>-1)if(r==1)w=t[n],h=t[e];else if(r==-1)w=t[e],h=t[n];else for(let d=n;d<=e;d++){let a=t[d];p(a)&&(a<w?w=a:a>h&&(h=a))}return[w??ln,h??-ln]}function Vl(t,n,e,r){let v=Hg(t),g=Hg(n);t==n&&(v==-1?(t*=e,n/=e):(t/=e,n*=e));let p=e==10?wo:Ug,w=v==1?pi:Ti,h=g==1?Ti:pi,d=w(p(tr(t))),a=h(p(tr(n))),l=Zs(e,d),c=Zs(e,a);return e==10&&(d<0&&(l=cn(l,-d)),a<0&&(c=cn(c,-a))),r||e==2?(t=l*v,n=c*g):(t=Xg(t,l),n=Kl(n,c)),[t,n]}function ju(t,n,e,r){let v=Vl(t,n,e,r);return t==0&&(v[0]=0),n==0&&(v[1]=0),v}const Hu=.1,Bg={mode:3,pad:Hu},Ua={pad:0,soft:null,mode:0},Zk={min:Ua,max:Ua};function Gl(t,n,e,r){return Yl(e)?jg(t,n,e):(Ua.pad=e,Ua.soft=r?0:null,Ua.mode=r?3:0,jg(t,n,Zk))}function qt(t,n){return t??n}function Qk(t,n,e){for(n=qt(n,0),e=qt(e,t.length-1);n<=e;){if(t[n]!=null)return!0;n++}return!1}function jg(t,n,e){let r=e.min,v=e.max,g=qt(r.pad,0),p=qt(v.pad,0),w=qt(r.hard,-ln),h=qt(v.hard,ln),d=qt(r.soft,ln),a=qt(v.soft,-ln),l=qt(r.mode,0),c=qt(v.mode,0),u=n-t,i=wo(u),s=zr(tr(t),tr(n)),f=wo(s),b=tr(f-i);(u<1e-24||b>10)&&(u=0,(t==0||n==0)&&(u=1e-24,l==2&&d!=ln&&(g=0),c==2&&a!=-ln&&(p=0)));let x=u||s||1e3,I=wo(x),M=Zs(10,pi(I)),A=x*(u==0?t==0?.1:1:g),C=cn(Xg(t-A,M/10),24),O=t>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:ln,D=zr(w,C<O&&t>=O?O:Gi(O,C)),E=x*(u==0?n==0?.1:1:p),R=cn(Kl(n+E,M/10),24),B=n<=a&&(c==1||c==3&&R>=a||c==2&&R<=a)?a:-ln,F=Gi(h,R>B&&n<=B?B:zr(B,R));return D==F&&D==0&&(F=100),[D,F]}const e_=new Intl.NumberFormat(Js?Kk.language:"en-US"),Uu=t=>e_.format(t),fi=Math,ql=fi.PI,tr=fi.abs,pi=fi.floor,nr=fi.round,Ti=fi.ceil,Gi=fi.min,zr=fi.max,Zs=fi.pow,Hg=fi.sign,wo=fi.log10,Ug=fi.log2,t_=(t,n=1)=>fi.sinh(t)*n,Vu=(t,n=1)=>fi.asinh(t/n),ln=1/0;function Vg(t){return(wo((t^t>>31)-(t>>31))|0)+1}function Gu(t,n,e){return Gi(zr(t,n),e)}function Gg(t){return typeof t=="function"}function zt(t){return Gg(t)?t:()=>t}const n_=()=>{},qg=t=>t,Kg=(t,n)=>n,r_=t=>null,Yg=t=>!0,Jg=(t,n)=>t==n,i_=/\.\d*?(?=9{6,}|0{6,})/gm,fs=t=>{if(Qg(t)||Bo.has(t))return t;const n=`${t}`,e=n.match(i_);if(e==null)return t;let r=e[0].length-1;if(n.indexOf("e-")!=-1){let[v,g]=n.split("e");return+`${fs(v)}e${g}`}return cn(t,r)};function ps(t,n){return fs(cn(fs(t/n))*n)}function Kl(t,n){return fs(Ti(fs(t/n))*n)}function Xg(t,n){return fs(pi(fs(t/n))*n)}function cn(t,n=0){if(Qg(t))return t;let e=10**n,r=t*e*(1+Number.EPSILON);return nr(r)/e}const Bo=new Map;function Zg(t){return((""+t).split(".")[1]||"").length}function Va(t,n,e,r){let v=[],g=r.map(Zg);for(let p=n;p<e;p++){let w=tr(p),h=cn(Zs(t,p),w);for(let d=0;d<r.length;d++){let a=t==10?+`${r[d]}e${p}`:r[d]*h,l=(p>=0?0:w)+(p>=g[d]?0:g[d]),c=t==10?a:cn(a,l);v.push(c),Bo.set(c,l)}}return v}const Ga={},qu=[],Qs=[null,null],jo=Array.isArray,Qg=Number.isInteger,o_=t=>t===void 0;function em(t){return typeof t=="string"}function Yl(t){let n=!1;if(t!=null){let e=t.constructor;n=e==null||e==Object}return n}function s_(t){return t!=null&&typeof t=="object"}const a_=Object.getPrototypeOf(Uint8Array),tm="__proto__";function ea(t,n=Yl){let e;if(jo(t)){let r=t.find(v=>v!=null);if(jo(r)||n(r)){e=Array(t.length);for(let v=0;v<t.length;v++)e[v]=ea(t[v],n)}else e=t.slice()}else if(t instanceof a_)e=t.slice();else if(n(t)){e={};for(let r in t)r!=tm&&(e[r]=ea(t[r],n))}else e=t;return e}function qn(t){let n=arguments;for(let e=1;e<n.length;e++){let r=n[e];for(let v in r)v!=tm&&(Yl(t[v])?qn(t[v],ea(r[v])):t[v]=ea(r[v]))}return t}const l_=0,c_=1,u_=2;function h_(t,n,e){for(let r=0,v,g=-1;r<n.length;r++){let p=n[r];if(p>g){for(v=p-1;v>=0&&t[v]==null;)t[v--]=null;for(v=p+1;v<e&&t[v]==null;)t[g=v++]=null}}}function d_(t,n){if(g_(t)){let p=t[0].slice();for(let w=1;w<t.length;w++)p.push(...t[w].slice(1));return m_(p[0])||(p=p_(p)),p}let e=new Set;for(let p=0;p<t.length;p++){let w=t[p][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((p,w)=>p-w)],v=r[0].length,g=new Map;for(let p=0;p<v;p++)g.set(r[0][p],p);for(let p=0;p<t.length;p++){let w=t[p],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(v).fill(void 0),c=n?n[p][d]:c_,u=[];for(let i=0;i<a.length;i++){let s=a[i],f=g.get(h[i]);s===null?c!=l_&&(l[f]=s,c==u_&&u.push(f)):l[f]=s}h_(l,u,v),r.push(l)}}return r}const f_=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function p_(t){let n=t[0],e=n.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,p)=>n[g]-n[p]);let v=[];for(let g=0;g<t.length;g++){let p=t[g],w=Array(e);for(let h=0;h<e;h++)w[h]=p[r[h]];v.push(w)}return v}function g_(t){let n=t[0][0],e=n.length;for(let r=1;r<t.length;r++){let v=t[r][0];if(v.length!=e)return!1;if(v!=n){for(let g=0;g<e;g++)if(v[g]!=n[g])return!1}}return!0}function m_(t,n=100){const e=t.length;if(e<=1)return!0;let r=0,v=e-1;for(;r<=v&&t[r]==null;)r++;for(;v>=r&&t[v]==null;)v--;if(v<=r)return!0;const g=zr(1,pi((v-r+1)/n));for(let p=t[r],w=r+g;w<=v;w+=g){const h=t[w];if(h!=null){if(h<=p)return!1;p=h}}return!0}const nm=["January","February","March","April","May","June","July","August","September","October","November","December"],rm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function im(t){return t.slice(0,3)}const v_=rm.map(im),y_=nm.map(im),b_={MMMM:nm,MMM:y_,WWWW:rm,WWW:v_};function qa(t){return(t<10?"0":"")+t}function w_(t){return(t<10?"00":t<100?"0":"")+t}const x_={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,n)=>n.MMMM[t.getMonth()],MMM:(t,n)=>n.MMM[t.getMonth()],MM:t=>qa(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>qa(t.getDate()),D:t=>t.getDate(),WWWW:(t,n)=>n.WWWW[t.getDay()],WWW:(t,n)=>n.WWW[t.getDay()],HH:t=>qa(t.getHours()),H:t=>t.getHours(),h:t=>{let n=t.getHours();return n==0?12:n>12?n-12:n},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>qa(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>qa(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>w_(t.getMilliseconds())};function Ku(t,n){n=n||b_;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,v;for(;v=r.exec(t);)e.push(v[0][0]=="{"?x_[v[1]]:v[0]);return g=>{let p="";for(let w=0;w<e.length;w++)p+=typeof e[w]=="string"?e[w]:e[w](g,n);return p}}const C_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function k_(t,n){let e;return n=="UTC"||n=="Etc/UTC"?e=new Date(+t+t.getTimezoneOffset()*6e4):n==C_?e=t:(e=new Date(t.toLocaleString("en-US",{timeZone:n})),e.setMilliseconds(t.getMilliseconds())),e}const om=t=>t%1==0,Jl=[1,2,2.5,5],__=Va(10,-32,0,Jl),sm=Va(10,0,32,Jl),A_=sm.filter(om),gs=__.concat(sm),Yu=`
|
|
1479
|
-
`,am="{YYYY}",lm=Yu+am,cm="{M}/{D}",Ka=Yu+cm,Xl=Ka+"/{YY}",um="{aa}",S_="{h}:{mm}",ta=S_+um,hm=Yu+ta,dm=":{ss}",Zt=null;function fm(t){let n=t*1e3,e=n*60,r=e*60,v=r*24,g=v*30,p=v*365,w=(t==1?Va(10,0,3,Jl).filter(om):Va(10,-3,0,Jl)).concat([n,n*5,n*10,n*15,n*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,v,v*2,v*3,v*4,v*5,v*6,v*7,v*8,v*9,v*10,v*15,g,g*2,g*3,g*4,g*6,p,p*2,p*5,p*10,p*25,p*50,p*100]);const h=[[p,am,Zt,Zt,Zt,Zt,Zt,Zt,1],[v*28,"{MMM}",lm,Zt,Zt,Zt,Zt,Zt,1],[v,cm,lm,Zt,Zt,Zt,Zt,Zt,1],[r,"{h}"+um,Xl,Zt,Ka,Zt,Zt,Zt,1],[e,ta,Xl,Zt,Ka,Zt,Zt,Zt,1],[n,dm,Xl+" "+ta,Zt,Ka+" "+ta,Zt,hm,Zt,1],[t,dm+".{fff}",Xl+" "+ta,Zt,Ka+" "+ta,Zt,hm,Zt,1]];function d(a){return(l,c,u,i,s,f)=>{let b=[],x=s>=p,I=s>=g&&s<p,M=a(u),A=cn(M*t,3),C=Ju(M.getFullYear(),x?0:M.getMonth(),I||x?1:M.getDate()),O=cn(C*t,3);if(I||x){let D=I?s/g:0,E=x?s/p:0,R=A==O?A:cn(Ju(C.getFullYear()+E,C.getMonth()+D,1)*t,3),B=new Date(nr(R/t)),F=B.getFullYear(),N=B.getMonth();for(let $=0;R<=i;$++){let k=Ju(F+E*$,N+D*$,1),L=k-a(cn(k*t,3));R=cn((+k+L)*t,3),R<=i&&b.push(R)}}else{let D=s>=v?v:s,E=pi(u)-pi(A),R=O+E+Kl(A-O,D);b.push(R);let B=a(R),F=B.getHours()+B.getMinutes()/e+B.getSeconds()/r,N=s/r,$=l.axes[c]._space,k=f/$;for(;R=cn(R+s,t==1?0:3),!(R>i);)if(N>1){let L=pi(cn(F+N,6))%24,W=a(R).getHours()-L;W>1&&(W=-1),R-=W*r,F=(F+N)%24;let U=b[b.length-1];cn((R-U)/s,3)*k>=.7&&b.push(R)}else b.push(R)}return b}}return[w,h,d]}const[$_,M_,T_]=fm(1),[R_,E_,I_]=fm(.001);Va(2,-53,53,[1]);function pm(t,n){return t.map(e=>e.map((r,v)=>v==0||v==8||r==null?r:n(v==1||e[8]==0?r:e[1]+r)))}function gm(t,n){return(e,r,v,g,p)=>{let w=n.find(i=>p>=i[0])||n[n.length-1],h,d,a,l,c,u;return r.map(i=>{let s=t(i),f=s.getFullYear(),b=s.getMonth(),x=s.getDate(),I=s.getHours(),M=s.getMinutes(),A=s.getSeconds(),C=f!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||I!=l&&w[5]||M!=c&&w[6]||A!=u&&w[7]||w[1];return h=f,d=b,a=x,l=I,c=M,u=A,C(s)})}}function L_(t,n){let e=Ku(n);return(r,v,g,p,w)=>v.map(h=>e(t(h)))}function Ju(t,n,e){return new Date(t,n,e)}function mm(t,n){return n(t)}const O_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function vm(t,n){return(e,r,v,g)=>g==null?Du:n(t(r))}function N_(t,n){let e=t.series[n];return e.width?e.stroke(t,n):e.points.width?e.points.stroke(t,n):null}function D_(t,n){return t.series[n].fill(t,n)}const P_={show:!0,live:!0,isolate:!1,mount:n_,markers:{show:!0,width:2,stroke:N_,fill:D_,dash:"solid"},idx:null,idxs:null,values:[]};function F_(t,n){let e=t.cursor.points,r=Mi(),v=e.size(t,n);yn(r,Ba,v),yn(r,ja,v);let g=v/-2;yn(r,"marginLeft",g),yn(r,"marginTop",g);let p=e.width(t,n,v);return p&&yn(r,"borderWidth",p),r}function z_(t,n){let e=t.series[n].points;return e._fill||e._stroke}function W_(t,n){let e=t.series[n].points;return e._stroke||e._fill}function B_(t,n){return t.series[n].points.size}const Xu=[0,0];function j_(t,n,e){return Xu[0]=n,Xu[1]=e,Xu}function Zl(t,n,e,r=!0){return v=>{v.button==0&&(!r||v.target==n)&&e(v)}}function Zu(t,n,e,r=!0){return v=>{(!r||v.target==n)&&e(v)}}const H_={show:!0,x:!0,y:!0,lock:!1,move:j_,points:{one:!1,show:F_,size:B_,width:0,stroke:W_,fill:z_},bind:{mousedown:Zl,mouseup:Zl,click:Zl,dblclick:Zl,mousemove:Zu,mouseleave:Zu,mouseenter:Zu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,n)=>{n.stopPropagation(),n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,n,e,r,v)=>r-v,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},ym={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Qu=qn({},ym,{filter:Kg}),bm=qn({},Qu,{size:10}),wm=qn({},ym,{show:!1}),eh='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',xm="bold "+eh,Cm=1.5,km={show:!0,scale:"x",stroke:Lu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:xm,side:2,grid:Qu,ticks:bm,border:wm,font:eh,lineGap:Cm,rotate:0},U_="Value",V_="Time",_m={show:!0,scale:"x",auto:!1,sorted:1,min:ln,max:-ln,idxs:[]};function G_(t,n,e,r,v){return n.map(g=>g==null?"":Uu(g))}function q_(t,n,e,r,v,g,p){let w=[],h=Bo.get(v)||0;e=p?e:cn(Kl(e,v),h);for(let d=e;d<=r;d=cn(d+v,h))w.push(Object.is(d,-0)?0:d);return w}function th(t,n,e,r,v,g,p){const w=[],h=t.scales[t.axes[n].scale].log,d=h==10?wo:Ug,a=pi(d(e));v=Zs(h,a),h==10&&(v=gs[Vi(v,gs)]);let l=e,c=v*h;h==10&&(c=gs[Vi(c,gs)]);do w.push(l),l=l+v,h==10&&!Bo.has(l)&&(l=cn(l,Bo.get(v))),l>=c&&(v=l,c=v*h,h==10&&(c=gs[Vi(c,gs)]));while(l<=r);return w}function K_(t,n,e,r,v,g,p){let w=t.scales[t.axes[n].scale].asinh,h=r>w?th(t,n,zr(w,e),r,v):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?th(t,n,zr(w,-r),-e,v):[w]).reverse().map(a=>-a).concat(d,h)}const Am=/./,Y_=/[12357]/,J_=/[125]/,Sm=/1/,nh=(t,n,e,r)=>t.map((v,g)=>n==4&&v==0||g%r==0&&e.test(v.toExponential()[v<0?1:0])?v:null);function X_(t,n,e,r,v){let g=t.axes[e],p=g.scale,w=t.scales[p],h=t.valToPos,d=g._space,a=h(10,p),l=h(9,p)-a>=d?Am:h(7,p)-a>=d?Y_:h(5,p)-a>=d?J_:Sm;if(l==Sm){let c=tr(h(1,p)-a);if(c<d)return nh(n.slice().reverse(),w.distr,l,Ti(d/c)).reverse()}return nh(n,w.distr,l,1)}function Z_(t,n,e,r,v){let g=t.axes[e],p=g.scale,w=g._space,h=t.valToPos,d=tr(h(1,p)-h(2,p));return d<w?nh(n.slice().reverse(),3,Am,Ti(w/d)).reverse():n}function Q_(t,n,e,r){return r==null?Du:n==null?"":Uu(n)}const $m={show:!0,scale:"y",stroke:Lu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:xm,side:3,grid:Qu,ticks:bm,border:wm,font:eh,lineGap:Cm,rotate:0};function eA(t,n){let e=3+(t||1)*2;return cn(e*n,3)}function tA(t,n){let{scale:e,idxs:r}=t.series[0],v=t._data[0],g=t.valToPos(v[r[0]],e,!0),p=t.valToPos(v[r[1]],e,!0),w=tr(p-g),h=t.series[n],d=w/(h.points.space*Jt);return r[1]-r[0]<=d}const Mm={scale:null,auto:!0,sorted:0,min:ln,max:-ln},Tm=(t,n,e,r,v)=>v,Rm={show:!0,auto:!0,sorted:0,gaps:Tm,alpha:1,facets:[qn({},Mm,{scale:"x"}),qn({},Mm,{scale:"y"})]},Em={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Tm,alpha:1,points:{show:tA,filter:null},values:null,min:ln,max:-ln,idxs:[],path:null,clip:null};function nA(t,n,e,r,v){return e/10}const Im={time:$k,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},rA=qn({},Im,{time:!1,ori:1}),Lm={};function Om(t,n){let e=Lm[t];return e||(e={key:t,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(v=>v!=r)},pub(r,v,g,p,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=v&&e.plots[a].pub(r,v,g,p,w,h,d)}},t!=null&&(Lm[t]=e)),e}const na=1,rh=2;function ms(t,n,e){const r=t.mode,v=t.series[n],g=r==2?t._data[n]:t._data,p=t.scales,w=t.bbox;let h=g[0],d=r==2?g[1]:g[n],a=r==2?p[v.facets[0].scale]:p[t.series[0].scale],l=r==2?p[v.facets[1].scale]:p[v.scale],c=w.left,u=w.top,i=w.width,s=w.height,f=t.valToPosH,b=t.valToPosV;return a.ori==0?e(v,h,d,a,l,f,b,c,u,i,s,ec,ra,nc,Pm,zm):e(v,h,d,a,l,b,f,u,c,s,i,tc,ia,sh,Fm,Wm)}function ih(t,n){let e=0,r=0,v=qt(t.bands,qu);for(let g=0;g<v.length;g++){let p=v[g];p.series[0]==n?e=p.dir:p.series[1]==n&&(p.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function iA(t,n,e,r,v){let g=t.mode,p=t.series[n],w=g==2?p.facets[1].scale:p.scale,h=t.scales[w];return v==-1?h.min:v==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function xo(t,n,e,r,v,g){return ms(t,n,(p,w,h,d,a,l,c,u,i,s,f)=>{let b=p.pxRound;const x=d.dir*(d.ori==0?1:-1),I=d.ori==0?ra:ia;let M,A;x==1?(M=e,A=r):(M=r,A=e);let C=b(l(w[M],d,s,u)),O=b(c(h[M],a,f,i)),D=b(l(w[A],d,s,u)),E=b(c(g==1?a.max:a.min,a,f,i)),R=new Path2D(v);return I(R,D,E),I(R,C,E),I(R,C,O),R})}function Ql(t,n,e,r,v,g){let p=null;if(t.length>0){p=new Path2D;const w=n==0?nc:sh;let h=e;for(let l=0;l<t.length;l++){let c=t[l];if(c[1]>c[0]){let u=c[0]-h;u>0&&w(p,h,r,u,r+g),h=c[1]}}let d=e+v-h,a=10;d>0&&w(p,h,r-a/2,d,r+g+a)}return p}function oA(t,n,e){let r=t[t.length-1];r&&r[0]==n?r[1]=e:t.push([n,e])}function oh(t,n,e,r,v,g,p){let w=[],h=t.length;for(let d=v==1?e:r;d>=e&&d<=r;d+=v)if(n[d]===null){let a=d,l=d;if(v==1)for(;++d<=r&&n[d]===null;)l=d;else for(;--d>=e&&n[d]===null;)l=d;let c=g(t[a]),u=l==a?c:g(t[l]),i=a-v;c=p<=0&&i>=0&&i<h?g(t[i]):c;let s=l+v;u=p>=0&&s>=0&&s<h?g(t[s]):u,u>=c&&w.push([c,u])}return w}function Nm(t){return t==0?qg:t==1?nr:n=>ps(n,t)}function Dm(t){let n=t==0?ec:tc,e=t==0?(v,g,p,w,h,d)=>{v.arcTo(g,p,w,h,d)}:(v,g,p,w,h,d)=>{v.arcTo(p,g,h,w,d)},r=t==0?(v,g,p,w,h)=>{v.rect(g,p,w,h)}:(v,g,p,w,h)=>{v.rect(p,g,h,w)};return(v,g,p,w,h,d=0,a=0)=>{d==0&&a==0?r(v,g,p,w,h):(d=Gi(d,w/2,h/2),a=Gi(a,w/2,h/2),n(v,g+d,p),e(v,g+w,p,g+w,p+h,d),e(v,g+w,p+h,g,p+h,a),e(v,g,p+h,g,p,a),e(v,g,p,g+w,p,d),v.closePath())}}const ec=(t,n,e)=>{t.moveTo(n,e)},tc=(t,n,e)=>{t.moveTo(e,n)},ra=(t,n,e)=>{t.lineTo(n,e)},ia=(t,n,e)=>{t.lineTo(e,n)},nc=Dm(0),sh=Dm(1),Pm=(t,n,e,r,v,g)=>{t.arc(n,e,r,v,g)},Fm=(t,n,e,r,v,g)=>{t.arc(e,n,r,v,g)},zm=(t,n,e,r,v,g,p)=>{t.bezierCurveTo(n,e,r,v,g,p)},Wm=(t,n,e,r,v,g,p)=>{t.bezierCurveTo(e,n,v,r,p,g)};function Bm(t){return(n,e,r,v,g)=>ms(n,e,(p,w,h,d,a,l,c,u,i,s,f)=>{let{pxRound:b,points:x}=p,I,M;d.ori==0?(I=ec,M=Pm):(I=tc,M=Fm);const A=cn(x.width*Jt,3);let C=(x.size-x.width)/2*Jt,O=cn(C*2,3),D=new Path2D,E=new Path2D,{left:R,top:B,width:F,height:N}=n.bbox;nc(E,R-O,B-O,F+O*2,N+O*2);const $=k=>{if(h[k]!=null){let L=b(l(w[k],d,s,u)),W=b(c(h[k],a,f,i));I(D,L+C,W),M(D,L,W,C,0,ql*2)}};if(g)g.forEach($);else for(let k=r;k<=v;k++)$(k);return{stroke:A>0?D:null,fill:D,clip:E,flags:na|rh}})}function jm(t){return(n,e,r,v,g,p)=>{r!=v&&(g!=r&&p!=r&&t(n,e,r),g!=v&&p!=v&&t(n,e,v),t(n,e,p))}}const sA=jm(ra),aA=jm(ia);function Hm(t){const n=qt(t?.alignGaps,0);return(e,r,v,g)=>ms(e,r,(p,w,h,d,a,l,c,u,i,s,f)=>{[v,g]=Ul(h,v,g);let b=p.pxRound,x=F=>b(l(F,d,s,u)),I=F=>b(c(F,a,f,i)),M,A;d.ori==0?(M=ra,A=sA):(M=ia,A=aA);const C=d.dir*(d.ori==0?1:-1),O={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},D=O.stroke;let E=!1;if(g-v>=s*4){let F=le=>e.posToVal(le,d.key,!0),N=null,$=null,k,L,W,U=x(w[C==1?v:g]),q=x(w[v]),Z=x(w[g]),Q=F(C==1?q+1:Z-1);for(let le=C==1?v:g;le>=v&&le<=g;le+=C){let ne=w[le],ce=(C==1?ne<Q:ne>Q)?U:x(ne),ae=h[le];ce==U?ae!=null?(L=ae,N==null?(M(D,ce,I(L)),k=N=$=L):L<N?N=L:L>$&&($=L)):ae===null&&(E=!0):(N!=null&&A(D,U,I(N),I($),I(k),I(L)),ae!=null?(L=ae,M(D,ce,I(L)),N=$=k=L):(N=$=null,ae===null&&(E=!0)),U=ce,Q=F(U+C))}N!=null&&N!=$&&W!=U&&A(D,U,I(N),I($),I(k),I(L))}else for(let F=C==1?v:g;F>=v&&F<=g;F+=C){let N=h[F];N===null?E=!0:N!=null&&M(D,x(w[F]),I(N))}let[R,B]=ih(e,r);if(p.fill!=null||R!=0){let F=O.fill=new Path2D(D),N=p.fillTo(e,r,p.min,p.max,R),$=I(N),k=x(w[v]),L=x(w[g]);C==-1&&([L,k]=[k,L]),M(F,L,$),M(F,k,$)}if(!p.spanGaps){let F=[];E&&F.push(...oh(w,h,v,g,C,x,n)),O.gaps=F=p.gaps(e,r,v,g,F),O.clip=Ql(F,d.ori,u,i,s,f)}return B!=0&&(O.band=B==2?[xo(e,r,v,g,D,-1),xo(e,r,v,g,D,1)]:xo(e,r,v,g,D,B)),O})}function lA(t){const n=qt(t.align,1),e=qt(t.ascDesc,!1),r=qt(t.alignGaps,0),v=qt(t.extend,!1);return(g,p,w,h)=>ms(g,p,(d,a,l,c,u,i,s,f,b,x,I)=>{[w,h]=Ul(l,w,h);let M=d.pxRound,{left:A,width:C}=g.bbox,O=Z=>M(i(Z,c,x,f)),D=Z=>M(s(Z,u,I,b)),E=c.ori==0?ra:ia;const R={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},B=R.stroke,F=c.dir*(c.ori==0?1:-1);let N=D(l[F==1?w:h]),$=O(a[F==1?w:h]),k=$,L=$;v&&n==-1&&(L=A,E(B,L,N)),E(B,$,N);for(let Z=F==1?w:h;Z>=w&&Z<=h;Z+=F){let Q=l[Z];if(Q==null)continue;let le=O(a[Z]),ne=D(Q);n==1?E(B,le,N):E(B,k,ne),E(B,le,ne),N=ne,k=le}let W=k;v&&n==1&&(W=A+C,E(B,W,N));let[U,q]=ih(g,p);if(d.fill!=null||U!=0){let Z=R.fill=new Path2D(B),Q=d.fillTo(g,p,d.min,d.max,U),le=D(Q);E(Z,W,le),E(Z,L,le)}if(!d.spanGaps){let Z=[];Z.push(...oh(a,l,w,h,F,O,r));let Q=d.width*Jt/2,le=e||n==1?Q:-Q,ne=e||n==-1?-Q:Q;Z.forEach(ce=>{ce[0]+=le,ce[1]+=ne}),R.gaps=Z=d.gaps(g,p,w,h,Z),R.clip=Ql(Z,c.ori,f,b,x,I)}return q!=0&&(R.band=q==2?[xo(g,p,w,h,B,-1),xo(g,p,w,h,B,1)]:xo(g,p,w,h,B,q)),R})}function Um(t,n,e,r,v,g,p=ln){if(t.length>1){let w=null;for(let h=0,d=1/0;h<t.length;h++)if(n[h]!==void 0){if(w!=null){let a=tr(t[h]-t[w]);a<d&&(d=a,p=tr(e(t[h],r,v,g)-e(t[w],r,v,g)))}w=h}}return p}function cA(t){t=t||Ga;const n=qt(t.size,[.6,ln,1]),e=t.align||0,r=t.gap||0;let v=t.radius;v=v==null?[0,0]:typeof v=="number"?[v,0]:v;const g=zt(v),p=1-n[0],w=qt(n[1],ln),h=qt(n[2],1),d=qt(t.disp,Ga),a=qt(t.each,u=>{}),{fill:l,stroke:c}=d;return(u,i,s,f)=>ms(u,i,(b,x,I,M,A,C,O,D,E,R,B)=>{let F=b.pxRound,N=e,$=r*Jt,k=w*Jt,L=h*Jt,W,U;M.ori==0?[W,U]=g(u,i):[U,W]=g(u,i);const q=M.dir*(M.ori==0?1:-1);let Z=M.ori==0?nc:sh,Q=M.ori==0?a:(Ge,At,Kt,Tn,jn,or,hn)=>{a(Ge,At,Kt,jn,Tn,hn,or)},le=qt(u.bands,qu).find(Ge=>Ge.series[0]==i),ne=le!=null?le.dir:0,ce=b.fillTo(u,i,b.min,b.max,ne),ae=F(O(ce,A,B,E)),de,me,$e,Me=R,Te=F(b.width*Jt),Xe=!1,qe=null,rt=null,st=null,et=null;l!=null&&(Te==0||c!=null)&&(Xe=!0,qe=l.values(u,i,s,f),rt=new Map,new Set(qe).forEach(Ge=>{Ge!=null&&rt.set(Ge,new Path2D)}),Te>0&&(st=c.values(u,i,s,f),et=new Map,new Set(st).forEach(Ge=>{Ge!=null&&et.set(Ge,new Path2D)})));let{x0:Pt,size:yr}=d;if(Pt!=null&&yr!=null){N=1,x=Pt.values(u,i,s,f),Pt.unit==2&&(x=x.map(At=>u.posToVal(D+At*R,M.key,!0)));let Ge=yr.values(u,i,s,f);yr.unit==2?me=Ge[0]*R:me=C(Ge[0],M,R,D)-C(0,M,R,D),Me=Um(x,I,C,M,R,D,Me),$e=Me-me+$}else Me=Um(x,I,C,M,R,D,Me),$e=Me*p+$,me=Me-$e;$e<1&&($e=0),Te>=me/2&&(Te=0),$e<5&&(F=qg);let _t=$e>0,rr=Me-$e-(_t?Te:0);me=F(Gu(rr,L,k)),de=(N==0?me/2:N==q?0:me)-N*q*((N==0?$/2:0)+(_t?Te/2:0));const kn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},br=Xe?null:new Path2D;let un=null;if(le!=null)un=u.data[le.series[1]];else{let{y0:Ge,y1:At}=d;Ge!=null&&At!=null&&(I=At.values(u,i,s,f),un=Ge.values(u,i,s,f))}let ir=W*me,ut=U*me;for(let Ge=q==1?s:f;Ge>=s&&Ge<=f;Ge+=q){let At=I[Ge];if(At==null)continue;if(un!=null){let Ut=un[Ge]??0;if(At-Ut==0)continue;ae=O(Ut,A,B,E)}let Kt=M.distr!=2||d!=null?x[Ge]:Ge,Tn=C(Kt,M,R,D),jn=O(qt(At,ce),A,B,E),or=F(Tn-de),hn=F(zr(jn,ae)),Dn=F(Gi(jn,ae)),Rn=hn-Dn;if(At!=null){let Ut=At<0?ut:ir,Qt=At<0?ir:ut;Xe?(Te>0&&st[Ge]!=null&&Z(et.get(st[Ge]),or,Dn+pi(Te/2),me,zr(0,Rn-Te),Ut,Qt),qe[Ge]!=null&&Z(rt.get(qe[Ge]),or,Dn+pi(Te/2),me,zr(0,Rn-Te),Ut,Qt)):Z(br,or,Dn+pi(Te/2),me,zr(0,Rn-Te),Ut,Qt),Q(u,i,Ge,or-Te/2,Dn,me+Te,Rn)}}return Te>0?kn.stroke=Xe?et:br:Xe||(kn._fill=b.width==0?b._fill:b._stroke??b._fill,kn.width=0),kn.fill=Xe?rt:br,kn})}function uA(t,n){const e=qt(n?.alignGaps,0);return(r,v,g,p)=>ms(r,v,(w,h,d,a,l,c,u,i,s,f,b)=>{[g,p]=Ul(d,g,p);let x=w.pxRound,I=W=>x(c(W,a,f,i)),M=W=>x(u(W,l,b,s)),A,C,O;a.ori==0?(A=ec,O=ra,C=zm):(A=tc,O=ia,C=Wm);const D=a.dir*(a.ori==0?1:-1);let E=I(h[D==1?g:p]),R=E,B=[],F=[];for(let W=D==1?g:p;W>=g&&W<=p;W+=D)if(d[W]!=null){let U=h[W],q=I(U);B.push(R=q),F.push(M(d[W]))}const N={stroke:t(B,F,A,O,C,x),fill:null,clip:null,band:null,gaps:null,flags:na},$=N.stroke;let[k,L]=ih(r,v);if(w.fill!=null||k!=0){let W=N.fill=new Path2D($),U=w.fillTo(r,v,w.min,w.max,k),q=M(U);O(W,R,q),O(W,E,q)}if(!w.spanGaps){let W=[];W.push(...oh(h,d,g,p,D,I,e)),N.gaps=W=w.gaps(r,v,g,p,W),N.clip=Ql(W,a.ori,i,s,f,b)}return L!=0&&(N.band=L==2?[xo(r,v,g,p,$,-1),xo(r,v,g,p,$,1)]:xo(r,v,g,p,$,L)),N})}function hA(t){return uA(dA,t)}function dA(t,n,e,r,v,g){const p=t.length;if(p<2)return null;const w=new Path2D;if(e(w,t[0],n[0]),p==2)r(w,t[1],n[1]);else{let h=Array(p),d=Array(p-1),a=Array(p-1),l=Array(p-1);for(let c=0;c<p-1;c++)a[c]=n[c+1]-n[c],l[c]=t[c+1]-t[c],d[c]=a[c]/l[c];h[0]=d[0];for(let c=1;c<p-1;c++)d[c]===0||d[c-1]===0||d[c-1]>0!=d[c]>0?h[c]=0:(h[c]=3*(l[c-1]+l[c])/((2*l[c]+l[c-1])/d[c-1]+(l[c]+2*l[c-1])/d[c]),isFinite(h[c])||(h[c]=0));h[p-1]=d[p-2];for(let c=0;c<p-1;c++)v(w,t[c]+l[c]/3,n[c]+h[c]*l[c]/3,t[c+1]-l[c]/3,n[c+1]-h[c+1]*l[c]/3,t[c+1],n[c+1])}return w}const ah=new Set;function Vm(){for(let t of ah)t.syncRect(!0)}Js&&(ds(Gk,Xs,Vm),ds(qk,Xs,Vm,!0),ds(jl,Xs,()=>{Mr.pxRatio=Jt}));const fA=Hm(),pA=Bm();function Gm(t,n,e,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((v,g)=>lh(v,g,n,e))}function gA(t,n){return t.map((e,r)=>r==0?{}:qn({},n,e))}function lh(t,n,e,r){return qn({},n==0?e:r,t)}function qm(t,n,e){return n==null?Qs:[n,e]}const mA=qm;function vA(t,n,e){return n==null?Qs:Gl(n,e,Hu,!0)}function Km(t,n,e,r){return n==null?Qs:Vl(n,e,t.scales[r].log,!1)}const yA=Km;function Ym(t,n,e,r){return n==null?Qs:ju(n,e,t.scales[r].log,!1)}const bA=Ym;function wA(t,n,e,r,v){let g=zr(Vg(t),Vg(n)),p=n-t,w=Vi(v/r*p,e);do{let h=e[w],d=r*h/p;if(d>=v&&g+(h<5?Bo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function Jm(t){let n,e;return t=t.replace(/(\d+)px/,(r,v)=>(n=nr((e=+v)*Jt))+"px"),[t,n,e]}function xA(t){t.show&&[t.font,t.labelFont].forEach(n=>{let e=cn(n[2]*Jt,1);n[0]=n[0].replace(/[0-9.]+px/,e+"px"),n[1]=e})}function Mr(t,n,e){const r={mode:qt(t.mode,1)},v=r.mode;function g(V,J,ie,se){let pe=J.valToPct(V);return se+ie*(J.dir==-1?1-pe:pe)}function p(V,J,ie,se){let pe=J.valToPct(V);return se+ie*(J.dir==-1?pe:1-pe)}function w(V,J,ie,se){return J.ori==0?g(V,J,ie,se):p(V,J,ie,se)}r.valToPosH=g,r.valToPosV=p;let h=!1;r.status=0;const d=r.root=Mi(Mk);if(t.id!=null&&(d.id=t.id),di(d,t.class),t.title){let V=Mi(Ek,d);V.textContent=t.title}const a=Ui("canvas"),l=r.ctx=a.getContext("2d"),c=Mi(Ik,d);ds("click",c,V=>{V.target===i&&(at!=Ii||Wt!=po)&&Pn.click(r,V)},!0);const u=r.under=Mi(Lk,c);c.appendChild(a);const i=r.over=Mi(Ok,c);t=ea(t);const s=+qt(t.pxAlign,1),f=Nm(s);(t.plugins||[]).forEach(V=>{V.opts&&(t=V.opts(r,t)||t)});const b=t.ms||.001,x=r.series=v==1?Gm(t.series||[],_m,Em,!1):gA(t.series||[null],Rm),I=r.axes=Gm(t.axes||[],km,$m,!0),M=r.scales={},A=r.bands=t.bands||[];A.forEach(V=>{V.fill=zt(V.fill||null),V.dir=qt(V.dir,-1)});const C=v==2?x[1].facets[0].scale:x[0].scale,O={axes:qo,series:Ss},D=(t.drawOrder||["axes","series"]).map(V=>O[V]);function E(V){const J=V.distr==3?ie=>wo(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>Vu(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let se=J(ie),{_min:pe,_max:xe}=V,Re=xe-pe;return(se-pe)/Re}}function R(V){let J=M[V];if(J==null){let ie=(t.scales||Ga)[V]||Ga;if(ie.from!=null){R(ie.from);let se=qn({},M[ie.from],ie,{key:V});se.valToPct=E(se),M[V]=se}else{J=M[V]=qn({},V==C?Im:rA,ie),J.key=V;let se=J.time,pe=J.range,xe=jo(pe);if((V!=C||v==2&&!se)&&(xe&&(pe[0]==null||pe[1]==null)&&(pe={min:pe[0]==null?Bg:{mode:1,hard:pe[0],soft:pe[0]},max:pe[1]==null?Bg:{mode:1,hard:pe[1],soft:pe[1]}},xe=!1),!xe&&Yl(pe))){let Re=pe;pe=(Fe,We,He)=>We==null?Qs:Gl(We,He,Re)}J.range=zt(pe||(se?mA:V==C?J.distr==3?yA:J.distr==4?bA:qm:J.distr==3?Km:J.distr==4?Ym:vA)),J.auto=zt(xe?!1:J.auto),J.clamp=zt(J.clamp||nA),J._min=J._max=null,J.valToPct=E(J)}}}R("x"),R("y"),v==1&&x.forEach(V=>{R(V.scale)}),I.forEach(V=>{R(V.scale)});for(let V in t.scales)R(V);const B=M[C],F=B.distr;let N,$;B.ori==0?(di(d,Tk),N=g,$=p):(di(d,Rk),N=p,$=g);const k={};for(let V in M){let J=M[V];(J.min!=null||J.max!=null)&&(k[V]={min:J.min,max:J.max},J.min=J.max=null)}const L=t.tzDate||(V=>new Date(nr(V/b))),W=t.fmtDate||Ku,U=b==1?T_(L):I_(L),q=gm(L,pm(b==1?M_:E_,W)),Z=vm(L,mm(O_,W)),Q=[],le=r.legend=qn({},P_,t.legend),ne=r.cursor=qn({},H_,{drag:{y:v==2}},t.cursor),ce=le.show,ae=ne.show,de=le.markers;le.idxs=Q,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,$e,Me,Te=[],Xe=[],qe,rt=!1,st={};if(le.live){const V=x[1]?x[1].values:null;rt=V!=null,qe=rt?V(r,1,0):{_:0};for(let J in qe)st[J]=Du}if(ce)if(me=Ui("table",Wk,d),Me=Ui("tbody",null,me),le.mount(r,me),rt){$e=Ui("thead",null,me,Me);let V=Ui("tr",null,$e);Ui("th",null,V);for(var et in qe)Ui("th",Ag,V).textContent=et}else di(me,jk),le.live&&di(me,Bk);const Pt={show:!0},yr={show:!1};function _t(V,J){if(J==0&&(rt||!le.live||v==2))return Qs;let ie=[],se=Ui("tr",Hk,Me,Me.childNodes[J]);di(se,V.class),V.show||di(se,hs);let pe=Ui("th",null,se);if(de.show){let Fe=Mi(Uk,pe);if(J>0){let We=de.width(r,J);We&&(Fe.style.border=We+"px "+de.dash(r,J)+" "+de.stroke(r,J)),Fe.style.background=de.fill(r,J)}}let xe=Mi(Ag,pe);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,J>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,J):de.fill(r,J)),kn("click",pe,Fe=>{if(ne._lock)return;ri(Fe);let We=x.indexOf(V);if((Fe.ctrlKey||Fe.metaKey)!=le.isolate){let He=x.some((Ke,Ze)=>Ze>0&&Ze!=We&&Ke.show);x.forEach((Ke,Ze)=>{Ze>0&&Xn(Ze,He?Ze==We?Pt:yr:Pt,!0,xt.setSeries)})}else Xn(We,{show:!V.show},!0,xt.setSeries)},!1),Er&&kn(Tg,pe,Fe=>{ne._lock||(ri(Fe),Xn(x.indexOf(V),Ni,!0,xt.setSeries))},!1));for(var Re in qe){let Fe=Ui("td",Vk,se);Fe.textContent="--",ie.push(Fe)}return[se,ie]}const rr=new Map;function kn(V,J,ie,se=!0){const pe=rr.get(J)||{},xe=ne.bind[V](r,J,ie,se);xe&&(ds(V,J,pe[V]=xe),rr.set(J,pe))}function br(V,J,ie){const se=rr.get(J)||{};for(let pe in se)(V==null||pe==V)&&(Bu(pe,J,se[pe]),delete se[pe]);V==null&&rr.delete(J)}let un=0,ir=0,ut=0,Ge=0,At=0,Kt=0,Tn=At,jn=Kt,or=ut,hn=Ge,Dn=0,Rn=0,Ut=0,Qt=0;r.bbox={};let Rr=!1,Hr=!1,wr=!1,gi=!1,mi=!1,Jn=!1;function Ki(V,J,ie){(ie||V!=r.width||J!=r.height)&&Ur(V,J),Ji(!1),wr=!0,Hr=!0,fo()}function Ur(V,J){r.width=un=ut=V,r.height=ir=Ge=J,At=Kt=0,vi(),Co();let ie=r.bbox;Dn=ie.left=ps(At*Jt,.5),Rn=ie.top=ps(Kt*Jt,.5),Ut=ie.width=ps(ut*Jt,.5),Qt=ie.height=ps(Ge*Jt,.5)}const ws=3;function Vr(){let V=!1,J=0;for(;!V;){J++;let ie=pa(J),se=ga(J);V=J==ws||ie&&se,V||(Ur(r.width,r.height),Hr=!0)}}function bn({width:V,height:J}){Ki(V,J)}r.setSize=bn;function vi(){let V=!1,J=!1,ie=!1,se=!1;I.forEach((pe,xe)=>{if(pe.show&&pe._show){let{side:Re,_size:Fe}=pe,We=Re%2,He=pe.label!=null?pe.labelSize:0,Ke=Fe+He;Ke>0&&(We?(ut-=Ke,Re==3?(At+=Ke,se=!0):ie=!0):(Ge-=Ke,Re==0?(Kt+=Ke,V=!0):J=!0))}}),oi[0]=V,oi[1]=ie,oi[2]=J,oi[3]=se,ut-=sr[1]+sr[3],At+=sr[3],Ge-=sr[2]+sr[0],Kt+=sr[0]}function Co(){let V=At+ut,J=Kt+Ge,ie=At,se=Kt;function pe(xe,Re){switch(xe){case 1:return V+=Re,V-Re;case 2:return J+=Re,J-Re;case 3:return ie-=Re,ie+Re;case 0:return se-=Re,se+Re}}I.forEach((xe,Re)=>{if(xe.show&&xe._show){let Fe=xe.side;xe._pos=pe(Fe,xe._size),xe.label!=null&&(xe._lpos=pe(Fe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,J=V.skip=new Set(V.skip??[]);J.add(void 0);let ie=V.prox=zt(V.prox),se=V.bias??=0;ne.dataIdx=(pe,xe,Re,Fe)=>{if(xe==0)return Re;let We=Re,He=ie(pe,xe,Re,Fe)??ln,Ke=He>=0&&He<ln,Ze=B.ori==0?ut:Ge,wt=ne.left,Gt=n[0],Ot=n[xe];if(J.has(Ot[Re])){We=null;let vt=null,ht=null,ot;if(se==0||se==-1)for(ot=Re;vt==null&&ot-- >0;)J.has(Ot[ot])||(vt=ot);if(se==0||se==1)for(ot=Re;ht==null&&ot++<Ot.length;)J.has(Ot[ot])||(ht=ot);if(vt!=null||ht!=null)if(Ke){let pn=vt==null?-1/0:N(Gt[vt],B,Ze,0),$n=ht==null?1/0:N(Gt[ht],B,Ze,0),Qn=wt-pn,tn=$n-wt;Qn<=tn?Qn<=He&&(We=vt):tn<=He&&(We=ht)}else We=ht==null?vt:vt==null?ht:Re-vt<=ht-Re?vt:ht}else Ke&&tr(wt-N(Gt[Re],B,Ze,0))>He&&(We=null);return We}}const ri=V=>{ne.event=V};ne.idxs=Q,ne._lock=!1;let wn=ne.points;wn.show=zt(wn.show),wn.size=zt(wn.size),wn.stroke=zt(wn.stroke),wn.width=zt(wn.width),wn.fill=zt(wn.fill);const xr=r.focus=qn({},t.focus||{alpha:.3},ne.focus),Er=xr.prox>=0,En=Er&&wn.one;let gn=[],fr=[],ii=[];function so(V,J){let ie=wn.show(r,J);if(ie instanceof HTMLElement)return di(ie,zk),di(ie,V.class),oo(ie,-10,-10,ut,Ge),i.insertBefore(ie,gn[J]),ie}function ao(V,J){if(v==1||J>0){let ie=v==1&&M[V.scale].time,se=V.value;V.value=ie?em(se)?vm(L,mm(se,W)):se||Z:se||Q_,V.label=V.label||(ie?V_:U_)}if(En||J>0){V.width=V.width==null?1:V.width,V.paths=V.paths||fA||r_,V.fillTo=zt(V.fillTo||iA),V.pxAlign=+qt(V.pxAlign,s),V.pxRound=Nm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=eA(zr(1,V.width),1),se=V.points=qn({},{size:ie,width:zr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:pA,_stroke:null,_fill:null},V.points);se.show=zt(se.show),se.filter=zt(se.filter),se.fill=zt(se.fill),se.stroke=zt(se.stroke),se.paths=zt(se.paths),se.pxAlign=V.pxAlign}if(ce){let ie=_t(V,J);Te.splice(J,0,ie[0]),Xe.splice(J,0,ie[1]),le.values.push(null)}if(ae){Q.splice(J,0,null);let ie=null;En?J==0&&(ie=so(V,J)):J>0&&(ie=so(V,J)),gn.splice(J,0,ie),fr.splice(J,0,0),ii.splice(J,0,0)}Qe("addSeries",J)}function ko(V,J){J=J??x.length,V=v==1?lh(V,J,_m,Em):lh(V,J,{},Rm),x.splice(J,0,V),ao(x[J],J)}r.addSeries=ko;function Ir(V){if(x.splice(V,1),ce){le.values.splice(V,1),Xe.splice(V,1);let J=Te.splice(V,1)[0];br(null,J.firstChild),J.remove()}ae&&(Q.splice(V,1),gn.splice(V,1)[0].remove(),fr.splice(V,1),ii.splice(V,1)),Qe("delSeries",V)}r.delSeries=Ir;const oi=[!1,!1,!1,!1];function Gr(V,J){if(V._show=V.show,V.show){let ie=V.side%2,se=M[V.scale];se==null&&(V.scale=ie?x[1].scale:C,se=M[V.scale]);let pe=se.time;V.size=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),jo(V.incrs)&&V.incrs.forEach(Re=>{!Bo.has(Re)&&Bo.set(Re,Zg(Re))}),V.incrs=zt(V.incrs||(se.distr==2?A_:pe?b==1?$_:R_:gs)),V.splits=zt(V.splits||(pe&&se.distr==1?U:se.distr==3?th:se.distr==4?K_:q_)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=jo(xe)&&!jo(xe[0])?zt(xe):pe?jo(xe)?gm(L,pm(xe,W)):em(xe)?L_(L,xe):xe||q:xe||G_,V.filter=zt(V.filter||(se.distr>=3&&se.log==10?X_:se.distr==3&&se.log==2?Z_:Kg)),V.font=Jm(V.font),V.labelFont=Jm(V.labelFont),V._size=V.size(r,null,J,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(oi[J]=!0,V._el=Mi(Nk,c))}}function It(V,J,ie,se){let[pe,xe,Re,Fe]=ie,We=J%2,He=0;return We==0&&(Fe||xe)&&(He=J==0&&!pe||J==2&&!Re?nr(km.size/3):0),We==1&&(pe||Re)&&(He=J==1&&!xe||J==3&&!Fe?nr($m.size/2):0),He}const _o=r.padding=(t.padding||[It,It,It,It]).map(V=>zt(qt(V,It))),sr=r._padding=_o.map((V,J)=>V(r,J,oi,0));let _n,oe=null,Ne=null;const Be=v==1?x[0].idxs:null;let yt=null,dn=!1;function jt(V,J){if(n=V??[],r.data=r._data=n,v==2){_n=0;for(let ie=1;ie<x.length;ie++)_n+=n[ie][0].length}else{n.length==0&&(r.data=r._data=n=[[]]),yt=n[0],_n=yt.length;let ie=n;if(F==2){ie=n.slice();let se=ie[0]=Array(_n);for(let pe=0;pe<_n;pe++)se[pe]=pe}r._data=n=ie}if(Ji(!0),Qe("setData"),F==2&&(wr=!0),J!==!1){let ie=B;ie.auto(r,dn)?Cr():Or(C,ie.min,ie.max),gi=gi||ne.left>=0,Jn=!0,fo()}}r.setData=jt;function Cr(){dn=!0;let V,J;v==1&&(_n>0?(oe=Be[0]=0,Ne=Be[1]=_n-1,V=n[0][oe],J=n[0][Ne],F==2?(V=oe,J=Ne):V==J&&(F==3?[V,J]=Vl(V,V,B.log,!1):F==4?[V,J]=ju(V,V,B.log,!1):B.time?J=V+nr(86400/b):[V,J]=Gl(V,J,Hu,!0))):(oe=Be[0]=V=null,Ne=Be[1]=J=null)),Or(C,V,J)}let Hn,sn,pr,fn,gr,lo,xs,Cs,ks,ar;function _s(V,J,ie,se,pe,xe){V??=$g,ie??=qu,se??="butt",pe??=$g,xe??="round",V!=Hn&&(l.strokeStyle=Hn=V),pe!=sn&&(l.fillStyle=sn=pe),J!=pr&&(l.lineWidth=pr=J),xe!=gr&&(l.lineJoin=gr=xe),se!=lo&&(l.lineCap=lo=se),ie!=fn&&l.setLineDash(fn=ie)}function Ho(V,J,ie,se){J!=sn&&(l.fillStyle=sn=J),V!=xs&&(l.font=xs=V),ie!=Cs&&(l.textAlign=Cs=ie),se!=ks&&(l.textBaseline=ks=se)}function co(V,J,ie,se,pe=0){if(se.length>0&&V.auto(r,dn)&&(J==null||J.min==null)){let xe=qt(oe,0),Re=qt(Ne,se.length-1),Fe=ie.min==null?Xk(se,xe,Re,pe,V.distr==3):[ie.min,ie.max];V.min=Gi(V.min,ie.min=Fe[0]),V.max=zr(V.max,ie.max=Fe[1])}}const As={min:null,max:null};function Uo(){for(let se in M){let pe=M[se];k[se]==null&&(pe.min==null||k[C]!=null&&pe.auto(r,dn))&&(k[se]=As)}for(let se in M){let pe=M[se];k[se]==null&&pe.from!=null&&k[pe.from]!=null&&(k[se]=As)}k[C]!=null&&Ji(!0);let V={};for(let se in k){let pe=k[se];if(pe!=null){let xe=V[se]=ea(M[se],s_);if(pe.min!=null)qn(xe,pe);else if(se!=C||v==2)if(_n==0&&xe.from==null){let Re=xe.range(r,null,null,se);xe.min=Re[0],xe.max=Re[1]}else xe.min=ln,xe.max=-ln}}if(_n>0){x.forEach((se,pe)=>{if(v==1){let xe=se.scale,Re=k[xe];if(Re==null)return;let Fe=V[xe];if(pe==0){let We=Fe.range(r,Fe.min,Fe.max,xe);Fe.min=We[0],Fe.max=We[1],oe=Vi(Fe.min,n[0]),Ne=Vi(Fe.max,n[0]),Ne-oe>1&&(n[0][oe]<Fe.min&&oe++,n[0][Ne]>Fe.max&&Ne--),se.min=yt[oe],se.max=yt[Ne]}else se.show&&se.auto&&co(Fe,Re,se,n[pe],se.sorted);se.idxs[0]=oe,se.idxs[1]=Ne}else if(pe>0&&se.show&&se.auto){let[xe,Re]=se.facets,Fe=xe.scale,We=Re.scale,[He,Ke]=n[pe],Ze=V[Fe],wt=V[We];Ze!=null&&co(Ze,k[Fe],xe,He,xe.sorted),wt!=null&&co(wt,k[We],Re,Ke,Re.sorted),se.min=Re.min,se.max=Re.max}});for(let se in V){let pe=V[se],xe=k[se];if(pe.from==null&&(xe==null||xe.min==null)){let Re=pe.range(r,pe.min==ln?null:pe.min,pe.max==-ln?null:pe.max,se);pe.min=Re[0],pe.max=Re[1]}}}for(let se in V){let pe=V[se];if(pe.from!=null){let xe=V[pe.from];if(xe.min==null)pe.min=pe.max=null;else{let Re=pe.range(r,xe.min,xe.max,se);pe.min=Re[0],pe.max=Re[1]}}}let J={},ie=!1;for(let se in V){let pe=V[se],xe=M[se];if(xe.min!=pe.min||xe.max!=pe.max){xe.min=pe.min,xe.max=pe.max;let Re=xe.distr;xe._min=Re==3?wo(xe.min):Re==4?Vu(xe.min,xe.asinh):Re==100?xe.fwd(xe.min):xe.min,xe._max=Re==3?wo(xe.max):Re==4?Vu(xe.max,xe.asinh):Re==100?xe.fwd(xe.max):xe.max,J[se]=ie=!0}}if(ie){x.forEach((se,pe)=>{v==2?pe>0&&J.y&&(se._paths=null):J[se.scale]&&(se._paths=null)});for(let se in J)wr=!0,Qe("setScale",se);ae&&ne.left>=0&&(gi=Jn=!0)}for(let se in k)k[se]=null}function Ao(V){let J=Gu(oe-1,0,_n-1),ie=Gu(Ne+1,0,_n-1);for(;V[J]==null&&J>0;)J--;for(;V[ie]==null&&ie<_n-1;)ie++;return[J,ie]}function Ss(){if(_n>0){let V=x.some(J=>J._focus)&&ar!=xr.alpha;V&&(l.globalAlpha=ar=xr.alpha),x.forEach((J,ie)=>{if(ie>0&&J.show&&($s(ie,!1),$s(ie,!0),J._paths==null)){let se=ar;ar!=J.alpha&&(l.globalAlpha=ar=J.alpha);let pe=v==2?[0,n[ie][0].length-1]:Ao(n[ie]);J._paths=J.paths(r,ie,pe[0],pe[1]),ar!=se&&(l.globalAlpha=ar=se)}}),x.forEach((J,ie)=>{if(ie>0&&J.show){let se=ar;ar!=J.alpha&&(l.globalAlpha=ar=J.alpha),J._paths!=null&&Vo(ie,!1);{let pe=J._paths!=null?J._paths.gaps:null,xe=J.points.show(r,ie,oe,Ne,pe),Re=J.points.filter(r,ie,xe,pe);(xe||Re)&&(J.points._paths=J.points.paths(r,ie,oe,Ne,Re),Vo(ie,!0))}ar!=se&&(l.globalAlpha=ar=se),Qe("drawSeries",ie)}}),V&&(l.globalAlpha=ar=1)}}function $s(V,J){let ie=J?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Vo(V,J){let ie=J?x[V].points:x[V],{stroke:se,fill:pe,clip:xe,flags:Re,_stroke:Fe=ie._stroke,_fill:We=ie._fill,_width:He=ie.width}=ie._paths;He=cn(He*Jt,3);let Ke=null,Ze=He%2/2;J&&We==null&&(We=He>0?"#fff":Fe);let wt=ie.pxAlign==1&&Ze>0;if(wt&&l.translate(Ze,Ze),!J){let Gt=Dn-He/2,Ot=Rn-He/2,vt=Ut+He,ht=Qt+He;Ke=new Path2D,Ke.rect(Gt,Ot,vt,ht)}J?Go(Fe,He,ie.dash,ie.cap,We,se,pe,Re,xe):fa(V,Fe,He,ie.dash,ie.cap,We,se,pe,Re,Ke,xe),wt&&l.translate(-Ze,-Ze)}function fa(V,J,ie,se,pe,xe,Re,Fe,We,He,Ke){let Ze=!1;We!=0&&A.forEach((wt,Gt)=>{if(wt.series[0]==V){let Ot=x[wt.series[1]],vt=n[wt.series[1]],ht=(Ot._paths||Ga).band;jo(ht)&&(ht=wt.dir==1?ht[0]:ht[1]);let ot,pn=null;Ot.show&&ht&&Qk(vt,oe,Ne)?(pn=wt.fill(r,Gt)||xe,ot=Ot._paths.clip):ht=null,Go(J,ie,se,pe,pn,Re,Fe,We,He,Ke,ot,ht),Ze=!0}}),Ze||Go(J,ie,se,pe,xe,Re,Fe,We,He,Ke)}const uo=na|rh;function Go(V,J,ie,se,pe,xe,Re,Fe,We,He,Ke,Ze){_s(V,J,ie,se,pe),(We||He||Ze)&&(l.save(),We&&l.clip(We),He&&l.clip(He)),Ze?(Fe&uo)==uo?(l.clip(Ze),Ke&&l.clip(Ke),lr(pe,Re),Yi(V,xe,J)):Fe&rh?(lr(pe,Re),l.clip(Ze),Yi(V,xe,J)):Fe&na&&(l.save(),l.clip(Ze),Ke&&l.clip(Ke),lr(pe,Re),l.restore(),Yi(V,xe,J)):(lr(pe,Re),Yi(V,xe,J)),(We||He||Ze)&&l.restore()}function Yi(V,J,ie){ie>0&&(J instanceof Map?J.forEach((se,pe)=>{l.strokeStyle=Hn=pe,l.stroke(se)}):J!=null&&V&&l.stroke(J))}function lr(V,J){J instanceof Map?J.forEach((ie,se)=>{l.fillStyle=sn=se,l.fill(ie)}):J!=null&&V&&l.fill(J)}function Ms(V,J,ie,se){let pe=I[V],xe;if(se<=0)xe=[0,0];else{let Re=pe._space=pe.space(r,V,J,ie,se),Fe=pe._incrs=pe.incrs(r,V,J,ie,se,Re);xe=wA(J,ie,Fe,se,Re)}return pe._found=xe}function qr(V,J,ie,se,pe,xe,Re,Fe,We,He){let Ke=Re%2/2;s==1&&l.translate(Ke,Ke),_s(Fe,Re,We,He,Fe),l.beginPath();let Ze,wt,Gt,Ot,vt=pe+(se==0||se==3?-xe:xe);ie==0?(wt=pe,Ot=vt):(Ze=pe,Gt=vt);for(let ht=0;ht<V.length;ht++)J[ht]!=null&&(ie==0?Ze=Gt=V[ht]:wt=Ot=V[ht],l.moveTo(Ze,wt),l.lineTo(Gt,Ot));l.stroke(),s==1&&l.translate(-Ke,-Ke)}function pa(V){let J=!0;return I.forEach((ie,se)=>{if(!ie.show)return;let pe=M[ie.scale];if(pe.min==null){ie._show&&(J=!1,ie._show=!1,Ji(!1));return}else ie._show||(J=!1,ie._show=!0,Ji(!1));let xe=ie.side,Re=xe%2,{min:Fe,max:We}=pe,[He,Ke]=Ms(se,Fe,We,Re==0?ut:Ge);if(Ke==0)return;let Ze=pe.distr==2,wt=ie._splits=ie.splits(r,se,Fe,We,He,Ke,Ze),Gt=pe.distr==2?wt.map(ot=>yt[ot]):wt,Ot=pe.distr==2?yt[wt[1]]-yt[wt[0]]:He,vt=ie._values=ie.values(r,ie.filter(r,Gt,se,Ke,Ot),se,Ke,Ot);ie._rotate=xe==2?ie.rotate(r,vt,se,Ke):0;let ht=ie._size;ie._size=Ti(ie.size(r,vt,se,V)),ht!=null&&ie._size!=ht&&(J=!1)}),J}function ga(V){let J=!0;return _o.forEach((ie,se)=>{let pe=ie(r,se,oi,V);pe!=sr[se]&&(J=!1),sr[se]=pe}),J}function qo(){for(let V=0;V<I.length;V++){let J=I[V];if(!J.show||!J._show)continue;let ie=J.side,se=ie%2,pe,xe,Re=J.stroke(r,V),Fe=ie==0||ie==3?-1:1,[We,He]=J._found;if(J.label!=null){let _r=J.labelGap*Fe,vn=nr((J._lpos+_r)*Jt);Ho(J.labelFont[0],Re,"center",ie==2?Ha:Sg),l.save(),se==1?(pe=xe=0,l.translate(vn,nr(Rn+Qt/2)),l.rotate((ie==3?-ql:ql)/2)):(pe=nr(Dn+Ut/2),xe=vn);let Di=Gg(J.label)?J.label(r,V,We,He):J.label;l.fillText(Di,pe,xe),l.restore()}if(He==0)continue;let Ke=M[J.scale],Ze=se==0?Ut:Qt,wt=se==0?Dn:Rn,Gt=J._splits,Ot=Ke.distr==2?Gt.map(_r=>yt[_r]):Gt,vt=Ke.distr==2?yt[Gt[1]]-yt[Gt[0]]:We,ht=J.ticks,ot=J.border,pn=ht.show?ht.size:0,$n=nr(pn*Jt),Qn=nr((J.alignTo==2?J._size-pn-J.gap:J.gap)*Jt),tn=J._rotate*-ql/180,an=f(J._pos*Jt),ge=($n+Qn)*Fe,Se=an+ge;xe=se==0?Se:0,pe=se==1?Se:0;let ke=J.font[0],Ue=J.align==1?Ys:J.align==2?Iu:tn>0?Ys:tn<0?Iu:se==0?"center":ie==3?Iu:Ys,ct=tn||se==1?"middle":ie==2?Ha:Sg;Ho(ke,Re,Ue,ct);let kt=J.font[1]*J.lineGap,Yt=Gt.map(_r=>f(w(_r,Ke,Ze,wt))),Nt=J._values;for(let _r=0;_r<Nt.length;_r++){let vn=Nt[_r];if(vn!=null){se==0?pe=Yt[_r]:xe=Yt[_r],vn=""+vn;let Di=vn.indexOf(`
|
|
1480
|
-
`)==-1?[vn]:vn.split(/\n/gm);for(let Ar=0;Ar<Di.length;Ar++){let To=Di[Ar];tn?(l.save(),l.translate(pe,xe+Ar*kt),l.rotate(tn),l.fillText(To,0,0),l.restore()):l.fillText(To,pe,xe+Ar*kt)}}}ht.show&&qr(Yt,ht.filter(r,Ot,V,He,vt),se,ie,an,$n,cn(ht.width*Jt,3),ht.stroke(r,V),ht.dash,ht.cap);let ai=J.grid;ai.show&&qr(Yt,ai.filter(r,Ot,V,He,vt),se,se==0?2:1,se==0?Rn:Dn,se==0?Qt:Ut,cn(ai.width*Jt,3),ai.stroke(r,V),ai.dash,ai.cap),ot.show&&qr([an],[1],se==0?1:0,se==0?1:2,se==1?Rn:Dn,se==1?Qt:Ut,cn(ot.width*Jt,3),ot.stroke(r,V),ot.dash,ot.cap)}Qe("drawAxes")}function Ji(V){x.forEach((J,ie)=>{ie>0&&(J._paths=null,V&&(v==1?(J.min=null,J.max=null):J.facets.forEach(se=>{se.min=null,se.max=null})))})}let So=!1,Ko=!1,ho=[];function ma(){Ko=!1;for(let V=0;V<ho.length;V++)Qe(...ho[V]);ho.length=0}function fo(){So||(f_(Ts),So=!0)}function ze(V,J=!1){So=!0,Ko=J,V(r),Ts(),J&&ho.length>0&&queueMicrotask(ma)}r.batch=ze;function Ts(){if(Rr&&(Uo(),Rr=!1),wr&&(Vr(),wr=!1),Hr){if(yn(u,Ys,At),yn(u,Ha,Kt),yn(u,Ba,ut),yn(u,ja,Ge),yn(i,Ys,At),yn(i,Ha,Kt),yn(i,Ba,ut),yn(i,ja,Ge),yn(c,Ba,un),yn(c,ja,ir),a.width=nr(un*Jt),a.height=nr(ir*Jt),I.forEach(({_el:V,_show:J,_size:ie,_pos:se,side:pe})=>{if(V!=null)if(J){let xe=pe===3||pe===0?ie:0,Re=pe%2==1;yn(V,Re?"left":"top",se-xe),yn(V,Re?"width":"height",ie),yn(V,Re?"top":"left",Re?Kt:At),yn(V,Re?"height":"width",Re?Ge:ut),zu(V,hs)}else di(V,hs)}),Hn=sn=pr=gr=lo=xs=Cs=ks=fn=null,ar=1,z(!0),At!=Tn||Kt!=jn||ut!=or||Ge!=hn){Ji(!1);let V=ut/or,J=Ge/hn;if(ae&&!gi&&ne.left>=0){ne.left*=V,ne.top*=J,Xi&&oo(Xi,nr(ne.left),0,ut,Ge),Ln&&oo(Ln,0,nr(ne.top),ut,Ge);for(let ie=0;ie<gn.length;ie++){let se=gn[ie];se!=null&&(fr[ie]*=V,ii[ie]*=J,oo(se,Ti(fr[ie]),Ti(ii[ie]),ut,Ge))}}if(bt.show&&!mi&&bt.left>=0&&bt.width>0){bt.left*=V,bt.width*=V,bt.top*=J,bt.height*=J;for(let ie in Y)yn(Lr,ie,bt[ie])}Tn=At,jn=Kt,or=ut,hn=Ge}Qe("setSize"),Hr=!1}un>0&&ir>0&&(l.clearRect(0,0,a.width,a.height),Qe("drawClear"),D.forEach(V=>V()),Qe("draw")),bt.show&&mi&&(Oi(bt),mi=!1),ae&&gi&&(_(null,!0,!1),gi=!1),le.show&&le.live&&Jn&&(y(),Jn=!1),h||(h=!0,r.status=1,Qe("ready")),dn=!1,So=!1}r.redraw=(V,J)=>{wr=J||!1,V!==!1?Or(C,B.min,B.max):fo()};function De(V,J){let ie=M[V];if(ie.from==null){if(_n==0){let se=ie.range(r,J.min,J.max,V);J.min=se[0],J.max=se[1]}if(J.min>J.max){let se=J.min;J.min=J.max,J.max=se}if(_n>1&&J.min!=null&&J.max!=null&&J.max-J.min<1e-16)return;V==C&&ie.distr==2&&_n>0&&(J.min=Vi(J.min,n[0]),J.max=Vi(J.max,n[0]),J.min==J.max&&J.max++),k[V]=J,Rr=!0,fo()}}r.setScale=De;let In,$o,Xi,Ln,va,Mo,Ii,po,Rs,Xt,at,Wt,Li=!1;const Pn=ne.drag;let je=Pn.x,mn=Pn.y;ae&&(ne.x&&(In=Mi(Pk,i)),ne.y&&($o=Mi(Fk,i)),B.ori==0?(Xi=In,Ln=$o):(Xi=$o,Ln=In),at=ne.left,Wt=ne.top);const bt=r.select=qn({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Lr=bt.show?Mi(Dk,bt.over?i:u):null;function Oi(V,J){if(bt.show){for(let ie in V)bt[ie]=V[ie],ie in Y&&yn(Lr,ie,V[ie]);J!==!1&&Qe("setSelect")}}r.setSelect=Oi;function Lt(V){if(x[V].show)ce&&zu(Te[V],hs);else if(ce&&di(Te[V],hs),ae){let J=En?gn[0]:gn[V];J!=null&&oo(J,-10,-10,ut,Ge)}}function Or(V,J,ie){De(V,{min:J,max:ie})}function Xn(V,J,ie,se){J.focus!=null&&Es(V),J.show!=null&&x.forEach((pe,xe)=>{xe>0&&(V==xe||V==null)&&(pe.show=J.show,Lt(xe),v==2?(Or(pe.facets[0].scale,null,null),Or(pe.facets[1].scale,null,null)):Or(pe.scale,null,null),fo())}),ie!==!1&&Qe("setSeries",V,J),se&&Ct("setSeries",r,V,J)}r.setSeries=Xn;function Zi(V,J){qn(A[V],J)}function yi(V,J){V.fill=zt(V.fill||null),V.dir=qt(V.dir,-1),J=J??A.length,A.splice(J,0,V)}function An(V){V==null?A.length=0:A.splice(V,1)}r.addBand=yi,r.setBand=Zi,r.delBand=An;function Yo(V,J){x[V].alpha=J,ae&&gn[V]!=null&&(gn[V].style.opacity=J),ce&&Te[V]&&(Te[V].style.opacity=J)}let Fn,bi,wi;const Ni={focus:!0};function Es(V){if(V!=wi){let J=V==null,ie=xr.alpha!=1;x.forEach((se,pe)=>{if(v==1||pe>0){let xe=J||pe==0||pe==V;se._focus=J?null:xe,ie&&Yo(pe,xe?1:xr.alpha)}}),wi=V,ie&&fo()}}ce&&Er&&kn(Rg,me,V=>{ne._lock||(ri(V),wi!=null&&Xn(null,Ni,!0,xt.setSeries))});function en(V,J,ie){let se=M[J];ie&&(V=V/Jt-(se.ori==1?Kt:At));let pe=ut;se.ori==1&&(pe=Ge,V=pe-V),se.dir==-1&&(V=pe-V);let xe=se._min,Re=se._max,Fe=V/pe,We=xe+(Re-xe)*Fe,He=se.distr;return He==3?Zs(10,We):He==4?t_(We,se.asinh):He==100?se.bwd(We):We}function ya(V,J){let ie=en(V,C,J);return Vi(ie,n[0],oe,Ne)}r.valToIdx=V=>Vi(V,n[0]),r.posToIdx=ya,r.posToVal=en,r.valToPos=(V,J,ie)=>M[J].ori==0?g(V,M[J],ie?Ut:ut,ie?Dn:0):p(V,M[J],ie?Qt:Ge,ie?Rn:0),r.setCursor=(V,J,ie)=>{at=V.left,Wt=V.top,_(null,J,ie)};function cr(V,J){yn(Lr,Ys,bt.left=V),yn(Lr,Ba,bt.width=J)}function Nr(V,J){yn(Lr,Ha,bt.top=V),yn(Lr,ja,bt.height=J)}let go=B.ori==0?cr:Nr,kr=B.ori==1?cr:Nr;function si(){if(ce&&le.live)for(let V=v==2?1:0;V<x.length;V++){if(V==0&&rt)continue;let J=le.values[V],ie=0;for(let se in J)Xe[V][ie++].firstChild.nodeValue=J[se]}}function y(V,J){if(V!=null&&(V.idxs?V.idxs.forEach((ie,se)=>{Q[se]=ie}):o_(V.idx)||Q.fill(V.idx),le.idx=Q[0]),ce&&le.live){for(let ie=0;ie<x.length;ie++)(ie>0||v==1&&!rt)&&S(ie,Q[ie]);si()}Jn=!1,J!==!1&&Qe("setLegend")}r.setLegend=y;function S(V,J){let ie=x[V],se=V==0&&F==2?yt:n[V],pe;rt?pe=ie.values(r,V,J)??st:(pe=ie.value(r,J==null?null:se[J],V,J),pe=pe==null?st:{_:pe}),le.values[V]=pe}function _(V,J,ie){Rs=at,Xt=Wt,[at,Wt]=ne.move(r,at,Wt),ne.left=at,ne.top=Wt,ae&&(Xi&&oo(Xi,nr(at),0,ut,Ge),Ln&&oo(Ln,0,nr(Wt),ut,Ge));let se,pe=oe>Ne;Fn=ln,bi=null;let xe=B.ori==0?ut:Ge,Re=B.ori==1?ut:Ge;if(at<0||_n==0||pe){se=ne.idx=null;for(let Fe=0;Fe<x.length;Fe++){let We=gn[Fe];We!=null&&oo(We,-10,-10,ut,Ge)}Er&&Xn(null,Ni,!0,V==null&&xt.setSeries),le.live&&(Q.fill(se),Jn=!0)}else{let Fe,We,He;v==1&&(Fe=B.ori==0?at:Wt,We=en(Fe,C),se=ne.idx=Vi(We,n[0],oe,Ne),He=N(n[0][se],B,xe,0));let Ke=-10,Ze=-10,wt=0,Gt=0,Ot=!0,vt="",ht="";for(let ot=v==2?1:0;ot<x.length;ot++){let pn=x[ot],$n=Q[ot],Qn=$n==null?null:v==1?n[ot][$n]:n[ot][1][$n],tn=ne.dataIdx(r,ot,se,We),an=tn==null?null:v==1?n[ot][tn]:n[ot][1][tn];if(Jn=Jn||an!=Qn||tn!=$n,Q[ot]=tn,ot>0&&pn.show){let ge=tn==null?-10:tn==se?He:N(v==1?n[0][tn]:n[ot][0][tn],B,xe,0),Se=an==null?-10:$(an,v==1?M[pn.scale]:M[pn.facets[1].scale],Re,0);if(Er&&an!=null){let ke=B.ori==1?at:Wt,Ue=tr(xr.dist(r,ot,tn,Se,ke));if(Ue<Fn){let ct=xr.bias;if(ct!=0){let kt=en(ke,pn.scale),Yt=an>=0?1:-1,Nt=kt>=0?1:-1;Nt==Yt&&(Nt==1?ct==1?an>=kt:an<=kt:ct==1?an<=kt:an>=kt)&&(Fn=Ue,bi=ot)}else Fn=Ue,bi=ot}}if(Jn||En){let ke,Ue;B.ori==0?(ke=ge,Ue=Se):(ke=Se,Ue=ge);let ct,kt,Yt,Nt,ai,_r,vn=!0,Di=wn.bbox;if(Di!=null){vn=!1;let Ar=Di(r,ot);Yt=Ar.left,Nt=Ar.top,ct=Ar.width,kt=Ar.height}else Yt=ke,Nt=Ue,ct=kt=wn.size(r,ot);if(_r=wn.fill(r,ot),ai=wn.stroke(r,ot),En)ot==bi&&Fn<=xr.prox&&(Ke=Yt,Ze=Nt,wt=ct,Gt=kt,Ot=vn,vt=_r,ht=ai);else{let Ar=gn[ot];Ar!=null&&(fr[ot]=Yt,ii[ot]=Nt,Pg(Ar,ct,kt,vn),Ng(Ar,_r,ai),oo(Ar,Ti(Yt),Ti(Nt),ut,Ge))}}}}if(En){let ot=xr.prox,pn=wi==null?Fn<=ot:Fn>ot||bi!=wi;if(Jn||pn){let $n=gn[0];$n!=null&&(fr[0]=Ke,ii[0]=Ze,Pg($n,wt,Gt,Ot),Ng($n,vt,ht),oo($n,Ti(Ke),Ti(Ze),ut,Ge))}}}if(bt.show&&Li)if(V!=null){let[Fe,We]=xt.scales,[He,Ke]=xt.match,[Ze,wt]=V.cursor.sync.scales,Gt=V.cursor.drag;if(je=Gt._x,mn=Gt._y,je||mn){let{left:Ot,top:vt,width:ht,height:ot}=V.select,pn=V.scales[Ze].ori,$n=V.posToVal,Qn,tn,an,ge,Se,ke=Fe!=null&&He(Fe,Ze),Ue=We!=null&&Ke(We,wt);ke&&je?(pn==0?(Qn=Ot,tn=ht):(Qn=vt,tn=ot),an=M[Fe],ge=N($n(Qn,Ze),an,xe,0),Se=N($n(Qn+tn,Ze),an,xe,0),go(Gi(ge,Se),tr(Se-ge))):go(0,xe),Ue&&mn?(pn==1?(Qn=Ot,tn=ht):(Qn=vt,tn=ot),an=M[We],ge=$($n(Qn,wt),an,Re,0),Se=$($n(Qn+tn,wt),an,Re,0),kr(Gi(ge,Se),tr(Se-ge))):kr(0,Re)}else X()}else{let Fe=tr(Rs-va),We=tr(Xt-Mo);if(B.ori==1){let wt=Fe;Fe=We,We=wt}je=Pn.x&&Fe>=Pn.dist,mn=Pn.y&&We>=Pn.dist;let He=Pn.uni;He!=null?je&&mn&&(je=Fe>=He,mn=We>=He,!je&&!mn&&(We>Fe?mn=!0:je=!0)):Pn.x&&Pn.y&&(je||mn)&&(je=mn=!0);let Ke,Ze;je&&(B.ori==0?(Ke=Ii,Ze=at):(Ke=po,Ze=Wt),go(Gi(Ke,Ze),tr(Ze-Ke)),mn||kr(0,Re)),mn&&(B.ori==1?(Ke=Ii,Ze=at):(Ke=po,Ze=Wt),kr(Gi(Ke,Ze),tr(Ze-Ke)),je||go(0,xe)),!je&&!mn&&(go(0,0),kr(0,0))}if(Pn._x=je,Pn._y=mn,V==null){if(ie){if(Vt!=null){let[Fe,We]=xt.scales;xt.values[0]=Fe!=null?en(B.ori==0?at:Wt,Fe):null,xt.values[1]=We!=null?en(B.ori==1?at:Wt,We):null}Ct(Ou,r,at,Wt,ut,Ge,se)}if(Er){let Fe=ie&&xt.setSeries,We=xr.prox;wi==null?Fn<=We&&Xn(bi,Ni,!0,Fe):Fn>We?Xn(null,Ni,!0,Fe):bi!=wi&&Xn(bi,Ni,!0,Fe)}}Jn&&(le.idx=se,y()),J!==!1&&Qe("setCursor")}let P=null;Object.defineProperty(r,"rect",{get(){return P==null&&z(!1),P}});function z(V=!1){V?P=null:(P=i.getBoundingClientRect(),Qe("syncRect",P))}function j(V,J,ie,se,pe,xe,Re){ne._lock||Li&&V!=null&&V.movementX==0&&V.movementY==0||(G(V,J,ie,se,pe,xe,Re,!1,V!=null),V!=null?_(null,!0,!0):_(J,!0,!1))}function G(V,J,ie,se,pe,xe,Re,Fe,We){if(P==null&&z(!1),ri(V),V!=null)ie=V.clientX-P.left,se=V.clientY-P.top;else{if(ie<0||se<0){at=-10,Wt=-10;return}let[He,Ke]=xt.scales,Ze=J.cursor.sync,[wt,Gt]=Ze.values,[Ot,vt]=Ze.scales,[ht,ot]=xt.match,pn=J.axes[0].side%2==1,$n=B.ori==0?ut:Ge,Qn=B.ori==1?ut:Ge,tn=pn?xe:pe,an=pn?pe:xe,ge=pn?se:ie,Se=pn?ie:se;if(Ot!=null?ie=ht(He,Ot)?w(wt,M[He],$n,0):-10:ie=$n*(ge/tn),vt!=null?se=ot(Ke,vt)?w(Gt,M[Ke],Qn,0):-10:se=Qn*(Se/an),B.ori==1){let ke=ie;ie=se,se=ke}}We&&(J==null||J.cursor.event.type==Ou)&&((ie<=1||ie>=ut-1)&&(ie=ps(ie,ut)),(se<=1||se>=Ge-1)&&(se=ps(se,Ge))),Fe?(va=ie,Mo=se,[Ii,po]=ne.move(r,ie,se)):(at=ie,Wt=se)}const Y={width:0,height:0,left:0,top:0};function X(){Oi(Y,!1)}let re,ue,ye,Ce;function ve(V,J,ie,se,pe,xe,Re){Li=!0,je=mn=Pn._x=Pn._y=!1,G(V,J,ie,se,pe,xe,Re,!0,!1),V!=null&&(kn(Nu,Pu,we,!1),Ct(Mg,r,Ii,po,ut,Ge,null));let{left:Fe,top:We,width:He,height:Ke}=bt;re=Fe,ue=We,ye=He,Ce=Ke}function we(V,J,ie,se,pe,xe,Re){Li=Pn._x=Pn._y=!1,G(V,J,ie,se,pe,xe,Re,!1,!0);let{left:Fe,top:We,width:He,height:Ke}=bt,Ze=He>0||Ke>0,wt=re!=Fe||ue!=We||ye!=He||Ce!=Ke;if(Ze&&wt&&Oi(bt),Pn.setScale&&Ze&&wt){let Gt=Fe,Ot=He,vt=We,ht=Ke;if(B.ori==1&&(Gt=We,Ot=Ke,vt=Fe,ht=He),je&&Or(C,en(Gt,C),en(Gt+Ot,C)),mn)for(let ot in M){let pn=M[ot];ot!=C&&pn.from==null&&pn.min!=ln&&Or(ot,en(vt+ht,ot),en(vt,ot))}X()}else ne.lock&&(ne._lock=!ne._lock,_(J,!0,V!=null));V!=null&&(br(Nu,Pu),Ct(Nu,r,at,Wt,ut,Ge,null))}function Oe(V,J,ie,se,pe,xe,Re){if(ne._lock)return;ri(V);let Fe=Li;if(Li){let We=!0,He=!0,Ke=10,Ze,wt;B.ori==0?(Ze=je,wt=mn):(Ze=mn,wt=je),Ze&&wt&&(We=at<=Ke||at>=ut-Ke,He=Wt<=Ke||Wt>=Ge-Ke),Ze&&We&&(at=at<Ii?0:ut),wt&&He&&(Wt=Wt<po?0:Ge),_(null,!0,!0),Li=!1}at=-10,Wt=-10,Q.fill(null),_(null,!0,!0),Fe&&(Li=Fe)}function Ie(V,J,ie,se,pe,xe,Re){ne._lock||(ri(V),Cr(),X(),V!=null&&Ct(Eg,r,at,Wt,ut,Ge,null))}function Ve(){I.forEach(xA),Ki(r.width,r.height,!0)}ds(jl,Xs,Ve);const lt={};lt.mousedown=ve,lt.mousemove=j,lt.mouseup=we,lt.dblclick=Ie,lt.setSeries=(V,J,ie,se)=>{let pe=xt.match[2];ie=pe(r,J,ie),ie!=-1&&Xn(ie,se,!0,!1)},ae&&(kn(Mg,i,ve),kn(Ou,i,j),kn(Tg,i,V=>{ri(V),z(!1)}),kn(Rg,i,Oe),kn(Eg,i,Ie),ah.add(r),r.syncRect=z);const Je=r.hooks=t.hooks||{};function Qe(V,J,ie){Ko?ho.push([V,J,ie]):V in Je&&Je[V].forEach(se=>{se.call(null,r,J,ie)})}(t.plugins||[]).forEach(V=>{for(let J in V.hooks)Je[J]=(Je[J]||[]).concat(V.hooks[J])});const xn=(V,J,ie)=>ie,xt=qn({key:null,setSeries:!1,filters:{pub:Yg,sub:Yg},scales:[C,x[1]?x[1].scale:null],match:[Jg,Jg,xn],values:[null,null]},ne.sync);xt.match.length==2&&xt.match.push(xn),ne.sync=xt;const Vt=xt.key,Mt=Om(Vt);function Ct(V,J,ie,se,pe,xe,Re){xt.filters.pub(V,J,ie,se,pe,xe,Re)&&Mt.pub(V,J,ie,se,pe,xe,Re)}Mt.sub(r);function Zn(V,J,ie,se,pe,xe,Re){xt.filters.sub(V,J,ie,se,pe,xe,Re)&<[V](null,J,ie,se,pe,xe,Re)}r.pub=Zn;function ur(){Mt.unsub(r),ah.delete(r),rr.clear(),Bu(jl,Xs,Ve),d.remove(),me?.remove(),Qe("destroy")}r.destroy=ur;function Sn(){Qe("init",t,n),jt(n||t.data,!1),k[C]?De(C,k[C]):Cr(),mi=bt.show&&(bt.width>0||bt.height>0),gi=Jn=!0,Ki(t.width,t.height)}return x.forEach(ao),I.forEach(Gr),e?e instanceof HTMLElement?(e.appendChild(d),Sn()):e(r,Sn):Sn(),r}Mr.assign=qn,Mr.fmtNum=Uu,Mr.rangeNum=Gl,Mr.rangeLog=Vl,Mr.rangeAsinh=ju,Mr.orient=ms,Mr.pxRatio=Jt,Mr.join=d_,Mr.fmtDate=Ku,Mr.tzDate=k_,Mr.sync=Om;{Mr.addGap=oA,Mr.clipGaps=Ql;let t=Mr.paths={points:Bm};t.linear=Hm,t.stepped=lA,t.bars=cA,t.spline=hA}var Xm,Zm;function CA(){return Zm||(Zm=1,Xm=function(t,n,e,r,v){var g,p;if(r===void 0)r=0;else if(r=r|0,r<0||r>=t.length)throw new RangeError("invalid lower bound");if(v===void 0)v=t.length-1;else if(v=v|0,v<r||v>=t.length)throw new RangeError("invalid upper bound");for(;r<=v;)if(g=r+(v-r>>>1),p=+e(t[g],n,g,t),p<0)r=g+1;else if(p>0)v=g-1;else return g;return~r}),Xm}var kA=CA();const k2=Gn("y",Wl(kA));var ch,Qm;function _A(){if(Qm)return ch;Qm=1;function t(n,e,r){var v=-1,g=n.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var p=Array(g);++v<g;)p[v]=n[v+e];return p}return ch=t,ch}var uh,ev;function AA(){if(ev)return uh;ev=1;var t=_A();function n(e,r,v){var g=e.length;return v=v===void 0?g:v,!r&&v>=g?e:t(e,r,v)}return uh=n,uh}var hh,tv;function nv(){if(tv)return hh;tv=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,g="\\ufe0e\\ufe0f",p="\\u200d",w=RegExp("["+p+t+v+g+"]");function h(d){return w.test(d)}return hh=h,hh}var dh,rv;function SA(){if(rv)return dh;rv=1;function t(n){return n.split("")}return dh=t,dh}var fh,iv;function $A(){if(iv)return fh;iv=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,g="\\ufe0e\\ufe0f",p="["+t+"]",w="["+v+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="\\u200d",i=d+"?",s="["+g+"]?",f="(?:"+u+"(?:"+[a,l,c].join("|")+")"+s+i+")*",b=s+i+f,x="(?:"+[a+w+"?",w,l,c,p].join("|")+")",I=RegExp(h+"(?="+h+")|"+x+b,"g");function M(A){return A.match(I)||[]}return fh=M,fh}var ph,ov;function MA(){if(ov)return ph;ov=1;var t=SA(),n=nv(),e=$A();function r(v){return n(v)?e(v):t(v)}return ph=r,ph}var gh,sv;function TA(){if(sv)return gh;sv=1;var t=typeof Wo=="object"&&Wo&&Wo.Object===Object&&Wo;return gh=t,gh}var mh,av;function RA(){if(av)return mh;av=1;var t=TA(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return mh=e,mh}var vh,lv;function yh(){if(lv)return vh;lv=1;var t=RA(),n=t.Symbol;return vh=n,vh}var bh,cv;function EA(){if(cv)return bh;cv=1;function t(n,e){for(var r=-1,v=n==null?0:n.length,g=Array(v);++r<v;)g[r]=e(n[r],r,n);return g}return bh=t,bh}var wh,uv;function IA(){if(uv)return wh;uv=1;var t=Array.isArray;return wh=t,wh}var xh,hv;function LA(){if(hv)return xh;hv=1;var t=yh(),n=Object.prototype,e=n.hasOwnProperty,r=n.toString,v=t?t.toStringTag:void 0;function g(p){var w=e.call(p,v),h=p[v];try{p[v]=void 0;var d=!0}catch{}var a=r.call(p);return d&&(w?p[v]=h:delete p[v]),a}return xh=g,xh}var Ch,dv;function OA(){if(dv)return Ch;dv=1;var t=Object.prototype,n=t.toString;function e(r){return n.call(r)}return Ch=e,Ch}var kh,fv;function NA(){if(fv)return kh;fv=1;var t=yh(),n=LA(),e=OA(),r="[object Null]",v="[object Undefined]",g=t?t.toStringTag:void 0;function p(w){return w==null?w===void 0?v:r:g&&g in Object(w)?n(w):e(w)}return kh=p,kh}var _h,pv;function DA(){if(pv)return _h;pv=1;function t(n){return n!=null&&typeof n=="object"}return _h=t,_h}var Ah,gv;function PA(){if(gv)return Ah;gv=1;var t=NA(),n=DA(),e="[object Symbol]";function r(v){return typeof v=="symbol"||n(v)&&t(v)==e}return Ah=r,Ah}var Sh,mv;function FA(){if(mv)return Sh;mv=1;var t=yh(),n=EA(),e=IA(),r=PA(),v=t?t.prototype:void 0,g=v?v.toString:void 0;function p(w){if(typeof w=="string")return w;if(e(w))return n(w,p)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Sh=p,Sh}var $h,vv;function rc(){if(vv)return $h;vv=1;var t=FA();function n(e){return e==null?"":t(e)}return $h=n,$h}var Mh,yv;function zA(){if(yv)return Mh;yv=1;var t=AA(),n=nv(),e=MA(),r=rc();function v(g){return function(p){p=r(p);var w=n(p)?e(p):void 0,h=w?w[0]:p.charAt(0),d=w?t(w,1).join(""):p.slice(1);return h[g]()+d}}return Mh=v,Mh}var Th,bv;function wv(){if(bv)return Th;bv=1;var t=zA(),n=t("toUpperCase");return Th=n,Th}var WA=wv();const BA=Wl(WA);var Rh,xv;function jA(){if(xv)return Rh;xv=1;var t=rc(),n=wv();function e(r){return n(t(r).toLowerCase())}return Rh=e,Rh}var Eh,Cv;function HA(){if(Cv)return Eh;Cv=1;function t(n,e,r,v){var g=-1,p=n==null?0:n.length;for(v&&p&&(r=n[++g]);++g<p;)r=e(r,n[g],g,n);return r}return Eh=t,Eh}var Ih,kv;function UA(){if(kv)return Ih;kv=1;function t(n){return function(e){return n?.[e]}}return Ih=t,Ih}var Lh,_v;function VA(){if(_v)return Lh;_v=1;var t=UA(),n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=t(n);return Lh=e,Lh}var Oh,Av;function GA(){if(Av)return Oh;Av=1;var t=VA(),n=rc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",v="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",p=r+v+g,w="["+p+"]",h=RegExp(w,"g");function d(a){return a=n(a),a&&a.replace(e,t).replace(h,"")}return Oh=d,Oh}var Nh,Sv;function qA(){if(Sv)return Nh;Sv=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}return Nh=n,Nh}var Dh,$v;function KA(){if($v)return Dh;$v=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}return Dh=n,Dh}var Ph,Mv;function YA(){if(Mv)return Ph;Mv=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,g="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",c="\\ufe0e\\ufe0f",u=w+h+d+a,i="['’]",s="["+u+"]",f="["+v+"]",b="\\d+",x="["+g+"]",I="["+p+"]",M="[^"+t+u+b+g+p+l+"]",A="\\ud83c[\\udffb-\\udfff]",C="(?:"+f+"|"+A+")",O="[^"+t+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+l+"]",B="\\u200d",F="(?:"+I+"|"+M+")",N="(?:"+R+"|"+M+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",L=C+"?",W="["+c+"]?",U="(?:"+B+"(?:"+[O,D,E].join("|")+")"+W+L+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Q=W+L+U,le="(?:"+[x,D,E].join("|")+")"+Q,ne=RegExp([R+"?"+I+"+"+$+"(?="+[s,R,"$"].join("|")+")",N+"+"+k+"(?="+[s,R+F,"$"].join("|")+")",R+"?"+F+"+"+$,R+"+"+k,Z,q,b,le].join("|"),"g");function ce(ae){return ae.match(ne)||[]}return Ph=ce,Ph}var Fh,Tv;function JA(){if(Tv)return Fh;Tv=1;var t=qA(),n=KA(),e=rc(),r=YA();function v(g,p,w){return g=e(g),p=w?void 0:p,p===void 0?n(g)?r(g):t(g):g.match(p)||[]}return Fh=v,Fh}var zh,Rv;function XA(){if(Rv)return zh;Rv=1;var t=HA(),n=GA(),e=JA(),r="['’]",v=RegExp(r,"g");function g(p){return function(w){return t(e(n(w).replace(v,"")),p,"")}}return zh=g,zh}var Wh,Ev;function ZA(){if(Ev)return Wh;Ev=1;var t=jA(),n=XA(),e=n(function(r,v,g){return v=v.toLowerCase(),r+(g?t(v):v)});return Wh=e,Wh}var QA=ZA();const eS=Wl(QA),tS=Object.assign({"./ArrayWidget.vue":()=>nt(()=>tt.import("./ArrayWidget-CcQFJGCA-f231b89fb021aba5212e.js"),void 0),"./ArrayplotWidget.vue":()=>nt(()=>tt.import("./ArrayplotWidget-DGJEXAY0-91d5f5f22643db4f83d7.js"),void 0),"./BlockWidget.vue":()=>nt(()=>tt.import("./BlockWidget-BHtugveV-24f4ed2f1875b0e73ce6.js"),void 0),"./ButtonWidget.vue":()=>nt(()=>tt.import("./ButtonWidget-Cc9cYsg8-4c8564e5b813084f0c22.js"),void 0),"./CanvasWidget.vue":()=>nt(()=>tt.import("./CanvasWidget-Bn70gBcc-a0f4bbcadd8ae233c33f.js"),void 0),"./CanvasdotWidget.vue":()=>nt(()=>tt.import("./CanvasdotWidget-CMROfW3O-24b77de6fc57f6c6afa2.js"),void 0),"./CanvasimageWidget.vue":()=>nt(()=>tt.import("./CanvasimageWidget-BpM05v_m-56014748cf3f5ecae65c.js"),void 0),"./CanvasimagevalueWidget.vue":()=>nt(()=>tt.import("./CanvasimagevalueWidget-E6G93iGc-5c7e605915ac0533d0f8.js"),void 0),"./CanvaslabelWidget.vue":()=>nt(()=>tt.import("./CanvaslabelWidget-C074R2Fy-5d5bc71e5a8922b6d5a0.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>nt(()=>tt.import("./CanvaslabelvalueWidget-B0nJeS4X-081388af5418d024ae20.js"),void 0),"./CanvaslineWidget.vue":()=>nt(()=>tt.import("./CanvaslineWidget-CxnNAqOX-ad3e5ec7247519227dd9.js"),void 0),"./CanvaslinevalueWidget.vue":()=>nt(()=>tt.import("./CanvaslinevalueWidget-BwfFyCwH-f5105bf66afc47411398.js"),void 0),"./CheckbuttonWidget.vue":()=>nt(()=>tt.import("./CheckbuttonWidget-yAm10oX0-2a5d7d1e219beeacd56c.js"),void 0),"./ComboboxWidget.vue":()=>nt(()=>tt.import("./ComboboxWidget-BnWksnnp-b547dbc0d3cfb7babaee.js"),void 0),"./DateWidget.vue":()=>nt(()=>tt.import("./DateWidget-CAiG2FIl-8974d2013233ace03575.js"),void 0),"./DynamicWidget.vue":()=>nt(()=>tt.import("./DynamicWidget-BuSbQVhf-92b3a887d161c5debd83.js"),void 0),"./FilechecksumWidget.vue":()=>nt(()=>tt.import("./FilechecksumWidget-DeW9wy5d-53853a7d1f86f4c7bf47.js"),void 0),"./FiledisplayWidget.vue":()=>nt(()=>tt.import("./FiledisplayWidget-C_zPFu2E-1f50702d4e35e8a1b146.js"),void 0),"./FormatvalueWidget.vue":()=>nt(()=>tt.import("./FormatvalueWidget-BrvPWwfN-c719d590d6ca30637196.js"),void 0),"./HorizontalWidget.vue":()=>nt(()=>tt.import("./HorizontalWidget-cFSsdChw-f4b81125e13d416286b5.js"),void 0),"./HorizontalboxWidget.vue":()=>nt(()=>tt.import("./HorizontalboxWidget-CKA7rLGd-21e5cac4595b75ac9019.js"),void 0),"./HorizontallineWidget.vue":()=>nt(()=>tt.import("./HorizontallineWidget-BqbLK0zc-63f04d4d32921b8f0338.js"),void 0),"./IframeWidget.vue":()=>nt(()=>tt.import("./IframeWidget-CITX8Es1-a6d41bb9ddc48a9408f3.js"),void 0),"./ImageviewerWidget.vue":()=>nt(()=>tt.import("./ImageviewerWidget-BIsSA7KD-e07c17c416967936de09.js"),void 0),"./LabelWidget.vue":()=>nt(()=>tt.import("./LabelWidget-FQI-cH_A-fdc45fd4a27f1965c765.js"),void 0),"./LabelledWidget.vue":()=>nt(()=>tt.import("./LabelledWidget-KGXtQ4Zb-2bd96844e73006717b46.js"),void 0),"./LabelprogressbarWidget.vue":()=>nt(()=>tt.import("./LabelprogressbarWidget-72WyzD_Q-83ed58465cbd1c776337.js"),void 0),"./LabelsparklineWidget.vue":()=>nt(()=>tt.import("./LabelsparklineWidget-DtWNf4mK-a384be413f7c4f308093.js"),void 0),"./LabelvalueWidget.vue":()=>nt(()=>tt.import("./LabelvalueWidget-D_JLdY7r-37fcf5b7a01b8405e52d.js"),void 0),"./LabelvaluedescWidget.vue":()=>nt(()=>tt.import("./LabelvaluedescWidget-BppM5vGp-10583a91ca75140f1ad5.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitsbarWidget-B69ogLif-32f7e527784b412c76c3.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitscolumnWidget-DPYwFdgq-88e4af427d0101d6e2c0.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>nt(()=>tt.import("./LabelvaluerangebarWidget-BT0BcOoK-b950af451ee3344ddc13.js"),void 0),"./LedWidget.vue":()=>nt(()=>tt.import("./LedWidget-Cmr6eVG2-18f13db3a2c52267fd78.js"),void 0),"./LimitsbarWidget.vue":()=>nt(()=>tt.import("./LimitsbarWidget-CMvcwa-m-cfc6b4ec3b5292d9e5ad.js"),void 0),"./LimitscolorWidget.vue":()=>nt(()=>tt.import("./LimitscolorWidget-CZ9wMtcI-397b9d7345feb996626c.js"),void 0),"./LimitscolumnWidget.vue":()=>nt(()=>tt.import("./LimitscolumnWidget-r84KJGU--630178083b7420d3dcb1.js"),void 0),"./LinegraphWidget.vue":()=>nt(()=>tt.import("./LinegraphWidget-COGBGOjF-da8b26e4c1c27c91a0a3.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>nt(()=>tt.import("./MatrixbycolumnsWidget-Dx2iz0YF-baaad99786a72a8e5eff.js"),void 0),"./ProgressbarWidget.vue":()=>nt(()=>tt.import("./ProgressbarWidget-DPbAVjdC-950884dfb2ab6b18713e.js"),void 0),"./RadiobuttonWidget.vue":()=>nt(()=>tt.import("./RadiobuttonWidget-iXI9yCDk-bc1e3c1684232c056349.js"),void 0),"./RadiogroupWidget.vue":()=>nt(()=>tt.import("./RadiogroupWidget-CMM_p1eA-b952d23c29c125d9e7e0.js"),void 0),"./RangebarWidget.vue":()=>nt(()=>tt.import("./RangebarWidget-DJXGUHAc-cb3e8fc32ed244040e9f.js"),void 0),"./RollupWidget.vue":()=>nt(()=>tt.import("./RollupWidget-BbWLSsTT-d0bb5029f70ebe3c9ec9.js"),void 0),"./ScrollwindowWidget.vue":()=>nt(()=>tt.import("./ScrollwindowWidget-Dxhp7yKn-df01e5f5b5a0f23385fa.js"),void 0),"./SignalWidget.vue":()=>nt(()=>tt.import("./SignalWidget-65q0tiuo-b8f73bec8cff5e18010d.js"),void 0),"./SpacerWidget.vue":()=>nt(()=>tt.import("./SpacerWidget-DFzbojmX-439544d138673f167cbf.js"),void 0),"./SparklineWidget.vue":()=>nt(()=>tt.import("./SparklineWidget-Bu4I8zY0-5e3ae7c6264fb6221e50.js"),void 0),"./TabbookWidget.vue":()=>nt(()=>tt.import("./TabbookWidget-CELMWyx7-7af33bb0a8a9f8cfd444.js"),void 0),"./TextboxWidget.vue":()=>nt(()=>tt.import("./TextboxWidget-DYsqXntS-9b9ac9b528c39a2e78d8.js"),void 0),"./TextfieldWidget.vue":()=>nt(()=>tt.import("./TextfieldWidget-BIUgV9Q4-d1fa3486ce9e9f86183d.js"),void 0),"./TimeWidget.vue":()=>nt(()=>tt.import("./TimeWidget-BPXcY1Wy-df6106df72f0570f5323.js"),void 0),"./TitleWidget.vue":()=>nt(()=>tt.import("./TitleWidget-DJ9mHRLE-505381536ce922d060cb.js"),void 0),"./ValueWidget.vue":()=>nt(()=>tt.import("./ValueWidget-DzOSy7lp-f87f7987cdf1897032cb.js"),void 0),"./ValuelimitsbarWidget.vue":()=>nt(()=>tt.import("./ValuelimitsbarWidget-D5dSlW6D-07339164d1282f72cccd.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>nt(()=>tt.import("./ValuelimitscolumnWidget-7DXCsVW_-256430774855a4a542bd.js"),void 0),"./ValuerangebarWidget.vue":()=>nt(()=>tt.import("./ValuerangebarWidget-BWjnpmyy-189339a4c5fd1b8e3621.js"),void 0),"./VerticalWidget.vue":()=>nt(()=>tt.import("./VerticalWidget-BOtXAhxt-5e4c9d1cd9f7de6a3a9f.js"),void 0),"./VerticalboxWidget.vue":()=>nt(()=>tt.import("./VerticalboxWidget-RAsXfGdI-d0c453757b2a1bbf74b0.js"),void 0)}),nS=Object.entries(tS).reduce((t,[n,e])=>{n=n.split("/").pop();const r=BA(eS(n.replace(/\.\w+$/,"")));return{...t,[r]:pf(e)}},{}),_2=Gn("w",{components:nS});function Iv(t,n){return function(){return t.apply(n,arguments)}}const{toString:rS}=Object.prototype,{getPrototypeOf:ic}=Object,{iterator:oc,toStringTag:Lv}=Symbol,sc=(t=>n=>{const e=rS.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),qi=t=>(t=t.toLowerCase(),n=>sc(n)===t),ac=t=>n=>typeof n===t,{isArray:oa}=Array,sa=ac("undefined");function Ya(t){return t!==null&&!sa(t)&&t.constructor!==null&&!sa(t.constructor)&&ei(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ov=qi("ArrayBuffer");function iS(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Ov(t.buffer),n}const oS=ac("string"),ei=ac("function"),Nv=ac("number"),Ja=t=>t!==null&&typeof t=="object",sS=t=>t===!0||t===!1,lc=t=>{if(sc(t)!=="object")return!1;const n=ic(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Lv in t)&&!(oc in t)},aS=t=>{if(!Ja(t)||Ya(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},lS=qi("Date"),cS=qi("File"),uS=t=>!!(t&&typeof t.uri<"u"),hS=t=>t&&typeof t.getParts<"u",dS=qi("Blob"),fS=qi("FileList"),pS=t=>Ja(t)&&ei(t.pipe);function gS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Dv=gS(),Pv=typeof Dv.FormData<"u"?Dv.FormData:void 0,mS=t=>{if(!t)return!1;if(Pv&&t instanceof Pv)return!0;const n=ic(t);if(!n||n===Object.prototype||!ei(t.append))return!1;const e=sc(t);return e==="formdata"||e==="object"&&ei(t.toString)&&t.toString()==="[object FormData]"},vS=qi("URLSearchParams"),[yS,bS,wS,xS]=["ReadableStream","Request","Response","Headers"].map(qi),CS=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xa(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),oa(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if(Ya(t))return;const g=e?Object.getOwnPropertyNames(t):Object.keys(t),p=g.length;let w;for(r=0;r<p;r++)w=g[r],n.call(null,t[w],w,t)}}function Fv(t,n){if(Ya(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zv=t=>!sa(t)&&t!==vs;function Bh(){const{caseless:t,skipUndefined:n}=zv(this)&&this||{},e={},r=(v,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;const p=t&&Fv(e,g)||g;lc(e[p])&&lc(v)?e[p]=Bh(e[p],v):lc(v)?e[p]=Bh({},v):oa(v)?e[p]=v.slice():(!n||!sa(v))&&(e[p]=v)};for(let v=0,g=arguments.length;v<g;v++)arguments[v]&&Xa(arguments[v],r);return e}const kS=(t,n,e,{allOwnKeys:r}={})=>(Xa(n,(v,g)=>{e&&ei(v)?Object.defineProperty(t,g,{value:Iv(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,g,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),_S=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),AS=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},SS=(t,n,e,r)=>{let v,g,p;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),g=v.length;g-- >0;)p=v[g],(!r||r(p,t,n))&&!w[p]&&(n[p]=t[p],w[p]=!0);t=e!==!1&&ic(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},$S=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},MS=t=>{if(!t)return null;if(oa(t))return t;let n=t.length;if(!Nv(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},TS=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&ic(Uint8Array)),RS=(t,n)=>{const e=(t&&t[oc]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},ES=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},IS=qi("HTMLFormElement"),LS=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),Wv=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),OS=qi("RegExp"),Bv=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};Xa(e,(v,g)=>{let p;(p=n(v,g,t))!==!1&&(r[g]=p||v)}),Object.defineProperties(t,r)},NS=t=>{Bv(t,(n,e)=>{if(ei(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(ei(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},DS=(t,n)=>{const e={},r=v=>{v.forEach(g=>{e[g]=!0})};return oa(t)?r(t):r(String(t).split(n)),e},PS=()=>{},FS=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function zS(t){return!!(t&&ei(t.append)&&t[Lv]==="FormData"&&t[oc])}const WS=t=>{const n=new Array(10),e=(r,v)=>{if(Ja(r)){if(n.indexOf(r)>=0)return;if(Ya(r))return r;if(!("toJSON"in r)){n[v]=r;const g=oa(r)?[]:{};return Xa(r,(p,w)=>{const h=e(p,v+1);!sa(h)&&(g[w]=h)}),n[v]=void 0,g}}return r};return e(t,0)},BS=qi("AsyncFunction"),jS=t=>t&&(Ja(t)||ei(t))&&ei(t.then)&&ei(t.catch),jv=((t,n)=>t?setImmediate:n?((e,r)=>(vs.addEventListener("message",({source:v,data:g})=>{v===vs&&g===e&&r.length&&r.shift()()},!1),v=>{r.push(v),vs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ei(vs.postMessage)),HS=typeof queueMicrotask<"u"?queueMicrotask.bind(vs):typeof process<"u"&&process.nextTick||jv,US=t=>t!=null&&ei(t[oc]),Ae={isArray:oa,isArrayBuffer:Ov,isBuffer:Ya,isFormData:mS,isArrayBufferView:iS,isString:oS,isNumber:Nv,isBoolean:sS,isObject:Ja,isPlainObject:lc,isEmptyObject:aS,isReadableStream:yS,isRequest:bS,isResponse:wS,isHeaders:xS,isUndefined:sa,isDate:lS,isFile:cS,isReactNativeBlob:uS,isReactNative:hS,isBlob:dS,isRegExp:OS,isFunction:ei,isStream:pS,isURLSearchParams:vS,isTypedArray:TS,isFileList:fS,forEach:Xa,merge:Bh,extend:kS,trim:CS,stripBOM:_S,inherits:AS,toFlatObject:SS,kindOf:sc,kindOfTest:qi,endsWith:$S,toArray:MS,forEachEntry:RS,matchAll:ES,isHTMLForm:IS,hasOwnProperty:Wv,hasOwnProp:Wv,reduceDescriptors:Bv,freezeMethods:NS,toObjectSet:DS,toCamelCase:LS,noop:PS,toFiniteNumber:FS,findKey:Fv,global:vs,isContextDefined:zv,isSpecCompliantForm:zS,toJSONObject:WS,isAsyncFn:BS,isThenable:jS,setImmediate:jv,asap:HS,isIterable:US};let pt=class Z0 extends Error{static from(n,e,r,v,g,p){const w=new Z0(n.message,e||n.code,r,v,g);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),p&&Object.assign(w,p),w}constructor(n,e,r,v,g){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),g&&(this.response=g,this.status=g.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ae.toJSONObject(this.config),code:this.code,status:this.status}}};pt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",pt.ERR_BAD_OPTION="ERR_BAD_OPTION",pt.ECONNABORTED="ECONNABORTED",pt.ETIMEDOUT="ETIMEDOUT",pt.ERR_NETWORK="ERR_NETWORK",pt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",pt.ERR_DEPRECATED="ERR_DEPRECATED",pt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",pt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",pt.ERR_CANCELED="ERR_CANCELED",pt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",pt.ERR_INVALID_URL="ERR_INVALID_URL",pt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const VS=null;function jh(t){return Ae.isPlainObject(t)||Ae.isArray(t)}function Hv(t){return Ae.endsWith(t,"[]")?t.slice(0,-2):t}function Hh(t,n,e){return t?t.concat(n).map(function(r,v){return r=Hv(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function GS(t){return Ae.isArray(t)&&!t.some(jh)}const qS=Ae.toFlatObject(Ae,{},null,function(t){return/^is[A-Z]/.test(t)});function cc(t,n,e){if(!Ae.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=Ae.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,f){return!Ae.isUndefined(f[s])});const r=e.metaTokens,v=e.visitor||l,g=e.dots,p=e.indexes,w=e.Blob||typeof Blob<"u"&&Blob,h=e.maxDepth===void 0?100:e.maxDepth,d=w&&Ae.isSpecCompliantForm(n);if(!Ae.isFunction(v))throw new TypeError("visitor must be a function");function a(s){if(s===null)return"";if(Ae.isDate(s))return s.toISOString();if(Ae.isBoolean(s))return s.toString();if(!d&&Ae.isBlob(s))throw new pt("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(s)||Ae.isTypedArray(s)?d&&typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function l(s,f,b){let x=s;if(Ae.isReactNative(n)&&Ae.isReactNativeBlob(s))return n.append(Hh(b,f,g),a(s)),!1;if(s&&!b&&typeof s=="object"){if(Ae.endsWith(f,"{}"))f=r?f:f.slice(0,-2),s=JSON.stringify(s);else if(Ae.isArray(s)&&GS(s)||(Ae.isFileList(s)||Ae.endsWith(f,"[]"))&&(x=Ae.toArray(s)))return f=Hv(f),x.forEach(function(I,M){!(Ae.isUndefined(I)||I===null)&&n.append(p===!0?Hh([f],M,g):p===null?f:f+"[]",a(I))}),!1}return jh(s)?!0:(n.append(Hh(b,f,g),a(s)),!1)}const c=[],u=Object.assign(qS,{defaultVisitor:l,convertValue:a,isVisitable:jh});function i(s,f,b=0){if(!Ae.isUndefined(s)){if(b>h)throw new pt("Object is too deeply nested ("+b+" levels). Max depth: "+h,pt.ERR_FORM_DATA_DEPTH_EXCEEDED);if(c.indexOf(s)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(s),Ae.forEach(s,function(x,I){(!(Ae.isUndefined(x)||x===null)&&v.call(n,x,Ae.isString(I)?I.trim():I,f,u))===!0&&i(x,f?f.concat(I):[I],b+1)}),c.pop()}}if(!Ae.isObject(t))throw new TypeError("data must be an object");return i(t),n}function Uv(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(e){return n[e]})}function Uh(t,n){this._pairs=[],t&&cc(t,this,n)}const Vv=Uh.prototype;Vv.append=function(t,n){this._pairs.push([t,n])},Vv.toString=function(t){const n=t?function(e){return t.call(this,e,Uv)}:Uv;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function KS(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gv(t,n,e){if(!n)return t;const r=e&&e.encode||KS,v=Ae.isFunction(e)?{serialize:e}:e,g=v&&v.serialize;let p;if(g?p=g(n,v):p=Ae.isURLSearchParams(n)?n.toString():new Uh(n,v).toString(r),p){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+p}return t}let qv=class{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Ae.forEach(this.handlers,function(e){e!==null&&n(e)})}};const Vh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},YS=typeof URLSearchParams<"u"?URLSearchParams:Uh,JS=typeof FormData<"u"?FormData:null,XS=typeof Blob<"u"?Blob:null,ZS={isBrowser:!0,classes:{URLSearchParams:YS,FormData:JS,Blob:XS},protocols:["http","https","file","blob","url","data"]},Gh=typeof window<"u"&&typeof document<"u",qh=typeof navigator=="object"&&navigator||void 0,QS=Gh&&(!qh||["ReactNative","NativeScript","NS"].indexOf(qh.product)<0),e$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t$=Gh&&window.location.href||"http://localhost",n$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gh,hasStandardBrowserEnv:QS,hasStandardBrowserWebWorkerEnv:e$,navigator:qh,origin:t$},Symbol.toStringTag,{value:"Module"})),Tr={...n$,...ZS};function r$(t,n){return cc(t,new Tr.classes.URLSearchParams,{visitor:function(e,r,v,g){return Tr.isNode&&Ae.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...n})}function i$(t){return Ae.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function o$(t){const n={},e=Object.keys(t);let r;const v=e.length;let g;for(r=0;r<v;r++)g=e[r],n[g]=t[g];return n}function Kv(t){function n(e,r,v,g){let p=e[g++];if(p==="__proto__")return!0;const w=Number.isFinite(+p),h=g>=e.length;return p=!p&&Ae.isArray(v)?v.length:p,h?(Ae.hasOwnProp(v,p)?v[p]=Ae.isArray(v[p])?v[p].concat(r):[v[p],r]:v[p]=r,!w):((!v[p]||!Ae.isObject(v[p]))&&(v[p]=[]),n(e,r,v[p],g)&&Ae.isArray(v[p])&&(v[p]=o$(v[p])),!w)}if(Ae.isFormData(t)&&Ae.isFunction(t.entries)){const e={};return Ae.forEachEntry(t,(r,v)=>{n(i$(r),v,e,0)}),e}return null}const aa=(t,n)=>t!=null&&Ae.hasOwnProp(t,n)?t[n]:void 0;function s$(t,n,e){if(Ae.isString(t))try{return(n||JSON.parse)(t),Ae.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const Za={transitional:Vh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=Ae.isObject(t);if(v&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return r?JSON.stringify(Kv(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t)||Ae.isReadableStream(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(v){const p=aa(this,"formSerializer");if(e.indexOf("application/x-www-form-urlencoded")>-1)return r$(t,p).toString();if((g=Ae.isFileList(t))||e.indexOf("multipart/form-data")>-1){const w=aa(this,"env"),h=w&&w.FormData;return cc(g?{"files[]":t}:t,h&&new h,p)}}return v||r?(n.setContentType("application/json",!1),s$(t)):t}],transformResponse:[function(t){const n=aa(this,"transitional")||Za.transitional,e=n&&n.forcedJSONParsing,r=aa(this,"responseType"),v=r==="json";if(Ae.isResponse(t)||Ae.isReadableStream(t))return t;if(t&&Ae.isString(t)&&(e&&!r||v)){const g=!(n&&n.silentJSONParsing)&&v;try{return JSON.parse(t,aa(this,"parseReviver"))}catch(p){if(g)throw p.name==="SyntaxError"?pt.from(p,pt.ERR_BAD_RESPONSE,this,null,aa(this,"response")):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tr.classes.FormData,Blob:Tr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],t=>{Za.headers[t]={}});const a$=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l$=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
1481
|
-
`).forEach(function(g){v=g.indexOf(":"),e=g.substring(0,v).trim().toLowerCase(),r=g.substring(v+1).trim(),!(!e||n[e]&&a$[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},Yv=Symbol("internals"),c$=/[^\x09\x20-\x7E\x80-\xFF]/g;function u$(t){let n=0,e=t.length;for(;n<e;){const r=t.charCodeAt(n);if(r!==9&&r!==32)break;n+=1}for(;e>n;){const r=t.charCodeAt(e-1);if(r!==9&&r!==32)break;e-=1}return n===0&&e===t.length?t:t.slice(n,e)}function Qa(t){return t&&String(t).trim().toLowerCase()}function h$(t){return u$(t.replace(c$,""))}function uc(t){return t===!1||t==null?t:Ae.isArray(t)?t.map(uc):h$(String(t))}function d$(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const f$=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Kh(t,n,e,r,v){if(Ae.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!Ae.isString(n)){if(Ae.isString(r))return n.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(n)}}function p$(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function g$(t,n){const e=Ae.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,g,p){return this[r].call(this,n,v,g,p)},configurable:!0})})}let ti=class{constructor(n){n&&this.set(n)}set(n,e,r){const v=this;function g(w,h,d){const a=Qa(h);if(!a)throw new Error("header name must be a non-empty string");const l=Ae.findKey(v,a);(!l||v[l]===void 0||d===!0||d===void 0&&v[l]!==!1)&&(v[l||h]=uc(w))}const p=(w,h)=>Ae.forEach(w,(d,a)=>g(d,a,h));if(Ae.isPlainObject(n)||n instanceof this.constructor)p(n,e);else if(Ae.isString(n)&&(n=n.trim())&&!f$(n))p(l$(n),e);else if(Ae.isObject(n)&&Ae.isIterable(n)){let w={},h,d;for(const a of n){if(!Ae.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?Ae.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}p(w,e)}else n!=null&&g(e,n,r);return this}get(n,e){if(n=Qa(n),n){const r=Ae.findKey(this,n);if(r){const v=this[r];if(!e)return v;if(e===!0)return d$(v);if(Ae.isFunction(e))return e.call(this,v,r);if(Ae.isRegExp(e))return e.exec(v);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,e){if(n=Qa(n),n){const r=Ae.findKey(this,n);return!!(r&&this[r]!==void 0&&(!e||Kh(this,this[r],r,e)))}return!1}delete(n,e){const r=this;let v=!1;function g(p){if(p=Qa(p),p){const w=Ae.findKey(r,p);w&&(!e||Kh(r,r[w],w,e))&&(delete r[w],v=!0)}}return Ae.isArray(n)?n.forEach(g):g(n),v}clear(n){const e=Object.keys(this);let r=e.length,v=!1;for(;r--;){const g=e[r];(!n||Kh(this,this[g],g,n,!0))&&(delete this[g],v=!0)}return v}normalize(n){const e=this,r={};return Ae.forEach(this,(v,g)=>{const p=Ae.findKey(r,g);if(p){e[p]=uc(v),delete e[g];return}const w=n?p$(g):String(g).trim();w!==g&&delete e[g],e[w]=uc(v),r[w]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const e=Object.create(null);return Ae.forEach(this,(r,v)=>{r!=null&&r!==!1&&(e[v]=n&&Ae.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,e])=>n+": "+e).join(`
|
|
1482
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...e){const r=new this(n);return e.forEach(v=>r.set(v)),r}static accessor(n){const e=(this[Yv]=this[Yv]={accessors:{}}).accessors,r=this.prototype;function v(g){const p=Qa(g);e[p]||(g$(r,g),e[p]=!0)}return Ae.isArray(n)?n.forEach(v):v(n),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(ti.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),Ae.freezeMethods(ti);function Yh(t,n){const e=this||Za,r=n||e,v=ti.from(r.headers);let g=r.data;return Ae.forEach(t,function(p){g=p.call(e,g,v.normalize(),n?n.status:void 0)}),v.normalize(),g}function Jv(t){return!!(t&&t.__CANCEL__)}let el=class extends pt{constructor(n,e,r){super(n??"canceled",pt.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function Xv(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new pt("Request failed with status code "+e.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function m$(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function v$(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,g=0,p;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[g];p||(p=h),e[v]=w,r[v]=h;let a=g,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===g&&(g=(g+1)%t),h-p<n)return;const c=d&&h-d;return c?Math.round(l*1e3/c):void 0}}function y$(t,n){let e=0,r=1e3/n,v,g;const p=(w,h=Date.now())=>{e=h,v=null,g&&(clearTimeout(g),g=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?p(w,h):(v=w,g||(g=setTimeout(()=>{g=null,p(v)},r-d)))},()=>v&&p(v)]}const hc=(t,n,e=3)=>{let r=0;const v=v$(50,250);return y$(g=>{const p=g.loaded,w=g.lengthComputable?g.total:void 0,h=w!=null?Math.min(p,w):p,d=Math.max(0,h-r),a=v(d);r=Math.max(r,h);const l={loaded:h,total:w,progress:w?h/w:void 0,bytes:d,rate:a||void 0,estimated:a&&w?(w-h)/a:void 0,event:g,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},Zv=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},Qv=t=>(...n)=>Ae.asap(()=>t(...n)),b$=Tr.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,Tr.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL(Tr.origin),Tr.navigator&&/(msie|trident)/i.test(Tr.navigator.userAgent)):()=>!0,w$=Tr.hasStandardBrowserEnv?{write(t,n,e,r,v,g,p){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];Ae.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Ae.isString(r)&&w.push(`path=${r}`),Ae.isString(v)&&w.push(`domain=${v}`),g===!0&&w.push("secure"),Ae.isString(p)&&w.push(`SameSite=${p}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function x$(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function C$(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function ey(t,n,e){let r=!x$(n);return t&&(r||e===!1)?C$(t,n):n}const ty=t=>t instanceof ti?{...t}:t;function ys(t,n){n=n||{};const e=Object.create(null);Object.defineProperty(e,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,a,l,c){return Ae.isPlainObject(d)&&Ae.isPlainObject(a)?Ae.merge.call({caseless:c},d,a):Ae.isPlainObject(a)?Ae.merge({},a):Ae.isArray(a)?a.slice():a}function v(d,a,l,c){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d,l,c)}else return r(d,a,l,c)}function g(d,a){if(!Ae.isUndefined(a))return r(void 0,a)}function p(d,a){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(Ae.hasOwnProp(n,l))return r(d,a);if(Ae.hasOwnProp(t,l))return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,allowedSocketPaths:p,responseEncoding:p,validateStatus:w,headers:(d,a,l)=>v(ty(d),ty(a),l,!0)};return Ae.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=Ae.hasOwnProp(h,d)?h[d]:v,l=Ae.hasOwnProp(t,d)?t[d]:void 0,c=Ae.hasOwnProp(n,d)?n[d]:void 0,u=a(l,c,d);Ae.isUndefined(u)&&a!==w||(e[d]=u)}),e}const ny=t=>{const n=ys({},t),e=c=>Ae.hasOwnProp(n,c)?n[c]:void 0,r=e("data");let v=e("withXSRFToken");const g=e("xsrfHeaderName"),p=e("xsrfCookieName");let w=e("headers");const h=e("auth"),d=e("baseURL"),a=e("allowAbsoluteUrls"),l=e("url");if(n.headers=w=ti.from(w),n.url=Gv(ey(d,l,a),t.params,t.paramsSerializer),h&&w.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),Ae.isFormData(r)){if(Tr.hasStandardBrowserEnv||Tr.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if(Ae.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([i,s])=>{u.includes(i.toLowerCase())&&w.set(i,s)})}}if(Tr.hasStandardBrowserEnv&&(Ae.isFunction(v)&&(v=v(n)),v===!0||v==null&&b$(n.url))){const c=g&&p&&w$.read(p);c&&w.set(g,c)}return n},k$=typeof XMLHttpRequest<"u",_$=k$&&function(t){return new Promise(function(n,e){const r=ny(t);let v=r.data;const g=ti.from(r.headers).normalize();let{responseType:p,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,c,u;function i(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=ti.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),I={data:!p||p==="text"||p==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};Xv(function(M){n(M),i()},function(M){e(M),i()},I),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new pt("Request aborted",pt.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const I=x&&x.message?x.message:"Network Error",M=new pt(I,pt.ERR_NETWORK,t,s);M.event=x||null,e(M),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const I=r.transitional||Vh;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new pt(x,I.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,t,s)),s=null},v===void 0&&g.setContentType(null),"setRequestHeader"in s&&Ae.forEach(g.toJSON(),function(x,I){s.setRequestHeader(I,x)}),Ae.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),p&&p!=="json"&&(s.responseType=r.responseType),h&&([l,u]=hc(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,c]=hc(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new el(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=m$(r.url);if(b&&Tr.protocols.indexOf(b)===-1){e(new pt("Unsupported protocol "+b+":",pt.ERR_BAD_REQUEST,t));return}s.send(v||null)})},A$=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const g=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof pt?a:new el(a instanceof Error?a.message:a))}};let p=n&&setTimeout(()=>{p=null,g(new pt(`timeout of ${n}ms exceeded`,pt.ETIMEDOUT))},n);const w=()=>{t&&(p&&clearTimeout(p),p=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),t=null)};t.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>Ae.asap(w),h}},S$=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},$$=async function*(t,n){for await(const e of M$(t))yield*S$(e,n)},M$=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},ry=(t,n,e,r)=>{const v=$$(t,n);let g=0,p,w=h=>{p||(p=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let c=g+=l;e(c)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},iy=64*1024,{isFunction:dc}=Ae,T$=(({Request:t,Response:n})=>({Request:t,Response:n}))(Ae.global),{ReadableStream:oy,TextEncoder:sy}=Ae.global,ay=(t,...n)=>{try{return!!t(...n)}catch{return!1}},R$=t=>{t=Ae.merge.call({skipUndefined:!0},T$,t);const{fetch:n,Request:e,Response:r}=t,v=n?dc(n):typeof fetch=="function",g=dc(e),p=dc(r);if(!v)return!1;const w=v&&dc(oy),h=v&&(typeof sy=="function"?(i=>s=>i.encode(s))(new sy):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&ay(()=>{let i=!1;const s=new e(Tr.origin,{body:new oy,method:"POST",get duplex(){return i=!0,"half"}}),f=s.headers.has("Content-Type");return s.body!=null&&s.body.cancel(),i&&!f}),a=p&&w&&ay(()=>Ae.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new pt(`Response type '${i}' is not supported`,pt.ERR_NOT_SUPPORT,f)})});const c=async i=>{if(i==null)return 0;if(Ae.isBlob(i))return i.size;if(Ae.isSpecCompliantForm(i))return(await new e(Tr.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(i)||Ae.isArrayBuffer(i))return i.byteLength;if(Ae.isURLSearchParams(i)&&(i=i+""),Ae.isString(i))return(await h(i)).byteLength},u=async(i,s)=>Ae.toFiniteNumber(i.getContentLength())??c(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:I,timeout:M,onDownloadProgress:A,onUploadProgress:C,responseType:O,headers:D,withCredentials:E="same-origin",fetchOptions:R}=ny(i),B=n||fetch;O=O?(O+"").toLowerCase():"text";let F=A$([x,I&&I.toAbortSignal()],M),N=null;const $=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await u(D,b))!==0){let Q=new e(s,{method:"POST",body:b,duplex:"half"}),le;if(Ae.isFormData(b)&&(le=Q.headers.get("content-type"))&&D.setContentType(le),Q.body){const[ne,ce]=Zv(k,hc(Qv(C)));b=ry(Q.body,iy,ne,ce)}}Ae.isString(E)||(E=E?"include":"omit");const L=g&&"credentials"in e.prototype;if(Ae.isFormData(b)){const Q=D.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&D.delete("content-type")}const W={...R,signal:F,method:f.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:L?E:void 0};N=g&&new e(s,W);let U=await(g?B(N,R):B(s,W));const q=a&&(O==="stream"||O==="response");if(a&&(A||q&&$)){const Q={};["status","statusText","headers"].forEach(ae=>{Q[ae]=U[ae]});const le=Ae.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=A&&Zv(le,hc(Qv(A),!0))||[];U=new r(ry(U.body,iy,ne,()=>{ce&&ce(),$&&$()}),Q)}O=O||"text";let Z=await l[Ae.findKey(l,O)||"text"](U,i);return!q&&$&&$(),await new Promise((Q,le)=>{Xv(Q,le,{data:Z,headers:ti.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:N})})}catch(L){throw $&&$(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new pt("Network Error",pt.ERR_NETWORK,i,N,L&&L.response),{cause:L.cause||L}):pt.from(L,L&&L.code,i,N,L&&L.response)}}},E$=new Map,ly=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,g=[r,v,e];let p=g.length,w=p,h,d,a=E$;for(;w--;)h=g[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:R$(n)),a=d;return d};ly();const Jh={http:VS,xhr:_$,fetch:{get:ly}};Ae.forEach(Jh,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const cy=t=>`- ${t}`,I$=t=>Ae.isFunction(t)||t===null||t===!1;function L$(t,n){t=Ae.isArray(t)?t:[t];const{length:e}=t;let r,v;const g={};for(let p=0;p<e;p++){r=t[p];let w;if(v=r,!I$(r)&&(v=Jh[(w=String(r)).toLowerCase()],v===void 0))throw new pt(`Unknown adapter '${w}'`);if(v&&(Ae.isFunction(v)||(v=v.get(n))))break;g[w||"#"+p]=v}if(!v){const p=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?p.length>1?`since :
|
|
1483
|
-
`+p.map(cy).join(`
|
|
1484
|
-
`):" "+cy(p[0]):"as no adapter specified";throw new pt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const uy={getAdapter:L$,adapters:Jh};function Xh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new el(null,t)}function hy(t){return Xh(t),t.headers=ti.from(t.headers),t.data=Yh.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),uy.getAdapter(t.adapter||Za.adapter,t)(t).then(function(n){return Xh(t),n.data=Yh.call(t,t.transformResponse,n),n.headers=ti.from(n.headers),n},function(n){return Jv(n)||(Xh(t),n&&n.response&&(n.response.data=Yh.call(t,t.transformResponse,n.response),n.response.headers=ti.from(n.response.headers))),Promise.reject(n)})}const dy="1.15.2",fc={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{fc[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const fy={};fc.transitional=function(t,n,e){function r(v,g){return"[Axios v"+dy+"] Transitional option '"+v+"'"+g+(e?". "+e:"")}return(v,g,p)=>{if(t===!1)throw new pt(r(g," has been removed"+(n?" in "+n:"")),pt.ERR_DEPRECATED);return n&&!fy[g]&&(fy[g]=!0,console.warn(r(g," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,g,p):!0}},fc.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function O$(t,n,e){if(typeof t!="object")throw new pt("options must be an object",pt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const g=r[v],p=Object.prototype.hasOwnProperty.call(n,g)?n[g]:void 0;if(p){const w=t[g],h=w===void 0||p(w,g,t);if(h!==!0)throw new pt("option "+g+" must be "+h,pt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new pt("Unknown option "+g,pt.ERR_BAD_OPTION)}}const pc={assertOptions:O$,validators:fc},Ri=pc.validators;let bs=class{constructor(n){this.defaults=n||{},this.interceptors={request:new qv,response:new qv}}async request(n,e){try{return await this._request(n,e)}catch(r){if(r instanceof Error){let v={};Error.captureStackTrace?Error.captureStackTrace(v):v=new Error;const g=(()=>{if(!v.stack)return"";const p=v.stack.indexOf(`
|
|
1485
|
-
`);return p===-1?"":v.stack.slice(p+1)})();try{if(!r.stack)r.stack=g;else if(g){const p=g.indexOf(`
|
|
1486
|
-
`),w=p===-1?-1:g.indexOf(`
|
|
1487
|
-
`,p+1),h=w===-1?"":g.slice(w+1);String(r.stack).endsWith(h)||(r.stack+=`
|
|
1488
|
-
`+g)}}catch{}}throw r}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=ys(this.defaults,e);const{transitional:r,paramsSerializer:v,headers:g}=e;r!==void 0&&pc.assertOptions(r,{silentJSONParsing:Ri.transitional(Ri.boolean),forcedJSONParsing:Ri.transitional(Ri.boolean),clarifyTimeoutError:Ri.transitional(Ri.boolean),legacyInterceptorReqResOrdering:Ri.transitional(Ri.boolean)},!1),v!=null&&(Ae.isFunction(v)?e.paramsSerializer={serialize:v}:pc.assertOptions(v,{encode:Ri.function,serialize:Ri.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),pc.assertOptions(e,{baseUrl:Ri.spelling("baseURL"),withXsrfToken:Ri.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let p=g&&Ae.merge(g.common,g[e.method]);g&&Ae.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=ti.concat(p,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){if(typeof i.runWhen=="function"&&i.runWhen(e)===!1)return;h=h&&i.synchronous;const s=e.transitional||Vh;s&&s.legacyInterceptorReqResOrdering?w.unshift(i.fulfilled,i.rejected):w.push(i.fulfilled,i.rejected)});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,c;if(!h){const i=[hy.bind(this),void 0];for(i.unshift(...w),i.push(...d),c=i.length,a=Promise.resolve(e);l<c;)a=a.then(i[l++],i[l++]);return a}c=w.length;let u=e;for(;l<c;){const i=w[l++],s=w[l++];try{u=i(u)}catch(f){s.call(this,f);break}}try{a=hy.call(this,u)}catch(i){return Promise.reject(i)}for(l=0,c=d.length;l<c;)a=a.then(d[l++],d[l++]);return a}getUri(n){n=ys(this.defaults,n);const e=ey(n.baseURL,n.url,n.allowAbsoluteUrls);return Gv(e,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(n,e){return this.request(ys(e||{},{method:t,url:n,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,g){return this.request(ys(g||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}bs.prototype[t]=n(),bs.prototype[t+"Form"]=n(!0)});let N$=class Q0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](v);r._listeners=null}),this.promise.then=v=>{let g;const p=new Promise(w=>{r.subscribe(w),g=w}).then(v);return p.cancel=function(){r.unsubscribe(g)},p},n(function(v,g,p){r.reason||(r.reason=new el(v,g,p),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new Q0(function(e){n=e}),cancel:n}}};function D$(t){return function(n){return t.apply(null,n)}}function P$(t){return Ae.isObject(t)&&t.isAxiosError===!0}const Zh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zh).forEach(([t,n])=>{Zh[n]=t});function py(t){const n=new bs(t),e=Iv(bs.prototype.request,n);return Ae.extend(e,bs.prototype,n,{allOwnKeys:!0}),Ae.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return py(ys(t,r))},e}const Kn=Gn("g",py(Za));Kn.Axios=bs,Kn.CanceledError=el,Kn.CancelToken=N$,Kn.isCancel=Jv,Kn.VERSION=dy,Kn.toFormData=cc,Kn.AxiosError=pt,Kn.Cancel=Kn.CanceledError,Kn.all=function(t){return Promise.all(t)},Kn.spread=D$,Kn.isAxiosError=P$,Kn.mergeConfig=ys,Kn.AxiosHeaders=ti,Kn.formToJSON=t=>Kv(Ae.isHTMLForm(t)?new FormData(t):t),Kn.getAdapter=uy.getAdapter,Kn.HttpStatusCode=Zh,Kn.default=Kn;const{Axios:A2,AxiosError:S2,CanceledError:$2,isCancel:M2,CancelToken:T2,VERSION:R2,all:E2,Cancel:I2,isAxiosError:L2,spread:O2,toFormData:N2,AxiosHeaders:D2,HttpStatusCode:P2,formToJSON:F2,getAdapter:z2,mergeConfig:W2}=Kn;function gy(){return Object.assign({},Gs())}function F$(t,n,e){const r=Fr(t,e?.in);return r.setTime(r.getTime()+n*zl),r}function z$(t,n){const e=()=>io(n?.in,NaN),r=H$(t);let v;if(r.date){const h=U$(r.date,2);v=V$(h.restDateString,h.year)}if(!v||isNaN(+v))return e();const g=+v;let p=0,w;if(r.time&&(p=G$(r.time),isNaN(p)))return e();if(r.timezone){if(w=q$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+p),d=Fr(0,n?.in);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return Fr(g+p+w,n?.in)}const gc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},W$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,B$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,j$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function H$(t){const n={},e=t.split(gc.dateTimeDelimiter);let r;if(e.length>2)return n;if(/:/.test(e[0])?r=e[0]:(n.date=e[0],r=e[1],gc.timeZoneDelimiter.test(n.date)&&(n.date=t.split(gc.timeZoneDelimiter)[0],r=t.substr(n.date.length,t.length))),r){const v=gc.timezone.exec(r);v?(n.time=r.replace(v[1],""),n.timezone=v[1]):n.time=r}return n}function U$(t,n){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};const v=r[1]?parseInt(r[1]):null,g=r[2]?parseInt(r[2]):null;return{year:g===null?v:g*100,restDateString:t.slice((r[1]||r[2]).length)}}function V$(t,n){if(n===null)return new Date(NaN);const e=t.match(W$);if(!e)return new Date(NaN);const r=!!e[4],v=tl(e[1]),g=tl(e[2])-1,p=tl(e[3]),w=tl(e[4]),h=tl(e[5])-1;if(r)return Z$(n,w,h)?K$(n,w,h):new Date(NaN);{const d=new Date(0);return!J$(n,g,p)||!X$(n,v)?new Date(NaN):(d.setUTCFullYear(n,g,Math.max(v,p)),d)}}function tl(t){return t?parseInt(t):1}function G$(t){const n=t.match(B$);if(!n)return NaN;const e=Qh(n[1]),r=Qh(n[2]),v=Qh(n[3]);return Q$(e,r,v)?e*Mu+r*zl+v*1e3:NaN}function Qh(t){return t&&parseFloat(t.replace(",","."))||0}function q$(t){if(t==="Z")return 0;const n=t.match(j$);if(!n)return 0;const e=n[1]==="+"?-1:1,r=parseInt(n[2]),v=n[3]&&parseInt(n[3])||0;return eM(r,v)?e*(r*Mu+v*zl):NaN}function K$(t,n,e){const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,g=(n-1)*7+e+1-v;return r.setUTCDate(r.getUTCDate()+g),r}const Y$=[31,null,31,30,31,30,31,31,30,31,30,31];function my(t){return t%400===0||t%4===0&&t%100!==0}function J$(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(Y$[n]||(my(t)?29:28))}function X$(t,n){return n>=1&&n<=(my(t)?366:365)}function Z$(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function Q$(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function eM(t,n){return n>=0&&n<=59}function tM(t,n,e){return F$(t,-n,e)}function vy(t,n,e){const r=gy(),v=iM(t,e.timeZone,e.locale??r.locale);return"formatToParts"in v?nM(v,n):rM(v,n)}function nM(t,n){const e=t.formatToParts(n);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function rM(t,n){const e=t.format(n).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function iM(t,n,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:n,timeZoneName:t})}function oM(t,n){const e=uM(n);return"formatToParts"in e?aM(e,t):lM(e,t)}const sM={year:0,month:1,day:2,hour:3,minute:4,second:5};function aM(t,n){try{const e=t.formatToParts(n),r=[];for(let v=0;v<e.length;v++){const g=sM[e[v].type];g!==void 0&&(r[g]=parseInt(e[v].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function lM(t,n){const e=t.format(n),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const ed={},yy=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")),cM=yy==="06/25/2014, 00:00:00"||yy==="06/25/2014 00:00:00";function uM(t){return ed[t]||(ed[t]=cM?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),ed[t]}function by(t,n,e,r,v,g,p){const w=new Date(0);return w.setUTCFullYear(t,n,e),w.setUTCHours(r,v,g,p),w}const wy=36e5,hM=6e4,td={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function nd(t,n,e){if(!t)return 0;let r=td.timezoneZ.exec(t);if(r)return 0;let v,g;if(r=td.timezoneHH.exec(t),r)return v=parseInt(r[1],10),xy(v)?-(v*wy):NaN;if(r=td.timezoneHHMM.exec(t),r){v=parseInt(r[2],10);const p=parseInt(r[3],10);return xy(v,p)?(g=Math.abs(v)*wy+p*hM,r[1]==="+"?-g:g):NaN}if(pM(t)){n=new Date(n||Date.now());const p=e?n:dM(n),w=rd(p,t);return-(e?w:fM(n,w,t))}return NaN}function dM(t){return by(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function rd(t,n){const e=oM(t,n),r=by(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let v=t.getTime();const g=v%1e3;return v-=g>=0?g:1e3+g,r-v}function fM(t,n,e){let r=t.getTime()-n;const v=rd(new Date(r),e);if(n===v)return n;r-=v-n;const g=rd(new Date(r),e);return v===g?v:Math.max(v,g)}function xy(t,n){return-23<=t&&t<=23&&(n==null||0<=n&&n<=59)}const Cy={};function pM(t){if(Cy[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Cy[t]=!0,!0}catch{return!1}}const gM=60*1e3,mM={X:function(t,n,e){const r=id(e.timeZone,t);if(r===0)return"Z";switch(n){case"X":return ky(r);case"XXXX":case"XX":return la(r);default:return la(r,":")}},x:function(t,n,e){const r=id(e.timeZone,t);switch(n){case"x":return ky(r);case"xxxx":case"xx":return la(r);default:return la(r,":")}},O:function(t,n,e){const r=id(e.timeZone,t);switch(n){case"O":case"OO":case"OOO":return"GMT"+vM(r,":");default:return"GMT"+la(r,":")}},z:function(t,n,e){switch(n){case"z":case"zz":case"zzz":return vy("short",t,e);default:return vy("long",t,e)}}};function id(t,n){const e=t?nd(t,n,!0)/gM:n?.getTimezoneOffset()??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+t);return e}function mc(t,n){const e=t<0?"-":"";let r=Math.abs(t).toString();for(;r.length<n;)r="0"+r;return e+r}function la(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=mc(Math.floor(r/60),2),g=mc(Math.floor(r%60),2);return e+v+n+g}function ky(t,n){return t%60===0?(t>0?"-":"+")+mc(Math.abs(t)/60,2):la(t,n)}function vM(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.floor(r/60),g=r%60;return g===0?e+String(v):e+String(v)+n+mc(g,2)}function _y(t){const n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+t-+n}const yM=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,od=36e5,Ay=6e4,bM=2,Wr={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:yM};function Sy(t,n={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);const e=n.additionalDigits==null?bM:Number(n.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(Object.prototype.toString.call(t)!=="[object String]")return new Date(NaN);const r=wM(t),{year:v,restDateString:g}=xM(r.date,e),p=CM(g,v);if(p===null||isNaN(p.getTime()))return new Date(NaN);if(p){const w=p.getTime();let h=0,d;if(r.time&&(h=kM(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||n.timeZone){if(d=nd(r.timeZone||n.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=_y(new Date(w+h)),d=_y(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function wM(t){const n={};let e=Wr.dateTimePattern.exec(t),r;if(e?(n.date=e[1],r=e[3]):(e=Wr.datePattern.exec(t),e?(n.date=e[1],r=e[2]):(n.date=null,r=t)),r){const v=Wr.timeZone.exec(r);v?(n.time=r.replace(v[1],""),n.timeZone=v[1].trim()):n.time=r}return n}function xM(t,n){if(t){const e=Wr.YYY[n],r=Wr.YYYYY[n];let v=Wr.YYYY.exec(t)||r.exec(t);if(v){const g=v[1];return{year:parseInt(g,10),restDateString:t.slice(g.length)}}if(v=Wr.YY.exec(t)||e.exec(t),v){const g=v[1];return{year:parseInt(g,10)*100,restDateString:t.slice(g.length)}}}return{year:null}}function CM(t,n){if(n===null)return null;let e,r,v;if(!t||!t.length)return e=new Date(0),e.setUTCFullYear(n),e;let g=Wr.MM.exec(t);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Ty(n,r)?(e.setUTCFullYear(n,r),e):new Date(NaN);if(g=Wr.DDD.exec(t),g){e=new Date(0);const p=parseInt(g[1],10);return SM(n,p)?(e.setUTCFullYear(n,0,p),e):new Date(NaN)}if(g=Wr.MMDD.exec(t),g){e=new Date(0),r=parseInt(g[1],10)-1;const p=parseInt(g[2],10);return Ty(n,r,p)?(e.setUTCFullYear(n,r,p),e):new Date(NaN)}if(g=Wr.Www.exec(t),g)return v=parseInt(g[1],10)-1,Ry(v)?$y(n,v):new Date(NaN);if(g=Wr.WwwD.exec(t),g){v=parseInt(g[1],10)-1;const p=parseInt(g[2],10)-1;return Ry(v,p)?$y(n,v,p):new Date(NaN)}return null}function kM(t){let n,e,r=Wr.HH.exec(t);if(r)return n=parseFloat(r[1].replace(",",".")),sd(n)?n%24*od:NaN;if(r=Wr.HHMM.exec(t),r)return n=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),sd(n,e)?n%24*od+e*Ay:NaN;if(r=Wr.HHMMSS.exec(t),r){n=parseInt(r[1],10),e=parseInt(r[2],10);const v=parseFloat(r[3].replace(",","."));return sd(n,e,v)?n%24*od+e*Ay+v*1e3:NaN}return null}function $y(t,n,e){n=n||0,e=e||0;const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,g=n*7+e+1-v;return r.setUTCDate(r.getUTCDate()+g),r}const _M=[31,28,31,30,31,30,31,31,30,31,30,31],AM=[31,29,31,30,31,30,31,31,30,31,30,31];function My(t){return t%400===0||t%4===0&&t%100!==0}function Ty(t,n,e){if(n<0||n>11)return!1;if(e!=null){if(e<1)return!1;const r=My(t);if(r&&e>AM[n]||!r&&e>_M[n])return!1}return!0}function SM(t,n){if(n<1)return!1;const e=My(t);return!(e&&n>366||!e&&n>365)}function Ry(t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function sd(t,n,e){return!(t<0||t>=25||n!=null&&(n<0||n>=60)||e!=null&&(e<0||e>=60))}const $M=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function MM(t,n,e={}){n=String(n);const r=n.match($M);if(r){const v=Sy(e.originalDate||t,e);n=r.reduce(function(g,p){if(p[0]==="'")return g;const w=g.indexOf(p),h=g[w-1]==="'",d=g.replace(p,"'"+mM[p[0]](v,p,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},n)}return us(t,n,e)}function TM(t,n,e){t=Sy(t,e);const r=nd(n,t,!0),v=new Date(t.getTime()-r),g=new Date(0);return g.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),g.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),g}function vc(t,n,e,r){return r={...r,timeZone:n,originalDate:t},MM(TM(t,n,{timeZone:r.timeZone}),e,r)}const yc="yyyy-MM-dd",Ey="HH:mm:ss.SSS",Iy="HH:mm:ss",bc=`${yc} ${Ey}`,Ly=`${yc} ${Iy}`,B2=Gn("R",{methods:{parseDateTime(t,n){return t.includes(" ")&&(t=t.replace(" ","T")),n&&n==="UTC"&&(t+="Z"),Date.parse(t)},formatUtcToLocal(t,n){return us(!n||n==="local"?tM(t,t.getTimezoneOffset()):t,bc)},formatDateTime(t,n){return!n||n==="local"?us(t,bc):vc(t,n,bc)},formatDateTimeHMS(t,n){return!n||n==="local"?us(t,Ly):vc(t,n,Ly)},formatDate:function(t,n){return!n||n==="local"?us(t,yc):vc(t,this.timeZone,yc)},formatTime:function(t,n,e=Ey){return!n||n==="local"?us(t,e):vc(t,this.timeZone,e)},formatTimeHMS:function(t,n){return this.formatTime(t,n,Iy)},formatTimestamp(t,n){return this.formatDateTime(z$(t),n)},formatSeconds(t,n){return this.formatDateTime(new Date(t*1e3),n)},formatNanoseconds(t,n){return this.formatDateTime(new Date(parseInt(t)/1e6),n)}}}),Oy=100,Ny=Gn("c",Rf("app",{state:()=>({notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1,playbackLoading:0}}),getters:{namedWidget:t=>n=>t.namedWidgets[n]},actions:{notifyAddHistory(t){this.notifyHistory.length>=Oy&&(this.notifyHistory.length=Oy-1),this.notifyHistory.unshift(t)},notifyClearHistory(){this.notifyHistory=[]},setNamedWidget(t){Object.assign(this.namedWidgets,t)},clearNamedWidget(t){delete this.namedWidgets[t]},updatePlayback(t){Object.assign(this.playback,t)}}})),ca=Ef();ca.use(({store:t})=>{t.commit=(n,e)=>{typeof t[n]=="function"&&t[n](e)},t.dispatch=(n,e)=>{if(typeof t[n]=="function")return t[n](e)}});const RM=ca.install.bind(ca);ca.install=t=>{RM(t);const n=Ny(ca);t.config.globalProperties.$store={state:new Proxy({},{get(e,r){return n.$state}}),getters:new Proxy({},{get(e,r){if(r.includes("/")){const[,v]=r.split("/");return n[v]}return n[r]}}),commit(e,r){if(e.includes("/")){const[,v]=e.split("/");n[v]?.(r)}else n[e]?.(r)},dispatch(e,r){if(e.includes("/")){const[,v]=e.split("/");return n[v]?.(r)}else return n[e]?.(r)}}};const EM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",IM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number,default:1}},computed:{icons:function(){return EM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const t=zM.indexOf(Dy[this.status]),n=1-(t-1)*.05,e=224*this.scaleFactor*n,r=32*this.scaleFactor*n,v=32*this.scaleFactor*n;return[`background-image: url(${this.icons});`,`background-position-x: -${t*v}px;`,`background-size: ${e}px ${r}px;`,`height: ${v}px;`,`width: ${v}px;`,`padding-top: ${t-1}px;`].join("")}}};function LM(t,n,e,r,v,g){return Wn(),Xr("div",{style:$a(g.iconStyle)},null,4)}const OM=Bs(IM,[["render",LM]]),NM={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function DM(t,n,e,r,v,g){const p=Mn("rux-icon");return Wn(),Fo(p,{size:e.size,icon:e.icon,style:$a(g.colorStyle)},null,8,["size","icon","style"])}const PM=Bs(NM,[["render",DM],["__scopeId","data-v-bb4cd487"]]),Dy={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"},ad={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},FM=function(t){const n="#000000",e="#ffffff",r=ad[Dy[t]];if(r){const v=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,p=+`0x${r.slice(5,7)}`;if((v*299+g*587+p*114)/1e3>128)return n}return e},zM=Object.keys(ad),WM={astro:{component:t=>Ws(PM,{...t})},"astro-status":{component:t=>Ws(OM,{...t,status:t.icon})}},BM={extras:{component:t=>Ws(mw,{...t})}},jM=50,HM=2e3,Py="single-spa:app-change",UM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Py,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},HM)},unmounted(){window.removeEventListener(Py,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(t){this.show=!t.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=su().length>0,su().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},jM)}}},VM={class:"mx-1"},GM={key:1,class:"d-flex justify-center align-center"};function qM(t,n,e,r,v,g){const p=Mn("v-card-title"),w=Mn("v-card-text"),h=Mn("v-card"),d=Mn("v-progress-circular");return Wn(),Xr(Cl,null,[v.show?(Wn(),Fo(h,{key:0},{default:dr(()=>[Cn(p,null,{default:dr(()=>[...n[0]||(n[0]=[Ai(" 404 Not Found ",-1)])]),_:1}),Cn(w,{class:"d-flex align-center mt-3"},{default:dr(()=>[n[1]||(n[1]=Ai(" The requested URL ",-1)),ro("code",VM,Si(t.$route.fullPath),1),n[2]||(n[2]=Ai(" was not routable. ",-1)),n[3]||(n[3]=ro("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):bo("",!0),g.showSpinner?(Wn(),Xr("div",GM,[Cn(d,{indeterminate:""})])):bo("",!0)],64)}const Fy=[{path:"/",name:"TableManager",component:()=>nt(()=>tt.import("./TableManager-1de8a7dfafe124bf884e.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Bs(UM,[["render",qM]])}];Fy.forEach(t=>Of(t));const KM=Mf({history:Tf(),routes:Fy}),{entries:zy,setPrototypeOf:Wy,isFrozen:YM,getPrototypeOf:JM,getOwnPropertyDescriptor:XM}=Object;let{freeze:Br,seal:Ei,create:ua}=Object,{apply:ld,construct:cd}=typeof Reflect<"u"&&Reflect;Br||(Br=function(t){return t}),Ei||(Ei=function(t){return t}),ld||(ld=function(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),v=2;v<e;v++)r[v-2]=arguments[v];return t.apply(n,r)}),cd||(cd=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new t(...e)});const nl=Yn(Array.prototype.forEach),ZM=Yn(Array.prototype.lastIndexOf),By=Yn(Array.prototype.pop),rl=Yn(Array.prototype.push),QM=Yn(Array.prototype.splice),jr=Array.isArray,il=Yn(String.prototype.toLowerCase),ud=Yn(String.prototype.toString),jy=Yn(String.prototype.match),ha=Yn(String.prototype.replace),Hy=Yn(String.prototype.indexOf),eT=Yn(String.prototype.trim),tT=Yn(Number.prototype.toString),nT=Yn(Boolean.prototype.toString),Uy=typeof BigInt>"u"?null:Yn(BigInt.prototype.toString),Vy=typeof Symbol>"u"?null:Yn(Symbol.prototype.toString),Nn=Yn(Object.prototype.hasOwnProperty),ol=Yn(Object.prototype.toString),vr=Yn(RegExp.prototype.test),wc=rT(TypeError);function Yn(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),v=1;v<e;v++)r[v-1]=arguments[v];return ld(t,n,r)}}function rT(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return cd(t,e)}}function Tt(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:il;if(Wy&&Wy(t,null),!jr(n))return t;let r=n.length;for(;r--;){let v=n[r];if(typeof v=="string"){const g=e(v);g!==v&&(YM(n)||(n[r]=g),v=g)}t[v]=!0}return t}function iT(t){for(let n=0;n<t.length;n++)Nn(t,n)||(t[n]=null);return t}function ni(t){const n=ua(null);for(const[e,r]of zy(t))Nn(t,e)&&(jr(r)?n[e]=iT(r):r&&typeof r=="object"&&r.constructor===Object?n[e]=ni(r):n[e]=r);return n}function oT(t){switch(typeof t){case"string":return t;case"number":return tT(t);case"boolean":return nT(t);case"bigint":return Uy?Uy(t):"0";case"symbol":return Vy?Vy(t):"Symbol()";case"undefined":return ol(t);case"function":case"object":{if(t===null)return ol(t);const n=t,e=da(n,"toString");if(typeof e=="function"){const r=e(n);return typeof r=="string"?r:ol(r)}return ol(t)}default:return ol(t)}}function da(t,n){for(;t!==null;){const r=XM(t,n);if(r){if(r.get)return Yn(r.get);if(typeof r.value=="function")return Yn(r.value)}t=JM(t)}function e(){return null}return e}function sT(t){try{return vr(t,""),!0}catch{return!1}}const Gy=Br(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),hd=Br(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),dd=Br(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),aT=Br(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fd=Br(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),lT=Br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qy=Br(["#text"]),Ky=Br(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),pd=Br(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yy=Br(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xc=Br(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),cT=Ei(/\{\{[\w\W]*|[\w\W]*\}\}/gm),uT=Ei(/<%[\w\W]*|[\w\W]*%>/gm),hT=Ei(/\$\{[\w\W]*/gm),dT=Ei(/^data-[\-\w.\u00B7-\uFFFF]+$/),fT=Ei(/^aria-[\-\w]+$/),Jy=Ei(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pT=Ei(/^(?:\w+script|data):/i),gT=Ei(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xy=Ei(/^html$/i),mT=Ei(/^[a-z][.\w]*(-[.\w]+)+$/i);var Zy=Object.freeze({__proto__:null,ARIA_ATTR:fT,ATTR_WHITESPACE:gT,CUSTOM_ELEMENT:mT,DATA_ATTR:dT,DOCTYPE_NAME:Xy,ERB_EXPR:uT,IS_ALLOWED_URI:Jy,IS_SCRIPT_OR_DATA:pT,MUSTACHE_EXPR:cT,TMPLIT_EXPR:hT});const sl={element:1,text:3,progressingInstruction:7,comment:8,document:9},vT=function(){return typeof window>"u"?null:window},yT=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(e=n.getAttribute(r));const v="dompurify"+(e?"#"+e:"");try{return t.createPolicy(v,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+v+" could not be created."),null}},Qy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function eb(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vT();const n=oe=>eb(oe);if(n.version="3.4.1",n.removed=[],!t||!t.document||t.document.nodeType!==sl.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t;const r=e,v=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:p,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:l,DOMParser:c,trustedTypes:u}=t,i=h.prototype,s=da(i,"cloneNode"),f=da(i,"remove"),b=da(i,"nextSibling"),x=da(i,"childNodes"),I=da(i,"parentNode");if(typeof p=="function"){const oe=e.createElement("template");oe.content&&oe.content.ownerDocument&&(e=oe.content.ownerDocument)}let M,A="";const{implementation:C,createNodeIterator:O,createDocumentFragment:D,getElementsByTagName:E}=e,{importNode:R}=r;let B=Qy();n.isSupported=typeof zy=="function"&&typeof I=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:N,TMPLIT_EXPR:$,DATA_ATTR:k,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:q}=Zy;let{IS_ALLOWED_URI:Z}=Zy,Q=null;const le=Tt({},[...Gy,...hd,...dd,...fd,...qy]);let ne=null;const ce=Tt({},[...Ky,...pd,...Yy,...xc]);let ae=Object.seal(ua(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const $e=Object.seal(ua(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Me=!0,Te=!0,Xe=!1,qe=!0,rt=!1,st=!0,et=!1,Pt=!1,yr=!1,_t=!1,rr=!1,kn=!1,br=!0,un=!1;const ir="user-content-";let ut=!0,Ge=!1,At={},Kt=null;const Tn=Tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jn=null;const or=Tt({},["audio","video","img","source","image","track"]);let hn=null;const Dn=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let Rr=Qt,Hr=!1,wr=null;const gi=Tt({},[Rn,Ut,Qt],ud);let mi=Tt({},["mi","mo","mn","ms","mtext"]),Jn=Tt({},["annotation-xml"]);const Ki=Tt({},["title","style","font","a","script"]);let Ur=null;const ws=["application/xhtml+xml","text/html"],Vr="text/html";let bn=null,vi=null;const Co=e.createElement("form"),ri=function(oe){return oe instanceof RegExp||oe instanceof Function},wn=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vi&&vi===oe)return;(!oe||typeof oe!="object")&&(oe={}),oe=ni(oe),Ur=ws.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Vr:oe.PARSER_MEDIA_TYPE,bn=Ur==="application/xhtml+xml"?ud:il,Q=Nn(oe,"ALLOWED_TAGS")&&jr(oe.ALLOWED_TAGS)?Tt({},oe.ALLOWED_TAGS,bn):le,ne=Nn(oe,"ALLOWED_ATTR")&&jr(oe.ALLOWED_ATTR)?Tt({},oe.ALLOWED_ATTR,bn):ce,wr=Nn(oe,"ALLOWED_NAMESPACES")&&jr(oe.ALLOWED_NAMESPACES)?Tt({},oe.ALLOWED_NAMESPACES,ud):gi,hn=Nn(oe,"ADD_URI_SAFE_ATTR")&&jr(oe.ADD_URI_SAFE_ATTR)?Tt(ni(Dn),oe.ADD_URI_SAFE_ATTR,bn):Dn,jn=Nn(oe,"ADD_DATA_URI_TAGS")&&jr(oe.ADD_DATA_URI_TAGS)?Tt(ni(or),oe.ADD_DATA_URI_TAGS,bn):or,Kt=Nn(oe,"FORBID_CONTENTS")&&jr(oe.FORBID_CONTENTS)?Tt({},oe.FORBID_CONTENTS,bn):Tn,de=Nn(oe,"FORBID_TAGS")&&jr(oe.FORBID_TAGS)?Tt({},oe.FORBID_TAGS,bn):ni({}),me=Nn(oe,"FORBID_ATTR")&&jr(oe.FORBID_ATTR)?Tt({},oe.FORBID_ATTR,bn):ni({}),At=Nn(oe,"USE_PROFILES")?oe.USE_PROFILES&&typeof oe.USE_PROFILES=="object"?ni(oe.USE_PROFILES):oe.USE_PROFILES:!1,Me=oe.ALLOW_ARIA_ATTR!==!1,Te=oe.ALLOW_DATA_ATTR!==!1,Xe=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,rt=oe.SAFE_FOR_TEMPLATES||!1,st=oe.SAFE_FOR_XML!==!1,et=oe.WHOLE_DOCUMENT||!1,_t=oe.RETURN_DOM||!1,rr=oe.RETURN_DOM_FRAGMENT||!1,kn=oe.RETURN_TRUSTED_TYPE||!1,yr=oe.FORCE_BODY||!1,br=oe.SANITIZE_DOM!==!1,un=oe.SANITIZE_NAMED_PROPS||!1,ut=oe.KEEP_CONTENT!==!1,Ge=oe.IN_PLACE||!1,Z=sT(oe.ALLOWED_URI_REGEXP)?oe.ALLOWED_URI_REGEXP:Jy,Rr=typeof oe.NAMESPACE=="string"?oe.NAMESPACE:Qt,mi=Nn(oe,"MATHML_TEXT_INTEGRATION_POINTS")&&oe.MATHML_TEXT_INTEGRATION_POINTS&&typeof oe.MATHML_TEXT_INTEGRATION_POINTS=="object"?ni(oe.MATHML_TEXT_INTEGRATION_POINTS):Tt({},["mi","mo","mn","ms","mtext"]),Jn=Nn(oe,"HTML_INTEGRATION_POINTS")&&oe.HTML_INTEGRATION_POINTS&&typeof oe.HTML_INTEGRATION_POINTS=="object"?ni(oe.HTML_INTEGRATION_POINTS):Tt({},["annotation-xml"]);const Ne=Nn(oe,"CUSTOM_ELEMENT_HANDLING")&&oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING=="object"?ni(oe.CUSTOM_ELEMENT_HANDLING):ua(null);if(ae=ua(null),Nn(Ne,"tagNameCheck")&&ri(Ne.tagNameCheck)&&(ae.tagNameCheck=Ne.tagNameCheck),Nn(Ne,"attributeNameCheck")&&ri(Ne.attributeNameCheck)&&(ae.attributeNameCheck=Ne.attributeNameCheck),Nn(Ne,"allowCustomizedBuiltInElements")&&typeof Ne.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=Ne.allowCustomizedBuiltInElements),rt&&(Te=!1),rr&&(_t=!0),At&&(Q=Tt({},qy),ne=ua(null),At.html===!0&&(Tt(Q,Gy),Tt(ne,Ky)),At.svg===!0&&(Tt(Q,hd),Tt(ne,pd),Tt(ne,xc)),At.svgFilters===!0&&(Tt(Q,dd),Tt(ne,pd),Tt(ne,xc)),At.mathMl===!0&&(Tt(Q,fd),Tt(ne,Yy),Tt(ne,xc))),$e.tagCheck=null,$e.attributeCheck=null,Nn(oe,"ADD_TAGS")&&(typeof oe.ADD_TAGS=="function"?$e.tagCheck=oe.ADD_TAGS:jr(oe.ADD_TAGS)&&(Q===le&&(Q=ni(Q)),Tt(Q,oe.ADD_TAGS,bn))),Nn(oe,"ADD_ATTR")&&(typeof oe.ADD_ATTR=="function"?$e.attributeCheck=oe.ADD_ATTR:jr(oe.ADD_ATTR)&&(ne===ce&&(ne=ni(ne)),Tt(ne,oe.ADD_ATTR,bn))),Nn(oe,"ADD_URI_SAFE_ATTR")&&jr(oe.ADD_URI_SAFE_ATTR)&&Tt(hn,oe.ADD_URI_SAFE_ATTR,bn),Nn(oe,"FORBID_CONTENTS")&&jr(oe.FORBID_CONTENTS)&&(Kt===Tn&&(Kt=ni(Kt)),Tt(Kt,oe.FORBID_CONTENTS,bn)),Nn(oe,"ADD_FORBID_CONTENTS")&&jr(oe.ADD_FORBID_CONTENTS)&&(Kt===Tn&&(Kt=ni(Kt)),Tt(Kt,oe.ADD_FORBID_CONTENTS,bn)),ut&&(Q["#text"]=!0),et&&Tt(Q,["html","head","body"]),Q.table&&(Tt(Q,["tbody"]),delete de.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw wc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=oe.TRUSTED_TYPES_POLICY,A=M.createHTML("")}else M===void 0&&(M=yT(u,v)),M!==null&&typeof A=="string"&&(A=M.createHTML(""));Br&&Br(oe),vi=oe},xr=Tt({},[...hd,...dd,...aT]),Er=Tt({},[...fd,...lT]),En=function(oe){let Ne=I(oe);(!Ne||!Ne.tagName)&&(Ne={namespaceURI:Rr,tagName:"template"});const Be=il(oe.tagName),yt=il(Ne.tagName);return wr[oe.namespaceURI]?oe.namespaceURI===Ut?Ne.namespaceURI===Qt?Be==="svg":Ne.namespaceURI===Rn?Be==="svg"&&(yt==="annotation-xml"||mi[yt]):!!xr[Be]:oe.namespaceURI===Rn?Ne.namespaceURI===Qt?Be==="math":Ne.namespaceURI===Ut?Be==="math"&&Jn[yt]:!!Er[Be]:oe.namespaceURI===Qt?Ne.namespaceURI===Ut&&!Jn[yt]||Ne.namespaceURI===Rn&&!mi[yt]?!1:!Er[Be]&&(Ki[Be]||!xr[Be]):!!(Ur==="application/xhtml+xml"&&wr[oe.namespaceURI]):!1},gn=function(oe){rl(n.removed,{element:oe});try{I(oe).removeChild(oe)}catch{f(oe)}},fr=function(oe,Ne){try{rl(n.removed,{attribute:Ne.getAttributeNode(oe),from:Ne})}catch{rl(n.removed,{attribute:null,from:Ne})}if(Ne.removeAttribute(oe),oe==="is")if(_t||rr)try{gn(Ne)}catch{}else try{Ne.setAttribute(oe,"")}catch{}},ii=function(oe){let Ne=null,Be=null;if(yr)oe="<remove></remove>"+oe;else{const jt=jy(oe,/^[\r\n\t ]+/);Be=jt&&jt[0]}Ur==="application/xhtml+xml"&&Rr===Qt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const yt=M?M.createHTML(oe):oe;if(Rr===Qt)try{Ne=new c().parseFromString(yt,Ur)}catch{}if(!Ne||!Ne.documentElement){Ne=C.createDocument(Rr,"template",null);try{Ne.documentElement.innerHTML=Hr?A:yt}catch{}}const dn=Ne.body||Ne.documentElement;return oe&&Be&&dn.insertBefore(e.createTextNode(Be),dn.childNodes[0]||null),Rr===Qt?E.call(Ne,et?"html":"body")[0]:et?Ne.documentElement:dn},so=function(oe){return O.call(oe.ownerDocument||oe,oe,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ao=function(oe){return oe instanceof l&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof a)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},ko=function(oe){return typeof w=="function"&&oe instanceof w};function Ir(oe,Ne,Be){nl(oe,yt=>{yt.call(n,Ne,Be,vi)})}const oi=function(oe){let Ne=null;if(Ir(B.beforeSanitizeElements,oe,null),ao(oe))return gn(oe),!0;const Be=bn(oe.nodeName);if(Ir(B.uponSanitizeElement,oe,{tagName:Be,allowedTags:Q}),st&&oe.hasChildNodes()&&!ko(oe.firstElementChild)&&vr(/<[/\w!]/g,oe.innerHTML)&&vr(/<[/\w!]/g,oe.textContent)||st&&oe.namespaceURI===Qt&&Be==="style"&&ko(oe.firstElementChild)||oe.nodeType===sl.progressingInstruction||st&&oe.nodeType===sl.comment&&vr(/<[/\w]/g,oe.data))return gn(oe),!0;if(de[Be]||!($e.tagCheck instanceof Function&&$e.tagCheck(Be))&&!Q[Be]){if(!de[Be]&&_o(Be)&&(ae.tagNameCheck instanceof RegExp&&vr(ae.tagNameCheck,Be)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(Be)))return!1;if(ut&&!Kt[Be]){const yt=I(oe)||oe.parentNode,dn=x(oe)||oe.childNodes;if(dn&&yt){const jt=dn.length;for(let Cr=jt-1;Cr>=0;--Cr){const Hn=s(dn[Cr],!0);yt.insertBefore(Hn,b(oe))}}}return gn(oe),!0}return oe instanceof h&&!En(oe)||(Be==="noscript"||Be==="noembed"||Be==="noframes")&&vr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(gn(oe),!0):(rt&&oe.nodeType===sl.text&&(Ne=oe.textContent,nl([F,N,$],yt=>{Ne=ha(Ne,yt," ")}),oe.textContent!==Ne&&(rl(n.removed,{element:oe.cloneNode()}),oe.textContent=Ne)),Ir(B.afterSanitizeElements,oe,null),!1)},Gr=function(oe,Ne,Be){if(me[Ne]||br&&(Ne==="id"||Ne==="name")&&(Be in e||Be in Co))return!1;if(!(Te&&!me[Ne]&&vr(k,Ne))&&!(Me&&vr(L,Ne))&&!($e.attributeCheck instanceof Function&&$e.attributeCheck(Ne,oe))){if(!ne[Ne]||me[Ne]){if(!(_o(oe)&&(ae.tagNameCheck instanceof RegExp&&vr(ae.tagNameCheck,oe)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(oe))&&(ae.attributeNameCheck instanceof RegExp&&vr(ae.attributeNameCheck,Ne)||ae.attributeNameCheck instanceof Function&&ae.attributeNameCheck(Ne,oe))||Ne==="is"&&ae.allowCustomizedBuiltInElements&&(ae.tagNameCheck instanceof RegExp&&vr(ae.tagNameCheck,Be)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(Be))))return!1}else if(!hn[Ne]&&!vr(Z,ha(Be,U,""))&&!((Ne==="src"||Ne==="xlink:href"||Ne==="href")&&oe!=="script"&&Hy(Be,"data:")===0&&jn[oe])&&!(Xe&&!vr(W,ha(Be,U,"")))&&Be)return!1}return!0},It=Tt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),_o=function(oe){return!It[il(oe)]&&vr(q,oe)},sr=function(oe){Ir(B.beforeSanitizeAttributes,oe,null);const{attributes:Ne}=oe;if(!Ne||ao(oe))return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let yt=Ne.length;for(;yt--;){const dn=Ne[yt],{name:jt,namespaceURI:Cr,value:Hn}=dn,sn=bn(jt),pr=Hn;let fn=jt==="value"?pr:eT(pr);if(Be.attrName=sn,Be.attrValue=fn,Be.keepAttr=!0,Be.forceKeepAttr=void 0,Ir(B.uponSanitizeAttribute,oe,Be),fn=Be.attrValue,un&&(sn==="id"||sn==="name")&&Hy(fn,ir)!==0&&(fr(jt,oe),fn=ir+fn),st&&vr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,fn)){fr(jt,oe);continue}if(sn==="attributename"&&jy(fn,"href")){fr(jt,oe);continue}if(Be.forceKeepAttr)continue;if(!Be.keepAttr){fr(jt,oe);continue}if(!qe&&vr(/\/>/i,fn)){fr(jt,oe);continue}rt&&nl([F,N,$],lo=>{fn=ha(fn,lo," ")});const gr=bn(oe.nodeName);if(!Gr(gr,sn,fn)){fr(jt,oe);continue}if(M&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!Cr)switch(u.getAttributeType(gr,sn)){case"TrustedHTML":{fn=M.createHTML(fn);break}case"TrustedScriptURL":{fn=M.createScriptURL(fn);break}}if(fn!==pr)try{Cr?oe.setAttributeNS(Cr,jt,fn):oe.setAttribute(jt,fn),ao(oe)?gn(oe):By(n.removed)}catch{fr(jt,oe)}}Ir(B.afterSanitizeAttributes,oe,null)},_n=function(oe){let Ne=null;const Be=so(oe);for(Ir(B.beforeSanitizeShadowDOM,oe,null);Ne=Be.nextNode();)Ir(B.uponSanitizeShadowNode,Ne,null),oi(Ne),sr(Ne),Ne.content instanceof g&&_n(Ne.content);Ir(B.afterSanitizeShadowDOM,oe,null)};return n.sanitize=function(oe){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,yt=null,dn=null,jt=null;if(Hr=!oe,Hr&&(oe="<!-->"),typeof oe!="string"&&!ko(oe)&&(oe=oT(oe),typeof oe!="string"))throw wc("dirty is not a string, aborting");if(!n.isSupported)return oe;if(Pt||wn(Ne),n.removed=[],typeof oe=="string"&&(Ge=!1),Ge){const sn=oe.nodeName;if(typeof sn=="string"){const pr=bn(sn);if(!Q[pr]||de[pr])throw wc("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof w)Be=ii("<!---->"),yt=Be.ownerDocument.importNode(oe,!0),yt.nodeType===sl.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?Be=yt:Be.appendChild(yt);else{if(!_t&&!rt&&!et&&oe.indexOf("<")===-1)return M&&kn?M.createHTML(oe):oe;if(Be=ii(oe),!Be)return _t?null:kn?A:""}Be&&yr&&gn(Be.firstChild);const Cr=so(Ge?oe:Be);for(;dn=Cr.nextNode();)oi(dn),sr(dn),dn.content instanceof g&&_n(dn.content);if(Ge)return oe;if(_t){if(rt){Be.normalize();let sn=Be.innerHTML;nl([F,N,$],pr=>{sn=ha(sn,pr," ")}),Be.innerHTML=sn}if(rr)for(jt=D.call(Be.ownerDocument);Be.firstChild;)jt.appendChild(Be.firstChild);else jt=Be;return(ne.shadowroot||ne.shadowrootmode)&&(jt=R.call(r,jt,!0)),jt}let Hn=et?Be.outerHTML:Be.innerHTML;return et&&Q["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&vr(Xy,Be.ownerDocument.doctype.name)&&(Hn="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
|
|
1489
|
-
`+Hn),rt&&nl([F,N,$],sn=>{Hn=ha(Hn,sn," ")}),M&&kn?M.createHTML(Hn):Hn},n.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wn(oe),Pt=!0},n.clearConfig=function(){vi=null,Pt=!1},n.isValidAttribute=function(oe,Ne,Be){vi||wn({});const yt=bn(oe),dn=bn(Ne);return Gr(yt,dn,Be)},n.addHook=function(oe,Ne){typeof Ne=="function"&&rl(B[oe],Ne)},n.removeHook=function(oe,Ne){if(Ne!==void 0){const Be=ZM(B[oe],Ne);return Be===-1?void 0:QM(B[oe],Be,1)[0]}return By(B[oe])},n.removeHooks=function(oe){B[oe]=[]},n.removeAllHooks=function(){B=Qy()},n}var bT=eb();const wT={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"}},xT={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:t=>!!t||"Required.",match:t=>t===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`},sanitizedText:function(){return bT.sanitize(this.params.text)}},methods:{dialog:function(t,n,e){this.params=t,this.show=!0,this.resolve=n,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},CT=["innerHTML"],kT={key:2},_T={key:3,class:"validate mt-4"};function AT(t,n,e,r,v,g){const p=Mn("v-spacer"),w=Mn("v-toolbar"),h=Mn("v-icon"),d=Mn("v-text-field"),a=Mn("v-card-text"),l=Mn("v-btn"),c=Mn("v-card-actions"),u=Mn("v-card"),i=Mn("v-dialog"),s=Mn("v-app");return Wn(),Fo(s,null,{default:dr(()=>[Cn(i,{modelValue:t.show,"onUpdate:modelValue":n[1]||(n[1]=f=>t.show=f),persistent:"",width:"600",onKeydown:kf(g.cancel,["esc"])},{default:dr(()=>[Cn(u,null,{default:dr(()=>[Cn(w,{height:"24"},{default:dr(()=>[Cn(p),ro("span",null,Si(t.params.title),1),Cn(p)]),_:1}),Cn(a,{class:"mt-4 pa-3"},{default:dr(()=>[t.params.validateText?(Wn(),Fo(h,{key:0,class:"mr-2"},{default:dr(()=>[...n[2]||(n[2]=[Ai(" mdi-alert ",-1)])]),_:1})):bo("",!0),t.params.html?(Wn(),Xr("span",{key:1,innerHTML:g.sanitizedText},null,8,CT)):(Wn(),Xr("span",kT,Si(g.sanitizedText),1)),t.params.validateText?(Wn(),Xr("div",_T,[Ai(" Enter "+Si(t.params.validateText)+" to confirm! ",1),Cn(d,{modelValue:t.validationText,"onUpdate:modelValue":n[0]||(n[0]=f=>t.validationText=f),variant:"solo",density:"compact","single-line":"",rules:[t.rules.required,t.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):bo("",!0)]),_:1}),Cn(c,{class:"px-2"},{default:dr(()=>[Cn(p),t.params.cancelText?(Wn(),Fo(l,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:dr(()=>[Ai(Si(t.params.cancelText),1)]),_:1},8,["data-test","onClick"])):bo("",!0),Cn(l,{variant:"flat",color:t.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:dr(()=>[Ai(Si(t.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const ST=Bs(xT,[["render",AT],["__scopeId","data-v-53691296"]]);class $T{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const n=window.Vue.createApp(ST);n.use(md);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({title:n,text:e,okText:r,okClass:v,validateText:g,cancelText:p,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:n,text:e,okText:r,okClass:v,validateText:g,cancelText:p,html:w},h,d)})}confirm(n,{okText:e="Ok",cancelText:r="Cancel",okClass:v="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:v,validateText:null,cancelText:r,html:!1})}alert(n,{okText:e="Ok",html:r=!1,okClass:v="primary"}){return this.open({title:"Alert",text:n,okText:e,okClass:v,validateText:null,cancelText:null,html:r})}validate(n,{okText:e="Ok",validateText:r="CONFIRM",cancelText:v="Cancel",okClass:g="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:g,validateText:r,cancelText:v,html:!1})}}const MT={install(t,n){const e=new $T;t.provide("dialog",e),t.config.globalProperties.hasOwnProperty("$dialog")||(t.config.globalProperties.$dialog=e)}},TT={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){return this.toastNotification.type==="notification"?"mdi-bell":"mdi-alert-box"},toastStyle:function(){return`
|
|
1490
|
-
--toast-bg-color:${ad[this.toastNotification.level]};
|
|
1491
|
-
--toast-fg-color:${FM(this.toastNotification.level)};
|
|
1492
|
-
`},contentStyle:function(){return`
|
|
1493
|
-
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1494
|
-
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1495
|
-
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1496
|
-
`}},methods:{toast:function(t,n){this.noToastPaths.includes(window.location.pathname)||(n===void 0&&(n=5e3),this.toastNotification=t,this.showToast=!0,this.cancelAutohide(),n&&(this.timeout=setTimeout(()=>{this.hide()},n)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},RT={key:0,class:"text-subtitle-1 mr-1 notification-text"},ET={key:1,class:"text-body-2 notification-text"},IT={key:2,class:"text-body-2 notification-text"};function LT(t,n,e,r,v,g){const p=Mn("v-icon"),w=Mn("v-spacer"),h=Mn("v-btn"),d=Mn("v-sheet"),a=Mn("v-slide-y-transition");return Wn(),Fo(a,null,{default:dr(()=>[_f(Cn(d,{style:$a(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:dr(()=>[Cn(p,{class:"mr-1 notification-text"},{default:dr(()=>[Ai(Si(g.toastNotificationIcon),1)]),_:1}),ro("div",{class:"toast-content",style:$a(g.contentStyle)},[t.toastNotification.title?(Wn(),Xr("span",RT,[t.toastNotification.body||t.toastNotification.message?(Wn(),Xr(Cl,{key:0},[Ai(Si(t.toastNotification.title)+": ",1)],64)):(Wn(),Xr(Cl,{key:1},[Ai(Si(t.toastNotification.title),1)],64))])):bo("",!0),t.toastNotification.body?(Wn(),Xr("span",ET,Si(t.toastNotification.body),1)):bo("",!0),t.toastNotification.message?(Wn(),Xr("span",IT,Si(t.toastNotification.message),1)):bo("",!0)],4),Cn(w),Cn(h,{variant:"text",class:"notification-text",onClick:Af(g.hide,["stop"])},{default:dr(()=>[...n[0]||(n[0]=[Ai(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Sf,t.showToast]])]),_:1})}const OT=Bs(TT,[["render",LT],["__scopeId","data-v-ef96840d"]]);class NT{constructor(n={}){this.store=null,this.mounted=!1,this.$root=null,window.$cosmosNotify?.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}getStore(){return this.store||(this.store=Ny()),this.store}mount(){if(this.mounted)return;const n=ou(OT);n.use(md);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({method:n,title:e,body:r,message:v,level:g,duration:p,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(v?`${g.toUpperCase()} - ${v}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.getStore().notifyAddHistory({title:e,body:r,message:v,level:g}),this[n]({title:e,body:r,message:v,level:g,duration:p,type:w})}toast({title:n,body:e,message:r,level:v,duration:g,type:p}){this.$root.toast({title:n,body:e,message:r,level:v,type:p},g)}critical({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"critical",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}FATAL(n){this.critical(n)}ERROR(n){this.critical(n)}serious({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"serious",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}caution({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"caution",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}WARN(n){this.caution(n)}normal({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"normal",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}INFO(n){this.normal(n)}DEBUG(n){this.normal(n)}standby({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"standby",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}off({title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"off",title:n,body:e,message:r,type:v,duration:g,logToConsole:p,saveToHistory:w})}}const DT={install(t,n){const e=new NT(n);t.provide("notify",e),t.config.globalProperties.hasOwnProperty("$notify")||(t.config.globalProperties.$notify=e)}};function PT(t){mf(`Vuetify: ${t}`)}function tb(t){let n;return t!==null&&typeof t=="object"&&((n=Object.getPrototypeOf(t))===Object.prototype||n===null)}function FT(t,n){const e={};for(const r of n)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function nb(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const v in t)r[v]=t[v];for(const v in n){const g=t[v],p=n[v];if(tb(g)&&tb(p)){r[v]=nb(g,p,e);continue}if(e&&Array.isArray(g)&&Array.isArray(p)){r[v]=e(g,p);continue}r[v]=p}return r}function al(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(al.cache.has(t))return al.cache.get(t);const n=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return al.cache.set(t,n),n}al.cache=new Map;function rb(t,n){return e=>Object.keys(t).reduce((r,v)=>{const g=typeof t[v]=="object"&&t[v]!=null&&!Array.isArray(t[v])?t[v]:{type:t[v]};return e&&v in e?r[v]={...g,default:e[v]}:r[v]=g,n&&!r[v].source&&(r[v].source=n),r},{})}function ib(t,n){const e=xf();if(!e)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return e}function zT(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ib("injectSelf");const{provides:e}=n;if(e&&t in e)return e[t]}const gd=Symbol.for("vuetify:defaults");function ob(){const t=vf(gd);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function WT(t,n){return t.props&&(typeof t.props[n]<"u"||typeof t.props[al(n)]<"u")}function BT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ob();const r=ib("useDefaults");if(n=n??r.type.name??r.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const v=iu(()=>e.value?.[t._as??n]),g=new Proxy(t,{get(h,d){const a=Reflect.get(h,d);if(d==="class"||d==="style")return[v.value?.[d],a].filter(u=>u!=null);if(WT(r.vnode,d))return a;const l=v.value?.[d];if(l!==void 0)return l;const c=e.value?.global?.[d];return c!==void 0?c:a}}),p=yf();bf(()=>{if(v.value){const h=Object.entries(v.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});p.value=h.length?Object.fromEntries(h):void 0}else p.value=void 0});function w(){const h=zT(gd,r);Cf(gd,iu(()=>p.value?nb(h?.value??{},p.value):h?.value))}return{props:g,provideSubDefaults:w}}function Cc(t){if(t._setup=t._setup??t.setup,!t.name)return PT("The component is missing an explicit name, unable to generate default prop value"),t;if(t._setup){t.props=rb(t.props??{},t.name)();const n=Object.keys(t.props).filter(e=>e!=="class"&&e!=="style");t.filterProps=function(e){return FT(e,n)},t.props._as=String,t.setup=function(e,r){const v=ob();if(!v.value)return t._setup(e,r);const{props:g,provideSubDefaults:p}=BT(e,e._as??t.name,v),w=t._setup(g,r);return p(),w}}return t}function jT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(t?Cc:gf)(n)}const HT=[String,Function,Object,Array],kc=rb({icon:{type:HT},tag:{type:[String,Object,Function],required:!0}},"icon");jT()({name:"VComponentIcon",props:kc(),setup(t,n){let{slots:e}=n;return()=>{const r=t.icon;return Cn(t.tag,null,{default:()=>[t.icon?Cn(r,null,null):e.default?.()]})}}}),Cc({name:"VSvgIcon",inheritAttrs:!1,props:kc(),setup(t,n){let{attrs:e}=n;return()=>Cn(t.tag,$f(e,{style:null}),{default:()=>[ro("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(r=>Array.isArray(r)?ro("path",{d:r[0],"fill-opacity":r[1]},null):ro("path",{d:r},null)):ro("path",{d:t.icon},null)])]})}}),Cc({name:"VLigatureIcon",props:kc(),setup(t){return()=>Cn(t.tag,null,{default:()=>[t.icon]})}});const UT=Cc({name:"VClassIcon",props:kc(),setup(t){return()=>Cn(t.tag,{class:wf(t.icon)},null)}}),VT={component:t=>Ws(UT,{...t,class:"mdi"})},GT={dark:!0,colors:{primary:"#007ad0",secondary:"#4da3e0",tertiary:"#858585",surface:"#1f1f1f",background:"#161616","on-surface":"#d4d4d4","on-background":"#d4d4d4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},qT={dark:!0,colors:{primary:"#5B52E0",secondary:"#8078F0",tertiary:"#7E8696",surface:"#24242F",background:"#1A1A24","on-surface":"#D0D4DC","on-background":"#D0D4DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},KT={dark:!0,colors:{primary:"#0097A7",secondary:"#26C6DA",tertiary:"#708090",surface:"#242D36",background:"#1A2027","on-surface":"#D4DCE4","on-background":"#D4DCE4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},YT={dark:!0,colors:{primary:"#00897B",secondary:"#26A69A",tertiary:"#6E7680",surface:"#222428",background:"#181A1C","on-surface":"#D4D8DC","on-background":"#D4D8DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},md=If({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:wT,cosmosDarkCobalt:GT,cosmosDarkIndigo:qT,cosmosDarkSlate:KT,cosmosDarkEmerald:YT}},defaults:{VCheckbox:{color:"secondary"},VCheckboxBtn:{color:"secondary"},VRadio:{color:"secondary"},VRadioGroup:{color:"secondary"},VSwitch:{color:"secondary"}},icons:{defaultSet:"mdi",sets:{mdi:VT,...WM,...BM}}}),vd=nw({createApp:ou,appOptions:{render(){return Ws(uw,{})},el:"#openc3-tool"},handleInstance:t=>{t.use(KM),t.use(ca),t.use(md),t.use(MT),t.use(DT)}}),H2=Gn("p",vd.bootstrap),U2=Gn("r",vd.mount),V2=Gn("s",vd.unmount)})}}));
|