openc3-cosmos-tool-admin 6.0.2 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/admin/ArrayWidget-DzHELdHv-cf5adfa1838cab0270f0.js +2 -0
- data/tools/admin/ArrayplotWidget-BDvziGSm-f5d50e93d7371a2a475f.js +1 -0
- data/tools/admin/{BarColumn-B6tCmNJm-9ca6a3b942d168ebcdb8.js → BarColumn-CNhS2KKq-132f79e7b3dabc61c180.js} +1 -1
- data/tools/admin/BlockWidget-D0On4x3d-d3e7e856072d714fa58e.js +2 -0
- data/tools/admin/{ButtonWidget-CHrHS_Bw-4dc21e7684ae5277a10c.js → ButtonWidget-BOYLHMt4-a78a02b11dceb12c965e.js} +2 -2
- data/tools/admin/CanvasWidget-CQIqiLEy-b372eb886b6d9b8e1116.js +1 -0
- data/tools/admin/CanvasdotWidget-BVWutPMF-8e497a46f5c895bef11f.js +1 -0
- data/tools/admin/{CanvasimageWidget-BrYlPQCf-99a2f7e1d841f8a80652.js → CanvasimageWidget-ayu_ASKf-cdd9756836662c81b2ab.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-HnEOXmZy-f4c2e448abcd2dc9b369.js → CanvasimagevalueWidget-mv319g5T-653da344ef85fc4b9066.js} +1 -1
- data/tools/admin/CanvaslabelWidget-BNjbXDb8-9521151a10cec5611247.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-0zRDJav3-b25fde925a4dde4f4459.js → CanvaslabelvalueWidget-CrhPwTSP-4ab1e27e14a1fff7e5c7.js} +1 -1
- data/tools/admin/CanvaslineWidget--HdKH6oO-fb81f60216243f239018.js +1 -0
- data/tools/admin/CanvaslinevalueWidget-CJsuF6RY-184e134e07ff7b5e424e.js +1 -0
- data/tools/admin/CheckbuttonWidget-CQ2HlgIk-beb3f626b444680c4918.js +1 -0
- data/tools/admin/ComboboxWidget-BxILACwz-4b284dcd23feef8753a6.js +1 -0
- data/tools/admin/{DateWidget-FtYD86xW-ed78614e5361796e3247.js → DateWidget-CIkO0xqH-70af5e8d3bdafcc948a8.js} +1 -1
- data/tools/admin/{DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js → DetailsDialog-DyGpm5TP-e536d97e33e0e37bdcd4.js} +1 -1
- data/tools/admin/{DynamicWidget-m9EliUR2-f9ce5441cacabbe60173.js → DynamicWidget-gFSYxzvT-b0f42e8e4e31be07be5f.js} +1 -1
- data/tools/admin/{FormatvalueWidget-OykwwCrw-5ee46e53f13ac3d6701e.js → FormatvalueWidget-D8-EO_3E-9f02667c69f3c22e6bed.js} +1 -1
- data/tools/admin/Graph-EV7oK3qM-bb262feb2f53fb082ca2.js +1 -0
- data/tools/admin/GraphWidget-BTNYbd21-a521f8c9ba3aa2f7f409.js +1 -0
- data/tools/admin/{HorizontalWidget-B7YdcFVN-4a39cc6c6467fa45c8c9.js → HorizontalWidget-Bp-qtqoh-44b7a80962e1c7e8b4be.js} +1 -1
- data/tools/admin/HorizontalboxWidget-CrJuGY3s-bea5dff728d5d6f55d51.js +1 -0
- data/tools/admin/HorizontallineWidget-CbxREBYI-6475b9d462406b21e064.js +1 -0
- data/tools/admin/{IframeWidget-0C7GYEVc-e7376740a6235e4812db.js → IframeWidget-DusiWNNj-33aebb5c3c53dc9ee943.js} +1 -1
- data/tools/admin/ImageLoader-BapCB-Li-ba558e4b0349c9fff8f6.js +1 -0
- data/tools/admin/{ImageviewerWidget-B4HbUIfR-a00a0d3b8fe6d84d7306.js → ImageviewerWidget-c0gJ9VDC-f3ce6fdd2b34815b3ad8.js} +1 -1
- data/tools/admin/InterfacesTab-BgBHPbYU-ea6bcfbfdf04d778b00e.js +1 -0
- data/tools/admin/{LabelWidget-D1JhQAzR-3b197382850460b21e5a.js → LabelWidget-pPgc0ve3-439a92e6fbe36f559d71.js} +1 -1
- data/tools/admin/{LabelledWidget-C2VGJ5OJ-df9b3b7fce21b2fd3c0c.js → LabelledWidget-CkNjby55-6ddf8cef8ee0d2f72f49.js} +1 -1
- data/tools/admin/{LabelprogressbarWidget-DN0cAeLK-cc27e24e29aff05d667d.js → LabelprogressbarWidget-e2R2yQKw-a95de1b9b83833763126.js} +1 -1
- data/tools/admin/LabelsparklineWidget-D7MQ_oNw-1de5aa49b9139e76b344.js +1 -0
- data/tools/admin/LabelvalueWidget-4DShBBvr-dd454968f34369b0bbb2.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-DtJwggDu-8f5ffd383ebe39917112.js → LabelvaluedescWidget-Z1m8Bi6N-ab155461e744793981ce.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-DVa-oYxU-f264286cf044a6708c3b.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-DduuX632-585261d45efc4ebc082a.js +1 -0
- data/tools/admin/{LabelvaluerangebarWidget-DCJ42bmf-e52d8579650ec3d75800.js → LabelvaluerangebarWidget-BR9vXOlt-c5210ff00d810e437d7b.js} +1 -1
- data/tools/admin/{Layout-D4YBjuWs-3a490c22141994a23366.js → Layout-Bk8EGxbP-f60820efd4b473576522.js} +1 -1
- data/tools/admin/LedWidget-f7bf8ls_-54d0c26a918b0ac3a0f5.js +1 -0
- data/tools/admin/{LimitsbarWidget-D-wfz_St-85844bd4c9a6e5782f57.js → LimitsbarWidget-B7fHaDcJ-569ade0445f3bb2acc10.js} +1 -1
- data/tools/admin/{LimitscolorWidget-B0AVGdkz-c473b45d46ee31cdfa59.js → LimitscolorWidget-CpC4D_TC-13db36999c3549186478.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-Dt5ce4hN-391c67ae85d2fa51055e.js → LimitscolumnWidget-C9FbNC-U-5e1e1c85465841076cd7.js} +1 -1
- data/tools/admin/LinegraphWidget-DkWDQ_3K-b330b2d3d502d52de6ed.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-wLx4NvXV-72377a621dc0bae83cdf.js → MatrixbycolumnsWidget-CHJDyYa3-cfddb2a4b348ab05a2dd.js} +1 -1
- data/tools/admin/{MicroservicesTab-CWf6UOgI-b4b60ecff4d31dae4aa8.js → MicroservicesTab-BEV_rdfR-7a67dfc2f264531dc46a.js} +1 -1
- data/tools/admin/{OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js → OutputDialog-C3MdTQ3d-cd8eb4a2cb8ebcbb1d2d.js} +1 -1
- data/tools/admin/PackagesTab-DtxOIZu6-9f1415581b9fc80a9f63.js +1 -0
- data/tools/admin/{PluginsTab-CJXN3NPm-dfd0735009f8867c79bc.js → PluginsTab-BA8i6noW-ec73e748b2305bd36bbe.js} +4 -4
- data/tools/admin/{ProgressbarWidget-B7l0BBiX-a5031b61d856a8da1127.js → ProgressbarWidget-CRZDxClT-e8e9e4b68649cc0d9f8a.js} +1 -1
- data/tools/admin/RadiobuttonWidget-BW4yFweH-7ed955a4914d627fe1c4.js +1 -0
- data/tools/admin/{RadiogroupWidget-Busjqikr-ccb5f63580cfa3a6669b.js → RadiogroupWidget-_0bVCHjr-e7d4f04e52803d2fa070.js} +1 -1
- data/tools/admin/{RangebarWidget-DbYrwEfC-80ec2d6bc7c71c951f35.js → RangebarWidget-CEQFiG4l-29e79471c8b8fd99a429.js} +1 -1
- data/tools/admin/{RedisTab-BwSYwFqz-3119c9906a91eaf4d7be.js → RedisTab-C6BFYfSy-e6c17c5f376a8bac1530.js} +1 -1
- data/tools/admin/{RollupWidget-rKxLXuCv-1c2837bf382916555b3c.js → RollupWidget-579c7y0R-151a6747e352114705a2.js} +1 -1
- data/tools/admin/{RoutersTab-DHNCXBbM-1a90a758680839afe5bd.js → RoutersTab-DkastnpG-7abd8b072329de36ba5f.js} +1 -1
- data/tools/admin/ScrollwindowWidget-Kcre9gM3-b296e5040c0cad4ac9f4.js +1 -0
- data/tools/admin/{SecretsTab-Dn8_2IXp-734c000bb5e97fff6d7d.js → SecretsTab-Dw5QQhmY-3f50277ae9fe4296f427.js} +1 -1
- data/tools/admin/SettingsTab-BM7Pnw9e-3ab8f9ab402b9da2d731.js +2 -0
- data/tools/admin/{SignalWidget-h-oivReC-3878f2f049be552eda7d.js → SignalWidget-D55Myd0q-2ae51519ebe8a777ae4e.js} +1 -1
- data/tools/admin/{SimpleTextDialog-BQ0jrNW3-7bc1a75a274215196c98.js → SimpleTextDialog-DFmHwTKa-c8b9b08127783e0c42b0.js} +1 -1
- data/tools/admin/{SpacerWidget-BSy9eOlB-b6eb70cd771cb8926322.js → SpacerWidget-DBDv_w_s-f15f2aad40981070a896.js} +1 -1
- data/tools/admin/SparklineWidget-DJvIL24z-958a91326f18bb75b86d.js +1 -0
- data/tools/admin/TabbookWidget-DH9DHnp1-42b0ec812de0ba6f57d0.js +1 -0
- data/tools/admin/TargetsTab-tIu-gzql-877902c00b80f90340f6.js +1 -0
- data/tools/admin/TextboxWidget-DCjIEzJn-6212afb58fd6e266dea5.js +1 -0
- data/tools/admin/{TextfieldWidget-aVRdXRsT-6406eef0f7234e3e3a8e.js → TextfieldWidget-BRQ6oPzR-970748ea07f59f286198.js} +1 -1
- data/tools/admin/{TimeWidget-BE2rtMxg-cd22b9d2e868bc2ed385.js → TimeWidget-pXtrK5IC-50feb6504e0180cdfd73.js} +1 -1
- data/tools/admin/TitleWidget-CfAa2SyT-ee690e6021ee99d696f5.js +1 -0
- data/tools/admin/{ToolsTab-jhSXe5zM-d0ac19c0d72366628752.js → ToolsTab-LKQSXcSL-7959012b4c3e33263fc4.js} +2 -2
- data/tools/admin/VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js +1 -0
- data/tools/admin/ValueWidget-DIFivXw_-170a0884cbafd98d2287.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-Cb7_SIUF-bd46f3478047270a6408.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-D8bgZ7YP-a88f2ae86e7deb743263.js +1 -0
- data/tools/admin/ValuerangebarWidget-VKygtFwP-db27dda0a1b1d84e67fe.js +1 -0
- data/tools/admin/{VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js → VerticalWidget-BuvedA_b-98e3017b484c5b9c1b2f.js} +1 -1
- data/tools/admin/VerticalboxWidget-D_LcL3GF-3750e4d81ce80cee857d.js +1 -0
- data/tools/admin/{Widget-C7ms_xDE-6a246185f9a7a9c965ab.js → Widget-CERFa1CU-7c5a93309a98ccbca9e1.js} +1 -1
- data/tools/admin/main-94fd5bc89ba143801a74.js +1431 -0
- data/tools/admin/main.js +1 -1
- metadata +80 -78
- data/tools/admin/ArrayWidget-DBpEoQ1y-51f8d58800a41ceb5965.js +0 -2
- data/tools/admin/BlockWidget-Bmi0UcUW-6e239a53a5ce4bba9c07.js +0 -2
- data/tools/admin/CanvasWidget-BqdyLbQz-8f0095f7e34d8c6f066f.js +0 -1
- data/tools/admin/CanvasdotWidget-YYwca104-3e6a9038614586babd1c.js +0 -1
- data/tools/admin/CanvaslabelWidget-BfMHNei--7bf566730263148d3f38.js +0 -1
- data/tools/admin/CanvaslineWidget-BmOwJP_G-a4bfe595d4095ac8a656.js +0 -1
- data/tools/admin/CanvaslinevalueWidget-H3L1aUKM-ef990dd1d9d0093e3346.js +0 -1
- data/tools/admin/CheckbuttonWidget-BnT9X7wE-b6041611ca3a02a77f4f.js +0 -1
- data/tools/admin/ComboboxWidget-BykAAoxH-df2f4da5632c7ac4d614.js +0 -1
- data/tools/admin/GraphWidget-BohHW-97-fd394110bcce6887c880.js +0 -1
- data/tools/admin/HorizontalboxWidget-D-kCNwI3-bf19c666513dd697768b.js +0 -1
- data/tools/admin/HorizontallineWidget-BdlNB951-fcd3e7810f970240faa3.js +0 -1
- data/tools/admin/ImageLoader-y6fAZe9P-a0ef49044ad82975f403.js +0 -1
- data/tools/admin/InterfacesTab-Byu6IcaT-95abcb5574592a90078b.js +0 -1
- data/tools/admin/LabelsparklineWidget--sxBENxs-cbe369d2ca5aa7df9b85.js +0 -1
- data/tools/admin/LabelvalueWidget-BWpP5KX6-ef5769b7ec88b403bcd2.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-Bj6UVK-5-3bc80d16b026ae53a8c3.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BVcEEcUx-bca1e0a997b6558e0437.js +0 -1
- data/tools/admin/LedWidget-hN9JHxjr-b0dea4cca417c25b5f03.js +0 -1
- data/tools/admin/LinegraphWidget-CTjtvtPd-fe55f8974a605da0efa2.js +0 -1
- data/tools/admin/PackagesTab-_Sm5Sh1M-cf16003c47a30de4cc75.js +0 -1
- data/tools/admin/RadiobuttonWidget-B032jKIw-92c89dce8e32b5b77b86.js +0 -1
- data/tools/admin/ScrollwindowWidget-D4NKIzQO-b14879101eba10ab2f0a.js +0 -1
- data/tools/admin/SettingsTab-BZBJZWtN-d8e376586fa303549fab.js +0 -1
- data/tools/admin/SparklineWidget-C9vdxar--4f7468446f8ba99d20b2.js +0 -1
- data/tools/admin/TabbookWidget-DTFTKURm-c15c659eae60d609ba8d.js +0 -1
- data/tools/admin/TargetsTab-LyhY8e5l-97cd8f57a37fbec3189a.js +0 -1
- data/tools/admin/TextboxWidget-BZyYHmBq-a8684205e51e26d6f751.js +0 -1
- data/tools/admin/TitleWidget-BB29MZb2-56d767993d5f9646996a.js +0 -1
- data/tools/admin/VWidget-CGdM4sTw-893961bd6ccec05d16a7.js +0 -1
- data/tools/admin/ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-LMXYjWtS-8830e5349c4443d13b06.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-gA3ZcfAT-1c66306a40b51c6cba4c.js +0 -1
- data/tools/admin/ValuerangebarWidget-DwZ9KQ0O-3ab0abfd6fa6e5124d25.js +0 -1
- data/tools/admin/VerticalboxWidget-OcoZBsFU-a1bcd4a60d355e686386.js +0 -1
- data/tools/admin/main-ee4a4324250bb0ff8910.js +0 -1431
@@ -0,0 +1,1431 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(On,Le){"use strict";var Se,kt,Pe,xe,_e,tf,As,Dt,eo,nf,Dn,Kt,Nr,Gr,pt,Cs,Fc,rr,Na,rf,of,sf,af,Pc,lf,cf,uf,hf,Hc,df,ff,pf,gf,mf,yf,wf;return{setters:[nt=>{Se=nt.resolveComponent,kt=nt.createBlock,Pe=nt.openBlock,xe=nt.withCtx,_e=nt.createVNode,tf=nt.defineAsyncComponent,As=nt.h,Dt=nt.createElementBlock,eo=nt.normalizeStyle,nf=nt.Teleport,Dn=nt.createElementVNode,Kt=nt.toDisplayString,Nr=nt.Fragment,Gr=nt.renderList,pt=nt.createTextVNode,Cs=nt.mergeProps,Fc=nt.createSlots,rr=nt.createCommentVNode,Na=nt.withModifiers,rf=nt.toRaw,of=nt.defineComponent,sf=nt.warn,af=nt.inject,Pc=nt.computed,lf=nt.shallowRef,cf=nt.watchEffect,uf=nt.getCurrentInstance,hf=nt.provide,Hc=nt.createApp,df=nt.withDirectives,ff=nt.vShow},nt=>{pf=nt.createRouter,gf=nt.createWebHistory},nt=>{mf=nt.getMountedApps},nt=>{yf=nt.createStore},nt=>{wf=nt.createVuetify}],execute:function(){On({$:Sf,A:jn,c:nT,l:Qt,p:io,y:wn,z:Bh});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(h){return Object.getOwnPropertyDescriptor(n,h).enumerable})),t.push.apply(t,r)}return t}function to(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?vf(Object(t),!0).forEach(function(r){Cv(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):vf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Cv(n,e,t){return(e=function(r){var h=function(u,p){if(no(u)!=="object"||u===null)return u;var w=u[Symbol.toPrimitive];if(w!==void 0){var d=w.call(u,p);if(no(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(u)}(r,"string");return no(h)==="symbol"?h:String(h)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function no(n){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},no(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var e=function(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,h=String(t),u=h.length,p=-1,w="",d=h.charCodeAt(0);++p<u;)(r=h.charCodeAt(p))!=0?w+=r>=1&&r<=31||r==127||p==0&&r>=48&&r<=57||p==1&&r>=48&&r<=57&&d==45?"\\"+r.toString(16)+" ":p==0&&u==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+h.charAt(p):h.charAt(p):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=e})(nt);var Tv={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Ev(n){if(no(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=to(to({},Tv),n);if(!e.Vue&&!e.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!e.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(e.appOptions.el&&typeof e.appOptions.el!="string"&&!(e.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(no(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:Rv.bind(null,e,t),mount:Mv.bind(null,e,t),unmount:Iv.bind(null,e,t),update:Lv.bind(null,e,t)}}function Rv(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function Mv(n,e,t){var r={};return Promise.resolve().then(function(){return function(h,u){return typeof h.appOptions=="function"?h.appOptions(u):Promise.resolve(to({},h.appOptions))}(n,t).then(function(h){var u;if(t.domElement&&!h.el&&(h.el=t.domElement),h.el)if(typeof h.el=="string"){if(!(u=document.querySelector(h.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(h.el))}else(u=h.el).id||(u.id="single-spa-application:".concat(t.name)),h.el="#".concat(CSS.escape(u.id));else{var p="single-spa-application:".concat(t.name);h.el="#".concat(CSS.escape(p)),(u=document.getElementById(p))||((u=document.createElement("div")).id=p,document.body.appendChild(u))}if(!n.replaceMode&&(h.el=h.el+" .single-spa-container",!u.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",u.appendChild(w)}r.domEl=u,h.render||h.template||!n.rootComponent||(h.render=function(g){return g(n.rootComponent)}),h.data||(h.data={});var d=h.data;if(h.data=function(){return to(to({},typeof d=="function"?d.call(this,this):d),t)},n.createApp){if(r.vueInstance=n.createApp(h),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(h.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(h.el)}else if(r.vueInstance=new n.Vue(h),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return e[t.name]=r,r.vueInstance});return e[t.name]=r,r.vueInstance})})}function Lv(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],h=to(to({},n.appOptions.data||{}),t),u=r.root||r.vueInstance;for(var p in h)u[p]=h[p]})}function Iv(n,e,t){return Promise.resolve().then(function(){var r=e[t.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const Ov=(n,e)=>{const t=n.__vccOpts||n;for(const[r,h]of e)t[r]=h;return t},Dv={};function Nv(n,e){const t=Se("router-view"),r=Se("v-app");return Pe(),kt(r,{id:"innerapp"},{default:xe(()=>[_e(t)]),_:1})}const Fv=Ov(Dv,[["render",Nv]]),bf=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(bf)},LO="modulepreload",IO=function(n){return"/"+n},OO={},Ie=function(e,t,r){let h=Promise.resolve();function u(p){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=p,window.dispatchEvent(w),!w.defaultPrevented)throw p}return h.then(p=>{for(const w of p||[])w.status==="rejected"&&u(w.reason);return e().catch(u)})},Yr=On("s",(n,e)=>{const t=n.__vccOpts||n;for(const[r,h]of e)t[r]=h;return t}),Fa=6e4,Wc=36e5,Pv=1e3,xf=Symbol.for("constructDateFrom");function wn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&xf in n?n[xf](e):n instanceof Date?new n.constructor(e):new Date(e)}function Qt(n,e){return wn(e||n,n)}let Hv={};function Po(){return Hv}function Ei(n,e){var t,r,h,u;const p=Po(),w=(e==null?void 0:e.weekStartsOn)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.weekStartsOn)??p.weekStartsOn??((u=(h=p.locale)==null?void 0:h.options)==null?void 0:u.weekStartsOn)??0,d=Qt(n,e==null?void 0:e.in),g=d.getDay(),s=(g<w?7:0)+g-w;return d.setDate(d.getDate()-s),d.setHours(0,0,0,0),d}function Ho(n,e){return Ei(n,{...e,weekStartsOn:1})}function _f(n,e){const t=Qt(n,void 0),r=t.getFullYear(),h=wn(t,0);h.setFullYear(r+1,0,4),h.setHours(0,0,0,0);const u=Ho(h),p=wn(t,0);p.setFullYear(r,0,4),p.setHours(0,0,0,0);const w=Ho(p);return t.getTime()>=u.getTime()?r+1:t.getTime()>=w.getTime()?r:r-1}function Pa(n){const e=Qt(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function Wv(n,...e){const t=wn.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function kf(n,e){const t=Qt(n,void 0);return t.setHours(0,0,0,0),t}function Bv(n,e,t){const[r,h]=Wv(void 0,n,e),u=kf(r),p=kf(h),w=+u-Pa(u),d=+p-Pa(p);return Math.round((w-d)/864e5)}function jv(n,e){const t=_f(n),r=wn(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ho(r)}function zv(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Sf(n){return!(!zv(n)&&typeof n!="number"||isNaN(+Qt(n)))}function Uv(n,e){const t=Qt(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const Vv={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"}},qv=(n,e,t)=>{let r;const h=Vv[n];return typeof h=="string"?r=h:e===1?r=h.one:r=h.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Bc(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Gv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qv={date:Bc({formats:Gv,defaultWidth:"full"}),time:Bc({formats:Yv,defaultWidth:"full"}),dateTime:Bc({formats:Kv,defaultWidth:"full"})},Zv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jv=(n,e,t,r)=>Zv[n];function Ts(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let h;if(r==="formatting"&&n.formattingValues){const p=n.defaultFormattingWidth||n.defaultWidth,w=t!=null&&t.width?String(t.width):p;h=n.formattingValues[w]||n.formattingValues[p]}else{const p=n.defaultWidth,w=t!=null&&t.width?String(t.width):n.defaultWidth;h=n.values[w]||n.values[p]}const u=n.argumentCallback?n.argumentCallback(e):e;return h[u]}}const Xv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tb={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"]},nb={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"]},rb={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"}},ib={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"}},ob=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},sb={ordinalNumber:ob,era:Ts({values:Xv,defaultWidth:"wide"}),quarter:Ts({values:eb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ts({values:tb,defaultWidth:"wide"}),day:Ts({values:nb,defaultWidth:"wide"}),dayPeriod:Ts({values:rb,defaultWidth:"wide",formattingValues:ib,defaultFormattingWidth:"wide"})};function Es(n){return(e,t={})=>{const r=t.width,h=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],u=e.match(h);if(!u)return null;const p=u[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],d=Array.isArray(w)?lb(w,c=>c.test(p)):ab(w,c=>c.test(p));let g;g=n.valueCallback?n.valueCallback(d):d,g=t.valueCallback?t.valueCallback(g):g;const s=e.slice(p.length);return{value:g,rest:s}}}function ab(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function lb(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function cb(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const h=r[0],u=e.match(n.parsePattern);if(!u)return null;let p=n.valueCallback?n.valueCallback(u[0]):u[0];p=t.valueCallback?t.valueCallback(p):p;const w=e.slice(h.length);return{value:p,rest:w}}}const ub=/^(\d+)(th|st|nd|rd)?/i,hb=/\d+/i,db={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},fb={any:[/^b/i,/^(a|c)/i]},pb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gb={any:[/1/i,/2/i,/3/i,/4/i]},mb={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},yb={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]},wb={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},vb={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]},bb={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},xb={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}},_b={ordinalNumber:cb({matchPattern:ub,parsePattern:hb,valueCallback:n=>parseInt(n,10)}),era:Es({matchPatterns:db,defaultMatchWidth:"wide",parsePatterns:fb,defaultParseWidth:"any"}),quarter:Es({matchPatterns:pb,defaultMatchWidth:"wide",parsePatterns:gb,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Es({matchPatterns:mb,defaultMatchWidth:"wide",parsePatterns:yb,defaultParseWidth:"any"}),day:Es({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:vb,defaultParseWidth:"any"}),dayPeriod:Es({matchPatterns:bb,defaultMatchWidth:"any",parsePatterns:xb,defaultParseWidth:"any"})},$f={code:"en-US",formatDistance:qv,formatLong:Qv,formatRelative:Jv,localize:sb,match:_b,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kb(n,e){const t=Qt(n,void 0);return Bv(t,Uv(t))+1}function Af(n,e){const t=Qt(n,void 0),r=+Ho(t)-+jv(t);return Math.round(r/6048e5)+1}function jc(n,e){var t,r,h,u;const p=Qt(n,e==null?void 0:e.in),w=p.getFullYear(),d=Po(),g=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((u=(h=d.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,s=wn((e==null?void 0:e.in)||n,0);s.setFullYear(w+1,0,g),s.setHours(0,0,0,0);const c=Ei(s,e),a=wn((e==null?void 0:e.in)||n,0);a.setFullYear(w,0,g),a.setHours(0,0,0,0);const l=Ei(a,e);return+p>=+c?w+1:+p>=+l?w:w-1}function Sb(n,e){var t,r,h,u;const p=Po(),w=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??p.firstWeekContainsDate??((u=(h=p.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,d=jc(n,e),g=wn((e==null?void 0:e.in)||n,0);return g.setFullYear(d,0,w),g.setHours(0,0,0,0),Ei(g,e)}function Cf(n,e){const t=Qt(n,e==null?void 0:e.in),r=+Ei(t,e)-+Sb(t,e);return Math.round(r/6048e5)+1}function Mt(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Ri={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return Mt(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):Mt(t+1,2)},d(n,e){return Mt(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return Mt(n.getHours()%12||12,e.length)},H(n,e){return Mt(n.getHours(),e.length)},m(n,e){return Mt(n.getMinutes(),e.length)},s(n,e){return Mt(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),h=Math.trunc(r*Math.pow(10,t-3));return Mt(h,e.length)}},Wo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Tf={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),h=r>0?r:1-r;return t.ordinalNumber(h,{unit:"year"})}return Ri.y(n,e)},Y:function(n,e,t,r){const h=jc(n,r),u=h>0?h:1-h;if(e==="YY"){const p=u%100;return Mt(p,2)}return e==="Yo"?t.ordinalNumber(u,{unit:"year"}):Mt(u,e.length)},R:function(n,e){const t=_f(n);return Mt(t,e.length)},u:function(n,e){const t=n.getFullYear();return Mt(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Mt(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Mt(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Ri.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return Mt(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const h=Cf(n,r);return e==="wo"?t.ordinalNumber(h,{unit:"week"}):Mt(h,e.length)},I:function(n,e,t){const r=Af(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):Mt(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Ri.d(n,e)},D:function(n,e,t){const r=kb(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Mt(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const h=n.getDay(),u=(h-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(u);case"ee":return Mt(u,2);case"eo":return t.ordinalNumber(u,{unit:"day"});case"eee":return t.day(h,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(h,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(h,{width:"short",context:"formatting"});case"eeee":default:return t.day(h,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const h=n.getDay(),u=(h-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(u);case"cc":return Mt(u,e.length);case"co":return t.ordinalNumber(u,{unit:"day"});case"ccc":return t.day(h,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(h,{width:"narrow",context:"standalone"});case"cccccc":return t.day(h,{width:"short",context:"standalone"});case"cccc":default:return t.day(h,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),h=r===0?7:r;switch(e){case"i":return String(h);case"ii":return Mt(h,e.length);case"io":return t.ordinalNumber(h,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const r=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let h;switch(r===12?h=Wo.noon:r===0?h=Wo.midnight:h=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(h,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(h,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(h,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(h,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let h;switch(r>=17?h=Wo.evening:r>=12?h=Wo.afternoon:r>=4?h=Wo.morning:h=Wo.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(h,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(h,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(h,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Ri.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Ri.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Mt(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):Mt(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ri.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Ri.s(n,e)},S:function(n,e){return Ri.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Rf(r);case"XXXX":case"XX":return ro(r);case"XXXXX":case"XXX":default:return ro(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Rf(r);case"xxxx":case"xx":return ro(r);case"xxxxx":case"xxx":default:return ro(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ef(r,":");case"OOOO":default:return"GMT"+ro(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ef(r,":");case"zzzz":default:return"GMT"+ro(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return Mt(r,e.length)},T:function(n,e,t){return Mt(+n,e.length)}};function Ef(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),h=Math.trunc(r/60),u=r%60;return u===0?t+String(h):t+String(h)+e+Mt(u,2)}function Rf(n,e){return n%60===0?(n>0?"-":"+")+Mt(Math.abs(n)/60,2):ro(n,e)}function ro(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),h=Mt(Math.trunc(r/60),2),u=Mt(r%60,2);return t+h+e+u}const Mf=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Lf=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},$b=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],h=t[2];if(!h)return Mf(n,e);let u;switch(r){case"P":u=e.dateTime({width:"short"});break;case"PP":u=e.dateTime({width:"medium"});break;case"PPP":u=e.dateTime({width:"long"});break;case"PPPP":default:u=e.dateTime({width:"full"});break}return u.replace("{{date}}",Mf(r,e)).replace("{{time}}",Lf(h,e))},zc={p:Lf,P:$b},Ab=/^D+$/,Cb=/^Y+$/,Tb=["D","DD","YY","YYYY"];function If(n){return Ab.test(n)}function Of(n){return Cb.test(n)}function Uc(n,e,t){const r=Eb(n,e,t);if(console.warn(r),Tb.includes(n))throw new RangeError(r)}function Eb(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Rb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lb=/^'([^]*?)'?$/,Ib=/''/g,Ob=/[a-zA-Z]/;function io(n,e,t){var r,h,u,p,w,d,g,s;const c=Po(),a=(t==null?void 0:t.locale)??c.locale??$f,l=(t==null?void 0:t.firstWeekContainsDate)??((h=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:h.firstWeekContainsDate)??c.firstWeekContainsDate??((p=(u=c.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((d=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:d.weekStartsOn)??c.weekStartsOn??((s=(g=c.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,f=Qt(n,t==null?void 0:t.in);if(!Sf(f))throw new RangeError("Invalid time value");let y=e.match(Mb).map(x=>{const M=x[0];if(M==="p"||M==="P"){const A=zc[M];return A(x,a.formatLong)}return x}).join("").match(Rb).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const M=x[0];if(M==="'")return{isToken:!1,value:Db(x)};if(Tf[M])return{isToken:!0,value:x};if(M.match(Ob))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(y=a.localize.preprocessor(f,y));const v={firstWeekContainsDate:l,weekStartsOn:o,locale:a};return y.map(x=>{if(!x.isToken)return x.value;const M=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Of(M)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&If(M))&&Uc(M,e,String(n));const A=Tf[M[0]];return A(f,M,a.localize,v)}).join("")}function Db(n){const e=n.match(Lb);return e?e[1].replace(Ib,"'"):n}var Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Df={exports:{}},Nf;function Nb(){return Nf||(Nf=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var h=function(s,c,a){if(typeof s!="string"){h.original?h.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=c),h.modules[s]||(h.payloads[s]=a,h.modules[s]=null)};h.modules={},h.payloads={};var u=function(s,c,a){if(typeof c=="string"){var l=d(s,c);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],f=0,y=c.length;f<y;++f){var v=d(s,c[f]);if(v==null&&p.original)return;o.push(v)}return a&&a.apply(null,o)||!0}},p=function(s,c){var a=u("",s,c);return a==null&&p.original?p.original.apply(this,arguments):a},w=function(s,c){if(c.indexOf("!")!==-1){var a=c.split("!");return w(s,a[0])+"!"+w(s,a[1])}if(c.charAt(0)=="."){var l=s.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},d=function(s,c){c=w(s,c);var a=h.modules[c];if(!a){if(a=h.payloads[c],typeof a=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},f=function(v,x){return u(c,v,x)},y=a(f,l,o);l=y||o.exports,h.modules[c]=l,delete h.payloads[c]}a=h.modules[c]=l||a}return a};function g(s){var c=r;r[s]||(r[s]={}),c=r[s],(!c.define||!c.define.packaged)&&(h.original=c.define,c.define=h,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(p.original=c.require,c.require=p,c.require.packaged=!0)}g(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,h){function u(p,w,d){Object.defineProperty(p,w,{value:d,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(p,w){return w=w||0,this.lastIndexOf(p,w)===w}),String.prototype.endsWith||u(String.prototype,"endsWith",function(p,w){var d=this;(w===void 0||w>d.length)&&(w=d.length),w-=p.length;var g=d.indexOf(p,w);return g!==-1&&g===w}),String.prototype.repeat||u(String.prototype,"repeat",function(p){for(var w="",d=this;p>0;)p&1&&(w+=d),(p>>=1)&&(d+=d);return w}),String.prototype.includes||u(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),d=1;d<arguments.length;d++){var g=arguments[d];g!=null&&Object.keys(g).forEach(function(s){w[s]=g[s]})}return w}),Object.values||(Object.values=function(p){return Object.keys(p).map(function(w){return p[w]})}),Array.prototype.find||u(Array.prototype,"find",function(p){for(var w=this.length,d=arguments[1],g=0;g<w;g++){var s=this[g];if(p.call(d,s,g,this))return s}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(p){for(var w=this.length,d=arguments[1],g=0;g<w;g++){var s=this[g];if(p.call(d,s,g,this))return g}}),Array.prototype.includes||u(Array.prototype,"includes",function(p,w){return this.indexOf(p,w)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(p){for(var w=this,d=w.length>>>0,g=arguments[1],s=g>>0,c=s<0?Math.max(d+s,0):Math.min(s,d),a=arguments[2],l=a===void 0?d:a>>0,o=l<0?Math.max(d+l,0):Math.min(l,d);c<o;)w[c]=p,c++;return w}),Array.of||u(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,h){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,h){r.deepCopy=function u(p){if(typeof p!="object"||!p)return p;var w;if(Array.isArray(p)){w=[];for(var d=0;d<p.length;d++)w[d]=u(p[d]);return w}if(Object.prototype.toString.call(p)!=="[object Object]")return p;w={};for(var d in p)w[d]=u(p[d]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,h){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,d){for(var g="";d>0;)d&1&&(g+=w),(d>>=1)&&(w+=w);return g};var u=/^\s\s*/,p=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(u,"")},r.stringTrimRight=function(w){return w.replace(p,"")},r.copyObject=function(w){var d={};for(var g in w)d[g]=w[g];return d},r.copyArray=function(w){for(var d=[],g=0,s=w.length;g<s;g++)w[g]&&typeof w[g]=="object"?d[g]=this.copyObject(w[g]):d[g]=w[g];return d},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var d={},g=0;g<w.length;g++)d[w[g]]=1;return d},r.createMap=function(w){var d=Object.create(null);for(var g in w)d[g]=w[g];return d},r.arrayRemove=function(w,d){for(var g=0;g<=w.length;g++)d===w[g]&&w.splice(g,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,d){var g=[];return w.replace(d,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(w){var d=null,g=function(){d=null,w()},s=function(c){return s.cancel(),d=setTimeout(g,c||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(d),d=null,s},s.isPending=function(){return d},s},r.delayedCall=function(w,d){var g=null,s=function(){g=null,w()},c=function(a){g==null&&(g=setTimeout(s,a||d))};return c.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||d)},c.schedule=c,c.call=function(){this.cancel(),w()},c.cancel=function(){g&&clearTimeout(g),g=null},c.isPending=function(){return g},c},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,d,g){return g&&w.codePointAt(d)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,h){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 u=typeof navigator=="object"?navigator:{},p=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),w=u.userAgent||"",d=u.appName||"";r.isWin=p=="win",r.isMac=p=="mac",r.isLinux=p=="linux",r.isIE=d=="Microsoft Internet Explorer"||d.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(t,r,h){var u=t("./useragent"),p="http://www.w3.org/1999/xhtml";r.buildDom=function a(l,o,f){if(typeof l=="string"&&l){var y=document.createTextNode(l);return o&&o.appendChild(y),y}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var v=[],x=0;x<l.length;x++){var M=a(l[x],o,f);M&&v.push(M)}return v}var A=document.createElement(l[0]),k=l[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var x=b;x<l.length;x++)a(l[x],A,f);return b==2&&Object.keys(k).forEach(function(T){var R=k[T];T==="class"?A.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?A[T]=R:T==="ref"?f&&(f[R]=A):T==="style"?typeof R=="string"&&(A.style.cssText=R):R!=null&&A.setAttribute(T,R)}),o&&o.appendChild(A),A},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,l){return document.createElementNS?document.createElementNS(l||p,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,l){var o=l?l.ownerDocument:document;return o.createTextNode(a)},r.createFragment=function(a){var l=a?a.ownerDocument:document;return l.createDocumentFragment()},r.hasCssClass=function(a,l){var o=(a.className+"").split(/\s+/g);return o.indexOf(l)!==-1},r.addCssClass=function(a,l){r.hasCssClass(a,l)||(a.className+=" "+l)},r.removeCssClass=function(a,l){for(var o=a.className.split(/\s+/g);;){var f=o.indexOf(l);if(f==-1)break;o.splice(f,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,l){for(var o=a.className.split(/\s+/g),f=!0;;){var y=o.indexOf(l);if(y==-1)break;f=!1,o.splice(y,1)}return f&&o.push(l),a.className=o.join(" "),f},r.setCssClass=function(a,l,o){o?r.addCssClass(a,l):r.removeCssClass(a,l)},r.hasCssString=function(a,l){var o=0,f;if(l=l||document,f=l.querySelectorAll("style")){for(;o<f.length;)if(f[o++].id===a)return!0}},r.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var w,d=[];r.useStrictCSP=function(a){w=a,a==!1?g():d||(d=[])};function g(){var a=d;d=null,a&&a.forEach(function(l){s(l[0],l[1])})}function s(a,l,o){if(!(typeof document>"u")){if(d){if(o)g();else if(o===!1)return d.push([a,l])}if(!w){var f=o;!o||!o.getRootNode?f=document:(f=o.getRootNode(),(!f||f==o)&&(f=document));var y=f.ownerDocument||f;if(l&&r.hasCssString(l,f))return null;l&&(a+=`
|
2
|
+
/*# sourceURL=ace/css/`+l+" */");var v=r.createElement("style");v.appendChild(y.createTextNode(a)),l&&(v.id=l),f==y&&(f=r.getDocumentHead(y)),f.insertBefore(v,f.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,l){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(l))},r.scrollbarWidth=function(a){var l=r.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=r.createElement("ace_outer"),f=o.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",o.appendChild(l);var y=a&&a.documentElement||document&&document.documentElement;if(!y)return 0;y.appendChild(o);var v=l.offsetWidth;f.overflow="scroll";var x=l.offsetWidth;return v===x&&(x=o.clientWidth),y.removeChild(o),v-x},r.computedStyle=function(a,l){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,l,o){a[l]!==o&&(a[l]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");r.HI_DPI&&c.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!u.isEdge&&typeof c.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),c=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,l,o){a.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:r.translate=function(a,l,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,r,h){/*
|
3
|
+
* based on code from:
|
4
|
+
*
|
5
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
6
|
+
* Available via the MIT or new BSD license.
|
7
|
+
* see: http://github.com/jrburke/requirejs for details
|
8
|
+
*/var u=t("./dom");r.get=function(p,w){var d=new XMLHttpRequest;d.open("GET",p,!0),d.onreadystatechange=function(){d.readyState===4&&w(d.responseText)},d.send(null)},r.loadScript=function(p,w){var d=u.getDocumentHead(),g=document.createElement("script");g.src=p,d.appendChild(g),g.onload=g.onreadystatechange=function(s,c){(c||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,c||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(t,r,h){r.inherits=function(u,p){u.super_=p,u.prototype=Object.create(p.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(u,p){for(var w in p)u[w]=p[w];return u},r.implement=function(u,p){r.mixin(u,p)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,r,h){var u={},p=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(d,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[d]||[],c=this._defaultHandlers[d];if(!(!s.length&&!c)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=d),g.stopPropagation||(g.stopPropagation=p),g.preventDefault||(g.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(c&&!g.defaultPrevented)return c(g,this)}},u._signal=function(d,g){var s=(this._eventRegistry||{})[d];if(s){s=s.slice();for(var c=0;c<s.length;c++)s[c](g,this)}},u.once=function(d,g){var s=this;if(this.on(d,function c(){s.off(d,c),g.apply(null,arguments)}),!g)return new Promise(function(c){g=c})},u.setDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[d]){var c=s[d],a=s._disabled_[d];a||(s._disabled_[d]=a=[]),a.push(c);var l=a.indexOf(g);l!=-1&&a.splice(l,1)}s[d]=g},u.removeDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s){var c=s._disabled_[d];if(s[d]==g)c&&this.setDefaultHandler(d,c.pop());else if(c){var a=c.indexOf(g);a!=-1&&c.splice(a,1)}}},u.on=u.addEventListener=function(d,g,s){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[d];return c||(c=this._eventRegistry[d]=[]),c.indexOf(g)==-1&&c[s?"unshift":"push"](g),g},u.off=u.removeListener=u.removeEventListener=function(d,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[d];if(s){var c=s.indexOf(g);c!==-1&&s.splice(c,1)}},u.removeAllListeners=function(d){d||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[d]=void 0),this._defaultHandlers&&(this._defaultHandlers[d]=void 0)},r.EventEmitter=u}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,r,h){r.reportError=function(u,p){var w=new Error(u);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(t,r,h){var u={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};r.defaultEnglishMessages=u}),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(t,r,h){"no use strict";var u=t("./oop"),p=t("./event_emitter").EventEmitter,w=t("./report_error").reportError,d=t("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(f){this.setOption(f,o[f])},this)},getOptions:function(o){var f={};if(o)Array.isArray(o)||(f=o,o=Object.keys(f));else{var y=this.$options;o=Object.keys(y).filter(function(v){return!y[v].hidden})}return o.forEach(function(v){f[v]=this.getOption(v)},this),f},setOption:function(o,f){if(this["$"+o]!==f){var y=this.$options[o];if(!y)return s('misspelled option "'+o+'"');if(y.forwardTo)return this[y.forwardTo]&&this[y.forwardTo].setOption(o,f);y.handlesSet||(this["$"+o]=f),y&&y.set&&y.set.call(this,f)}},getOption:function(o){var f=this.$options[o];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(o):f&&f.get?f.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var c,a,l=function(){function o(){this.$defaultOptions={},c=d,a="dollarSigns"}return o.prototype.defineOptions=function(f,y,v){return f.$options||(this.$defaultOptions[y]=f.$options={}),Object.keys(v).forEach(function(x){var M=v[x];typeof M=="string"&&(M={forwardTo:M}),M.name||(M.name=x),f.$options[M.name]=M,"initialValue"in M&&(f["$"+M.name]=M.initialValue)}),u.implement(f,g),this},o.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(y){var v=f.$options[y];"value"in v&&f.setOption(y,v.value)})},o.prototype.setDefaultValue=function(f,y,v){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][y])break;if(!this.$defaultOptions[f][y])return!1}var x=this.$defaultOptions[f]||(this.$defaultOptions[f]={});x[y]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,y,v):x[y].value=v)},o.prototype.setDefaultValues=function(f,y){Object.keys(y).forEach(function(v){this.setDefaultValue(f,v,y[v])},this)},o.prototype.setMessages=function(f,y){c=f,y&&y.placeholders&&(a=y.placeholders)},o.prototype.nls=function(f,y,v){c[f]||(s("No message found for the key '"+f+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+y+"'."),c[y]||s("No message found for the default string '"+y+"' in the provided messages. Falling back to the default English message."));var x=c[f]||c[y]||y;return v&&(a==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(M,A){return A=="$"?"$":v[A]})),a==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(M,A){return v[A]}))),x},o}();l.prototype.warn=s,l.prototype.reportError=w,u.implement(l.prototype,p),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,r,h){h.exports=`.ace-tm .ace_gutter {
|
9
|
+
background: #f0f0f0;
|
10
|
+
color: #333;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ace-tm .ace_print-margin {
|
14
|
+
width: 1px;
|
15
|
+
background: #e8e8e8;
|
16
|
+
}
|
17
|
+
|
18
|
+
.ace-tm .ace_fold {
|
19
|
+
background-color: #6B72E6;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ace-tm {
|
23
|
+
background-color: #FFFFFF;
|
24
|
+
color: black;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ace-tm .ace_cursor {
|
28
|
+
color: black;
|
29
|
+
}
|
30
|
+
|
31
|
+
.ace-tm .ace_invisible {
|
32
|
+
color: rgb(191, 191, 191);
|
33
|
+
}
|
34
|
+
|
35
|
+
.ace-tm .ace_storage,
|
36
|
+
.ace-tm .ace_keyword {
|
37
|
+
color: blue;
|
38
|
+
}
|
39
|
+
|
40
|
+
.ace-tm .ace_constant {
|
41
|
+
color: rgb(197, 6, 11);
|
42
|
+
}
|
43
|
+
|
44
|
+
.ace-tm .ace_constant.ace_buildin {
|
45
|
+
color: rgb(88, 72, 246);
|
46
|
+
}
|
47
|
+
|
48
|
+
.ace-tm .ace_constant.ace_language {
|
49
|
+
color: rgb(88, 92, 246);
|
50
|
+
}
|
51
|
+
|
52
|
+
.ace-tm .ace_constant.ace_library {
|
53
|
+
color: rgb(6, 150, 14);
|
54
|
+
}
|
55
|
+
|
56
|
+
.ace-tm .ace_invalid {
|
57
|
+
background-color: rgba(255, 0, 0, 0.1);
|
58
|
+
color: red;
|
59
|
+
}
|
60
|
+
|
61
|
+
.ace-tm .ace_support.ace_function {
|
62
|
+
color: rgb(60, 76, 114);
|
63
|
+
}
|
64
|
+
|
65
|
+
.ace-tm .ace_support.ace_constant {
|
66
|
+
color: rgb(6, 150, 14);
|
67
|
+
}
|
68
|
+
|
69
|
+
.ace-tm .ace_support.ace_type,
|
70
|
+
.ace-tm .ace_support.ace_class {
|
71
|
+
color: rgb(109, 121, 222);
|
72
|
+
}
|
73
|
+
|
74
|
+
.ace-tm .ace_keyword.ace_operator {
|
75
|
+
color: rgb(104, 118, 135);
|
76
|
+
}
|
77
|
+
|
78
|
+
.ace-tm .ace_string {
|
79
|
+
color: rgb(3, 106, 7);
|
80
|
+
}
|
81
|
+
|
82
|
+
.ace-tm .ace_comment {
|
83
|
+
color: rgb(76, 136, 107);
|
84
|
+
}
|
85
|
+
|
86
|
+
.ace-tm .ace_comment.ace_doc {
|
87
|
+
color: rgb(0, 102, 255);
|
88
|
+
}
|
89
|
+
|
90
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
91
|
+
color: rgb(128, 159, 191);
|
92
|
+
}
|
93
|
+
|
94
|
+
.ace-tm .ace_constant.ace_numeric {
|
95
|
+
color: rgb(0, 0, 205);
|
96
|
+
}
|
97
|
+
|
98
|
+
.ace-tm .ace_variable {
|
99
|
+
color: rgb(49, 132, 149);
|
100
|
+
}
|
101
|
+
|
102
|
+
.ace-tm .ace_xml-pe {
|
103
|
+
color: rgb(104, 104, 91);
|
104
|
+
}
|
105
|
+
|
106
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
107
|
+
color: #0000A2;
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
.ace-tm .ace_heading {
|
112
|
+
color: rgb(12, 7, 255);
|
113
|
+
}
|
114
|
+
|
115
|
+
.ace-tm .ace_list {
|
116
|
+
color:rgb(185, 6, 144);
|
117
|
+
}
|
118
|
+
|
119
|
+
.ace-tm .ace_meta.ace_tag {
|
120
|
+
color:rgb(0, 22, 142);
|
121
|
+
}
|
122
|
+
|
123
|
+
.ace-tm .ace_string.ace_regex {
|
124
|
+
color: rgb(255, 0, 0)
|
125
|
+
}
|
126
|
+
|
127
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
128
|
+
background: rgb(181, 213, 255);
|
129
|
+
}
|
130
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
131
|
+
box-shadow: 0 0 3px 0px white;
|
132
|
+
}
|
133
|
+
.ace-tm .ace_marker-layer .ace_step {
|
134
|
+
background: rgb(252, 255, 0);
|
135
|
+
}
|
136
|
+
|
137
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
138
|
+
background: rgb(164, 229, 101);
|
139
|
+
}
|
140
|
+
|
141
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
142
|
+
margin: -1px 0 0 -1px;
|
143
|
+
border: 1px solid rgb(192, 192, 192);
|
144
|
+
}
|
145
|
+
|
146
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
147
|
+
background: rgba(0, 0, 0, 0.07);
|
148
|
+
}
|
149
|
+
|
150
|
+
.ace-tm .ace_gutter-active-line {
|
151
|
+
background-color : #dcdcdc;
|
152
|
+
}
|
153
|
+
|
154
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
155
|
+
background: rgb(250, 250, 255);
|
156
|
+
border: 1px solid rgb(200, 200, 250);
|
157
|
+
}
|
158
|
+
|
159
|
+
.ace-tm .ace_indent-guide {
|
160
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
161
|
+
}
|
162
|
+
|
163
|
+
.ace-tm .ace_indent-guide-active {
|
164
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
165
|
+
}
|
166
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,r,h){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var u=t("../lib/dom");u.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(t,r,h){"no use strict";var u=t("./lib/lang"),p=t("./lib/net"),w=t("./lib/dom"),d=t("./lib/app_config").AppConfig;h.exports=r=new d;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!g.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return g[l]},r.set=function(l,o){if(g.hasOwnProperty(l))g[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&w.useStrictCSP(o)},r.all=function(){return u.copyObject(g)},r.$modes={},r.moduleUrl=function(l,o){if(g.$moduleUrls[l])return g.$moduleUrls[l];var f=l.split("/");o=o||f[f.length-2]||"";var y=o=="snippets"?"/":"-",v=f[f.length-1];if(o=="worker"&&y=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");v=v.replace(x,"")}(!v||v==o)&&f.length>1&&(v=f[f.length-2]);var M=g[o+"Path"];return M==null?M=g.basePath:y=="/"&&(o=y=""),M&&M.slice(-1)!="/"&&(M+="/"),M+o+y+v+this.get("suffix")},r.setModuleUrl=function(l,o){return g.$moduleUrls[l]=o};var s=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,t("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;r.setLoader=function(l){c=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,o){var f;if(Array.isArray(l))var y=l[0],v=l[1];else if(typeof l=="string")var v=l;var x=function(M){if(M&&!r.$loading[v])return o&&o(M);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(o),!(r.$loading[v].length>1)){var A=function(){s(v,function(k,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var T=r.$loading[v];r.$loading[v]=null,T.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return A();p.loadScript(r.moduleUrl(v,y),A),a()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(M){M.default?x(M.default):x(M)});else{try{f=this.$require(v)}catch{}x(f||r.$loaded[v])}},r.$require=function(l){if(typeof h.require=="function"){var o="require";return h[o](l)}},r.setModuleLoader=function(l,o){r.dynamicModules[l]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$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"),a=function(){})};r.version="1.37.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,h){t("./lib/fixoldbrowsers");var u=t("./config");u.setLoader(function(g,s){t([g],function(c){s(null,c)})});var p=function(){return this||typeof window<"u"&&window}();h.exports=function(g){u.init=w,u.$require=t,g.require=t},w(!0);function w(g){if(!(!p||!p.document)){u.set("packaged",g||t.packaged||h.packaged||p.define&&(void 0).packaged);var s={},c="",a=document.currentScript||document._currentScript,l=a&&a.ownerDocument||document;a&&a.src&&(c=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),f=0;f<o.length;f++){var y=o[f],v=y.src||y.getAttribute("src");if(v){for(var x=y.attributes,M=0,A=x.length;M<A;M++){var k=x[M];k.name.indexOf("data-ace-")===0&&(s[d(k.name.replace(/^data-ace-/,""))]=k.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(c=b[1])}}c&&(s.base=s.base||c,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var T in s)typeof s[T]<"u"&&u.set(T,s[T])}}function d(g){return g.replace(/-(.)/g,function(s,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,h){var u=function(){function p(w,d,g,s){this.start={row:w,column:d},this.end={row:g,column:s}}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,d){return this.compare(w,d)==0},p.prototype.compareRange=function(w){var d,g=w.end,s=w.start;return d=this.compare(g.row,g.column),d==1?(d=this.compare(s.row,s.column),d==1?2:d==0?1:0):d==-1?-2:(d=this.compare(s.row,s.column),d==-1?-1:d==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 d=this.compareRange(w);return d==-1||d==0||d==1},p.prototype.isEnd=function(w,d){return this.end.row==w&&this.end.column==d},p.prototype.isStart=function(w,d){return this.start.row==w&&this.start.column==d},p.prototype.setStart=function(w,d){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=d)},p.prototype.setEnd=function(w,d){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=d)},p.prototype.inside=function(w,d){return this.compare(w,d)==0?!(this.isEnd(w,d)||this.isStart(w,d)):!1},p.prototype.insideStart=function(w,d){return this.compare(w,d)==0?!this.isEnd(w,d):!1},p.prototype.insideEnd=function(w,d){return this.compare(w,d)==0?!this.isStart(w,d):!1},p.prototype.compare=function(w,d){return!this.isMultiLine()&&w===this.start.row?d<this.start.column?-1:d>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?d>=this.start.column?0:-1:this.end.row===w?d<=this.end.column?0:1:0},p.prototype.compareStart=function(w,d){return this.start.row==w&&this.start.column==d?-1:this.compare(w,d)},p.prototype.compareEnd=function(w,d){return this.end.row==w&&this.end.column==d?1:this.compare(w,d)},p.prototype.compareInside=function(w,d){return this.end.row==w&&this.end.column==d?1:this.start.row==w&&this.start.column==d?-1:this.compare(w,d)},p.prototype.clipRows=function(w,d){if(this.end.row>d)var g={row:d+1,column:0};else if(this.end.row<w)var g={row:w,column:0};if(this.start.row>d)var s={row:d+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return p.fromPoints(s||this.start,g||this.end)},p.prototype.extend=function(w,d){var g=this.compare(w,d);if(g==0)return this;if(g==-1)var s={row:w,column:d};else var c={row:w,column:d};return p.fromPoints(s||this.start,c||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 d=w.documentToScreenPosition(this.start),g=w.documentToScreenPosition(this.end);return new p(d.row,d.column,g.row,g.column)},p.prototype.moveBy=function(w,d){this.start.row+=w,this.start.column+=d,this.end.row+=w,this.end.column+=d},p}();u.fromPoints=function(p,w){return new u(p.row,p.column,w.row,w.column)},u.comparePoints=function(p,w){return p.row-w.row||p.column-w.column},r.Range=u}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,h){for(var u=t("./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},d=0;d<10;d++)w["Digit"+d]=48+d,w["Numpad"+d]=96+d,p.PRINTABLE_KEYS[48+d]=""+d,p.FUNCTION_KEYS[96+d]="Numpad"+d;for(var d=65;d<91;d++){var g=String.fromCharCode(d+32);w["Key"+g.toUpperCase()]=d,p.PRINTABLE_KEYS[d]=g}for(var d=1;d<13;d++)w["F"+d]=111+d,p.FUNCTION_KEYS[111+d]="F"+d;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var c in s)w[c]=w[c+"Left"]=w[c+"Right"]=s[c];r.$codeToKeyCode=w,p.PRINTABLE_KEYS[173]="-";for(var a in p.FUNCTION_KEYS){var l=p.FUNCTION_KEYS[a].toLowerCase();p[l]=parseInt(a,10)}for(var a in p.PRINTABLE_KEYS){var l=p.PRINTABLE_KEYS[a].toLowerCase();p[l]=parseInt(a,10)}u.mixin(p,p.MODIFIER_KEYS),u.mixin(p,p.PRINTABLE_KEYS),u.mixin(p,p.FUNCTION_KEYS),p.enter=p.return,p.escape=p.esc,p.del=p.delete,function(){for(var o=["cmd","ctrl","alt","shift"],f=Math.pow(2,o.length);f--;)p.KEY_MODS[f]=o.filter(function(y){return f&p.KEY_MODS[y]}).join("-")+"-"}(),p.KEY_MODS[0]="",p.KEY_MODS[-1]="input-",u.mixin(r,p),r.default=r,r.keyCodeToString=function(o){var f=p[o];return typeof f!="string"&&(f=String.fromCharCode(o)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,h){var u=t("./keys"),p=t("./useragent"),w=null,d=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function c(){return g==null&&s(),g}function a(M,A,k){this.elem=M,this.type=A,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(M,A,k,b){M.addEventListener(A,k,c()),b&&b.$toDestroy.push(new a(M,A,k))},o=r.removeListener=function(M,A,k){M.removeEventListener(A,k,c())};r.stopEvent=function(M){return r.stopPropagation(M),r.preventDefault(M),!1},r.stopPropagation=function(M){M.stopPropagation&&M.stopPropagation()},r.preventDefault=function(M){M.preventDefault&&M.preventDefault()},r.getButton=function(M){return M.type=="dblclick"?0:M.type=="contextmenu"||p.isMac&&M.ctrlKey&&!M.altKey&&!M.shiftKey?2:M.button},r.capture=function(M,A,k){var b=M&&M.ownerDocument||document;function T(R){A&&A(R),k&&k(R),o(b,"mousemove",A),o(b,"mouseup",T),o(b,"dragstart",T)}return l(b,"mousemove",A),l(b,"mouseup",T),l(b,"dragstart",T),T},r.addMouseWheelListener=function(M,A,k){l(M,"wheel",function(b){var T=.15,R=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*T,b.wheelY=L*T;break;case b.DOM_DELTA_LINE:var E=15;b.wheelX=R*E,b.wheelY=L*E;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=R*N,b.wheelY=L*N;break}A(b)},k)},r.addMultiMouseDownListener=function(M,A,k,b,T){var R=0,L,E,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(r.getButton($)!==0?R=0:$.detail>1?(R++,R>4&&(R=1)):R=1,p.isIE){var I=Math.abs($.clientX-L)>5||Math.abs($.clientY-E)>5;(!N||I)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[R-1]||600),R==1&&(L=$.clientX,E=$.clientY)}if($._clicks=R,k[b]("mousedown",$),R>4)R=0;else if(R>1)return k[b](S[R],$)}Array.isArray(M)||(M=[M]),M.forEach(function($){l($,"mousedown",_,T)})};function f(M){return 0|(M.ctrlKey?1:0)|(M.altKey?2:0)|(M.shiftKey?4:0)|(M.metaKey?8:0)}r.getModifierString=function(M){return u.KEY_MODS[f(M)]};function y(M,A,k){var b=f(A);if(!k&&A.code&&(k=u.$codeToKeyCode[A.code]||k),!p.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(b|=8),w.altGr)if((3&b)!=3)w.altGr=0;else return;if(k===18||k===17){var T=A.location;if(k===17&&T===1)w[k]==1&&(d=A.timeStamp);else if(k===18&&b===3&&T===2){var R=A.timeStamp-d;R<50&&(w.altGr=!0)}}}if(k in u.MODIFIER_KEYS&&(k=-1),!(!b&&k===13&&A.location===3&&(M(A,b,-k),A.defaultPrevented))){if(p.isChromeOS&&b&8){if(M(A,b,k),A.defaultPrevented)return;b&=-9}return!b&&!(k in u.FUNCTION_KEYS)&&!(k in u.PRINTABLE_KEYS)?!1:M(A,b,k)}}r.addCommandKeyListener=function(M,A,k){var b=null;l(M,"keydown",function(T){w[T.keyCode]=(w[T.keyCode]||0)+1;var R=y(A,T,T.keyCode);return b=T.defaultPrevented,R},k),l(M,"keypress",function(T){b&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),b=null)},k),l(M,"keyup",function(T){w[T.keyCode]=null},k),w||(v(),l(window,"focus",v))};function v(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!p.isOldIE){var x=1;r.nextTick=function(M,A){A=A||window;var k="zero-timeout-message-"+x++,b=function(T){T.data==k&&(r.stopPropagation(T),o(A,"message",b),M())};l(A,"message",b),A.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(M,A){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):M()},A)},r.$idleBlockId=null,r.blockIdle=function(M){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},M||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,h){var u;h.exports={lineMode:!1,pasteCancelled:function(){return u&&u>Date.now()-50?!0:u=!1},cancel:function(){u=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(t,r,h){var u=t("../lib/event"),p=t("../config").nls,w=t("../lib/useragent"),d=t("../lib/dom"),g=t("../lib/lang"),s=t("../clipboard"),c=w.isChrome<18,a=w.isIE,l=w.isChrome>63,o=400,f=t("../lib/keys"),y=f.KEY_MODS,v=w.isIOS,x=v?/\s/:/\n/,M=w.isMobile,A;A=function(k,b){var T=d.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var R=!1,L=!1,E=!1,N=!1,S="";M||(T.style.fontSize="1px");var _=!1,$=!1,I="",O=0,F=0,W=0,z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Re=b.session.selection.cursor.row;ce+=p("text-input.aria-label","Cursor at row $0",[Re+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",p("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),u.addListener(T,"blur",function(ce){$||(b.onBlur(ce),X=!1)},b),u.addListener(T,"focus",function(ce){if(!$){if(X=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),w.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),S||l||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Re=T.getBoundingClientRect().top!=0}catch{return}var De=[];if(Re)for(var Ye=T.parentElement;Ye&&Ye.nodeType==1;)De.push(Ye),Ye.setAttribute("ace_nocontext","true"),!Ye.parentElement&&Ye.getRootNode?Ye=Ye.getRootNode().host:Ye=Ye.parentElement;T.focus({preventScroll:!0}),Re&&De.forEach(function(Qe){Qe.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},b.on("beforeEndOperation",function(){var ce=b.curOp,Re=ce&&ce.command&&ce.command.name;if(Re!="insertstring"){var De=Re&&(ce.docChanged||ce.selectionChanged);E&&De&&(I=T.value="",tn()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Re){for(var De=Re,Ye=1;Ye<=ce-z&&Ye<2*q+1;Ye++)De+=b.session.getLine(ce-Ye).length+1;return De},Z=v?function(ce){if(!(!X||R&&!ce||N)){ce||(ce="");var Re=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Re!=T.value&&(T.value=I=Re);var De=4,Ye=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=De||F!=Ye)&&T.setSelectionRange(De,Ye),O=De,F=Ye}}:function(){if(!(E||N)&&!(!X&&!me)){E=!0;var ce=0,Re=0,De="";if(b.session){var Ye=b.selection,Qe=Ye.getRange(),mt=Ye.cursor.row;mt===V+1?(z=V+1,V=z+2*q):mt===z-1?(V=z-1,z=V-2*q):(mt<z-1||mt>V+1)&&(z=mt>q?mt-q:0,V=mt>q?mt+q:2*q);for(var yt=[],ht=z;ht<=V;ht++)yt.push(b.session.getLine(ht));if(De=yt.join(`
|
169
|
+
`),ce=G(Qe.start.row,Qe.start.column),Re=G(Qe.end.row,Qe.end.column),Qe.start.row<z){var dt=b.session.getLine(z-1);ce=Qe.start.row<z-1?0:ce,Re+=dt.length+1,De=dt+`
|
170
|
+
`+De}else if(Qe.end.row>V){var ot=b.session.getLine(V+1);Re=Qe.end.row>V+1?ot.length:Qe.end.column,Re+=De.length+1,De=De+`
|
171
|
+
`+ot}else M&&mt>0&&(De=`
|
172
|
+
`+De,Re+=1,ce+=1);De.length>o&&(ce<o&&Re<o?De=De.slice(0,o):(De=`
|
173
|
+
`,ce==Re?ce=Re=0:(ce=0,Re=1)));var Yt=De+`
|
174
|
+
|
175
|
+
`;Yt!=I&&(T.value=I=Yt,O=F=Yt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Re||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Re),O=ce,F=Re}catch{}E=!1}};this.resetSelection=Z,X&&b.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=I.length&&ce.value===I&&I&&ce.selectionEnd!==F},J=function(ce){E||(R?R=!1:re(T)?(b.selectAll(),Z()):M&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,we=function(ce,Re){if(me&&(me=!1),L)return Z(),ce&&b.onPaste(ce),L=!1,"";for(var De=T.selectionStart,Ye=T.selectionEnd,Qe=O,mt=I.length-F,yt=ce,ht=ce.length-De,dt=ce.length-Ye,ot=0;Qe>0&&I[ot]==ce[ot];)ot++,Qe--;for(yt=yt.slice(ot),ot=1;mt>0&&I.length-ot>O-1&&I[I.length-ot]==ce[ce.length-ot];)ot++,mt--;ht-=ot-1,dt-=ot-1;var Yt=yt.length-ot+1;if(Yt<0&&(Qe=-Yt,Yt=0),yt=yt.slice(0,Yt),!Re&&!yt&&!ht&&!Qe&&!mt&&!dt)return"";N=!0;var Un=!1;return w.isAndroid&&yt==". "&&(yt=" ",Un=!0),yt&&!Qe&&!mt&&!ht&&!dt||_?b.onTextInput(yt):b.onTextInput(yt,{extendLeft:Qe,extendRight:mt,restoreStart:ht,restoreEnd:dt}),N=!1,I=ce,O=De,F=Ye,W=dt,Un?`
|
176
|
+
`:yt},pe=function(ce){if(E)return Ft();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Re=T.value,De=we(Re,!0);(Re.length>o+100||x.test(De)||M&&O<1&&O==F)&&Z()},Ae=function(ce,Re,De){var Ye=ce.clipboardData||window.clipboardData;if(!(!Ye||c)){var Qe=a||De?"Text":"text/plain";try{return Re?Ye.setData(Qe,Re)!==!1:Ye.getData(Qe)}catch(mt){if(!De)return Ae(mt,Re,!0)}}},lt=function(ce,Re){var De=b.getCopyText();if(!De)return u.preventDefault(ce);Ae(ce,De)?(v&&(Z(De),R=De,setTimeout(function(){R=!1},10)),Re?b.onCut():b.onCopy(),u.preventDefault(ce)):(R=!0,T.value=De,T.select(),setTimeout(function(){R=!1,Z(),Re?b.onCut():b.onCopy()}))},zt=function(ce){lt(ce,!0)},gt=function(ce){lt(ce,!1)},wt=function(ce){var Re=Ae(ce);s.pasteCancelled()||(typeof Re=="string"?(Re&&b.onPaste(Re,ce),w.isIE&&setTimeout(Z),u.preventDefault(ce)):(T.value="",L=!0))};u.addCommandKeyListener(T,function(ce,Re,De){if(!E)return b.onCommandKey(ce,Re,De)},b),u.addListener(T,"select",J,b),u.addListener(T,"input",pe,b),u.addListener(T,"cut",zt,b),u.addListener(T,"copy",gt,b),u.addListener(T,"paste",wt,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&u.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:gt(ce);break;case 86:wt(ce);break;case 88:zt(ce);break}},b);var gn=function(ce){if(!(E||!b.onCompositionStart||b.$readOnly)&&(E={},!_)){ce.data&&(E.useTextareaForIME=!1),setTimeout(Ft,0),b._signal("compositionStart"),b.on("mousedown",ei);var Re=b.getSelectionRange();Re.end.row=Re.start.row,Re.end.column=Re.start.column,E.markerRange=Re,E.selectionStart=O,b.onCompositionStart(E),E.useTextareaForIME?(I=T.value="",O=0,F=0):(T.msGetInputContext&&(E.context=T.msGetInputContext()),T.getInputContext&&(E.context=T.getInputContext()))}},Ft=function(){if(!(!E||!b.onCompositionUpdate||b.$readOnly)){if(_)return ei();if(E.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;we(ce),E.markerRange&&(E.context&&(E.markerRange.start.column=E.selectionStart=E.context.compositionStartOffset),E.markerRange.end.column=E.markerRange.start.column+F-E.selectionStart+W)}}},tn=function(ce){!b.onCompositionEnd||b.$readOnly||(E=!1,b.onCompositionEnd(),b.off("mousedown",ei),ce&&pe())};function ei(){$=!0,T.blur(),T.focus(),$=!1}var Cn=g.delayedCall(Ft,50).schedule.bind(null,null);function an(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(E||(I=T.value),O=F=-1,Z()),Cn()}u.addListener(T,"compositionstart",gn,b),u.addListener(T,"compositionupdate",Ft,b),u.addListener(T,"keyup",an,b),u.addListener(T,"keydown",Cn,b),u.addListener(T,"compositionend",tn,b),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Re){S||(S=T.style.cssText),T.style.cssText=(Re?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var De=b.container.getBoundingClientRect(),Ye=d.computedStyle(b.container),Qe=De.top+(parseInt(Ye.borderTopWidth)||0),mt=De.left+(parseInt(De.borderLeftWidth)||0),yt=De.bottom-Qe-T.clientHeight-2,ht=function(dt){d.translate(T,dt.clientX-mt-2,Math.min(dt.clientY-Qe-2,yt))};ht(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(We),w.isWin&&u.capture(b.container,ht,ze))},this.onContextMenuClose=ze;var We;function ze(){clearTimeout(We),We=setTimeout(function(){S&&(T.style.cssText=S,S=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var ln=function(ce){b.textInput.onContextMenu(ce),ze()};u.addListener(T,"mouseup",ln,b),u.addListener(T,"mousedown",function(ce){ce.preventDefault(),ze()},b),u.addListener(b.renderer.scroller,"contextmenu",ln,b),u.addListener(T,"contextmenu",ln,b),v&&Ve(k,b,T);function Ve(ce,Re,De){var Ye=null,Qe=!1;De.addEventListener("keydown",function(yt){Ye&&clearTimeout(Ye),Qe=!0},!0),De.addEventListener("keyup",function(yt){Ye=setTimeout(function(){Qe=!1},100)},!0);var mt=function(yt){if(document.activeElement===De&&!(Qe||E||Re.$mouseHandler.isMousePressed)&&!R){var ht=De.selectionStart,dt=De.selectionEnd,ot=null,Yt=0;if(ht==0?ot=f.up:ht==1?ot=f.home:dt>F&&I[dt]==`
|
177
|
+
`?ot=f.end:ht<O&&I[ht-1]==" "?(ot=f.left,Yt=y.option):ht<O||ht==O&&F!=O&&ht==dt?ot=f.left:dt>F&&I.slice(0,dt).split(`
|
178
|
+
`).length>2?ot=f.down:dt>F&&I[dt-1]==" "?(ot=f.right,Yt=y.option):(dt>F||dt==F&&F!=O&&ht==dt)&&(ot=f.right),ht!==dt&&(Yt|=y.shift),ot){var Un=Re.onCommandKey({},Yt,ot);if(!Un&&Re.commands){ot=f.keyCodeToString(ot);var fi=Re.commands.findKeyCommand(Yt,ot);fi&&Re.execCommand(fi)}O=ht,F=dt,Z("")}}};document.addEventListener("selectionchange",mt),Re.on("destroy",function(){document.removeEventListener("selectionchange",mt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=A,r.$setUserAgentForTests=function(k,b){M=k,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,h){var u=t("../lib/useragent"),p=0,w=550,d=function(){function c(a){a.$clickSelection=null;var l=a.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(f){a[f]=this[f]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return c.prototype.onMouseDown=function(a){var l=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var f=this.editor,y=a.getButton();if(y!==0){var v=f.getSelectionRange(),x=v.isEmpty();(x||y==1)&&f.selection.moveToPosition(o),y==2&&(f.textInput.onContextMenu(a.domEvent),u.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},c.prototype.startSelect=function(a,l){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):l||o.selection.moveToPosition(a),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var a,l=this.editor,o=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(o);if(f==-1)a=this.$clickSelection.end;else if(f==1)a=this.$clickSelection.start;else{var y=s(this.$clickSelection,o);o=y.cursor,a=y.anchor}l.selection.setSelectionAnchor(a.row,a.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(a){var l,o=this.editor,f=o.renderer.screenToTextCoordinates(this.x,this.y),y=o.selection[a](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(y.start),x=this.$clickSelection.comparePoint(y.end);if(v==-1&&x<=0)l=this.$clickSelection.end,(y.end.row!=f.row||y.end.column!=f.column)&&(f=y.start);else if(x==1&&v>=0)l=this.$clickSelection.start,(y.start.row!=f.row||y.start.column!=f.column)&&(f=y.end);else if(v==-1&&x==1)f=y.end,l=y.start;else{var M=s(this.$clickSelection,f);f=M.cursor,l=M.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(f),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>p||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(a){var l=a.getDocumentPosition(),o=this.editor,f=o.session,y=f.getBracketRange(l);y?(y.isEmpty()&&(y.start.column--,y.end.column++),this.setState("select")):(y=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=y,this.select()},c.prototype.onTripleClick=function(a){var l=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var f=o.getSelectionRange();f.isMultiLine()&&f.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(f.start.row),this.$clickSelection.end=o.selection.getLineRange(f.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(a){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,f=a.domEvent.timeStamp,y=f-o.t,v=y?a.wheelX/y:o.vx,x=y?a.wheelY/y:o.vy;y<w&&(v=(v+o.vx)/2,x=(x+o.vy)/2);var M=Math.abs(v/x),A=!1;if(M>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(A=!0),M<=1&&l.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(A=!0),A)o.allowed=f;else if(f-o.allowed<w){var k=Math.abs(v)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=f):o.allowed=0}if(o.t=f,o.vx=v,o.vy=x,A)return l.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},c}();d.prototype.selectEnd=d.prototype.selectByLinesEnd,d.prototype.selectAllEnd=d.prototype.selectByLinesEnd,d.prototype.selectByWordsEnd=d.prototype.selectByLinesEnd,r.DefaultHandlers=d;function g(c,a,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-a,2))}function s(c,a){if(c.start.row==c.end.row)var l=2*a.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=a.column-4;else var l=2*a.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,r,h){r.preventParentScroll=function(u){u.stopPropagation();var p=u.currentTarget,w=p.scrollHeight>p.clientHeight;w||u.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,h){var u=this&&this.__extends||function(){var f=function(y,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var A in M)Object.prototype.hasOwnProperty.call(M,A)&&(x[A]=M[A])},f(y,v)};return function(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(y,v);function x(){this.constructor=y}y.prototype=v===null?Object.create(v):(x.prototype=v.prototype,new x)}}(),p=this&&this.__values||function(f){var y=typeof Symbol=="function"&&Symbol.iterator,v=y&&f[y],x=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&x>=f.length&&(f=void 0),{value:f&&f[x++],done:!f}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},w=t("./lib/dom");t("./lib/event");var d=t("./range").Range,g=t("./lib/scroll").preventParentScroll,s="ace_tooltip",c=function(){function f(y){this.isOpen=!1,this.$element=null,this.$parentNode=y}return f.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(y){this.getElement().textContent=y},f.prototype.setHtml=function(y){this.getElement().innerHTML=y},f.prototype.setPosition=function(y,v){this.getElement().style.left=y+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(y){w.addCssClass(this.getElement(),y)},f.prototype.setTheme=function(y){this.$element.className=s+" "+(y.isDark?"ace_dark ":"")+(y.cssClass||"")},f.prototype.show=function(y,v,x){y!=null&&this.setText(y),v!=null&&x!=null&&this.setPosition(v,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(y){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),a=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(y){this.popups.push(y),this.updatePopups()},f.prototype.removePopup=function(y){var v=this.popups.indexOf(y);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var y,v,x,M;this.popups.sort(function(S,_){return _.priority-S.priority});var A=[];try{for(var k=p(this.popups),b=k.next();!b.done;b=k.next()){var T=b.value,R=!0;try{for(var L=(x=void 0,p(A)),E=L.next();!E.done;E=L.next()){var N=E.value;if(this.doPopupsOverlap(N,T)){R=!1;break}}}catch(S){x={error:S}}finally{try{E&&!E.done&&(M=L.return)&&M.call(L)}finally{if(x)throw x.error}}R?A.push(T):T.hide()}}catch(S){y={error:S}}finally{try{b&&!b.done&&(v=k.return)&&v.call(k)}finally{if(y)throw y.error}}},f.prototype.doPopupsOverlap=function(y,v){var x=y.getElement().getBoundingClientRect(),M=v.getElement().getBoundingClientRect();return x.left<M.right&&x.right>M.left&&x.top<M.bottom&&x.bottom>M.top},f}(),l=new a;r.popupManager=l,r.Tooltip=c;var o=function(f){u(y,f);function y(v){v===void 0&&(v=document.body);var x=f.call(this,v)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var M=x.getElement();return M.style.whiteSpace="pre-wrap",M.style.pointerEvents="auto",M.addEventListener("mouseout",x.onMouseOut),M.tabIndex=-1,M.addEventListener("blur",(function(){M.contains(document.activeElement)||this.hide()}).bind(x)),M.addEventListener("wheel",g),x}return y.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},y.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},y.prototype.onMouseMove=function(v,x){this.lastEvent=v,this.lastT=Date.now();var M=x.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||M||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||M||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},y.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},y.prototype.isOutsideOfText=function(v){var x=v.editor,M=v.getDocumentPosition(),A=x.session.getLine(M.row);if(M.column==A.length){var k=x.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=x.session.documentToScreenPosition(M.row,M.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},y.prototype.setDataProvider=function(v){this.$gatherData=v},y.prototype.showForRange=function(v,x,M,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,v.session),this.range=d.fromPoints(x.start,x.end);var T=b.textToScreenCoordinates(x.start.row,x.start.column),R=b.scroller.getBoundingClientRect();T.pageX<R.left&&(T.pageX=R.left);var L=this.getElement();L.innerHTML="",L.appendChild(M),L.style.maxHeight="",L.style.display="block";var E=L.clientHeight,N=L.clientWidth,S=window.innerHeight-T.pageY-b.lineHeight,_=!0;T.pageY-E<0&&T.pageY<S&&(_=!1),L.style.maxHeight=(_?T.pageY:S)-k+"px",L.style.top=_?"":T.pageY+b.lineHeight+"px",L.style.bottom=_?window.innerHeight-T.pageY+"px":"",L.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},y.prototype.addMarker=function(v,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(v,"ace_highlight-marker","text")},y.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},y.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},y.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},y.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},y}(c);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(t,r,h){var u=this&&this.__extends||function(){var l=function(o,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(y[x]=v[x])},l(o,f)};return function(o,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");l(o,f);function y(){this.constructor=o}o.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),p=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&l[o],y=0;if(f)return f.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&y>=l.length&&(l=void 0),{value:l&&l[y++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=t("../lib/dom"),d=t("../lib/event"),g=t("../tooltip").Tooltip,s=t("../config").nls;t("../lib/lang");function c(l){var o=l.editor,f=o.renderer.$gutterLayer,y=new a(o);l.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=f.getRegion(b);if(T!="foldWidgets"){var R=b.getDocumentPosition().row,L=o.session.selection;if(b.getShiftKey())L.selectTo(R,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();l.$clickSelection=o.selection.getLineRange(R)}return l.setState("selectByLines"),l.captureMouse(b),b.preventDefault()}}});var v,x;function M(){var b=x.getDocumentPosition().row,T=o.session.getLength();if(b==T){var R=o.renderer.pixelToScreenCoordinates(0,x.y).row,L=x.$pos;if(R>o.session.documentToScreenRow(L.row,L.column))return A()}if(y.showTooltip(b),!!y.isOpen)if(o.on("mousewheel",A),l.$tooltipFollowsMouse)k(x);else{var E=x.getGutterRow(),N=f.$lines.get(E);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=y.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(x)}}function A(){v&&(v=clearTimeout(v)),y.isOpen&&(y.hideTooltip(),o.off("mousewheel",A))}function k(b){y.setPosition(b.x,b.y)}l.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return A();y.isOpen&&l.$tooltipFollowsMouse&&k(b),x=b,!v&&(v=setTimeout(function(){v=null,x&&!l.isMousePressed?M():A()},50))}),d.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!y.isOpen||v)&&(v=setTimeout(function(){v=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}r.GutterHandler=c;var a=function(l){u(o,l);function o(f){var y=l.call(this,f.container)||this;return y.editor=f,y.visibleTooltipRow,y}return o.prototype.setPosition=function(f,y){var v=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,M=this.getWidth(),A=this.getHeight();f+=15,y+=15,f+M>v&&(f-=f+M-v),y+A>x&&(y-=20+A),g.prototype.setPosition.call(this,f,y)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(f){var y,v=this.editor.renderer.$gutterLayer,x=v.$annotations[f],M;x?M={displayText:Array.from(x.displayText),type:Array.from(x.type)}:M={displayText:[],type:[]};var A=v.session.getFoldLine(f);if(A&&v.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,R=f+1;R<=A.end.row;R++)if(v.$annotations[R])for(var L=0;L<v.$annotations[R].text.length;L++){var E=v.$annotations[R].type[L];k[E].push(v.$annotations[R].text[L]),(!T||b[E]<b[T])&&(T=E)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");M.displayText.push(N),M.type.push(T+"_fold")}}if(M.displayText.length===0)return this.hideTooltip();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<M.displayText.length;R++){var $=w.createElement("span"),I=w.createElement("span");(y=I.classList).add.apply(y,["ace_".concat(M.type[R]),_]),I.setAttribute("aria-label","".concat(o.annotationLabels[M.type[R].replace("_fold","")].singular)),I.setAttribute("role","img"),I.appendChild(w.createTextNode(" ")),$.appendChild(I),$.appendChild(w.createTextNode(M.displayText[R])),$.appendChild(w.createElement("br")),S[M.type[R].replace("_fold","")].push($)}var O=this.getElement();w.removeChildren(O),S.error.forEach(function(F){return O.appendChild(F)}),S.security.forEach(function(F){return O.appendChild(F)}),S.warning.forEach(function(F){return O.appendChild(F)}),S.info.forEach(function(F){return O.appendChild(F)}),S.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(f){var y,v,x=[],M=["error","security","warning","info","hint"];try{for(var A=p(M),k=A.next();!k.done;k=A.next()){var b=k.value;if(f[b].length){var T=f[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(f[b].length," ").concat(T))}}}catch(R){y={error:R}}finally{try{k&&!k.done&&(v=A.return)&&v.call(A)}finally{if(y)throw y.error}}return x.join(", ")},o}(g);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,h){var u=t("../lib/event"),p=t("../lib/useragent"),w=function(){function d(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return d.prototype.stopPropagation=function(){u.stopPropagation(this.domEvent),this.propagationStopped=!0},d.prototype.preventDefault=function(){u.preventDefault(this.domEvent),this.defaultPrevented=!0},d.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},d.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},d.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-c},d.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=s.contains(c.row,c.column)}return this.$inSelection},d.prototype.getButton=function(){return u.getButton(this.domEvent)},d.prototype.getShiftKey=function(){return this.domEvent.shiftKey},d.prototype.getAccelKey=function(){return p.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},d}();r.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,h){var u=t("../lib/dom"),p=t("../lib/event"),w=t("../lib/useragent"),d=200,g=200,s=5;function c(l){var o=l.editor,f=u.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var y=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];y.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var v=o.container,x,M,A,k,b,T,R=0,L,E,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!v.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(f),re.setDragImage&&re.setDragImage(f,0,0),setTimeout(function(){o.container.removeChild(f)}),re.clearData(),re.setData("Text",o.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(G){if(v.draggable=!1,E=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!L&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,A=G.clientY,x||F(),R++,G.dataTransfer.dropEffect=L=X(G),p.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,A=G.clientY,x||(F(),R++),z!==null&&(z=null),G.dataTransfer.dropEffect=L=X(G),p.preventDefault(G)},this.onDragLeave=function(G){if(R--,R<=0&&x)return W(),L=null,p.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(E)switch(L){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var re=Z.getData("Text");b={start:T,end:o.session.insert(T,re)},o.focus(),L=null}return W(),p.preventDefault(G)}},p.addListener(v,"dragstart",this.onDragStart.bind(l),o),p.addListener(v,"dragend",this.onDragEnd.bind(l),o),p.addListener(v,"dragenter",this.onDragEnter.bind(l),o),p.addListener(v,"dragover",this.onDragOver.bind(l),o),p.addListener(v,"dragleave",this.onDragLeave.bind(l),o),p.addListener(v,"drop",this.onDrop.bind(l),o);function $(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=re,_={x:M,y:A};else{var me=a(_.x,_.y,M,A);me>s?S=null:re-S>=g&&(o.renderer.scrollCursorIntoView(),S=null)}}function I(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),we={x:{left:M-me.left,right:me.right-M},y:{top:A-me.top,bottom:me.bottom-A}},pe=Math.min(we.x.left,we.x.right),Ae=Math.min(we.y.top,we.y.bottom),lt={row:G.row,column:G.column};pe/ae<=2&&(lt.column+=we.x.left<we.x.right?-3:2),Ae/J<=1&&(lt.row+=we.y.top<we.y.bottom?-1:1);var zt=G.row!=lt.row,gt=G.column!=lt.column,wt=!Z||G.row!=Z.row;zt||gt&&!wt?N?re-N>=d&&o.renderer.scrollCursorIntoView(lt):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(M,A),$(T,G),I(T,G)}function F(){b=o.selection.toOrientedRange(),x=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),R=0,p.addListener(document,"mousemove",V)}function W(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!E&&o.$resetCursorStyle(),b=null,T=null,R=0,N=null,S=null,p.removeListener(document,"mousemove",V)}var z=null;function V(){z==null&&(z=setTimeout(function(){z!=null&&x&&W()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":re.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var f=w.isWin?"default":"move";l.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&o.dragDrop()}if(this.state==="dragWait"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,f=l.inSelection(),y=l.getButton(),v=l.domEvent.detail||1;if(v===1&&y===0&&f){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var M=o.container;M.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function a(l,o,f,y){return Math.sqrt(Math.pow(f-l,2)+Math.pow(y-o,2))}r.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,h){var u=t("./mouse_event").MouseEvent,p=t("../lib/event"),w=t("../lib/dom");r.addTouchListeners=function(d,g){var s="scroll",c,a,l,o,f,y,v=0,x,M=0,A=0,k=0,b,T;function R(){var $=window.navigator&&window.navigator.clipboard,I=!1,O=function(){var z=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(I?["span",!z&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],z&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],z&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(z){return g.commands.canExecute(z,g)},W=function(z){var V=z.target.getAttribute("action");if(V=="more"||!I)return I=!I,O();V=="paste"?$.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&($?$.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",I=!1,V!="openCommandPalette"&&g.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(z){s="menu",z.stopPropagation(),z.preventDefault(),g.textInput.focus()},ontouchend:function(z){z.stopPropagation(),z.preventDefault(),W(z)},onclick:W},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function L(){if(!g.getOption("enableMobileMenu")){T&&E();return}T||R();var $=g.selection.cursor,I=g.renderer.textToScreenCoordinates($.row,$.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,W=g.container.getBoundingClientRect();T.style.top=I.pageY-W.top-3+"px",I.pageX-W.left<W.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-W.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",E)}function E($){T&&(T.style.display="none"),g.off("input",E)}function N(){f=null,clearTimeout(f);var $=g.selection.getRange(),I=$.contains(x.row,x.column);($.isEmpty()||!I)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",L()}function S(){f=null,clearTimeout(f),g.selection.moveToPosition(x);var $=M>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);$&&!$.isEmpty()?g.selection.setRange($):g.selection.selectWord(),s="wait"}p.addListener(d,"contextmenu",function($){if(b){var I=g.textInput.getElement();I.focus()}},g),p.addListener(d,"touchstart",function($){var I=$.touches;if(f||I.length>1){clearTimeout(f),f=null,l=-1,s="zoom";return}b=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,W=$.timeStamp;o=W;var z=I[0],V=z.clientX,q=z.clientY;Math.abs(c-V)+Math.abs(a-q)>O&&(l=-1),c=$.clientX=V,a=$.clientY=q,A=k=0;var X=new u($,g);if(x=X.getDocumentPosition(),W-l<500&&I.length==1&&!v)M++,$.preventDefault(),$.button=0,S();else{M=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,re=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,we=g.renderer.scrollLeft,pe=function(zt,gt){return zt=zt/F,gt=gt/O-.75,zt*zt+gt*gt};if($.clientX<ae.left){s="zoom";return}var Ae=pe($.clientX-ae.left-re.left+we,$.clientY-ae.top-re.top+me),lt=pe($.clientX-ae.left-J.left+we,$.clientY-ae.top-J.top+me);Ae<3.5&<<3.5&&(s=Ae>lt?"cursor":"anchor"),lt<3.5?s="anchor":Ae<3.5?s="cursor":s="scroll",f=setTimeout(N,450)}l=W},g),p.addListener(d,"touchend",function($){b=g.$mouseHandler.isMousePressed=!1,y&&clearInterval(y),s=="zoom"?(s="",v=0):f?(g.selection.moveToPosition(x),v=0,L()):s=="scroll"?(_(),E()):L(),clearTimeout(f),f=null},g),p.addListener(d,"touchmove",function($){f&&(clearTimeout(f),f=null);var I=$.touches;if(!(I.length>1||s=="zoom")){var O=I[0],F=c-O.clientX,W=a-O.clientY;if(s=="wait")if(F*F+W*W>4)s="cursor";else return $.preventDefault();c=O.clientX,a=O.clientY,$.clientX=O.clientX,$.clientY=O.clientY;var z=$.timeStamp,V=z-o;if(o=z,s=="scroll"){var q=new u($,g);q.speed=1,q.wheelX=F,q.wheelY=W,10*Math.abs(F)<Math.abs(W)&&(F=0),10*Math.abs(W)<Math.abs(F)&&(W=0),V!=0&&(A=F/V,k=W/V),g._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var X=new u($,g),G=X.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),$.preventDefault()}}},g);function _(){v+=60,y=setInterval(function(){v--<=0&&(clearInterval(y),y=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),v<20&&(A=.9*A),v<20&&(k=.9*k);var $=g.session.getScrollTop();g.renderer.scrollBy(10*A,10*k),$==g.session.getScrollTop()&&(v=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(t,r,h){var u=t("../lib/event"),p=t("../lib/useragent"),w=t("./default_handlers").DefaultHandlers,d=t("./default_gutter_handler").GutterHandler,g=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,c=t("./touch_handler").addTouchListeners,a=t("../config"),l=function(){function o(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var y=this;this.editor=f,new w(this),new d(this),new s(this);var v=function(A){var k=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());k&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},x=f.renderer.getMouseEventTarget();u.addListener(x,"click",this.onMouseEvent.bind(this,"click"),f),u.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),u.addMultiMouseDownListener([x,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),u.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),c(f.container,f);var M=f.renderer.$gutter;u.addListener(M,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),u.addListener(M,"click",this.onMouseEvent.bind(this,"gutterclick"),f),u.addListener(M,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),u.addListener(M,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),u.addListener(x,"mousedown",v,f),u.addListener(M,"mousedown",v,f),p.isIE&&f.renderer.scrollBarV&&(u.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),u.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(A){if(!(y.state||y.$dragDelay||!y.$dragEnabled)){var k=f.renderer.screenToTextCoordinates(A.x,A.y),b=f.session.selection.getRange(),T=f.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},f)}return o.prototype.onMouseEvent=function(f,y){this.editor.session&&this.editor._emit(f,new g(y,this.editor))},o.prototype.onMouseMove=function(f,y){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new g(y,this.editor))},o.prototype.onMouseWheel=function(f,y){var v=new g(y,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=y.wheelX,v.wheelY=y.wheelY,this.editor._emit(f,v)},o.prototype.setState=function(f){this.state=f},o.prototype.captureMouse=function(f,y){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var M=this,A=function(L){if(L){if(p.isWebKit&&!L.which&&M.releaseMouse)return M.releaseMouse();M.x=L.clientX,M.y=L.clientY,y&&y(L),M.mouseEvent=new g(L,M.editor),M.$mouseMoved=!0}},k=function(L){v.off("beforeEndOperation",T),clearInterval(R),v.session&&b(),M[M.state+"End"]&&M[M.state+"End"](L),M.state="",M.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,L&&M.onMouseEvent("mouseup",L),v.endOperation()},b=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1};if(p.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){k(f)});var T=function(L){M.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};v.on("beforeEndOperation",T),v.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=A,M.releaseMouse=u.capture(this.editor.container,A,k);var R=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var f=(function(y){y&&y.domEvent&&y.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),y&&y.domEvent&&u.stopEvent(y.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:p.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,h){var u=t("../lib/dom"),p=function(){function w(d){d.on("click",function(g){var s=g.getDocumentPosition(),c=d.session,a=c.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?c.removeFold(a):c.expandFold(a),g.stop());var l=g.domEvent&&g.domEvent.target;l&&u.hasCssClass(l,"ace_inline_button")&&u.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),d.renderer.scrollCursorIntoView())}),d.on("gutterclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=d.session;a.foldWidgets&&a.foldWidgets[c]&&d.session.onFoldWidgetClick(c,g),d.isFocused()||d.focus(),g.stop()}}),d.on("gutterdblclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=d.session,l=a.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var f=a.getFoldAt(c,a.getLine(c).length,1);f?a.removeFold(f):(a.addFold("...",o),d.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return w}();r.FoldHandler=p}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,h){var u=t("../lib/keys"),p=t("../lib/event"),w=function(){function d(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return d.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},d.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},d.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var c=this.$handlers.indexOf(g);c!=-1&&this.$handlers.splice(c,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),c==-1&&g.attach&&g.attach(this.$editor)}},d.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},d.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},d.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(s,g)||""}).filter(Boolean).join(" ")},d.prototype.$callKeyboardHandlers=function(g,s,c,a){for(var l,o=!1,f=this.$editor.commands,y=this.$handlers.length;y--&&(l=this.$handlers[y].handleKeyboard(this.$data,g,s,c,a),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=f.exec(l.command,this.$editor,l.args,a),o&&a&&g!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&p.stopEvent(a),o))););return!o&&g==-1&&(l={command:"insertstring"},o=f.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},d.prototype.onCommandKey=function(g,s,c){var a=u.keyCodeToString(c);return this.$callKeyboardHandlers(s,a,c,g)},d.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},d}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,h){var u=0,p=0,w=!1,d=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],a=0,l=1,o=0,f=1,y=2,v=3,x=4,M=5,A=6,k=7,b=8,T=9,R=10,L=11,E=12,N=13,S=14,_=15,$=16,I=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,M,A,b,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,M,M,M,A,b,x,x,L,L,L,x,x,x,x,x,R,T,R,T,T,y,y,y,y,y,y,y,y,y,y,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,x,L,L,L,L,x,x,x,x,o,x,x,O,x,x,L,L,y,y,x,o,x,x,x,y,o,x,x,x,x,x],W=[b,b,b,b,b,b,b,b,b,b,b,O,O,O,o,f,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b,M,N,S,_,$,I,T,L,L,L,L,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b];function z(G,Z,re,J){var ae=u?c:s,me=null,we=null,pe=null,Ae=0,lt=null,zt=null,gt=-1,wt=null,gn=null,Ft=[];if(!J)for(wt=0,J=[];wt<re;wt++)J[wt]=X(G[wt]);for(p=u,w=!1,d=!1,g=!1,gn=0;gn<re;gn++){if(me=Ae,Ft[gn]=we=q(G,J,Ft,gn),Ae=ae[me][we],lt=Ae&240,Ae&=15,Z[gn]=pe=ae[Ae][5],lt>0)if(lt==16){for(wt=gt;wt<gn;wt++)Z[wt]=1;gt=-1}else gt=-1;if(zt=ae[Ae][6],zt)gt==-1&&(gt=gn);else if(gt>-1){for(wt=gt;wt<gn;wt++)Z[wt]=pe;gt=-1}J[gn]==M&&(Z[gn]=0),p|=pe}if(g){for(wt=0;wt<re;wt++)if(J[wt]==A){Z[wt]=u;for(var tn=wt-1;tn>=0&&J[tn]==b;tn--)Z[tn]=u}}}function V(G,Z,re){if(!(p<G)){if(G==1&&u==l&&!d){re.reverse();return}for(var J=re.length,ae=0,me,we,pe,Ae;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(we=ae,pe=me-1;we<pe;we++,pe--)Ae=re[we],re[we]=re[pe],re[pe]=Ae;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,we,pe,Ae;switch(ae){case o:case f:w=!1;case x:case v:return ae;case y:return w?v:y;case k:return w=!0,f;case b:return x;case T:return J<1||J+1>=Z.length||(me=re[J-1])!=y&&me!=v||(we=Z[J+1])!=y&&we!=v?x:(w&&(we=v),we==me?we:x);case R:return me=J>0?re[J-1]:M,me==y&&J+1<Z.length&&Z[J+1]==y?y:x;case L:if(J>0&&re[J-1]==y)return y;if(w)return x;for(Ae=J+1,pe=Z.length;Ae<pe&&Z[Ae]==L;)Ae++;return Ae<pe&&Z[Ae]==y?y:x;case E:for(pe=Z.length,Ae=J+1;Ae<pe&&Z[Ae]==E;)Ae++;if(Ae<pe){var lt=G[J],zt=lt>=1425&<<=2303||lt==64286;if(me=Z[Ae],zt&&(me==f||me==k))return f}return J<1||(me=Z[J-1])==M?x:re[J-1];case M:return w=!1,d=!0,u;case A:return g=!0,x;case N:case S:case $:case I:case _:w=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?f:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?E:/[\u0660-\u0669\u066b-\u066c]/.test(G)?v:Z==1642?L:/[\u06f0-\u06f9]/.test(G)?y:k:re==32&&Z<=8287?W[Z&255]:re==254&&Z>=65136?k:x}r.L=o,r.R=f,r.EN=y,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),we=[];u=re?l:a,z(J,we,J.length,Z);for(var pe=0;pe<ae.length;ae[pe]=pe,pe++);V(2,we,ae),V(1,we,ae);for(var pe=0;pe<ae.length-1;pe++)Z[pe]===v?we[pe]=r.AN:we[pe]===f&&(Z[pe]>k&&Z[pe]<N||Z[pe]===x||Z[pe]===O)?we[pe]=r.ON_R:pe>0&&J[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[pe])&&(we[pe-1]=we[pe]=r.R_H,pe++);J[J.length-1]===r.DOT&&(we[J.length-1]=r.B),J[0]===""&&(we[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)me[pe]=we[ae[pe]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==f||Z[J]==k||Z[J]==v)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,h){var u=t("./lib/bidiutil"),p=t("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,d=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=u,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(s.getValue())}return g.prototype.isBidiRow=function(s,c,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(c,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,c=this.session.$screenRowCache;if(c.length){var a=this.session.$getRowCacheIndex(c,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,c=this.session.$screenRowCache;if(c.length)for(var a,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(c,this.currentRow-s-1),a===l);)l=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,c){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,l=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:u.DOT))}else this.line+=this.showInvisibles?l:u.DOT;var f=this.session,y=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,M){return x===" "||f.isFullWidth(x.charCodeAt(0))?(v=x===" "?f.getScreenTabSize(M+y):2,y+=v-1,p.stringRepeat(u.DOT,v)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==u.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];u.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var c=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=c,this.charWidths[u.R]=this.charWidths[u.AN]=a,this.charWidths[u.R_H]=a*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,c){for(var a=s.getCursorPosition(),l=s.selection.getSelectionAnchor().row;l<=a.row;l++)!c&&s.session.getLine(l).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(l,0,1):c&&s.session.getLine(l).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:l},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,a=s>c?this.session.getOverwrite()?s:s-1:c,l=u.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&s<=c&&o[l]%2!==0&&l++;for(var y=0;y<l;y++)f+=this.charWidths[o[y]];return!this.session.getOverwrite()&&s>c&&o[l]%2===0&&(f+=this.charWidths[o[l]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},g.prototype.getSelections=function(s,c){var a=this.bidiMap,l=a.bidiLevels,o,f=[],y=0,v=Math.min(s,c)-this.wrapIndent,x=Math.max(s,c)-this.wrapIndent,M=!1,A=!1,k=0;this.wrapIndent&&(y+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,T=0;T<l.length;T++)b=a.logicalFromVisual[T],o=l[T],M=b>=v&&b<x,M&&!A?k=y:!M&&A&&f.push({left:k,width:y-k}),y+=this.charWidths[o],A=M;if(M&&T===l.length&&f.push({left:k,width:y-k}),this.isRtlDir)for(var R=0;R<f.length;R++)f[R].left+=this.rtlLineOffset;return f},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var c=0,a=Math.max(a,0),l=0,o=0,f=this.bidiMap.bidiLevels,y=this.charWidths[f[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+y/2;){if(l+=y,o===f.length-1){y=0;break}y=this.charWidths[f[++o]]}return o>0&&f[o-1]%2!==0&&f[o]%2===0?(a<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&f[o-1]%2===0&&f[o]%2!==0?c=1+(a>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===f.length-1&&y===0&&f[o-1]%2===0||!this.isRtlDir&&o===0&&f[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&f[o-1]%2!==0&&y!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},g}();r.BidiHandler=d}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,h){var u=t("./lib/oop"),p=t("./lib/lang"),w=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=function(){function s(c){this.session=c,this.doc=c.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(l){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(c,a){this.$isEmpty=!1,this.anchor.setPosition(c,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var c=this.anchor,a=this.lead;return c.row>a.row||c.row==a.row&&c.column>a.column},s.prototype.getRange=function(){var c=this.anchor,a=this.lead;return this.$isEmpty?d.fromPoints(a,a):this.isBackwards()?d.fromPoints(a,c):d.fromPoints(c,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(c,a){var l=a?c.end:c.start,o=a?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},s.prototype.$setSelection=function(c,a,l,o){if(!this.$silent){var f=this.$isEmpty,y=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,a),this.cursor.setPosition(l,o),this.$isEmpty=!d.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||y)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(c){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),c.call(this)},s.prototype.selectTo=function(c,a){this.$moveSelection(function(){this.moveCursorTo(c,a)})},s.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},s.prototype.moveTo=function(c,a){this.clearSelection(),this.moveCursorTo(c,a)},s.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(c,a){if(typeof a>"u"){var l=c||this.lead;c=l.row,a=l.column}return this.session.getWordRange(c,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var c=this.getCursor(),a=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(c,a){var l=typeof c=="number"?c:this.lead.row,o,f=this.session.getFoldLine(l);return f?(l=f.start.row,o=f.end.row):o=l,a===!0?new d(l,0,o,this.session.getLine(o).length):new d(l,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(c,a,l){var o=c.column,f=c.column+a;return l<0&&(o=c.column-a,f=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,f).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.column,1))this.moveCursorTo(a.end.row,a.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var c=this.lead.row,a=this.lead.column,l=this.session.documentToScreenRow(c,a),o=this.session.screenToDocumentPosition(l,0),f=this.session.getDisplayLine(c,null,o.row,o.column),y=f.match(/^\s*/);y[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=y[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var c=this.lead,a=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==a.column){var l=this.session.getLine(a.row);if(a.column==l.length){var o=l.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,a=this.doc.getLine(c).length;this.moveCursorTo(c,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(c,a,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=l.substring(a)),a>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,a,-1);o==null&&(o=this.doc.getLine(c).substring(0,a));var f=p.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(a-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.$shortWordEndIndex=function(c){var a=0,l,o=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(c))a=this.session.tokenRe.lastIndex;else{for(;(l=c[a])&&o.test(l);)a++;if(a<1){for(f.lastIndex=0;(l=c[a])&&!f.test(l);)if(f.lastIndex=0,a++,o.test(l))if(a>2){a--;break}else{for(;(l=c[a])&&o.test(l);)a++;if(a>2)break}}}return f.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a),f=this.session.getFoldAt(c,a,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(a==l.length){var y=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<y&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var v=this.$shortWordEndIndex(o);this.moveCursorTo(c,a+v)},s.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,a);if(a===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var f=p.stringReverse(o),y=this.$shortWordEndIndex(f);return this.moveCursorTo(c,a-y)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(c,a){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];c<0?c-=f.rowsAbove||0:c>0&&(c+=f.rowCount-(f.rowsAbove||0))}var y=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&a===0&&y.row===this.lead.row&&(y.column,this.lead.column),this.moveCursorTo(y.row,y.column+a,a===0)},s.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},s.prototype.moveCursorTo=function(c,a,l){var o=this.session.getFoldAt(c,a,1);o&&(c=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(f.charAt(a))&&f.charAt(a-1)&&(this.lead.row==c&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(c,a),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(c,a,l){var o=this.session.screenToDocumentPosition(c,a);this.moveCursorTo(o.row,o.column,l)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(c){var a=this.getRange();return c?(c.start.column=a.start.column,c.start.row=a.start.row,c.end.column=a.end.column,c.end.row=a.end.row):c=a,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},s.prototype.getRangeOfMovements=function(c){var a=this.getCursor();try{c(this);var l=this.getCursor();return d.fromPoints(a,l)}catch{return d.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(a){var l=a.clone();return l.isBackwards=a.cursor==a.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},s.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var a=c.length;a--;){var l=d.fromPoints(c[a].start,c[a].end);c[a].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},s.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(c[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,u.implement(g.prototype,w),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,r,h){var u=t("./lib/report_error").reportError,p=2e3,w=function(){function d(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var c=this.states[s],a=[],l=0,o=this.matchMappings[s]={defaultToken:"text"},f="g",y=[],v=0;v<c.length;v++){var x=c[v];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),x.unicode&&f.indexOf("u")===-1&&(f+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var M=x.regex,A=new RegExp("(?:("+M+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||A==1?x.token=x.token[0]:A-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:A-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(A>1?x.onMatch=this.$applyToken:x.onMatch=x.token),A>1&&(/\\\d/.test(x.regex)?M=x.regex.replace(/\\([0-9]+)/g,function(k,b){return"\\"+(parseInt(b,10)+l+1)}):(A=1,M=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&y.push(x)),o[l]=v,l+=A,a.push(M),x.onMatch||(x.onMatch=null)}}a.length||(o[0]=0,a.push("$")),y.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,f)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",f)}}return d.prototype.$setMaxTokenCount=function(g){p=g|0},d.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),c=this.token.apply(this,s);if(typeof c=="string")return[{type:c,value:g}];for(var a=[],l=0,o=c.length;l<o;l++)s[l]&&(a[a.length]={type:c[l],value:s[l]});return a},d.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var c=[],a=this.tokenArray,l=0,o=a.length;l<o;l++)s[l+1]&&(c[c.length]={type:a[l],value:s[l+1]});return c},d.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,a){return a?"(?:":c});return s},d.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var c=0,a=!1,l={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,f,y,v,x,M){return a?a=x!="]":x?a=!0:v?(c==l.stack&&(l.end=M+1,l.stack=-1),c--):y&&(c++,y.length!=1&&(l.stack=c,l.start=M)),o}),l.end!=null&&/^\)*$/.test(g.substr(l.end))&&(g=g.substring(0,l.start)+g.substr(l.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},d.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var c=s.slice(0);s=c[0],s==="#tmp"&&(c.shift(),s=c.shift())}else var c=[];var a=s||"start",l=this.states[a];l||(a="start",l=this.states[a]);var o=this.matchMappings[a],f=this.regExps[a];f.lastIndex=0;for(var y,v=[],x=0,M=0,A={type:null,value:""};y=f.exec(g);){var k=o.defaultToken,b=null,T=y[0],R=f.lastIndex;if(R-T.length>x){var L=g.substring(x,R-T.length);A.type==k?A.value+=L:(A.type&&v.push(A),A={type:k,value:L})}for(var E=0;E<y.length-2;E++)if(y[E+1]!==void 0){b=l[o[E]],b.onMatch?k=b.onMatch(T,a,c,g):k=b.token,b.next&&(typeof b.next=="string"?a=b.next:a=b.next(a,c),l=this.states[a],l||(this.reportError("state doesn't exist",a),a="start",l=this.states[a]),o=this.matchMappings[a],x=R,f=this.regExps[a],f.lastIndex=R),b.consumeLineEnd&&(x=R);break}if(T){if(typeof k=="string")(!b||b.merge!==!1)&&A.type===k?A.value+=T:(A.type&&v.push(A),A={type:k,value:T});else if(k){A.type&&v.push(A),A={type:null,value:""};for(var E=0;E<k.length;E++)v.push(k[E])}}if(x==g.length)break;if(x=R,M++>p){for(M>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});x<g.length;)A.type&&v.push(A),A={value:g.substring(x,x+=500),type:"overflow"};a="start",c=[];break}}return A.type&&v.push(A),c.length>1&&c[0]!==a&&c.unshift("#tmp",a),{tokens:v,state:c.length?c:a}},d}();w.prototype.reportError=u,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,r,h){var u=t("../lib/deep_copy").deepCopy,p;p=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var c in g)this.$rules[c]=g[c];return}for(var c in g){for(var a=g[c],l=0;l<a.length;l++){var o=a[l];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+c]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,c,a,l){var o=typeof g=="function"?new g().getRules():g;if(a)for(var f=0;f<a.length;f++)a[f]=s+a[f];else{a=[];for(var y in o)a.push(s+y)}if(this.addRules(o,s),c)for(var v=Array.prototype[l?"push":"unshift"],f=0;f<a.length;f++)v.apply(this.$rules[a[f]],u(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},d=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function c(a){var l=s[a];l.processed=!0;for(var o=0;o<l.length;o++){var f=l[o],y=null;Array.isArray(f)&&(y=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var v=f.next||f.push;if(v&&Array.isArray(v)){var x=f.stateName;x||(x=f.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=g++)),s[x]=v,f.next=x,c(x)}else v=="pop"&&(f.next=d);if(f.push&&(f.nextState=f.next||f.push,f.next=w,delete f.push),f.rules)for(var M in f.rules)s[M]?s[M].push&&s[M].push.apply(s[M],f.rules[M]):s[M]=f.rules[M];var A=typeof f=="string"?f:f.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?y=A.map(function(b){return s[b]}):y=s[A]),y){var k=[o,1].concat(y);f.noEscape&&(k=k.filter(function(b){return!b.next})),l.splice.apply(l,k),o--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(s).forEach(c,this)},this.createKeywordMapper=function(g,s,c,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var f=g[o],y=f.split(a||"|"),v=y.length;v--;){var x=y[v];this.$keywordList.push(x),c&&(x=x.toLowerCase()),l[x]=o}},this),g=null,c?function(o){return l[o.toLowerCase()]||s}:function(o){return l[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(p.prototype),r.TextHighlightRules=p}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,h){var u;u=function(){this.$behaviours={}},(function(){this.add=function(p,w,d){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[p]:this.$behaviours[p]={}}this.$behaviours[p][w]=d},this.addBehaviours=function(p){for(var w in p)for(var d in p[w])this.add(w,d,p[w][d])},this.remove=function(p){this.$behaviours&&this.$behaviours[p]&&delete this.$behaviours[p]},this.inherit=function(p,w){if(typeof p=="function")var d=new p().getBehaviours(w);else var d=p.getBehaviours(w);this.addBehaviours(d)},this.getBehaviours=function(p){if(p){for(var w={},d=0;d<p.length;d++)this.$behaviours[p[d]]&&(w[p[d]]=this.$behaviours[p[d]]);return w}else return this.$behaviours}}).call(u.prototype),r.Behaviour=u}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,h){var u=t("./range").Range,p=function(){function w(d,g,s){this.$session=d,this.$row=g,this.$rowTokens=d.getTokens(g);var c=d.getTokenAt(g,s);this.$tokenIndex=c?c.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 d;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-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 d=this.$rowTokens,g=this.$tokenIndex,s=d[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=d[g].value.length;return s},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new u(this.$row,g,this.$row,g+d.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(t,r,h){var u=t("../../lib/oop"),p=t("../behaviour").Behaviour,w=t("../../token_iterator").TokenIterator,d=t("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,a={},l={'"':'"',"'":"'"},o=function(v){var x=-1;if(v.multiSelect&&(x=v.selection.index,a.rangeCount!=v.multiSelect.rangeCount&&(a={rangeCount:v.multiSelect.rangeCount})),a[x])return c=a[x];c=a[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,x,M,A){var k=v.end.row-v.start.row;return{text:M+x+A,selection:[0,v.start.column+1,k,v.end.column+(k?0:1)]}},y;y=function(v){v=v||{},this.add("braces","insertion",function(x,M,A,k,b){var T=A.getCursorPosition(),R=k.doc.getLine(T.row);if(b=="{"){o(A);var L=A.getSelectionRange(),E=k.doc.getTextRange(L),N=k.getTokenAt(T.row,T.column);if(E!==""&&E!=="{"&&A.getWrapBehavioursEnabled())return f(L,E,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(z){return z.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(y.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(y.isSaneInsertion(A,k))return/[\]\}\)]/.test(R[T.column])||A.inMultiSelectMode||v.braces?(y.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o(A);var _=R.substring(T.column,T.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if($!==null&&y.isAutoInsertedClosing(T,R,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
180
|
+
`||b==`\r
|
181
|
+
`){o(A);var I="";y.isMaybeInsertedClosing(T,R)&&(I=d.stringRepeat("}",c.maybeInsertedBrackets),y.clearMaybeInsertedClosing());var _=R.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(I)var F=this.$getIndent(R);else{y.clearMaybeInsertedClosing();return}var W=F+k.getTabString();return{text:`
|
182
|
+
`+W+`
|
183
|
+
`+F+I,selection:[1,W.length,1,W.length]}}else y.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,M,A,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="{"){o(A);var R=k.doc.getLine(b.start.row),L=R.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,M,A,k,b){if(b=="("){o(A);var T=A.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&A.getWrapBehavioursEnabled())return f(T,R,"(",")");if(y.isSaneInsertion(A,k))return y.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(b==")"){o(A);var L=A.getCursorPosition(),E=k.doc.getLine(L.row),N=E.substring(L.column,L.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(S!==null&&y.isAutoInsertedClosing(L,E,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,M,A,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="("){o(A);var R=k.doc.getLine(b.start.row),L=R.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(x,M,A,k,b){if(b=="["){o(A);var T=A.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&A.getWrapBehavioursEnabled())return f(T,R,"[","]");if(y.isSaneInsertion(A,k))return y.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){o(A);var L=A.getCursorPosition(),E=k.doc.getLine(L.row),N=E.substring(L.column,L.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(S!==null&&y.isAutoInsertedClosing(L,E,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,M,A,k,b){var T=k.doc.getTextRange(b);if(!b.isMultiLine()&&T=="["){o(A);var R=k.doc.getLine(b.start.row),L=R.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(x,M,A,k,b){var T=k.$mode.$quotes||l;if(b.length==1&&T[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;o(A);var R=b,L=A.getSelectionRange(),E=k.doc.getTextRange(L);if(E!==""&&(E.length!=1||!T[E])&&A.getWrapBehavioursEnabled())return f(L,E,R,R);if(!E){var N=A.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),I=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&I&&/escape/.test(I.type))return null;var F=I&&/string|escape/.test(I.type),W=!O||/string|escape/.test(O.type),z;if($==R)z=F!==W,z&&/string\.end/.test(O.type)&&(z=!1);else{if(F&&!W||F&&W)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[R]&&G[R].test(_);if(!Z&&q||X||$&&!/[\s;,.})\]\\]/.test($))return null;var re=S[N.column-2];if(_==R&&(re==R||V.test(re)))return null;z=!0}return{text:z?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,M,A,k,b){var T=k.$mode.$quotes||l,R=k.doc.getTextRange(b);if(!b.isMultiLine()&&T.hasOwnProperty(R)){o(A);var L=k.doc.getLine(b.start.row),E=L.substring(b.start.column+1,b.start.column+2);if(E==R)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,M,A,k,b){if(x==="doc-start"&&(b===`
|
184
|
+
`||b===`\r
|
185
|
+
`)&&A.selection.isEmpty()){var T=A.getCursorPosition();if(T.column===0)return;for(var R=k.doc.getLine(T.row),L=k.doc.getLine(T.row+1),E=k.getTokens(T.row),N=0,S=0;S<E.length;S++){N+=E[S].value.length;var _=E[S];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=E[S+1];if(!$||!/\.doc/.test($.type))return}}var I=T.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&I>F&&I<F+3||O!==-1&&F!==-1&&I>=O&&I<=F||!/\.doc/.test(_.type))return;break}}var W=this.$getIndent(R);if(/\s*\*/.test(L))return/^\s*\*/.test(R)?{text:b+W+"* ",selection:[1,2+W.length,1,2+W.length]}:{text:b+W+" * ",selection:[1,3+W.length,1,3+W.length]};if(/\/\*\*/.test(R.substring(0,T.column)))return{text:b+W+" * "+b+" "+W+"*/",selection:[1,4+W.length,1,4+W.length]}}})},y.isSaneInsertion=function(v,x){var M=v.getCursorPosition(),A=new w(x,M.row,M.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",g)){if(/[)}\]]/.test(v.session.getLine(M.row)[M.column]))return!0;var k=new w(x,M.row,M.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return A.stepForward(),A.getCurrentTokenRow()!==M.row||this.$matchTokenType(A.getCurrentToken()||"text",s)},y.$matchTokenType=function(v,x){return x.indexOf(v.type||v)>-1},y.recordAutoInsert=function(v,x,M){var A=v.getCursorPosition(),k=x.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=A.row,c.autoInsertedLineEnd=M+k.substr(A.column),c.autoInsertedBrackets++},y.recordMaybeInsert=function(v,x,M){var A=v.getCursorPosition(),k=x.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=A.row,c.maybeInsertedLineStart=k.substr(0,A.column)+M,c.maybeInsertedLineEnd=k.substr(A.column),c.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(v,x,M){return c.autoInsertedBrackets>0&&v.row===c.autoInsertedRow&&M===c.autoInsertedLineEnd[0]&&x.substr(v.column)===c.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(v,x){return c.maybeInsertedBrackets>0&&v.row===c.maybeInsertedRow&&x.substr(v.column)===c.maybeInsertedLineEnd&&x.substr(0,v.column)==c.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},u.inherits(y,p),r.CstyleBehaviour=y}),ace.define("ace/unicode",["require","exports","module"],function(t,r,h){for(var u=[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=[],d=0;d<u.length;d+=2)w.push(p+=u[d]),u[d+1]&&w.push(45,p+=u[d+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(t,r,h){var u=t("../config"),p=t("../tokenizer").Tokenizer,w=t("./text_highlight_rules").TextHighlightRules,d=t("./behaviour/cstyle").CstyleBehaviour,g=t("../unicode"),s=t("../lib/lang"),c=t("../token_iterator").TokenIterator,a=t("../range").Range,l;l=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new d,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.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(o,f,y,v){var x=f.doc,M=!0,A=!0,k=1/0,b=f.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var R=this.lineCommentStart.map(s.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var R=s.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;R=new RegExp("^(\\s*)(?:"+R+") ?"),T=f.getUseSoftTabs();var E=function(z,V){var q=z.match(R);if(q){var X=q[1].length,G=q[0].length;!$(z,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=L+" ",S=function(z,V){(!M||/\S/.test(z))&&($(z,k,k)?x.insertInLine({row:V,column:k},N):x.insertInLine({row:V,column:k},L))},_=function(z,V){return R.test(z)},$=function(z,V,q){for(var X=0;V--&&z.charAt(V)==" ";)X++;if(X%b!=0)return!1;for(var X=0;z.charAt(q++)==" ";)X++;return b>2?X%b!=b-1:X%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,I=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+s.escapeRegExp(L)+")"),O=new RegExp("(?:"+s.escapeRegExp(I)+")\\s*$"),S=function(Z,re){_(Z,re)||(!M||/\S/.test(Z))&&(x.insertInLine({row:re,column:Z.length},I),x.insertInLine({row:re,column:k},L))},E=function(Z,re){var J;(J=Z.match(O))&&x.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(R))&&x.removeInLine(re,J[1].length,J[0].length)},_=function(Z,re){if(R.test(Z))return!0;for(var J=f.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(z){for(var V=y;V<=v;V++)z(x.getLine(V),V)}var W=1/0;F(function(z,V){var q=z.search(/\S/);q!==-1?(q<k&&(k=q),A&&!_(z,V)&&(A=!1)):W>z.length&&(W=z.length)}),k==1/0&&(k=W,M=!1,A=!1),T&&k%b!=0&&(k=Math.floor(k/b)*b),F(A?E:S)},this.toggleBlockComment=function(o,f,y,v){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var M=new c(f,v.row,v.column),A=M.getCurrentToken();f.selection;var k=f.selection.toOrientedRange(),b,T;if(A&&/comment/.test(A.type)){for(var R,L;A&&/comment/.test(A.type);){var E=A.value.indexOf(x.start);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;R=new a(N,S,N,S+x.start.length);break}A=M.stepBackward()}for(var M=new c(f,v.row,v.column),A=M.getCurrentToken();A&&/comment/.test(A.type);){var E=A.value.indexOf(x.end);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;L=new a(N,S,N,S+x.end.length);break}A=M.stepForward()}L&&f.remove(L),R&&(f.remove(R),b=R.start.row,T=-x.start.length)}else T=x.start.length,b=y.start.row,f.insert(y.end,x.end),f.insert(y.start,x.start);k.start.row==b&&(k.start.column+=T),k.end.row==b&&(k.end.column+=T),f.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,f,y){return this.$getIndent(f)},this.checkOutdent=function(o,f,y){return!1},this.autoOutdent=function(o,f,y){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var f in o)if(o[f]){var y=o[f],v=y.prototype.$id,x=u.$modes[v];x||(u.$modes[v]=x=new y),u.$modes[f]||(u.$modes[f]=x),this.$embeds.push(f),this.$modes[f]=x}for(var M=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(T){(function(R){var L=M[T],E=R[L];R[M[T]]=function(){return this.$delegator(L,arguments,E)}})(k)},k=this,f=0;f<M.length;f++)A(f)},this.$delegator=function(o,f,y){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var x=v[2][v[2].length-1],M=this.$modes[x];if(M)return M[o].apply(M,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var A=0;A<this.$embeds.length;A++)if(this.$modes[this.$embeds[A]]){var k=v.split(this.$embeds[A]);if(!k[0]&&k[1]){f[0]=k[1];var M=this.$modes[this.$embeds[A]];return M[o].apply(M,f)}}var b=y.apply(this,f);return y?b:void 0},this.transformAction=function(o,f,y,v,x){if(this.$behaviour){var M=this.$behaviour.getBehaviours();for(var A in M)if(M[A][f]){var k=M[A][f].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var f=this.$tokenizer.rules,y=[];for(var v in f)for(var x=f[v],M=0,A=x.length;M<A;M++)if(typeof x[M].token=="string")/keyword|support|storage/.test(x[M].token)&&y.push(x[M].regex);else if(typeof x[M].token=="object"){for(var k=0,b=x[M].token.length;k<b;k++)if(/keyword|support|storage/.test(x[M].token[k])){var v=x[M].regex.match(/\(.+?\)/g)[k];y.push(v.substr(1,v.length-2))}}this.completionKeywords=y}return o?y.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,f,y,v){var x=this.$keywordList||this.$createKeywordList();return x.map(function(M){return{name:M,value:M,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),r.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,r,h){var u=t("./lib/dom"),p=function(){function w(d){this.session=d,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(d){var g;return this.lineWidgets?g=this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[d]?1+g:this.$wrapData[d].length+1+g},w.prototype.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(d+=g.rowCount)}),d},w.prototype.$onChangeEditor=function(d){this.attach(d.editor)},w.prototype.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(d){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},w.prototype.updateOnFold=function(d,g){var s=g.lineWidgets;if(!(!s||!d.action)){for(var c=d.data,a=c.start.row,l=c.end.row,o=d.action=="add",f=a+1;f<l;f++)s[f]&&(s[f].hidden=o);s[l]&&(o?s[a]?s[l].hidden=o:s[a]=s[l]:(s[a]==s[l]&&(s[a]=void 0),s[l].hidden=o))}},w.prototype.updateOnChange=function(d){var g=this.session.lineWidgets;if(g){var s=d.start.row,c=d.end.row-s;if(c!==0)if(d.action=="remove"){var a=g.splice(s+1,c);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);g[s]&&g[s].column!=null&&d.start.column>g[s].column&&s++,l.unshift(s,0),g.splice.apply(g,l),this.$updateRows()}}},w.prototype.$updateRows=function(){var d=this.session.lineWidgets;if(d){var g=!0;d.forEach(function(s,c){if(s)for(g=!1,s.row=c;s.$oldWidget;)s.$oldWidget.row=c,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[d.row];return g&&(d.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},w.prototype.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var g=this.editor.renderer;d.html&&!d.el&&(d.el=u.createElement("div"),d.el.innerHTML=d.html),d.text&&!d.el&&(d.el=u.createElement("div"),d.el.textContent=d.text),d.el&&(u.addCssClass(d.el,"ace_lineWidgetContainer"),d.className&&u.addCssClass(d.el,d.className),d.el.style.position="absolute",d.el.style.zIndex="5",g.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex="3"),d.pixelHeight==null&&(d.pixelHeight=d.el.offsetHeight)),d.rowCount==null&&(d.rowCount=d.pixelHeight/g.layerConfig.lineHeight);var s=this.session.getFoldAt(d.row,0);if(d.$fold=s,s){var c=this.session.lineWidgets;d.row==s.end.row&&!c[s.start.row]?c[s.start.row]=d:d.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(d),d},w.prototype.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[d.row];if(g==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;g;){if(g.$oldWidget==d){g.$oldWidget=d.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(d){for(var g=this.session.lineWidgets,s=g&&g[d],c=[];s;)c.push(s),s=s.$oldWidget;return c},w.prototype.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(d,g){var s=this.session._changedWidgets,c=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,l=0;l<s.length;l++){var o=s[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var f=o.h/c.lineHeight;o.coverLine&&(f-=this.session.getRowLineCount(o.row),f<0&&(f=0)),o.rowCount!=f&&(o.rowCount=f,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(d,g){var s=g.layerConfig,c=this.session.lineWidgets;if(c){for(var a=Math.min(this.firstRow,s.firstRow),l=Math.max(this.lastRow,s.lastRow,c.length);a>0&&!c[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=l;o++){var f=c[o];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,g.container.appendChild(f.el));var y=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;f.coverLine||(y+=s.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=y-s.offset+"px";var v=f.coverGutter?0:g.gutterWidth;f.fixedWidth||(v-=g.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=s.width+2*s.padding+"px"),f.fixedWidth?f.el.style.right=g.scrollBar.getWidth()+"px":f.el.style.right=""}}}},w}();r.LineWidgets=p}),ace.define("ace/apply_delta",["require","exports","module"],function(t,r,h){r.applyDelta=function(u,p,w){var d=p.start.row,g=p.start.column,s=u[d]||"";switch(p.action){case"insert":var c=p.lines;if(c.length===1)u[d]=s.substring(0,g)+p.lines[0]+s.substring(g);else{var a=[d,1].concat(p.lines);u.splice.apply(u,a),u[d]=s.substring(0,g)+u[d],u[d+p.lines.length-1]+=s.substring(g)}break;case"remove":var l=p.end.column,o=p.end.row;d===o?u[d]=s.substring(0,g)+s.substring(l):u.splice(d,o-d+1,s.substring(0,g)+u[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,h){var u=t("./lib/oop"),p=t("./lib/event_emitter").EventEmitter,w=function(){function s(c,a,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,l)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var a=g(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(c,a,l){var o;if(l?o={row:c,column:a}:o=this.$clipPositionToDocument(c,a),!(this.row==o.row&&this.column==o.column)){var f={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:f,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(c,a){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,a))),a<0&&(l.column=0),l},s}();w.prototype.$insertRight=!1,u.implement(w.prototype,p);function d(s,c,a){var l=a?s.column<=c.column:s.column<c.column;return s.row<c.row||s.row==c.row&&l}function g(s,c,a){var l=s.action=="insert",o=(l?1:-1)*(s.end.row-s.start.row),f=(l?1:-1)*(s.end.column-s.start.column),y=s.start,v=l?y:s.end;return d(c,y,a)?{row:c.row,column:c.column}:d(v,c,!a)?{row:c.row+o,column:c.column+(c.row==v.row?f:0)}:{row:y.row,column:y.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(t,r,h){var u=t("./lib/oop"),p=t("./apply_delta").applyDelta,w=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=t("./anchor").Anchor,s=function(){function c(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return c.prototype.setValue=function(a){var l=this.getLength()-1;this.remove(new d(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},a||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(a,l){return new g(this,a,l)},c.prototype.$detectNewLine=function(a){var l=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},c.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(a){return a==`\r
|
190
|
+
`||a=="\r"||a==`
|
191
|
+
`},c.prototype.getLine=function(a){return this.$lines[a]||""},c.prototype.getLines=function(a,l){return this.$lines.slice(a,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(a){var l;if(a.start.row===a.end.row)l=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{l=this.getLines(a.start.row,a.end.row),l[0]=(l[0]||"").substring(a.start.column);var o=l.length-1;a.end.row-a.start.row==o&&(l[o]=l[o].substring(0,a.end.column))}return l},c.prototype.insertLines=function(a,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,l)},c.prototype.removeLines=function(a,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,l)},c.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},c.prototype.insert=function(a,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(a,this.$split(l))},c.prototype.insertInLine=function(a,l){var o=this.clippedPos(a.row,a.column),f=this.pos(a.row,a.column+l.length);return this.applyDelta({start:o,end:f,action:"insert",lines:[l]},!0),this.clonePos(f)},c.prototype.clippedPos=function(a,l){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,l=void 0);var f=this.getLine(a);return l==null&&(l=f.length),l=Math.min(Math.max(l,0),f.length),{row:a,column:l}},c.prototype.clonePos=function(a){return{row:a.row,column:a.column}},c.prototype.pos=function(a,l){return{row:a,column:l}},c.prototype.$clipPosition=function(a){var l=this.getLength();return a.row>=l?(a.row=Math.max(0,l-1),a.column=this.getLine(l-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},c.prototype.insertFullLines=function(a,l){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},l)},c.prototype.insertMergedLines=function(a,l){var o=this.clippedPos(a.row,a.column),f={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:f,action:"insert",lines:l}),this.clonePos(f)},c.prototype.remove=function(a){var l=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(a,l,o){var f=this.clippedPos(a,l),y=this.clippedPos(a,o);return this.applyDelta({start:f,end:y,action:"remove",lines:this.getLinesForRange({start:f,end:y})},!0),this.clonePos(f)},c.prototype.removeFullLines=function(a,l){a=Math.min(Math.max(0,a),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&a>0,f=l<this.getLength()-1,y=o?a-1:a,v=o?this.getLine(y).length:0,x=f?l+1:l,M=f?0:this.getLine(x).length,A=new d(y,v,x,M),k=this.$lines.slice(a,l+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},c.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(a,l){if(a instanceof d||(a=d.fromPoints(a.start,a.end)),l.length===0&&a.isEmpty())return a.start;if(l==this.getTextRange(a))return a.end;this.remove(a);var o;return l?o=this.insert(a.start,l):o=a.start,o},c.prototype.applyDeltas=function(a){for(var l=0;l<a.length;l++)this.applyDelta(a[l])},c.prototype.revertDeltas=function(a){for(var l=a.length-1;l>=0;l--)this.revertDelta(a[l])},c.prototype.applyDelta=function(a,l){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!d.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(p(this.$lines,a,l),this._signal("change",a)))},c.prototype.$safeApplyDelta=function(a){var l=this.$lines.length;(a.action=="remove"&&a.start.row<l&&a.end.row<l||a.action=="insert"&&a.start.row<=l)&&this.applyDelta(a)},c.prototype.$splitAndapplyLargeDelta=function(a,l){for(var o=a.lines,f=o.length-l+1,y=a.start.row,v=a.start.column,x=0,M=0;x<f;x=M){M+=l-1;var A=o.slice(x,M);A.push(""),this.applyDelta({start:this.pos(y+x,v),end:this.pos(y+M,v=0),action:a.action,lines:A},!0)}a.lines=o.slice(x),a.start.row=y+x,a.start.column=v,this.applyDelta(a,!0)},c.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},c.prototype.indexToPosition=function(a,l){for(var o=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,y=l||0,v=o.length;y<v;y++)if(a-=o[y].length+f,a<0)return{row:y,column:a+o[y].length+f};return{row:v-1,column:a+o[v-1].length+f}},c.prototype.positionToIndex=function(a,l){for(var o=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,y=0,v=Math.min(a.row,o.length),x=l||0;x<v;++x)y+=o[x].length+f;return y+a.column},c.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},c}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",u.implement(s.prototype,w),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,h){var u=t("./lib/oop"),p=t("./lib/event_emitter").EventEmitter,w=function(){function d(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var c=this;this.$worker=function(){if(c.running){for(var a=new Date,l=c.currentLine,o=-1,f=c.doc,y=l;c.lines[l];)l++;var v=f.getLength(),x=0;for(c.running=!1;l<v;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(x++,x%5===0&&new Date-a>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),y<=o&&c.fireUpdateEvent(y,o)}}}return d.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},d.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},d.prototype.fireUpdateEvent=function(g,s){var c={first:g,last:s};this._signal("update",{data:c})},d.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},d.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},d.prototype.$updateOnChange=function(g){var s=g.start.row,c=g.end.row-s;if(c===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,c+1,null),this.states.splice(s,c+1,null);else{var a=Array(c+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},d.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},d.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},d.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},d.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),c=this.states[g-1],a=this.tokenizer.getLineTokens(s,c,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},d.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},d}();u.implement(w.prototype,p),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,r,h){var u=t("./lib/lang"),p=t("./range").Range,w=function(){function d(g,s,c){c===void 0&&(c="text"),this.setRegexp(g),this.clazz=s,this.type=c}return d.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},d.prototype.update=function(g,s,c,a){if(this.regExp)for(var l=a.firstRow,o=a.lastRow,f={},y=l;y<=o;y++){var v=this.cache[y];v==null&&(v=u.getMatchOffsets(c.getLine(y),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(k){return new p(y,k.offset,y,k.offset+k.length)}),this.cache[y]=v.length?v:"");for(var x=v.length;x--;){var M=v[x].toScreenRange(c),A=M.toString();f[A]||(f[A]=!0,s.drawSingleLineMarker(g,M,this.clazz,a))}}},d}();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,r,h){var u=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(b){this.$session=b},k.prototype.add=function(b,T,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},k.prototype.addSelection=function(b,T){this.selections.push({value:b,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,L=R.length;L--;){var E=R[L][0];if(E.id<=b)break;E.id<T&&(E.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(b,T){for(var R=this.selections,L=R.length;L--;){var E=R[L];if(E.rev<b)return T&&(E=R[L+1]),E}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,L=null,E=0,N=R.length;N--;){var S=R[N][0];if(S.id<T&&!L&&(L=N+1),S.id<=b){E=N+1;break}}return R.slice(E,L)},k.prototype.getChangedRanges=function(b,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(b,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(b,T){this.lastDeltas=null;var R=this.$undoStack;if(p(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=R.pop(),E=null;return L&&(E=b.undoChanges(L,T),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,E}},k.prototype.redo=function(b,T){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);A(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),E=null;return L&&(E=b.redoChanges(L,T),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,E},k.prototype.$syncRev=function(){var b=this.$undoStack,T=b[b.length-1],R=T&&T[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},k.prototype.$prettyPrint=function(b){return b?c(b):c(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+c(this.$redoStack)},k}();u.prototype.hasUndo=u.prototype.canUndo,u.prototype.hasRedo=u.prototype.canRedo,u.prototype.isClean=u.prototype.isAtBookmark,u.prototype.markClean=u.prototype.bookmark;function p(k,b){for(var T=b;T--;){var R=k[T];if(R&&!R[0].ignore){for(;T<b-1;){var L=o(k[T],k[T+1]);k[T]=L[0],k[T+1]=L[1],T++}return!0}}}var w=t("./range").Range,d=w.comparePoints;w.comparePoints;function g(k){return{row:k.row,column:k.column}}function s(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).join(`
|
194
|
+
`);var b="";return k.action?(b=k.action=="insert"?"+":"-",b+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?b=k.value.map(a).join(`
|
195
|
+
`):b=a(k.value)),k.start&&(b+=a(k)),(k.id||k.rev)&&(b+=" ("+(k.id||k.rev)+")"),b}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function l(k,b){var T=k.action=="insert",R=b.action=="insert";if(T&&R)if(d(b.start,k.end)>=0)y(b,k,-1);else if(d(b.start,k.start)<=0)y(k,b,1);else return null;else if(T&&!R)if(d(b.start,k.end)>=0)y(b,k,-1);else if(d(b.end,k.start)<=0)y(k,b,-1);else return null;else if(!T&&R)if(d(b.start,k.start)>=0)y(b,k,1);else if(d(b.start,k.start)<=0)y(k,b,1);else return null;else if(!T&&!R)if(d(b.start,k.start)>=0)y(b,k,1);else if(d(b.end,k.start)<=0)y(k,b,-1);else return null;return[b,k]}function o(k,b){for(var T=k.length;T--;)for(var R=0;R<b.length;R++)if(!l(k[T],b[R])){for(;T<k.length;){for(;R--;)l(b[R],k[T]);R=b.length,T++}return[k,b]}return k.selectionBefore=b.selectionBefore=k.selectionAfter=b.selectionAfter=null,[b,k]}function f(k,b){var T=k.action=="insert",R=b.action=="insert";if(T&&R)d(k.start,b.start)<0?y(b,k,1):y(k,b,1);else if(T&&!R)d(k.start,b.end)>=0?y(k,b,-1):(d(k.start,b.start)<=0||y(k,w.fromPoints(b.start,k.start),-1),y(b,k,1));else if(!T&&R)d(b.start,k.end)>=0?y(b,k,-1):(d(b.start,k.start)<=0||y(b,w.fromPoints(k.start,b.start),-1),y(k,b,1));else if(!T&&!R)if(d(b.start,k.end)>=0)y(b,k,-1);else if(d(b.end,k.start)<=0)y(k,b,-1);else{var L,E;return d(k.start,b.start)<0&&(L=k,k=x(k,b.start)),d(k.end,b.end)>0&&(E=x(k,b.end)),v(b.end,k.start,k.end,-1),E&&!L&&(k.lines=E.lines,k.start=E.start,k.end=E.end,E=k),[b,L,E].filter(Boolean)}return[b,k]}function y(k,b,T){v(k.start,b.start,b.end,T),v(k.end,b.start,b.end,T)}function v(k,b,T,R){k.row==(R==1?b:T).row&&(k.column+=R*(T.column-b.column)),k.row+=R*(T.row-b.row)}function x(k,b){var T=k.lines,R=k.end;k.end=g(b);var L=k.end.row-k.start.row,E=T.splice(L,T.length),N=L?b.column:b.column-k.start.column;T.push(E[0].substring(0,N)),E[0]=E[0].substr(N);var S={start:g(b),end:R,lines:E,action:k.action};return S}function M(k,b){b=s(b);for(var T=k.length;T--;){for(var R=k[T],L=0;L<R.length;L++){var E=R[L],N=f(E,b);b=N[0],N.length!=2&&(N[2]?(R.splice(L+1,1,N[1],N[2]),L++):N[1]||(R.splice(L,1),L--))}R.length||k.splice(T,1)}return k}function A(k,b){for(var T=0;T<b.length;T++)for(var R=b[T],L=0;L<R.length;L++)M(k,R[L])}r.UndoManager=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,r,h){var u=t("../range").Range,p=function(){function w(d,g){this.foldData=d,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new u(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return w.prototype.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(g){g.start.row+=d,g.end.row+=d})},w.prototype.addFold=function(d){if(d.sameRow){if(d.start.row<this.startRow||d.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(g,s){return-g.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else if(d.end.row==this.start.row)this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");d.foldLine=this},w.prototype.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},w.prototype.walk=function(d,g,s){var c=0,a=this.folds,l,o,f,y=!0;g==null&&(g=this.end.row,s=this.end.column);for(var v=0;v<a.length;v++){if(l=a[v],o=l.range.compareStart(g,s),o==-1){d(null,g,s,c,y);return}if(f=d(null,l.start.row,l.start.column,c,y),f=!f&&d(l.placeholder,l.start.row,l.start.column,c),f||o===0)return;y=!l.sameRow,c=l.end.column}d(null,g,s,c,y)},w.prototype.getNextFoldTo=function(d,g){for(var s,c,a=0;a<this.folds.length;a++){if(s=this.folds[a],c=s.range.compareEnd(d,g),c==-1)return{fold:s,kind:"after"};if(c===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(d,g,s){var c=this.getNextFoldTo(d,g),a,l;if(c){if(a=c.fold,c.kind=="inside"&&a.start.column!=g&&a.start.row!=d)window.console&&window.console.log(d,g,a);else if(a.start.row==d){l=this.folds;var o=l.indexOf(a);for(o===0&&(this.start.column+=s),o;o<l.length;o++){if(a=l[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},w.prototype.split=function(d,g){var s=this.getNextFoldTo(d,g);if(!s||s.kind=="inside")return null;var c=s.fold,a=this.folds,l=this.foldData,o=a.indexOf(c),f=a[o-1];this.end.row=f.end.row,this.end.column=f.end.column,a=a.splice(o,a.length-o);var y=new w(l,a);return l.splice(l.indexOf(this)+1,0,y),y},w.prototype.merge=function(d){for(var g=d.folds,s=0;s<g.length;s++)this.addFold(g[s]);var c=this.foldData;c.splice(c.indexOf(d),1)},w.prototype.toString=function(){var d=[this.range.toString()+": ["];return this.folds.forEach(function(g){d.push(" "+g.toString())}),d.push("]"),d.join(`
|
196
|
+
`)},w.prototype.idxToPosition=function(d){for(var g=0,s=0;s<this.folds.length;s++){var c=this.folds[s];if(d-=c.start.column-g,d<0)return{row:c.start.row,column:c.start.column+d};if(d-=c.placeholder.length,d<0)return c.start;g=c.end.column}return{row:this.end.row,column:this.end.column+d}},w}();r.FoldLine=p}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,r,h){var u=t("./range").Range,p=u.comparePoints,w=function(){function d(){this.ranges=[],this.$bias=1}return d.prototype.pointIndex=function(g,s,c){for(var a=this.ranges,l=c||0;l<a.length;l++){var o=a[l],f=p(g,o.end);if(!(f>0)){var y=p(g,o.start);return f===0?s&&y!==0?-l-2:l:y>0||y===0&&!s?l:-l-1}}return-l-1},d.prototype.add=function(g){var s=!g.isEmpty(),c=this.pointIndex(g.start,s);c<0&&(c=-c-1);var a=this.pointIndex(g.end,s,c);return a<0?a=-a-1:a++,this.ranges.splice(c,a-c,g)},d.prototype.addList=function(g){for(var s=[],c=g.length;c--;)s.push.apply(s,this.add(g[c]));return s},d.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},d.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(f,y){return p(f.start,y.start)});for(var c=s[0],a,l=1;l<s.length;l++){a=c,c=s[l];var o=p(a.end,c.start);o<0||o==0&&!a.isEmpty()&&!c.isEmpty()||(p(a.end,c.end)<0&&(a.end.row=c.end.row,a.end.column=c.end.column),s.splice(l,1),g.push(c),c=a,l--)}return this.ranges=s,g},d.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},d.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},d.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},d.prototype.clipRows=function(g,s){var c=this.ranges;if(c[0].start.row>s||c[c.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var l=this.pointIndex({row:s,column:0},a);l<0&&(l=-l-1);for(var o=[],f=a;f<l;f++)o.push(c[f]);return o},d.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},d.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},d.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},d.prototype.$onChange=function(g){for(var s=g.start,c=g.end,a=s.row,l=c.row,o=this.ranges,f=0,y=o.length;f<y;f++){var v=o[f];if(v.end.row>=a)break}if(g.action=="insert")for(var x=l-a,M=-s.column+c.column;f<y;f++){var v=o[f];if(v.start.row>a)break;if(v.start.row==a&&v.start.column>=s.column&&(v.start.column==s.column&&this.$bias<=0||(v.start.column+=M,v.start.row+=x)),v.end.row==a&&v.end.column>=s.column){if(v.end.column==s.column&&this.$bias<0)continue;v.end.column==s.column&&M>0&&f<y-1&&v.end.column>v.start.column&&v.end.column==o[f+1].start.column&&(v.end.column-=M),v.end.column+=M,v.end.row+=x}}else for(var x=a-l,M=s.column-c.column;f<y;f++){var v=o[f];if(v.start.row>l)break;v.end.row<l&&(a<v.end.row||a==v.end.row&&s.column<v.end.column)?(v.end.row=a,v.end.column=s.column):v.end.row==l?v.end.column<=c.column?(x||v.end.column>s.column)&&(v.end.column=s.column,v.end.row=s.row):(v.end.column+=M,v.end.row+=x):v.end.row>l&&(v.end.row+=x),v.start.row<l&&(a<v.start.row||a==v.start.row&&s.column<v.start.column)?(v.start.row=a,v.start.column=s.column):v.start.row==l?v.start.column<=c.column?(x||v.start.column>s.column)&&(v.start.column=s.column,v.start.row=s.row):(v.start.column+=M,v.start.row+=x):v.start.row>l&&(v.start.row+=x)}if(x!=0&&f<y)for(;f<y;f++){var v=o[f];v.start.row+=x,v.end.row+=x}},d}();w.prototype.comparePoints=p,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,r,h){var u=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,y){f.__proto__=y}||function(f,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(f[v]=y[v])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function f(){this.constructor=l}l.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}}(),p=t("../range_list").RangeList,w=function(a){u(l,a);function l(o,f){var y=a.call(this)||this;return y.foldLine=null,y.placeholder=f,y.range=o,y.start=o.start,y.end=o.end,y.sameRow=o.start.row==o.end.row,y.subFolds=y.ranges=[],y}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(f){f.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),f=new l(o,this.placeholder);return this.subFolds.forEach(function(y){f.subFolds.push(y.clone())}),f.collapseChildren=this.collapseChildren,f},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var f=o.start.row,y=o.start.column,v=0,x=-1;v<this.subFolds.length&&(x=this.subFolds[v].range.compare(f,y),x==1);v++);var M=this.subFolds[v],A=0;if(x==0){if(M.range.containsRange(o))return M.addSubFold(o);A=1}for(var f=o.range.end.row,y=o.range.end.column,k=v,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(f,y),x==1);k++);x==0&&k++;for(var b=this.subFolds.splice(v,k-v,o),T=x==0?b.length-1:b.length,R=A;R<T;R++)o.addSubFold(b[R]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(p);function d(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function g(a,l){d(a.start,l),d(a.end,l)}function s(a,l){a.row==0&&(a.column+=l.column),a.row+=l.row}function c(a,l){s(a.start,l),s(a.end,l)}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(t,r,h){var u=t("../range").Range,p=t("./fold_line").FoldLine,w=t("./fold").Fold,d=t("../token_iterator").TokenIterator,g=t("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(c,a,l){var o=this.getFoldLine(c);if(!o)return null;for(var f=o.folds,y=0;y<f.length;y++){var v=f[y].range;if(v.contains(c,a)){if(l==1&&v.isEnd(c,a)&&!v.isEmpty()||l==-1&&v.isStart(c,a)&&!v.isEmpty())continue;return f[y]}}},this.getFoldsInRange=function(c){var a=c.start,l=c.end,o=this.$foldData,f=[];a.column+=1,l.column-=1;for(var y=0;y<o.length;y++){var v=o[y].range.compareRange(c);if(v!=2){if(v==-2)break;for(var x=o[y].folds,M=0;M<x.length;M++){var A=x[M];if(v=A.range.compareRange(c),v==-2)break;if(v!=2){if(v==42)break;f.push(A)}}}}return a.column-=1,l.column+=1,f},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var a=[];c.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(c);return a},this.getAllFolds=function(){for(var c=[],a=this.$foldData,l=0;l<a.length;l++)for(var o=0;o<a[l].folds.length;o++)c.push(a[l].folds[o]);return c},this.getFoldStringAt=function(c,a,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var f={end:{column:0}},y,v,x=0;x<o.folds.length;x++){v=o.folds[x];var M=v.range.compareEnd(c,a);if(M==-1){y=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(M===0)return null;f=v}return y||(y=this.getLine(v.start.row).substring(f.end.column)),l==-1?y.substring(0,a-f.end.column):l==1?y.substring(a-f.end.column):y},this.getFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var f=l[o];if(f.start.row<=c&&f.end.row>=c)return f;if(f.end.row>c)return null}return null},this.getNextFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var f=l[o];if(f.end.row>=c)return f}return null},this.getFoldedRowCount=function(c,a){for(var l=this.$foldData,o=a-c+1,f=0;f<l.length;f++){var y=l[f],v=y.end.row,x=y.start.row;if(v>=a){x<a&&(x>=c?o-=a-x:o=0);break}else v>=c&&(x>=c?o-=v-x:o-=v-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(a,l){return a.start.row-l.start.row}),c},this.addFold=function(c,a){var l=this.$foldData,o=!1,f;c instanceof w?f=c:(f=new w(a,c),f.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(f.range);var y=f.start.row,v=f.start.column,x=f.end.row,M=f.end.column,A=this.getFoldAt(y,v,1),k=this.getFoldAt(x,M,-1);if(A&&k==A)return A.addSubFold(f);A&&!A.range.isStart(y,v)&&this.removeFold(A),k&&!k.range.isEnd(x,M)&&this.removeFold(k);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(E){f.addSubFold(E)}));for(var T=0;T<l.length;T++){var R=l[T];if(x==R.start.row){R.addFold(f),o=!0;break}else if(y==R.end.row){if(R.addFold(f),o=!0,!f.sameRow){var L=l[T+1];if(L&&L.start.row==x){R.merge(L);break}}break}else if(x<=R.start.row)break}return o||(R=this.$addFoldLine(new p(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(c){c.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(c){var a=c.foldLine,l=a.start.row,o=a.end.row,f=this.$foldData,y=a.folds;if(y.length==1)f.splice(f.indexOf(a),1);else if(a.range.isEnd(c.end.row,c.end.column))y.pop(),a.end.row=y[y.length-1].end.row,a.end.column=y[y.length-1].end.column;else if(a.range.isStart(c.start.row,c.start.column))y.shift(),a.start.row=y[0].start.row,a.start.column=y[0].start.column;else if(c.sameRow)y.splice(y.indexOf(c),1);else{var v=a.split(c.start.row,c.start.column);y=v.folds,y.shift(),v.start.row=y[0].start.row,v.start.column=y[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var a=[],l=0;l<c.length;l++)a.push(c[l]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(a){c.restoreRange(a),this.addFold(a)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(c,a){var l,o;if(c==null)l=new u(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof c=="number")l=new u(c,0,c,this.getLine(c).length);else if("row"in c)l=u.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(y){o=o.concat(this.unfold(y))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var f=o;o.length==1&&u.comparePoints(o[0].start,l.start)<0&&u.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(a!=!1?this.removeFolds(o):this.expandFolds(o),f.length)return f},this.isRowFolded=function(c,a){return!!this.getFoldLine(c,a)},this.getRowFoldEnd=function(c,a){var l=this.getFoldLine(c,a);return l?l.end.row:c},this.getRowFoldStart=function(c,a){var l=this.getFoldLine(c,a);return l?l.start.row:c},this.getFoldDisplayLine=function(c,a,l,o,f){o==null&&(o=c.start.row),f==null&&(f=0),a==null&&(a=c.end.row),l==null&&(l=this.getLine(a).length);var y=this.doc,v="";return c.walk(function(x,M,A,k){if(!(M<o)){if(M==o){if(A<f)return;k=Math.max(f,k)}x!=null?v+=x:v+=y.getLine(M).substring(k,A)}},a,l),v},this.getDisplayLine=function(c,a,l,o){var f=this.getFoldLine(c);if(f)return this.getFoldDisplayLine(f,c,a,l,o);var y;return y=this.doc.getLine(c),y.substring(o||0,a||y.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(a){var l=a.folds.map(function(o){return o.clone()});return new p(c,l)}),c},this.toggleFold=function(c){var a=this.selection,l=a.getRange(),o,f;if(l.isEmpty()){var y=l.start;if(o=this.getFoldAt(y.row,y.column),o){this.expandFold(o);return}else(f=this.findMatchingBracket(y))?l.comparePoint(f)==1?l.end=f:(l.start=f,l.start.column++,l.end.column--):(f=this.findMatchingBracket({row:y.row,column:y.column+1}))?(l.comparePoint(f)==1?l.end=f:l.start=f,l.start.column++):l=this.getCommentFoldRange(y.row,y.column)||l}else{var v=this.getFoldsInRange(l);if(c&&v.length){this.expandFolds(v);return}else v.length==1&&(o=v[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var x="...";if(!l.isMultiLine()){if(x=this.getTextRange(l),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,l)},this.getCommentFoldRange=function(c,a,l){var o=new d(this,c,a),f=o.getCurrentToken(),y=f&&f.type;if(f&&/^comment|string/.test(y)){y=y.match(/comment|string/)[0],y=="comment"&&(y+="|doc-start|\\.doc");var v=new RegExp(y),x=new u;if(l!=1){do f=o.stepBackward();while(f&&v.test(f.type));f=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+f.value.length,o=new d(this,c,a);var M=this.getState(o.$row);if(l!=-1){var A=-1;do if(f=o.stepForward(),A==-1){var k=this.getState(o.$row);M.toString()!==k.toString()&&(A=o.$row)}else if(o.$row>A)break;while(f&&v.test(f.type));f=o.stepBackward()}else f=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(c,a,l,o){l==null&&(l=1e5);var f=this.foldWidgets;if(f){a=a||this.getLength(),c=c||0;for(var y=c;y<a;y++)if(f[y]==null&&(f[y]=this.getFoldWidget(y)),f[y]=="start"&&!(o&&!o(y))){var v=this.getFoldWidgetRange(y);v&&v.isMultiLine()&&v.end.row<=a&&v.start.row>=c&&(y=v.end.row,v.collapseChildren=l,this.addFold("...",v))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(a){for(var l=c.getTokens(a),o=0;o<l.length;o++){var f=l[o];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(c,a){var l=this.foldWidgets;if(!l||a&&l[c])return{};for(var o=c-1,f;o>=0;){var y=l[o];if(y==null&&(y=l[o]=this.getFoldWidget(o)),y=="start"){var v=this.getFoldWidgetRange(o);if(f||(f=v),v&&v.end.row>=c)break}o--}return{range:o!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(c,a){a instanceof g&&(a=a.domEvent);var l={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var f=a.target||a.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,a){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),f=l==="end"?-1:1,y=this.getFoldAt(c,f===-1?0:o.length,f);if(y)return a.children||a.all?this.removeFold(y):this.expandFold(y),y;var v=this.getFoldWidgetRange(c,!0);if(v&&!v.isMultiLine()&&(y=this.getFoldAt(v.start.row,v.start.column,1),y&&v.isEqual(y.range)))return this.removeFold(y),y;if(a.siblings){var x=this.getParentFoldRangeData(c);if(x.range)var M=x.range.start.row+1,A=x.range.end.row;this.foldAll(M,A,a.all?1e4:0)}else a.children?(A=v?v.end.row:this.getLength(),this.foldAll(c+1,A,a.all?1e4:0)):v&&(a.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(c){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var l=this.$toggleFoldWidget(a,{});if(!l){var o=this.getParentFoldRangeData(a,!0);if(l=o.range||o.firstRange,l){a=l.start.row;var f=this.getFoldAt(a,this.getLine(a).length,1);f?this.removeFold(f):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var a=c.start.row,l=c.end.row-a;if(l===0)this.foldWidgets[a]=null;else if(c.action=="remove")this.foldWidgets.splice(a,l+1,null);else{var o=Array(l+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var a=c.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,r,h){var u=t("../token_iterator").TokenIterator,p=t("../range").Range;function w(){this.findMatchingBracket=function(d,g){if(d.column==0)return null;var s=g||this.getLine(d.row).charAt(d.column-1);if(s=="")return null;var c=s.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],d):this.$findOpeningBracket(c[2],d):null},this.getBracketRange=function(d){var g=this.getLine(d.row),s=!0,c,a=g.charAt(d.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=g.charAt(d.column),d={row:d.row,column:d.column+1},l=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],d);if(!o)return null;c=p.fromPoints(d,o),s||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],d);if(!o)return null;c=p.fromPoints(o,d),s||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(d,g){var s=this.getLine(d.row),c=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(d.column-1),l=a&&a.match(c);if(l||(a=(g===void 0||g)&&s.charAt(d.column),d={row:d.row,column:d.column+1},l=a&&a.match(c)),!l)return null;var o=new p(d.row,d.column-1,d.row,d.column),f=l[1]?this.$findClosingBracket(l[1],d):this.$findOpeningBracket(l[2],d);if(!f)return[o];var y=new p(f.row,f.column,f.row,f.column+1);return[o,y]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(d,g,s){var c=this.$brackets[d],a=1,l=new u(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=g.column-l.getCurrentTokenColumn()-2,y=o.value;;){for(;f>=0;){var v=y.charAt(f);if(v==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:f+l.getCurrentTokenColumn()}}else v==d&&(a+=1);f-=1}do o=l.stepBackward();while(o&&!s.test(o.type));if(o==null)break;y=o.value,f=y.length-1}return null}},this.$findClosingBracket=function(d,g,s){var c=this.$brackets[d],a=1,l=new u(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=g.column-l.getCurrentTokenColumn();;){for(var y=o.value,v=y.length;f<v;){var x=y.charAt(f);if(x==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:f+l.getCurrentTokenColumn()}}else x==d&&(a+=1);f+=1}do o=l.stepForward();while(o&&!s.test(o.type));if(o==null)break;f=0}return null}},this.getMatchingTags=function(d){var g=new u(this,d.row,d.column),s=this.$findTagName(g);if(s){var c=g.stepBackward();return c.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(d){var g=d.getCurrentToken(),s=!1,c=!1;if(g&&g.type.indexOf("tag-name")===-1)do c?g=d.stepBackward():g=d.stepForward(),g&&(g.value==="/>"?c=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(d,g){var s,c=g.value,a=g.value,l=0,o=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);g=d.stepForward();var f=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length),y=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!y){var v=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);y=!0}if(g=d.stepForward(),g){if(g.value===">"&&!y){var v=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);y=!0}if(g.type.indexOf("tag-name")!==-1){if(c=g.value,a===c){if(s.value==="<")l++;else if(s.value==="</"&&(l--,l<0)){d.stepBackward();var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2);g=d.stepForward();var M=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),g&&g.value===">")var A=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);else return}}}else if(a===c&&g.value==="/>"&&(l--,l<0))var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2),M=x,A=M,v=new p(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(g&&l>=0);if(o&&v&&x&&A&&f&&M)return{openTag:new p(o.start.row,o.start.column,v.end.row,v.end.column),closeTag:new p(x.start.row,x.start.column,A.end.row,A.end.column),openTagName:f,closeTagName:M}},this.$findOpeningTag=function(d,g){var s=d.getCurrentToken(),c=g.value,a=0,l=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),f=o+2,y=new p(l,o,l,f);d.stepForward();var v=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),!(!g||g.value!==">")){var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);d.stepBackward(),d.stepBackward();do if(g=s,l=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),f=o+g.value.length,s=d.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(c===g.value)if(s.value==="<"){if(a++,a>0){var M=new p(l,o,l,f),A=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);do g=d.stepForward();while(g&&g.value!==">");var k=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var b=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){a--;break}else if(T.value==="<")break;T=d.stepBackward(),b++}for(var R=0;R<b;R++)d.stepForward()}}while(s&&a<=0);if(A&&k&&y&&x&&M&&v)return{openTag:new p(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new p(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:M,closeTagName:v}}}}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(t,r,h){var u=t("./lib/oop"),p=t("./lib/lang"),w=t("./bidihandler").BidiHandler,d=t("./config"),g=t("./lib/event_emitter").EventEmitter,s=t("./selection").Selection,c=t("./mode/text").Mode,a=t("./range").Range,l=t("./line_widgets").LineWidgets,o=t("./document").Document,f=t("./background_tokenizer").BackgroundTokenizer,y=t("./search_highlight").SearchHighlight,v=t("./undomanager").UndoManager,x=function(){function S(_,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new f(new c().getTokenizer(),this);var I=this;this.bgTokenizer.on("update",function(O){I._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),d.resetOptions(this),this.setMode($),d._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=p.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new l(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,I=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>I&&(this.$docRowCache.splice(I,$),this.$screenRowCache.splice(I,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var I=0,O=_.length-1;I<=O;){var F=I+O>>1,W=_[F];if($>W)I=F+1;else if($<W)O=F-1;else return F}return I-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new v;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var I=new S(_.value);return _.folds.forEach(function(O){I.addFold("...",a.fromPoints(O.start,O.end))}),I.setAnnotations(_.annotations),I.setBreakpoints(_.breakpoints),I.setMode(_.mode),I.setScrollLeft(_.scrollLeft),I.setScrollTop(_.scrollTop),I.setUndoManager($),I.selection.fromJSON(_.selection),I},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var I=this.bgTokenizer.getTokens(_),O,F=0;if($==null){var W=I.length-1;F=this.getLine(_).length}else for(var W=0;W<I.length&&(F+=I[W].value.length,!(F>=$));W++);return O=I[W],O?(O.index=W,O.start=F-O.value.length,O):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=p.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?p.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,I,O){var F=this.$markerId++,W={range:_,type:I||"line",renderer:typeof I=="function"?I:null,clazz:$,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=W,this._signal("changeFrontMarker")):(this.$backMarkers[F]=W,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var I=this.$markerId++;return _.id=I,_.inFront=!!$,$?(this.$frontMarkers[I]=_,this._signal("changeFrontMarker")):(this.$backMarkers[I]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var I=$.inFront?this.$frontMarkers:this.$backMarkers;delete I[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new y(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,I,O){typeof $!="number"&&(I=$,$=_),I||(I="ace_step");var F=new a(_,0,$,1/0);return F.id=this.addMarker(F,I,"fullLine",O),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
198
|
+
`},S.prototype.getWordRange=function(_,$){var I=this.getLine(_),O=!1;if($>0&&(O=!!I.charAt($-1).match(this.tokenRe)),O||(O=!!I.charAt($).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(I.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var W=$;if(W>0){do W--;while(W>=0&&I.charAt(W).match(F));W++}for(var z=$;z<I.length&&I.charAt(z).match(F);)z++;return new a(_,W,_,z)},S.prototype.getAWordRange=function(_,$){for(var I=this.getWordRange(_,$),O=this.getLine(I.end.row);O.charAt(I.end.column).match(/[ \t]/);)I.end.column+=1;return I},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var I=_,O=I.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!I){this.$onChangeMode(this.$modes[O]),$&&$();return}this.$modeId=O,d.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return $&&$();this.$modes[O]&&!I?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(I),I||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var I=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:I,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){d.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),I=this.$rowLengthCache,O=0,F=0,W=this.$foldData[F],z=W?W.start.row:1/0,V=$.length,q=0;q<V;q++){if(q>z){if(q=W.end.row+1,q>=V)break;W=this.$foldData[F++],z=W?W.start.row:1/0}I[q]==null&&(I[q]=this.$getStringScreenWidth($[q])[0]),I[q]>O&&(O=I[q])}this.screenWidth=O}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var I=_.length-1;I!=-1;I--){var O=_[I];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var I=0;I<_.length;I++){var O=_[I];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function I(V){return $?V.action!=="insert":V.action==="insert"}for(var O,F,W=0;W<_.length;W++){var z=_[W];if(z.start){if(!O){I(z)?O=a.fromPoints(z.start,z.end):O=a.fromPoints(z.start,z.start);continue}I(z)?(F=z.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=z.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=z.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(z.start,z.start)))}}return O},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,I){var O=this.getTextRange(_),F=this.getFoldsInRange(_),W=a.fromPoints($,$);if(!I){this.remove(_);var z=_.start.row-_.end.row,V=z?-_.end.column:_.start.column-_.end.column;V&&(W.start.row==_.end.row&&W.start.column>_.end.column&&(W.start.column+=V),W.end.row==_.end.row&&W.end.column>_.end.column&&(W.end.column+=V)),z&&W.start.row>=_.end.row&&(W.start.row+=z,W.end.row+=z)}if(W.end=this.insert(W.start,O),F.length){var q=_.start,X=W.start,z=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=z,re.end.row+=z,re}))}return W},S.prototype.indentRows=function(_,$,I){I=I.replace(/\t/g,this.getTabString());for(var O=_;O<=$;O++)this.doc.insertInLine({row:O,column:0},I)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),I=new a(0,0,0,0),O=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var W=this.getLine(F);I.start.row=F,I.end.row=F;for(var z=0;z<O&&W.charAt(z)==" ";++z);z<O&&W.charAt(z)==" "?(I.start.column=z,I.end.column=z+1):(I.start.column=0,I.end.column=z),this.remove(I)}},S.prototype.$moveLines=function(_,$,I){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),I<0){var O=this.getRowFoldStart(_+I);if(O<0)return 0;var F=O-_}else if(I>0){var O=this.getRowFoldEnd($+I);if(O>this.doc.getLength()-1)return 0;var F=O-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var W=new a(_,0,$,Number.MAX_VALUE),z=this.getFoldsInRange(W).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=I==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,V),z.length&&this.addFolds(z),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var I=this.doc.getLength();_>=I?(_=I-1,$=this.doc.getLine(I-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var I=this.$wrapLimitRange;I.max<0&&(I={min:$,max:$});var O=this.$constrainWrapLimit(_,I.min,I.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,I){return $&&(_=Math.max($,_)),I&&(_=Math.min(I,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,I=_.action,O=_.start,F=_.end,W=O.row,z=F.row,V=z-W,q=null;if(this.$updating=!0,V!=0)if(I==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(W,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var re=this.getFoldLine(W);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}z=W}else{var J=Array(V);J.unshift(W,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(W),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(z,0,F.column-O.column))):me==-1&&(G.addRemoveChars(W,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=W&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),I==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(W);G&&G.addRemoveChars(W,O.column,V)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(W,z):this.$updateRowLengthCache(W,z),q},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var I=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,W=this.$wrapLimit,z,V,q=_;for($=Math.min($,I.length-1);q<=$;)V=this.getFoldLine(q,V),V?(z=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,z.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=b}else J=this.$getDisplayTokens(I[G].substring(re,Z),z.length);z=z.concat(J)}).bind(this),V.end.row,I[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(z,W,O),q=V.end.row+1):(z=this.$getDisplayTokens(I[q]),F[q]=this.$computeWrapSplits(z,W,O),q++)},S.prototype.$computeWrapSplits=function(_,$,I){if(_.length==0)return[];var O=[],F=_.length,W=0,z=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=$<=Math.max(2*I,8)||q===!1?0:Math.floor($/2);function G(){var me=0;if(X===0)return me;if(q)for(var we=0;we<_.length;we++){var pe=_[we];if(pe==R)me+=1;else if(pe==L)me+=I;else{if(pe==E)continue;break}}return V&&q!==!1&&(me+=I),Math.min(me,X)}function Z(me){for(var we=me-W,pe=W;pe<me;pe++){var Ae=_[pe];(Ae===12||Ae===2)&&(we-=1)}O.length||(re=G(),O.indent=re),z+=we,O.push(z),W=me}for(var re=0;F-W>$-re;){var J=W+$-re;if(_[J-1]>=R&&_[J]>=R){Z(J);continue}if(_[J]==k||_[J]==b){for(J;J!=W-1&&_[J]!=k;J--);if(J>W){Z(J);continue}for(J=W+$,J;J<_.length&&_[J]==b;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),W-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==T;)J--}else for(;J>ae&&_[J]<R;)J--;if(J>ae){Z(++J);continue}J=W+$,_[J]==A&&J--,Z(J-re)}return O},S.prototype.$getDisplayTokens=function(_,$){var I=[],O;$=$||0;for(var F=0;F<_.length;F++){var W=_.charCodeAt(F);if(W==9){O=this.getScreenTabSize(I.length+$),I.push(L);for(var z=1;z<O;z++)I.push(E)}else W==32?I.push(R):W>39&&W<48||W>57&&W<64?I.push(T):W>=4352&&N(W)?I.push(M,A):I.push(M)}return I},S.prototype.$getStringScreenWidth=function(_,$,I){if($==0)return[0,0];$==null&&($=1/0),I=I||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?I+=this.getScreenTabSize(I):O>=4352&&N(O)?I+=2:I+=1,!(I>$));F++);return[I,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),I=this.$wrapData[$.row];return I.length&&I[0]<$.column?I.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var I=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(I)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var I=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(I,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,I){if(_<0)return{row:0,column:0};var O,Z=0,F=0,W,G=0,z=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=_>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(z=this.getRowLength(Z),!(G+z>_||Z>=J));)G+=z,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+z<=_||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var we=0,pe=Math.floor(_-G);if(this.$useWrapMode){var Ae=this.$wrapData[Z];Ae&&(W=Ae[pe],pe>0&&Ae.length&&(we=Ae.indent,F=Ae[pe-1]||Ae[Ae.length-1],O=O.substring(F)))}return I!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&($=this.$bidiHandler.offsetToCol(I)),F+=this.$getStringScreenWidth(O,$-we)[1],this.$useWrapMode&&F>=W&&(F=W-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var I=this.$clipPositionToDocument(_.row,_.column);else I=this.$clipPositionToDocument(_,$);_=I.row,$=I.column;var G=0,O=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var W,X=0,z=this.$docRowCache,V=this.$getRowCacheIndex(z,_),q=z.length;if(q&&V>=0)var X=z[V],G=this.$screenRowCache[V],Z=_>z[q-1];else var Z=!q;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<_;){if(X>=J){if(W=re.end.row+1,W>_)break;re=this.getNextFoldLine(W,re),J=re?re.start.row:1/0}else W=X+1;G+=this.getRowLength(X),X=W,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,_,$),O=re.start.row):(ae=this.getLine(_).substring(0,$),O=_);var me=0;if(this.$useWrapMode){var we=this.$wrapData[O];if(we){for(var pe=0;ae.length>=we[pe];)G++,pe++;ae=ae.substring(we[pe-1]||0,ae.length),me=pe>0?we.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var I=this.$wrapData.length,O=0,F=0,$=this.$foldData[F++],W=$?$.start.row:1/0;O<I;){var z=this.$wrapData[O];_+=z?z.length+1:1,O++,O>W&&(O=$.end.row+1,$=this.$foldData[F++],W=$?$.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)$=V[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,I,O){if(I===0)return[0,0];I||(I=1/0),O=O||0;var F,W;for(W=0;W<$.length&&(F=$.charAt(W),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>I));W++);return[O,W]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},S}();x.$uid=0,x.prototype.$modes=d.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=N,u.implement(x.prototype,g);var M=1,A=2,k=3,b=4,T=9,R=10,L=11,E=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}t("./edit_session/folding").Folding.call(x.prototype),t("./edit_session/bracket_match").BracketMatch.call(x.prototype),d.defineOptions(x.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,h){var u=t("./lib/lang"),p=t("./lib/oop"),w=t("./range").Range,d=function(){function s(){this.$options={}}return s.prototype.set=function(c){return p.mixin(this.$options,c),this},s.prototype.getOptions=function(){return u.copyObject(this.$options)},s.prototype.setOptions=function(c){this.$options=c},s.prototype.find=function(c){var a=this.$options,l=this.$matchIterator(c,a);if(!l)return!1;var o=null;return l.forEach(function(f,y,v,x){return o=new w(f,y,v,x),y==x&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(c){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var l=a.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),f=[],y=a.re;if(a.$isMultiLine){var v=y.length,x=o.length-v,M;e:for(var A=y.offset||0;A<=x;A++){for(var k=0;k<v;k++)if(o[A+k].search(y[k])==-1)continue e;var b=o[A],T=o[A+v-1],R=b.length-b.match(y[0])[0].length,L=T.match(y[v-1])[0].length;M&&M.end.row===A&&M.end.column>R||(f.push(M=new w(A,R,A+v-1,L)),v>2&&(A=A+v-2))}}else for(var E=0;E<o.length;E++)for(var N=u.getMatchOffsets(o[E],y),k=0;k<N.length;k++){var S=N[k];f.push(new w(E,S.offset,E,S.offset+S.length))}if(l){for(var _=l.start.column,$=l.end.column,E=0,k=f.length-1;E<k&&f[E].start.column<_&&f[E].start.row==0;)E++;for(var I=l.end.row-l.start.row;E<k&&f[k].end.column>$&&f[k].end.row==I;)k--;for(f=f.slice(E,k+1),E=0,k=f.length;E<k;E++)f[E].start.row+=l.start.row,f[E].end.row+=l.start.row}return f},s.prototype.replace=function(c,a){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return a;if(o){var f=o.exec(c);if(!f||f[0].length!=c.length)return null;if(l.regExp||(a=a.replace(/\$/g,"$$$$")),a=c.replace(o,a),l.preserveCase){a=a.split("");for(var y=Math.min(c.length,c.length);y--;){var v=c[y];v&&v.toLowerCase()!=v?a[y]=a[y].toUpperCase():a[y]=a[y].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(c,a){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=u.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=g(l,c)),c.$isMultiLine=!a&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var f=new RegExp(l,o)}catch{f=!1}return c.re=f},s.prototype.$assembleMultilineRegExp=function(c,a){for(var l=c.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],f=0;f<l.length;f++)try{o.push(new RegExp(l[f],a))}catch{return!1}return o},s.prototype.$matchIterator=function(c,a){var l=this.$assembleRegExp(a);if(!l)return!1;var o=a.backwards==!0,f=a.skipCurrent!=!1,y=l.unicode,v=a.range,x=a.start;x||(x=v?v[o?"end":"start"]:c.selection.getRange()),x.start&&(x=x[f!=o?"end":"start"]);var M=v?v.start.row:0,A=v?v.end.row:c.getLength()-1;if(o)var k=function(R){var L=x.row;if(!T(L,x.column,R)){for(L--;L>=M;L--)if(T(L,Number.MAX_VALUE,R))return;if(a.wrap!=!1){for(L=A,M=x.row;L>=M;L--)if(T(L,Number.MAX_VALUE,R))return}}};else var k=function(R){var L=x.row;if(!T(L,x.column,R)){for(L=L+1;L<=A;L++)if(T(L,0,R))return;if(a.wrap!=!1){for(L=M,A=x.row;L<=A;L++)if(T(L,0,R))return}}};if(a.$isMultiLine)var b=l.length,T=function(R,L,E){var N=o?R-b+1:R;if(!(N<0||N+b>c.getLength())){var S=c.getLine(N),_=S.search(l[0]);if(!(!o&&_<L||_===-1)){for(var $=1;$<b;$++)if(S=c.getLine(N+$),S.search(l[$])==-1)return;var I=S.match(l[b-1])[0].length;if(!(o&&I>L)&&E(N,_,N+b-1,I))return!0}}};else if(o)var T=function(R,L,E){var N=c.getLine(R),S=[],_,$=0;for(l.lastIndex=0;_=l.exec(N);){var I=_[0].length;if($=_.index,!I){if($>=N.length)break;l.lastIndex=$+=u.skipEmptyMatch(N,$,y)}if(_.index+I>L)break;S.push(_.index,I)}for(var O=S.length-1;O>=0;O-=2){var F=S[O-1],I=S[O];if(E(R,F,R,F+I))return!0}};else var T=function(R,L,E){var N=c.getLine(R),S,_;for(l.lastIndex=L;_=l.exec(N);){var $=_[0].length;if(S=_.index,E(R,S,R,S+$))return!0;if(!$&&(l.lastIndex=S+=u.skipEmptyMatch(N,S,y),S>=N.length))return!1}};return{forEach:k}},s}();function g(s,c){var a=u.supportsLookbehind();function l(v,x){x===void 0&&(x=!0);var M=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return M.test(v)||c.regExp?a&&c.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),f=o[0],y=o[o.length-1];return l(f)+s+l(y,!1)}r.Search=d}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,h){var u=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,y){f.__proto__=y}||function(f,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(f[v]=y[v])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function f(){this.constructor=l}l.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}}(),p=t("../lib/keys"),w=t("../lib/useragent"),d=p.KEY_MODS,g=function(){function a(l,o){this.$init(l,o,!1)}return a.prototype.$init=function(l,o,f){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=f},a.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},a.prototype.removeCommand=function(l,o){var f=l&&(typeof l=="string"?l:l.name);l=this.commands[f],o||delete this.commands[f];var y=this.commandKeyBinding;for(var v in y){var x=y[v];if(x==l)delete y[v];else if(Array.isArray(x)){var M=x.indexOf(l);M!=-1&&(x.splice(M,1),x.length==1&&(y[v]=x[0]))}}},a.prototype.bindKey=function(l,o,f){if(typeof l=="object"&&l&&(f==null&&(f=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(y){var v="";if(y.indexOf(" ")!=-1){var x=y.split(/\s+/);y=x.pop(),x.forEach(function(k){var b=this.parseKeys(k),T=d[b.hashId]+b.key;v+=(v?" ":"")+T,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var M=this.parseKeys(y),A=d[M.hashId]+M.key;this._addCommandToBinding(v+A,o,f)},this)}},a.prototype._addCommandToBinding=function(l,o,f){var y=this.commandKeyBinding,v;if(!o)delete y[l];else if(!y[l]||this.$singleCommand)y[l]=o;else{Array.isArray(y[l])?(v=y[l].indexOf(o))!=-1&&y[l].splice(v,1):y[l]=[y[l]],typeof f!="number"&&(f=s(o));var x=y[l];for(v=0;v<x.length;v++){var M=x[v],A=s(M);if(A>f)break}x.splice(v,0,o)}},a.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var f=l[o];if(f){if(typeof f=="string")return this.bindKey(f,o);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=o),this.addCommand(f))}},this)},a.prototype.removeCommands=function(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},a.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},a.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},a.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(A){return A}),f=o.pop(),y=p[f];if(p.FUNCTION_KEYS[y])f=p.FUNCTION_KEYS[y].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,x=o.length;x--;){var M=p.KEY_MODS[o[x]];if(M==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+l),!1;v|=M}return{key:f,hashId:v}},a.prototype.findKeyCommand=function(l,o){var f=d[l]+o;return this.commandKeyBinding[f]},a.prototype.handleKeyboard=function(l,o,f,y){if(!(y<0)){var v=d[o]+f,x=this.commandKeyBinding[v];return l.$keyChain&&(l.$keyChain+=" "+v,x=this.commandKeyBinding[l.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||v,{command:"null"}):(l.$keyChain&&((!o||o==4)&&f.length==1?l.$keyChain=l.$keyChain.slice(0,-v.length-1):(o==-1||y>0)&&(l.$keyChain="")),{command:x})}},a.prototype.getStatusText=function(l,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var c=function(a){u(l,a);function l(o,f){var y=a.call(this,o,f)||this;return y.$singleCommand=!0,y}return l}(g);c.call=function(a,l,o){g.prototype.$init.call(a,l,o,!0)},g.call=function(a,l,o){g.prototype.$init.call(a,l,o,!1)},r.HashHandler=c,r.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,r,h){var u=this&&this.__extends||function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(l[f]=o[f])},s(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(c,a);function l(){this.constructor=c}c.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),p=t("../lib/oop"),w=t("../keyboard/hash_handler").MultiHashHandler,d=t("../lib/event_emitter").EventEmitter,g=function(s){u(c,s);function c(a,l){var o=s.call(this,l,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),o}return c.prototype.exec=function(a,l,o){if(Array.isArray(a)){for(var f=a.length;f--;)if(this.exec(a[f],l,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,l))return!1;var y={editor:l,command:a,args:o};return y.returnValue=this._emit("exec",y),this._signal("afterExec",y),y.returnValue!==!1},c.prototype.canExecute=function(a,l){return typeof a=="string"&&(a=this.commands[a]),!(!a||l&&l.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(l))},c.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,a):this.exec(l[0],a,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(a){return a.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(w);p.implement(g.prototype,d),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,r,h){var u=t("../lib/lang"),p=t("../config"),w=t("../range").Range;function d(s,c){return{win:s,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:d("Ctrl-,","Command-,"),exec:function(s){p.loadModule("ace/ext/settings_menu",function(c){c.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:d("Alt-E","F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:d("Alt-Shift-E","Shift-F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:d("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:d(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:d("Ctrl-L","Command-L"),exec:function(s,c){typeof c=="number"&&!isNaN(c)&&s.gotoLine(c),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:d("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:d("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:d("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:d("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:d("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:d("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:d("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:d("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:d("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:d("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:d("Ctrl-F","Command-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(c){c.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:d("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:d("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:d("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:d("Up","Up|Ctrl-P"),exec:function(s,c){s.navigateUp(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:d("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:d("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:d("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:d("Down","Down|Ctrl-N"),exec:function(s,c){s.navigateDown(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:d("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:d("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:d("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:d("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:d("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:d("Left","Left|Ctrl-B"),exec:function(s,c){s.navigateLeft(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:d("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:d("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:d("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:d("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:d("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:d("Right","Right|Ctrl-F"),exec:function(s,c){s.navigateRight(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:d(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:d("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:d(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:d("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:d("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:d("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:d("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:d("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:d("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:d("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:d(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var c=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=c?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,c){s.$handlePaste(c)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:d("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:d("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:d("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:d("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:d("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:d("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:d("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:d("Ctrl-H","Command-Option-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(c){c.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:d("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:d("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:d("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:d("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:d("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:d("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:d("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:d("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:d("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:d("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:d("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:d("Ctrl-Shift-Backspace",null),exec:function(s){var c=s.selection.getRange();c.start.column=0,s.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:d("Ctrl-Shift-Delete",null),exec:function(s){var c=s.selection.getRange();c.end.column=Number.MAX_VALUE,s.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:d("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:d("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:d("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:d("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:d("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:d("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,c){s.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,c){s.insert(u.stringRepeat(c.text||"",c.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:d(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:d("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:d("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:d("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:d(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:d("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var c=s.selection.getRange();c.start.column=c.end.column=0,c.end.row++,s.selection.setRange(c,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:d("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:d(null,null),exec:function(s){for(var c=s.selection.isBackwards(),a=c?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),l=c?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,f=s.session.doc.getTextRange(s.selection.getRange()),y=f.replace(/\n\s*/," ").length,v=s.session.doc.getLine(a.row),x=a.row+1;x<=l.row+1;x++){var M=u.stringTrimLeft(u.stringTrimRight(s.session.doc.getLine(x)));M.length!==0&&(M=" "+M),v+=M}l.row+1<s.session.doc.getLength()-1&&(v+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new w(a.row,0,l.row+2,0),v),y>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+y)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:d(null,null),exec:function(s){var c=s.session.doc.getLength()-1,a=s.session.doc.getLine(c).length,l=s.selection.rangeList.ranges,o=[];l.length<1&&(l=[s.selection.getRange()]);for(var f=0;f<l.length;f++)f==l.length-1&&(l[f].end.row===c&&l[f].end.column===a||o.push(new w(l[f].end.row,l[f].end.column,c,a))),f===0?l[f].start.row===0&&l[f].start.column===0||o.push(new w(0,0,l[f].start.row,l[f].start.column)):o.push(new w(l[f-1].end.row,l[f-1].end.column,l[f].start.row,l[f].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var f=0;f<o.length;f++)s.selection.addRange(o[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var c=s.getCursorPosition();s.selection.moveTo(c.row-1,Number.MAX_VALUE),s.insert(`
|
202
|
+
`),c.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:d("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:d(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(t,r,h){var u=t("../lib/keys"),p=t("../mouse/default_gutter_handler").GutterTooltip,w=function(){function g(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new p(this.editor)}return g.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))},g.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))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=u.enter)return;s.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(l-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new d(s,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===u.tab){s.preventDefault();return}if(s.keyCode===u.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===u.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===u.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===u.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===u.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===u.enter||s.keyCode===u.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return c&&a},g.prototype.$isAnnotationVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return c&&a},g.prototype.$getFoldWidget=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isFoldWidgetVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+c))return s+c}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isAnnotationVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+c))return s+c}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var c=this.$getFoldWidget(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var c=this.$getAnnotation(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$blurFoldWidget=function(s){var c=this.$getFoldWidget(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$blurAnnotation=function(s){var c=this.$getAnnotation(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(s){var c=this.lines.get(s);return c?c.row:null},g.prototype.$rowToRowIndex=function(s){for(var c=0;c<this.lines.getLength();c++){var a=this.lines.get(c);if(a.row==s)return c}return null},g}();r.GutterKeyboardHandler=w;var d=function(){function g(s,c){this.gutterKeyboardHandler=c,this.domEvent=s}return g.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();r.GutterKeyboardEvent=d}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(t,r,h){var u=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],I=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&I>=S.length&&(S=void 0),{value:S&&S[I++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},p=t("./lib/oop"),w=t("./lib/dom"),d=t("./lib/lang"),g=t("./lib/useragent"),s=t("./keyboard/textinput").TextInput,c=t("./mouse/mouse_handler").MouseHandler,a=t("./mouse/fold_handler").FoldHandler,l=t("./keyboard/keybinding").KeyBinding,o=t("./edit_session").EditSession,f=t("./search").Search,y=t("./range").Range,v=t("./lib/event_emitter").EventEmitter,x=t("./commands/command_manager").CommandManager,M=t("./commands/default_commands").commands,A=t("./config"),k=t("./token_iterator").TokenIterator,b=t("./keyboard/gutter_handler").GutterKeyboardHandler,T=t("./config").nls,R=t("./clipboard"),L=t("./lib/keys"),E=function(){function S(_,$,I){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new x(g.isMac?"mac":"win",M),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new a(this)),this.keyBinding=new l(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=d.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,W){W._$emitInputEvent.schedule(31)}),this.setSession($||I&&I.session||new o("")),A.resetOptions(this),I&&this.setOptions(I),A._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,I=$&&$.scrollIntoView;if(I){switch(I){case"center-animate":I="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}I=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,I=this.$mergeableCommands,O=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else O=O&&I.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:I.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var I=this;A.loadModule(["keybinding",_],function(O){I.$keybindingId==_&&I.keyBinding.setKeyboardHandler(O&&O.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var I=this.session.getSelection();I.off("changeCursor",this.$onCursorChange),I.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var I=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),W=$.getMatchingBracketRanges(I,F);if(!W){var z=new k($,I.row,I.column),V=z.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=$.getMatchingTags(I);q&&(W=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!W&&$.$mode.getMatching&&(W=$.$mode.getMatching(_.session)),!W){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(W)?W.length==1&&(X="ace_error_bracket"):W=[W],W.length==2&&(y.comparePoints(W[0].end,W[1].start)==0?W=[y.fromPoints(W[0].start,W[1].end)]:y.comparePoints(W[0].start,W[1].end)==0&&(W=[y.fromPoints(W[1].start,W[0].end)])),$.$bracketHighlight={ranges:W,markerIds:W.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,I=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,I,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var I=new y($.row,$.column,$.row,1/0);I.id=_.addMarker(I,"ace_active-line","screenLine"),_.$highlightLineMarker=I}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var I=this.selection.getRange(),O=this.getSelectionStyle();$.$selectionMarker=$.addMarker(I,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var I=$.start.column,O=$.end.column,F=_.getLine($.start.row),W=F.substring(I,O);if(!(W.length>5e3||!/[\w\d]/.test(W))){var z=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:W}),V=F.substring(I-1,O+1);if(z.test(V))return z}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),I=!1;if(!_&&this.$copyWithEmptySelection){I=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var W=O[F];F&&O[F-1].start.row==W.start.row||(_+=this.session.getLine(W.start.row)+$)}}var z={text:_};return this._signal("copy",z),R.lineMode=I?z.text:!1,z.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(_,$){var I={text:_,event:$};this.commands.exec("paste",this,I)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,I=$===R.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)I?O.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(I)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),W=this.selection.rangeList.ranges,z=F.length==2&&(!F[0]||!F[1]);if(F.length!=W.length||z)return this.commands.exec("insertstring",this,$);for(var V=W.length;V--;){var q=W[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var I=this.session,O=I.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var W=O.transformAction(I.getState(F.row),"insertion",this,I,_);W&&(_!==W.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=W.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
|
203
|
+
`)==-1){var z=y.fromPoints(F,F);z.end.column+=_.length,this.session.remove(z)}}else{var z=this.getSelectionRange();F=this.session.remove(z),this.clearSelection()}if(_==`
|
204
|
+
`||_==`\r
|
205
|
+
`){var G=I.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);I.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=I.getState(F.row),G=I.getLine(F.row),Z=O.checkOutdent(X,G,_);if(I.insert(F,_),W&&W.selection&&(W.selection.length==2?this.selection.setSelectionRange(new y(F.row,q+W.selection[0],F.row,q+W.selection[1])):this.selection.setSelectionRange(new y(F.row+W.selection[0],W.selection[1],F.row+W.selection[2],W.selection[3]))),this.$enableAutoIndent){if(I.getDocument().isNewLine(_)){var re=O.getNextLineIndent(X,G.slice(0,F.column),I.getTabString());I.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,I,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),I=this.selection.isEmpty()?[new y(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",W="",z=_.getTabString(),V=0;V<I.length;V++)for(var q=I[V].start.row,X=I[V].end.row,G=q;G<=X;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),W=$.getNextLineIndent(O,F,z));var Z=_.getLine(G),re=$.$getIndent(Z);if(W!==re){if(re.length>0){var J=new y(G,0,G,re.length);_.remove(J)}W.length>0&&_.insert({row:G,column:0},W)}$.autoOutdent(O,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var I=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(I):I(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var I=this.selection.getRange();I.start.column-=$.extendLeft,I.end.column+=$.extendRight,I.start.column<0&&(I.start.row--,I.start.column+=this.session.getLine(I.start.row).length+1),this.selection.setRange(I),!_&&!I.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var I=this.selection.getRange();I.start.column-=$.restoreStart,I.end.column-=$.restoreEnd,this.selection.setRange(I)}},S.prototype.onCommandKey=function(_,$,I){return this.keyBinding.onCommandKey(_,$,I)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var I=this.session,O=I.getState($.start.row),F=I.getMode().transformAction(O,"deletion",this,I,$);if($.end.column===0){var W=I.getTextRange($);if(W[W.length-1]==`
|
206
|
+
`){var z=I.getLine($.end.row);/^\s+$/.test(z)&&($.end.column=z.length)}}F&&($=F)}this.session.remove($),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var I=this.session.getLine(_.row),O,F;$<I.length?(O=I.charAt($)+I.charAt($-1),F=new y(_.row,$-1,_.row,$+1)):(O=I.charAt($-1)+I.charAt($-2),F=new y(_.row,$-2,_.row,$)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),I=this.session.getTextRange($);this.session.replace($,I.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),I=this.session.getTextRange($);this.session.replace($,I.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var I=this.$getSelectedRows();_.indentRows(I.first,I.last," ");return}else if($.start.column<$.end.column){var O=_.getTextRange($);if(!/^\s+$/.test(O)){var I=this.$getSelectedRows();_.indentRows(I.first,I.last," ");return}}var F=_.getLine($.start.row),W=$.start,z=_.getTabSize(),V=_.documentToScreenColumn(W.row,W.column);if(this.session.getUseSoftTabs())var q=z-V%z,X=d.stringRepeat(" ",q);else{for(var q=V%z;F[$.start.column-1]==" "&&q;)$.start.column--,q--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,I=[],O=_.first;O<=_.last;O++)I.push($.getLine(O));I.sort(function(z,V){return z.toLowerCase()<V.toLowerCase()?-1:z.toLowerCase()>V.toLowerCase()?1:0});for(var F=new y(0,0,0,0),O=_.first;O<=_.last;O++){var W=$.getLine(O);F.start.row=O,F.end.row=O,F.end.column=W.length,$.replace(F,I[O-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),I=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,I,_)},S.prototype.getNumberAt=function(_,$){var I=/[\-]?[0-9]+(?:\.[0-9]+)?/g;I.lastIndex=0;for(var O=this.session.getLine(_);I.lastIndex<$;){var F=I.exec(O);if(F.index<=$&&F.index+F[0].length>=$){var W={value:F[0],start:F.index,end:F.index+F[0].length};return W}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,I=this.selection.getCursor().column,O=new y($,I-1,$,I),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var W=this.getNumberAt($,I);if(W){var z=W.value.indexOf(".")>=0?W.start+W.value.indexOf(".")+1:W.end,V=W.start+W.value.length-z,q=parseFloat(W.value);q*=Math.pow(10,V),z!==W.end&&I<z?_*=Math.pow(10,W.end-I-1):_*=Math.pow(10,W.end-I),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new y($,W.start,$,W.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(W.start+1,I+X.length-W.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var I=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=I.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),W=$-O-1;W<0&&(W=0);var z=0,V=0,q=this;I.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,Ae){V=z+pe.length,W>=z&&W<=V&&(I=pe,q.selection.clearSelection(),q.moveCursorTo(_,z+O),q.selection.selectTo(_,V+O)),z=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=I.match(new RegExp("^\\s?_?("+d.escapeRegExp(re[J])+")\\s?$","i"));if(me){var we=I.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(me[1])+")($|\\s)","g"));we&&(G=I.replace(new RegExp(d.escapeRegExp(re[J]),"i"),function(pe){var Ae=re[ae];return pe.toUpperCase()==pe?Ae=Ae.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(Ae=Ae.substr(0,0)+re[ae].charAt(0).toUpperCase()+Ae.substr(1)),Ae}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var I,O,F=this.session.getLine(_),W=F.split(/((?:https?|ftp):\/\/[\S]+)/),z=$;z<0&&(z=0);var V=0,q=0,X;try{for(var G=u(W),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,z>=V&&z<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){I={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(I)throw I.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,I=_.getRange(),O=_.isBackwards();if(I.isEmpty()){var F=I.start.row;$.duplicateLines(F,F)}else{var W=O?I.start:I.end,z=$.insert(W,$.getTextRange(I));I.start=W,I.end=z,_.setSelectionRange(I,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,I){return this.session.moveText(_,$,I)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var I,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var W=F.toOrientedRange();I=this.$getSelectedRows(W),O=this.session.$moveLines(I.first,I.last,$?0:_),$&&_==-1&&(O=0),W.moveBy(O,0),F.fromOrientedRange(W)}else{var z=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=z.length,G=0;G<X;G++){var Z=G;z[G].moveBy(V,0),I=this.$getSelectedRows(z[G]);for(var re=I.first,J=I.last;++G<X;){q&&z[G].moveBy(q,0);var ae=this.$getSelectedRows(z[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)z[Z].moveBy(V,0),Z++;$||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var I=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var W=I.scrollTop;I.scrollBy(0,F*O.lineHeight),$!=null&&I.scrollCursorIntoView(null,.5),I.animateScrolling(W)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,I,O){this.renderer.scrollToLine(_,$,I,O)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var I=this.getCursorPosition(),O=new k(this.session,I.row,I.column),F=O.getCurrentToken(),W=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var z=F||O.stepForward();if(z){var V,q=!1,X={},G=I.column-z.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(z.value.match(/[{}()\[\]]/g)){for(;G<z.value.length&&!q;G++)if(re[z.value[G]])switch(Z=re[z.value[G]]+"."+z.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),z.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else z.type.indexOf("tag-name")!==-1&&(isNaN(X[z.value])&&(X[z.value]=0),F.value==="<"&&W>1?X[z.value]++:F.value==="</"&&X[z.value]--,X[z.value]===-1&&(V="tag",q=!0));q||(F=z,W++,z=O.stepForward(),G=0)}while(z&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(I),J||(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===I.row&&Math.abs(ae.column-I.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!z||z.type.indexOf("tag-name")===-1)return;if(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(I.row,I.column)===0){var me=this.session.getMatchingTags(I);me&&(me.openTag.contains(I.row,I.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===I.row&&me.closeTag.start.column===I.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,I){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,I)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(_,$){$&&this.$search.set($);var I=this.$search.find(this.session),O=0;return I&&(this.$tryReplace(I,_)&&(O=1),this.selection.setSelectionRange(I),this.renderer.scrollSelectionIntoView(I.start,I.end)),O},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var I=this.$search.findAll(this.session),O=0;if(!I.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var W=I.length-1;W>=0;--W)this.$tryReplace(I[W],_)&&O++;return this.selection.setSelectionRange(F),O},S.prototype.$tryReplace=function(_,$){var I=this.session.getTextRange(_);return $=this.$search.replace(I,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,I){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&p.mixin($,_);var O=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:O});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,I),F;$.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var I=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(I)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,I=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var W=this.on("changeSelection",function(){O=!0}),z=this.renderer.on("beforeRender",function(){O&&($=I.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&$&&(I.isFocused()||I.searchBox&&I.searchBox.isFocused())){var q=I.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?O=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=$=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",W),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",z))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",w.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,I){var O=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,$,I)})},S}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],p.implement(E.prototype,v),A.defineOptions(E.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var $=w.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},$=function(O){if(O.target==this.renderer.scroller&&O.keyCode===L.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},I;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",T("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),I||(I=new b(this)),I.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",$.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),I&&I.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=E}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,r,h){var u=t("../lib/dom"),p=function(){function w(d,g){this.element=d,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(d){u.translate(this.element,0,-(d.firstRowScreen*d.lineHeight%this.canvasHeight)-d.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(d,g){return Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(d,g,s){var c=g.firstRowScreen*g.lineHeight,a=Math.floor(c/this.canvasHeight),l=s.documentToScreenRow(d,0)*g.lineHeight;return l-a*this.canvasHeight},w.prototype.computeLineHeight=function(d,g,s){return g.lineHeight*s.getRowLineCount(d)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(d){return this.cells[d]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(d){if(Array.isArray(d)){this.cells.push.apply(this.cells,d);for(var g=u.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.appendChild(g)}else this.cells.push(d),this.element.appendChild(d.element)},w.prototype.unshift=function(d){if(Array.isArray(d)){this.cells.unshift.apply(this.cells,d);for(var g=u.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(d),this.element.insertAdjacentElement("afterbegin",d.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(d){d&&(d.element.remove(),this.cellCache.push(d))},w.prototype.createCell=function(d,g,s,c){var a=this.cellCache.pop();if(!a){var l=u.createElement("div");c&&c(l),this.element.appendChild(l),a={element:l,text:"",row:d}}return a.row=d,a},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(t,r,h){var u=t("../lib/dom"),p=t("../lib/oop"),w=t("../lib/lang"),d=t("../lib/event_emitter").EventEmitter,g=t("./lines").Lines,s=t("../config").nls,c=function(){function l(o){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,f)},l.prototype.removeGutterDecoration=function(o,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,f)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var f=0;f<o.length;f++){var y=o[f],v=y.row,x=this.$annotations[v];x||(x=this.$annotations[v]={text:[],type:[],displayText:[]});var M=y.text,A=y.text,k=y.type;M=M?w.escapeHTML(M):y.html||"",A=A||y.html||"",x.text.indexOf(M)===-1&&(x.text.push(M),x.type.push(k),x.displayText.push(A));var b=y.className;b?x.className=b:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var f=o.start.row,y=o.end.row-f;if(y!==0)if(o.action=="remove")this.$annotations.splice(f,y+1,null);else{var v=new Array(y+1);v.unshift(f,1),this.$annotations.splice.apply(this.$annotations,v)}}},l.prototype.update=function(o){this.config=o;var f=this.session,y=o.firstRow,v=Math.min(o.lastRow+o.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=f.getNextFoldLine(y),M=x?x.start.row:1/0,A=null,k=-1,b=y;;){if(b>M&&(b=x.end.row+1,x=f.getNextFoldLine(b,x),M=x?x.start.row:1/0),b>v){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}A=this.$lines.get(++k),A?A.row=b:(A=this.$lines.createCell(b,o,this.session,a),this.$lines.push(A)),this.$renderCell(A,o,x,b),b++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var f=this.session,y=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(x=f.getLength()+v-1);var M=y?y.getWidth(f,x,o):x.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();M+=A.left+A.right,M!==this.gutterWidth&&!isNaN(M)&&(this.gutterWidth=M,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",M))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var y=0;y<f.length;y++){var v=f[y];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(y>0&&x&&x.start.row==f[y-1].row)v=f[y-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},l.prototype.scrollLines=function(o){var f=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(f,o))return this.update(o);this.$lines.moveContainer(o);var y=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=y,!f||v<o.firstRow)return this.update(o);if(y<f.firstRow)return this.update(o);if(f.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(f.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(v>y)for(var x=this.session.getFoldedRowCount(y+1,v);x>0;x--)this.$lines.pop();o.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,f.firstRow-1)),y>v&&this.$lines.push(this.$renderLines(o,v+1,y)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,f,y){for(var v=[],x=f,M=this.session.getNextFoldLine(x),A=M?M.start.row:1/0;x>A&&(x=M.end.row+1,M=this.session.getNextFoldLine(x,M),A=M?M.start.row:1/0),!(x>y);){var k=this.$lines.createCell(x,o,this.session,a);this.$renderCell(k,o,M,x),v.push(k),x++}return v},l.prototype.$renderCell=function(o,f,y,v){var x=o.element,M=this.session,A=x.childNodes[0],k=x.childNodes[1],b=x.childNodes[2],T=b.firstChild,R=M.$firstLineNumber,L=M.$breakpoints,E=M.$decorations,N=M.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&M.foldWidgets,_=y?y.start.row:Number.MAX_VALUE,$=f.lineHeight+"px",I=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(M,v):v+R).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||y&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=y.end.row)&&(I+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),L[v]&&(I+=L[v]),E[v]&&(I+=E[v]),this.$annotations[v]&&v!==_&&(I+=this.$annotations[v].className),S){var W=S[v];W==null&&(W=S[v]=M.getFoldWidget(v))}if(W){var z="ace_fold-widget ace_"+W,V=W=="start"&&v==_&&v<y.end.row;if(V){z+=" ace_closed";for(var q="",X=!1,G=v+1;G<=y.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}I+=q}else z+=" ace_open";k.className!=z&&(k.className=z),u.setStyle(k.style,"height",$),u.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=M.getFoldWidgetRange(v);Z?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):y?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[y.start.row+1,y.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(u.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",T.className=O,T.className+=q,u.setStyle(T.style,"height",$),u.setStyle(b.style,"display","block"),u.setStyle(b.style,"height",$);var re;switch(q){case" ace_error_fold":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[v].className:x.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(T.style,"height",$),u.setStyle(b.style,"display","block"),u.setStyle(b.style,"height",$);var re;switch(this.$annotations[v].className){case" ace_error":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else u.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return F!==A.data&&(A.data=F),x.className!=I&&(x.className=I),u.setStyle(o.element.style,"height",this.$lines.computeLineHeight(v,f,M)+"px"),u.setStyle(o.element.style,"top",this.$lines.computeLineTop(v,f,M)+"px"),o.text=F,b.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var f=this.$padding||this.$computePadding(),y=this.element.getBoundingClientRect();if(o.x<f.left+y.left)return"markers";if(this.$showFoldWidgets&&o.x>y.right-f.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,p.implement(c.prototype,d);function a(l){var o=document.createTextNode("");l.appendChild(o);var f=u.createElement("span");l.appendChild(f);var y=u.createElement("span");l.appendChild(y);var v=u.createElement("span");return y.appendChild(v),l}r.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,r,h){var u=t("../range").Range,p=t("../lib/dom"),w=function(){function g(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,c){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=c,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var c;for(var a in this.markers){var l=this.markers[a];if(!l.range){l.update(c,this,this.session,s);continue}var o=l.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var f=this.$getTop(o.start.row,s),y=this.$padding+o.start.column*s.characterWidth;l.renderer(c,o,y,f,s)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,s):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,s):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,s):this.drawMultiLineMarker(c,o,l.clazz,s):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,c){return(s-c.firstRowScreen)*c.lineHeight},g.prototype.drawTextMarker=function(s,c,a,l,o){for(var f=this.session,y=c.start.row,v=c.end.row,x=y,M=0,A=0,k=f.getScreenLastRowColumn(x),b=new u(x,c.start.column,x,A);x<=v;x++)b.start.row=b.end.row=x,b.start.column=x==y?c.start.column:f.getRowWrapIndent(x),b.end.column=k,M=A,A=k,k=x+1<v?f.getScreenLastRowColumn(x+1):x==v?0:c.end.column,this.drawSingleLineMarker(s,b,a+(x==y?" ace_start":"")+" ace_br"+d(x==y||x==y+1&&c.start.column,M<A,A>k,x==v),l,x==v?0:1,o)},g.prototype.drawMultiLineMarker=function(s,c,a,l,o){var f=this.$padding,y=l.lineHeight,v=this.$getTop(c.start.row,l),x=f+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var M=c.clone();M.end.row=M.start.row,M.end.column=this.session.getLine(M.start.row).length,this.drawBidiSingleLineMarker(s,M,a+" ace_br1 ace_start",l,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+y+"px;right:"+f+"px;top:"+v+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var M=c.clone();M.start.row=M.end.row,M.start.column=0,this.drawBidiSingleLineMarker(s,M,a+" ace_br12",l,null,o)}else{v=this.$getTop(c.end.row,l);var A=c.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+y+"px;width:"+A+"px;top:"+v+"px;left:"+f+"px;"+(o||""))}if(y=(c.end.row-c.start.row-1)*l.lineHeight,!(y<=0)){v=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+y+"px;right:"+f+"px;top:"+v+"px;left:"+f+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,c,a,l,o,f){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(s,c,a,l,o,f);var y=l.lineHeight,v=(c.end.column+(o||0)-c.start.column)*l.characterWidth,x=this.$getTop(c.start.row,l),M=this.$padding+c.start.column*l.characterWidth;this.elt(a,"height:"+y+"px;width:"+v+"px;top:"+x+"px;left:"+M+"px;"+(f||""))},g.prototype.drawBidiSingleLineMarker=function(s,c,a,l,o,f){var y=l.lineHeight,v=this.$getTop(c.start.row,l),x=this.$padding,M=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);M.forEach(function(A){this.elt(a,"height:"+y+"px;width:"+(A.width+(o||0))+"px;top:"+v+"px;left:"+(x+A.left)+"px;"+(f||""))},this)},g.prototype.drawFullLineMarker=function(s,c,a,l,o){var f=this.$getTop(c.start.row,l),y=l.lineHeight;c.start.row!=c.end.row&&(y+=this.$getTop(c.end.row,l)-f),this.elt(a,"height:"+y+"px;top:"+f+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,c,a,l,o){var f=this.$getTop(c.start.row,l),y=l.lineHeight;this.elt(a,"height:"+y+"px;top:"+f+"px;left:0;right:0;"+(o||""))},g}();w.prototype.$padding=0;function d(g,s,c,a){return(g?1:0)|(s?2:0)|(c?4:0)|(a?8:0)}r.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,r,h){var u=new Set(["text","rparen","lparen"]);r.isTextToken=function(p){return u.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(t,r,h){var u=t("../lib/oop"),p=t("../lib/dom"),w=t("../lib/lang"),d=t("./lines").Lines,g=t("../lib/event_emitter").EventEmitter,s=t("../config").nls,c=t("./text_util").isTextToken,a=function(){function l(o){this.dom=p,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new d(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,f=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",y=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=y)return this.EOL_CHAR=y,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var f=this.$tabStrings=[0],y=1;y<o+1;y++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=w.stringRepeat(this.TAB_CHAR,y),f.push(v)}else f.push(this.dom.createTextNode(w.stringRepeat(" ",y),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",M=this.showSpaces?" ace_invisible ace_invisible_space":"",A=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):A,v=this.dom.createElement("span");v.className=x+M,v.textContent=A,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=x+k,v.textContent=b,this.$tabStrings[" "]=v}},l.prototype.updateLines=function(o,f,y){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var v=Math.max(f,o.firstRow),x=Math.min(y,o.lastRow),M=this.element.childNodes,A=0,k=o.firstRow;k<v;k++){var b=this.session.getFoldLine(k);if(b)if(b.containsRow(v)){v=b.start.row;break}else k=b.end.row;A++}for(var T=!1,k=v,b=this.session.getNextFoldLine(k),R=b?b.start.row:1/0;k>R&&(k=b.end.row+1,b=this.session.getNextFoldLine(k,b),R=b?b.start.row:1/0),!(k>x);){var L=M[A++];if(L){this.dom.removeChildren(L),this.$renderLine(L,k,k==R?b:!1),T&&(L.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var E=o.lineHeight*this.session.getRowLength(k)+"px";L.style.height!=E&&(T=!0,L.style.height=E)}k++}if(T)for(;A<this.$lines.cells.length;){var N=this.$lines.cells[A++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var f=this.config;if(this.config=o,this.$lines.pageChanged(f,o))return this.update(o);this.$lines.moveContainer(o);var y=o.lastRow,v=f?f.lastRow:-1;if(!f||v<o.firstRow)return this.update(o);if(y<f.firstRow)return this.update(o);if(!f||f.lastRow<o.firstRow)return this.update(o);if(o.lastRow<f.firstRow)return this.update(o);if(f.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(f.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(f.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,f.lastRow);x>0;x--)this.$lines.pop();o.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,f.firstRow-1)),o.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(o,f.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,f,y){for(var v=[],x=f,M=this.session.getNextFoldLine(x),A=M?M.start.row:1/0;x>A&&(x=M.end.row+1,M=this.session.getNextFoldLine(x,M),A=M?M.start.row:1/0),!(x>y);){var k=this.$lines.createCell(x,o,this.session),b=k.element;this.dom.removeChildren(b),p.setStyle(b.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),p.setStyle(b.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(b,x,x==A?M:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(k),x++}return v},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var f=o.firstRow,y=o.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(o,f,y))},l.prototype.$renderToken=function(o,f,y,v){for(var x=this,M=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,A=this.dom.createFragment(this.element),k,b=0;k=M.exec(v);){var T=k[1],R=k[2],L=k[3],E=k[4],N=k[5];if(!(!x.showSpaces&&R)){var S=b!=k.index?v.slice(b,k.index):"";if(b=k.index+k[0].length,S&&A.appendChild(this.dom.createTextNode(S,this.element)),T){var _=x.session.getScreenTabSize(f+k.index);A.appendChild(x.$tabStrings[_].cloneNode(!0)),f+=_-1}else if(R)if(x.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=w.stringRepeat(x.SPACE_CHAR,R.length),A.appendChild($)}else A.appendChild(this.dom.createTextNode(R,this.element));else if(L){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=w.stringRepeat(x.SPACE_CHAR,L.length),A.appendChild($)}else if(E){f+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=x.showSpaces?x.SPACE_CHAR:E,A.appendChild($)}else if(N){f+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,A.appendChild($)}}}if(A.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),c(y.type))o.appendChild(A);else{var I="ace_"+y.type.replace(/\./g," ace_"),$=this.dom.createElement("span");y.type=="fold"&&($.style.width=y.value.length*this.config.characterWidth+"px",$.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),$.className=I,$.appendChild(A),o.appendChild($)}return f+v.length},l.prototype.renderIndentGuide=function(o,f,y){var v=f.search(this.$indentGuideRe);if(v<=0||v>=y)return f;if(f[0]==" "){v-=v%this.tabSize;for(var x=v/this.tabSize,M=0;M<x;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var M=0;M<v;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var f=this.session.selection.getCursor(),y=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,v=Math.floor(y/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:f.row};var x=this.session.$bracketHighlight;if(x){for(var M=this.session.$bracketHighlight.ranges,A=0;A<M.length;A++)if(f.row!==M[A].start.row){this.$highlightIndentGuideMarker.end=M[A].start.row,f.row>M[A].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[f.row]!==""&&f.column===o[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var A=f.row+1;A<o.length;A++){var k=o[A],b=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=A,b<=y))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,f=0;f<o.length;f++){var y=o[f],v=y.element.childNodes;if(v.length>0){for(var x=0;x<v.length;x++)if(v[x].classList&&v[x].classList.contains("ace_indent-guide-active")){v[x].classList.remove("ace_indent-guide-active");break}}}},l.prototype.$setIndentGuideActive=function(o,f){var y=this.session.doc.getLine(o.row);if(y!==""){var v=o.element.childNodes;if(v){var x=v[f-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var y=0;y<o.length;y++){var v=o[y];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var y=o.length-1;y>=0;y--){var v=o[y];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},l.prototype.$createLineElement=function(o){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},l.prototype.$renderWrappedLine=function(o,f,y){var v=0,x=0,M=y[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var b=0;b<f.length;b++){var T=f[b],R=T.value;if(b==0&&this.displayIndentGuides){if(v=R.length,R=this.renderIndentGuide(k,R,M),!R)continue;v-=R.length}if(v+R.length<M)A=this.$renderToken(k,A,T,R),v+=R.length;else{for(;v+R.length>=M;)A=this.$renderToken(k,A,T,R.substring(0,M-v)),R=R.substring(M-v),v=M,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",y.indent),this.element)),x++,A=0,M=y[x]||Number.MAX_VALUE;R.length!=0&&(v+=R.length,A=this.$renderToken(k,A,T,R))}}y[y.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},l.prototype.$renderSimpleLine=function(o,f){for(var y=0,v=0;v<f.length;v++){var x=f[v],M=x.value;if(!(v==0&&this.displayIndentGuides&&(M=this.renderIndentGuide(o,M),!M))){if(y+M.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,y,x,M);y=this.$renderToken(o,y,x,M)}}},l.prototype.$renderOverflowMessage=function(o,f,y,v,x){y&&this.$renderToken(o,f,y,v.slice(0,this.MAX_LINE_LENGTH-f));var M=this.dom.createElement("span");M.className="ace_inline_button ace_keyword ace_toggle_wrap",M.textContent=x?"<hide>":"<click to see more...>",o.appendChild(M)},l.prototype.$renderLine=function(o,f,y){if(!y&&y!=!1&&(y=this.session.getFoldLine(f)),y)var v=this.$getFoldLineTokens(f,y);else var v=this.session.getTokens(f);var x=o;if(v.length){var M=this.session.getRowSplitData(f);if(M&&M.length){this.$renderWrappedLine(o,v,M);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,v)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){y&&(f=y.end.row);var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_eol",A.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(A)}},l.prototype.$getFoldLineTokens=function(o,f){var y=this.session,v=[];function x(A,k,b){for(var T=0,R=0;R+A[T].value.length<k;)if(R+=A[T].value.length,T++,T==A.length)return;if(R!=k){var L=A[T].value.substring(k-R);L.length>b-k&&(L=L.substring(0,b-k)),v.push({type:A[T].type,value:L}),R=k+L.length,T+=1}for(;R<b&&T<A.length;){var L=A[T].value;L.length+R>b?v.push({type:A[T].type,value:L.substring(0,b-R)}):v.push(A[T]),R+=L.length,T+=1}}var M=y.getTokens(o);return f.walk(function(A,k,b,T,R){A!=null?v.push({type:"fold",value:A}):(R&&(M=y.getTokens(k)),M.length&&x(M,T,b))},f.end.row,this.session.getLine(f.end.row).length),v},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,u.implement(a.prototype,g),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,r,h){var u=t("../lib/dom"),p=function(){function w(d){this.element=u.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),u.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(d){for(var g=this.cursors,s=g.length;s--;)u.setStyle(g[s].style,"opacity",d?"":"0")},w.prototype.$startCssAnimation=function(){for(var d=this.cursors,g=d.length;g--;)d[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&u.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,u.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(d){this.$padding=d},w.prototype.setSession=function(d){this.session=d},w.prototype.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},w.prototype.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},w.prototype.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,u.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var d=u.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},w.prototype.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},w.prototype.hideCursor=function(){this.isVisible=!1,u.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,u.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,u.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&u.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),u.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){d(!0),g()},this.blinkInterval),g()}},w.prototype.getPixelPosition=function(d,g){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(d),c=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,d.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:a}},w.prototype.isCursorInView=function(d,g){return d.top>=0&&d.top<g.maxHeight},w.prototype.update=function(d){this.config=d;var g=this.session.$selectionMarkers,s=0,c=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var l=this.getPixelPosition(g[s].cursor,!0);if(!((l.top>d.height+d.offset||l.top<0)&&s>1)){var o=this.cursors[c++]||this.addCursor(),f=o.style;this.drawCursor?this.drawCursor(o,l,d,g[s],this.session):this.isCursorInView(l,d)?(u.setStyle(f,"display","block"),u.translate(o,l.left,l.top),u.setStyle(f,"width",Math.round(d.characterWidth)+"px"),u.setStyle(f,"height",d.lineHeight+"px")):u.setStyle(f,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var y=this.session.getOverwrite();this.$setOverwrite(y),this.$pixelPos=l,this.restartTimer()},w.prototype.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?u.addCssClass(this.element,"ace_overwrite-cursors"):u.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(t,r,h){var u=this&&this.__extends||function(){var o=function(f,y){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(v[M]=x[M])},o(f,y)};return function(f,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");o(f,y);function v(){this.constructor=f}f.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)}}(),p=t("./lib/oop"),w=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter,s=32768,c=function(){function o(f,y){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+y,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)}return o.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},o}();p.implement(c.prototype,g);var a=function(o){u(f,o);function f(y,v){var x=o.call(this,y,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,v.$scrollbarWidth=x.width=w.scrollbarWidth(y.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var y=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-y)/(this.coeff-y)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(y){this.element.style.height=y+"px"},f.prototype.setScrollHeight=function(y){this.scrollHeight=y,y>s?(this.coeff=s/y,y=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=y+"px"},f.prototype.setScrollTop=function(y){this.scrollTop!=y&&(this.skipEvent=!0,this.scrollTop=y,this.element.scrollTop=y*this.coeff)},f}(c);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(o){u(f,o);function f(y,v){var x=o.call(this,y,"-h")||this;return x.scrollLeft=0,x.height=v.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(y){this.element.style.width=y+"px"},f.prototype.setInnerWidth=function(y){this.inner.style.width=y+"px"},f.prototype.setScrollWidth=function(y){this.inner.style.width=y+"px"},f.prototype.setScrollLeft=function(y){this.scrollLeft!=y&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=y)},f}(c);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=l,r.VScrollBar=a,r.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,h){var u=this&&this.__extends||function(){var l=function(o,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(y[x]=v[x])},l(o,f)};return function(o,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");l(o,f);function y(){this.constructor=o}o.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),p=t("./lib/oop"),w=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
209
|
+
position: absolute;
|
210
|
+
background: rgba(128, 128, 128, 0.6);
|
211
|
+
-moz-box-sizing: border-box;
|
212
|
+
box-sizing: border-box;
|
213
|
+
border: 1px solid #bbb;
|
214
|
+
border-radius: 2px;
|
215
|
+
z-index: 8;
|
216
|
+
}
|
217
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
218
|
+
position: absolute;
|
219
|
+
z-index: 6;
|
220
|
+
background: none;
|
221
|
+
overflow: hidden!important;
|
222
|
+
}
|
223
|
+
.ace_editor>.ace_sb-v {
|
224
|
+
z-index: 6;
|
225
|
+
right: 0;
|
226
|
+
top: 0;
|
227
|
+
width: 12px;
|
228
|
+
}
|
229
|
+
.ace_editor>.ace_sb-v div {
|
230
|
+
z-index: 8;
|
231
|
+
right: 0;
|
232
|
+
width: 100%;
|
233
|
+
}
|
234
|
+
.ace_editor>.ace_sb-h {
|
235
|
+
bottom: 0;
|
236
|
+
left: 0;
|
237
|
+
height: 12px;
|
238
|
+
}
|
239
|
+
.ace_editor>.ace_sb-h div {
|
240
|
+
bottom: 0;
|
241
|
+
height: 100%;
|
242
|
+
}
|
243
|
+
.ace_editor>.ace_sb_grabbed {
|
244
|
+
z-index: 8;
|
245
|
+
background: #000;
|
246
|
+
}`,"ace_scrollbar.css",!1);var s=function(){function l(o,f){this.element=w.createElement("div"),this.element.className="ace_sb"+f,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();p.implement(s.prototype,g);var c=function(l){u(o,l);function o(f,y){var v=l.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=y,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return o.prototype.onMouseDown=function(f,y){if(f==="mousedown"&&!(d.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var v=this,x=y.clientY,M=function(E){x=E.clientY},A=function(){clearInterval(R)},k=y.clientY,b=this.thumbTop,T=function(){if(x!==void 0){var E=v.scrollTopFromThumbTop(b+x-k);E!==v.scrollTop&&v._emit("scroll",{data:E})}};d.capture(this.inner,M,A);var R=setInterval(T,20);return d.preventDefault(y)}var L=y.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),d.preventDefault(y)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(f){var y=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return y=y>>0,y<0?y=0:y>this.pageHeight-this.viewHeight&&(y=this.pageHeight-this.viewHeight),y},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(f,y){this.pageHeight===f&&!y||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var a=function(l){u(o,l);function o(f,y){var v=l.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=y,v}return o.prototype.onMouseDown=function(f,y){if(f==="mousedown"&&!(d.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var v=this,x=y.clientX,M=function(E){x=E.clientX},A=function(){clearInterval(R)},k=y.clientX,b=this.thumbLeft,T=function(){if(x!==void 0){var E=v.scrollLeftFromThumbLeft(b+x-k);E!==v.scrollLeft&&v._emit("scroll",{data:E})}};d.capture(this.inner,M,A);var R=setInterval(T,20);return d.preventDefault(y)}var L=y.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),d.preventDefault(y)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(f){var y=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return y=y>>0,y<0?y=0:y>this.pageWidth-this.viewWidth&&(y=this.pageWidth-this.viewWidth),y},o.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(f,y){this.pageWidth===f&&!y||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=a,r.VScrollBar=c,r.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,r,h){var u=t("./lib/event"),p=function(){function w(d,g){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(c){s.pending=!1;var a=s.changes;if(a&&(u.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return w.prototype.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(u.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(d){var g=this.changes;return this.changes=0,g},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(t,r,h){var u=t("../lib/oop"),p=t("../lib/dom"),w=t("../lib/lang"),d=t("../lib/event"),g=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,c=512,a=typeof ResizeObserver=="function",l=200,o=function(){function f(y){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),y.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",c),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(y,v){y.width=y.height="auto",y.left=y.top="0px",y.visibility="hidden",y.position="absolute",y.whiteSpace="pre",g.isIE<8?y["font-family"]="inherit":y.font="inherit",y.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(y){if(y===void 0&&(y=this.$measureSizes()),y&&(this.$characterSize.width!==y.width||this.$characterSize.height!==y.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=y,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===y.width&&v.height===y.height,this._emit("changeCharacterSize",{data:y})}},f.prototype.$addObserver=function(){var y=this;this.$observer=new window.ResizeObserver(function(v){y.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var y=this;return this.$pollSizeChangesTimer=d.onIdle(function v(){y.checkForSizeChanges(),d.onIdle(v,500)},500)},f.prototype.setPolling=function(y){y?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(y){var v={height:(y||this.$measureNode).clientHeight,width:(y||this.$measureNode).clientWidth/c};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(y){this.$main.textContent=w.stringRepeat(y,c);var v=this.$main.getBoundingClientRect();return v.width/c},f.prototype.getCharacterWidth=function(y){var v=this.charSizes[y];return v===void 0&&(v=this.charSizes[y]=this.$measureCharWidth(y)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(y){return!y||!y.parentElement?1:(Number(window.getComputedStyle(y).zoom)||1)*this.$getZoom(y.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var y=function(v,x){return["div",{style:"position: absolute;top:"+v+"px;left:"+x+"px;"}]};this.els=p.buildDom([y(0,0),y(l,0),y(0,l),y(l,l)],this.el)},f.prototype.transformCoordinates=function(y,v){if(y){var x=this.$getZoom(this.el);y=b(1/x,y)}function M(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function A(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function b(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var R=T(this.els[0]),L=T(this.els[1]),E=T(this.els[2]),N=T(this.els[3]),S=M(A(N,L),A(N,E),A(k(L,E),k(N,R))),_=b(1+S[0],A(L,R)),$=b(1+S[1],A(E,R));if(v){var I=v,O=S[0]*I[0]/l+S[1]*I[1]/l+1,F=k(b(I[0],_),b(I[1],$));return k(b(1/O/l,F),R)}var W=A(y,R),z=M(A(_,b(S[0],W)),A($,b(S[1],W)),W);return b(l,z)},f}();o.prototype.$characterSize={width:0,height:0},u.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,r,h){h.exports=`
|
247
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
248
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
249
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
250
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
251
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
252
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
253
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
254
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
255
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
256
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
257
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
258
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
259
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
260
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
261
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
262
|
+
|
263
|
+
|
264
|
+
.ace_editor {
|
265
|
+
position: relative;
|
266
|
+
overflow: hidden;
|
267
|
+
padding: 0;
|
268
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
269
|
+
direction: ltr;
|
270
|
+
text-align: left;
|
271
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
272
|
+
forced-color-adjust: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ace_scroller {
|
276
|
+
position: absolute;
|
277
|
+
overflow: hidden;
|
278
|
+
top: 0;
|
279
|
+
bottom: 0;
|
280
|
+
background-color: inherit;
|
281
|
+
-ms-user-select: none;
|
282
|
+
-moz-user-select: none;
|
283
|
+
-webkit-user-select: none;
|
284
|
+
user-select: none;
|
285
|
+
cursor: text;
|
286
|
+
}
|
287
|
+
|
288
|
+
.ace_content {
|
289
|
+
position: absolute;
|
290
|
+
box-sizing: border-box;
|
291
|
+
min-width: 100%;
|
292
|
+
contain: style size layout;
|
293
|
+
font-variant-ligatures: no-common-ligatures;
|
294
|
+
}
|
295
|
+
|
296
|
+
.ace_keyboard-focus:focus {
|
297
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
298
|
+
outline: none;
|
299
|
+
}
|
300
|
+
|
301
|
+
.ace_dragging .ace_scroller:before{
|
302
|
+
position: absolute;
|
303
|
+
top: 0;
|
304
|
+
left: 0;
|
305
|
+
right: 0;
|
306
|
+
bottom: 0;
|
307
|
+
content: '';
|
308
|
+
background: rgba(250, 250, 250, 0.01);
|
309
|
+
z-index: 1000;
|
310
|
+
}
|
311
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
312
|
+
background: rgba(0, 0, 0, 0.01);
|
313
|
+
}
|
314
|
+
|
315
|
+
.ace_gutter {
|
316
|
+
position: absolute;
|
317
|
+
overflow : hidden;
|
318
|
+
width: auto;
|
319
|
+
top: 0;
|
320
|
+
bottom: 0;
|
321
|
+
left: 0;
|
322
|
+
cursor: default;
|
323
|
+
z-index: 4;
|
324
|
+
-ms-user-select: none;
|
325
|
+
-moz-user-select: none;
|
326
|
+
-webkit-user-select: none;
|
327
|
+
user-select: none;
|
328
|
+
contain: style size layout;
|
329
|
+
}
|
330
|
+
|
331
|
+
.ace_gutter-active-line {
|
332
|
+
position: absolute;
|
333
|
+
left: 0;
|
334
|
+
right: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
.ace_scroller.ace_scroll-left:after {
|
338
|
+
content: "";
|
339
|
+
position: absolute;
|
340
|
+
top: 0;
|
341
|
+
right: 0;
|
342
|
+
bottom: 0;
|
343
|
+
left: 0;
|
344
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
345
|
+
pointer-events: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
349
|
+
position: absolute;
|
350
|
+
top: 0;
|
351
|
+
left: 0;
|
352
|
+
right: 0;
|
353
|
+
padding-left: 19px;
|
354
|
+
padding-right: 6px;
|
355
|
+
background-repeat: no-repeat;
|
356
|
+
}
|
357
|
+
|
358
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
359
|
+
margin-left: -14px;
|
360
|
+
float: left;
|
361
|
+
}
|
362
|
+
|
363
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
364
|
+
margin-left: -19px;
|
365
|
+
float: left;
|
366
|
+
}
|
367
|
+
|
368
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
369
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
370
|
+
background-repeat: no-repeat;
|
371
|
+
background-position: 2px center;
|
372
|
+
}
|
373
|
+
|
374
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
375
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
376
|
+
background-repeat: no-repeat;
|
377
|
+
background-position: 2px center;
|
378
|
+
}
|
379
|
+
|
380
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
381
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
382
|
+
background-repeat: no-repeat;
|
383
|
+
background-position: 2px center;
|
384
|
+
}
|
385
|
+
|
386
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
387
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
388
|
+
}
|
389
|
+
|
390
|
+
.ace_icon_svg.ace_error {
|
391
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
392
|
+
background-color: crimson;
|
393
|
+
}
|
394
|
+
.ace_icon_svg.ace_security {
|
395
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
396
|
+
background-color: crimson;
|
397
|
+
}
|
398
|
+
.ace_icon_svg.ace_warning {
|
399
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
400
|
+
background-color: darkorange;
|
401
|
+
}
|
402
|
+
.ace_icon_svg.ace_info {
|
403
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
404
|
+
background-color: royalblue;
|
405
|
+
}
|
406
|
+
.ace_icon_svg.ace_hint {
|
407
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
408
|
+
background-color: silver;
|
409
|
+
}
|
410
|
+
|
411
|
+
.ace_icon_svg.ace_error_fold {
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
413
|
+
background-color: crimson;
|
414
|
+
}
|
415
|
+
.ace_icon_svg.ace_security_fold {
|
416
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
417
|
+
background-color: crimson;
|
418
|
+
}
|
419
|
+
.ace_icon_svg.ace_warning_fold {
|
420
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
421
|
+
background-color: darkorange;
|
422
|
+
}
|
423
|
+
|
424
|
+
.ace_scrollbar {
|
425
|
+
contain: strict;
|
426
|
+
position: absolute;
|
427
|
+
right: 0;
|
428
|
+
bottom: 0;
|
429
|
+
z-index: 6;
|
430
|
+
}
|
431
|
+
|
432
|
+
.ace_scrollbar-inner {
|
433
|
+
position: absolute;
|
434
|
+
cursor: text;
|
435
|
+
left: 0;
|
436
|
+
top: 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
.ace_scrollbar-v{
|
440
|
+
overflow-x: hidden;
|
441
|
+
overflow-y: scroll;
|
442
|
+
top: 0;
|
443
|
+
}
|
444
|
+
|
445
|
+
.ace_scrollbar-h {
|
446
|
+
overflow-x: scroll;
|
447
|
+
overflow-y: hidden;
|
448
|
+
left: 0;
|
449
|
+
}
|
450
|
+
|
451
|
+
.ace_print-margin {
|
452
|
+
position: absolute;
|
453
|
+
height: 100%;
|
454
|
+
}
|
455
|
+
|
456
|
+
.ace_text-input {
|
457
|
+
position: absolute;
|
458
|
+
z-index: 0;
|
459
|
+
width: 0.5em;
|
460
|
+
height: 1em;
|
461
|
+
opacity: 0;
|
462
|
+
background: transparent;
|
463
|
+
-moz-appearance: none;
|
464
|
+
appearance: none;
|
465
|
+
border: none;
|
466
|
+
resize: none;
|
467
|
+
outline: none;
|
468
|
+
overflow: hidden;
|
469
|
+
font: inherit;
|
470
|
+
padding: 0 1px;
|
471
|
+
margin: 0 -1px;
|
472
|
+
contain: strict;
|
473
|
+
-ms-user-select: text;
|
474
|
+
-moz-user-select: text;
|
475
|
+
-webkit-user-select: text;
|
476
|
+
user-select: text;
|
477
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
478
|
+
white-space: pre!important;
|
479
|
+
}
|
480
|
+
.ace_text-input.ace_composition {
|
481
|
+
background: transparent;
|
482
|
+
color: inherit;
|
483
|
+
z-index: 1000;
|
484
|
+
opacity: 1;
|
485
|
+
}
|
486
|
+
.ace_composition_placeholder { color: transparent }
|
487
|
+
.ace_composition_marker {
|
488
|
+
border-bottom: 1px solid;
|
489
|
+
position: absolute;
|
490
|
+
border-radius: 0;
|
491
|
+
margin-top: 1px;
|
492
|
+
}
|
493
|
+
|
494
|
+
[ace_nocontext=true] {
|
495
|
+
transform: none!important;
|
496
|
+
filter: none!important;
|
497
|
+
clip-path: none!important;
|
498
|
+
mask : none!important;
|
499
|
+
contain: none!important;
|
500
|
+
perspective: none!important;
|
501
|
+
mix-blend-mode: initial!important;
|
502
|
+
z-index: auto;
|
503
|
+
}
|
504
|
+
|
505
|
+
.ace_layer {
|
506
|
+
z-index: 1;
|
507
|
+
position: absolute;
|
508
|
+
overflow: hidden;
|
509
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
510
|
+
word-wrap: normal;
|
511
|
+
white-space: pre;
|
512
|
+
height: 100%;
|
513
|
+
width: 100%;
|
514
|
+
box-sizing: border-box;
|
515
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
516
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
517
|
+
pointer-events: none;
|
518
|
+
}
|
519
|
+
|
520
|
+
.ace_gutter-layer {
|
521
|
+
position: relative;
|
522
|
+
width: auto;
|
523
|
+
text-align: right;
|
524
|
+
pointer-events: auto;
|
525
|
+
height: 1000000px;
|
526
|
+
contain: style size layout;
|
527
|
+
}
|
528
|
+
|
529
|
+
.ace_text-layer {
|
530
|
+
font: inherit !important;
|
531
|
+
position: absolute;
|
532
|
+
height: 1000000px;
|
533
|
+
width: 1000000px;
|
534
|
+
contain: style size layout;
|
535
|
+
}
|
536
|
+
|
537
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
538
|
+
contain: style size layout;
|
539
|
+
position: absolute;
|
540
|
+
top: 0;
|
541
|
+
left: 0;
|
542
|
+
right: 0;
|
543
|
+
}
|
544
|
+
|
545
|
+
.ace_hidpi .ace_text-layer,
|
546
|
+
.ace_hidpi .ace_gutter-layer,
|
547
|
+
.ace_hidpi .ace_content,
|
548
|
+
.ace_hidpi .ace_gutter {
|
549
|
+
contain: strict;
|
550
|
+
}
|
551
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
552
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
553
|
+
contain: strict;
|
554
|
+
}
|
555
|
+
|
556
|
+
.ace_cjk {
|
557
|
+
display: inline-block;
|
558
|
+
text-align: center;
|
559
|
+
}
|
560
|
+
|
561
|
+
.ace_cursor-layer {
|
562
|
+
z-index: 4;
|
563
|
+
}
|
564
|
+
|
565
|
+
.ace_cursor {
|
566
|
+
z-index: 4;
|
567
|
+
position: absolute;
|
568
|
+
box-sizing: border-box;
|
569
|
+
border-left: 2px solid;
|
570
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
571
|
+
transform: translatez(0);
|
572
|
+
}
|
573
|
+
|
574
|
+
.ace_multiselect .ace_cursor {
|
575
|
+
border-left-width: 1px;
|
576
|
+
}
|
577
|
+
|
578
|
+
.ace_slim-cursors .ace_cursor {
|
579
|
+
border-left-width: 1px;
|
580
|
+
}
|
581
|
+
|
582
|
+
.ace_overwrite-cursors .ace_cursor {
|
583
|
+
border-left-width: 0;
|
584
|
+
border-bottom: 1px solid;
|
585
|
+
}
|
586
|
+
|
587
|
+
.ace_hidden-cursors .ace_cursor {
|
588
|
+
opacity: 0.2;
|
589
|
+
}
|
590
|
+
|
591
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
592
|
+
opacity: 0;
|
593
|
+
}
|
594
|
+
|
595
|
+
.ace_smooth-blinking .ace_cursor {
|
596
|
+
transition: opacity 0.18s;
|
597
|
+
}
|
598
|
+
|
599
|
+
.ace_animate-blinking .ace_cursor {
|
600
|
+
animation-duration: 1000ms;
|
601
|
+
animation-timing-function: step-end;
|
602
|
+
animation-name: blink-ace-animate;
|
603
|
+
animation-iteration-count: infinite;
|
604
|
+
}
|
605
|
+
|
606
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
607
|
+
animation-duration: 1000ms;
|
608
|
+
animation-timing-function: ease-in-out;
|
609
|
+
animation-name: blink-ace-animate-smooth;
|
610
|
+
}
|
611
|
+
|
612
|
+
@keyframes blink-ace-animate {
|
613
|
+
from, to { opacity: 1; }
|
614
|
+
60% { opacity: 0; }
|
615
|
+
}
|
616
|
+
|
617
|
+
@keyframes blink-ace-animate-smooth {
|
618
|
+
from, to { opacity: 1; }
|
619
|
+
45% { opacity: 1; }
|
620
|
+
60% { opacity: 0; }
|
621
|
+
85% { opacity: 0; }
|
622
|
+
}
|
623
|
+
|
624
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
625
|
+
position: absolute;
|
626
|
+
z-index: 3;
|
627
|
+
}
|
628
|
+
|
629
|
+
.ace_marker-layer .ace_selection {
|
630
|
+
position: absolute;
|
631
|
+
z-index: 5;
|
632
|
+
}
|
633
|
+
|
634
|
+
.ace_marker-layer .ace_bracket {
|
635
|
+
position: absolute;
|
636
|
+
z-index: 6;
|
637
|
+
}
|
638
|
+
|
639
|
+
.ace_marker-layer .ace_error_bracket {
|
640
|
+
position: absolute;
|
641
|
+
border-bottom: 1px solid #DE5555;
|
642
|
+
border-radius: 0;
|
643
|
+
}
|
644
|
+
|
645
|
+
.ace_marker-layer .ace_active-line {
|
646
|
+
position: absolute;
|
647
|
+
z-index: 2;
|
648
|
+
}
|
649
|
+
|
650
|
+
.ace_marker-layer .ace_selected-word {
|
651
|
+
position: absolute;
|
652
|
+
z-index: 4;
|
653
|
+
box-sizing: border-box;
|
654
|
+
}
|
655
|
+
|
656
|
+
.ace_line .ace_fold {
|
657
|
+
box-sizing: border-box;
|
658
|
+
|
659
|
+
display: inline-block;
|
660
|
+
height: 11px;
|
661
|
+
margin-top: -2px;
|
662
|
+
vertical-align: middle;
|
663
|
+
|
664
|
+
background-image:
|
665
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
666
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
667
|
+
background-repeat: no-repeat, repeat-x;
|
668
|
+
background-position: center center, top left;
|
669
|
+
color: transparent;
|
670
|
+
|
671
|
+
border: 1px solid black;
|
672
|
+
border-radius: 2px;
|
673
|
+
|
674
|
+
cursor: pointer;
|
675
|
+
pointer-events: auto;
|
676
|
+
}
|
677
|
+
|
678
|
+
.ace_dark .ace_fold {
|
679
|
+
}
|
680
|
+
|
681
|
+
.ace_fold:hover{
|
682
|
+
background-image:
|
683
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
684
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
685
|
+
}
|
686
|
+
|
687
|
+
.ace_tooltip {
|
688
|
+
background-color: #f5f5f5;
|
689
|
+
border: 1px solid gray;
|
690
|
+
border-radius: 1px;
|
691
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
692
|
+
color: black;
|
693
|
+
max-width: 100%;
|
694
|
+
padding: 3px 4px;
|
695
|
+
position: fixed;
|
696
|
+
z-index: 999999;
|
697
|
+
box-sizing: border-box;
|
698
|
+
cursor: default;
|
699
|
+
white-space: pre-wrap;
|
700
|
+
word-wrap: break-word;
|
701
|
+
line-height: normal;
|
702
|
+
font-style: normal;
|
703
|
+
font-weight: normal;
|
704
|
+
letter-spacing: normal;
|
705
|
+
pointer-events: none;
|
706
|
+
overflow: auto;
|
707
|
+
max-width: min(60em, 66vw);
|
708
|
+
overscroll-behavior: contain;
|
709
|
+
}
|
710
|
+
.ace_tooltip pre {
|
711
|
+
white-space: pre-wrap;
|
712
|
+
}
|
713
|
+
|
714
|
+
.ace_tooltip.ace_dark {
|
715
|
+
background-color: #636363;
|
716
|
+
color: #fff;
|
717
|
+
}
|
718
|
+
|
719
|
+
.ace_tooltip:focus {
|
720
|
+
outline: 1px solid #5E9ED6;
|
721
|
+
}
|
722
|
+
|
723
|
+
.ace_icon {
|
724
|
+
display: inline-block;
|
725
|
+
width: 18px;
|
726
|
+
vertical-align: top;
|
727
|
+
}
|
728
|
+
|
729
|
+
.ace_icon_svg {
|
730
|
+
display: inline-block;
|
731
|
+
width: 12px;
|
732
|
+
vertical-align: top;
|
733
|
+
-webkit-mask-repeat: no-repeat;
|
734
|
+
-webkit-mask-size: 12px;
|
735
|
+
-webkit-mask-position: center;
|
736
|
+
}
|
737
|
+
|
738
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
739
|
+
padding-right: 13px;
|
740
|
+
}
|
741
|
+
|
742
|
+
.ace_fold-widget {
|
743
|
+
box-sizing: border-box;
|
744
|
+
|
745
|
+
margin: 0 -12px 0 1px;
|
746
|
+
display: none;
|
747
|
+
width: 11px;
|
748
|
+
vertical-align: top;
|
749
|
+
|
750
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
751
|
+
background-repeat: no-repeat;
|
752
|
+
background-position: center;
|
753
|
+
|
754
|
+
border-radius: 3px;
|
755
|
+
|
756
|
+
border: 1px solid transparent;
|
757
|
+
cursor: pointer;
|
758
|
+
}
|
759
|
+
|
760
|
+
.ace_folding-enabled .ace_fold-widget {
|
761
|
+
display: inline-block;
|
762
|
+
}
|
763
|
+
|
764
|
+
.ace_fold-widget.ace_end {
|
765
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
766
|
+
}
|
767
|
+
|
768
|
+
.ace_fold-widget.ace_closed {
|
769
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
770
|
+
}
|
771
|
+
|
772
|
+
.ace_fold-widget:hover {
|
773
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
775
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
776
|
+
}
|
777
|
+
|
778
|
+
.ace_fold-widget:active {
|
779
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
780
|
+
background-color: rgba(0, 0, 0, 0.05);
|
781
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
782
|
+
}
|
783
|
+
/**
|
784
|
+
* Dark version for fold widgets
|
785
|
+
*/
|
786
|
+
.ace_dark .ace_fold-widget {
|
787
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
788
|
+
}
|
789
|
+
.ace_dark .ace_fold-widget.ace_end {
|
790
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
791
|
+
}
|
792
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
793
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
794
|
+
}
|
795
|
+
.ace_dark .ace_fold-widget:hover {
|
796
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
797
|
+
background-color: rgba(255, 255, 255, 0.1);
|
798
|
+
}
|
799
|
+
.ace_dark .ace_fold-widget:active {
|
800
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
801
|
+
}
|
802
|
+
|
803
|
+
.ace_inline_button {
|
804
|
+
border: 1px solid lightgray;
|
805
|
+
display: inline-block;
|
806
|
+
margin: -1px 8px;
|
807
|
+
padding: 0 5px;
|
808
|
+
pointer-events: auto;
|
809
|
+
cursor: pointer;
|
810
|
+
}
|
811
|
+
.ace_inline_button:hover {
|
812
|
+
border-color: gray;
|
813
|
+
background: rgba(200,200,200,0.2);
|
814
|
+
display: inline-block;
|
815
|
+
pointer-events: auto;
|
816
|
+
}
|
817
|
+
|
818
|
+
.ace_fold-widget.ace_invalid {
|
819
|
+
background-color: #FFB4B4;
|
820
|
+
border-color: #DE5555;
|
821
|
+
}
|
822
|
+
|
823
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
824
|
+
transition: opacity 0.4s ease 0.05s;
|
825
|
+
opacity: 0;
|
826
|
+
}
|
827
|
+
|
828
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
829
|
+
transition: opacity 0.05s ease 0.05s;
|
830
|
+
opacity:1;
|
831
|
+
}
|
832
|
+
|
833
|
+
.ace_underline {
|
834
|
+
text-decoration: underline;
|
835
|
+
}
|
836
|
+
|
837
|
+
.ace_bold {
|
838
|
+
font-weight: bold;
|
839
|
+
}
|
840
|
+
|
841
|
+
.ace_nobold .ace_bold {
|
842
|
+
font-weight: normal;
|
843
|
+
}
|
844
|
+
|
845
|
+
.ace_italic {
|
846
|
+
font-style: italic;
|
847
|
+
}
|
848
|
+
|
849
|
+
|
850
|
+
.ace_error-marker {
|
851
|
+
background-color: rgba(255, 0, 0,0.2);
|
852
|
+
position: absolute;
|
853
|
+
z-index: 9;
|
854
|
+
}
|
855
|
+
|
856
|
+
.ace_highlight-marker {
|
857
|
+
background-color: rgba(255, 255, 0,0.2);
|
858
|
+
position: absolute;
|
859
|
+
z-index: 8;
|
860
|
+
}
|
861
|
+
|
862
|
+
.ace_mobile-menu {
|
863
|
+
position: absolute;
|
864
|
+
line-height: 1.5;
|
865
|
+
border-radius: 4px;
|
866
|
+
-ms-user-select: none;
|
867
|
+
-moz-user-select: none;
|
868
|
+
-webkit-user-select: none;
|
869
|
+
user-select: none;
|
870
|
+
background: white;
|
871
|
+
box-shadow: 1px 3px 2px grey;
|
872
|
+
border: 1px solid #dcdcdc;
|
873
|
+
color: black;
|
874
|
+
}
|
875
|
+
.ace_dark > .ace_mobile-menu {
|
876
|
+
background: #333;
|
877
|
+
color: #ccc;
|
878
|
+
box-shadow: 1px 3px 2px grey;
|
879
|
+
border: 1px solid #444;
|
880
|
+
|
881
|
+
}
|
882
|
+
.ace_mobile-button {
|
883
|
+
padding: 2px;
|
884
|
+
cursor: pointer;
|
885
|
+
overflow: hidden;
|
886
|
+
}
|
887
|
+
.ace_mobile-button:hover {
|
888
|
+
background-color: #eee;
|
889
|
+
opacity:1;
|
890
|
+
}
|
891
|
+
.ace_mobile-button:active {
|
892
|
+
background-color: #ddd;
|
893
|
+
}
|
894
|
+
|
895
|
+
.ace_placeholder {
|
896
|
+
position: relative;
|
897
|
+
font-family: arial;
|
898
|
+
transform: scale(0.9);
|
899
|
+
transform-origin: left;
|
900
|
+
white-space: pre;
|
901
|
+
opacity: 0.7;
|
902
|
+
margin: 0 10px;
|
903
|
+
z-index: 1;
|
904
|
+
}
|
905
|
+
|
906
|
+
.ace_ghost_text {
|
907
|
+
opacity: 0.5;
|
908
|
+
font-style: italic;
|
909
|
+
}
|
910
|
+
|
911
|
+
.ace_ghost_text_container > div {
|
912
|
+
white-space: pre;
|
913
|
+
}
|
914
|
+
|
915
|
+
.ghost_text_line_wrapped::after {
|
916
|
+
content: "↩";
|
917
|
+
position: absolute;
|
918
|
+
}
|
919
|
+
|
920
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
921
|
+
margin: 0px 4px
|
922
|
+
}
|
923
|
+
|
924
|
+
.ace_screenreader-only {
|
925
|
+
position:absolute;
|
926
|
+
left:-10000px;
|
927
|
+
top:auto;
|
928
|
+
width:1px;
|
929
|
+
height:1px;
|
930
|
+
overflow:hidden;
|
931
|
+
}
|
932
|
+
|
933
|
+
.ace_hidden_token {
|
934
|
+
display: none;
|
935
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,r,h){var u=t("../lib/dom"),p=t("../lib/oop"),w=t("../lib/event_emitter").EventEmitter,d=function(){function g(s,c){this.canvas=u.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(s){var c=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var f=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),f){var y={info:1,warning:2,error:3};f.forEach(function(N){N.priority=y[N.type]||null}),f=f.sort(o);for(var v=this.renderer.session.$foldData,x=0;x<f.length;x++){var M=f[x].row,A=this.compensateFoldRows(M,v),k=Math.round((M-A)*this.lineHeight*this.heightRatio),b=Math.round((M-A)*this.lineHeight*this.heightRatio),T=Math.round(((M-A)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-b;if(R<this.minDecorationHeight){var L=(b+T)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),T=Math.round(L+this.halfMinDecorationHeight)}l.fillStyle=c[f[x].type]||null,l.fillRect(0,k,this.canvasWidth,T-b)}}var E=this.renderer.session.selection.getCursor();if(E){var A=this.compensateFoldRows(E.row,v),k=Math.round((E.row-A)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,c){var a=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)s>c[l].start.row&&s<c[l].end.row?a+=s-c[l].start.row:s>=c[l].end.row&&(a+=c[l].end.row-c[l].start.row);return a},g}();p.implement(d.prototype,w),r.Decorator=d}),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(t,r,h){var u=t("./lib/oop"),p=t("./lib/dom"),w=t("./lib/lang"),d=t("./config"),g=t("./layer/gutter").Gutter,s=t("./layer/marker").Marker,c=t("./layer/text").Text,a=t("./layer/cursor").Cursor,l=t("./scrollbar").HScrollBar,o=t("./scrollbar").VScrollBar,f=t("./scrollbar_custom").HScrollBar,y=t("./scrollbar_custom").VScrollBar,v=t("./renderloop").RenderLoop,x=t("./layer/font_metrics").FontMetrics,M=t("./lib/event_emitter").EventEmitter,A=t("./css/editor-css"),k=t("./layer/decorators").Decorator,b=t("./lib/useragent"),T=t("./layer/text_util").isTextToken;p.importCssString(A,"ace_editor.css",!1);var R=function(){function L(E,N){var S=this;this.container=E||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),d.get("useStrictCSP")==null&&d.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 g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new c(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),d.resetOptions(this),d._signal("renderer",this)}return L.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")},L.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(E,N,S){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:E,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(S)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(E){E?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(E,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var I=this.$updateCachedSize(E,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?this.$renderChanges(I|this.$changes,!0):this.$loop.schedule(I|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(E,N,S,_){_-=this.$extraHeight||0;var $=0,I=this.$size,O={width:I.width,height:I.height,scrollerHeight:I.scrollerHeight,scrollerWidth:I.scrollerWidth};if(_&&(E||I.height!=_)&&(I.height=_,$|=this.CHANGE_SIZE,I.scrollerHeight=I.height,this.$horizScroll&&(I.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(I.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(E||I.width!=S)){$|=this.CHANGE_SIZE,I.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,p.setStyle(this.scrollBarH.element.style,"left",N+"px"),p.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),I.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),p.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";p.setStyle(this.scrollBarH.element.style,"right",F),p.setStyle(this.scroller.style,"right",F),p.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(I.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&($|=this.CHANGE_FULL)}return I.$dirty=!S||!_,$&&this._signal("resize",O),$},L.prototype.onGutterResize=function(E){var N=this.$showGutter?E:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var E=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},L.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},L.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=p.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=p.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var E=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){p.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,I=S.left;$-=_.offset;var O=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if($<0||$>_.height-O){p.translate(this.textarea,0,0);return}var F=1,W=this.$size.height-O;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var z=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(z)[0]}else $+=this.lineHeight+2;I-=this.scrollLeft,I>this.$size.scrollerWidth-F&&(I=this.$size.scrollerWidth-F),I+=this.gutterWidth+this.margin.left,p.setStyle(E,"height",O+"px"),p.setStyle(E,"width",F+"px"),p.translate(this.textarea,Math.min(I,this.$size.scrollerWidth-F),Math.min($,W))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var E=this.layerConfig,N=E.lastRow,S=this.session.documentToScreenRow(N,0)*E.lineHeight;return S-this.session.getScrollTop()>E.height-E.lineHeight?N-1:N},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(E,N,S,_){var $=this.scrollMargin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},L.prototype.setMargin=function(E,N,S,_){var $=this.margin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(E){this.setOption("hScrollBarAlwaysVisible",E)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},L.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-N&&(E=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(E,N){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!N){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),p.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",I=S.minHeight+"px";p.setStyle(this.content.style,"width",$),p.setStyle(this.content.style,"height",I)}if(E&this.CHANGE_H_SCROLL&&(p.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),E&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",E)},L.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&E>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var I=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,I,S),this.desiredHeight=S,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var E=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,I=this.$getLongestLine(),O=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-I-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var W=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var z=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,$-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,I+2*this.$padding-N.scrollerWidth+q.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+V<0||this.scrollTop>q.top),G=W!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(z/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,we,pe=this.lineHeight;J=E.screenToDocumentRow(J,0);var Ae=E.getFoldLine(J);Ae&&(J=Ae.start.row),me=E.documentToScreenRow(J,0),we=E.getRowLength(J)*pe,ae=Math.min(E.screenToDocumentRow(ae,0),E.getLength()-1),z=N.scrollerHeight+E.getRowLength(ae)*pe+we,Z=this.scrollTop-me*pe;var lt=0;return(this.layerConfig.width!=I||F)&&(lt=this.CHANGE_H_SCROLL),(F||G)&&(lt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(I=this.$getLongestLine())),this.layerConfig={width:I,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:z,maxHeight:$,offset:Z,gutterOffset:pe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/pe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(I-this.$padding),lt},L.prototype.$updateLines=function(){if(this.$changedLines){var E=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(E>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,E,N),!0}}},L.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(E,N){this.$gutterLayer.addGutterDecoration(E,N)},L.prototype.removeGutterDecoration=function(E,N){this.$gutterLayer.removeGutterDecoration(E,N)},L.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(E,N,S){this.scrollCursorIntoView(E,S),this.scrollCursorIntoView(N,S)},L.prototype.scrollCursorIntoView=function(E,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(E),$=_.left,I=_.top,O=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var W=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;W+O>I?(N&&W+O>I+this.lineHeight&&(I-=N*this.$size.scrollerHeight),I===0&&(I=-this.scrollMargin.top),this.session.setScrollTop(I)):W+this.$size.scrollerHeight-F<I+this.lineHeight&&(N&&W+this.$size.scrollerHeight-F<I-this.lineHeight&&(I+=N*this.$size.scrollerHeight),this.session.setScrollTop(I+this.lineHeight+F-this.$size.scrollerHeight));var z=this.scrollLeft,V=2*this.layerConfig.characterWidth;$-V<z?($-=V,$<this.$padding+V&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=V,z+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):z<=this.$padding&&$-z<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(E){this.session.setScrollTop(E*this.lineHeight)},L.prototype.alignCursor=function(E,N){typeof E=="number"&&(E={row:E,column:0});var S=this.$cursorLayer.getPixelPosition(E),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},L.prototype.$calcSteps=function(E,N){var S=0,_=this.STEPS,$=[],I=function(O,F,W){return W*(Math.pow(O-1,3)+1)+F};for(S=0;S<_;++S)$.push(I(S/this.STEPS,E,N-E));return $},L.prototype.scrollToLine=function(E,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:E,column:0}),I=$.top;N&&(I-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(I),S!==!1&&this.animateScrolling(O,_)},L.prototype.animateScrolling=function(E,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(E==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(E=$[0],E==S))return}var I=_.$calcSteps(E,S);this.$scrollAnimation={from:E,to:S,steps:I},clearInterval(this.$timer),_.session.setScrollTop(I.shift()),_.session.$scrollTop=S;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);I.length?(_.session.setScrollTop(I.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):O()},10)},L.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},L.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(E,N){this.session.setScrollTop(N),this.session.setScrollLeft(E)},L.prototype.scrollBy=function(E,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},L.prototype.isScrollableBy=function(E,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(E,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,I=$/this.characterWidth,O=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(I):Math.round(I);return{row:O,column:F,side:I-F>0?1:-1,offsetX:$}},L.prototype.screenToTextCoordinates=function(E,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,I=$/this.characterWidth,O=this.$blockCursor?Math.floor(I):Math.round(I),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),$)},L.prototype.textToScreenCoordinates=function(E,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(E,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,E)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),I=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+I-this.scrollTop}},L.prototype.visualizeFocus=function(){p.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){p.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(p.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(E){var N=this.session.selection.cursor;this.addToken(E,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},L.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 E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(E,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(E,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:E,position:{row:_.row,column:_.column}};var I=p.createElement("div");if($.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=p.createElement("div"),re=p.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(p.createTextNode(G.text)),Z.appendChild(re),I.appendChild(Z),F=Z}),O.forEach(function(G){var Z=p.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(p.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:I,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var W=this.$cursorLayer.getPixelPosition(_,!0),z=this.container,V=z.getBoundingClientRect().height,q=$.length*this.lineHeight,X=q<V-W.top;if(X)return;q<V?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},L.prototype.$calculateWrappedTextChunks=function(E,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=E.split(/\r?\n/),I=[],O=0;O<$.length;O++){var F=this.session.$getDisplayTokens($[O],N.column),W=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(W.length>0){var z=0;W.push($[O].length);for(var V=0;V<W.length;V++){var q=$[O].slice(z,W[V]);I.push({text:q,wrapped:!0}),z=W[V]}}else I.push({text:$[O],wrapped:!1})}return I},L.prototype.removeGhostText=function(){if(this.$ghostText){var E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(E,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var I={type:N,value:E},O=$.getTokens(S);if(_==null||!O.length)O.push(I);else for(var F=0,W=0;W<O.length;W++){var z=O[W];if(F+=z.value.length,_<=F){var V=z.value.length-(F-_),q=z.value.slice(0,V),X=z.value.slice(V);O.splice(W,1,{type:z.type,value:q},I,{type:z.type,value:X});break}}this.updateLines(S,S)},L.prototype.hideTokensAfterPosition=function(E,N){for(var S=this.session.getTokens(E),_=0,$=!1,I=[],O=0;O<S.length;O++){var F=S[O];if(_+=F.value.length,F.type!=="ghost_text"){if($){I.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(E,E),I},L.prototype.removeExtraToken=function(E,N){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},L.prototype.setTheme=function(E,N){var S=this;if(this.$themeId=E,S._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var _=E||this.$options.theme.initialValue;d.loadModule(["theme",_],$)}else $(E);function $(I){if(S.$themeId!=E)return N&&N();if(!I||!I.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");I.$id&&(S.$themeId=I.$id),p.importCssString(I.cssText,I.cssClass,S.container),S.theme&&p.removeCssClass(S.container,S.theme.cssClass);var O="padding"in I?I.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&O!=S.$padding&&S.setPadding(O),S.$theme=I.cssClass,S.theme=I,p.addCssClass(S.container,I.cssClass),p.setCssClass(S.container,"ace_dark",I.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:I}),N&&N(),b.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(E,N){p.setCssClass(this.container,E,N!==!1)},L.prototype.unsetStyle=function(E){p.removeCssClass(this.container,E)},L.prototype.setCursorStyle=function(E){p.setStyle(this.scroller.style,"cursor",E)},L.prototype.setMouseCursor=function(E){p.setStyle(this.scroller.style,"cursor",E)},L.prototype.attachToShadowRoot=function(){p.importCssString(A,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(E){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!0?(this.scrollBarV=new y(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=w.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(E.$size.width-S)>1||Math.abs(E.$size.height-_)>1?E.$resizeTimer.delay():E.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,u.implement(R.prototype,M),d.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&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(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){p.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,r,h){var u=t("../lib/oop"),p=t("../lib/net"),w=t("../lib/event_emitter").EventEmitter,d=t("../config");function g(l){var o="importScripts('"+p.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,y=new f;return y.append(o),y.getBlob("application/javascript")}}function s(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(d.get("loadWorkerFromBlob")){var o=g(l),f=window.URL||window.webkitURL,y=f.createObjectURL(o);return new Worker(y)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){u.implement(this,w),this.$createWorkerFromOldConfig=function(l,o,f,y,v){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),d.get("packaged")||!t.toUrl)y=y||d.moduleUrl(o,"worker");else{var x=this.$normalizePath;y=y||x(t.toUrl("ace/worker/worker.js",null,"_"));var M={};l.forEach(function(A){M[A]=x(t.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(y),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:M,module:o,classname:f}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var f=this.callbacks[o.id];f&&(f(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return p.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,f){if(f){var y=this.callbackId++;this.callbacks[y]=f,o.push(y)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var a=function(l,o,f){var y=null,v=!1,x=Object.create(w),M=[],A=new c({messageBuffer:M,terminate:function(){},postMessage:function(b){M.push(b),y&&(v?setTimeout(k):k())}});A.setEmitSync=function(b){v=b};var k=function(){var b=M.shift();b.command?y[b.command].apply(y,b.args):b.event&&x._signal(b.event,b.data)};return x.postMessage=function(b){A.onMessage({data:b})},x.callback=function(b,T){this.postMessage({type:"call",id:T,data:b})},x.emit=function(b,T){this.postMessage({type:"event",name:b,data:T})},d.loadModule(["worker",o],function(b){for(y=new b[f](x);M.length;)k()}),A};r.UIWorkerClient=a,r.WorkerClient=c,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,r,h){var u=t("./range").Range,p=t("./lib/event_emitter").EventEmitter,w=t("./lib/oop"),d=function(){function g(s,c,a,l,o,f){var y=this;this.length=c,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){y.onCursorChange()})},this.$pos=a;var v=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var s=this,c=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=a.addMarker(new u(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var f=c.createAnchor(o.row,o.column);f.$insertRight=!0,f.detach(),s.others.push(f)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,c=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new u(a.row,a.column,a.row,a.column+c.length),c.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var c=s;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(s),l&&(this.length+=a),l&&!this.session.$fromUndo){if(s.action==="insert")for(var f=this.others.length-1;f>=0;f--){var y=this.others[f],v={row:y.row,column:y.column+o};this.doc.insertMergedLines(v,s.lines)}else if(s.action==="remove")for(var f=this.others.length-1;f>=0;f--){var y=this.others[f],v={row:y.row,column:y.column+o};this.doc.remove(new u(v.row,v.column,v.row,v.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var c=this.others.length;c--;)this.others[c].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,c=this.session,a=function(o,f){c.removeMarker(o.markerId),o.markerId=c.addMarker(new u(o.row,o.column,o.row,o.column+s.length),f,null,!1)};a(this.pos,this.mainClass);for(var l=this.others.length;l--;)a(this.others[l],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.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},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),c=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<c;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();w.implement(d.prototype,p),r.PlaceHolder=d}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,h){var u=t("../lib/event"),p=t("../lib/useragent");function w(g,s){return g.row==s.row&&g.column==s.column}function d(g){var s=g.domEvent,c=s.altKey,a=s.shiftKey,l=s.ctrlKey,o=g.getAccelKey(),f=g.getButton();if(l&&p.isMac&&(f=s.button),g.editor.inMultiSelectMode&&f==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!l&&!c&&!o){f===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(f===0){var y=g.editor,v=y.selection,x=y.inMultiSelectMode,M=g.getDocumentPosition(),A=v.getCursor(),k=g.inSelection()||v.isEmpty()&&w(M,A),b=g.x,T=g.y,R=function(q){b=q.clientX,T=q.clientY},L=y.session,E=y.renderer.pixelToScreenCoordinates(b,T),N=E,S;if(y.$mouseHandler.$enableJumpToDef)l&&c||o&&c?S=a?"block":"add":c&&y.$blockSelectEnabled&&(S="block");else if(o&&!c){if(S="add",!x&&a)return}else c&&y.$blockSelectEnabled&&(S="block");if(S&&p.isMac&&s.ctrlKey&&y.$mouseHandler.cancelContextMenu(),S=="add"){if(!x&&k)return;if(!x){var _=v.toOrientedRange();y.addSelectionMarker(_)}var $=v.rangeList.rangeAtPoint(M);y.inVirtualSelectionMode=!0,a&&($=null,_=v.ranges[0]||_,y.removeSelectionMarker(_)),y.once("mouseup",function(){var q=v.toOrientedRange();$&&q.isEmpty()&&w($.cursor,q.cursor)?v.substractPoint(q.cursor):(a?v.substractPoint(_.cursor):_&&(y.removeSelectionMarker(_),v.addRange(_)),v.addRange(q)),y.inVirtualSelectionMode=!1})}else if(S=="block"){g.stop(),y.inVirtualSelectionMode=!0;var I,O=[],F=function(){var q=y.renderer.pixelToScreenCoordinates(b,T),X=L.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(X,v.lead)||(N=q,y.selection.moveToPosition(X),y.renderer.scrollCursorIntoView(),y.removeSelectionMarkers(O),O=v.rectangularRangeBlock(N,E),y.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=y.$mouseHandler.$clickSelection.clone()),O.forEach(y.addSelectionMarker,y),y.updateSelectionMarkers())};x&&!o?v.toSingleRange():!x&&o&&(I=v.toOrientedRange(),y.addSelectionMarker(I)),a?E=L.documentToScreenPosition(v.lead):v.moveToPosition(M),N={row:-1,column:-1};var W=function(q){F(),clearInterval(V),y.removeSelectionMarkers(O),O.length||(O=[v.toOrientedRange()]),I&&(y.removeSelectionMarker(I),v.toSingleRange(I));for(var X=0;X<O.length;X++)v.addRange(O[X]);y.inVirtualSelectionMode=!1,y.$mouseHandler.$clickSelection=null},z=F;u.capture(y.container,R,W);var V=setInterval(function(){z()},20);return g.preventDefault()}}}r.onMouseDown=d}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,r,h){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 u=t("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new u(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(t,r,h){var u=t("./range_list").RangeList,p=t("./range").Range,w=t("./selection").Selection,d=t("./mouse/multi_select_handler").onMouseDown,g=t("./lib/event"),s=t("./lib/lang"),c=t("./commands/multi_select_commands");r.commands=c.defaultCommands.concat(c.multiSelectCommands);var a=t("./search").Search,l=new a;function o(A,k,b){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=b==-1,l.find(A)}var f=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(A,k){if(A){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(A),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(A);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}A.cursor||(A.cursor=A.end);var T=this.rangeList.add(A);return this.$onAddRange(A),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(A)}},this.toSingleRange=function(A){A=A||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),A&&this.fromOrientedRange(A)},this.substractPoint=function(A){var k=this.rangeList.substractPoint(A);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var A=this.rangeList.merge();A.length&&this.$onRemoveRange(A)},this.$onAddRange=function(A){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(A),this._signal("addRange",{range:A})},this.$onRemoveRange=function(A){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();A.push(k),this.rangeCount=0}for(var b=A.length;b--;){var T=this.ranges.indexOf(A[b]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:A}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new u,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var A=this.ranges.length?this.ranges:[this.getRange()],k=[],b=0;b<A.length;b++){var T=A[b],R=T.start.row,L=T.end.row;if(R===L)k.push(T.clone());else{for(k.push(new p(R,T.start.column,R,this.session.getLine(R).length));++R<L;)k.push(this.getLineRange(R,!0));k.push(new p(L,0,L,T.end.column))}b==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var b=k.length;b--;)this.addRange(k[b])},this.joinSelections=function(){var A=this.rangeList.ranges,k=A[A.length-1],b=p.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var A=this.rangeList.ranges,k=A[A.length-1],b=p.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(T,R);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,b){var T=[],R=A.column<k.column;if(R)var L=A.column,E=k.column,N=A.offsetX,S=k.offsetX;else var L=k.column,E=A.column,N=k.offsetX,S=A.offsetX;var _=A.row<k.row;if(_)var $=A.row,I=k.row;else var $=k.row,I=A.row;L<0&&(L=0),$<0&&($=0),$==I&&(b=!0);for(var O,F=$;F<=I;F++){var W=p.fromPoints(this.session.screenToDocumentPosition(F,L,N),this.session.screenToDocumentPosition(F,E,S));if(W.isEmpty()){if(O&&v(W.end,O))break;O=W.end}W.cursor=R?W.start:W.end,T.push(W)}if(_&&T.reverse(),!b){for(var z=T.length-1;T[z].isEmpty()&&z>0;)z--;if(z>0)for(var V=0;T[V].isEmpty();)V++;for(var q=z;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(w.prototype);var y=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(A){A.cursor||(A.cursor=A.end);var k=this.getSelectionStyle();return A.marker=this.session.addMarker(A,"ace_selection",k),this.session.$selectionMarkers.push(A),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,A},this.removeSelectionMarker=function(A){if(A.marker){this.session.removeMarker(A.marker);var k=this.session.$selectionMarkers.indexOf(A);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(A){for(var k=this.session.$selectionMarkers,b=A.length;b--;){var T=A[b];if(T.marker){this.session.removeMarker(T.marker);var R=k.indexOf(T);R!=-1&&k.splice(R,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(A){this.addSelectionMarker(A.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(A){this.removeSelectionMarkers(A.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(A){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(A){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(A){var k=A.command,b=A.editor;if(b.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=b.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?T=b.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(b.exitMultiSelectMode(),T=k.exec(b,A.args||{})):T=k.multiSelectAction(b,A.args||{});else{var T=k.exec(b,A.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(A,k,b){if(!this.inVirtualSelectionMode){var T=b&&b.keepOrder,R=b==!0||b&&b.$byLines,L=this.session,E=this.selection,N=E.rangeList,S=(T?E:N).ranges,_;if(!S.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var $=E._eventRegistry;E._eventRegistry={};var I=new w(L);this.inVirtualSelectionMode=!0;for(var O=S.length;O--;){if(R)for(;O>0&&S[O].start.row==S[O-1].end.row;)O--;I.fromOrientedRange(S[O]),I.index=O,this.selection=L.selection=I;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),I.toOrientedRange(S[O])}I.detach(),this.selection=L.selection=E,this.inVirtualSelectionMode=!1,E._eventRegistry=$,E.mergeOverlappingRanges(),E.ranges[0]&&E.fromOrientedRange(E.ranges[0]);var W=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),W&&W.from==W.to&&this.renderer.animateScrolling(W.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var A="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,b=[],T=0;T<k.length;T++)b.push(this.session.getTextRange(k[T]));var R=this.session.getDocument().getNewLineCharacter();A=b.join(R),A.length==(b.length-1)*R.length&&(A="")}else this.selection.isEmpty()||(A=this.session.getTextRange(this.getSelectionRange()));return A},this.$checkMultiselectChange=function(A,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(A,k,b){if(k=k||{},k.needle=A||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var R=this.$search.findAll(this.session);if(!R.length)return 0;var L=this.multiSelect;b||L.toSingleRange(R[0]);for(var E=R.length;E--;)L.addRange(R[E],!0);return T&&L.rangeList.rangeAtPoint(T.start)&&L.addRange(T,!0),R.length},this.selectMoreLines=function(A,k){var b=this.selection.toOrientedRange(),T=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(R.row+A,R.column);if(b.isEmpty())var N=L;else var E=this.session.documentToScreenPosition(T?b.end:b.start),N=this.session.screenToDocumentPosition(E.row+A,E.column);if(T){var S=p.fromPoints(L,N);S.cursor=S.start}else{var S=p.fromPoints(N,L);S.cursor=S.end}if(S.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(k)var _=b.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(A){for(var k=this.session,b=k.multiSelect,T=b.ranges,R=T.length;R--;){var L=T[R];if(L.isEmpty()){var E=k.getWordRange(L.start.row,L.start.column);L.start.row=E.start.row,L.start.column=E.start.column,L.end.row=E.end.row,L.end.column=E.end.column}}b.mergeOverlappingRanges();for(var N=[],R=T.length;R--;){var L=T[R];N.unshift(k.getTextRange(L))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var R=T.length;R--;){var L=T[R],S=L.clone();k.replace(L,N[R]),L.start.row=S.start.row,L.start.column=S.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(A,k,b){var T=this.session,R=T.multiSelect,L=R.toOrientedRange();if(!(L.isEmpty()&&(L=T.getWordRange(L.start.row,L.start.column),L.cursor=A==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var E=T.getTextRange(L),N=o(T,E,A);N&&(N.cursor=A==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var A=this.session,k=A.multiSelect,b=k.ranges,T=-1,R=b.filter(function(z){if(z.cursor.row==T)return!0;T=z.cursor.row});if(!b.length||R.length==b.length-1){var L=this.selection.getRange(),E=L.start.row,N=L.end.row,S=E==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(E);while(/[=:]/.test($)&&--E>0);E<0&&(E=0),N>=_&&(N=_-1)}var I=this.session.removeFullLines(E,N);I=this.$reAlignText(I,S),this.session.insert({row:E,column:0},I.join(`
|
936
|
+
`)+`
|
937
|
+
`),S||(L.start.column=0,L.end.column=I[I.length-1].length),this.selection.setRange(L)}else{R.forEach(function(z){k.substractPoint(z.cursor)});var O=0,F=1/0,W=b.map(function(z){var V=z.cursor,q=A.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});b.forEach(function(z,V){var q=z.cursor,X=O-q.column,G=W[V]-F;X>G?A.insert(q,s.stringRepeat(" ",X-G)):A.remove(new p(q.row,q.column,q.row,q.column-X+G)),z.start.column=z.end.column=O,z.start.row=z.end.row=q.row,z.cursor=z.end}),k.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var b=!0,T=!0,R,L,E;return A.map(function(I){var O=I.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?R==null?(R=O[1].length,L=O[2].length,E=O[3].length,O):(R+L+E!=O[1].length+O[2].length+O[3].length&&(T=!1),R!=O[1].length&&(b=!1),R>O[1].length&&(R=O[1].length),L<O[2].length&&(L=O[2].length),E>O[3].length&&(E=O[3].length),O):[I]}).map(k?S:b?T?_:S:$);function N(I){return s.stringRepeat(" ",I)}function S(I){return I[2]?N(R)+I[2]+N(L-I[2].length+E)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}function _(I){return I[2]?N(R+L-I[2].length)+I[2]+N(E)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}function $(I){return I[2]?N(R)+I[2]+N(E)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}}}).call(y.prototype);function v(A,k){return A.row==k.row&&A.column==k.column}r.onSessionChange=function(A){var k=A.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var b=A.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(A){A.$multiselectOnSessionChange||(A.$onAddRange=A.$onAddRange.bind(A),A.$onRemoveRange=A.$onRemoveRange.bind(A),A.$onMultiSelect=A.$onMultiSelect.bind(A),A.$onSingleSelect=A.$onSingleSelect.bind(A),A.$multiselectOnSessionChange=r.onSessionChange.bind(A),A.$checkMultiselectChange=A.$checkMultiselectChange.bind(A),A.$multiselectOnSessionChange(A),A.on("changeSession",A.$multiselectOnSessionChange),A.on("mousedown",d),A.commands.addCommands(c.defaultCommands),M(A))}function M(A){if(!A.textInput)return;var k=A.textInput.getElement(),b=!1;g.addListener(k,"keydown",function(R){var L=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);A.$blockSelectEnabled&&L?b||(A.renderer.setMouseCursor("crosshair"),b=!0):b&&T()},A),g.addListener(k,"keyup",T,A),g.addListener(k,"blur",T,A);function T(R){b&&(A.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=x,t("./config").defineOptions(y.prototype,"editor",{enableMultiselect:{set:function(A){x(this),A?this.on("mousedown",d):this.off("mousedown",d)},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,r,h){var u=t("../../range").Range,p=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,d,g){var s=w.getLine(g);return this.foldingStartMarker.test(s)?"start":d=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,d,g){return null},this.indentationBlock=function(w,d,g){var s=/\S/,c=w.getLine(d),a=c.search(s);if(a!=-1){for(var l=g||c.length,o=w.getLength(),f=d,y=d;++d<o;){var v=w.getLine(d).search(s);if(v!=-1){if(v<=a){var x=w.getTokenAt(d,0);if(!x||x.type!=="string")break}y=d}}if(y>f){var M=w.getLine(y).length;return new u(f,l,y,M)}}},this.openingBracketBlock=function(w,d,g,s,c){var a={row:g,column:s+1},l=w.$findClosingBracket(d,a,c);if(l){var o=w.foldWidgets[l.row];return o==null&&(o=w.getFoldWidget(l.row)),o=="start"&&l.row>a.row&&(l.row--,l.column=w.getLine(l.row).length),u.fromPoints(a,l)}},this.closingBracketBlock=function(w,d,g,s,c){var a={row:g,column:s},l=w.$findOpeningBracket(d,a);if(l)return l.column++,a.column--,u.fromPoints(l,a)}}).call(p.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,r,h){var u=t("../lib/dom"),p=t("../range").Range,w=t("../config").nls;function d(s,c,a){for(var l=0,o=s.length-1;l<=o;){var f=l+o>>1,y=a(c,s[f]);if(y>0)l=f+1;else if(y<0)o=f-1;else return f}return-(l+1)}function g(s,c,a){var l=s.getAnnotations().sort(p.comparePoints);if(l.length){var o=d(l,{row:c,column:-1},p.comparePoints);o<0&&(o=-o-1),o>=l.length?o=a>0?0:l.length-1:o===0&&a<0&&(o=l.length-1);var f=l[o];if(!(!f||!a)){if(f.row===c){do f=l[o+=a];while(f&&f.row===c);if(!f)return l.slice()}var y=[];c=f.row;do y[a<0?"unshift":"push"](f),f=l[o+=a];while(f&&f.row==c);return y.length&&y}}}r.showErrorMarker=function(s,c){var a=s.session,l=s.getCursorPosition(),o=l.row,f=a.widgetManager.getWidgetsAtRow(o).filter(function(R){return R.type=="errorMarker"})[0];f?f.destroy():o-=c;var y=g(a,o,c),v;if(y){var x=y[0];l.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,l.row=x.row,v=s.renderer.$gutterLayer.$annotations[l.row]}else{if(f)return;v={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(l.row),s.selection.moveToPosition(l);var M={row:l.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},A=M.el.appendChild(u.createElement("div")),k=M.el.appendChild(u.createElement("div"));k.className="error_widget_arrow "+v.className;var b=s.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=b+s.renderer.gutterWidth-5+"px",M.el.className="error_widget_wrapper",A.className="error_widget "+v.className,v.displayText.forEach(function(R,L){A.appendChild(u.createTextNode(R)),L<v.displayText.length-1&&A.appendChild(u.createElement("br"))}),A.appendChild(u.createElement("div"));var T=function(R,L,E){if(L===0&&(E==="esc"||E==="return"))return M.destroy(),{command:"null"}};M.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(M),s.off("changeSelection",M.destroy),s.off("changeSession",M.destroy),s.off("mouseup",M.destroy),s.off("change",M.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",M.destroy),s.on("changeSession",M.destroy),s.on("mouseup",M.destroy),s.on("change",M.destroy),s.session.widgetManager.addLineWidget(M),M.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:M.el.offsetHeight})},u.importCssString(`
|
938
|
+
.error_widget_wrapper {
|
939
|
+
background: inherit;
|
940
|
+
color: inherit;
|
941
|
+
border:none
|
942
|
+
}
|
943
|
+
.error_widget {
|
944
|
+
border-top: solid 2px;
|
945
|
+
border-bottom: solid 2px;
|
946
|
+
margin: 5px 0;
|
947
|
+
padding: 10px 40px;
|
948
|
+
white-space: pre-wrap;
|
949
|
+
}
|
950
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
951
|
+
border-color: #ff5a5a
|
952
|
+
}
|
953
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
954
|
+
border-color: #F1D817
|
955
|
+
}
|
956
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
957
|
+
border-color: #5a5a5a
|
958
|
+
}
|
959
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
960
|
+
border-color: #5aaa5a
|
961
|
+
}
|
962
|
+
.error_widget_arrow {
|
963
|
+
position: absolute;
|
964
|
+
border: solid 5px;
|
965
|
+
border-top-color: transparent!important;
|
966
|
+
border-right-color: transparent!important;
|
967
|
+
border-left-color: transparent!important;
|
968
|
+
top: -5px;
|
969
|
+
}
|
970
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(t,r,h){t("./loader_build")(r);var u=t("./lib/dom"),p=t("./range").Range,w=t("./editor").Editor,d=t("./edit_session").EditSession,g=t("./undomanager").UndoManager,s=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),r.config=t("./config"),r.edit=function(a,l){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof w)return a.env.editor;var f="";if(a&&/input|textarea/i.test(a.tagName)){var y=a;f=y.value,a=u.createElement("pre"),y.parentNode.replaceChild(a,y)}else a&&(f=a.textContent,a.innerHTML="");var v=r.createEditSession(f),x=new w(new s(a),v,l),M={document:v,editor:x,onResize:x.resize.bind(x,null)};return y&&(M.textarea=y),x.on("destroy",function(){M.editor.container.env=null}),x.container.env=x.env=M,x},r.createEditSession=function(a,l){var o=new d(a,l);return o.setUndoManager(new g),o},r.Range=p,r.Editor=w,r.EditSession=d,r.UndoManager=g,r.VirtualRenderer=s;var c=r.config.version;r.version=c}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=t);for(var h in t)t.hasOwnProperty(h)&&(r.ace[h]=t[h]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(Df)),Df.exports}var oo=On("d",Nb()),Ff={exports:{}},Pf;function Fb(){return Pf||(Pf=1,function(n,e){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./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 d=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},c=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},f=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},y=function(){var v="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",M="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":M,"variable.language":A,"support.function":v,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(R,L,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,L),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(R,L,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,L),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(R,L,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,L),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(R,L,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,L),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(R,L,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,L),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},f,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,l,w,d,o,g,s,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(R,L,E){var N=R[2]=="-"||R[2]=="~"?"indentedHeredoc":"heredoc",S=R.split(this.splitRegex);return E.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(R,L,E){return R===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(R,L,E){return R===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(R,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:R}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(R,L,E){return this.next="",R=="}"&&E.length>1&&E[1]!="start"&&(E.shift(),this.next=E.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,L,E){return E.length&&R===E[0]?(E.unshift(R,L),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,L,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,L,E){return E.length&&R===E[0]?(E.unshift(R,L),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,L,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,L,E){return E.length&&R===E[0]?(E.unshift(R,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,L,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,L,E){return E.length&&R===E[0]?(E.unshift(R,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,L,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(R,L,E){return E.length&&R===E[0]?(E.unshift(R,L),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(R,L,E){return E.length&&R[0]===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};u.inherits(y,p),r.RubyHighlightRules=y}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,h){var u=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,d){return/^\s+$/.test(w)?/^\s*\}/.test(d):!1},this.autoOutdent=function(w,d){var g=w.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:d,column:c});if(!a||a.row==d)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new u(d,0,d,c-1),l)},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(t,r,h){var u=t("../../lib/oop"),p=t("./fold_mode").FoldMode,w=t("../../range").Range,d=t("../../token_iterator").TokenIterator,g=r.FoldMode=function(){};u.inherits(g,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(s,c,a){var l=s.getLine(a),o=this.foldingStartMarker.test(l),f=this.foldingStopMarker.test(l);if(o&&!f){var y=l.match(this.foldingStartMarker);if(y[1]){if((y[1]=="if"||y[1]=="else"||y[1]=="while"||y[1]=="until"||y[1]=="unless")&&(y[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||y[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(s.getTokenAt(a,y.index+2).type==="keyword")return"start"}else if(!y[3]||s.getTokenAt(a,y.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!f||o&&f)return"";var y=l.match(this.foldingStopMarker);if(y[3]==="end"){if(s.getTokenAt(a,y.index+1).type==="keyword")return"end"}else if(!y[1]||s.getTokenAt(a,y.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,c,a){var l=s.doc.getLine(a),o=this.foldingStartMarker.exec(l);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(l);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,c,a,l){var o=new d(s,c,a),f=o.getCurrentToken();if(!(!f||f.type!="keyword"&&f.type!="comment.multiline")){var y=f.value,v=s.getLine(c);switch(f.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+f.value);if(!x.test(v))return;var M=this.indentKeywords[y];break;case"when":if(/\sthen\s/.test(v))return;case"elsif":case"rescue":case"ensure":var M=1;break;case"else":var x=new RegExp("^\\s*"+f.value+"\\s*$");if(!x.test(v))return;var M=1;break;default:var M=this.indentKeywords[y]}var A=[y];if(M){var k=M===-1?s.getLine(c-1).length:s.getLine(c).length,b=c,T=[];if(T.push(o.getCurrentTokenRange()),o.step=M===-1?o.stepBackward:o.stepForward,f.type=="comment.multiline"){for(;f=o.step();)if(f.type==="comment.multiline"){if(M==1){if(k=6,f.value=="=end")break}else if(f.value=="=begin")break}}else for(;f=o.step();){var R=!1;if(f.type==="keyword"){var L=M*this.indentKeywords[f.value];switch(v=s.getLine(o.getCurrentTokenRow()),f.value){case"do":for(var E=o.$tokenIndex-1;E>=0;E--){var N=o.$rowTokens[E];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){L=0;break}}break;case"else":var x=new RegExp("^\\s*"+f.value+"\\s*$");(!x.test(v)||y=="case")&&(L=0,R=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+f.value);x.test(v)||(L=0,R=!0);break;case"when":(/\sthen\s/.test(v)||y=="case")&&(L=0,R=!0)}if(L>0)A.unshift(f.value);else if(L<=0&&R===!1){if(A.shift(),!A.length&&((y=="while"||y=="until"||y=="for")&&f.value!="do"||f.value=="do"&&M==-1&&L!=0||f.value!="do"))break;L===0&&A.unshift(f.value)}}}if(!f)return null;if(l)return T.push(o.getCurrentTokenRange()),T;var c=o.getCurrentTokenRow();if(M===-1){if(f.type==="comment.multiline")var S=6;else var S=s.getLine(c).length;return new w(c,S,b-1,k)}return new w(b,k,c-1,s.getLine(c-1).length)}}}}).call(g.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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./ruby_highlight_rules").RubyHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../range").Range,s=t("./folding/ruby").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};u.inherits(c,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var f=this.$getIndent(l),y=this.getTokenizer().getLineTokens(l,a),v=y.tokens;if(v.length&&v[v.length-1].type=="comment")return f;if(a=="start"){var x=l.match(/^.*[\{\(\[]\s*$/),M=l.match(/^\s*(class|def|module)\s.*$/),A=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||M||A||k)&&(f+=o)}return f},this.checkOutdent=function(a,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){var f=l.getLine(o);if(/}/.test(f))return this.$outdent.autoOutdent(l,o);var y=this.$getIndent(f),v=l.getLine(o-1),x=this.$getIndent(v),M=l.getTabString();x.length<=y.length&&y.slice(-M.length)==M&&l.remove(new g(o,y.length-M.length,o,y.length))},this.getMatching=function(a,l,o){if(l==null){var f=a.selection.lead;o=f.column,l=f.row}var y=a.getTokenAt(l,o);if(y&&y.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(t){n&&(n.exports=t)})}()}(Ff)),Ff.exports}Fb();var Hf={exports:{}},Wf;function Pb(){return Wf||(Wf=1,function(n,e){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,w=function(){var d="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",g="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:d},"identifier"),a="[uU]?",l="[rR]",o="[fF]",f="(?:[rR][fF]|[fF][rR])",y="(?:(?:[1-9]\\d*)|(?:0))",v="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",M="(?:0[bB][01]+)",A="(?:"+y+"|"+v+"|"+x+"|"+M+")",k="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",R="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",L="(?:(?:"+R+"|"+T+")"+k+")",E="(?:"+L+"|"+R+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:f+'"{3}',next:"rfqqstring3"},{token:"string",regex:f+'"(?=.)',next:"rfqqstring"},{token:"string",regex:f+"'{3}",next:"rfqstring3"},{token:"string",regex:f+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+E+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:E},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};u.inherits(w,p),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,h){var u=t("../../lib/oop"),p=t("./fold_mode").FoldMode,w=r.FoldMode=function(d){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+d+")(?:\\s*)(?:#.*)?$")};u.inherits(w,p),(function(){this.getFoldWidgetRange=function(d,g,s){var c=d.getLine(s),a=c.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(d,a[1],s,a.index):a[2]?this.indentationBlock(d,s,a.index+a[2].length):this.indentationBlock(d,s)}}).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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./python_highlight_rules").PythonHighlightRules,d=t("./folding/pythonic").FoldMode,g=t("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new d("\\:"),this.$behaviour=this.$defaultBehaviour};u.inherits(s,p),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,l,o){var f=this.$getIndent(l),y=this.getTokenizer().getLineTokens(l,a),v=y.tokens;if(v.length&&v[v.length-1].type=="comment")return f;if(a=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(f+=o)}return f};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
|
971
|
+
`&&o!=="\r"&&o!==`
|
972
|
+
`)return!1;var f=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!f)return!1;do var y=f.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&c[y.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var f=this.$getIndent(l.getLine(o)),y=l.getTabString();f.slice(-y.length)==y&&l.remove(new g(o,f.length-y.length,o,f.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/python"],function(t){n&&(n.exports=t)})}()}(Hf)),Hf.exports}Pb();var Bf={exports:{}},jf;function Hb(){return jf||(jf=1,function(n,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./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"}]}};u.inherits(w,p),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,h){var u=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,d){return/^\s+$/.test(w)?/^\s*\}/.test(d):!1},this.autoOutdent=function(w,d){var g=w.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:d,column:c});if(!a||a.row==d)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new u(d,0,d,c-1),l)},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(t,r,h){var u=t("../../lib/oop"),p=t("../../range").Range,w=t("./fold_mode").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};u.inherits(d,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(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var f=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,f);var y=g.getCommentFoldRange(c,f+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(g,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var f=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,f):g.getCommentFoldRange(c,f,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var f=s,y=g.getLength();++s<y;){c=g.getLine(s);var v=c.search(/\S/);if(v!==-1){if(a>v)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=l)break;if(x.isMultiLine())s=x.end.row;else if(a==v)break}f=s}}return new p(l,o,f,g.getLine(f).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,f=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++c<l;){s=g.getLine(c);var v=f.exec(s);if(v&&(v[1]?y--:y++,!y))break}var x=c;if(x>o)return new p(o,a,x,s.length)}}).call(d.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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./json_highlight_rules").JsonHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("./folding/cstyle").FoldMode,s=t("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=w,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};u.inherits(c,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,l,o){var f=this.$getIndent(l);if(a=="start"){var y=l.match(/^.*[\{\(\[]\s*$/);y&&(f+=o)}return f},this.checkOutdent=function(a,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(a){var l=new s(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(a.getDocument()),l.on("annotate",function(o){a.setAnnotations(o.data)}),l.on("terminate",function(){a.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/json"],function(t){n&&(n.exports=t)})}()}(Bf)),Bf.exports}Hb();var zf={exports:{}},Uf;function Wb(){return Uf||(Uf=1,function(n,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop");t("../lib/lang");var p=t("./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",d=r.supportFunction="rgb|rgba|url|attr|counter|counters",g=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",s=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",f=function(){var y=this.createKeywordMapper({"support.function":d,"support.constant":g,"support.type":w,"support.constant.color":s,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:a},{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:"("+a+")(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:a},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:y,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()};u.inherits(f,p),r.CssHighlightRules=f}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./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()};u.inherits(w,p),w.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},w.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},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(t,r,h){function u(){var a=s.replace("\\d","\\d\\-"),l={onMatch:function(f,y,v){var x=f.charAt(1)=="/"?2:1;return x==1?(y!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):x==2&&y==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:f.slice(0,x)},{type:"meta.tag.tag-name.xml",value:f.substr(x)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(f,y,v){return y==v[0]&&v.shift(),f.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:f}]},nextState:"jsx"},o,p("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},l],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function p(a){return[{token:"comment",regex:/\/\*/,next:[d.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[d.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=t("../lib/oop"),d=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=t("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(a){var l={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(l,"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",y="\\\\(?: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]?|.)",v="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[d.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:"("+s+")(\\s*)(=)(\\s*)"+v+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+v+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+v+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:s},{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:v+"(\\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:s},{regex:"",token:"empty",next:"no_regex"}],start:[d.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:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:y},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:y},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(M,A,k){if(this.next=M=="{"?this.nextState:"",M=="{"&&k.length)k.unshift("start",A);else if(M=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return M=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:y},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\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"}),(!a||a.jsx!=0)&&u.call(this)),this.embedRules(d,"doc-",[d.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(c,g),r.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,w=function(d){var g="[_: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:"(<\\?)("+g+")",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:g},{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:"(<\\!)("+g+")",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:"(?:(<)|(</))((?:"+g+":)?"+g+")",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:g},{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(d,g,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,a,l){return l.splice(0),this.token}}],this.embedRules(d,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(p.prototype),u.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(t,r,h){var u=t("../lib/oop"),p=t("../lib/lang"),w=t("./css_highlight_rules").CssHighlightRules,d=t("./javascript_highlight_rules").JavaScriptHighlightRules,g=t("./xml_highlight_rules").XmlHighlightRules,s=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"}),c=function(){g.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(a,l){var o=s[l];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new d({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};u.inherits(c,g),r.HtmlHighlightRules=c}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(t,r,h){var u=t("../config").$modes,p=t("../lib/oop"),w=t("../lib/lang"),d=t("./text_highlight_rules").TextHighlightRules,g=t("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},c=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,f,y,v){var x=o.match(/^(\s*)([`~]+)(.*)/),M=/[\w-]+|$/.exec(x[3])[0];return u[M]||(M=""),y.unshift("githubblock",[],[x[1],x[2],M],f),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,f,y,v){var x=y[1],M=y[2][0],A=y[2][1],k=y[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<M.length+3&&b[2].length>=A.length&&b[2][0]==A[0])return y.splice(0,3),this.next=y.shift(),this.token;if(this.next="",k&&u[k]){var T=u[k].getTokenizer().getLineTokens(o,x.slice(0));return y[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{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:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\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},a,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:l}),this.normalizeRules()};p.inherits(c,d),r.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,r,h){var u=t("../../lib/oop"),p=t("./fold_mode").FoldMode,w=t("../../range").Range,d=r.FoldMode=function(){};u.inherits(d,p),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,c){var a=g.getLine(c);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,c){function a(R){return M=g.getTokens(R)[0],M&&M.type.lastIndexOf(A,0)===0}function l(){var R=M.value[0];return R=="="?6:R=="-"?5:7-M.value.search(/[^#]|$/)}var o=g.getLine(c),f=o.length,y=g.getLength(),v=c,x=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(c)!=="start"){for(;++c<y&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(v,f,c,0)}for(;c-- >0&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(c,o.length,v,0)}var M,A="markup.heading";if(a(c)){for(var k=l();++c<y;)if(a(c)){var b=l();if(b>=k)break}if(x=c-(!M||["=","-"].indexOf(M.value[0])==-1?1:2),x>v)for(;x>v&&/^\s*$/.test(g.getLine(x));)x--;if(x>v){var T=g.getLine(x).length;return new w(v,f,x,T)}}}}}).call(d.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,h){var u=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(w,d){return/^\s+$/.test(w)?/^\s*\}/.test(d):!1},this.autoOutdent=function(w,d){var g=w.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:d,column:c});if(!a||a.row==d)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new u(d,0,d,c-1),l)},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(t,r,h){function u(s,c){return s&&s.type.lastIndexOf(c+".xml")>-1}var p=t("../../lib/oop"),w=t("../behaviour").Behaviour,d=t("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,c,a,l,o){if(o=='"'||o=="'"){var f=o,y=l.doc.getTextRange(a.getSelectionRange());if(y!==""&&y!=="'"&&y!='"'&&a.getWrapBehavioursEnabled())return{text:f+y+f,selection:!1};var v=a.getCursorPosition(),x=l.doc.getLine(v.row),M=x.substring(v.column,v.column+1),A=new d(l,v.row,v.column),k=A.getCurrentToken();if(M==f&&(u(k,"attribute-value")||u(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;u(k,"tag-whitespace")||u(k,"whitespace");)k=A.stepBackward();var b=!M||M.match(/\s/);if(u(k,"attribute-equals")&&(b||M==">")||u(k,"decl-attribute-equals")&&(b||M=="?"))return{text:f+f,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,c,a,l,o){var f=l.doc.getTextRange(o);if(!o.isMultiLine()&&(f=='"'||f=="'")){var y=l.doc.getLine(o.start.row),v=y.substring(o.start.column+1,o.start.column+2);if(v==f)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,c,a,l,o){if(o==">"){var f=a.getSelectionRange().start,y=new d(l,f.row,f.column),v=y.getCurrentToken()||y.stepBackward();if(!v||!(u(v,"tag-name")||u(v,"tag-whitespace")||u(v,"attribute-name")||u(v,"attribute-equals")||u(v,"attribute-value"))||u(v,"reference.attribute-value"))return;if(u(v,"attribute-value")){var x=y.getCurrentTokenColumn()+v.value.length;if(f.column<x)return;if(f.column==x){var M=y.stepForward();if(M&&u(M,"attribute-value"))return;y.stepBackward()}}if(/^\s*>/.test(l.getLine(f.row).slice(f.column)))return;for(;!u(v,"tag-name");)if(v=y.stepBackward(),v.value=="<"){v=y.stepForward();break}var A=y.getCurrentTokenRow(),k=y.getCurrentTokenColumn();if(u(y.stepBackward(),"end-tag-open"))return;var b=v.value;return A==f.row&&(b=b.substring(0,f.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,c,a,l,o){if(o==`
|
973
|
+
`){var f=a.getCursorPosition(),y=l.getLine(f.row),v=new d(l,f.row,f.column),x=v.getCurrentToken();if(u(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=v.stepBackward();if(!x)return;var M=x.value,A=v.getCurrentTokenRow();if(x=v.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[M]||!this.voidElements){var k=l.getTokenAt(f.row,f.column+1),y=l.getLine(A),b=this.$getIndent(y),T=b+l.getTabString();return k&&k.value==="</"?{text:`
|
974
|
+
`+T+`
|
975
|
+
`+b,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
+
`+T}}}}})};p.inherits(g,w),r.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(t,r,h){var u=t("../../lib/oop"),p=t("../../token_iterator").TokenIterator,w=t("../behaviour/cstyle").CstyleBehaviour,d=t("../behaviour/xml").XmlBehaviour,g=function(){var s=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(w),this.add("autoclosing-fragment","insertion",function(c,a,l,o,f){if(f==">"){var y=l.getSelectionRange().start,v=new p(o,y.row,y.column),x=v.getCurrentToken()||v.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};u.inherits(g,w),r.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,h){function u(c,a){return c.type.lastIndexOf(a+".xml")>-1}var p=t("../../lib/oop"),w=t("../../range").Range,d=t("./fold_mode").FoldMode,g=r.FoldMode=function(c,a){d.call(this),this.voidElements=c||{},this.optionalEndTags=p.mixin({},this.voidElements),a&&p.mixin(this.optionalEndTags,a)};p.inherits(g,d);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(c,a,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,a){return/comment/.test(c.getState(a))&&/<!-/.test(c.getLine(a))?"start":""},this._getFirstTagInLine=function(c,a){for(var l=c.getTokens(a),o=new s,f=0;f<l.length;f++){var y=l[f];if(u(y,"tag-open")){if(o.end.column=o.start.column+y.value.length,o.closing=u(y,"end-tag-open"),y=l[++f],!y)return null;if(o.tagName=y.value,y.value===""){if(y=l[++f],!y)return null;o.tagName=y.value}for(o.end.column+=y.value.length,f++;f<l.length;f++)if(y=l[f],o.end.column+=y.value.length,u(y,"tag-close")){o.selfClosing=y.value=="/>";break}return o}if(u(y,"tag-close"))return o.selfClosing=y.value=="/>",o;o.start.column+=y.value.length}return null},this._findEndTagInLine=function(c,a,l,o){for(var f=c.getTokens(a),y=0,v=0;v<f.length;v++){var x=f[v];if(y+=x.value.length,!(y<o-1)&&u(x,"end-tag-open")&&(x=f[v+1],u(x,"tag-name")&&x.value===""&&(x=f[v+2]),x&&x.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,a,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var f=c.getMatchingTags({row:l,column:0});if(f)return new w(f.openTag.end.row,f.openTag.end.column,f.closeTag.start.row,f.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,h){var u=t("../../lib/oop"),p=t("../../range").Range,w=t("./fold_mode").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};u.inherits(d,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(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var f=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,f);var y=g.getCommentFoldRange(c,f+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(g,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var f=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,f):g.getCommentFoldRange(c,f,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var f=s,y=g.getLength();++s<y;){c=g.getLine(s);var v=c.search(/\S/);if(v!==-1){if(a>v)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=l)break;if(x.isMultiLine())s=x.end.row;else if(a==v)break}f=s}}return new p(l,o,f,g.getLine(f).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,f=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++c<l;){s=g.getLine(c);var v=f.exec(s);if(v&&(v[1]?y--:y++,!y))break}var x=c;if(x>o)return new p(o,a,x,s.length)}}).call(d.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,h){var u=t("../../lib/oop"),p=t("./xml").FoldMode,w=t("./cstyle").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new p};u.inherits(d,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,c){var a=this.getFoldWidgetBase(g,s,c);return a||this.xmlFoldMode.getFoldWidget(g,s,c)},this.getFoldWidgetRange=function(g,s,c,a){var l=this.getFoldWidgetRangeBase(g,s,c,a);return l||this.xmlFoldMode.getFoldWidgetRange(g,s,c)}}).call(d.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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./javascript_highlight_rules").JavaScriptHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./behaviour/javascript").JavaScriptBehaviour,c=t("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new d,this.$behaviour=new s,this.foldingRules=new c};u.inherits(a,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,f){var y=this.$getIndent(o),v=this.getTokenizer().getLineTokens(o,l),x=v.tokens,M=v.state;if(x.length&&x[x.length-1].type=="comment")return y;if(l=="start"||l=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(y+=f)}else if(l=="doc-start"&&(M=="start"||M=="no_regex"))return"";return y},this.checkOutdent=function(l,o,f){return this.$outdent.checkOutdent(o,f)},this.autoOutdent=function(l,o,f){this.$outdent.autoOutdent(o,f)},this.createWorker=function(l){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(f){l.setAnnotations(f.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,r,h){var u={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 d in w)if(typeof w[d]=="string"){var g=d.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});u.hasOwnProperty(g)||(u[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,d,g,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||d.$mode.$id=="ace/mode/scss"){var c=d.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(c);return a&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(w,d,g,s):this.getPropertyCompletions(w,d,g,s,a)}return[]},this.getPropertyCompletions=function(w,d,g,s,c){c=c||!1;var a=Object.keys(u);return a.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,d,g,s){var c=d.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!a)return[];var l=[];return a in u&&typeof u[a]=="object"&&(l=Object.keys(u[a])),l.map(function(o){return{caption:o,snippet:o,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(t,r,h){var u=t("../../lib/oop");t("../behaviour").Behaviour;var p=t("./cstyle").CstyleBehaviour,w=t("../../token_iterator").TokenIterator,d=function(){this.inherit(p),this.add("colon","insertion",function(g,s,c,a,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),f=new w(a,o.row,o.column),y=f.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=f.stepBackward()),y&&y.type==="support.type"){var v=a.doc.getLine(o.row),x=v.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,s,c,a,l){var o=a.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var f=c.getCursorPosition(),y=new w(a,f.row,f.column),v=y.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=y.stepBackward()),v&&v.type==="support.type"){var x=a.doc.getLine(l.start.row),M=x.substring(l.end.column,l.end.column+1);if(M===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(g,s,c,a,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),f=a.doc.getLine(o.row),y=f.substring(o.column,o.column+1);if(y===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,c,a,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),f=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(f.substring(o.column)))return{text:"!important",selection:[10,10]}}})};u.inherits(d,p),r.CssBehaviour=d}),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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./css_highlight_rules").CssHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./css_completions").CssCompletions,c=t("./behaviour/css").CssBehaviour,a=t("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new d,this.$behaviour=new c,this.$completer=new s,this.foldingRules=new a};u.inherits(l,p),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,f,y){var v=this.$getIndent(f),x=this.getTokenizer().getLineTokens(f,o).tokens;if(x.length&&x[x.length-1].type=="comment")return v;var M=f.match(/^.*\{\s*$/);return M&&(v+=y),v},this.checkOutdent=function(o,f,y){return this.$outdent.checkOutdent(f,y)},this.autoOutdent=function(o,f,y){this.$outdent.autoOutdent(f,y)},this.getCompletions=function(o,f,y,v){return this.$completer.getCompletions(o,f,y,v)},this.createWorker=function(o){var f=new g(["ace"],"ace/mode/css_worker","Worker");return f.attachToDocument(o.getDocument()),f.on("annotate",function(y){o.setAnnotations(y.data)}),f.on("terminate",function(){o.clearAnnotations()}),f},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),r.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,h){var u=t("../../lib/oop"),p=t("./fold_mode").FoldMode,w=r.FoldMode=function(d,g){this.defaultMode=d,this.subModes=g};u.inherits(w,p),(function(){this.$getMode=function(d){typeof d!="string"&&(d=d[0]);for(var g in this.subModes)if(d.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(d,g,s,c){var a=this.$getMode(d);return a?a.getFoldWidget(g,s,c):""},this.getFoldWidget=function(d,g,s){return this.$tryMode(d.getState(s-1),d,g,s)||this.$tryMode(d.getState(s),d,g,s)||this.defaultMode.getFoldWidget(d,g,s)},this.getFoldWidgetRange=function(d,g,s){var c=this.$getMode(d.getState(s-1));return(!c||!c.getFoldWidget(d,g,s))&&(c=this.$getMode(d.getState(s))),(!c||!c.getFoldWidget(d,g,s))&&(c=this.defaultMode),c.getFoldWidgetRange(d,g,s)}}).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(t,r,h){var u=t("../../lib/oop"),p=t("./mixed").FoldMode,w=t("./xml").FoldMode,d=t("./cstyle").FoldMode,g=r.FoldMode=function(s,c){p.call(this,new w(s,c),{"js-":new d,"css-":new d})};u.inherits(g,p)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,r,h){function u(f,y){return f.type.lastIndexOf(y+".xml")>-1}function p(f,y){for(var v=new d(f,y.row,y.column),x=v.getCurrentToken();x&&!u(x,"tag-name");)x=v.stepBackward();if(x)return x.value}function w(f,y){for(var v=new d(f,y.row,y.column),x=v.getCurrentToken();x&&!u(x,"attribute-name");)x=v.stepBackward();if(x)return x.value}var d=t("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],c=g.concat(s),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},l=Object.keys(a),o=function(){};(function(){this.getCompletions=function(f,y,v,x){var M=y.getTokenAt(v.row,v.column);if(!M)return[];if(u(M,"tag-name")||u(M,"tag-open")||u(M,"end-tag-open"))return this.getTagCompletions(f,y,v,x);if(u(M,"tag-whitespace")||u(M,"attribute-name"))return this.getAttributeCompletions(f,y,v,x);if(u(M,"attribute-value"))return this.getAttributeValueCompletions(f,y,v,x);var A=y.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(f,y,v,x):[]},this.getTagCompletions=function(f,y,v,x){return l.map(function(M){return{value:M,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(f,y,v,x){var M=p(y,v);if(!M)return[];var A=c;return M in a&&(A=A.concat(Object.keys(a[M]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(f,y,v,x){var M=p(y,v),A=w(y,v);if(!M)return[];var k=[];return M in a&&A in a[M]&&typeof a[M][A]=="object"&&(k=Object.keys(a[M][A])),k.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(f,y,v,x){var M=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return M.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(t,r,h){var u=t("../lib/oop"),p=t("../lib/lang"),w=t("./text").Mode,d=t("./javascript").Mode,g=t("./css").Mode,s=t("./html_highlight_rules").HtmlHighlightRules,c=t("./behaviour/xml").XmlBehaviour,a=t("./folding/html").FoldMode,l=t("./html_completions").HtmlCompletions,o=t("../worker/worker_client").WorkerClient,f=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],y=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=s,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":d,"css-":g}),this.foldingRules=new a(this.voidElements,p.arrayToMap(y))};u.inherits(v,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=p.arrayToMap(f),this.getNextLineIndent=function(x,M,A){return this.$getIndent(M)},this.checkOutdent=function(x,M,A){return!1},this.getCompletions=function(x,M,A,k){return this.$completer.getCompletions(x,M,A,k)},this.createWorker=function(x){if(this.constructor==v){var M=new o(["ace"],"ace/mode/html_worker","Worker");return M.attachToDocument(x.getDocument()),this.fragmentContext&&M.call("setOptions",[{context:this.fragmentContext}]),M.on("error",function(A){x.setAnnotations(A.data)}),M.on("terminate",function(){x.clearAnnotations()}),M}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),r.Mode=v}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,h){var u=t("../lib/oop"),p=t("./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",d=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",g=function(){var s=this.createKeywordMapper({keyword:w,"support.function.builtin":d,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+a+")|(?:"+l+"\\.))",f="(?:(?:"+o+"|"+l+"))",y="(?:"+f+"|"+o+")",v="(?:&"+l+")",x="[a-zA-Z_][a-zA-Z0-9_]*",M="(?:"+x+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(b,T,R){var L=b[2]=="-"?"indentedHeredoc":"heredoc",E=b.split(this.splitRegex);return R.push(L,E[4]),[{type:"constant",value:E[1]},{type:"text",value:E[2]},{type:"string",value:E[3]},{type:"support.class",value:E[4]},{type:"string",value:E[5]}]},rules:{heredoc:[{onMatch:function(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:b}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:A},{token:"variable",regex:M},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:y},{token:"constant.numeric",regex:c+"\\b"},{token:s,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()};u.inherits(g,p),r.ShHighlightRules=g}),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(t,r,h){var u=t("../lib/oop"),p=t("./text").Mode,w=t("./sh_highlight_rules").ShHighlightRules,d=t("../range").Range,g=t("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};u.inherits(s,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var f=this.$getIndent(l),y=this.getTokenizer().getLineTokens(l,a),v=y.tokens;if(v.length&&v[v.length-1].type=="comment")return f;if(a=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(f+=o)}return f};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
|
977
|
+
`&&o!=="\r"&&o!==`
|
978
|
+
`)return!1;var f=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!f)return!1;do var y=f.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&c[y.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var f=this.$getIndent(l.getLine(o)),y=l.getTabString();f.slice(-y.length)==y&&l.remove(new d(o,f.length-y.length,o,f.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),r.Mode=s}),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(t,r,h){var u=t("../lib/oop"),p=t("../lib/lang"),w=t("./text").Mode,d=t("./xml_highlight_rules").XmlHighlightRules,g=t("./behaviour/xml").XmlBehaviour,s=t("./folding/xml").FoldMode,c=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=d,this.$behaviour=new g,this.foldingRules=new s};u.inherits(a,w),(function(){this.voidElements=p.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(f){l.setAnnotations(f.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),r.Mode=a}),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(t,r,h){var u=t("../lib/oop"),p=t("./behaviour/cstyle").CstyleBehaviour,w=t("./text").Mode,d=t("./markdown_highlight_rules").MarkdownHighlightRules,g=t("./folding/markdown").FoldMode,s=function(){this.HighlightRules=d,this.createModeDelegates({javascript:t("./javascript").Mode,html:t("./html").Mode,bash:t("./sh").Mode,sh:t("./sh").Mode,xml:t("./xml").Mode,css:t("./css").Mode}),this.foldingRules=new g,this.$behaviour=new p({braces:!0})};u.inherits(s,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,a,l){if(c=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var f=o[2];return f||(f=parseInt(o[3],10)+1+"."),o[1]+f+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(t){n&&(n.exports=t)})}()}(zf)),zf.exports}Wb();var Vf={exports:{}},qf;function Bb(){return qf||(qf=1,function(n,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,r,h){h.exports=`.ace-twilight .ace_gutter {
|
979
|
+
background: #232323;
|
980
|
+
color: #E2E2E2
|
981
|
+
}
|
982
|
+
|
983
|
+
.ace-twilight .ace_print-margin {
|
984
|
+
width: 1px;
|
985
|
+
background: #232323
|
986
|
+
}
|
987
|
+
|
988
|
+
.ace-twilight {
|
989
|
+
background-color: #141414;
|
990
|
+
color: #F8F8F8
|
991
|
+
}
|
992
|
+
|
993
|
+
.ace-twilight .ace_cursor {
|
994
|
+
color: #A7A7A7
|
995
|
+
}
|
996
|
+
|
997
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
998
|
+
background: rgba(221, 240, 255, 0.20)
|
999
|
+
}
|
1000
|
+
|
1001
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
1002
|
+
box-shadow: 0 0 3px 0px #141414;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
1006
|
+
background: rgb(102, 82, 0)
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
1010
|
+
margin: -1px 0 0 -1px;
|
1011
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
1015
|
+
background: rgba(255, 255, 255, 0.031)
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
.ace-twilight .ace_gutter-active-line {
|
1019
|
+
background-color: rgba(255, 255, 255, 0.031)
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
1023
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
.ace-twilight .ace_invisible {
|
1027
|
+
color: rgba(255, 255, 255, 0.25)
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
.ace-twilight .ace_keyword,
|
1031
|
+
.ace-twilight .ace_meta {
|
1032
|
+
color: #CDA869
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
.ace-twilight .ace_constant,
|
1036
|
+
.ace-twilight .ace_constant.ace_character,
|
1037
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
1038
|
+
.ace-twilight .ace_constant.ace_other,
|
1039
|
+
.ace-twilight .ace_heading,
|
1040
|
+
.ace-twilight .ace_markup.ace_heading,
|
1041
|
+
.ace-twilight .ace_support.ace_constant {
|
1042
|
+
color: #CF6A4C
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
1046
|
+
color: #F8F8F8;
|
1047
|
+
background-color: rgba(86, 45, 86, 0.75)
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
1051
|
+
text-decoration: underline;
|
1052
|
+
font-style: italic;
|
1053
|
+
color: #D2A8A1
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
.ace-twilight .ace_support {
|
1057
|
+
color: #9B859D
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
.ace-twilight .ace_fold {
|
1061
|
+
background-color: #AC885B;
|
1062
|
+
border-color: #F8F8F8
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
.ace-twilight .ace_support.ace_function {
|
1066
|
+
color: #DAD085
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
.ace-twilight .ace_list,
|
1070
|
+
.ace-twilight .ace_markup.ace_list,
|
1071
|
+
.ace-twilight .ace_storage {
|
1072
|
+
color: #F9EE98
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
1076
|
+
.ace-twilight .ace_meta.ace_tag {
|
1077
|
+
color: #AC885B
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
.ace-twilight .ace_string {
|
1081
|
+
color: #8F9D6A
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
.ace-twilight .ace_string.ace_regexp {
|
1085
|
+
color: #E9C062
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
.ace-twilight .ace_comment {
|
1089
|
+
font-style: italic;
|
1090
|
+
color: #5F5A60
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
.ace-twilight .ace_variable {
|
1094
|
+
color: #7587A6
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
.ace-twilight .ace_xml-pe {
|
1098
|
+
color: #494949
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
.ace-twilight .ace_indent-guide {
|
1102
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
.ace-twilight .ace_indent-guide-active {
|
1106
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
1107
|
+
}
|
1108
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(t,r,h){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=t("./twilight-css");var u=t("../lib/dom");u.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){n&&(n.exports=t)})}()}(Vf)),Vf.exports}Bb();var Gf={exports:{}},Yf;function jb(){return Yf||(Yf=1,function(n,e){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(t,r,h){function u(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var p=t("./lib/dom"),w=t("./lib/oop"),d=t("./lib/event_emitter").EventEmitter,g=t("./lib/lang"),s=t("./range").Range,c=t("./range_list").RangeList,a=t("./keyboard/hash_handler").HashHandler,l=t("./tokenizer").Tokenizer,o=t("./clipboard"),f={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,R){var L=b.session.getTextRange();return R?L.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+R+"$1"):L},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return o.getText&&o.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(b){var T=b.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:u.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:u.bind(null,{year:"2-digit"}),CURRENT_MONTH:u.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:u.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:u.bind(null,{month:"short"}),CURRENT_DATE:u.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:u.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:u.bind(null,{weekday:"short"}),CURRENT_HOUR:u.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:u.bind(null,{minute:"2-digit"}),CURRENT_SECOND:u.bind(null,{second:"2-digit"})};f.SELECTED_TEXT=f.SELECTION;var y=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=f}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function T(E){return E=E.substr(1),/^\d+$/.test(E)?[{tabstopId:parseInt(E,10)}]:[{text:E}]}function R(E){return"(?:[^\\\\"+E+"]|\\\\.)"}var L={regex:"/("+R("/")+"+)/",onMatch:function(E,N,S){var _=S[0];return _.fmtString=!0,_.guard=E.slice(1,-1),_.flag="",""},next:"formatString"};return b.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(E=_),[E]}},{regex:/}/,onMatch:function(E,N,S){return[S.length?S.shift():E]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(E,N,S){var _=T(E.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(E,N,S){var _=E.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(E,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?E=_:_=="n"?E=`
|
1110
|
+
`:_=="t"?E=" ":"ulULE".indexOf(_)!=-1&&(E={changeCase:_,local:_>"a"}),[E]}},{regex:"/\\w*}",onMatch:function(E,N,S){var _=S.shift();return _&&(_.flag=E.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(E,N,S){return[{text:E.slice(1)}]}},{regex:/\${\w+/,onMatch:function(E,N,S){var _={text:E.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(E,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(E,N,S){var _=S[0];return _.formatFunction=E.slice(2,-1),[S.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(E,N,S){E[1]=="+"&&(S[0].ifEnd=S[0]),E[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(T,R){return this.getTokenizer().getLineTokens(T,R).tokens.map(function(L){return L.value||L})},b.prototype.getVariableValue=function(T,R,L){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var E=this.variables[R];return typeof E=="function"&&(E=this.variables[R](T,R,L)),E??""},b.prototype.tmStrFormat=function(T,R,L){if(!R.fmt)return T;var E=R.flag||"",N=R.guard;N=new RegExp(N,E.replace(/[^gim]/g,""));var S=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,_=this,$=T.replace(N,function(){var I=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables(S,L),F="E",W=0;W<O.length;W++){var z=O[W];if(typeof z=="object")if(O[W]="",z.changeCase&&z.local){var V=O[W+1];V&&typeof V=="string"&&(z.changeCase=="u"?O[W]=V[0].toUpperCase():O[W]=V[0].toLowerCase(),O[W+1]=V.substr(1))}else z.changeCase&&(F=z.changeCase);else F=="U"?O[W]=z.toUpperCase():F=="L"&&(O[W]=z.toLowerCase())}return _.variables.__=I,O.join("")});return $},b.prototype.tmFormatFunction=function(T,R,L){return R.formatFunction=="upcase"?T.toUpperCase():R.formatFunction=="downcase"?T.toLowerCase():T},b.prototype.resolveVariables=function(T,R){function L(F){var W=T.indexOf(F,_+1);W!=-1&&(_=W)}for(var E=[],N="",S=!0,_=0;_<T.length;_++){var $=T[_];if(typeof $=="string"){E.push($),$==`
|
1111
|
+
`?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var I=T.indexOf($,_+1);I==-1&&(I=T.length),$.fmt=T.slice(_+1,I),_=I}if($.text){var O=this.getVariableValue(R,$.text,N)+"";$.fmtString&&(O=this.tmStrFormat(O,$,R)),$.formatFunction&&(O=this.tmFormatFunction(O,$,R)),O&&!$.ifEnd?(E.push(O),L($)):!O&&$.ifEnd&&L($.ifEnd)}else $.elseEnd?L($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&E.push($)}}return E},b.prototype.getDisplayTextForSnippet=function(T,R){var L=v.call(this,T,R);return L.text},b.prototype.insertSnippetForSelection=function(T,R,L){L===void 0&&(L={});var E=v.call(this,T,R,L),N=T.getSelectionRange(),S=T.session.replace(N,E.text),_=new x(T),$=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(E.tabstops,N.start,S,$)},b.prototype.insertSnippet=function(T,R,L){L===void 0&&(L={});var E=this;if(T.inVirtualSelectionMode)return E.insertSnippetForSelection(T,R,L);T.forEachSelection(function(){E.insertSnippetForSelection(T,R,L)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},b.prototype.$getScope=function(T){var R=T.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!T.session.$mode.inlinePhp&&(R="html");var L=T.getCursorPosition(),E=T.session.getState(L.row);typeof E=="object"&&(E=E[0]),E.substring&&(E.substring(0,3)=="js-"?R="javascript":E.substring(0,4)=="css-"?R="css":E.substring(0,4)=="php-"&&(R="php"))}return R},b.prototype.getActiveScopes=function(T){var R=this.$getScope(T),L=[R],E=this.snippetMap;return E[R]&&E[R].includeScopes&&L.push.apply(L,E[R].includeScopes),L.push("_"),L},b.prototype.expandWithTab=function(T,R){var L=this,E=T.forEachSelection(function(){return L.expandSnippetForSelection(T,R)},null,{keepOrder:!0});return E&&T.tabstopManager&&T.tabstopManager.tabNext(),E},b.prototype.expandSnippetForSelection=function(T,R){var L=T.getCursorPosition(),E=T.session.getLine(L.row),N=E.substring(0,L.column),S=E.substr(L.column),_=this.snippetMap,$;return this.getActiveScopes(T).some(function(I){var O=_[I];return O&&($=this.findMatchingSnippet(O,N,S)),!!$},this),$?(R&&R.dryRun||(T.session.doc.removeInLine(L.row,L.column-$.replaceBefore.length,L.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(T,$.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(T,R,L){for(var E=T.length;E--;){var N=T[E];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(L))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(L):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(L)[0]:"",N}},b.prototype.register=function(T,R){function L(I){return I&&!/^\^?\(.*\)\$?$|^\\b$/.test(I)&&(I="(?:"+I+")"),I||""}function E(I,O,F){return I=L(I),O=L(O),I=O+I,I&&I[I.length-1]!="$"&&(I+="$"),new RegExp(I)}function N(I){I.scope||(I.scope=R||"_"),R=I.scope,S[R]||(S[R]=[],_[R]={});var O=_[R];if(I.name){var F=O[I.name];F&&$.unregister(F),O[I.name]=I}S[R].push(I),I.prefix&&(I.tabTrigger=I.prefix),!I.content&&I.body&&(I.content=Array.isArray(I.body)?I.body.join(`
|
1112
|
+
`):I.body),I.tabTrigger&&!I.trigger&&(!I.guard&&/^\w/.test(I.tabTrigger)&&(I.guard="\\b"),I.trigger=g.escapeRegExp(I.tabTrigger)),!(!I.trigger&&!I.guard&&!I.endTrigger&&!I.endGuard)&&(I.startRe=E(I.trigger,I.guard),I.triggerRe=new RegExp(I.trigger),I.endRe=E(I.endTrigger,I.endGuard),I.endTriggerRe=new RegExp(I.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(I){N(T[I])}),this._signal("registerSnippets",{scope:R})},b.prototype.unregister=function(T,R){function L(S){var _=N[S.scope||R];if(_&&_[S.name]){delete _[S.name];var $=E[S.scope||R],I=$&&$.indexOf(S);I>=0&&$.splice(I,1)}}var E=this.snippetMap,N=this.snippetNameMap;T.content?L(T):Array.isArray(T)&&T.forEach(L)},b.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var R=[],L={},E=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=E.exec(T);){if(N[1])try{L=JSON.parse(N[1]),R.push(L)}catch{}if(N[4])L.content=N[4].replace(/^\t/gm,""),R.push(L),L={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=$.exec(_)[1],L.trigger=$.exec(_)[1],L.endTrigger=$.exec(_)[1],L.endGuard=$.exec(_)[1]}else S=="snippet"?(L.tabTrigger=_.match(/^\S*/)[0],L.name||(L.name=_)):S&&(L[S]=_)}}return R},b.prototype.getSnippetByName=function(T,R){var L=this.snippetNameMap,E;return this.getActiveScopes(R).some(function(N){var S=L[N];return S&&(E=S[T]),!!E},this),E},b}();w.implement(y.prototype,d);var v=function(b,T,R){function L(J){for(var ae=[],me=0;me<J.length;me++){var we=J[me];if(typeof we=="object"){if(O[we.tabstopId])continue;var pe=J.lastIndexOf(we,me-1);we=ae[pe]||{tabstopId:we.tabstopId}}ae[me]=we}return ae}R===void 0&&(R={});var E=b.getCursorPosition(),N=b.session.getLine(E.row),S=b.session.getTabString(),_=N.match(/^\s*/)[0];E.column<_.length&&(_=_.slice(0,E.column)),T=T.replace(/\r/g,"");var $=this.tokenizeTmSnippet(T);$=this.resolveVariables($,b),$=$.map(function(J){return J==`
|
1113
|
+
`&&!R.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var I=[];$.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,we=I[me];if(we||(we=I[me]=[],we.index=me,we.value="",we.parents={}),we.indexOf(J)===-1){J.choices&&!we.choices&&(we.choices=J.choices),we.push(J);var pe=$.indexOf(J,ae+1);if(pe!==-1){var Ae=$.slice(ae+1,pe),lt=Ae.some(function(zt){return typeof zt=="object"});lt&&!we.value?we.value=Ae:Ae.length&&(!we.value||typeof we.value!="string")&&(we.value=Ae.join(""))}}}}),I.forEach(function(J){J.length=0});for(var O={},F=0;F<$.length;F++){var W=$[F];if(typeof W=="object"){var z=W.tabstopId,V=I[z],q=$.indexOf(W,F+1);if(O[z]){O[z]===W&&(delete O[z],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[z]=W;var X=V.value;typeof X!="string"?X=L(X):W.fmt&&(X=this.tmStrFormat(X,W,b)),$.splice.apply($,[F+1,Math.max(0,q-F)].concat(X,W)),V.indexOf(W)===-1&&V.push(W)}}var G=0,Z=0,re="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
|
1114
|
+
`);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:I,tokens:$}},x=function(){function b(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return b.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},b.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},b.prototype.onChange=function(T){for(var R=T.action[0]=="r",L=this.selectedTabstop||{},E=L.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==L||E[_.index];if(_.rangeList.$bias=$?0:1,T.action=="remove"&&_!==L){var I=_.parents&&_.parents[L.index],O=_.rangeList.pointIndex(T.start,I);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(T.end,I);F=F<0?-F-1:F-1;for(var W=_.rangeList.ranges.slice(O,F),z=0;z<W.length;z++)this.removeRange(W[z])}_.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&R&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var R=this.session,L=R.getTextRange(T.firstNonLinked),E=0;E<T.length;E++){var N=T[E];if(N.linked){var S=N.original,_=r.snippetManager.tmStrFormat(L,S,this.editor);R.replace(N,_)}}this.$inChange=!1}},b.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,R=this.editor.selection.anchor,L=this.editor.selection.isEmpty(),E=0;E<this.ranges.length;E++)if(!this.ranges[E].linked){var N=this.ranges[E].contains(T.row,T.column),S=L||this.ranges[E].contains(R.row,R.column);if(N&&S)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(T){var R=this.tabstops.length,L=this.index+(T||1);L=Math.min(Math.max(L,1),R),L==R&&(L=0),this.selectTabstop(L),this.updateTabstopMarkers(),L===0&&this.detach()},b.prototype.selectTabstop=function(T){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=T,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var L=R.firstNonLinked||R;if(R.choices&&(L.cursor=L.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(L);else{var E=this.editor.multiSelect;E.toSingleRange(L);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||E.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(T,R,L){var E=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(L,L);A(N.start,R),A(N.end,R),T[0]=[N],T[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,I=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var W=this.$openTabstops[F]||O;W.snippetId=I;for(var z=0;z<O.length;z++){var V=O[z],q=s.fromPoints(V.start,V.end||V.start);M(q.start,R),M(q.end,R),q.original=V,q.tabstop=W,$.push(q),W!=O?W.unshift(q):W[z]=q,V.fmtString||W.firstNonLinked&&E?(q.linked=!0,W.hasLinkedRanges=!0):W.firstNonLinked||(W.firstNonLinked=q)}W.firstNonLinked||(W.hasLinkedRanges=!1),W===O&&(_.push(W),this.$openTabstops[F]=W),this.addTabstopMarkers(W),W.rangeList=W.rangeList||new c,W.rangeList.$bias=0,W.rangeList.addList(W)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},b.prototype.addTabstopMarkers=function(T){var R=this.session;T.forEach(function(L){L.markerId||(L.markerId=R.addMarker(L,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(T){var R=this.session;T.forEach(function(L){R.removeMarker(L.markerId),L.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(R){R.snippetId===T?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},b.prototype.removeRange=function(T){var R=T.tabstop.indexOf(T);R!=-1&&T.tabstop.splice(R,1),R=this.ranges.indexOf(T),R!=-1&&this.ranges.splice(R,1),R=T.tabstop.rangeList.ranges.indexOf(T),R!=-1&&T.tabstop.splice(R,1),this.session.removeMarker(T.markerId),T.tabstop.length||(R=this.tabstops.indexOf(T.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},b}();x.prototype.keyboardHandler=new a,x.prototype.keyboardHandler.bindKeys({Tab:function(b){r.snippetManager&&r.snippetManager.expandWithTab(b)||(b.tabstopManager.tabNext(1),b.renderer.scrollCursorIntoView())},"Shift-Tab":function(b){b.tabstopManager.tabNext(-1),b.renderer.scrollCursorIntoView()},Esc:function(b){b.tabstopManager.detach()}});var M=function(b,T){b.row==0&&(b.column+=T.column),b.row+=T.row},A=function(b,T){b.row==T.row&&(b.column-=T.column),b.row-=T.row};p.importCssString(`
|
1115
|
+
.ace_snippet-marker {
|
1116
|
+
-moz-box-sizing: border-box;
|
1117
|
+
box-sizing: border-box;
|
1118
|
+
background: rgba(194, 193, 208, 0.09);
|
1119
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
1120
|
+
position: absolute;
|
1121
|
+
}`,"snippets.css",!1),r.snippetManager=new y;var k=t("./editor").Editor;(function(){this.insertSnippet=function(b,T){return r.snippetManager.insertSnippet(this,b,T)},this.expandSnippet=function(b){return r.snippetManager.expandWithTab(this,b)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(t,r,h){var u=t("../virtual_renderer").VirtualRenderer,p=t("../editor").Editor,w=t("../range").Range,d=t("../lib/event"),g=t("../lib/lang"),s=t("../lib/dom"),c=t("../config").nls,a=t("./../lib/useragent"),l=function(M){return"suggest-aria-id:".concat(M)},o=a.isSafari?"menu":"listbox",f=a.isSafari?"menuitem":"option",y=a.isSafari?"aria-current":"aria-selected",v=function(M){var A=new u(M);A.$maxLines=4;var k=new p(A);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function M(A){var k=s.createElement("div"),b=v(k);A&&A.appendChild(k),k.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",o),b.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var T=function(){};b.focus=T,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=T,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function($){var I=$.getDocumentPosition();b.selection.moveToPosition(I),E.start.row=E.end.row=I.row,$.stop()});var R,L=new w(-1,0,-1,1/0),E=new w(-1,0,-1,1/0);E.id=b.session.addMarker(E,"ace_active-line","fullLine"),b.setSelectOnHover=function($){$?L.id&&(b.session.removeMarker(L.id),L.id=null):L.id=b.session.addMarker(L,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function($){if(!R){R=$;return}if(!(R.x==$.x&&R.y==$.y)){R=$,R.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var I=R.getDocumentPosition().row;L.start.row!=I&&(L.id||b.setRow(I),S(I))}}),b.renderer.on("beforeRender",function(){if(R&&L.start.row!=-1){R.$pos=null;var $=R.getDocumentPosition().row;L.id||b.setRow($),S($,!0)}}),b.renderer.on("afterRender",function(){var $=b.getRow(),I=b.renderer.$textLayer,O=I.element.childNodes[$-I.config.firstRow],F=document.activeElement;if(O!==b.selectedNode&&b.selectedNode&&(s.removeCssClass(b.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),b.selectedNode.removeAttribute(y),b.selectedNode.removeAttribute("id")),b.selectedNode=O,O){s.addCssClass(O,"ace_selected");var W=l($);O.id=W,I.element.setAttribute("aria-activedescendant",W),F.setAttribute("aria-activedescendant",W),O.setAttribute("role",f),O.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",b.getData($).caption||b.getData($).value),O.setAttribute("aria-setsize",b.data.length),O.setAttribute("aria-posinset",$+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(y,"true")}});var N=function(){S(-1)},S=function($,I){$!==L.start.row&&(L.start.row=L.end.row=$,I||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return L.start.row},d.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,N()}),b.on("hide",N),b.on("changeSelection",N),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function($){var I=b.data[$];return typeof I=="string"?I:I&&I.value||""};var _=b.session.bgTokenizer;return _.$tokenizeRow=function($){function I(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=b.data[$],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var W=O.caption||O.value||O.name,z=W.toLowerCase(),V=(b.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var re=z.indexOf(Z,q);if(re==-1)continue;I(W.slice(q,re),""),q=re+Z.length,I(W.slice(re,q),"completion-highlight")}return I(W.slice(q,W.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=T,_.start=T,b.session.$computeWidth=function(){return this.screenWidth=0},b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.filterText="",b.isMouseOver=!1,b.data=[],b.setData=function($,I){b.filterText=I||"",b.setValue(g.stringRepeat(`
|
1122
|
+
`,$.length),-1),b.data=$||[],b.setRow(0)},b.getData=function($){return b.data[$]},b.getRow=function(){return E.start.row},b.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(b.selection.clearSelection(),E.start.row=E.end.row=$||0,b.session._emit("changeBackMarker"),b.moveCursorTo($||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function($,I,O,F){if(!F&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===$.top&&b.anchorPos.left===$.left&&b.anchor===O)return!0;var W=this.container,z=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*I*1.4,G={top:0,bottom:0},Z=z-$.top-3*this.$borderSize-I,re=$.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=$.top+I+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=z;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(W.style.top="",W.style.bottom=z-G.bottom+"px",b.isTopdown=!1):(W.style.top=G.top+"px",W.style.bottom="",b.isTopdown=!0),W.style.display="";var ae=$.left;return ae+W.offsetWidth>V&&(ae=V-W.offsetWidth),W.style.left=ae+"px",W.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),R=null),b.anchorPos=$,b.anchor=O,!0},b.show=function($,I,O){this.tryShow($,I,O?"bottom":void 0,!0)},b.goTo=function($){var I=this.getRow(),O=this.session.getLength()-1;switch($){case"up":I=I<=0?O:I-1;break;case"down":I=I>=O?-1:I+1;break;case"start":I=0;break;case"end":I=O}this.setRow(I)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return M}();s.importCssString(`
|
1123
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1124
|
+
background-color: #CAD6FA;
|
1125
|
+
z-index: 1;
|
1126
|
+
}
|
1127
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1128
|
+
background-color: #3a674e;
|
1129
|
+
}
|
1130
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
1131
|
+
border: 1px solid #abbffe;
|
1132
|
+
margin-top: -1px;
|
1133
|
+
background: rgba(233,233,253,0.4);
|
1134
|
+
position: absolute;
|
1135
|
+
z-index: 2;
|
1136
|
+
}
|
1137
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
1138
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
1139
|
+
background: rgba(58, 103, 78, 0.62);
|
1140
|
+
}
|
1141
|
+
.ace_completion-meta {
|
1142
|
+
opacity: 0.5;
|
1143
|
+
margin-left: 0.9em;
|
1144
|
+
}
|
1145
|
+
.ace_completion-message {
|
1146
|
+
margin-left: 0.9em;
|
1147
|
+
color: blue;
|
1148
|
+
}
|
1149
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1150
|
+
color: #2d69c7;
|
1151
|
+
}
|
1152
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1153
|
+
color: #93ca12;
|
1154
|
+
}
|
1155
|
+
.ace_editor.ace_autocomplete {
|
1156
|
+
width: 300px;
|
1157
|
+
z-index: 200000;
|
1158
|
+
border: 1px lightgray solid;
|
1159
|
+
position: fixed;
|
1160
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
1161
|
+
line-height: 1.4;
|
1162
|
+
background: #fefefe;
|
1163
|
+
color: #111;
|
1164
|
+
}
|
1165
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
1166
|
+
border: 1px #484747 solid;
|
1167
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
1168
|
+
line-height: 1.4;
|
1169
|
+
background: #25282c;
|
1170
|
+
color: #c1c1c1;
|
1171
|
+
}
|
1172
|
+
.ace_autocomplete .ace_text-layer {
|
1173
|
+
width: calc(100% - 8px);
|
1174
|
+
}
|
1175
|
+
.ace_autocomplete .ace_line {
|
1176
|
+
display: flex;
|
1177
|
+
align-items: center;
|
1178
|
+
}
|
1179
|
+
.ace_autocomplete .ace_line > * {
|
1180
|
+
min-width: 0;
|
1181
|
+
flex: 0 0 auto;
|
1182
|
+
}
|
1183
|
+
.ace_autocomplete .ace_line .ace_ {
|
1184
|
+
flex: 0 1 auto;
|
1185
|
+
overflow: hidden;
|
1186
|
+
text-overflow: ellipsis;
|
1187
|
+
}
|
1188
|
+
.ace_autocomplete .ace_completion-spacer {
|
1189
|
+
flex: 1;
|
1190
|
+
}
|
1191
|
+
.ace_autocomplete.ace_loading:after {
|
1192
|
+
content: "";
|
1193
|
+
position: absolute;
|
1194
|
+
top: 0px;
|
1195
|
+
height: 2px;
|
1196
|
+
width: 8%;
|
1197
|
+
background: blue;
|
1198
|
+
z-index: 100;
|
1199
|
+
animation: ace_progress 3s infinite linear;
|
1200
|
+
animation-delay: 300ms;
|
1201
|
+
transform: translateX(-100%) scaleX(1);
|
1202
|
+
}
|
1203
|
+
@keyframes ace_progress {
|
1204
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
1205
|
+
50% { transform: translateX(625%) scaleX(2) }
|
1206
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
1207
|
+
}
|
1208
|
+
@media (prefers-reduced-motion) {
|
1209
|
+
.ace_autocomplete.ace_loading:after {
|
1210
|
+
transform: translateX(625%) scaleX(2);
|
1211
|
+
animation: none;
|
1212
|
+
}
|
1213
|
+
}
|
1214
|
+
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=v,r.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,h){var u=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 g=this.popup.getRow(),s=this.popup.renderer.$textLayer,c=s.element.childNodes[g-s.config.firstRow];if(c){for(var a="doc-tooltip ",l=0;l<this._lines.length;l++)a+="ace-inline-screenreader-line-".concat(l," ");c.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var d=this.createCodeBlock();this.screenReaderDiv.appendChild(d)},p.prototype.destroy=function(){this.screenReaderDiv.remove()},p.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var d=0;d<this._lines.length;d++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(d));var s=document.createTextNode(this._lines[d]);g.appendChild(s),w.appendChild(g)}return w},p}();r.AceInlineScreenReader=u}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,h){var u=t("../snippets").snippetManager,p=t("./inline_screenreader").AceInlineScreenReader,w=function(){function d(){this.editor=null}return d.prototype.show=function(g,s,c){if(c=c||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new p(g));var a=s.snippet?u.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(c)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(c.length),a===""?g.removeGhostText():g.setGhostText(a),!0)},d.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},d.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},d.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},d}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,h){r.parForEach=function(p,w,d){var g=0,s=p.length;s===0&&d();for(var c=0;c<s;c++)w(p[c],function(a,l){g++,g===s&&d(a,l)})};var u=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(p,w,d){d=d||u;for(var g=[],s=w-1;s>=0&&d.test(p[s]);s--)g.push(p[s]);return g.reverse().join("")},r.retrieveFollowingIdentifier=function(p,w,d){d=d||u;for(var g=[],s=w;s<p.length&&d.test(p[s]);s++)g.push(p[s]);return g},r.getCompletionPrefix=function(p){var w=p.getCursorPosition(),d=p.session.getLine(w.row),g;return p.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!g&&c&&(g=this.retrievePrecedingIdentifier(d,w.column,c))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(d,w.column)},r.triggerAutocomplete=function(p,d){var d=d??p.session.getPrecedingCharacter();return p.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(d)})}}),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(t,r,h){var u=t("./keyboard/hash_handler").HashHandler,p=t("./autocomplete/popup").AcePopup,w=t("./autocomplete/inline").AceInline,d=t("./autocomplete/popup").getAriaId,g=t("./autocomplete/util"),s=t("./lib/lang"),c=t("./lib/dom"),a=t("./snippets").snippetManager,l=t("./config"),o=t("./lib/event"),f=t("./lib/scroll").preventParentScroll,y=function(A,k){k.completer&&k.completer.destroy()},v=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new u,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=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new M(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new p(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},A.prototype.$updateGhostText=function(k){var b=this.base.row,T=this.base.column,R=this.editor.getCursorPosition().column,L=this.editor.session.getLine(b).slice(T,R);this.inlineRenderer.show(this.editor,k,L)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,T=b.layerConfig.lineHeight,R=b.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var L=k.container.getBoundingClientRect();R.top+=L.top-b.layerConfig.offset,R.left+=L.left-k.renderer.scrollLeft,R.left+=b.gutterWidth;var E={top:R.top,left:R.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(E.top+=b.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,S=N<E.top?{top:N,left:E.left}:E;this.popup.tryShow(S,T,"bottom")||this.popup.tryShow(R,T,"top")||this.popup.show(R,T)},A.prototype.openPopup=function(k,b,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var R=this.popup.getRow(),L=this.popup.data[R];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:d(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var E;this.stickySelection&&(E=this.popup.data.indexOf(L)),(!E||E===-1)&&(E=0),this.popup.setRow(this.autoSelect?E:-1),E===R&&L!==this.completions.filtered[E]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(E===R&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.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()},A.prototype.changeListener=function(k){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var b=document.activeElement,T=this.editor.textInput.getElement(),R=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),L=this.popup&&this.popup.container;b!=T&&b.parentNode!=L&&!R&&b!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,b);return this.completions==T&&this.detach(),R},A.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},A.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var R=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:R});if(L==this.completions.filterText)return;if(this.completions.setFilter(L),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==L&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,L,k);return}if(b&&b.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new M(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),R=this.editor.getCursorPosition(),L=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(R.row,R.column-L.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:L,pos:R}).provideCompletions(this.editor,E,(function(N,S,_){var $=S.filtered,I=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(I)),O){var F=[{caption:O,value:""}];this.completions=new M(F),this.openPopup(this.editor,I,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==I&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new M(A.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,I,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,T=b&&(b[k.getHoveredRow()]||b[k.getRow()]),R=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,E=0;E<L;E++){var N=this.editor.completers[E];if(N.getDocTooltip&&T.completerId===N.id){R=N.getDocTooltip(T);break}}if(!R&&typeof T!="string"&&(R=T),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",f));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,L=R.container.getBoundingClientRect();T.style.top=R.container.style.top,T.style.bottom=R.container.style.bottom,T.style.display="block",window.innerWidth-L.right<320?L.left<320?R.isTopdown?(T.style.top=L.bottom+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=R.container.offsetTop-T.offsetHeight+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-L.left+"px",T.style.left=""):(T.style.left=L.right+1+"px",T.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",y),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),l.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",y))),k.completer},A}();v.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=g.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},v.startCommand={name:"startAutocomplete",exec:function(A,k){var b=v.for(A);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(A,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],T)},A.prototype.insertMatch=function(k,b,T){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var R=this.completions.filterText.length,L=0;if(b.range&&b.range.start.row===b.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-b.range.start.column,L+=b.range.end.column-this.initialPosition.pos.column),R||L){var E;k.selection.getAllRanges?E=k.selection.getAllRanges():E=[k.getSelectionRange()];for(var N=0,S;S=E[N];N++)S.start.column-=R,S.end.column+=L,k.session.remove(S)}b.snippet?a.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,b){var T=b.value||b;k.execCommand("insertstring",T)},A.prototype.gatherCompletions=function(k,b){var T=k.getSession(),R=k.getCursorPosition(),L=g.getCompletionPrefix(k),E=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,T,R,L,function($,I){S.hideInlinePreview&&(I=I.map(function(O){return Object.assign(O,{hideInlinePreview:S.hideInlinePreview})})),!$&&I&&(E=E.concat(I)),b(null,{prefix:g.getCompletionPrefix(k),matches:E,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,b,T){var R=(function(S){var _=S.prefix,$=S.matches;this.completions=new M($),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&T(null,this.completions,S.finished)}).bind(this),L=!0,E=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(T(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(L){E=_;return}R(_)}}}).bind(this)),L=!1,E){var N=E;E=null,R(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),M=function(){function A(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(R,L){return L.exactMatch-R.exactMatch||L.$score-R.$score||(R.caption||R.value).localeCompare(L.caption||L.value)});var T=null;b=b.filter(function(R){var L=R.snippet||R.caption||R.value;return L===T?!1:(T=L,!0)}),this.filtered=b},A.prototype.filterCompletions=function(k,b){var T=[],R=b.toUpperCase(),L=b.toLowerCase();e:for(var E=0,N;N=k[E];E++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,I=0,O,F;if(this.exactMatch){if(b!==S.substr(0,b.length))continue e}else{var W=S.toLowerCase().indexOf(L);if(W>-1)I=W;else for(var z=0;z<b.length;z++){var V=S.indexOf(L[z],_+1),q=S.indexOf(R[z],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(I+=10),I+=F,$|=1<<z),_=O}}N.matchMask=$,N.exactMatch=I?0:1,N.$score=(N.score||0)-I,T.push(N)}}return T},A}();r.Autocomplete=v,r.CompletionProvider=x,r.FilteredList=M}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,h){function u(g,s){var c=g.getTextRange(w.fromPoints({row:0,column:0},s));return c.split(d).length-1}function p(g,s){var c=u(g,s),a=g.getValue().split(d),l=Object.create(null),o=a[c];return a.forEach(function(f,y){if(!(!f||f===o)){var v=Math.abs(c-y),x=a.length-v;l[f]?l[f]=Math.max(x,l[f]):l[f]=x}}),l}var w=t("../range").Range,d=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(g,s,c,a,l){var o=p(s,c),f=Object.keys(o);l(null,f.map(function(y){return{caption:y,value:y,score:o[y],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(t,r,h){var u=t("../snippets").snippetManager,p=t("../autocomplete").Autocomplete,w=t("../config"),d=t("../lib/lang"),g=t("../autocomplete/util"),s=t("../autocomplete/text_completer"),c={getCompletions:function(R,L,E,N,S){if(L.$mode.completer)return L.$mode.completer.getCompletions(R,L,E,N,S);var _=R.session.getState(E.row),$=L.$mode.getCompletions(_,L,E,N);$=$.map(function(I){return I.completerId=c.id,I}),S(null,$)},id:"keywordCompleter"},a=function(R){var L={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(E,N,S,_){return L[N]=_||""}).replace(/\$(\d+?)/g,function(E,N){return L[N]})},l={getCompletions:function(R,L,E,N,S){var _=[],$=L.getTokenAt(E.row,E.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=u.getActiveScopes(R);var I=u.snippetMap,O=[];_.forEach(function(F){for(var W=I[F]||[],z=W.length;z--;){var V=W[z],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.id})}},this),S(null,O)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",d.escapeHTML(R.caption),"</b>","<hr></hr>",d.escapeHTML(a(R.snippet))].join(""))},id:"snippetCompleter"},o=[l,s,c];r.setCompleters=function(R){o.length=0,R&&o.push.apply(o,R)},r.addCompleter=function(R){o.push(R)},r.textCompleter=s,r.keyWordCompleter=c,r.snippetCompleter=l;var f={name:"expandSnippet",exec:function(R){return u.expandWithTab(R)},bindKey:"Tab"},y=function(R,L){v(L.session.$mode)},v=function(R){typeof R=="string"&&(R=w.$modes[R]),R&&(u.files||(u.files={}),x(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(v))},x=function(R,L){!L||!R||u.files[R]||(u.files[R]={},w.loadModule(L,function(E){E&&(u.files[R]=E,!E.snippets&&E.snippetText&&(E.snippets=u.parseSnippetFile(E.snippetText)),u.register(E.snippets||[],E.scope),E.includeScopes&&(u.snippetMap[E.scope].includeScopes=E.includeScopes,E.includeScopes.forEach(function(N){v("ace/mode/"+N)})))}))},M=function(R){var L=R.editor,E=L.completer&&L.completer.activated;if(R.command.name==="backspace")E&&!g.getCompletionPrefix(L)&&L.completer.detach();else if(R.command.name==="insertstring"&&!E){A=R;var N=R.editor.$liveAutocompletionDelay;N?k.delay(N):b(R)}},A,k=d.delayedCall(function(){b(A)},0),b=function(R){var L=R.editor,E=g.getCompletionPrefix(L),N=R.args,S=g.triggerAutocomplete(L,N);if(E&&E.length>=L.$liveAutocompletionThreshold||S){var _=p.for(L);_.autoShown=!0,_.showPopup(L)}},T=t("../editor").Editor;t("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.addCommand(p.startCommand)):this.commands.removeCommand(p.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.on("afterExec",M)):this.commands.off("afterExec",M)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(f),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(f),this.off("changeMode",y))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){n&&(n.exports=t)})}()}(Gf)),Gf.exports}jb();var Kf={exports:{}},Qf;function zb(){return Qf||(Qf=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,h){h.exports=`
|
1215
|
+
|
1216
|
+
/* ------------------------------------------------------------------------------------------
|
1217
|
+
* Editor Search Form
|
1218
|
+
* --------------------------------------------------------------------------------------- */
|
1219
|
+
.ace_search {
|
1220
|
+
background-color: #ddd;
|
1221
|
+
color: #666;
|
1222
|
+
border: 1px solid #cbcbcb;
|
1223
|
+
border-top: 0 none;
|
1224
|
+
overflow: hidden;
|
1225
|
+
margin: 0;
|
1226
|
+
padding: 4px 6px 0 4px;
|
1227
|
+
position: absolute;
|
1228
|
+
top: 0;
|
1229
|
+
z-index: 99;
|
1230
|
+
white-space: normal;
|
1231
|
+
}
|
1232
|
+
.ace_search.left {
|
1233
|
+
border-left: 0 none;
|
1234
|
+
border-radius: 0px 0px 5px 0px;
|
1235
|
+
left: 0;
|
1236
|
+
}
|
1237
|
+
.ace_search.right {
|
1238
|
+
border-radius: 0px 0px 0px 5px;
|
1239
|
+
border-right: 0 none;
|
1240
|
+
right: 0;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
.ace_search_form, .ace_replace_form {
|
1244
|
+
margin: 0 20px 4px 0;
|
1245
|
+
overflow: hidden;
|
1246
|
+
line-height: 1.9;
|
1247
|
+
}
|
1248
|
+
.ace_replace_form {
|
1249
|
+
margin-right: 0;
|
1250
|
+
}
|
1251
|
+
.ace_search_form.ace_nomatch {
|
1252
|
+
outline: 1px solid red;
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
.ace_search_field {
|
1256
|
+
border-radius: 3px 0 0 3px;
|
1257
|
+
background-color: white;
|
1258
|
+
color: black;
|
1259
|
+
border: 1px solid #cbcbcb;
|
1260
|
+
border-right: 0 none;
|
1261
|
+
outline: 0;
|
1262
|
+
padding: 0;
|
1263
|
+
font-size: inherit;
|
1264
|
+
margin: 0;
|
1265
|
+
line-height: inherit;
|
1266
|
+
padding: 0 6px;
|
1267
|
+
min-width: 17em;
|
1268
|
+
vertical-align: top;
|
1269
|
+
min-height: 1.8em;
|
1270
|
+
box-sizing: content-box;
|
1271
|
+
}
|
1272
|
+
.ace_searchbtn {
|
1273
|
+
border: 1px solid #cbcbcb;
|
1274
|
+
line-height: inherit;
|
1275
|
+
display: inline-block;
|
1276
|
+
padding: 0 6px;
|
1277
|
+
background: #fff;
|
1278
|
+
border-right: 0 none;
|
1279
|
+
border-left: 1px solid #dcdcdc;
|
1280
|
+
cursor: pointer;
|
1281
|
+
margin: 0;
|
1282
|
+
position: relative;
|
1283
|
+
color: #666;
|
1284
|
+
}
|
1285
|
+
.ace_searchbtn:last-child {
|
1286
|
+
border-radius: 0 3px 3px 0;
|
1287
|
+
border-right: 1px solid #cbcbcb;
|
1288
|
+
}
|
1289
|
+
.ace_searchbtn:disabled {
|
1290
|
+
background: none;
|
1291
|
+
cursor: default;
|
1292
|
+
}
|
1293
|
+
.ace_searchbtn:hover {
|
1294
|
+
background-color: #eef1f6;
|
1295
|
+
}
|
1296
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
1297
|
+
padding: 0px 0.7em
|
1298
|
+
}
|
1299
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
1300
|
+
content: "";
|
1301
|
+
border: solid 2px #888;
|
1302
|
+
width: 0.5em;
|
1303
|
+
height: 0.5em;
|
1304
|
+
border-width: 2px 0 0 2px;
|
1305
|
+
display:inline-block;
|
1306
|
+
transform: rotate(-45deg);
|
1307
|
+
}
|
1308
|
+
.ace_searchbtn.next:after {
|
1309
|
+
border-width: 0 2px 2px 0 ;
|
1310
|
+
}
|
1311
|
+
.ace_searchbtn_close {
|
1312
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
1313
|
+
border-radius: 50%;
|
1314
|
+
border: 0 none;
|
1315
|
+
color: #656565;
|
1316
|
+
cursor: pointer;
|
1317
|
+
font: 16px/16px Arial;
|
1318
|
+
padding: 0;
|
1319
|
+
height: 14px;
|
1320
|
+
width: 14px;
|
1321
|
+
top: 9px;
|
1322
|
+
right: 7px;
|
1323
|
+
position: absolute;
|
1324
|
+
}
|
1325
|
+
.ace_searchbtn_close:hover {
|
1326
|
+
background-color: #656565;
|
1327
|
+
background-position: 50% 100%;
|
1328
|
+
color: white;
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
.ace_button {
|
1332
|
+
margin-left: 2px;
|
1333
|
+
cursor: pointer;
|
1334
|
+
-webkit-user-select: none;
|
1335
|
+
-moz-user-select: none;
|
1336
|
+
-o-user-select: none;
|
1337
|
+
-ms-user-select: none;
|
1338
|
+
user-select: none;
|
1339
|
+
overflow: hidden;
|
1340
|
+
opacity: 0.7;
|
1341
|
+
border: 1px solid rgba(100,100,100,0.23);
|
1342
|
+
padding: 1px;
|
1343
|
+
box-sizing: border-box!important;
|
1344
|
+
color: black;
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
.ace_button:hover {
|
1348
|
+
background-color: #eee;
|
1349
|
+
opacity:1;
|
1350
|
+
}
|
1351
|
+
.ace_button:active {
|
1352
|
+
background-color: #ddd;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
.ace_button.checked {
|
1356
|
+
border-color: #3399ff;
|
1357
|
+
opacity:1;
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
.ace_search_options{
|
1361
|
+
margin-bottom: 3px;
|
1362
|
+
text-align: right;
|
1363
|
+
-webkit-user-select: none;
|
1364
|
+
-moz-user-select: none;
|
1365
|
+
-o-user-select: none;
|
1366
|
+
-ms-user-select: none;
|
1367
|
+
user-select: none;
|
1368
|
+
clear: both;
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
.ace_search_counter {
|
1372
|
+
float: left;
|
1373
|
+
font-family: arial;
|
1374
|
+
padding: 0 8px;
|
1375
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(t,r,h){var u=t("../lib/dom"),p=t("../lib/lang"),w=t("../lib/event"),d=t("./searchbox-css"),g=t("../keyboard/hash_handler").HashHandler,s=t("../lib/keys"),c=t("../config").nls,a=999;u.importCssString(d,"ace_searchbox",!1);var l=function(){function y(v,x,M){this.activeInput;var A=u.createElement("div");u.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(v),u.importCssString(d,"ace_searchbox",v.container)}return y.prototype.setEditor=function(v){v.searchBox=this,v.renderer.scroller.appendChild(this.element),this.editor=v},y.prototype.setSession=function(v){this.searchRange=null,this.$syncOptions(!0)},y.prototype.$initElements=function(v){this.searchBox=v.querySelector(".ace_search_form"),this.replaceBox=v.querySelector(".ace_replace_form"),this.searchOption=v.querySelector("[action=searchInSelection]"),this.replaceOption=v.querySelector("[action=toggleReplace]"),this.regExpOption=v.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=v.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=v.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=v.querySelector(".ace_search_counter")},y.prototype.$init=function(){var v=this.element;this.$initElements(v);var x=this;w.addListener(v,"mousedown",function(M){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(M)}),w.addListener(v,"click",function(M){var A=M.target||M.srcElement,k=A.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),w.stopPropagation(M)}),w.addCommandKeyListener(v,function(M,A,k){var b=s.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(A,b);T&&T.exec&&(T.exec(x),w.stopEvent(M))}),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()})},y.prototype.setSearchRange=function(v){this.searchRange=v,v?this.searchRangeMarker=this.editor.session.addMarker(v,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},y.prototype.$syncOptions=function(v){u.setCssClass(this.replaceOption,"checked",this.searchRange),u.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",u.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),u.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),u.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,v)},y.prototype.highlight=function(v){this.editor.session.highlight(v||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},y.prototype.find=function(v,x,M){var A=this.editor.find(this.searchInput.value,{skipCurrent:v,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:M,range:this.searchRange}),k=!A&&this.searchInput.value;u.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},y.prototype.updateCounter=function(){var v=this.editor,x=v.$search.$options.re,M=x.unicode,A=0,k=0;if(x){var b=this.searchRange?v.session.getTextRange(this.searchRange):v.getValue(),T=v.session.doc.positionToIndex(v.selection.anchor);this.searchRange&&(T-=v.session.doc.positionToIndex(this.searchRange.start));for(var R=x.lastIndex=0,L;(L=x.exec(b))&&(A++,R=L.index,R<=T&&k++,!(A>a||!L[0]&&(x.lastIndex=R+=p.skipEmptyMatch(b,R,M),R>=b.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,A>a?a+"+":A])},y.prototype.findNext=function(){this.find(!0,!1)},y.prototype.findPrev=function(){this.find(!0,!0)},y.prototype.findAll=function(){var v=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!v&&this.searchInput.value;u.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},y.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},y.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},y.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},y.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},y.prototype.show=function(v,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,v&&(this.searchInput.value=v),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},y.prototype.isFocused=function(){var v=document.activeElement;return v==this.searchInput||v==this.replaceInput},y}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(y){var v=y.isReplace=!y.isReplace;y.replaceBox.style.display=v?"":"none",y.replaceOption.checked=!1,y.$syncOptions(),y.searchInput.focus()},"Ctrl-H|Command-Option-F":function(y){y.editor.getReadOnly()||(y.replaceOption.checked=!0,y.$syncOptions(),y.replaceInput.focus())},"Ctrl-G|Command-G":function(y){y.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(y){y.findPrev()},esc:function(y){setTimeout(function(){y.hide()})},Return:function(y){y.activeInput==y.replaceInput&&y.replace(),y.findNext()},"Shift-Return":function(y){y.activeInput==y.replaceInput&&y.replace(),y.findPrev()},"Alt-Return":function(y){y.activeInput==y.replaceInput&&y.replaceAll(),y.findAll()},Tab:function(y){(y.activeInput==y.replaceInput?y.searchInput:y.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(y){y.regExpOption.checked=!y.regExpOption.checked,y.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(y){y.caseSensitiveOption.checked=!y.caseSensitiveOption.checked,y.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(y){y.wholeWordOption.checked=!y.wholeWordOption.checked,y.$syncOptions()}},{name:"toggleReplace",exec:function(y){y.replaceOption.checked=!y.replaceOption.checked,y.$syncOptions()}},{name:"searchInSelection",exec:function(y){y.searchOption.checked=!y.searchRange,y.setSearchRange(y.searchOption.checked&&y.editor.getSelectionRange()),y.$syncOptions()}}]);var f=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(y){y.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=f,r.SearchBox=l,r.Search=function(y,v){var x=y.searchBox||new l(y);x.show(y.session.getTextRange(),v)}}),function(){ace.require(["ace/ext/searchbox"],function(t){n&&(n.exports=t)})}()}(Kf)),Kf.exports}zb();var Ub=Object.defineProperty,Vb=(n,e,t)=>e in n?Ub(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Vc=(n,e,t)=>Vb(n,typeof e!="symbol"?e+"":e,t);function Zf(n,e){return function(){return n.apply(e,arguments)}}const{toString:qb}=Object.prototype,{getPrototypeOf:qc}=Object,Wa=(n=>e=>{const t=qb.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=n=>(n=n.toLowerCase(),e=>Wa(e)===n),Ba=n=>e=>typeof e===n,{isArray:Bo}=Array,Rs=Ba("undefined");function Gb(n){return n!==null&&!Rs(n)&&n.constructor!==null&&!Rs(n.constructor)&&pr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Jf=Fr("ArrayBuffer");function Yb(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Jf(n.buffer),e}const Kb=Ba("string"),pr=Ba("function"),Xf=Ba("number"),ja=n=>n!==null&&typeof n=="object",Qb=n=>n===!0||n===!1,za=n=>{if(Wa(n)!=="object")return!1;const e=qc(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Zb=Fr("Date"),Jb=Fr("File"),Xb=Fr("Blob"),e1=Fr("FileList"),t1=n=>ja(n)&&pr(n.pipe),n1=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||pr(n.append)&&((e=Wa(n))==="formdata"||e==="object"&&pr(n.toString)&&n.toString()==="[object FormData]"))},r1=Fr("URLSearchParams"),[i1,o1,s1,a1]=["ReadableStream","Request","Response","Headers"].map(Fr),l1=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ms(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,h;if(typeof n!="object"&&(n=[n]),Bo(n))for(r=0,h=n.length;r<h;r++)e.call(null,n[r],r,n);else{const u=t?Object.getOwnPropertyNames(n):Object.keys(n),p=u.length;let w;for(r=0;r<p;r++)w=u[r],e.call(null,n[w],w,n)}}function ep(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,h;for(;r-- >0;)if(h=t[r],e===h.toLowerCase())return h;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tp=n=>!Rs(n)&&n!==so;function Gc(){const{caseless:n}=tp(this)&&this||{},e={},t=(r,h)=>{const u=n&&ep(e,h)||h;za(e[u])&&za(r)?e[u]=Gc(e[u],r):za(r)?e[u]=Gc({},r):Bo(r)?e[u]=r.slice():e[u]=r};for(let r=0,h=arguments.length;r<h;r++)arguments[r]&&Ms(arguments[r],t);return e}const c1=(n,e,t,{allOwnKeys:r}={})=>(Ms(e,(h,u)=>{t&&pr(h)?n[u]=Zf(h,t):n[u]=h},{allOwnKeys:r}),n),u1=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),h1=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},d1=(n,e,t,r)=>{let h,u,p;const w={};if(e=e||{},n==null)return e;do{for(h=Object.getOwnPropertyNames(n),u=h.length;u-- >0;)p=h[u],(!r||r(p,n,e))&&!w[p]&&(e[p]=n[p],w[p]=!0);n=t!==!1&&qc(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},f1=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},p1=n=>{if(!n)return null;if(Bo(n))return n;let e=n.length;if(!Xf(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},g1=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&qc(Uint8Array)),m1=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const h=r.value;e.call(n,h[0],h[1])}},y1=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},w1=Fr("HTMLFormElement"),v1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),np=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),b1=Fr("RegExp"),rp=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Ms(t,(h,u)=>{let p;(p=e(h,u,n))!==!1&&(r[u]=p||h)}),Object.defineProperties(n,r)},x1=n=>{rp(n,(e,t)=>{if(pr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(pr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},_1=(n,e)=>{const t={},r=h=>{h.forEach(u=>{t[u]=!0})};return Bo(n)?r(n):r(String(n).split(e)),t},k1=()=>{},S1=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Yc="abcdefghijklmnopqrstuvwxyz",ip="0123456789",op={DIGIT:ip,ALPHA:Yc,ALPHA_DIGIT:Yc+Yc.toUpperCase()+ip},$1=(n=16,e=op.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function A1(n){return!!(n&&pr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const C1=n=>{const e=new Array(10),t=(r,h)=>{if(ja(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[h]=r;const u=Bo(r)?[]:{};return Ms(r,(p,w)=>{const d=t(p,h+1);!Rs(d)&&(u[w]=d)}),e[h]=void 0,u}}return r};return t(n,0)},T1=Fr("AsyncFunction"),E1=n=>n&&(ja(n)||pr(n))&&pr(n.then)&&pr(n.catch),sp=((n,e)=>n?setImmediate:e?((t,r)=>(so.addEventListener("message",({source:h,data:u})=>{h===so&&u===t&&r.length&&r.shift()()},!1),h=>{r.push(h),so.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",pr(so.postMessage)),R1=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||sp,ue={isArray:Bo,isArrayBuffer:Jf,isBuffer:Gb,isFormData:n1,isArrayBufferView:Yb,isString:Kb,isNumber:Xf,isBoolean:Qb,isObject:ja,isPlainObject:za,isReadableStream:i1,isRequest:o1,isResponse:s1,isHeaders:a1,isUndefined:Rs,isDate:Zb,isFile:Jb,isBlob:Xb,isRegExp:b1,isFunction:pr,isStream:t1,isURLSearchParams:r1,isTypedArray:g1,isFileList:e1,forEach:Ms,merge:Gc,extend:c1,trim:l1,stripBOM:u1,inherits:h1,toFlatObject:d1,kindOf:Wa,kindOfTest:Fr,endsWith:f1,toArray:p1,forEachEntry:m1,matchAll:y1,isHTMLForm:w1,hasOwnProperty:np,hasOwnProp:np,reduceDescriptors:rp,freezeMethods:x1,toObjectSet:_1,toCamelCase:v1,noop:k1,toFiniteNumber:S1,findKey:ep,global:so,isContextDefined:tp,ALPHABET:op,generateString:$1,isSpecCompliantForm:A1,toJSONObject:C1,isAsyncFn:T1,isThenable:E1,setImmediate:sp,asap:R1};function rt(n,e,t,r,h){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),h&&(this.response=h,this.status=h.status?h.status:null)}ue.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const ap=rt.prototype,lp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{lp[n]={value:n}}),Object.defineProperties(rt,lp),Object.defineProperty(ap,"isAxiosError",{value:!0}),rt.from=(n,e,t,r,h,u)=>{const p=Object.create(ap);return ue.toFlatObject(n,p,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),rt.call(p,n.message,e,t,r,h),p.cause=n,p.name=n.name,u&&Object.assign(p,u),p};const M1=null;function Kc(n){return ue.isPlainObject(n)||ue.isArray(n)}function cp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function up(n,e,t){return n?n.concat(e).map(function(r,h){return r=cp(r),!t&&h?"["+r+"]":r}).join(t?".":""):e}function L1(n){return ue.isArray(n)&&!n.some(Kc)}const I1=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Ua(n,e,t){if(!ue.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ue.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const r=t.metaTokens,h=t.visitor||g,u=t.dots,p=t.indexes,w=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(h))throw new TypeError("visitor must be a function");function d(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!w&&ue.isBlob(l))throw new rt("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,f){let y=l;if(l&&!f&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&L1(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(y=ue.toArray(l)))return o=cp(o),y.forEach(function(v,x){!(ue.isUndefined(v)||v===null)&&e.append(p===!0?up([o],x,u):p===null?o:o+"[]",d(v))}),!1}return Kc(l)?!0:(e.append(up(f,o,u),d(l)),!1)}const s=[],c=Object.assign(I1,{defaultVisitor:g,convertValue:d,isVisitable:Kc});function a(l,o){if(!ue.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),ue.forEach(l,function(f,y){(!(ue.isUndefined(f)||f===null)&&h.call(e,f,ue.isString(y)?y.trim():y,o,c))===!0&&a(f,o?o.concat(y):[y])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),e}function hp(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Qc(n,e){this._pairs=[],n&&Ua(n,this,e)}const dp=Qc.prototype;dp.append=function(n,e){this._pairs.push([n,e])},dp.toString=function(n){const e=n?function(t){return n.call(this,t,hp)}:hp;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function O1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fp(n,e,t){if(!e)return n;const r=t&&t.encode||O1;ue.isFunction(t)&&(t={serialize:t});const h=t&&t.serialize;let u;if(h?u=h(e,t):u=ue.isURLSearchParams(e)?e.toString():new Qc(e,t).toString(r),u){const p=n.indexOf("#");p!==-1&&(n=n.slice(0,p)),n+=(n.indexOf("?")===-1?"?":"&")+u}return n}class pp{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ue.forEach(this.handlers,function(t){t!==null&&e(t)})}}const gp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},D1=typeof URLSearchParams<"u"?URLSearchParams:Qc,N1=typeof FormData<"u"?FormData:null,F1=typeof Blob<"u"?Blob:null,P1={isBrowser:!0,classes:{URLSearchParams:D1,FormData:N1,Blob:F1},protocols:["http","https","file","blob","url","data"]},Zc=typeof window<"u"&&typeof document<"u",Jc=typeof navigator=="object"&&navigator||void 0,H1=Zc&&(!Jc||["ReactNative","NativeScript","NS"].indexOf(Jc.product)<0),W1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",B1=Zc&&window.location.href||"http://localhost",j1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zc,hasStandardBrowserEnv:H1,hasStandardBrowserWebWorkerEnv:W1,navigator:Jc,origin:B1},Symbol.toStringTag,{value:"Module"})),Wn={...j1,...P1};function z1(n,e){return Ua(n,new Wn.classes.URLSearchParams,Object.assign({visitor:function(t,r,h,u){return Wn.isNode&&ue.isBuffer(t)?(this.append(r,t.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},e))}function U1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function V1(n){const e={},t=Object.keys(n);let r;const h=t.length;let u;for(r=0;r<h;r++)u=t[r],e[u]=n[u];return e}function mp(n){function e(t,r,h,u){let p=t[u++];if(p==="__proto__")return!0;const w=Number.isFinite(+p),d=u>=t.length;return p=!p&&ue.isArray(h)?h.length:p,d?(ue.hasOwnProp(h,p)?h[p]=[h[p],r]:h[p]=r,!w):((!h[p]||!ue.isObject(h[p]))&&(h[p]=[]),e(t,r,h[p],u)&&ue.isArray(h[p])&&(h[p]=V1(h[p])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const t={};return ue.forEachEntry(n,(r,h)=>{e(U1(r),h,t,0)}),t}return null}function q1(n,e,t){if(ue.isString(n))try{return(e||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Ls={transitional:gp,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,h=ue.isObject(n);if(h&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(mp(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let u;if(h){if(t.indexOf("application/x-www-form-urlencoded")>-1)return z1(n,this.formSerializer).toString();if((u=ue.isFileList(n))||t.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ua(u?{"files[]":n}:n,p&&new p,this.formSerializer)}}return h||r?(e.setContentType("application/json",!1),q1(n)):n}],transformResponse:[function(n){const e=this.transitional||Ls.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(t&&!this.responseType||r)){const h=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(u){if(h)throw u.name==="SyntaxError"?rt.from(u,rt.ERR_BAD_RESPONSE,this,null,this.response):u}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wn.classes.FormData,Blob:Wn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{Ls.headers[n]={}});const G1=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Y1=n=>{const e={};let t,r,h;return n&&n.split(`
|
1376
|
+
`).forEach(function(u){h=u.indexOf(":"),t=u.substring(0,h).trim().toLowerCase(),r=u.substring(h+1).trim(),!(!t||e[t]&&G1[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},yp=Symbol("internals");function Is(n){return n&&String(n).trim().toLowerCase()}function Va(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Va):String(n)}function K1(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const Q1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Xc(n,e,t,r,h){if(ue.isFunction(r))return r.call(this,e,t);if(h&&(e=t),!!ue.isString(e)){if(ue.isString(r))return e.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(e)}}function Z1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function J1(n,e){const t=ue.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(h,u,p){return this[r].call(this,e,h,u,p)},configurable:!0})})}let ir=class{constructor(e){e&&this.set(e)}set(e,t,r){const h=this;function u(w,d,g){const s=Is(d);if(!s)throw new Error("header name must be a non-empty string");const c=ue.findKey(h,s);(!c||h[c]===void 0||g===!0||g===void 0&&h[c]!==!1)&&(h[c||d]=Va(w))}const p=(w,d)=>ue.forEach(w,(g,s)=>u(g,s,d));if(ue.isPlainObject(e)||e instanceof this.constructor)p(e,t);else if(ue.isString(e)&&(e=e.trim())&&!Q1(e))p(Y1(e),t);else if(ue.isHeaders(e))for(const[w,d]of e.entries())u(d,w,r);else e!=null&&u(t,e,r);return this}get(e,t){if(e=Is(e),e){const r=ue.findKey(this,e);if(r){const h=this[r];if(!t)return h;if(t===!0)return K1(h);if(ue.isFunction(t))return t.call(this,h,r);if(ue.isRegExp(t))return t.exec(h);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Is(e),e){const r=ue.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Xc(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let h=!1;function u(p){if(p=Is(p),p){const w=ue.findKey(r,p);w&&(!t||Xc(r,r[w],w,t))&&(delete r[w],h=!0)}}return ue.isArray(e)?e.forEach(u):u(e),h}clear(e){const t=Object.keys(this);let r=t.length,h=!1;for(;r--;){const u=t[r];(!e||Xc(this,this[u],u,e,!0))&&(delete this[u],h=!0)}return h}normalize(e){const t=this,r={};return ue.forEach(this,(h,u)=>{const p=ue.findKey(r,u);if(p){t[p]=Va(h),delete t[u];return}const w=e?Z1(u):String(u).trim();w!==u&&delete t[u],t[w]=Va(h),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ue.forEach(this,(r,h)=>{r!=null&&r!==!1&&(t[h]=e&&ue.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(h=>r.set(h)),r}static accessor(e){const t=(this[yp]=this[yp]={accessors:{}}).accessors,r=this.prototype;function h(u){const p=Is(u);t[p]||(J1(r,u),t[p]=!0)}return ue.isArray(e)?e.forEach(h):h(e),this}};ir.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(ir.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ue.freezeMethods(ir);function eu(n,e){const t=this||Ls,r=e||t,h=ir.from(r.headers);let u=r.data;return ue.forEach(n,function(p){u=p.call(t,u,h.normalize(),e?e.status:void 0)}),h.normalize(),u}function wp(n){return!!(n&&n.__CANCEL__)}function jo(n,e,t){rt.call(this,n??"canceled",rt.ERR_CANCELED,e,t),this.name="CanceledError"}ue.inherits(jo,rt,{__CANCEL__:!0});function vp(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new rt("Request failed with status code "+t.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function X1(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function ex(n,e){n=n||10;const t=new Array(n),r=new Array(n);let h=0,u=0,p;return e=e!==void 0?e:1e3,function(w){const d=Date.now(),g=r[u];p||(p=d),t[h]=w,r[h]=d;let s=u,c=0;for(;s!==h;)c+=t[s++],s=s%n;if(h=(h+1)%n,h===u&&(u=(u+1)%n),d-p<e)return;const a=g&&d-g;return a?Math.round(c*1e3/a):void 0}}function tx(n,e){let t=0,r=1e3/e,h,u;const p=(w,d=Date.now())=>{t=d,h=null,u&&(clearTimeout(u),u=null),n.apply(null,w)};return[(...w)=>{const d=Date.now(),g=d-t;g>=r?p(w,d):(h=w,u||(u=setTimeout(()=>{u=null,p(h)},r-g)))},()=>h&&p(h)]}const qa=(n,e,t=3)=>{let r=0;const h=ex(50,250);return tx(u=>{const p=u.loaded,w=u.lengthComputable?u.total:void 0,d=p-r,g=h(d),s=p<=w;r=p;const c={loaded:p,total:w,progress:w?p/w:void 0,bytes:d,rate:g||void 0,estimated:g&&w&&s?(w-p)/g:void 0,event:u,lengthComputable:w!=null,[e?"download":"upload"]:!0};n(c)},t)},bp=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},xp=n=>(...e)=>ue.asap(()=>n(...e)),nx=Wn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Wn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,rx=Wn.hasStandardBrowserEnv?{write(n,e,t,r,h,u){const p=[n+"="+encodeURIComponent(e)];ue.isNumber(t)&&p.push("expires="+new Date(t).toGMTString()),ue.isString(r)&&p.push("path="+r),ue.isString(h)&&p.push("domain="+h),u===!0&&p.push("secure"),document.cookie=p.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ix(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ox(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function _p(n,e){return n&&!ix(e)?ox(n,e):e}const kp=n=>n instanceof ir?{...n}:n;function ao(n,e){e=e||{};const t={};function r(g,s,c,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function h(g,s,c,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g,c,a)}else return r(g,s,c,a)}function u(g,s){if(!ue.isUndefined(s))return r(void 0,s)}function p(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,c){if(c in e)return r(g,s);if(c in n)return r(void 0,g)}const d={url:u,method:u,data:u,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,responseEncoding:p,validateStatus:w,headers:(g,s,c)=>h(kp(g),kp(s),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||h,c=s(n[g],e[g],g);ue.isUndefined(c)&&s!==w||(t[g]=c)}),t}const Sp=n=>{const e=ao({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:h,xsrfCookieName:u,headers:p,auth:w}=e;e.headers=p=ir.from(p),e.url=fp(_p(e.baseURL,e.url),n.params,n.paramsSerializer),w&&p.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let d;if(ue.isFormData(t)){if(Wn.hasStandardBrowserEnv||Wn.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((d=p.getContentType())!==!1){const[g,...s]=d?d.split(";").map(c=>c.trim()).filter(Boolean):[];p.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Wn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(e)),r||r!==!1&&nx(e.url))){const g=h&&u&&rx.read(u);g&&p.set(h,g)}return e},sx=typeof XMLHttpRequest<"u",ax=sx&&function(n){return new Promise(function(e,t){const r=Sp(n);let h=r.data;const u=ir.from(r.headers).normalize();let{responseType:p,onUploadProgress:w,onDownloadProgress:d}=r,g,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function y(){if(!f)return;const x=ir.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),M={data:!p||p==="text"||p==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:n,request:f};vp(function(A){e(A),o()},function(A){t(A),o()},M),f=null}"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(t(new rt("Request aborted",rt.ECONNABORTED,n,f)),f=null)},f.onerror=function(){t(new rt("Network Error",rt.ERR_NETWORK,n,f)),f=null},f.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||gp;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new rt(x,M.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,n,f)),f=null},h===void 0&&u.setContentType(null),"setRequestHeader"in f&&ue.forEach(u.toJSON(),function(x,M){f.setRequestHeader(M,x)}),ue.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),p&&p!=="json"&&(f.responseType=r.responseType),d&&([c,l]=qa(d,!0),f.addEventListener("progress",c)),w&&f.upload&&([s,a]=qa(w),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{f&&(t(!x||x.type?new jo(null,n,f):x),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const v=X1(r.url);if(v&&Wn.protocols.indexOf(v)===-1){t(new rt("Unsupported protocol "+v+":",rt.ERR_BAD_REQUEST,n));return}f.send(h||null)})},lx=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,h;const u=function(g){if(!h){h=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof rt?s:new jo(s instanceof Error?s.message:s))}};let p=e&&setTimeout(()=>{p=null,u(new rt(`timeout ${e} of ms exceeded`,rt.ETIMEDOUT))},e);const w=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),n=null)};n.forEach(g=>g.addEventListener("abort",u));const{signal:d}=r;return d.unsubscribe=()=>ue.asap(w),d}},cx=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,h;for(;r<t;)h=r+e,yield n.slice(r,h),r=h},ux=async function*(n,e){for await(const t of hx(n))yield*cx(t,e)},hx=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},$p=(n,e,t,r)=>{const h=ux(n,e);let u=0,p,w=d=>{p||(p=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await h.next();if(g){w(),d.close();return}let c=s.byteLength;if(t){let a=u+=c;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(d){return w(d),h.return()}},{highWaterMark:2})},Ga=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ap=Ga&&typeof ReadableStream=="function",dx=Ga&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Cp=(n,...e)=>{try{return!!n(...e)}catch{return!1}},fx=Ap&&Cp(()=>{let n=!1;const e=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Tp=64*1024,tu=Ap&&Cp(()=>ue.isReadableStream(new Response("").body)),Ya={stream:tu&&(n=>n.body)};Ga&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ya[e]&&(Ya[e]=ue.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new rt(`Response type '${e}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const px=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Wn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await dx(n)).byteLength},gx=async(n,e)=>ue.toFiniteNumber(n.getContentLength())??px(e),mx=Ga&&(async n=>{let{url:e,method:t,data:r,signal:h,cancelToken:u,timeout:p,onDownloadProgress:w,onUploadProgress:d,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=Sp(n);g=g?(g+"").toLowerCase():"text";let l=lx([h,u&&u.toAbortSignal()],p),o;const f=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let y;try{if(d&&fx&&t!=="get"&&t!=="head"&&(y=await gx(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(ue.isFormData(r)&&(b=k.headers.get("content-type"))&&s.setContentType(b),k.body){const[T,R]=bp(y,qa(xp(d)));r=$p(k.body,Tp,T,R)}}ue.isString(c)||(c=c?"include":"omit");const v="credentials"in Request.prototype;o=new Request(e,{...a,signal:l,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:v?c:void 0});let x=await fetch(o);const M=tu&&(g==="stream"||g==="response");if(tu&&(w||M&&f)){const k={};["status","statusText","headers"].forEach(L=>{k[L]=x[L]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&bp(b,qa(xp(w),!0))||[];x=new Response($p(x.body,Tp,T,()=>{R&&R(),f&&f()}),k)}g=g||"text";let A=await Ya[ue.findKey(Ya,g)||"text"](x,n);return!M&&f&&f(),await new Promise((k,b)=>{vp(k,b,{data:A,headers:ir.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(v){throw f&&f(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,n,o),{cause:v.cause||v}):rt.from(v,v&&v.code,n,o)}}),nu={http:M1,xhr:ax,fetch:mx};ue.forEach(nu,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ep=n=>`- ${n}`,yx=n=>ue.isFunction(n)||n===null||n===!1,Rp={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:e}=n;let t,r;const h={};for(let u=0;u<e;u++){t=n[u];let p;if(r=t,!yx(t)&&(r=nu[(p=String(t)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${p}'`);if(r)break;h[p||"#"+u]=r}if(!r){const u=Object.entries(h).map(([w,d])=>`adapter ${w} `+(d===!1?"is not supported by the environment":"is not available in the build"));let p=e?u.length>1?`since :
|
1378
|
+
`+u.map(Ep).join(`
|
1379
|
+
`):" "+Ep(u[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:nu};function ru(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new jo(null,n)}function Mp(n){return ru(n),n.headers=ir.from(n.headers),n.data=eu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Rp.getAdapter(n.adapter||Ls.adapter)(n).then(function(e){return ru(n),e.data=eu.call(n,n.transformResponse,e),e.headers=ir.from(e.headers),e},function(e){return wp(e)||(ru(n),e&&e.response&&(e.response.data=eu.call(n,n.transformResponse,e.response),e.response.headers=ir.from(e.response.headers))),Promise.reject(e)})}const Lp="1.7.9",Ka={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ka[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Ip={};Ka.transitional=function(n,e,t){function r(h,u){return"[Axios v"+Lp+"] Transitional option '"+h+"'"+u+(t?". "+t:"")}return(h,u,p)=>{if(n===!1)throw new rt(r(u," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!Ip[u]&&(Ip[u]=!0,console.warn(r(u," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(h,u,p):!0}},Ka.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function wx(n,e,t){if(typeof n!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let h=r.length;for(;h-- >0;){const u=r[h],p=e[u];if(p){const w=n[u],d=w===void 0||p(w,u,n);if(d!==!0)throw new rt("option "+u+" must be "+d,rt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new rt("Unknown option "+u,rt.ERR_BAD_OPTION)}}const Qa={assertOptions:wx,validators:Ka},Kr=Qa.validators;let lo=class{constructor(n){this.defaults=n,this.interceptors={request:new pp,response:new pp}}async request(n,e){try{return await this._request(n,e)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const h=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?h&&!String(t.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
1380
|
+
`+h):t.stack=h}catch{}}throw t}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=ao(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:h}=e;t!==void 0&&Qa.assertOptions(t,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),r!=null&&(ue.isFunction(r)?e.paramsSerializer={serialize:r}:Qa.assertOptions(r,{encode:Kr.function,serialize:Kr.function},!0)),Qa.assertOptions(e,{baseUrl:Kr.spelling("baseURL"),withXsrfToken:Kr.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let u=h&&ue.merge(h.common,h[e.method]);h&&ue.forEach(["delete","get","head","post","put","patch","common"],l=>{delete h[l]}),e.headers=ir.concat(u,h);const p=[];let w=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(e)===!1||(w=w&&l.synchronous,p.unshift(l.fulfilled,l.rejected))});const d=[];this.interceptors.response.forEach(function(l){d.push(l.fulfilled,l.rejected)});let g,s=0,c;if(!w){const l=[Mp.bind(this),void 0];for(l.unshift.apply(l,p),l.push.apply(l,d),c=l.length,g=Promise.resolve(e);s<c;)g=g.then(l[s++],l[s++]);return g}c=p.length;let a=e;for(s=0;s<c;){const l=p[s++],o=p[s++];try{a=l(a)}catch(f){o.call(this,f);break}}try{g=Mp.call(this,a)}catch(l){return Promise.reject(l)}for(s=0,c=d.length;s<c;)g=g.then(d[s++],d[s++]);return g}getUri(n){n=ao(this.defaults,n);const e=_p(n.baseURL,n.url);return fp(e,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){lo.prototype[n]=function(e,t){return this.request(ao(t||{},{method:n,url:e,data:(t||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function e(t){return function(r,h,u){return this.request(ao(u||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:h}))}}lo.prototype[n]=e(),lo.prototype[n+"Form"]=e(!0)});let vx=class $v{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(h){t=h});const r=this;this.promise.then(h=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](h);r._listeners=null}),this.promise.then=h=>{let u;const p=new Promise(w=>{r.subscribe(w),u=w}).then(h);return p.cancel=function(){r.unsubscribe(u)},p},e(function(h,u,p){r.reason||(r.reason=new jo(h,u,p),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new $v(function(t){e=t}),cancel:e}}};function bx(n){return function(e){return n.apply(null,e)}}function xx(n){return ue.isObject(n)&&n.isAxiosError===!0}const iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(iu).forEach(([n,e])=>{iu[e]=n});function Op(n){const e=new lo(n),t=Zf(lo.prototype.request,e);return ue.extend(t,lo.prototype,e,{allOwnKeys:!0}),ue.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Op(ao(n,r))},t}const hn=Op(Ls);hn.Axios=lo,hn.CanceledError=jo,hn.CancelToken=vx,hn.isCancel=wp,hn.VERSION=Lp,hn.toFormData=Ua,hn.AxiosError=rt,hn.Cancel=hn.CanceledError,hn.all=function(n){return Promise.all(n)},hn.spread=bx,hn.isAxiosError=xx,hn.mergeConfig=ao,hn.AxiosHeaders=ir,hn.formToJSON=n=>mp(ue.isHTMLForm(n)?new FormData(n):n),hn.getAdapter=Rp.getAdapter,hn.HttpStatusCode=iu,hn.default=hn;const{Axios:DO,AxiosError:NO,CanceledError:FO,isCancel:PO,CancelToken:HO,VERSION:WO,all:BO,Cancel:jO,isAxiosError:zO,spread:UO,toFormData:VO,AxiosHeaders:qO,HttpStatusCode:GO,formToJSON:YO,getAdapter:KO,mergeConfig:QO}=hn,ou=hn.create({baseURL:location.origin,timeout:6e4,params:{}});ou.interceptors.response.use(n=>n,n=>{var e,t,r,h,u,p,w,d,g,s,c;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;(e=n.response)!=null&&e.statusText&&(a+=`${n.response.statusText} `),(r=(t=n.response)==null?void 0:t.config)!=null&&r.data&&(a+=`${n.response.config.data} `),(u=(h=n.response)==null?void 0:h.data)!=null&&u.message?a+=`${n.response.data.message}`:(w=(p=n.response)==null?void 0:p.data)!=null&&w.exception?a+=`${n.response.data.exception}`:(s=(g=(d=n.response)==null?void 0:d.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:a}),n}else throw n});const Za=async function(n,e,{data:t,params:r={},headers:h,noAuth:u=!1,noScope:p=!1,onUploadProgress:w=!1}={}){if(!u){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}h.Authorization=localStorage.openc3Token}return h.manual=!0,!p&&!r.scope&&(r.scope=window.openc3Scope),ou({method:n,url:e,data:t,params:r,headers:h,onUploadProgress:w})},su={Accept:"application/json"},Dp={...su,"Content-Type":"application/json"},_x=On("M",{get:function(n,{params:e,headers:t=su,noScope:r,noAuth:h,onUploadProgress:u}={}){return Za("get",n,{params:e,headers:t,noScope:r,noAuth:h,onUploadProgress:u})},put:function(n,{data:e,params:t,headers:r=Dp,noScope:h,noAuth:u,onUploadProgress:p}={}){return Za("put",n,{data:e,params:t,headers:r,noScope:h,noAuth:u,onUploadProgress:p})},post:function(n,{data:e,params:t,headers:r=Dp,noScope:h,noAuth:u,onUploadProgress:p}={}){return Za("post",n,{data:e,params:t,headers:r,noScope:h,noAuth:u,onUploadProgress:p})},delete:function(n,{params:e,headers:t=su,noScope:r,noAuth:h,onUploadProgress:u}={}){return Za("delete",n,{params:e,headers:t,noScope:r,noAuth:h,onUploadProgress:u})}});let Ja=()=>({emit(n,...e){for(let t=this.events[n]||[],r=0,h=t.length;r<h;r++)t[r](...e)},events:{},on(n,e){var t;return((t=this.events)[n]||(t[n]=[])).push(e),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(h=>e!==h)}}});class Os extends Error{constructor(e,t){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=t,this.name="ReasonError"}}class au extends Os{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class kx extends Os{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Pr extends Os{constructor(e,t){t?super(e,t):super("Disconnected",e),this.name="DisconnectedError"}}class Sx extends Pr{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function Np(n){return n?`{${Object.keys(n).sort().filter(e=>n[e]!==void 0).map(e=>{let t=JSON.stringify(n[e]);return`${JSON.stringify(e)}:${t}`}).join(",")}}`:""}class $x{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,t){if(!this._info)return this._info={id:e,info:t},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((t,{id:r,info:h})=>(t[r]=h,t),{})}}const co=Symbol("state");class Fp{constructor(e={}){this.emitter=Ja(),this.params=Object.freeze(e),this.presence=new $x(this),this.initialConnect=!0,this[co]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Np({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[co]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[co]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[co]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[co]="connected";let e=!0,t=!0;this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[co]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[co]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,t){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,t)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(t){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",t)}}receive(e,t){this.emit("message",e,t)}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...h)=>{r(),t(...h)});return r}emit(e,...t){return this.emitter.emit(e,...t)}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((e,t)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(h=>h()),e()})),r.push(this.on("close",h=>{r.forEach(u=>u()),t(h||new Os("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Ax{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let t=this.channels.indexOf(e);t>-1&&this.channels.splice(t,1)}notify(e,...t){this.state=e==="restored"?"connected":e,t.length===1?this.channels.forEach(r=>r[e](t[0])):this.channels.forEach(r=>r[e]())}pending(e){this._checkIntent(e);let t=this._pendings[0];return!t||t.intent!==e?Promise.resolve():t.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(e){this._checkIntent(e);let t,r={promise:new Promise(u=>{t=u}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),t(r)},canceled:!1,acquired:!1},h=this._pendingTop;return this._pendings.push(r),h&&await h.promise,this.gvl&&await this.gvl.acquire(r,e),r.acquired=!0,r}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let t=this._pendingTop;return!t||t.acquired||t.intent!==e?!1:(this._pendings.pop(),t.canceled=!0,!0)}}class Cx{constructor(){this.queue=[]}async acquire(e,t){t==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Tx{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new Cx),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:t,unsubscribe:r}){let h=this._subscriptions[e]=new Ax(e);return h.remoteId=this._localToRemote[e],h.subscriber=t,h.unsubscriber=r,h.gvl=this.glv,h}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,t){this._localToRemote[e]=t;let r=this.get(e);r&&(r.remoteId=t)}}class Ex{constructor(e={}){this.subscriptions=new Tx(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,t){this._remoteToLocal[t]=e,this.subscriptions.storeRemoteId(e,t),this.flush(t)}unsubscribe(e){let t=this.subscriptions.get(e);if(!t)return;let r=t.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(e)}transmit(e,t,r){let h=this._remoteToLocal[e];if(!h){this._pendingMessages.push([e,t,r]);return}let u=this.subscriptions.get(h);u&&u.channels.forEach(p=>{p.receive(t,r)})}notify(e,t,r){let h=this._remoteToLocal[e];if(!h)return;let u=this.subscriptions.get(h);u&&u.channels.forEach(p=>p.emit(t,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let t=[];for(let r of this._pendingMessages)r[0]===e?this.transmit(r[0],r[1],r[2]):t.push(r);this._pendingMessages=t}}const Pp={debug:0,info:1,warn:2,error:3};class Hp{constructor(e){this.level=e||"warn"}log(e,t,r){Pp[e]<Pp[this.level]||this.writeLogEntry(e,t,r)}writeLogEntry(){throw Error("Not implemented")}debug(e,t){this.log("debug",e,t)}info(e,t){this.log("info",e,t)}warn(e,t){this.log("warn",e,t)}error(e,t){this.log("error",e,t)}}class Ds extends Hp{writeLogEntry(){}}class Rx{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Mx=0;class Wp{constructor(e={}){let{logger:t}=e;this.logger=t||new Ds,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,t){let r={channel:e};t&&Object.assign(r,t);let h=Np(r);if(this.pendingUnsubscriptions[h]){let p=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${p}`,h),new Promise(w=>{setTimeout(()=>{w(this.subscribe(e,t))},p)})}if(this.pendingSubscriptions[h])return this.logger.warn("subscription is already pending, skipping",h),Promise.reject(Error("Already subscribing"));let u=this.subscribeRetryInterval;return new Promise((p,w)=>{let d=++Mx;this.pendingSubscriptions[h]={resolve:p,reject:w,id:d},this.cable.send(this.buildSubscribeRequest(h)),this.maybeRetrySubscribe(d,h,u)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,t,r){setTimeout(()=>{let h=this.pendingSubscriptions[t];h&&h.id===e&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,t),this.cable.send(this.buildSubscribeRequest(t)),this.maybeExpireSubscribe(e,t,r))},r)}maybeExpireSubscribe(e,t,r){setTimeout(()=>{let h=this.pendingSubscriptions[t];h&&h.id===e&&(delete this.pendingSubscriptions[t],h.reject(new kx(`Haven't received subscription ack in ${r*2}ms for ${t}`)))},r)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,t,r){return t==="$whisper"?this.whisper(e,r):(r||(r={}),r.action=t,this.cable.send({command:"message",identifier:e,data:JSON.stringify(r)}),Promise.resolve())}whisper(e,t){return this.cable.send({command:"whisper",identifier:e,data:t}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:h,reason:u,reconnect:p}=e;if(t==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="welcome"){let w=e.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(t==="disconnect"){let w=new Pr(u);this.reset(w),p===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(t==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:t,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(t==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new au)):this.logger.error("subscription not found",{type:t,identifier:r})}if(h)return{identifier:r,message:h};this.logger.warn(`unknown message type: ${t}`,{message:e})}reset(e){for(let t in this.pendingSubscriptions)this.pendingSubscriptions[t].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Bp=()=>Date.now()/1e3|0;class Lx extends Wp{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=Bp()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let t in this.pendingPresence)this.pendingPresence[t].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:h}=e;if(t==="disconnect"||t==="reject_subscription")return super.receive(e);if(t==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(e);if(t==="ping")return this.restoreSince&&(this.restoreSince=Bp()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",r);return}if(t==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",r);return}if(t==="welcome"){if(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),e.restored){let u=e.restored_ids||Object.keys(this.subscriptionStreams);for(let p of u)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(u)}return this.cable.connected(this.sessionId)}if(t==="presence"){let u=h.type;if(u==="info"){let p=this.pendingPresence[r];p&&(delete this.pendingPresence[r],p.resolve(h))}else if(u==="error"){let p=this.pendingPresence[r];p&&(delete this.pendingPresence[r],p.reject(new Error("failed to retrieve presence")))}return{type:t,identifier:r,message:h}}if(h){let u=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:h,meta:u}}this.logger.warn(`unknown message type: ${t}`,{message:e})}perform(e,t,r){switch(t){case"$presence:join":return this.join(e,r);case"$presence:leave":return this.leave(e,r);case"$presence:info":return this.presence(e,r)}return super.perform(e,t,r)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let t=super.buildSubscribeRequest(e),r=this.historyRequestFor(e);r&&(t.history=r,this.pendingHistory[e]=!0);let h=this.presenceInfo[e];return h&&(t.presence=h),t}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let t={},r=!1;if(this.subscriptionStreams[e])for(let h of this.subscriptionStreams[e]){let u=this.streamsPositions[h];u&&(r=!0,t[h]=u)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:t}}trackStreamPosition(e,t,r,h){if(!(!t||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(t),this.streamsPositions[t]={epoch:r,offset:h},{stream:t,epoch:r,offset:h}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,t){return this.presenceInfo[e]=t,this.cable.send({command:"join",identifier:e,presence:t}),Promise.resolve()}async leave(e,t){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:t}),Promise.resolve()}presence(e,t){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((r,h)=>{this.pendingPresence[e]={resolve:r,reject:h},this.cable.send({command:"presence",identifier:e,data:t})})}}class Ix extends Os{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class lu extends Fp{constructor(e,t){super(t),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}Vc(lu,"identifier","__ghost__");const Ox="$pubsub";class cu extends Fp{async perform(e,t){if(e.startsWith("$"))return super.perform(e,t);throw Error("not implemented")}}Vc(cu,"identifier",Ox);const uo=Symbol("state");let Dx=class{constructor({transport:n,protocol:e,encoder:t,logger:r,lazy:h,hubOptions:u,performFailures:p}){this.emitter=Ja(),this.transport=n,this.encoder=t,this.logger=r||new Ds,this.protocol=e,this.performFailures=p||"throw",this.protocol.attached(this),this.hub=new Ex(u||{}),this[uo]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,h===!1&&this.connect().catch(()=>{})}get state(){return this[uo]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();this[uo]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{await this.transport.open()}catch(e){this.handleClose(e)}return n}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[uo]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new Pr("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[uo]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Pr("recovery_failed")),this._resubscribe(r))});let e=!this.initialConnect,t=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}notify(n,e,t){e&&typeof e!="string"&&(t=e,e=void 0),e?this.hub.notify(e,"info",{type:n,data:t}):this.emit("info",{type:n,data:t})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Pr(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[uo]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let e;n&&(e=n instanceof Pr?n:new Pr(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[uo]="closed";let t=e||new Pr("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",t)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(n);if(e===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",e);let t=this.protocol.receive(e);if(t){this.logger.debug("processed incoming message",t);let{type:r,identifier:h,message:u,meta:p}=t;r?this.hub.notify(h,r,u):this.hub.transmit(h,u,p)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(n);if(e===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(e)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let e=new cu({stream_name:n});return this.subscribe(e)}streamFromSigned(n){let e=new cu({signed_stream_name:n});return this.subscribe(e)}subscribeTo(n,e){let t,r;return typeof n=="string"&&(r=n,n=lu),t=r?new n(r,e):new n(e),this.subscribe(t)}subscribe(n){if(!n.attached(this))return n;let e=n.identifier;n.connecting();let t=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return t.add(n),t.intent==="subscribed"&&t.state==="connected"&&n.connected(),t.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,e,t){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let h=await n.acquire("subscribed");if(h.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),h.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),h.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),h.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),h.release();return}let u={identifier:e,params:t};this.logger.debug("subscribing",u);try{let p=await this.protocol.subscribe(e,t);this.hub.subscribe(r,p),this.logger.debug("subscribed",{...u,remoteId:p}),n.notify("connected")}catch(p){if(p){if(p instanceof au&&this.logger.warn("rejected",u),p instanceof Pr){this.logger.debug("disconnected during subscription; will retry on connect",u),h.release();return}this.logger.error("failed to subscribe",{error:p,...u})}n.close(p),this.hub.unsubscribe(r)}h.release()}unsubscribe(n){let e=n.identifier,t=this.hub.subscriptions.get(e);if(!t)throw Error(`Subscription not found: ${e}`);t.remove(n),n.closed(),t.maybeUnsubscribe()}async _unsubscribe(n){let e=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let t=await n.acquire("unsubscribed");if(t.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),t.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:n.intent}),t.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:e}),t.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),n.close(),this.hub.unsubscribe(e),t.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:e})}catch(h){h&&(h instanceof Pr?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:h}):this.logger.error("unsubscribe failed",{id:e,error:h}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(e)):n.state="closed",t.release()}async perform(n,e,t){if(this.performFailures==="throw")return this._perform(n,e,t);try{return await this._perform(n,e,t)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,e,t){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Ix;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let h=r.remoteId,u={id:h,action:e,payload:t};this.logger.debug("perform",u);try{let p=await this.protocol.perform(h,e,t);return p&&this.logger.debug("perform result",{message:p,request:u}),p}catch(p){throw this.logger.error("perform failed",{error:p,request:u}),p}}on(n,e){return this.emitter.on(n,e)}once(n,e){let t=this.emitter.on(n,(...r)=>{t(),e(...r)});return t}emit(n,...e){return this.emitter.emit(n,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,e)=>{let t=[()=>delete this._pendingConnect];t.push(this.on("connect",()=>{t.forEach(r=>r()),n()})),t.push(this.on("close",r=>{t.forEach(h=>h()),e(r)})),t.push(this.on("disconnect",r=>{t.forEach(h=>h()),e(r)}))}),this._pendingConnect)}};const Nx={maxMissingPings:2,maxReconnectAttempts:1/0},zo=()=>Date.now(),jp=(n,e)=>{e=e||{};let{backoffRate:t,jitterRatio:r,maxInterval:h}=e;return t=t||2,r===void 0&&(r=.5),u=>{let p=n*t**u,w=p*t,d=p+(w-p)*Math.random(),g=2*(Math.random()-.5)*r;return d=d*(1+g),h&&h<d&&(d=h),d}};let zp=class{constructor({pingInterval:n,...e}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(e=Object.assign({},Nx,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Ds,this.state="pending_connect",this.attempts=0,this.disconnectedAt=zo()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=zo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=zo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=zo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=zo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=zo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Sx))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Fx{constructor(e,t={}){this.transports=e,this.transport=null,this.emitter=Ja(),this.unbind=[],this.logger=t.logger||new Ds}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let t=this.transports[e];try{this.transport=t,this.resetListeners(),this.logger.debug(`Trying to connect via ${t.displayName()}`),await t.open(),this.logger.debug(`Connected via ${t.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${t.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}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(e,t){this.transports.forEach(r=>{r.setParam(e,t)})}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...h)=>{r(),t(...h)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Px{constructor(e,t={}){this.url=e;let r=t.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=Ja();let{format:h,subprotocol:u}=t;this.format=h||"text",this.connectionOptions=t.websocketOptions,this.subprotocol=u}displayName(){return"WebSocket("+this.url+")"}open(){return this.connectionOptions?this.ws=new this.Impl(this.url,this.subprotocol,this.connectionOptions):this.ws=new this.Impl(this.url,this.subprotocol),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,t)=>{let r=[];r.push(this.once("open",()=>{r.forEach(h=>h()),e()})),r.push(this.once("close",()=>{r.forEach(h=>h()),t(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,t){let r=new URL(this.url);r.searchParams.set(e,t);let h=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(h)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...h)=>{r(),t(...h)});return r}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let t=e.data;this.format==="binary"&&(t=new Uint8Array(t)),this.emitter.emit("data",t)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Up={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Hx(n,e){if(typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),e=e||{},!n&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},Up,e);let{protocol:t,websocketImplementation:r,websocketFormat:h,websocketOptions:u,fallbacks:p,logLevel:w,logger:d,transport:g,encoder:s,lazy:c,monitor:a,pingInterval:l,reconnectStrategy:o,maxMissingPings:f,maxReconnectAttempts:y,subprotocol:v,tokenRefresher:x,historyTimestamp:M,protocolOptions:A,concurrentSubscribes:k}=e;if(d=d||new Ds(w),typeof t=="string"){v=v||t;let R=t.substring(0,t.lastIndexOf("-")),L=t.substring(t.lastIndexOf("-")+1);if(A=A||{},R==="actioncable-v1")t=new Wp({logger:d,...A});else if(R==="actioncable-v1-ext")t=new Lx({logger:d,historyTimestamp:M,...A});else throw Error(`Protocol is not supported yet: ${t}`);if(L==="json")s=s||new Rx,h=h||"text";else if(L==="msgpack"){if(h="binary",!s)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(L==="protobuf"){if(h=h||"binary",!s)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: ${t}`)}if(!t)throw Error("Protocol must be specified");g=g||new Px(n,{websocketImplementation:r,websocketOptions:u,subprotocol:v,format:h}),p&&(g=new Fx([g,...p],{logger:d})),o=o||jp(l),a!==!1&&(a=a||new zp({pingInterval:l,reconnectStrategy:o,maxMissingPings:f,maxReconnectAttempts:y,logger:d}));let b={concurrentSubscribes:k},T=new Dx({protocol:t,transport:g,encoder:s,logger:d,lazy:c,hubOptions:b});return a&&(a.watch(T),T.monitor=a),x&&Wx(T,async()=>{try{await x(g)}catch(R){return d.error("Failed to refresh authentication token: "+R),!1}return T.connect().catch(()=>{}),!0}),T}function Wx(n,e){let t=!1;n.on("connect",()=>t=!1),n.on("close",async r=>{if(r){if(t){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(t=!0,await e())}})}class Bx{constructor(e){this.channel=e}notify(e,...t){typeof this[e]=="function"&&this[e](...t)}perform(e,t={}){this.channel.perform(e,t)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class jx extends lu{constructor(e,t,r){super(e,t),this.subscription=new Bx(this),Object.assign(this.subscription,r),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",h=>this.subscription.notify("received",h)),this.on("close",h=>{h&&h instanceof au?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class zx{constructor(e){this.cable=e}create(e,t){let r,h;typeof e=="object"?(r=e.channel,delete e.channel,h=e):(r=e,h={});let u=new jx(r,h,t);return u.subscription.notify("initialized"),this.cable.subscribe(u),u.subscription}findAll(e){return this.cable.hub.channels.filter(t=>t.identifier===e).map(t=>t.subscription)}}class Ux{constructor(e){this.cable=e,this.subscriptions=new zx(e)}}class Vx extends Hp{writeLogEntry(e,t,r){r?console[e](t,r):console[e](t)}}class qx extends zp{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},t=h=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:h})},r=()=>this.disconnect(new Pr("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",t,!1),window.addEventListener("resume",t,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",t,!1),window.removeEventListener("online",t,!1),window.removeEventListener("resume",t,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Gx=["cable","action-cable"],Yx="/cable",Vp=(n,e)=>{for(let t of Gx){let r=n.head.querySelector(`meta[name='${t}-${e}']`);if(r)return r.getAttribute("content")}},qp=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,Kx=()=>{if(typeof document<"u"&&document.head){let n=Vp(document,"url");if(n)return qp(n)}return qp(Yx)},Qx=()=>{if(typeof document<"u"&&document.head){let n=Vp(document,"history-timestamp");if(n)return n|0}};function Zx(n,e){typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),n=n||Kx(),e=e||{},e.historyTimestamp||(e.historyTimestamp=Qx()),e=Object.assign({},Up,e);let{logLevel:t,logger:r,pingInterval:h,reconnectStrategy:u,maxMissingPings:p,maxReconnectAttempts:w}=e;return r=e.logger=e.logger||new Vx(t),u=e.reconnectStrategy=e.reconnectStrategy||jp(h),e.monitor!==!1&&(e.monitor=e.monitor||new qx({pingInterval:h,reconnectStrategy:u,maxMissingPings:p,maxReconnectAttempts:w,logger:r})),Hx(n,e)}function Jx(n,e){let t=Zx(n,e);return new Ux(t)}class Xx{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,t,r={},h={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(u=>{if(u&&OpenC3Auth.setTokens(),this._cable==null){let p=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);p=new URL(p,document.baseURI).href,this._cable=Jx(p)}return this._cable.subscriptions.create({channel:e,...h},r)})}recordPing(){}}On("L",Xx);class e_{constructor(e,t,r="",h=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=r,this.url=h}}On("u",e_);class t_{constructor(){Vc(this,"id",1)}async exec(e,t,r={},h={},u=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,h.manual=!0,(await ou.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...h},timeout:u})).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.name="Unknown error",w}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(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(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...r){return this.exec("interface_cmd",[e,t,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,r){return this.exec("get_item",[e,t,r])}get_param(e,t,r){return this.exec("get_param",[e,t,r])}get_parameter(e,t,r){return this.exec("get_param",[e,t,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_tlm",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,t,r,h=30){const u=await this.exec("get_tlm_packet",[e,t],{type:r,stale_time:h});if(u!=null){let p=u.length,w=null;for(let d=0;d<p;d++)w=this.decode_openc3_type(u[d][1]),w!==null&&(u[d][1]=w)}return u}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,r=null){let h={stale_time:t};r!==null&&(h.cache_timeout=r);const u=await this.exec("get_tlm_values",[e],h,{},1e4);let p=u[0].length,w=null;for(let d=0;d<p;d++)w=this.decode_openc3_type(u[0][d]),w!==null&&(u[0][d]=w);return u}get_limits(e,t,r){return this.exec("get_limits",[e,t,r])}async tlm(e,t,r,h="CONVERTED"){let u=null;if(t===void 0)u=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))u=await this.exec("tlm",[e],{type:t});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else u=await this.exec("tlm",[e,t,r],{type:h});let p=this.decode_openc3_type(u);return p!==null&&(u=p),u}async inject_tlm(e,t,r=null,h="CONVERTED"){data=await this.exec("inject_tlm",[e,t,r],{type:h})}set_tlm(e,t,r,h){return this.exec("set_tlm",[e,t,r],{type:h})}override_tlm(e,t,r,h){return this.exec("override_tlm",[e,t,r],{type:h})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,r,h){return this.exec("normalize_tlm",[e,t,r],{type:h})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_cmd",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,r,h="CONVERTED"){return this.exec("get_cmd_value",[e,t,r,h])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,r,h,u){let p=null;for(let w in h)Object.prototype.hasOwnProperty.call(h,w)&&(p=this.encode_openc3_type(h[w]),p!==null&&(h[w]=p));return this.exec(e,[t,r,h],{},u)}get_cmd_hazardous(e,t,r,h={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},h):this._cmd("get_cmd_hazardous",e,t,r,h)}cmd(e,t,r,h={}){return t===void 0?this.exec("cmd",e,{},h):this._cmd("cmd",e,t,r,h)}cmd_no_range_check(e,t,r,h={}){return t===void 0?this.exec("cmd_no_range_check",e,{},h):this._cmd("cmd_no_range_check",e,t,r,h)}cmd_raw(e,t,r,h={}){return t===void 0?this.exec("cmd_raw",e,{},h):this._cmd("cmd_raw",e,t,r,h)}cmd_raw_no_range_check(e,t,r,h={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,{},h):this._cmd("cmd_raw_no_range_check",e,t,r,h)}cmd_no_hazardous_check(e,t,r,h={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,{},h):this._cmd("cmd_no_hazardous_check",e,t,r,h)}cmd_no_checks(e,t,r,h={}){return t===void 0?this.exec("cmd_no_checks",e,{},h):this._cmd("cmd_no_checks",e,t,r,h)}cmd_raw_no_hazardous_check(e,t,r,h={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},h):this._cmd("cmd_raw_no_hazardous_check",e,t,r,h)}cmd_raw_no_checks(e,t,r,h={}){return t===void 0?this.exec("cmd_raw_no_checks",e,{},h):this._cmd("cmd_raw_no_checks",e,t,r,h)}build_cmd(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}build_command(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,r){return this.exec("save_config",[e,t,r])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,r){return this.exec("enable_limits",[e,t,r])}disable_limits(e,t,r){return this.exec("disable_limits",[e,t,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}update_news(){return this.exec("update_news",[])}save_setting(e,t){return this.exec("set_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),h=new Uint8Array(r);return Array.from(h).map(u=>u.toString(16).padStart(2,"0")).join("")}}}On("R",t_);var Xa={exports:{}};/**
|
1381
|
+
* @license
|
1382
|
+
* Lodash <https://lodash.com/>
|
1383
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1384
|
+
* Released under MIT license <https://lodash.com/license>
|
1385
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1386
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1387
|
+
*/var n_=Xa.exports,Gp;function r_(){return Gp||(Gp=1,function(n,e){(function(){var t,r="4.17.21",h=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",w="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",c=1,a=2,l=4,o=1,f=2,y=1,v=2,x=4,M=8,A=16,k=32,b=64,T=128,R=256,L=512,E=30,N="...",S=800,_=16,$=1,I=2,O=3,F=1/0,W=9007199254740991,z=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",y],["bindKey",v],["curry",M],["curryRight",A],["flip",L],["partial",k],["partialRight",b],["rearg",R]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",we="[object Date]",pe="[object DOMException]",Ae="[object Error]",lt="[object Function]",zt="[object GeneratorFunction]",gt="[object Map]",wt="[object Number]",gn="[object Null]",Ft="[object Object]",tn="[object Promise]",ei="[object Proxy]",Cn="[object RegExp]",an="[object Set]",We="[object String]",ze="[object Symbol]",ln="[object Undefined]",Ve="[object WeakMap]",ce="[object WeakSet]",Re="[object ArrayBuffer]",De="[object DataView]",Ye="[object Float32Array]",Qe="[object Float64Array]",mt="[object Int8Array]",yt="[object Int16Array]",ht="[object Int32Array]",dt="[object Uint8Array]",ot="[object Uint8ClampedArray]",Yt="[object Uint16Array]",Un="[object Uint32Array]",fi=/\b__p \+= '';/g,sr=/\b(__p \+=) '' \+/g,Zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Js=/&(?:amp|lt|gt|quot|#39);/g,Ol=/[&<>"']/g,Zh=RegExp(Js.source),Jh=RegExp(Ol.source),Xh=/<%-([\s\S]+?)%>/g,ed=/<%([\s\S]+?)%>/g,Be=/<%=([\s\S]+?)%>/g,pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nn=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/[\\^$.*+?()[\]{}|]/g,Oi=RegExp(ni.source),Vn=/^\s+/,Di=/\s/,Ni=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dl=/\{\n\/\* \[wrapped with (.+)\] \*/,Nl=/,? & /,td=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nd=/[()=,{}\[\]\/\s]/,gi=/\\(\\)?/g,rd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fi=/\w*$/,Fl=/^[-+]0x[0-9a-f]+$/i,ri=/^0b[01]+$/i,Tn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,xn=/^(?:0|[1-9]\d*)$/,is=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qn=/($^)/,xo=/['\n\r\u2028\u2029\\]/g,_o="\\ud800-\\udfff",Xs="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",Pi="\\u20d0-\\u20ff",ss=Xs+os+Pi,as="\\u2700-\\u27bf",ls="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",ta="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",na="\\u2000-\\u206f",ra=" \\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",Cr="A-Z\\xc0-\\xd6\\xd8-\\xde",ia="\\ufe0e\\ufe0f",oa=ea+ta+na+ra,ko="['’]",Pl="["+_o+"]",Hl="["+oa+"]",cs="["+ss+"]",Wl="\\d+",Bl="["+as+"]",sa="["+ls+"]",jl="[^"+_o+oa+Wl+as+ls+Cr+"]",us="\\ud83c[\\udffb-\\udfff]",aa="(?:"+cs+"|"+us+")",So="[^"+_o+"]",Hi="(?:\\ud83c[\\udde6-\\uddff]){2}",la="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+Cr+"]",zl="\\u200d",Ul="(?:"+sa+"|"+jl+")",id="(?:"+ii+"|"+jl+")",mi="(?:"+ko+"(?:d|ll|m|re|s|t|ve))?",$o="(?:"+ko+"(?:D|LL|M|RE|S|T|VE))?",hs=aa+"?",Wi="["+ia+"]?",od="(?:"+zl+"(?:"+[So,Hi,la].join("|")+")"+Wi+hs+")*",Bi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ca=Wi+hs+od,ua="(?:"+[Bl,Hi,la].join("|")+")"+ca,ha="(?:"+[So+cs+"?",cs,Hi,la,Pl].join("|")+")",da=RegExp(ko,"g"),ji=RegExp(cs,"g"),oi=RegExp(us+"(?="+us+")|"+ha+ca,"g"),Vl=RegExp([ii+"?"+sa+"+"+mi+"(?="+[Hl,ii,"$"].join("|")+")",id+"+"+$o+"(?="+[Hl,ii+Ul,"$"].join("|")+")",ii+"?"+Ul+"+"+mi,ii+"+"+$o,sd,Bi,Wl,ua].join("|"),"g"),ql=RegExp("["+zl+_o+ss+ia+"]"),zi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ui=["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"],Gl=-1,Ot={};Ot[Ye]=Ot[Qe]=Ot[mt]=Ot[yt]=Ot[ht]=Ot[dt]=Ot[ot]=Ot[Yt]=Ot[Un]=!0,Ot[re]=Ot[J]=Ot[Re]=Ot[me]=Ot[De]=Ot[we]=Ot[Ae]=Ot[lt]=Ot[gt]=Ot[wt]=Ot[Ft]=Ot[Cn]=Ot[an]=Ot[We]=Ot[Ve]=!1;var je={};je[re]=je[J]=je[Re]=je[De]=je[me]=je[we]=je[Ye]=je[Qe]=je[mt]=je[yt]=je[ht]=je[gt]=je[wt]=je[Ft]=je[Cn]=je[an]=je[We]=je[ze]=je[dt]=je[ot]=je[Yt]=je[Un]=!0,je[Ae]=je[lt]=je[Ve]=!1;var Ut={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},si={"&":"&","<":"<",">":">",'"':""","'":"'"},En={"&":"&","<":"<",">":">",""":'"',"'":"'"},_n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kn=parseFloat,Pt=parseInt,yi=typeof Mi=="object"&&Mi&&Mi.Object===Object&&Mi,ds=typeof self=="object"&&self&&self.Object===Object&&self,Rn=yi||ds||Function("return this")(),Tr=e&&!e.nodeType&&e,Fn=Tr&&!0&&n&&!n.nodeType&&n,Yl=Fn&&Fn.exports===Tr,fa=Yl&&yi.process,ar=function(){try{var ne=Fn&&Fn.require&&Fn.require("util").types;return ne||fa&&fa.binding&&fa.binding("util")}catch{}}(),Kl=ar&&ar.isArrayBuffer,Er=ar&&ar.isDate,jr=ar&&ar.isMap,ai=ar&&ar.isRegExp,wi=ar&&ar.isSet,Ql=ar&&ar.isTypedArray;function Zt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function ad(ne,le,se,Ce){for(var He=-1,Je=ne==null?0:ne.length;++He<Je;){var Et=ne[He];le(Ce,Et,se(Et),ne)}return Ce}function Jn(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce&&le(ne[se],se,ne)!==!1;);return ne}function Zl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Vi(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce;)if(!le(ne[se],se,ne))return!1;return!0}function lr(ne,le){for(var se=-1,Ce=ne==null?0:ne.length,He=0,Je=[];++se<Ce;){var Et=ne[se];le(Et,se,ne)&&(Je[He++]=Et)}return Je}function fs(ne,le){var se=ne==null?0:ne.length;return!!se&&vi(ne,le,0)>-1}function Ao(ne,le,se){for(var Ce=-1,He=ne==null?0:ne.length;++Ce<He;)if(se(le,ne[Ce]))return!0;return!1}function Vt(ne,le){for(var se=-1,Ce=ne==null?0:ne.length,He=Array(Ce);++se<Ce;)He[se]=le(ne[se],se,ne);return He}function Gn(ne,le){for(var se=-1,Ce=le.length,He=ne.length;++se<Ce;)ne[He+se]=le[se];return ne}function Rr(ne,le,se,Ce){var He=-1,Je=ne==null?0:ne.length;for(Ce&&Je&&(se=ne[++He]);++He<Je;)se=le(se,ne[He],He,ne);return se}function Co(ne,le,se,Ce){var He=ne==null?0:ne.length;for(Ce&&He&&(se=ne[--He]);He--;)se=le(se,ne[He],He,ne);return se}function ps(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce;)if(le(ne[se],se,ne))return!0;return!1}var pa=va("length");function ga(ne){return ne.split("")}function gs(ne){return ne.match(td)||[]}function ma(ne,le,se){var Ce;return se(ne,function(He,Je,Et){if(le(He,Je,Et))return Ce=Je,!1}),Ce}function To(ne,le,se,Ce){for(var He=ne.length,Je=se+(Ce?1:-1);Ce?Je--:++Je<He;)if(le(ne[Je],Je,ne))return Je;return-1}function vi(ne,le,se){return le===le?Ze(ne,le,se):To(ne,ya,se)}function Jl(ne,le,se,Ce){for(var He=se-1,Je=ne.length;++He<Je;)if(Ce(ne[He],le))return He;return-1}function ya(ne){return ne!==ne}function wa(ne,le){var se=ne==null?0:ne.length;return se?Gi(ne,le)/se:V}function va(ne){return function(le){return le==null?t:le[ne]}}function ms(ne){return function(le){return ne==null?t:ne[le]}}function ba(ne,le,se,Ce,He){return He(ne,function(Je,Et,et){se=Ce?(Ce=!1,Je):le(se,Je,Et,et)}),se}function qi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Gi(ne,le){for(var se,Ce=-1,He=ne.length;++Ce<He;){var Je=le(ne[Ce]);Je!==t&&(se=se===t?Je:se+Je)}return se}function cn(ne,le){for(var se=-1,Ce=Array(ne);++se<ne;)Ce[se]=le(se);return Ce}function Xl(ne,le){return Vt(le,function(se){return[se,ne[se]]})}function nn(ne){return ne&&ne.slice(0,Xe(ne)+1).replace(Vn,"")}function Yn(ne){return function(le){return ne(le)}}function Eo(ne,le){return Vt(le,function(se){return ne[se]})}function zr(ne,le){return ne.has(le)}function ec(ne,le){for(var se=-1,Ce=ne.length;++se<Ce&&vi(le,ne[se],0)>-1;);return se}function tc(ne,le){for(var se=ne.length;se--&&vi(le,ne[se],0)>-1;);return se}function xa(ne,le){for(var se=ne.length,Ce=0;se--;)ne[se]===le&&++Ce;return Ce}var P=ms(Ut),B=ms(si);function Y(ne){return"\\"+_n[ne]}function K(ne,le){return ne==null?t:ne[le]}function te(ne){return ql.test(ne)}function oe(ne){return zi.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function ve(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce,He){se[++le]=[He,Ce]}),se}function ke(ne,le){return function(se){return ne(le(se))}}function $e(ne,le){for(var se=-1,Ce=ne.length,He=0,Je=[];++se<Ce;){var Et=ne[se];(Et===le||Et===s)&&(ne[se]=s,Je[He++]=se)}return Je}function Te(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce){se[++le]=Ce}),se}function Me(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce){se[++le]=[Ce,Ce]}),se}function Ze(ne,le,se){for(var Ce=se-1,He=ne.length;++Ce<He;)if(ne[Ce]===le)return Ce;return-1}function Lt(ne,le,se){for(var Ce=se+1;Ce--;)if(ne[Ce]===le)return Ce;return Ce}function st(ne){return te(ne)?Tt(ne):pa(ne)}function Ke(ne){return te(ne)?rn(ne):ga(ne)}function Xe(ne){for(var le=ne.length;le--&&Di.test(ne.charAt(le)););return le}var Ne=ms(En);function Tt(ne){for(var le=oi.lastIndex=0;oi.test(ne);)++le;return le}function rn(ne){return ne.match(oi)||[]}function Jt(ne){return ne.match(Vl)||[]}var Ht=function ne(le){le=le==null?Rn:Wt.defaults(Rn.Object(),le,Wt.pick(Rn,Ui));var se=le.Array,Ce=le.Date,He=le.Error,Je=le.Function,Et=le.Math,et=le.Object,Mn=le.RegExp,Xn=le.String,Ln=le.TypeError,vr=se.prototype,cr=Je.prototype,ys=et.prototype,nc=le["__core-js_shared__"],rc=cr.toString,It=ys.hasOwnProperty,CE=0,Nw=function(){var i=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ic=ys.toString,TE=rc.call(et),EE=Rn._,RE=Mn("^"+rc.call(It).replace(ni,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oc=Yl?le.Buffer:t,Yi=le.Symbol,sc=le.Uint8Array,Fw=oc?oc.allocUnsafe:t,ac=ke(et.getPrototypeOf,et),Pw=et.create,Hw=ys.propertyIsEnumerable,lc=vr.splice,Ww=Yi?Yi.isConcatSpreadable:t,_a=Yi?Yi.iterator:t,Ro=Yi?Yi.toStringTag:t,cc=function(){try{var i=Do(et,"defineProperty");return i({},"",{}),i}catch{}}(),ME=le.clearTimeout!==Rn.clearTimeout&&le.clearTimeout,LE=Ce&&Ce.now!==Rn.Date.now&&Ce.now,IE=le.setTimeout!==Rn.setTimeout&&le.setTimeout,uc=Et.ceil,hc=Et.floor,ld=et.getOwnPropertySymbols,OE=oc?oc.isBuffer:t,Bw=le.isFinite,DE=vr.join,NE=ke(et.keys,et),In=Et.max,Kn=Et.min,FE=Ce.now,PE=le.parseInt,jw=Et.random,HE=vr.reverse,cd=Do(le,"DataView"),ka=Do(le,"Map"),ud=Do(le,"Promise"),ws=Do(le,"Set"),Sa=Do(le,"WeakMap"),$a=Do(et,"create"),dc=Sa&&new Sa,vs={},WE=No(cd),BE=No(ka),jE=No(ud),zE=No(ws),UE=No(Sa),fc=Yi?Yi.prototype:t,Aa=fc?fc.valueOf:t,zw=fc?fc.toString:t;function j(i){if(un(i)&&!tt(i)&&!(i instanceof xt)){if(i instanceof Mr)return i;if(It.call(i,"__wrapped__"))return U0(i)}return new Mr(i)}var bs=function(){function i(){}return function(m){if(!on(m))return{};if(Pw)return Pw(m);i.prototype=m;var C=new i;return i.prototype=t,C}}();function pc(){}function Mr(i,m){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=t}j.templateSettings={escape:Xh,evaluate:ed,interpolate:Be,variable:"",imports:{_:j}},j.prototype=pc.prototype,j.prototype.constructor=j,Mr.prototype=bs(pc.prototype),Mr.prototype.constructor=Mr;function xt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function VE(){var i=new xt(this.__wrapped__);return i.__actions__=ur(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ur(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ur(this.__views__),i}function qE(){if(this.__filtered__){var i=new xt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function GE(){var i=this.__wrapped__.value(),m=this.__dir__,C=tt(i),D=m<0,H=C?i.length:0,U=oM(0,H,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ye=ge.length,Ee=0,Fe=Kn(ie,this.__takeCount__);if(!C||!D&&H==ie&&Fe==ie)return f0(i,this.__actions__);var qe=[];e:for(;ie--&&Ee<Fe;){fe+=m;for(var ct=-1,Ge=i[fe];++ct<ye;){var vt=ge[ct],_t=vt.iteratee,_r=vt.type,nr=_t(Ge);if(_r==I)Ge=nr;else if(!nr){if(_r==$)continue e;break e}}qe[Ee++]=Ge}return qe}xt.prototype=bs(pc.prototype),xt.prototype.constructor=xt;function Mo(i){var m=-1,C=i==null?0:i.length;for(this.clear();++m<C;){var D=i[m];this.set(D[0],D[1])}}function YE(){this.__data__=$a?$a(null):{},this.size=0}function KE(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function QE(i){var m=this.__data__;if($a){var C=m[i];return C===d?t:C}return It.call(m,i)?m[i]:t}function ZE(i){var m=this.__data__;return $a?m[i]!==t:It.call(m,i)}function JE(i,m){var C=this.__data__;return this.size+=this.has(i)?0:1,C[i]=$a&&m===t?d:m,this}Mo.prototype.clear=YE,Mo.prototype.delete=KE,Mo.prototype.get=QE,Mo.prototype.has=ZE,Mo.prototype.set=JE;function bi(i){var m=-1,C=i==null?0:i.length;for(this.clear();++m<C;){var D=i[m];this.set(D[0],D[1])}}function XE(){this.__data__=[],this.size=0}function eR(i){var m=this.__data__,C=gc(m,i);if(C<0)return!1;var D=m.length-1;return C==D?m.pop():lc.call(m,C,1),--this.size,!0}function tR(i){var m=this.__data__,C=gc(m,i);return C<0?t:m[C][1]}function nR(i){return gc(this.__data__,i)>-1}function rR(i,m){var C=this.__data__,D=gc(C,i);return D<0?(++this.size,C.push([i,m])):C[D][1]=m,this}bi.prototype.clear=XE,bi.prototype.delete=eR,bi.prototype.get=tR,bi.prototype.has=nR,bi.prototype.set=rR;function xi(i){var m=-1,C=i==null?0:i.length;for(this.clear();++m<C;){var D=i[m];this.set(D[0],D[1])}}function iR(){this.size=0,this.__data__={hash:new Mo,map:new(ka||bi),string:new Mo}}function oR(i){var m=Cc(this,i).delete(i);return this.size-=m?1:0,m}function sR(i){return Cc(this,i).get(i)}function aR(i){return Cc(this,i).has(i)}function lR(i,m){var C=Cc(this,i),D=C.size;return C.set(i,m),this.size+=C.size==D?0:1,this}xi.prototype.clear=iR,xi.prototype.delete=oR,xi.prototype.get=sR,xi.prototype.has=aR,xi.prototype.set=lR;function Lo(i){var m=-1,C=i==null?0:i.length;for(this.__data__=new xi;++m<C;)this.add(i[m])}function cR(i){return this.__data__.set(i,d),this}function uR(i){return this.__data__.has(i)}Lo.prototype.add=Lo.prototype.push=cR,Lo.prototype.has=uR;function Ur(i){var m=this.__data__=new bi(i);this.size=m.size}function hR(){this.__data__=new bi,this.size=0}function dR(i){var m=this.__data__,C=m.delete(i);return this.size=m.size,C}function fR(i){return this.__data__.get(i)}function pR(i){return this.__data__.has(i)}function gR(i,m){var C=this.__data__;if(C instanceof bi){var D=C.__data__;if(!ka||D.length<h-1)return D.push([i,m]),this.size=++C.size,this;C=this.__data__=new xi(D)}return C.set(i,m),this.size=C.size,this}Ur.prototype.clear=hR,Ur.prototype.delete=dR,Ur.prototype.get=fR,Ur.prototype.has=pR,Ur.prototype.set=gR;function Uw(i,m){var C=tt(i),D=!C&&Fo(i),H=!C&&!D&&Xi(i),U=!C&&!D&&!H&&Ss(i),Q=C||D||H||U,ee=Q?cn(i.length,Xn):[],ie=ee.length;for(var fe in i)(m||It.call(i,fe))&&!(Q&&(fe=="length"||H&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||$i(fe,ie)))&&ee.push(fe);return ee}function Vw(i){var m=i.length;return m?i[xd(0,m-1)]:t}function mR(i,m){return Tc(ur(i),Io(m,0,i.length))}function yR(i){return Tc(ur(i))}function hd(i,m,C){(C!==t&&!Vr(i[m],C)||C===t&&!(m in i))&&_i(i,m,C)}function Ca(i,m,C){var D=i[m];(!(It.call(i,m)&&Vr(D,C))||C===t&&!(m in i))&&_i(i,m,C)}function gc(i,m){for(var C=i.length;C--;)if(Vr(i[C][0],m))return C;return-1}function wR(i,m,C,D){return Ki(i,function(H,U,Q){m(D,H,C(H),Q)}),D}function qw(i,m){return i&&ci(m,Pn(m),i)}function vR(i,m){return i&&ci(m,dr(m),i)}function _i(i,m,C){m=="__proto__"&&cc?cc(i,m,{configurable:!0,enumerable:!0,value:C,writable:!0}):i[m]=C}function dd(i,m){for(var C=-1,D=m.length,H=se(D),U=i==null;++C<D;)H[C]=U?t:qd(i,m[C]);return H}function Io(i,m,C){return i===i&&(C!==t&&(i=i<=C?i:C),m!==t&&(i=i>=m?i:m)),i}function Lr(i,m,C,D,H,U){var Q,ee=m&c,ie=m&a,fe=m&l;if(C&&(Q=H?C(i,D,H,U):C(i)),Q!==t)return Q;if(!on(i))return i;var ge=tt(i);if(ge){if(Q=aM(i),!ee)return ur(i,Q)}else{var ye=Qn(i),Ee=ye==lt||ye==zt;if(Xi(i))return m0(i,ee);if(ye==Ft||ye==re||Ee&&!H){if(Q=ie||Ee?{}:D0(i),!ee)return ie?QR(i,vR(Q,i)):KR(i,qw(Q,i))}else{if(!je[ye])return H?i:{};Q=lM(i,ye,ee)}}U||(U=new Ur);var Fe=U.get(i);if(Fe)return Fe;U.set(i,Q),uv(i)?i.forEach(function(Ge){Q.add(Lr(Ge,m,C,Ge,i,U))}):lv(i)&&i.forEach(function(Ge,vt){Q.set(vt,Lr(Ge,m,C,vt,i,U))});var qe=fe?ie?Ld:Md:ie?dr:Pn,ct=ge?t:qe(i);return Jn(ct||i,function(Ge,vt){ct&&(vt=Ge,Ge=i[vt]),Ca(Q,vt,Lr(Ge,m,C,vt,i,U))}),Q}function bR(i){var m=Pn(i);return function(C){return Gw(C,i,m)}}function Gw(i,m,C){var D=C.length;if(i==null)return!D;for(i=et(i);D--;){var H=C[D],U=m[H],Q=i[H];if(Q===t&&!(H in i)||!U(Q))return!1}return!0}function Yw(i,m,C){if(typeof i!="function")throw new Ln(p);return Oa(function(){i.apply(t,C)},m)}function Ta(i,m,C,D){var H=-1,U=fs,Q=!0,ee=i.length,ie=[],fe=m.length;if(!ee)return ie;C&&(m=Vt(m,Yn(C))),D?(U=Ao,Q=!1):m.length>=h&&(U=zr,Q=!1,m=new Lo(m));e:for(;++H<ee;){var ge=i[H],ye=C==null?ge:C(ge);if(ge=D||ge!==0?ge:0,Q&&ye===ye){for(var Ee=fe;Ee--;)if(m[Ee]===ye)continue e;ie.push(ge)}else U(m,ye,D)||ie.push(ge)}return ie}var Ki=x0(li),Kw=x0(pd,!0);function xR(i,m){var C=!0;return Ki(i,function(D,H,U){return C=!!m(D,H,U),C}),C}function mc(i,m,C){for(var D=-1,H=i.length;++D<H;){var U=i[D],Q=m(U);if(Q!=null&&(ee===t?Q===Q&&!xr(Q):C(Q,ee)))var ee=Q,ie=U}return ie}function _R(i,m,C,D){var H=i.length;for(C=at(C),C<0&&(C=-C>H?0:H+C),D=D===t||D>H?H:at(D),D<0&&(D+=H),D=C>D?0:dv(D);C<D;)i[C++]=m;return i}function Qw(i,m){var C=[];return Ki(i,function(D,H,U){m(D,H,U)&&C.push(D)}),C}function Hn(i,m,C,D,H){var U=-1,Q=i.length;for(C||(C=uM),H||(H=[]);++U<Q;){var ee=i[U];m>0&&C(ee)?m>1?Hn(ee,m-1,C,D,H):Gn(H,ee):D||(H[H.length]=ee)}return H}var fd=_0(),Zw=_0(!0);function li(i,m){return i&&fd(i,m,Pn)}function pd(i,m){return i&&Zw(i,m,Pn)}function yc(i,m){return lr(m,function(C){return Ai(i[C])})}function Oo(i,m){m=Zi(m,i);for(var C=0,D=m.length;i!=null&&C<D;)i=i[ui(m[C++])];return C&&C==D?i:t}function Jw(i,m,C){var D=m(i);return tt(i)?D:Gn(D,C(i))}function er(i){return i==null?i===t?ln:gn:Ro&&Ro in et(i)?iM(i):yM(i)}function gd(i,m){return i>m}function kR(i,m){return i!=null&&It.call(i,m)}function SR(i,m){return i!=null&&m in et(i)}function $R(i,m,C){return i>=Kn(m,C)&&i<In(m,C)}function md(i,m,C){for(var D=C?Ao:fs,H=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&m&&(ge=Vt(ge,Yn(m))),ie=Kn(ge.length,ie),ee[Q]=!C&&(m||H>=120&&ge.length>=120)?new Lo(Q&&ge):t}ge=i[0];var ye=-1,Ee=ee[0];e:for(;++ye<H&&fe.length<ie;){var Fe=ge[ye],qe=m?m(Fe):Fe;if(Fe=C||Fe!==0?Fe:0,!(Ee?zr(Ee,qe):D(fe,qe,C))){for(Q=U;--Q;){var ct=ee[Q];if(!(ct?zr(ct,qe):D(i[Q],qe,C)))continue e}Ee&&Ee.push(qe),fe.push(Fe)}}return fe}function AR(i,m,C,D){return li(i,function(H,U,Q){m(D,C(H),U,Q)}),D}function Ea(i,m,C){m=Zi(m,i),i=H0(i,m);var D=i==null?i:i[ui(Or(m))];return D==null?t:Zt(D,i,C)}function Xw(i){return un(i)&&er(i)==re}function CR(i){return un(i)&&er(i)==Re}function TR(i){return un(i)&&er(i)==we}function Ra(i,m,C,D,H){return i===m?!0:i==null||m==null||!un(i)&&!un(m)?i!==i&&m!==m:ER(i,m,C,D,Ra,H)}function ER(i,m,C,D,H,U){var Q=tt(i),ee=tt(m),ie=Q?J:Qn(i),fe=ee?J:Qn(m);ie=ie==re?Ft:ie,fe=fe==re?Ft:fe;var ge=ie==Ft,ye=fe==Ft,Ee=ie==fe;if(Ee&&Xi(i)){if(!Xi(m))return!1;Q=!0,ge=!1}if(Ee&&!ge)return U||(U=new Ur),Q||Ss(i)?L0(i,m,C,D,H,U):nM(i,m,ie,C,D,H,U);if(!(C&o)){var Fe=ge&&It.call(i,"__wrapped__"),qe=ye&&It.call(m,"__wrapped__");if(Fe||qe){var ct=Fe?i.value():i,Ge=qe?m.value():m;return U||(U=new Ur),H(ct,Ge,C,D,U)}}return Ee?(U||(U=new Ur),rM(i,m,C,D,H,U)):!1}function RR(i){return un(i)&&Qn(i)==gt}function yd(i,m,C,D){var H=C.length,U=H,Q=!D;if(i==null)return!U;for(i=et(i);H--;){var ee=C[H];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++H<U;){ee=C[H];var ie=ee[0],fe=i[ie],ge=ee[1];if(Q&&ee[2]){if(fe===t&&!(ie in i))return!1}else{var ye=new Ur;if(D)var Ee=D(fe,ge,ie,i,m,ye);if(!(Ee===t?Ra(ge,fe,o|f,D,ye):Ee))return!1}}return!0}function e0(i){if(!on(i)||dM(i))return!1;var m=Ai(i)?RE:Tn;return m.test(No(i))}function MR(i){return un(i)&&er(i)==Cn}function LR(i){return un(i)&&Qn(i)==an}function IR(i){return un(i)&&Oc(i.length)&&!!Ot[er(i)]}function t0(i){return typeof i=="function"?i:i==null?fr:typeof i=="object"?tt(i)?i0(i[0],i[1]):r0(i):kv(i)}function wd(i){if(!Ia(i))return NE(i);var m=[];for(var C in et(i))It.call(i,C)&&C!="constructor"&&m.push(C);return m}function OR(i){if(!on(i))return mM(i);var m=Ia(i),C=[];for(var D in i)D=="constructor"&&(m||!It.call(i,D))||C.push(D);return C}function vd(i,m){return i<m}function n0(i,m){var C=-1,D=hr(i)?se(i.length):[];return Ki(i,function(H,U,Q){D[++C]=m(H,U,Q)}),D}function r0(i){var m=Od(i);return m.length==1&&m[0][2]?F0(m[0][0],m[0][1]):function(C){return C===i||yd(C,i,m)}}function i0(i,m){return Nd(i)&&N0(m)?F0(ui(i),m):function(C){var D=qd(C,i);return D===t&&D===m?Gd(C,i):Ra(m,D,o|f)}}function wc(i,m,C,D,H){i!==m&&fd(m,function(U,Q){if(H||(H=new Ur),on(U))DR(i,m,Q,C,wc,D,H);else{var ee=D?D(Pd(i,Q),U,Q+"",i,m,H):t;ee===t&&(ee=U),hd(i,Q,ee)}},dr)}function DR(i,m,C,D,H,U,Q){var ee=Pd(i,C),ie=Pd(m,C),fe=Q.get(ie);if(fe){hd(i,C,fe);return}var ge=U?U(ee,ie,C+"",i,m,Q):t,ye=ge===t;if(ye){var Ee=tt(ie),Fe=!Ee&&Xi(ie),qe=!Ee&&!Fe&&Ss(ie);ge=ie,Ee||Fe||qe?tt(ee)?ge=ee:mn(ee)?ge=ur(ee):Fe?(ye=!1,ge=m0(ie,!0)):qe?(ye=!1,ge=y0(ie,!0)):ge=[]:Da(ie)||Fo(ie)?(ge=ee,Fo(ee)?ge=fv(ee):(!on(ee)||Ai(ee))&&(ge=D0(ie))):ye=!1}ye&&(Q.set(ie,ge),H(ge,ie,D,U,Q),Q.delete(ie)),hd(i,C,ge)}function o0(i,m){var C=i.length;if(C)return m+=m<0?C:0,$i(m,C)?i[m]:t}function s0(i,m,C){m.length?m=Vt(m,function(U){return tt(U)?function(Q){return Oo(Q,U.length===1?U[0]:U)}:U}):m=[fr];var D=-1;m=Vt(m,Yn(Ue()));var H=n0(i,function(U,Q,ee){var ie=Vt(m,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return qi(H,function(U,Q){return YR(U,Q,C)})}function NR(i,m){return a0(i,m,function(C,D){return Gd(i,D)})}function a0(i,m,C){for(var D=-1,H=m.length,U={};++D<H;){var Q=m[D],ee=Oo(i,Q);C(ee,Q)&&Ma(U,Zi(Q,i),ee)}return U}function FR(i){return function(m){return Oo(m,i)}}function bd(i,m,C,D){var H=D?Jl:vi,U=-1,Q=m.length,ee=i;for(i===m&&(m=ur(m)),C&&(ee=Vt(i,Yn(C)));++U<Q;)for(var ie=0,fe=m[U],ge=C?C(fe):fe;(ie=H(ee,ge,ie,D))>-1;)ee!==i&&lc.call(ee,ie,1),lc.call(i,ie,1);return i}function l0(i,m){for(var C=i?m.length:0,D=C-1;C--;){var H=m[C];if(C==D||H!==U){var U=H;$i(H)?lc.call(i,H,1):Sd(i,H)}}return i}function xd(i,m){return i+hc(jw()*(m-i+1))}function PR(i,m,C,D){for(var H=-1,U=In(uc((m-i)/(C||1)),0),Q=se(U);U--;)Q[D?U:++H]=i,i+=C;return Q}function _d(i,m){var C="";if(!i||m<1||m>W)return C;do m%2&&(C+=i),m=hc(m/2),m&&(i+=i);while(m);return C}function ft(i,m){return Hd(P0(i,m,fr),i+"")}function HR(i){return Vw($s(i))}function WR(i,m){var C=$s(i);return Tc(C,Io(m,0,C.length))}function Ma(i,m,C,D){if(!on(i))return i;m=Zi(m,i);for(var H=-1,U=m.length,Q=U-1,ee=i;ee!=null&&++H<U;){var ie=ui(m[H]),fe=C;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(H!=Q){var ge=ee[ie];fe=D?D(ge,ie,ee):t,fe===t&&(fe=on(ge)?ge:$i(m[H+1])?[]:{})}Ca(ee,ie,fe),ee=ee[ie]}return i}var c0=dc?function(i,m){return dc.set(i,m),i}:fr,BR=cc?function(i,m){return cc(i,"toString",{configurable:!0,enumerable:!1,value:Kd(m),writable:!0})}:fr;function jR(i){return Tc($s(i))}function Ir(i,m,C){var D=-1,H=i.length;m<0&&(m=-m>H?0:H+m),C=C>H?H:C,C<0&&(C+=H),H=m>C?0:C-m>>>0,m>>>=0;for(var U=se(H);++D<H;)U[D]=i[D+m];return U}function zR(i,m){var C;return Ki(i,function(D,H,U){return C=m(D,H,U),!C}),!!C}function vc(i,m,C){var D=0,H=i==null?D:i.length;if(typeof m=="number"&&m===m&&H<=G){for(;D<H;){var U=D+H>>>1,Q=i[U];Q!==null&&!xr(Q)&&(C?Q<=m:Q<m)?D=U+1:H=U}return H}return kd(i,m,fr,C)}function kd(i,m,C,D){var H=0,U=i==null?0:i.length;if(U===0)return 0;m=C(m);for(var Q=m!==m,ee=m===null,ie=xr(m),fe=m===t;H<U;){var ge=hc((H+U)/2),ye=C(i[ge]),Ee=ye!==t,Fe=ye===null,qe=ye===ye,ct=xr(ye);if(Q)var Ge=D||qe;else fe?Ge=qe&&(D||Ee):ee?Ge=qe&&Ee&&(D||!Fe):ie?Ge=qe&&Ee&&!Fe&&(D||!ct):Fe||ct?Ge=!1:Ge=D?ye<=m:ye<m;Ge?H=ge+1:U=ge}return Kn(U,X)}function u0(i,m){for(var C=-1,D=i.length,H=0,U=[];++C<D;){var Q=i[C],ee=m?m(Q):Q;if(!C||!Vr(ee,ie)){var ie=ee;U[H++]=Q===0?0:Q}}return U}function h0(i){return typeof i=="number"?i:xr(i)?V:+i}function br(i){if(typeof i=="string")return i;if(tt(i))return Vt(i,br)+"";if(xr(i))return zw?zw.call(i):"";var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Qi(i,m,C){var D=-1,H=fs,U=i.length,Q=!0,ee=[],ie=ee;if(C)Q=!1,H=Ao;else if(U>=h){var fe=m?null:eM(i);if(fe)return Te(fe);Q=!1,H=zr,ie=new Lo}else ie=m?[]:ee;e:for(;++D<U;){var ge=i[D],ye=m?m(ge):ge;if(ge=C||ge!==0?ge:0,Q&&ye===ye){for(var Ee=ie.length;Ee--;)if(ie[Ee]===ye)continue e;m&&ie.push(ye),ee.push(ge)}else H(ie,ye,C)||(ie!==ee&&ie.push(ye),ee.push(ge))}return ee}function Sd(i,m){return m=Zi(m,i),i=H0(i,m),i==null||delete i[ui(Or(m))]}function d0(i,m,C,D){return Ma(i,m,C(Oo(i,m)),D)}function bc(i,m,C,D){for(var H=i.length,U=D?H:-1;(D?U--:++U<H)&&m(i[U],U,i););return C?Ir(i,D?0:U,D?U+1:H):Ir(i,D?U+1:0,D?H:U)}function f0(i,m){var C=i;return C instanceof xt&&(C=C.value()),Rr(m,function(D,H){return H.func.apply(H.thisArg,Gn([D],H.args))},C)}function $d(i,m,C){var D=i.length;if(D<2)return D?Qi(i[0]):[];for(var H=-1,U=se(D);++H<D;)for(var Q=i[H],ee=-1;++ee<D;)ee!=H&&(U[H]=Ta(U[H]||Q,i[ee],m,C));return Qi(Hn(U,1),m,C)}function p0(i,m,C){for(var D=-1,H=i.length,U=m.length,Q={};++D<H;){var ee=D<U?m[D]:t;C(Q,i[D],ee)}return Q}function Ad(i){return mn(i)?i:[]}function Cd(i){return typeof i=="function"?i:fr}function Zi(i,m){return tt(i)?i:Nd(i,m)?[i]:z0(Rt(i))}var UR=ft;function Ji(i,m,C){var D=i.length;return C=C===t?D:C,!m&&C>=D?i:Ir(i,m,C)}var g0=ME||function(i){return Rn.clearTimeout(i)};function m0(i,m){if(m)return i.slice();var C=i.length,D=Fw?Fw(C):new i.constructor(C);return i.copy(D),D}function Td(i){var m=new i.constructor(i.byteLength);return new sc(m).set(new sc(i)),m}function VR(i,m){var C=m?Td(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.byteLength)}function qR(i){var m=new i.constructor(i.source,Fi.exec(i));return m.lastIndex=i.lastIndex,m}function GR(i){return Aa?et(Aa.call(i)):{}}function y0(i,m){var C=m?Td(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.length)}function w0(i,m){if(i!==m){var C=i!==t,D=i===null,H=i===i,U=xr(i),Q=m!==t,ee=m===null,ie=m===m,fe=xr(m);if(!ee&&!fe&&!U&&i>m||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!C&&ie||!H)return 1;if(!D&&!U&&!fe&&i<m||fe&&C&&H&&!D&&!U||ee&&C&&H||!Q&&H||!ie)return-1}return 0}function YR(i,m,C){for(var D=-1,H=i.criteria,U=m.criteria,Q=H.length,ee=C.length;++D<Q;){var ie=w0(H[D],U[D]);if(ie){if(D>=ee)return ie;var fe=C[D];return ie*(fe=="desc"?-1:1)}}return i.index-m.index}function v0(i,m,C,D){for(var H=-1,U=i.length,Q=C.length,ee=-1,ie=m.length,fe=In(U-Q,0),ge=se(ie+fe),ye=!D;++ee<ie;)ge[ee]=m[ee];for(;++H<Q;)(ye||H<U)&&(ge[C[H]]=i[H]);for(;fe--;)ge[ee++]=i[H++];return ge}function b0(i,m,C,D){for(var H=-1,U=i.length,Q=-1,ee=C.length,ie=-1,fe=m.length,ge=In(U-ee,0),ye=se(ge+fe),Ee=!D;++H<ge;)ye[H]=i[H];for(var Fe=H;++ie<fe;)ye[Fe+ie]=m[ie];for(;++Q<ee;)(Ee||H<U)&&(ye[Fe+C[Q]]=i[H++]);return ye}function ur(i,m){var C=-1,D=i.length;for(m||(m=se(D));++C<D;)m[C]=i[C];return m}function ci(i,m,C,D){var H=!C;C||(C={});for(var U=-1,Q=m.length;++U<Q;){var ee=m[U],ie=D?D(C[ee],i[ee],ee,C,i):t;ie===t&&(ie=i[ee]),H?_i(C,ee,ie):Ca(C,ee,ie)}return C}function KR(i,m){return ci(i,Dd(i),m)}function QR(i,m){return ci(i,I0(i),m)}function xc(i,m){return function(C,D){var H=tt(C)?ad:wR,U=m?m():{};return H(C,i,Ue(D,2),U)}}function xs(i){return ft(function(m,C){var D=-1,H=C.length,U=H>1?C[H-1]:t,Q=H>2?C[2]:t;for(U=i.length>3&&typeof U=="function"?(H--,U):t,Q&&tr(C[0],C[1],Q)&&(U=H<3?t:U,H=1),m=et(m);++D<H;){var ee=C[D];ee&&i(m,ee,D,U)}return m})}function x0(i,m){return function(C,D){if(C==null)return C;if(!hr(C))return i(C,D);for(var H=C.length,U=m?H:-1,Q=et(C);(m?U--:++U<H)&&D(Q[U],U,Q)!==!1;);return C}}function _0(i){return function(m,C,D){for(var H=-1,U=et(m),Q=D(m),ee=Q.length;ee--;){var ie=Q[i?ee:++H];if(C(U[ie],ie,U)===!1)break}return m}}function ZR(i,m,C){var D=m&y,H=La(i);function U(){var Q=this&&this!==Rn&&this instanceof U?H:i;return Q.apply(D?C:this,arguments)}return U}function k0(i){return function(m){m=Rt(m);var C=te(m)?Ke(m):t,D=C?C[0]:m.charAt(0),H=C?Ji(C,1).join(""):m.slice(1);return D[i]()+H}}function _s(i){return function(m){return Rr(xv(bv(m).replace(da,"")),i,"")}}function La(i){return function(){var m=arguments;switch(m.length){case 0:return new i;case 1:return new i(m[0]);case 2:return new i(m[0],m[1]);case 3:return new i(m[0],m[1],m[2]);case 4:return new i(m[0],m[1],m[2],m[3]);case 5:return new i(m[0],m[1],m[2],m[3],m[4]);case 6:return new i(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new i(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var C=bs(i.prototype),D=i.apply(C,m);return on(D)?D:C}}function JR(i,m,C){var D=La(i);function H(){for(var U=arguments.length,Q=se(U),ee=U,ie=ks(H);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:$e(Q,ie);if(U-=fe.length,U<C)return T0(i,m,_c,H.placeholder,t,Q,fe,t,t,C-U);var ge=this&&this!==Rn&&this instanceof H?D:i;return Zt(ge,this,Q)}return H}function S0(i){return function(m,C,D){var H=et(m);if(!hr(m)){var U=Ue(C,3);m=Pn(m),C=function(ee){return U(H[ee],ee,H)}}var Q=i(m,C,D);return Q>-1?H[U?m[Q]:Q]:t}}function $0(i){return Si(function(m){var C=m.length,D=C,H=Mr.prototype.thru;for(i&&m.reverse();D--;){var U=m[D];if(typeof U!="function")throw new Ln(p);if(H&&!Q&&Ac(U)=="wrapper")var Q=new Mr([],!0)}for(D=Q?D:C;++D<C;){U=m[D];var ee=Ac(U),ie=ee=="wrapper"?Id(U):t;ie&&Fd(ie[0])&&ie[1]==(T|M|k|R)&&!ie[4].length&&ie[9]==1?Q=Q[Ac(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Fd(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&tt(ge))return Q.plant(ge).value();for(var ye=0,Ee=C?m[ye].apply(this,fe):ge;++ye<C;)Ee=m[ye].call(this,Ee);return Ee}})}function _c(i,m,C,D,H,U,Q,ee,ie,fe){var ge=m&T,ye=m&y,Ee=m&v,Fe=m&(M|A),qe=m&L,ct=Ee?t:La(i);function Ge(){for(var vt=arguments.length,_t=se(vt),_r=vt;_r--;)_t[_r]=arguments[_r];if(Fe)var nr=ks(Ge),kr=xa(_t,nr);if(D&&(_t=v0(_t,D,H,Fe)),U&&(_t=b0(_t,U,Q,Fe)),vt-=kr,Fe&&vt<fe){var yn=$e(_t,nr);return T0(i,m,_c,Ge.placeholder,C,_t,yn,ee,ie,fe-vt)}var qr=ye?C:this,Ti=Ee?qr[i]:i;return vt=_t.length,ee?_t=wM(_t,ee):qe&&vt>1&&_t.reverse(),ge&&ie<vt&&(_t.length=ie),this&&this!==Rn&&this instanceof Ge&&(Ti=ct||La(Ti)),Ti.apply(qr,_t)}return Ge}function A0(i,m){return function(C,D){return AR(C,i,m(D),{})}}function kc(i,m){return function(C,D){var H;if(C===t&&D===t)return m;if(C!==t&&(H=C),D!==t){if(H===t)return D;typeof C=="string"||typeof D=="string"?(C=br(C),D=br(D)):(C=h0(C),D=h0(D)),H=i(C,D)}return H}}function Ed(i){return Si(function(m){return m=Vt(m,Yn(Ue())),ft(function(C){var D=this;return i(m,function(H){return Zt(H,D,C)})})})}function Sc(i,m){m=m===t?" ":br(m);var C=m.length;if(C<2)return C?_d(m,i):m;var D=_d(m,uc(i/st(m)));return te(m)?Ji(Ke(D),0,i).join(""):D.slice(0,i)}function XR(i,m,C,D){var H=m&y,U=La(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ye=se(ge+ie),Ee=this&&this!==Rn&&this instanceof Q?U:i;++fe<ge;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return Zt(Ee,H?C:this,ye)}return Q}function C0(i){return function(m,C,D){return D&&typeof D!="number"&&tr(m,C,D)&&(C=D=t),m=Ci(m),C===t?(C=m,m=0):C=Ci(C),D=D===t?m<C?1:-1:Ci(D),PR(m,C,D,i)}}function $c(i){return function(m,C){return typeof m=="string"&&typeof C=="string"||(m=Dr(m),C=Dr(C)),i(m,C)}}function T0(i,m,C,D,H,U,Q,ee,ie,fe){var ge=m&M,ye=ge?Q:t,Ee=ge?t:Q,Fe=ge?U:t,qe=ge?t:U;m|=ge?k:b,m&=~(ge?b:k),m&x||(m&=-4);var ct=[i,m,H,Fe,ye,qe,Ee,ee,ie,fe],Ge=C.apply(t,ct);return Fd(i)&&W0(Ge,ct),Ge.placeholder=D,B0(Ge,i,m)}function Rd(i){var m=Et[i];return function(C,D){if(C=Dr(C),D=D==null?0:Kn(at(D),292),D&&Bw(C)){var H=(Rt(C)+"e").split("e"),U=m(H[0]+"e"+(+H[1]+D));return H=(Rt(U)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return m(C)}}var eM=ws&&1/Te(new ws([,-0]))[1]==F?function(i){return new ws(i)}:Jd;function E0(i){return function(m){var C=Qn(m);return C==gt?ve(m):C==an?Me(m):Xl(m,i(m))}}function ki(i,m,C,D,H,U,Q,ee){var ie=m&v;if(!ie&&typeof i!="function")throw new Ln(p);var fe=D?D.length:0;if(fe||(m&=-97,D=H=t),Q=Q===t?Q:In(at(Q),0),ee=ee===t?ee:at(ee),fe-=H?H.length:0,m&b){var ge=D,ye=H;D=H=t}var Ee=ie?t:Id(i),Fe=[i,m,C,D,H,ge,ye,U,Q,ee];if(Ee&&gM(Fe,Ee),i=Fe[0],m=Fe[1],C=Fe[2],D=Fe[3],H=Fe[4],ee=Fe[9]=Fe[9]===t?ie?0:i.length:In(Fe[9]-fe,0),!ee&&m&(M|A)&&(m&=-25),!m||m==y)var qe=ZR(i,m,C);else m==M||m==A?qe=JR(i,m,ee):(m==k||m==(y|k))&&!H.length?qe=XR(i,m,C,D):qe=_c.apply(t,Fe);var ct=Ee?c0:W0;return B0(ct(qe,Fe),i,m)}function R0(i,m,C,D){return i===t||Vr(i,ys[C])&&!It.call(D,C)?m:i}function M0(i,m,C,D,H,U){return on(i)&&on(m)&&(U.set(m,i),wc(i,m,t,M0,U),U.delete(m)),i}function tM(i){return Da(i)?t:i}function L0(i,m,C,D,H,U){var Q=C&o,ee=i.length,ie=m.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(m);if(fe&&ge)return fe==m&&ge==i;var ye=-1,Ee=!0,Fe=C&f?new Lo:t;for(U.set(i,m),U.set(m,i);++ye<ee;){var qe=i[ye],ct=m[ye];if(D)var Ge=Q?D(ct,qe,ye,m,i,U):D(qe,ct,ye,i,m,U);if(Ge!==t){if(Ge)continue;Ee=!1;break}if(Fe){if(!ps(m,function(vt,_t){if(!zr(Fe,_t)&&(qe===vt||H(qe,vt,C,D,U)))return Fe.push(_t)})){Ee=!1;break}}else if(!(qe===ct||H(qe,ct,C,D,U))){Ee=!1;break}}return U.delete(i),U.delete(m),Ee}function nM(i,m,C,D,H,U,Q){switch(C){case De:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case Re:return!(i.byteLength!=m.byteLength||!U(new sc(i),new sc(m)));case me:case we:case wt:return Vr(+i,+m);case Ae:return i.name==m.name&&i.message==m.message;case Cn:case We:return i==m+"";case gt:var ee=ve;case an:var ie=D&o;if(ee||(ee=Te),i.size!=m.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==m;D|=f,Q.set(i,m);var ge=L0(ee(i),ee(m),D,H,U,Q);return Q.delete(i),ge;case ze:if(Aa)return Aa.call(i)==Aa.call(m)}return!1}function rM(i,m,C,D,H,U){var Q=C&o,ee=Md(i),ie=ee.length,fe=Md(m),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ye=ie;ye--;){var Ee=ee[ye];if(!(Q?Ee in m:It.call(m,Ee)))return!1}var Fe=U.get(i),qe=U.get(m);if(Fe&&qe)return Fe==m&&qe==i;var ct=!0;U.set(i,m),U.set(m,i);for(var Ge=Q;++ye<ie;){Ee=ee[ye];var vt=i[Ee],_t=m[Ee];if(D)var _r=Q?D(_t,vt,Ee,m,i,U):D(vt,_t,Ee,i,m,U);if(!(_r===t?vt===_t||H(vt,_t,C,D,U):_r)){ct=!1;break}Ge||(Ge=Ee=="constructor")}if(ct&&!Ge){var nr=i.constructor,kr=m.constructor;nr!=kr&&"constructor"in i&&"constructor"in m&&!(typeof nr=="function"&&nr instanceof nr&&typeof kr=="function"&&kr instanceof kr)&&(ct=!1)}return U.delete(i),U.delete(m),ct}function Si(i){return Hd(P0(i,t,G0),i+"")}function Md(i){return Jw(i,Pn,Dd)}function Ld(i){return Jw(i,dr,I0)}var Id=dc?function(i){return dc.get(i)}:Jd;function Ac(i){for(var m=i.name+"",C=vs[m],D=It.call(vs,m)?C.length:0;D--;){var H=C[D],U=H.func;if(U==null||U==i)return H.name}return m}function ks(i){var m=It.call(j,"placeholder")?j:i;return m.placeholder}function Ue(){var i=j.iteratee||Qd;return i=i===Qd?t0:i,arguments.length?i(arguments[0],arguments[1]):i}function Cc(i,m){var C=i.__data__;return hM(m)?C[typeof m=="string"?"string":"hash"]:C.map}function Od(i){for(var m=Pn(i),C=m.length;C--;){var D=m[C],H=i[D];m[C]=[D,H,N0(H)]}return m}function Do(i,m){var C=K(i,m);return e0(C)?C:t}function iM(i){var m=It.call(i,Ro),C=i[Ro];try{i[Ro]=t;var D=!0}catch{}var H=ic.call(i);return D&&(m?i[Ro]=C:delete i[Ro]),H}var Dd=ld?function(i){return i==null?[]:(i=et(i),lr(ld(i),function(m){return Hw.call(i,m)}))}:Xd,I0=ld?function(i){for(var m=[];i;)Gn(m,Dd(i)),i=ac(i);return m}:Xd,Qn=er;(cd&&Qn(new cd(new ArrayBuffer(1)))!=De||ka&&Qn(new ka)!=gt||ud&&Qn(ud.resolve())!=tn||ws&&Qn(new ws)!=an||Sa&&Qn(new Sa)!=Ve)&&(Qn=function(i){var m=er(i),C=m==Ft?i.constructor:t,D=C?No(C):"";if(D)switch(D){case WE:return De;case BE:return gt;case jE:return tn;case zE:return an;case UE:return Ve}return m});function oM(i,m,C){for(var D=-1,H=C.length;++D<H;){var U=C[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":m-=Q;break;case"take":m=Kn(m,i+Q);break;case"takeRight":i=In(i,m-Q);break}}return{start:i,end:m}}function sM(i){var m=i.match(Dl);return m?m[1].split(Nl):[]}function O0(i,m,C){m=Zi(m,i);for(var D=-1,H=m.length,U=!1;++D<H;){var Q=ui(m[D]);if(!(U=i!=null&&C(i,Q)))break;i=i[Q]}return U||++D!=H?U:(H=i==null?0:i.length,!!H&&Oc(H)&&$i(Q,H)&&(tt(i)||Fo(i)))}function aM(i){var m=i.length,C=new i.constructor(m);return m&&typeof i[0]=="string"&&It.call(i,"index")&&(C.index=i.index,C.input=i.input),C}function D0(i){return typeof i.constructor=="function"&&!Ia(i)?bs(ac(i)):{}}function lM(i,m,C){var D=i.constructor;switch(m){case Re:return Td(i);case me:case we:return new D(+i);case De:return VR(i,C);case Ye:case Qe:case mt:case yt:case ht:case dt:case ot:case Yt:case Un:return y0(i,C);case gt:return new D;case wt:case We:return new D(i);case Cn:return qR(i);case an:return new D;case ze:return GR(i)}}function cM(i,m){var C=m.length;if(!C)return i;var D=C-1;return m[D]=(C>1?"& ":"")+m[D],m=m.join(C>2?", ":" "),i.replace(Ni,`{
|
1388
|
+
/* [wrapped with `+m+`] */
|
1389
|
+
`)}function uM(i){return tt(i)||Fo(i)||!!(Ww&&i&&i[Ww])}function $i(i,m){var C=typeof i;return m=m??W,!!m&&(C=="number"||C!="symbol"&&xn.test(i))&&i>-1&&i%1==0&&i<m}function tr(i,m,C){if(!on(C))return!1;var D=typeof m;return(D=="number"?hr(C)&&$i(m,C.length):D=="string"&&m in C)?Vr(C[m],i):!1}function Nd(i,m){if(tt(i))return!1;var C=typeof i;return C=="number"||C=="symbol"||C=="boolean"||i==null||xr(i)?!0:Nn.test(i)||!pi.test(i)||m!=null&&i in et(m)}function hM(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Fd(i){var m=Ac(i),C=j[m];if(typeof C!="function"||!(m in xt.prototype))return!1;if(i===C)return!0;var D=Id(C);return!!D&&i===D[0]}function dM(i){return!!Nw&&Nw in i}var fM=nc?Ai:ef;function Ia(i){var m=i&&i.constructor,C=typeof m=="function"&&m.prototype||ys;return i===C}function N0(i){return i===i&&!on(i)}function F0(i,m){return function(C){return C==null?!1:C[i]===m&&(m!==t||i in et(C))}}function pM(i){var m=Lc(i,function(D){return C.size===g&&C.clear(),D}),C=m.cache;return m}function gM(i,m){var C=i[1],D=m[1],H=C|D,U=H<(y|v|T),Q=D==T&&C==M||D==T&&C==R&&i[7].length<=m[8]||D==(T|R)&&m[7].length<=m[8]&&C==M;if(!(U||Q))return i;D&y&&(i[2]=m[2],H|=C&y?0:x);var ee=m[3];if(ee){var ie=i[3];i[3]=ie?v0(ie,ee,m[4]):ee,i[4]=ie?$e(i[3],s):m[4]}return ee=m[5],ee&&(ie=i[5],i[5]=ie?b0(ie,ee,m[6]):ee,i[6]=ie?$e(i[5],s):m[6]),ee=m[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?m[8]:Kn(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=H,i}function mM(i){var m=[];if(i!=null)for(var C in et(i))m.push(C);return m}function yM(i){return ic.call(i)}function P0(i,m,C){return m=In(m===t?i.length-1:m,0),function(){for(var D=arguments,H=-1,U=In(D.length-m,0),Q=se(U);++H<U;)Q[H]=D[m+H];H=-1;for(var ee=se(m+1);++H<m;)ee[H]=D[H];return ee[m]=C(Q),Zt(i,this,ee)}}function H0(i,m){return m.length<2?i:Oo(i,Ir(m,0,-1))}function wM(i,m){for(var C=i.length,D=Kn(m.length,C),H=ur(i);D--;){var U=m[D];i[D]=$i(U,C)?H[U]:t}return i}function Pd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var W0=j0(c0),Oa=IE||function(i,m){return Rn.setTimeout(i,m)},Hd=j0(BR);function B0(i,m,C){var D=m+"";return Hd(i,cM(D,vM(sM(D),C)))}function j0(i){var m=0,C=0;return function(){var D=FE(),H=_-(D-C);if(C=D,H>0){if(++m>=S)return arguments[0]}else m=0;return i.apply(t,arguments)}}function Tc(i,m){var C=-1,D=i.length,H=D-1;for(m=m===t?D:m;++C<m;){var U=xd(C,H),Q=i[U];i[U]=i[C],i[C]=Q}return i.length=m,i}var z0=pM(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(ti,function(C,D,H,U){m.push(H?U.replace(gi,"$1"):D||C)}),m});function ui(i){if(typeof i=="string"||xr(i))return i;var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function No(i){if(i!=null){try{return rc.call(i)}catch{}try{return i+""}catch{}}return""}function vM(i,m){return Jn(Z,function(C){var D="_."+C[0];m&C[1]&&!fs(i,D)&&i.push(D)}),i.sort()}function U0(i){if(i instanceof xt)return i.clone();var m=new Mr(i.__wrapped__,i.__chain__);return m.__actions__=ur(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function bM(i,m,C){(C?tr(i,m,C):m===t)?m=1:m=In(at(m),0);var D=i==null?0:i.length;if(!D||m<1)return[];for(var H=0,U=0,Q=se(uc(D/m));H<D;)Q[U++]=Ir(i,H,H+=m);return Q}function xM(i){for(var m=-1,C=i==null?0:i.length,D=0,H=[];++m<C;){var U=i[m];U&&(H[D++]=U)}return H}function _M(){var i=arguments.length;if(!i)return[];for(var m=se(i-1),C=arguments[0],D=i;D--;)m[D-1]=arguments[D];return Gn(tt(C)?ur(C):[C],Hn(m,1))}var kM=ft(function(i,m){return mn(i)?Ta(i,Hn(m,1,mn,!0)):[]}),SM=ft(function(i,m){var C=Or(m);return mn(C)&&(C=t),mn(i)?Ta(i,Hn(m,1,mn,!0),Ue(C,2)):[]}),$M=ft(function(i,m){var C=Or(m);return mn(C)&&(C=t),mn(i)?Ta(i,Hn(m,1,mn,!0),t,C):[]});function AM(i,m,C){var D=i==null?0:i.length;return D?(m=C||m===t?1:at(m),Ir(i,m<0?0:m,D)):[]}function CM(i,m,C){var D=i==null?0:i.length;return D?(m=C||m===t?1:at(m),m=D-m,Ir(i,0,m<0?0:m)):[]}function TM(i,m){return i&&i.length?bc(i,Ue(m,3),!0,!0):[]}function EM(i,m){return i&&i.length?bc(i,Ue(m,3),!0):[]}function RM(i,m,C,D){var H=i==null?0:i.length;return H?(C&&typeof C!="number"&&tr(i,m,C)&&(C=0,D=H),_R(i,m,C,D)):[]}function V0(i,m,C){var D=i==null?0:i.length;if(!D)return-1;var H=C==null?0:at(C);return H<0&&(H=In(D+H,0)),To(i,Ue(m,3),H)}function q0(i,m,C){var D=i==null?0:i.length;if(!D)return-1;var H=D-1;return C!==t&&(H=at(C),H=C<0?In(D+H,0):Kn(H,D-1)),To(i,Ue(m,3),H,!0)}function G0(i){var m=i==null?0:i.length;return m?Hn(i,1):[]}function MM(i){var m=i==null?0:i.length;return m?Hn(i,F):[]}function LM(i,m){var C=i==null?0:i.length;return C?(m=m===t?1:at(m),Hn(i,m)):[]}function IM(i){for(var m=-1,C=i==null?0:i.length,D={};++m<C;){var H=i[m];D[H[0]]=H[1]}return D}function Y0(i){return i&&i.length?i[0]:t}function OM(i,m,C){var D=i==null?0:i.length;if(!D)return-1;var H=C==null?0:at(C);return H<0&&(H=In(D+H,0)),vi(i,m,H)}function DM(i){var m=i==null?0:i.length;return m?Ir(i,0,-1):[]}var NM=ft(function(i){var m=Vt(i,Ad);return m.length&&m[0]===i[0]?md(m):[]}),FM=ft(function(i){var m=Or(i),C=Vt(i,Ad);return m===Or(C)?m=t:C.pop(),C.length&&C[0]===i[0]?md(C,Ue(m,2)):[]}),PM=ft(function(i){var m=Or(i),C=Vt(i,Ad);return m=typeof m=="function"?m:t,m&&C.pop(),C.length&&C[0]===i[0]?md(C,t,m):[]});function HM(i,m){return i==null?"":DE.call(i,m)}function Or(i){var m=i==null?0:i.length;return m?i[m-1]:t}function WM(i,m,C){var D=i==null?0:i.length;if(!D)return-1;var H=D;return C!==t&&(H=at(C),H=H<0?In(D+H,0):Kn(H,D-1)),m===m?Lt(i,m,H):To(i,ya,H,!0)}function BM(i,m){return i&&i.length?o0(i,at(m)):t}var jM=ft(K0);function K0(i,m){return i&&i.length&&m&&m.length?bd(i,m):i}function zM(i,m,C){return i&&i.length&&m&&m.length?bd(i,m,Ue(C,2)):i}function UM(i,m,C){return i&&i.length&&m&&m.length?bd(i,m,t,C):i}var VM=Si(function(i,m){var C=i==null?0:i.length,D=dd(i,m);return l0(i,Vt(m,function(H){return $i(H,C)?+H:H}).sort(w0)),D});function qM(i,m){var C=[];if(!(i&&i.length))return C;var D=-1,H=[],U=i.length;for(m=Ue(m,3);++D<U;){var Q=i[D];m(Q,D,i)&&(C.push(Q),H.push(D))}return l0(i,H),C}function Wd(i){return i==null?i:HE.call(i)}function GM(i,m,C){var D=i==null?0:i.length;return D?(C&&typeof C!="number"&&tr(i,m,C)?(m=0,C=D):(m=m==null?0:at(m),C=C===t?D:at(C)),Ir(i,m,C)):[]}function YM(i,m){return vc(i,m)}function KM(i,m,C){return kd(i,m,Ue(C,2))}function QM(i,m){var C=i==null?0:i.length;if(C){var D=vc(i,m);if(D<C&&Vr(i[D],m))return D}return-1}function ZM(i,m){return vc(i,m,!0)}function JM(i,m,C){return kd(i,m,Ue(C,2),!0)}function XM(i,m){var C=i==null?0:i.length;if(C){var D=vc(i,m,!0)-1;if(Vr(i[D],m))return D}return-1}function eL(i){return i&&i.length?u0(i):[]}function tL(i,m){return i&&i.length?u0(i,Ue(m,2)):[]}function nL(i){var m=i==null?0:i.length;return m?Ir(i,1,m):[]}function rL(i,m,C){return i&&i.length?(m=C||m===t?1:at(m),Ir(i,0,m<0?0:m)):[]}function iL(i,m,C){var D=i==null?0:i.length;return D?(m=C||m===t?1:at(m),m=D-m,Ir(i,m<0?0:m,D)):[]}function oL(i,m){return i&&i.length?bc(i,Ue(m,3),!1,!0):[]}function sL(i,m){return i&&i.length?bc(i,Ue(m,3)):[]}var aL=ft(function(i){return Qi(Hn(i,1,mn,!0))}),lL=ft(function(i){var m=Or(i);return mn(m)&&(m=t),Qi(Hn(i,1,mn,!0),Ue(m,2))}),cL=ft(function(i){var m=Or(i);return m=typeof m=="function"?m:t,Qi(Hn(i,1,mn,!0),t,m)});function uL(i){return i&&i.length?Qi(i):[]}function hL(i,m){return i&&i.length?Qi(i,Ue(m,2)):[]}function dL(i,m){return m=typeof m=="function"?m:t,i&&i.length?Qi(i,t,m):[]}function Bd(i){if(!(i&&i.length))return[];var m=0;return i=lr(i,function(C){if(mn(C))return m=In(C.length,m),!0}),cn(m,function(C){return Vt(i,va(C))})}function Q0(i,m){if(!(i&&i.length))return[];var C=Bd(i);return m==null?C:Vt(C,function(D){return Zt(m,t,D)})}var fL=ft(function(i,m){return mn(i)?Ta(i,m):[]}),pL=ft(function(i){return $d(lr(i,mn))}),gL=ft(function(i){var m=Or(i);return mn(m)&&(m=t),$d(lr(i,mn),Ue(m,2))}),mL=ft(function(i){var m=Or(i);return m=typeof m=="function"?m:t,$d(lr(i,mn),t,m)}),yL=ft(Bd);function wL(i,m){return p0(i||[],m||[],Ca)}function vL(i,m){return p0(i||[],m||[],Ma)}var bL=ft(function(i){var m=i.length,C=m>1?i[m-1]:t;return C=typeof C=="function"?(i.pop(),C):t,Q0(i,C)});function Z0(i){var m=j(i);return m.__chain__=!0,m}function xL(i,m){return m(i),i}function Ec(i,m){return m(i)}var _L=Si(function(i){var m=i.length,C=m?i[0]:0,D=this.__wrapped__,H=function(U){return dd(U,i)};return m>1||this.__actions__.length||!(D instanceof xt)||!$i(C)?this.thru(H):(D=D.slice(C,+C+(m?1:0)),D.__actions__.push({func:Ec,args:[H],thisArg:t}),new Mr(D,this.__chain__).thru(function(U){return m&&!U.length&&U.push(t),U}))});function kL(){return Z0(this)}function SL(){return new Mr(this.value(),this.__chain__)}function $L(){this.__values__===t&&(this.__values__=hv(this.value()));var i=this.__index__>=this.__values__.length,m=i?t:this.__values__[this.__index__++];return{done:i,value:m}}function AL(){return this}function CL(i){for(var m,C=this;C instanceof pc;){var D=U0(C);D.__index__=0,D.__values__=t,m?H.__wrapped__=D:m=D;var H=D;C=C.__wrapped__}return H.__wrapped__=i,m}function TL(){var i=this.__wrapped__;if(i instanceof xt){var m=i;return this.__actions__.length&&(m=new xt(this)),m=m.reverse(),m.__actions__.push({func:Ec,args:[Wd],thisArg:t}),new Mr(m,this.__chain__)}return this.thru(Wd)}function EL(){return f0(this.__wrapped__,this.__actions__)}var RL=xc(function(i,m,C){It.call(i,C)?++i[C]:_i(i,C,1)});function ML(i,m,C){var D=tt(i)?Vi:xR;return C&&tr(i,m,C)&&(m=t),D(i,Ue(m,3))}function LL(i,m){var C=tt(i)?lr:Qw;return C(i,Ue(m,3))}var IL=S0(V0),OL=S0(q0);function DL(i,m){return Hn(Rc(i,m),1)}function NL(i,m){return Hn(Rc(i,m),F)}function FL(i,m,C){return C=C===t?1:at(C),Hn(Rc(i,m),C)}function J0(i,m){var C=tt(i)?Jn:Ki;return C(i,Ue(m,3))}function X0(i,m){var C=tt(i)?Zl:Kw;return C(i,Ue(m,3))}var PL=xc(function(i,m,C){It.call(i,C)?i[C].push(m):_i(i,C,[m])});function HL(i,m,C,D){i=hr(i)?i:$s(i),C=C&&!D?at(C):0;var H=i.length;return C<0&&(C=In(H+C,0)),Dc(i)?C<=H&&i.indexOf(m,C)>-1:!!H&&vi(i,m,C)>-1}var WL=ft(function(i,m,C){var D=-1,H=typeof m=="function",U=hr(i)?se(i.length):[];return Ki(i,function(Q){U[++D]=H?Zt(m,Q,C):Ea(Q,m,C)}),U}),BL=xc(function(i,m,C){_i(i,C,m)});function Rc(i,m){var C=tt(i)?Vt:n0;return C(i,Ue(m,3))}function jL(i,m,C,D){return i==null?[]:(tt(m)||(m=m==null?[]:[m]),C=D?t:C,tt(C)||(C=C==null?[]:[C]),s0(i,m,C))}var zL=xc(function(i,m,C){i[C?0:1].push(m)},function(){return[[],[]]});function UL(i,m,C){var D=tt(i)?Rr:ba,H=arguments.length<3;return D(i,Ue(m,4),C,H,Ki)}function VL(i,m,C){var D=tt(i)?Co:ba,H=arguments.length<3;return D(i,Ue(m,4),C,H,Kw)}function qL(i,m){var C=tt(i)?lr:Qw;return C(i,Ic(Ue(m,3)))}function GL(i){var m=tt(i)?Vw:HR;return m(i)}function YL(i,m,C){(C?tr(i,m,C):m===t)?m=1:m=at(m);var D=tt(i)?mR:WR;return D(i,m)}function KL(i){var m=tt(i)?yR:jR;return m(i)}function QL(i){if(i==null)return 0;if(hr(i))return Dc(i)?st(i):i.length;var m=Qn(i);return m==gt||m==an?i.size:wd(i).length}function ZL(i,m,C){var D=tt(i)?ps:zR;return C&&tr(i,m,C)&&(m=t),D(i,Ue(m,3))}var JL=ft(function(i,m){if(i==null)return[];var C=m.length;return C>1&&tr(i,m[0],m[1])?m=[]:C>2&&tr(m[0],m[1],m[2])&&(m=[m[0]]),s0(i,Hn(m,1),[])}),Mc=LE||function(){return Rn.Date.now()};function XL(i,m){if(typeof m!="function")throw new Ln(p);return i=at(i),function(){if(--i<1)return m.apply(this,arguments)}}function ev(i,m,C){return m=C?t:m,m=i&&m==null?i.length:m,ki(i,T,t,t,t,t,m)}function tv(i,m){var C;if(typeof m!="function")throw new Ln(p);return i=at(i),function(){return--i>0&&(C=m.apply(this,arguments)),i<=1&&(m=t),C}}var jd=ft(function(i,m,C){var D=y;if(C.length){var H=$e(C,ks(jd));D|=k}return ki(i,D,m,C,H)}),nv=ft(function(i,m,C){var D=y|v;if(C.length){var H=$e(C,ks(nv));D|=k}return ki(m,D,i,C,H)});function rv(i,m,C){m=C?t:m;var D=ki(i,M,t,t,t,t,t,m);return D.placeholder=rv.placeholder,D}function iv(i,m,C){m=C?t:m;var D=ki(i,A,t,t,t,t,t,m);return D.placeholder=iv.placeholder,D}function ov(i,m,C){var D,H,U,Q,ee,ie,fe=0,ge=!1,ye=!1,Ee=!0;if(typeof i!="function")throw new Ln(p);m=Dr(m)||0,on(C)&&(ge=!!C.leading,ye="maxWait"in C,U=ye?In(Dr(C.maxWait)||0,m):U,Ee="trailing"in C?!!C.trailing:Ee);function Fe(yn){var qr=D,Ti=H;return D=H=t,fe=yn,Q=i.apply(Ti,qr),Q}function qe(yn){return fe=yn,ee=Oa(vt,m),ge?Fe(yn):Q}function ct(yn){var qr=yn-ie,Ti=yn-fe,Sv=m-qr;return ye?Kn(Sv,U-Ti):Sv}function Ge(yn){var qr=yn-ie,Ti=yn-fe;return ie===t||qr>=m||qr<0||ye&&Ti>=U}function vt(){var yn=Mc();if(Ge(yn))return _t(yn);ee=Oa(vt,ct(yn))}function _t(yn){return ee=t,Ee&&D?Fe(yn):(D=H=t,Q)}function _r(){ee!==t&&g0(ee),fe=0,D=ie=H=ee=t}function nr(){return ee===t?Q:_t(Mc())}function kr(){var yn=Mc(),qr=Ge(yn);if(D=arguments,H=this,ie=yn,qr){if(ee===t)return qe(ie);if(ye)return g0(ee),ee=Oa(vt,m),Fe(ie)}return ee===t&&(ee=Oa(vt,m)),Q}return kr.cancel=_r,kr.flush=nr,kr}var e2=ft(function(i,m){return Yw(i,1,m)}),t2=ft(function(i,m,C){return Yw(i,Dr(m)||0,C)});function n2(i){return ki(i,L)}function Lc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new Ln(p);var C=function(){var D=arguments,H=m?m.apply(this,D):D[0],U=C.cache;if(U.has(H))return U.get(H);var Q=i.apply(this,D);return C.cache=U.set(H,Q)||U,Q};return C.cache=new(Lc.Cache||xi),C}Lc.Cache=xi;function Ic(i){if(typeof i!="function")throw new Ln(p);return function(){var m=arguments;switch(m.length){case 0:return!i.call(this);case 1:return!i.call(this,m[0]);case 2:return!i.call(this,m[0],m[1]);case 3:return!i.call(this,m[0],m[1],m[2])}return!i.apply(this,m)}}function r2(i){return tv(2,i)}var i2=UR(function(i,m){m=m.length==1&&tt(m[0])?Vt(m[0],Yn(Ue())):Vt(Hn(m,1),Yn(Ue()));var C=m.length;return ft(function(D){for(var H=-1,U=Kn(D.length,C);++H<U;)D[H]=m[H].call(this,D[H]);return Zt(i,this,D)})}),zd=ft(function(i,m){var C=$e(m,ks(zd));return ki(i,k,t,m,C)}),sv=ft(function(i,m){var C=$e(m,ks(sv));return ki(i,b,t,m,C)}),o2=Si(function(i,m){return ki(i,R,t,t,t,m)});function s2(i,m){if(typeof i!="function")throw new Ln(p);return m=m===t?m:at(m),ft(i,m)}function a2(i,m){if(typeof i!="function")throw new Ln(p);return m=m==null?0:In(at(m),0),ft(function(C){var D=C[m],H=Ji(C,0,m);return D&&Gn(H,D),Zt(i,this,H)})}function l2(i,m,C){var D=!0,H=!0;if(typeof i!="function")throw new Ln(p);return on(C)&&(D="leading"in C?!!C.leading:D,H="trailing"in C?!!C.trailing:H),ov(i,m,{leading:D,maxWait:m,trailing:H})}function c2(i){return ev(i,1)}function u2(i,m){return zd(Cd(m),i)}function h2(){if(!arguments.length)return[];var i=arguments[0];return tt(i)?i:[i]}function d2(i){return Lr(i,l)}function f2(i,m){return m=typeof m=="function"?m:t,Lr(i,l,m)}function p2(i){return Lr(i,c|l)}function g2(i,m){return m=typeof m=="function"?m:t,Lr(i,c|l,m)}function m2(i,m){return m==null||Gw(i,m,Pn(m))}function Vr(i,m){return i===m||i!==i&&m!==m}var y2=$c(gd),w2=$c(function(i,m){return i>=m}),Fo=Xw(function(){return arguments}())?Xw:function(i){return un(i)&&It.call(i,"callee")&&!Hw.call(i,"callee")},tt=se.isArray,v2=Kl?Yn(Kl):CR;function hr(i){return i!=null&&Oc(i.length)&&!Ai(i)}function mn(i){return un(i)&&hr(i)}function b2(i){return i===!0||i===!1||un(i)&&er(i)==me}var Xi=OE||ef,x2=Er?Yn(Er):TR;function _2(i){return un(i)&&i.nodeType===1&&!Da(i)}function k2(i){if(i==null)return!0;if(hr(i)&&(tt(i)||typeof i=="string"||typeof i.splice=="function"||Xi(i)||Ss(i)||Fo(i)))return!i.length;var m=Qn(i);if(m==gt||m==an)return!i.size;if(Ia(i))return!wd(i).length;for(var C in i)if(It.call(i,C))return!1;return!0}function S2(i,m){return Ra(i,m)}function $2(i,m,C){C=typeof C=="function"?C:t;var D=C?C(i,m):t;return D===t?Ra(i,m,t,C):!!D}function Ud(i){if(!un(i))return!1;var m=er(i);return m==Ae||m==pe||typeof i.message=="string"&&typeof i.name=="string"&&!Da(i)}function A2(i){return typeof i=="number"&&Bw(i)}function Ai(i){if(!on(i))return!1;var m=er(i);return m==lt||m==zt||m==ae||m==ei}function av(i){return typeof i=="number"&&i==at(i)}function Oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=W}function on(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}function un(i){return i!=null&&typeof i=="object"}var lv=jr?Yn(jr):RR;function C2(i,m){return i===m||yd(i,m,Od(m))}function T2(i,m,C){return C=typeof C=="function"?C:t,yd(i,m,Od(m),C)}function E2(i){return cv(i)&&i!=+i}function R2(i){if(fM(i))throw new He(u);return e0(i)}function M2(i){return i===null}function L2(i){return i==null}function cv(i){return typeof i=="number"||un(i)&&er(i)==wt}function Da(i){if(!un(i)||er(i)!=Ft)return!1;var m=ac(i);if(m===null)return!0;var C=It.call(m,"constructor")&&m.constructor;return typeof C=="function"&&C instanceof C&&rc.call(C)==TE}var Vd=ai?Yn(ai):MR;function I2(i){return av(i)&&i>=-9007199254740991&&i<=W}var uv=wi?Yn(wi):LR;function Dc(i){return typeof i=="string"||!tt(i)&&un(i)&&er(i)==We}function xr(i){return typeof i=="symbol"||un(i)&&er(i)==ze}var Ss=Ql?Yn(Ql):IR;function O2(i){return i===t}function D2(i){return un(i)&&Qn(i)==Ve}function N2(i){return un(i)&&er(i)==ce}var F2=$c(vd),P2=$c(function(i,m){return i<=m});function hv(i){if(!i)return[];if(hr(i))return Dc(i)?Ke(i):ur(i);if(_a&&i[_a])return de(i[_a]());var m=Qn(i),C=m==gt?ve:m==an?Te:$s;return C(i)}function Ci(i){if(!i)return i===0?i:0;if(i=Dr(i),i===F||i===-1/0){var m=i<0?-1:1;return m*z}return i===i?i:0}function at(i){var m=Ci(i),C=m%1;return m===m?C?m-C:m:0}function dv(i){return i?Io(at(i),0,q):0}function Dr(i){if(typeof i=="number")return i;if(xr(i))return V;if(on(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=on(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=nn(i);var C=ri.test(i);return C||bn.test(i)?Pt(i.slice(2),C?2:8):Fl.test(i)?V:+i}function fv(i){return ci(i,dr(i))}function H2(i){return i?Io(at(i),-9007199254740991,W):i===0?i:0}function Rt(i){return i==null?"":br(i)}var W2=xs(function(i,m){if(Ia(m)||hr(m)){ci(m,Pn(m),i);return}for(var C in m)It.call(m,C)&&Ca(i,C,m[C])}),pv=xs(function(i,m){ci(m,dr(m),i)}),Nc=xs(function(i,m,C,D){ci(m,dr(m),i,D)}),B2=xs(function(i,m,C,D){ci(m,Pn(m),i,D)}),j2=Si(dd);function z2(i,m){var C=bs(i);return m==null?C:qw(C,m)}var U2=ft(function(i,m){i=et(i);var C=-1,D=m.length,H=D>2?m[2]:t;for(H&&tr(m[0],m[1],H)&&(D=1);++C<D;)for(var U=m[C],Q=dr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===t||Vr(ge,ys[fe])&&!It.call(i,fe))&&(i[fe]=U[fe])}return i}),V2=ft(function(i){return i.push(t,M0),Zt(gv,t,i)});function q2(i,m){return ma(i,Ue(m,3),li)}function G2(i,m){return ma(i,Ue(m,3),pd)}function Y2(i,m){return i==null?i:fd(i,Ue(m,3),dr)}function K2(i,m){return i==null?i:Zw(i,Ue(m,3),dr)}function Q2(i,m){return i&&li(i,Ue(m,3))}function Z2(i,m){return i&&pd(i,Ue(m,3))}function J2(i){return i==null?[]:yc(i,Pn(i))}function X2(i){return i==null?[]:yc(i,dr(i))}function qd(i,m,C){var D=i==null?t:Oo(i,m);return D===t?C:D}function eI(i,m){return i!=null&&O0(i,m,kR)}function Gd(i,m){return i!=null&&O0(i,m,SR)}var tI=A0(function(i,m,C){m!=null&&typeof m.toString!="function"&&(m=ic.call(m)),i[m]=C},Kd(fr)),nI=A0(function(i,m,C){m!=null&&typeof m.toString!="function"&&(m=ic.call(m)),It.call(i,m)?i[m].push(C):i[m]=[C]},Ue),rI=ft(Ea);function Pn(i){return hr(i)?Uw(i):wd(i)}function dr(i){return hr(i)?Uw(i,!0):OR(i)}function iI(i,m){var C={};return m=Ue(m,3),li(i,function(D,H,U){_i(C,m(D,H,U),D)}),C}function oI(i,m){var C={};return m=Ue(m,3),li(i,function(D,H,U){_i(C,H,m(D,H,U))}),C}var sI=xs(function(i,m,C){wc(i,m,C)}),gv=xs(function(i,m,C,D){wc(i,m,C,D)}),aI=Si(function(i,m){var C={};if(i==null)return C;var D=!1;m=Vt(m,function(U){return U=Zi(U,i),D||(D=U.length>1),U}),ci(i,Ld(i),C),D&&(C=Lr(C,c|a|l,tM));for(var H=m.length;H--;)Sd(C,m[H]);return C});function lI(i,m){return mv(i,Ic(Ue(m)))}var cI=Si(function(i,m){return i==null?{}:NR(i,m)});function mv(i,m){if(i==null)return{};var C=Vt(Ld(i),function(D){return[D]});return m=Ue(m),a0(i,C,function(D,H){return m(D,H[0])})}function uI(i,m,C){m=Zi(m,i);var D=-1,H=m.length;for(H||(H=1,i=t);++D<H;){var U=i==null?t:i[ui(m[D])];U===t&&(D=H,U=C),i=Ai(U)?U.call(i):U}return i}function hI(i,m,C){return i==null?i:Ma(i,m,C)}function dI(i,m,C,D){return D=typeof D=="function"?D:t,i==null?i:Ma(i,m,C,D)}var yv=E0(Pn),wv=E0(dr);function fI(i,m,C){var D=tt(i),H=D||Xi(i)||Ss(i);if(m=Ue(m,4),C==null){var U=i&&i.constructor;H?C=D?new U:[]:on(i)?C=Ai(U)?bs(ac(i)):{}:C={}}return(H?Jn:li)(i,function(Q,ee,ie){return m(C,Q,ee,ie)}),C}function pI(i,m){return i==null?!0:Sd(i,m)}function gI(i,m,C){return i==null?i:d0(i,m,Cd(C))}function mI(i,m,C,D){return D=typeof D=="function"?D:t,i==null?i:d0(i,m,Cd(C),D)}function $s(i){return i==null?[]:Eo(i,Pn(i))}function yI(i){return i==null?[]:Eo(i,dr(i))}function wI(i,m,C){return C===t&&(C=m,m=t),C!==t&&(C=Dr(C),C=C===C?C:0),m!==t&&(m=Dr(m),m=m===m?m:0),Io(Dr(i),m,C)}function vI(i,m,C){return m=Ci(m),C===t?(C=m,m=0):C=Ci(C),i=Dr(i),$R(i,m,C)}function bI(i,m,C){if(C&&typeof C!="boolean"&&tr(i,m,C)&&(m=C=t),C===t&&(typeof m=="boolean"?(C=m,m=t):typeof i=="boolean"&&(C=i,i=t)),i===t&&m===t?(i=0,m=1):(i=Ci(i),m===t?(m=i,i=0):m=Ci(m)),i>m){var D=i;i=m,m=D}if(C||i%1||m%1){var H=jw();return Kn(i+H*(m-i+kn("1e-"+((H+"").length-1))),m)}return xd(i,m)}var xI=_s(function(i,m,C){return m=m.toLowerCase(),i+(C?vv(m):m)});function vv(i){return Yd(Rt(i).toLowerCase())}function bv(i){return i=Rt(i),i&&i.replace(is,P).replace(ji,"")}function _I(i,m,C){i=Rt(i),m=br(m);var D=i.length;C=C===t?D:Io(at(C),0,D);var H=C;return C-=m.length,C>=0&&i.slice(C,H)==m}function kI(i){return i=Rt(i),i&&Jh.test(i)?i.replace(Ol,B):i}function SI(i){return i=Rt(i),i&&Oi.test(i)?i.replace(ni,"\\$&"):i}var $I=_s(function(i,m,C){return i+(C?"-":"")+m.toLowerCase()}),AI=_s(function(i,m,C){return i+(C?" ":"")+m.toLowerCase()}),CI=k0("toLowerCase");function TI(i,m,C){i=Rt(i),m=at(m);var D=m?st(i):0;if(!m||D>=m)return i;var H=(m-D)/2;return Sc(hc(H),C)+i+Sc(uc(H),C)}function EI(i,m,C){i=Rt(i),m=at(m);var D=m?st(i):0;return m&&D<m?i+Sc(m-D,C):i}function RI(i,m,C){i=Rt(i),m=at(m);var D=m?st(i):0;return m&&D<m?Sc(m-D,C)+i:i}function MI(i,m,C){return C||m==null?m=0:m&&(m=+m),PE(Rt(i).replace(Vn,""),m||0)}function LI(i,m,C){return(C?tr(i,m,C):m===t)?m=1:m=at(m),_d(Rt(i),m)}function II(){var i=arguments,m=Rt(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var OI=_s(function(i,m,C){return i+(C?"_":"")+m.toLowerCase()});function DI(i,m,C){return C&&typeof C!="number"&&tr(i,m,C)&&(m=C=t),C=C===t?q:C>>>0,C?(i=Rt(i),i&&(typeof m=="string"||m!=null&&!Vd(m))&&(m=br(m),!m&&te(i))?Ji(Ke(i),0,C):i.split(m,C)):[]}var NI=_s(function(i,m,C){return i+(C?" ":"")+Yd(m)});function FI(i,m,C){return i=Rt(i),C=C==null?0:Io(at(C),0,i.length),m=br(m),i.slice(C,C+m.length)==m}function PI(i,m,C){var D=j.templateSettings;C&&tr(i,m,C)&&(m=t),i=Rt(i),m=Nc({},m,D,R0);var H=Nc({},m.imports,D.imports,R0),U=Pn(H),Q=Eo(H,U),ee,ie,fe=0,ge=m.interpolate||qn,ye="__p += '",Ee=Mn((m.escape||qn).source+"|"+ge.source+"|"+(ge===Be?rd:qn).source+"|"+(m.evaluate||qn).source+"|$","g"),Fe="//# sourceURL="+(It.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gl+"]")+`
|
1390
|
+
`;i.replace(Ee,function(Ge,vt,_t,_r,nr,kr){return _t||(_t=_r),ye+=i.slice(fe,kr).replace(xo,Y),vt&&(ee=!0,ye+=`' +
|
1391
|
+
__e(`+vt+`) +
|
1392
|
+
'`),nr&&(ie=!0,ye+=`';
|
1393
|
+
`+nr+`;
|
1394
|
+
__p += '`),_t&&(ye+=`' +
|
1395
|
+
((__t = (`+_t+`)) == null ? '' : __t) +
|
1396
|
+
'`),fe=kr+Ge.length,Ge}),ye+=`';
|
1397
|
+
`;var qe=It.call(m,"variable")&&m.variable;if(!qe)ye=`with (obj) {
|
1398
|
+
`+ye+`
|
1399
|
+
}
|
1400
|
+
`;else if(nd.test(qe))throw new He(w);ye=(ie?ye.replace(fi,""):ye).replace(sr,"$1").replace(Zs,"$1;"),ye="function("+(qe||"obj")+`) {
|
1401
|
+
`+(qe?"":`obj || (obj = {});
|
1402
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
1403
|
+
function print() { __p += __j.call(arguments, '') }
|
1404
|
+
`:`;
|
1405
|
+
`)+ye+`return __p
|
1406
|
+
}`;var ct=_v(function(){return Je(U,Fe+"return "+ye).apply(t,Q)});if(ct.source=ye,Ud(ct))throw ct;return ct}function HI(i){return Rt(i).toLowerCase()}function WI(i){return Rt(i).toUpperCase()}function BI(i,m,C){if(i=Rt(i),i&&(C||m===t))return nn(i);if(!i||!(m=br(m)))return i;var D=Ke(i),H=Ke(m),U=ec(D,H),Q=tc(D,H)+1;return Ji(D,U,Q).join("")}function jI(i,m,C){if(i=Rt(i),i&&(C||m===t))return i.slice(0,Xe(i)+1);if(!i||!(m=br(m)))return i;var D=Ke(i),H=tc(D,Ke(m))+1;return Ji(D,0,H).join("")}function zI(i,m,C){if(i=Rt(i),i&&(C||m===t))return i.replace(Vn,"");if(!i||!(m=br(m)))return i;var D=Ke(i),H=ec(D,Ke(m));return Ji(D,H).join("")}function UI(i,m){var C=E,D=N;if(on(m)){var H="separator"in m?m.separator:H;C="length"in m?at(m.length):C,D="omission"in m?br(m.omission):D}i=Rt(i);var U=i.length;if(te(i)){var Q=Ke(i);U=Q.length}if(C>=U)return i;var ee=C-st(D);if(ee<1)return D;var ie=Q?Ji(Q,0,ee).join(""):i.slice(0,ee);if(H===t)return ie+D;if(Q&&(ee+=ie.length-ee),Vd(H)){if(i.slice(ee).search(H)){var fe,ge=ie;for(H.global||(H=Mn(H.source,Rt(Fi.exec(H))+"g")),H.lastIndex=0;fe=H.exec(ge);)var ye=fe.index;ie=ie.slice(0,ye===t?ee:ye)}}else if(i.indexOf(br(H),ee)!=ee){var Ee=ie.lastIndexOf(H);Ee>-1&&(ie=ie.slice(0,Ee))}return ie+D}function VI(i){return i=Rt(i),i&&Zh.test(i)?i.replace(Js,Ne):i}var qI=_s(function(i,m,C){return i+(C?" ":"")+m.toUpperCase()}),Yd=k0("toUpperCase");function xv(i,m,C){return i=Rt(i),m=C?t:m,m===t?oe(i)?Jt(i):gs(i):i.match(m)||[]}var _v=ft(function(i,m){try{return Zt(i,t,m)}catch(C){return Ud(C)?C:new He(C)}}),GI=Si(function(i,m){return Jn(m,function(C){C=ui(C),_i(i,C,jd(i[C],i))}),i});function YI(i){var m=i==null?0:i.length,C=Ue();return i=m?Vt(i,function(D){if(typeof D[1]!="function")throw new Ln(p);return[C(D[0]),D[1]]}):[],ft(function(D){for(var H=-1;++H<m;){var U=i[H];if(Zt(U[0],this,D))return Zt(U[1],this,D)}})}function KI(i){return bR(Lr(i,c))}function Kd(i){return function(){return i}}function QI(i,m){return i==null||i!==i?m:i}var ZI=$0(),JI=$0(!0);function fr(i){return i}function Qd(i){return t0(typeof i=="function"?i:Lr(i,c))}function XI(i){return r0(Lr(i,c))}function eO(i,m){return i0(i,Lr(m,c))}var tO=ft(function(i,m){return function(C){return Ea(C,i,m)}}),nO=ft(function(i,m){return function(C){return Ea(i,C,m)}});function Zd(i,m,C){var D=Pn(m),H=yc(m,D);C==null&&!(on(m)&&(H.length||!D.length))&&(C=m,m=i,i=this,H=yc(m,Pn(m)));var U=!(on(C)&&"chain"in C)||!!C.chain,Q=Ai(i);return Jn(H,function(ee){var ie=m[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ye=ge.__actions__=ur(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,Gn([this.value()],arguments))})}),i}function rO(){return Rn._===this&&(Rn._=EE),this}function Jd(){}function iO(i){return i=at(i),ft(function(m){return o0(m,i)})}var oO=Ed(Vt),sO=Ed(Vi),aO=Ed(ps);function kv(i){return Nd(i)?va(ui(i)):FR(i)}function lO(i){return function(m){return i==null?t:Oo(i,m)}}var cO=C0(),uO=C0(!0);function Xd(){return[]}function ef(){return!1}function hO(){return{}}function dO(){return""}function fO(){return!0}function pO(i,m){if(i=at(i),i<1||i>W)return[];var C=q,D=Kn(i,q);m=Ue(m),i-=q;for(var H=cn(D,m);++C<i;)m(C);return H}function gO(i){return tt(i)?Vt(i,ui):xr(i)?[i]:ur(z0(Rt(i)))}function mO(i){var m=++CE;return Rt(i)+m}var yO=kc(function(i,m){return i+m},0),wO=Rd("ceil"),vO=kc(function(i,m){return i/m},1),bO=Rd("floor");function xO(i){return i&&i.length?mc(i,fr,gd):t}function _O(i,m){return i&&i.length?mc(i,Ue(m,2),gd):t}function kO(i){return wa(i,fr)}function SO(i,m){return wa(i,Ue(m,2))}function $O(i){return i&&i.length?mc(i,fr,vd):t}function AO(i,m){return i&&i.length?mc(i,Ue(m,2),vd):t}var CO=kc(function(i,m){return i*m},1),TO=Rd("round"),EO=kc(function(i,m){return i-m},0);function RO(i){return i&&i.length?Gi(i,fr):0}function MO(i,m){return i&&i.length?Gi(i,Ue(m,2)):0}return j.after=XL,j.ary=ev,j.assign=W2,j.assignIn=pv,j.assignInWith=Nc,j.assignWith=B2,j.at=j2,j.before=tv,j.bind=jd,j.bindAll=GI,j.bindKey=nv,j.castArray=h2,j.chain=Z0,j.chunk=bM,j.compact=xM,j.concat=_M,j.cond=YI,j.conforms=KI,j.constant=Kd,j.countBy=RL,j.create=z2,j.curry=rv,j.curryRight=iv,j.debounce=ov,j.defaults=U2,j.defaultsDeep=V2,j.defer=e2,j.delay=t2,j.difference=kM,j.differenceBy=SM,j.differenceWith=$M,j.drop=AM,j.dropRight=CM,j.dropRightWhile=TM,j.dropWhile=EM,j.fill=RM,j.filter=LL,j.flatMap=DL,j.flatMapDeep=NL,j.flatMapDepth=FL,j.flatten=G0,j.flattenDeep=MM,j.flattenDepth=LM,j.flip=n2,j.flow=ZI,j.flowRight=JI,j.fromPairs=IM,j.functions=J2,j.functionsIn=X2,j.groupBy=PL,j.initial=DM,j.intersection=NM,j.intersectionBy=FM,j.intersectionWith=PM,j.invert=tI,j.invertBy=nI,j.invokeMap=WL,j.iteratee=Qd,j.keyBy=BL,j.keys=Pn,j.keysIn=dr,j.map=Rc,j.mapKeys=iI,j.mapValues=oI,j.matches=XI,j.matchesProperty=eO,j.memoize=Lc,j.merge=sI,j.mergeWith=gv,j.method=tO,j.methodOf=nO,j.mixin=Zd,j.negate=Ic,j.nthArg=iO,j.omit=aI,j.omitBy=lI,j.once=r2,j.orderBy=jL,j.over=oO,j.overArgs=i2,j.overEvery=sO,j.overSome=aO,j.partial=zd,j.partialRight=sv,j.partition=zL,j.pick=cI,j.pickBy=mv,j.property=kv,j.propertyOf=lO,j.pull=jM,j.pullAll=K0,j.pullAllBy=zM,j.pullAllWith=UM,j.pullAt=VM,j.range=cO,j.rangeRight=uO,j.rearg=o2,j.reject=qL,j.remove=qM,j.rest=s2,j.reverse=Wd,j.sampleSize=YL,j.set=hI,j.setWith=dI,j.shuffle=KL,j.slice=GM,j.sortBy=JL,j.sortedUniq=eL,j.sortedUniqBy=tL,j.split=DI,j.spread=a2,j.tail=nL,j.take=rL,j.takeRight=iL,j.takeRightWhile=oL,j.takeWhile=sL,j.tap=xL,j.throttle=l2,j.thru=Ec,j.toArray=hv,j.toPairs=yv,j.toPairsIn=wv,j.toPath=gO,j.toPlainObject=fv,j.transform=fI,j.unary=c2,j.union=aL,j.unionBy=lL,j.unionWith=cL,j.uniq=uL,j.uniqBy=hL,j.uniqWith=dL,j.unset=pI,j.unzip=Bd,j.unzipWith=Q0,j.update=gI,j.updateWith=mI,j.values=$s,j.valuesIn=yI,j.without=fL,j.words=xv,j.wrap=u2,j.xor=pL,j.xorBy=gL,j.xorWith=mL,j.zip=yL,j.zipObject=wL,j.zipObjectDeep=vL,j.zipWith=bL,j.entries=yv,j.entriesIn=wv,j.extend=pv,j.extendWith=Nc,Zd(j,j),j.add=yO,j.attempt=_v,j.camelCase=xI,j.capitalize=vv,j.ceil=wO,j.clamp=wI,j.clone=d2,j.cloneDeep=p2,j.cloneDeepWith=g2,j.cloneWith=f2,j.conformsTo=m2,j.deburr=bv,j.defaultTo=QI,j.divide=vO,j.endsWith=_I,j.eq=Vr,j.escape=kI,j.escapeRegExp=SI,j.every=ML,j.find=IL,j.findIndex=V0,j.findKey=q2,j.findLast=OL,j.findLastIndex=q0,j.findLastKey=G2,j.floor=bO,j.forEach=J0,j.forEachRight=X0,j.forIn=Y2,j.forInRight=K2,j.forOwn=Q2,j.forOwnRight=Z2,j.get=qd,j.gt=y2,j.gte=w2,j.has=eI,j.hasIn=Gd,j.head=Y0,j.identity=fr,j.includes=HL,j.indexOf=OM,j.inRange=vI,j.invoke=rI,j.isArguments=Fo,j.isArray=tt,j.isArrayBuffer=v2,j.isArrayLike=hr,j.isArrayLikeObject=mn,j.isBoolean=b2,j.isBuffer=Xi,j.isDate=x2,j.isElement=_2,j.isEmpty=k2,j.isEqual=S2,j.isEqualWith=$2,j.isError=Ud,j.isFinite=A2,j.isFunction=Ai,j.isInteger=av,j.isLength=Oc,j.isMap=lv,j.isMatch=C2,j.isMatchWith=T2,j.isNaN=E2,j.isNative=R2,j.isNil=L2,j.isNull=M2,j.isNumber=cv,j.isObject=on,j.isObjectLike=un,j.isPlainObject=Da,j.isRegExp=Vd,j.isSafeInteger=I2,j.isSet=uv,j.isString=Dc,j.isSymbol=xr,j.isTypedArray=Ss,j.isUndefined=O2,j.isWeakMap=D2,j.isWeakSet=N2,j.join=HM,j.kebabCase=$I,j.last=Or,j.lastIndexOf=WM,j.lowerCase=AI,j.lowerFirst=CI,j.lt=F2,j.lte=P2,j.max=xO,j.maxBy=_O,j.mean=kO,j.meanBy=SO,j.min=$O,j.minBy=AO,j.stubArray=Xd,j.stubFalse=ef,j.stubObject=hO,j.stubString=dO,j.stubTrue=fO,j.multiply=CO,j.nth=BM,j.noConflict=rO,j.noop=Jd,j.now=Mc,j.pad=TI,j.padEnd=EI,j.padStart=RI,j.parseInt=MI,j.random=bI,j.reduce=UL,j.reduceRight=VL,j.repeat=LI,j.replace=II,j.result=uI,j.round=TO,j.runInContext=ne,j.sample=GL,j.size=QL,j.snakeCase=OI,j.some=ZL,j.sortedIndex=YM,j.sortedIndexBy=KM,j.sortedIndexOf=QM,j.sortedLastIndex=ZM,j.sortedLastIndexBy=JM,j.sortedLastIndexOf=XM,j.startCase=NI,j.startsWith=FI,j.subtract=EO,j.sum=RO,j.sumBy=MO,j.template=PI,j.times=pO,j.toFinite=Ci,j.toInteger=at,j.toLength=dv,j.toLower=HI,j.toNumber=Dr,j.toSafeInteger=H2,j.toString=Rt,j.toUpper=WI,j.trim=BI,j.trimEnd=jI,j.trimStart=zI,j.truncate=UI,j.unescape=VI,j.uniqueId=mO,j.upperCase=qI,j.upperFirst=Yd,j.each=J0,j.eachRight=X0,j.first=Y0,Zd(j,function(){var i={};return li(j,function(m,C){It.call(j.prototype,C)||(i[C]=m)}),i}(),{chain:!1}),j.VERSION=r,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){j[i].placeholder=j}),Jn(["drop","take"],function(i,m){xt.prototype[i]=function(C){C=C===t?1:In(at(C),0);var D=this.__filtered__&&!m?new xt(this):this.clone();return D.__filtered__?D.__takeCount__=Kn(C,D.__takeCount__):D.__views__.push({size:Kn(C,q),type:i+(D.__dir__<0?"Right":"")}),D},xt.prototype[i+"Right"]=function(C){return this.reverse()[i](C).reverse()}}),Jn(["filter","map","takeWhile"],function(i,m){var C=m+1,D=C==$||C==O;xt.prototype[i]=function(H){var U=this.clone();return U.__iteratees__.push({iteratee:Ue(H,3),type:C}),U.__filtered__=U.__filtered__||D,U}}),Jn(["head","last"],function(i,m){var C="take"+(m?"Right":"");xt.prototype[i]=function(){return this[C](1).value()[0]}}),Jn(["initial","tail"],function(i,m){var C="drop"+(m?"":"Right");xt.prototype[i]=function(){return this.__filtered__?new xt(this):this[C](1)}}),xt.prototype.compact=function(){return this.filter(fr)},xt.prototype.find=function(i){return this.filter(i).head()},xt.prototype.findLast=function(i){return this.reverse().find(i)},xt.prototype.invokeMap=ft(function(i,m){return typeof i=="function"?new xt(this):this.map(function(C){return Ea(C,i,m)})}),xt.prototype.reject=function(i){return this.filter(Ic(Ue(i)))},xt.prototype.slice=function(i,m){i=at(i);var C=this;return C.__filtered__&&(i>0||m<0)?new xt(C):(i<0?C=C.takeRight(-i):i&&(C=C.drop(i)),m!==t&&(m=at(m),C=m<0?C.dropRight(-m):C.take(m-i)),C)},xt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},xt.prototype.toArray=function(){return this.take(q)},li(xt.prototype,function(i,m){var C=/^(?:filter|find|map|reject)|While$/.test(m),D=/^(?:head|last)$/.test(m),H=j[D?"take"+(m=="last"?"Right":""):m],U=D||/^find/.test(m);H&&(j.prototype[m]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof xt,fe=ee[0],ge=ie||tt(Q),ye=function(vt){var _t=H.apply(j,Gn([vt],ee));return D&&Ee?_t[0]:_t};ge&&C&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var Ee=this.__chain__,Fe=!!this.__actions__.length,qe=U&&!Ee,ct=ie&&!Fe;if(!U&&ge){Q=ct?Q:new xt(this);var Ge=i.apply(Q,ee);return Ge.__actions__.push({func:Ec,args:[ye],thisArg:t}),new Mr(Ge,Ee)}return qe&&ct?i.apply(this,ee):(Ge=this.thru(ye),qe?D?Ge.value()[0]:Ge.value():Ge)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(i){var m=vr[i],C=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);j.prototype[i]=function(){var H=arguments;if(D&&!this.__chain__){var U=this.value();return m.apply(tt(U)?U:[],H)}return this[C](function(Q){return m.apply(tt(Q)?Q:[],H)})}}),li(xt.prototype,function(i,m){var C=j[m];if(C){var D=C.name+"";It.call(vs,D)||(vs[D]=[]),vs[D].push({name:m,func:C})}}),vs[_c(t,v).name]=[{name:"wrapper",func:t}],xt.prototype.clone=VE,xt.prototype.reverse=qE,xt.prototype.value=GE,j.prototype.at=_L,j.prototype.chain=kL,j.prototype.commit=SL,j.prototype.next=$L,j.prototype.plant=CL,j.prototype.reverse=TL,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=EL,j.prototype.first=j.prototype.head,_a&&(j.prototype[_a]=AL),j},Wt=Ht();Fn?((Fn.exports=Wt)._=Wt,Tr._=Wt):Rn._=Wt}).call(n_)}(Xa,Xa.exports)),Xa.exports}var i_=r_();On("a",Ha(i_)).debounce(function(){this.rebuildDisplayText()},300);var Yp={exports:{}},Kp;function o_(){return Kp||(Kp=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n&&(n.exports=t)})})()}(Yp)),Yp.exports}o_();const s_=!0,Sn="u-",a_="uplot",l_=Sn+"hz",c_=Sn+"vt",u_=Sn+"title",h_=Sn+"wrap",d_=Sn+"under",f_=Sn+"over",p_=Sn+"axis",ho=Sn+"off",g_=Sn+"select",m_=Sn+"cursor-x",y_=Sn+"cursor-y",w_=Sn+"cursor-pt",v_=Sn+"legend",b_=Sn+"live",x_=Sn+"inline",__=Sn+"series",k_=Sn+"marker",Qp=Sn+"label",S_=Sn+"value",Ns="width",Fs="height",Ps="top",Zp="bottom",Uo="left",uu="right",hu="#000",Jp=hu+"0",Xp="mousemove",eg="mousedown",du="mouseup",tg="mouseenter",ng="mouseleave",rg="dblclick",$_="resize",A_="scroll",ig="change",el="dppxchange",fu="--",Vo=typeof window<"u",pu=Vo?document:null,qo=Vo?window:null,C_=Vo?navigator:null;let $t,tl;function gu(){let n=devicePixelRatio;$t!=n&&($t=n,tl&&wu(ig,tl,gu),tl=matchMedia(`(min-resolution: ${$t-.001}dppx) and (max-resolution: ${$t+.001}dppx)`),fo(ig,tl,gu),qo.dispatchEvent(new CustomEvent(el)))}function gr(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function mu(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function qt(n,e,t){n.style[e]=t+"px"}function Hr(n,e,t,r){let h=pu.createElement(n);return e!=null&&gr(h,e),t!=null&&t.insertBefore(h,r),h}function Sr(n,e){return Hr("div",n,e)}const og=new WeakMap;function Qr(n,e,t,r,h){let u="translate("+e+"px,"+t+"px)",p=og.get(n);u!=p&&(n.style.transform=u,og.set(n,u),e<0||t<0||e>r||t>h?gr(n,ho):mu(n,ho))}const sg=new WeakMap;function ag(n,e,t){let r=e+t,h=sg.get(n);r!=h&&(sg.set(n,r),n.style.background=e,n.style.borderColor=t)}const lg=new WeakMap;function cg(n,e,t,r){let h=e+""+t,u=lg.get(n);h!=u&&(lg.set(n,h),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=r?-e/2+"px":0,n.style.marginTop=r?-t/2+"px":0)}const yu={passive:!0},T_={...yu,capture:!0};function fo(n,e,t,r){e.addEventListener(n,t,r?T_:yu)}function wu(n,e,t,r){e.removeEventListener(n,t,yu)}Vo&&gu();function Wr(n,e,t,r){let h;t=t||0,r=r||e.length-1;let u=r<=2147483647;for(;r-t>1;)h=u?t+r>>1:yr((t+r)/2),e[h]<n?t=h:r=h;return n-e[t]<=e[r]-n?t:r}function Go(n,e,t,r){for(let h=r==1?e:t;h>=e&&h<=t;h+=r)if(n[h]!=null)return h;return-1}function E_(n,e,t,r){let h=Xt,u=-1/0;if(r==1)h=n[e],u=n[t];else if(r==-1)h=n[t],u=n[e];else for(let p=e;p<=t;p++){let w=n[p];w!=null&&(w<h&&(h=w),w>u&&(u=w))}return[h,u]}function R_(n,e,t){let r=Xt,h=-1/0;for(let u=e;u<=t;u++){let p=n[u];p!=null&&p>0&&(p<r&&(r=p),p>h&&(h=p))}return[r,h]}function nl(n,e,t,r){let h=dg(n),u=dg(e);n==e&&(h==-1?(n*=t,e/=t):(n/=t,e*=t));let p=t==10?hi:fg,w=h==1?yr:$r,d=u==1?$r:yr,g=w(p($n(n))),s=d(p($n(e))),c=Yo(t,g),a=Yo(t,s);return t==10&&(g<0&&(c=Nt(c,-g)),s<0&&(a=Nt(a,-s))),r||t==2?(n=c*h,e=a*u):(n=vg(n,c),e=ol(e,a)),[n,e]}function vu(n,e,t,r){let h=nl(n,e,t,r);return n==0&&(h[0]=0),e==0&&(h[1]=0),h}const bu=.1,ug={mode:3,pad:bu},Hs={pad:0,soft:null,mode:0},M_={min:Hs,max:Hs};function rl(n,e,t,r){return sl(t)?hg(n,e,t):(Hs.pad=t,Hs.soft=r?0:null,Hs.mode=r?3:0,hg(n,e,M_))}function St(n,e){return n??e}function L_(n,e,t){for(e=St(e,0),t=St(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function hg(n,e,t){let r=t.min,h=t.max,u=St(r.pad,0),p=St(h.pad,0),w=St(r.hard,-1/0),d=St(h.hard,Xt),g=St(r.soft,Xt),s=St(h.soft,-1/0),c=St(r.mode,0),a=St(h.mode,0),l=e-n,o=hi(l),f=Bn($n(n),$n(e)),y=hi(f),v=$n(y-o);(l<1e-24||v>10)&&(l=0,(n==0||e==0)&&(l=1e-24,c==2&&g!=Xt&&(u=0),a==2&&s!=-1/0&&(p=0)));let x=l||f||1e3,M=hi(x),A=Yo(10,yr(M)),k=x*(l==0?n==0?.1:1:u),b=Nt(vg(n-k,A/10),24),T=n>=g&&(c==1||c==3&&b<=g||c==2&&b>=g)?g:Xt,R=Bn(w,b<T&&n>=T?T:Ar(T,b)),L=x*(l==0?e==0?.1:1:p),E=Nt(ol(e+L,A/10),24),N=e<=s&&(a==1||a==3&&E>=s||a==2&&E<=s)?s:-1/0,S=Ar(d,E>N&&e<=N?N:Bn(N,E));return R==S&&R==0&&(S=100),[R,S]}const I_=new Intl.NumberFormat(Vo?C_.language:"en-US"),xu=n=>I_.format(n),mr=Math,il=mr.PI,$n=mr.abs,yr=mr.floor,An=mr.round,$r=mr.ceil,Ar=mr.min,Bn=mr.max,Yo=mr.pow,dg=mr.sign,hi=mr.log10,fg=mr.log2,O_=(n,e=1)=>mr.sinh(n)*e,_u=(n,e=1)=>mr.asinh(n/e),Xt=1/0;function pg(n){return(hi((n^n>>31)-(n>>31))|0)+1}function ku(n,e,t){return Ar(Bn(n,e),t)}function bt(n){return typeof n=="function"?n:()=>n}const D_=()=>{},gg=n=>n,mg=(n,e)=>e,N_=n=>null,yg=n=>!0,wg=(n,e)=>n==e,F_=/\.\d*?(?=9{6,}|0{6,})/gm,po=n=>{if(xg(n)||Li.has(n))return n;const e=`${n}`,t=e.match(F_);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[h,u]=e.split("e");return+`${po(h)}e${u}`}return Nt(n,r)};function go(n,e){return po(Nt(po(n/e))*e)}function ol(n,e){return po($r(po(n/e))*e)}function vg(n,e){return po(yr(po(n/e))*e)}function Nt(n,e=0){if(xg(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return An(r)/t}const Li=new Map;function bg(n){return((""+n).split(".")[1]||"").length}function Ws(n,e,t,r){let h=[],u=r.map(bg);for(let p=e;p<t;p++){let w=$n(p),d=Nt(Yo(n,p),w);for(let g=0;g<r.length;g++){let s=n==10?+`${r[g]}e${p}`:r[g]*d,c=(p>=0?0:w)+(p>=u[g]?0:u[g]),a=n==10?s:Nt(s,c);h.push(a),Li.set(a,c)}}return h}const Bs={},Su=[],Ko=[null,null],Ii=Array.isArray,xg=Number.isInteger,P_=n=>n===void 0;function _g(n){return typeof n=="string"}function sl(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function H_(n){return n!=null&&typeof n=="object"}const W_=Object.getPrototypeOf(Uint8Array),kg="__proto__";function Qo(n,e=sl){let t;if(Ii(n)){let r=n.find(h=>h!=null);if(Ii(r)||e(r)){t=Array(n.length);for(let h=0;h<n.length;h++)t[h]=Qo(n[h],e)}else t=n.slice()}else if(n instanceof W_)t=n.slice();else if(e(n)){t={};for(let r in n)r!=kg&&(t[r]=Qo(n[r],e))}else t=n;return t}function vn(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let h in r)h!=kg&&(sl(n[h])?vn(n[h],Qo(r[h])):n[h]=Qo(r[h]))}return n}const B_=0,j_=1,z_=2;function U_(n,e,t){for(let r=0,h,u=-1;r<e.length;r++){let p=e[r];if(p>u){for(h=p-1;h>=0&&n[h]==null;)n[h--]=null;for(h=p+1;h<t&&n[h]==null;)n[u=h++]=null}}}function V_(n,e){if(Y_(n)){let p=n[0].slice();for(let w=1;w<n.length;w++)p.push(...n[w].slice(1));return K_(p[0])||(p=G_(p)),p}let t=new Set;for(let p=0;p<n.length;p++){let w=n[p][0],d=w.length;for(let g=0;g<d;g++)t.add(w[g])}let r=[Array.from(t).sort((p,w)=>p-w)],h=r[0].length,u=new Map;for(let p=0;p<h;p++)u.set(r[0][p],p);for(let p=0;p<n.length;p++){let w=n[p],d=w[0];for(let g=1;g<w.length;g++){let s=w[g],c=Array(h).fill(void 0),a=e?e[p][g]:j_,l=[];for(let o=0;o<s.length;o++){let f=s[o],y=u.get(d[o]);f===null?a!=B_&&(c[y]=f,a==z_&&l.push(y)):c[y]=f}U_(c,l,h),r.push(c)}}return r}const q_=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function G_(n){let e=n[0],t=e.length,r=Array(t);for(let u=0;u<r.length;u++)r[u]=u;r.sort((u,p)=>e[u]-e[p]);let h=[];for(let u=0;u<n.length;u++){let p=n[u],w=Array(t);for(let d=0;d<t;d++)w[d]=p[r[d]];h.push(w)}return h}function Y_(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let h=n[r][0];if(h.length!=t)return!1;if(h!=e){for(let u=0;u<t;u++)if(h[u]!=e[u])return!1}}return!0}function K_(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,h=t-1;for(;r<=h&&n[r]==null;)r++;for(;h>=r&&n[h]==null;)h--;if(h<=r)return!0;const u=Bn(1,yr((h-r+1)/e));for(let p=n[r],w=r+u;w<=h;w+=u){const d=n[w];if(d!=null){if(d<=p)return!1;p=d}}return!0}const Sg=["January","February","March","April","May","June","July","August","September","October","November","December"],$g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ag(n){return n.slice(0,3)}const Q_=$g.map(Ag),Z_=Sg.map(Ag),J_={MMMM:Sg,MMM:Z_,WWWW:$g,WWW:Q_};function js(n){return(n<10?"0":"")+n}function X_(n){return(n<10?"00":n<100?"0":"")+n}const ek={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,e)=>e.MMMM[n.getMonth()],MMM:(n,e)=>e.MMM[n.getMonth()],MM:n=>js(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>js(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>js(n.getHours()),H:n=>n.getHours(),h:n=>{let e=n.getHours();return e==0?12:e>12?e-12:e},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>js(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>js(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>X_(n.getMilliseconds())};function $u(n,e){e=e||J_;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,h;for(;h=r.exec(n);)t.push(h[0][0]=="{"?ek[h[1]]:h[0]);return u=>{let p="";for(let w=0;w<t.length;w++)p+=typeof t[w]=="string"?t[w]:t[w](u,e);return p}}const tk=new Intl.DateTimeFormat().resolvedOptions().timeZone;function nk(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==tk?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const Cg=n=>n%1==0,al=[1,2,2.5,5],rk=Ws(10,-32,0,al),Tg=Ws(10,0,32,al),ik=Tg.filter(Cg),mo=rk.concat(Tg),Au=`
|
1407
|
+
`,Eg="{YYYY}",Rg=Au+Eg,Mg="{M}/{D}",zs=Au+Mg,ll=zs+"/{YY}",Lg="{aa}",ok="{h}:{mm}",Zo=ok+Lg,Ig=Au+Zo,Og=":{ss}",Ct=null;function Dg(n){let e=n*1e3,t=e*60,r=t*60,h=r*24,u=h*30,p=h*365,w=(n==1?Ws(10,0,3,al).filter(Cg):Ws(10,-3,0,al)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,r,r*2,r*3,r*4,r*6,r*8,r*12,h,h*2,h*3,h*4,h*5,h*6,h*7,h*8,h*9,h*10,h*15,u,u*2,u*3,u*4,u*6,p,p*2,p*5,p*10,p*25,p*50,p*100]);const d=[[p,Eg,Ct,Ct,Ct,Ct,Ct,Ct,1],[h*28,"{MMM}",Rg,Ct,Ct,Ct,Ct,Ct,1],[h,Mg,Rg,Ct,Ct,Ct,Ct,Ct,1],[r,"{h}"+Lg,ll,Ct,zs,Ct,Ct,Ct,1],[t,Zo,ll,Ct,zs,Ct,Ct,Ct,1],[e,Og,ll+" "+Zo,Ct,zs+" "+Zo,Ct,Ig,Ct,1],[n,Og+".{fff}",ll+" "+Zo,Ct,zs+" "+Zo,Ct,Ig,Ct,1]];function g(s){return(c,a,l,o,f,y)=>{let v=[],x=f>=p,M=f>=u&&f<p,A=s(l),k=Nt(A*n,3),b=Cu(A.getFullYear(),x?0:A.getMonth(),M||x?1:A.getDate()),T=Nt(b*n,3);if(M||x){let R=M?f/u:0,L=x?f/p:0,E=k==T?k:Nt(Cu(b.getFullYear()+L,b.getMonth()+R,1)*n,3),N=new Date(An(E/n)),S=N.getFullYear(),_=N.getMonth();for(let $=0;E<=o;$++){let I=Cu(S+L*$,_+R*$,1),O=I-s(Nt(I*n,3));E=Nt((+I+O)*n,3),E<=o&&v.push(E)}}else{let R=f>=h?h:f,L=yr(l)-yr(k),E=T+L+ol(k-T,R);v.push(E);let N=s(E),S=N.getHours()+N.getMinutes()/t+N.getSeconds()/r,_=f/r,$=c.axes[a]._space,I=y/$;for(;E=Nt(E+f,n==1?0:3),!(E>o);)if(_>1){let O=yr(Nt(S+_,6))%24,F=s(E).getHours()-O;F>1&&(F=-1),E-=F*r,S=(S+_)%24;let W=v[v.length-1];Nt((E-W)/f,3)*I>=.7&&v.push(E)}else v.push(E)}return v}}return[w,d,g]}const[sk,ak,lk]=Dg(1),[ck,uk,hk]=Dg(.001);Ws(2,-53,53,[1]);function Ng(n,e){return n.map(t=>t.map((r,h)=>h==0||h==8||r==null?r:e(h==1||t[8]==0?r:t[1]+r)))}function Fg(n,e){return(t,r,h,u,p)=>{let w=e.find(o=>p>=o[0])||e[e.length-1],d,g,s,c,a,l;return r.map(o=>{let f=n(o),y=f.getFullYear(),v=f.getMonth(),x=f.getDate(),M=f.getHours(),A=f.getMinutes(),k=f.getSeconds(),b=y!=d&&w[2]||v!=g&&w[3]||x!=s&&w[4]||M!=c&&w[5]||A!=a&&w[6]||k!=l&&w[7]||w[1];return d=y,g=v,s=x,c=M,a=A,l=k,b(f)})}}function dk(n,e){let t=$u(e);return(r,h,u,p,w)=>h.map(d=>t(n(d)))}function Cu(n,e,t){return new Date(n,e,t)}function Pg(n,e){return e(n)}const fk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Hg(n,e){return(t,r,h,u)=>u==null?fu:e(n(r))}function pk(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function gk(n,e){return n.series[e].fill(n,e)}const mk={show:!0,live:!0,isolate:!1,mount:D_,markers:{show:!0,width:2,stroke:pk,fill:gk,dash:"solid"},idx:null,idxs:null,values:[]};function yk(n,e){let t=n.cursor.points,r=Sr(),h=t.size(n,e);qt(r,Ns,h),qt(r,Fs,h);let u=h/-2;qt(r,"marginLeft",u),qt(r,"marginTop",u);let p=t.width(n,e,h);return p&&qt(r,"borderWidth",p),r}function wk(n,e){let t=n.series[e].points;return t._fill||t._stroke}function vk(n,e){let t=n.series[e].points;return t._stroke||t._fill}function bk(n,e){return n.series[e].points.size}const Tu=[0,0];function xk(n,e,t){return Tu[0]=e,Tu[1]=t,Tu}function cl(n,e,t,r=!0){return h=>{h.button==0&&(!r||h.target==e)&&t(h)}}function Eu(n,e,t,r=!0){return h=>{(!r||h.target==e)&&t(h)}}const _k={show:!0,x:!0,y:!0,lock:!1,move:xk,points:{one:!1,show:yk,size:bk,width:0,stroke:vk,fill:wk},bind:{mousedown:cl,mouseup:cl,click:cl,dblclick:cl,mousemove:Eu,mouseleave:Eu,mouseenter:Eu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,e,t,r,h)=>r-h,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Wg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ru=vn({},Wg,{filter:mg}),Bg=vn({},Ru,{size:10}),jg=vn({},Wg,{show:!1}),Mu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zg="bold "+Mu,Ug=1.5,Vg={show:!0,scale:"x",stroke:hu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:zg,side:2,grid:Ru,ticks:Bg,border:jg,font:Mu,lineGap:Ug,rotate:0},kk="Value",Sk="Time",qg={show:!0,scale:"x",auto:!1,sorted:1,min:Xt,max:-1/0,idxs:[]};function $k(n,e,t,r,h){return e.map(u=>u==null?"":xu(u))}function Ak(n,e,t,r,h,u,p){let w=[],d=Li.get(h)||0;t=p?t:Nt(ol(t,h),d);for(let g=t;g<=r;g=Nt(g+h,d))w.push(Object.is(g,-0)?0:g);return w}function Lu(n,e,t,r,h,u,p){const w=[],d=n.scales[n.axes[e].scale].log,g=d==10?hi:fg,s=yr(g(t));h=Yo(d,s),d==10&&(h=mo[Wr(h,mo)]);let c=t,a=h*d;d==10&&(a=mo[Wr(a,mo)]);do w.push(c),c=c+h,d==10&&!Li.has(c)&&(c=Nt(c,Li.get(h))),c>=a&&(h=c,a=h*d,d==10&&(a=mo[Wr(a,mo)]));while(c<=r);return w}function Ck(n,e,t,r,h,u,p){let w=n.scales[n.axes[e].scale].asinh,d=r>w?Lu(n,e,Bn(w,t),r,h):[w],g=r>=0&&t<=0?[0]:[];return(t<-w?Lu(n,e,Bn(w,-r),-t,h):[w]).reverse().map(s=>-s).concat(g,d)}const Gg=/./,Tk=/[12357]/,Ek=/[125]/,Yg=/1/,Iu=(n,e,t,r)=>n.map((h,u)=>e==4&&h==0||u%r==0&&t.test(h.toExponential()[h<0?1:0])?h:null);function Rk(n,e,t,r,h){let u=n.axes[t],p=u.scale,w=n.scales[p],d=n.valToPos,g=u._space,s=d(10,p),c=d(9,p)-s>=g?Gg:d(7,p)-s>=g?Tk:d(5,p)-s>=g?Ek:Yg;if(c==Yg){let a=$n(d(1,p)-s);if(a<g)return Iu(e.slice().reverse(),w.distr,c,$r(g/a)).reverse()}return Iu(e,w.distr,c,1)}function Mk(n,e,t,r,h){let u=n.axes[t],p=u.scale,w=u._space,d=n.valToPos,g=$n(d(1,p)-d(2,p));return g<w?Iu(e.slice().reverse(),3,Gg,$r(w/g)).reverse():e}function Lk(n,e,t,r){return r==null?fu:e==null?"":xu(e)}const Kg={show:!0,scale:"y",stroke:hu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:zg,side:3,grid:Ru,ticks:Bg,border:jg,font:Mu,lineGap:Ug,rotate:0};function Ik(n,e){let t=3+(n||1)*2;return Nt(t*e,3)}function Ok(n,e){let{scale:t,idxs:r}=n.series[0],h=n._data[0],u=n.valToPos(h[r[0]],t,!0),p=n.valToPos(h[r[1]],t,!0),w=$n(p-u),d=n.series[e],g=w/(d.points.space*$t);return r[1]-r[0]<=g}const Qg={scale:null,auto:!0,sorted:0,min:Xt,max:-1/0},Zg=(n,e,t,r,h)=>h,Jg={show:!0,auto:!0,sorted:0,gaps:Zg,alpha:1,facets:[vn({},Qg,{scale:"x"}),vn({},Qg,{scale:"y"})]},Xg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Zg,alpha:1,points:{show:Ok,filter:null},values:null,min:Xt,max:-1/0,idxs:[],path:null,clip:null};function Dk(n,e,t,r,h){return t/10}const em={time:s_,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Nk=vn({},em,{time:!1,ori:1}),tm={};function nm(n,e){let t=tm[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(h=>h!=r)},pub(r,h,u,p,w,d,g){for(let s=0;s<t.plots.length;s++)t.plots[s]!=h&&t.plots[s].pub(r,h,u,p,w,d,g)}},n!=null&&(tm[n]=t)),t}const Jo=1,Ou=2;function yo(n,e,t){const r=n.mode,h=n.series[e],u=r==2?n._data[e]:n._data,p=n.scales,w=n.bbox;let d=u[0],g=r==2?u[1]:u[e],s=r==2?p[h.facets[0].scale]:p[n.series[0].scale],c=r==2?p[h.facets[1].scale]:p[h.scale],a=w.left,l=w.top,o=w.width,f=w.height,y=n.valToPosH,v=n.valToPosV;return s.ori==0?t(h,d,g,s,c,y,v,a,l,o,f,hl,Xo,fl,om,am):t(h,d,g,s,c,v,y,l,a,f,o,dl,es,Fu,sm,lm)}function Du(n,e){let t=0,r=0,h=St(n.bands,Su);for(let u=0;u<h.length;u++){let p=h[u];p.series[0]==e?t=p.dir:p.series[1]==e&&(p.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function Fk(n,e,t,r,h){let u=n.mode,p=n.series[e],w=u==2?p.facets[1].scale:p.scale,d=n.scales[w];return h==-1?d.min:h==1?d.max:d.distr==3?d.dir==1?d.min:d.max:0}function di(n,e,t,r,h,u){return yo(n,e,(p,w,d,g,s,c,a,l,o,f,y)=>{let v=p.pxRound;const x=g.dir*(g.ori==0?1:-1),M=g.ori==0?Xo:es;let A,k;x==1?(A=t,k=r):(A=r,k=t);let b=v(c(w[A],g,f,l)),T=v(a(d[A],s,y,o)),R=v(c(w[k],g,f,l)),L=v(a(u==1?s.max:s.min,s,y,o)),E=new Path2D(h);return M(E,R,L),M(E,b,L),M(E,b,T),E})}function ul(n,e,t,r,h,u){let p=null;if(n.length>0){p=new Path2D;const w=e==0?fl:Fu;let d=t;for(let c=0;c<n.length;c++){let a=n[c];if(a[1]>a[0]){let l=a[0]-d;l>0&&w(p,d,r,l,r+u),d=a[1]}}let g=t+h-d,s=10;g>0&&w(p,d,r-s/2,g,r+u+s)}return p}function Pk(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function Nu(n,e,t,r,h,u,p){let w=[],d=n.length;for(let g=h==1?t:r;g>=t&&g<=r;g+=h)if(e[g]===null){let s=g,c=g;if(h==1)for(;++g<=r&&e[g]===null;)c=g;else for(;--g>=t&&e[g]===null;)c=g;let a=u(n[s]),l=c==s?a:u(n[c]),o=s-h;a=p<=0&&o>=0&&o<d?u(n[o]):a;let f=c+h;l=p>=0&&f>=0&&f<d?u(n[f]):l,l>=a&&w.push([a,l])}return w}function rm(n){return n==0?gg:n==1?An:e=>go(e,n)}function im(n){let e=n==0?hl:dl,t=n==0?(h,u,p,w,d,g)=>{h.arcTo(u,p,w,d,g)}:(h,u,p,w,d,g)=>{h.arcTo(p,u,d,w,g)},r=n==0?(h,u,p,w,d)=>{h.rect(u,p,w,d)}:(h,u,p,w,d)=>{h.rect(p,u,d,w)};return(h,u,p,w,d,g=0,s=0)=>{g==0&&s==0?r(h,u,p,w,d):(g=Ar(g,w/2,d/2),s=Ar(s,w/2,d/2),e(h,u+g,p),t(h,u+w,p,u+w,p+d,g),t(h,u+w,p+d,u,p+d,s),t(h,u,p+d,u,p,s),t(h,u,p,u+w,p,g),h.closePath())}}const hl=(n,e,t)=>{n.moveTo(e,t)},dl=(n,e,t)=>{n.moveTo(t,e)},Xo=(n,e,t)=>{n.lineTo(e,t)},es=(n,e,t)=>{n.lineTo(t,e)},fl=im(0),Fu=im(1),om=(n,e,t,r,h,u)=>{n.arc(e,t,r,h,u)},sm=(n,e,t,r,h,u)=>{n.arc(t,e,r,h,u)},am=(n,e,t,r,h,u,p)=>{n.bezierCurveTo(e,t,r,h,u,p)},lm=(n,e,t,r,h,u,p)=>{n.bezierCurveTo(t,e,h,r,p,u)};function cm(n){return(e,t,r,h,u)=>yo(e,t,(p,w,d,g,s,c,a,l,o,f,y)=>{let{pxRound:v,points:x}=p,M,A;g.ori==0?(M=hl,A=om):(M=dl,A=sm);const k=Nt(x.width*$t,3);let b=(x.size-x.width)/2*$t,T=Nt(b*2,3),R=new Path2D,L=new Path2D,{left:E,top:N,width:S,height:_}=e.bbox;fl(L,E-T,N-T,S+T*2,_+T*2);const $=I=>{if(d[I]!=null){let O=v(c(w[I],g,f,l)),F=v(a(d[I],s,y,o));M(R,O+b,F),A(R,O,F,b,0,il*2)}};if(u)u.forEach($);else for(let I=r;I<=h;I++)$(I);return{stroke:k>0?R:null,fill:R,clip:L,flags:Jo|Ou}})}function um(n){return(e,t,r,h,u,p)=>{r!=h&&(u!=r&&p!=r&&n(e,t,r),u!=h&&p!=h&&n(e,t,h),n(e,t,p))}}const Hk=um(Xo),Wk=um(es);function hm(n){const e=St(n==null?void 0:n.alignGaps,0);return(t,r,h,u)=>yo(t,r,(p,w,d,g,s,c,a,l,o,f,y)=>{let v=p.pxRound,x=X=>v(c(X,g,f,l)),M=X=>v(a(X,s,y,o)),A,k;g.ori==0?(A=Xo,k=Hk):(A=es,k=Wk);const b=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Jo},R=T.stroke;let L=Xt,E=-1/0,N,S,_,$=x(w[b==1?h:u]),I=Go(d,h,u,1*b),O=Go(d,h,u,-1*b),F=x(w[I]),W=x(w[O]),z=!1;for(let X=b==1?h:u;X>=h&&X<=u;X+=b){let G=x(w[X]),Z=d[X];G==$?Z!=null?(S=M(Z),L==Xt&&(A(R,G,S),N=S),L=Ar(S,L),E=Bn(S,E)):Z===null&&(z=!0):(L!=Xt&&(k(R,$,L,E,N,S),_=$),Z!=null?(S=M(Z),A(R,G,S),L=E=N=S):(L=Xt,E=-1/0,Z===null&&(z=!0)),$=G)}L!=Xt&&L!=E&&_!=$&&k(R,$,L,E,N,S);let[V,q]=Du(t,r);if(p.fill!=null||V!=0){let X=T.fill=new Path2D(R),G=p.fillTo(t,r,p.min,p.max,V),Z=M(G);A(X,W,Z),A(X,F,Z)}if(!p.spanGaps){let X=[];z&&X.push(...Nu(w,d,h,u,b,x,e)),T.gaps=X=p.gaps(t,r,h,u,X),T.clip=ul(X,g.ori,l,o,f,y)}return q!=0&&(T.band=q==2?[di(t,r,h,u,R,-1),di(t,r,h,u,R,1)]:di(t,r,h,u,R,q)),T})}function Bk(n){const e=St(n.align,1),t=St(n.ascDesc,!1),r=St(n.alignGaps,0),h=St(n.extend,!1);return(u,p,w,d)=>yo(u,p,(g,s,c,a,l,o,f,y,v,x,M)=>{let A=g.pxRound,{left:k,width:b}=u.bbox,T=V=>A(o(V,a,x,y)),R=V=>A(f(V,l,M,v)),L=a.ori==0?Xo:es;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Jo},N=E.stroke,S=a.dir*(a.ori==0?1:-1);w=Go(c,w,d,1),d=Go(c,w,d,-1);let _=R(c[S==1?w:d]),$=T(s[S==1?w:d]),I=$,O=$;h&&e==-1&&(O=k,L(N,O,_)),L(N,$,_);for(let V=S==1?w:d;V>=w&&V<=d;V+=S){let q=c[V];if(q==null)continue;let X=T(s[V]),G=R(q);e==1?L(N,X,_):L(N,I,G),L(N,X,G),_=G,I=X}let F=I;h&&e==1&&(F=k+b,L(N,F,_));let[W,z]=Du(u,p);if(g.fill!=null||W!=0){let V=E.fill=new Path2D(N),q=g.fillTo(u,p,g.min,g.max,W),X=R(q);L(V,F,X),L(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Nu(s,c,w,d,S,T,r));let q=g.width*$t/2,X=t||e==1?q:-q,G=t||e==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),E.gaps=V=g.gaps(u,p,w,d,V),E.clip=ul(V,a.ori,y,v,x,M)}return z!=0&&(E.band=z==2?[di(u,p,w,d,N,-1),di(u,p,w,d,N,1)]:di(u,p,w,d,N,z)),E})}function dm(n,e,t,r,h,u,p=Xt){if(n.length>1){let w=null;for(let d=0,g=1/0;d<n.length;d++)if(e[d]!==void 0){if(w!=null){let s=$n(n[d]-n[w]);s<g&&(g=s,p=$n(t(n[d],r,h,u)-t(n[w],r,h,u)))}w=d}}return p}function jk(n){n=n||Bs;const e=St(n.size,[.6,Xt,1]),t=n.align||0,r=n.gap||0;let h=n.radius;h=h==null?[0,0]:typeof h=="number"?[h,0]:h;const u=bt(h),p=1-e[0],w=St(e[1],Xt),d=St(e[2],1),g=St(n.disp,Bs),s=St(n.each,l=>{}),{fill:c,stroke:a}=g;return(l,o,f,y)=>yo(l,o,(v,x,M,A,k,b,T,R,L,E,N)=>{let S=v.pxRound,_=t,$=r*$t,I=w*$t,O=d*$t,F,W;A.ori==0?[F,W]=u(l,o):[W,F]=u(l,o);const z=A.dir*(A.ori==0?1:-1);let V=A.ori==0?fl:Fu,q=A.ori==0?s:(Ve,ce,Re,De,Ye,Qe,mt)=>{s(Ve,ce,Re,Ye,De,mt,Qe)},X=St(l.bands,Su).find(Ve=>Ve.series[0]==o),G=X!=null?X.dir:0,Z=v.fillTo(l,o,v.min,v.max,G),re=S(T(Z,k,N,L)),J,ae,me,we=E,pe=S(v.width*$t),Ae=!1,lt=null,zt=null,gt=null,wt=null;c!=null&&(pe==0||a!=null)&&(Ae=!0,lt=c.values(l,o,f,y),zt=new Map,new Set(lt).forEach(Ve=>{Ve!=null&&zt.set(Ve,new Path2D)}),pe>0&&(gt=a.values(l,o,f,y),wt=new Map,new Set(gt).forEach(Ve=>{Ve!=null&&wt.set(Ve,new Path2D)})));let{x0:gn,size:Ft}=g;if(gn!=null&&Ft!=null){_=1,x=gn.values(l,o,f,y),gn.unit==2&&(x=x.map(ce=>l.posToVal(R+ce*E,A.key,!0)));let Ve=Ft.values(l,o,f,y);Ft.unit==2?ae=Ve[0]*E:ae=b(Ve[0],A,E,R)-b(0,A,E,R),we=dm(x,M,b,A,E,R,we),me=we-ae+$}else we=dm(x,M,b,A,E,R,we),me=we*p+$,ae=we-me;me<1&&(me=0),pe>=ae/2&&(pe=0),me<5&&(S=gg);let tn=me>0,ei=we-me-(tn?pe:0);ae=S(ku(ei,O,I)),J=(_==0?ae/2:_==z?0:ae)-_*z*((_==0?$/2:0)+(tn?pe/2:0));const Cn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},an=Ae?null:new Path2D;let We=null;if(X!=null)We=l.data[X.series[1]];else{let{y0:Ve,y1:ce}=g;Ve!=null&&ce!=null&&(M=ce.values(l,o,f,y),We=Ve.values(l,o,f,y))}let ze=F*ae,ln=W*ae;for(let Ve=z==1?f:y;Ve>=f&&Ve<=y;Ve+=z){let ce=M[Ve];if(ce==null)continue;if(We!=null){let dt=We[Ve]??0;if(ce-dt==0)continue;re=T(dt,k,N,L)}let Re=A.distr!=2||g!=null?x[Ve]:Ve,De=b(Re,A,E,R),Ye=T(St(ce,Z),k,N,L),Qe=S(De-J),mt=S(Bn(Ye,re)),yt=S(Ar(Ye,re)),ht=mt-yt;if(ce!=null){let dt=ce<0?ln:ze,ot=ce<0?ze:ln;Ae?(pe>0&>[Ve]!=null&&V(wt.get(gt[Ve]),Qe,yt+yr(pe/2),ae,Bn(0,ht-pe),dt,ot),lt[Ve]!=null&&V(zt.get(lt[Ve]),Qe,yt+yr(pe/2),ae,Bn(0,ht-pe),dt,ot)):V(an,Qe,yt+yr(pe/2),ae,Bn(0,ht-pe),dt,ot),q(l,o,Ve,Qe-pe/2,yt,ae+pe,ht)}}return pe>0?Cn.stroke=Ae?wt:an:Ae||(Cn._fill=v.width==0?v._fill:v._stroke??v._fill,Cn.width=0),Cn.fill=Ae?zt:an,Cn})}function zk(n,e){const t=St(e==null?void 0:e.alignGaps,0);return(r,h,u,p)=>yo(r,h,(w,d,g,s,c,a,l,o,f,y,v)=>{let x=w.pxRound,M=F=>x(a(F,s,y,o)),A=F=>x(l(F,c,v,f)),k,b,T;s.ori==0?(k=hl,T=Xo,b=am):(k=dl,T=es,b=lm);const R=s.dir*(s.ori==0?1:-1);u=Go(g,u,p,1),p=Go(g,u,p,-1);let L=M(d[R==1?u:p]),E=L,N=[],S=[];for(let F=R==1?u:p;F>=u&&F<=p;F+=R)if(g[F]!=null){let W=d[F],z=M(W);N.push(E=z),S.push(A(g[F]))}const _={stroke:n(N,S,k,T,b,x),fill:null,clip:null,band:null,gaps:null,flags:Jo},$=_.stroke;let[I,O]=Du(r,h);if(w.fill!=null||I!=0){let F=_.fill=new Path2D($),W=w.fillTo(r,h,w.min,w.max,I),z=A(W);T(F,E,z),T(F,L,z)}if(!w.spanGaps){let F=[];F.push(...Nu(d,g,u,p,R,M,t)),_.gaps=F=w.gaps(r,h,u,p,F),_.clip=ul(F,s.ori,o,f,y,v)}return O!=0&&(_.band=O==2?[di(r,h,u,p,$,-1),di(r,h,u,p,$,1)]:di(r,h,u,p,$,O)),_})}function Uk(n){return zk(Vk,n)}function Vk(n,e,t,r,h,u){const p=n.length;if(p<2)return null;const w=new Path2D;if(t(w,n[0],e[0]),p==2)r(w,n[1],e[1]);else{let d=Array(p),g=Array(p-1),s=Array(p-1),c=Array(p-1);for(let a=0;a<p-1;a++)s[a]=e[a+1]-e[a],c[a]=n[a+1]-n[a],g[a]=s[a]/c[a];d[0]=g[0];for(let a=1;a<p-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?d[a]=0:(d[a]=3*(c[a-1]+c[a])/((2*c[a]+c[a-1])/g[a-1]+(c[a]+2*c[a-1])/g[a]),isFinite(d[a])||(d[a]=0));d[p-1]=g[p-2];for(let a=0;a<p-1;a++)h(w,n[a]+c[a]/3,e[a]+d[a]*c[a]/3,n[a+1]-c[a]/3,e[a+1]-d[a+1]*c[a]/3,n[a+1],e[a+1])}return w}const Pu=new Set;function fm(){for(let n of Pu)n.syncRect(!0)}Vo&&(fo($_,qo,fm),fo(A_,qo,fm,!0),fo(el,qo,()=>{jn.pxRatio=$t}));const qk=hm(),Gk=cm();function pm(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((h,u)=>Hu(h,u,e,t))}function Yk(n,e){return n.map((t,r)=>r==0?{}:vn({},e,t))}function Hu(n,e,t,r){return vn({},e==0?t:r,n)}function gm(n,e,t){return e==null?Ko:[e,t]}const Kk=gm;function Qk(n,e,t){return e==null?Ko:rl(e,t,bu,!0)}function mm(n,e,t,r){return e==null?Ko:nl(e,t,n.scales[r].log,!1)}const Zk=mm;function ym(n,e,t,r){return e==null?Ko:vu(e,t,n.scales[r].log,!1)}const Jk=ym;function Xk(n,e,t,r,h){let u=Bn(pg(n),pg(e)),p=e-n,w=Wr(h/r*p,t);do{let d=t[w],g=r*d/p;if(g>=h&&u+(d<5?Li.get(d):0)<=17)return[d,g]}while(++w<t.length);return[0,0]}function wm(n){let e,t;return n=n.replace(/(\d+)px/,(r,h)=>(e=An((t=+h)*$t))+"px"),[n,e,t]}function eS(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=Nt(e[2]*$t,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function jn(n,e,t){const r={mode:St(n.mode,1)},h=r.mode;function u(P,B){return((B.distr==3?hi(P>0?P:B.clamp(r,P,B.min,B.max,B.key)):B.distr==4?_u(P,B.asinh):B.distr==100?B.fwd(P):P)-B._min)/(B._max-B._min)}function p(P,B,Y,K){let te=u(P,B);return K+Y*(B.dir==-1?1-te:te)}function w(P,B,Y,K){let te=u(P,B);return K+Y*(B.dir==-1?te:1-te)}function d(P,B,Y,K){return B.ori==0?p(P,B,Y,K):w(P,B,Y,K)}r.valToPosH=p,r.valToPosV=w;let g=!1;r.status=0;const s=r.root=Sr(a_);if(n.id!=null&&(s.id=n.id),gr(s,n.class),n.title){let P=Sr(u_,s);P.textContent=n.title}const c=Hr("canvas"),a=r.ctx=c.getContext("2d"),l=Sr(h_,s);fo("click",l,P=>{P.target===f&&(je!=zi||Ut!=Ui)&&En.click(r,P)},!0);const o=r.under=Sr(d_,l);l.appendChild(c);const f=r.over=Sr(f_,l);n=Qo(n);const y=+St(n.pxAlign,1),v=rm(y);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(r,n)||n)});const x=n.ms||.001,M=r.series=h==1?pm(n.series||[],qg,Xg,!1):Yk(n.series||[null],Jg),A=r.axes=pm(n.axes||[],Vg,Kg,!0),k=r.scales={},b=r.bands=n.bands||[];b.forEach(P=>{P.fill=bt(P.fill||null),P.dir=St(P.dir,-1)});const T=h==2?M[1].facets[0].scale:M[0].scale,R={axes:id,series:Wl},L=(n.drawOrder||["axes","series"]).map(P=>R[P]);function E(P){let B=k[P];if(B==null){let Y=(n.scales||Bs)[P]||Bs;if(Y.from!=null)E(Y.from),k[P]=vn({},k[Y.from],Y,{key:P});else{B=k[P]=vn({},P==T?em:Nk,Y),B.key=P;let K=B.time,te=B.range,oe=Ii(te);if((P!=T||h==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?ug:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?ug:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&sl(te))){let de=te;te=(ve,ke,$e)=>ke==null?Ko:rl(ke,$e,de)}B.range=bt(te||(K?Kk:P==T?B.distr==3?Zk:B.distr==4?Jk:gm:B.distr==3?mm:B.distr==4?ym:Qk)),B.auto=bt(oe?!1:B.auto),B.clamp=bt(B.clamp||Dk),B._min=B._max=null}}}E("x"),E("y"),h==1&&M.forEach(P=>{E(P.scale)}),A.forEach(P=>{E(P.scale)});for(let P in n.scales)E(P);const N=k[T],S=N.distr;let _,$;N.ori==0?(gr(s,l_),_=p,$=w):(gr(s,c_),_=w,$=p);const I={};for(let P in k){let B=k[P];(B.min!=null||B.max!=null)&&(I[P]={min:B.min,max:B.max},B.min=B.max=null)}const O=n.tzDate||(P=>new Date(An(P/x))),F=n.fmtDate||$u,W=x==1?lk(O):hk(O),z=Fg(O,Ng(x==1?ak:uk,F)),V=Hg(O,Pg(fk,F)),q=[],X=r.legend=vn({},mk,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=bt(Z.width),Z.dash=bt(Z.dash),Z.stroke=bt(Z.stroke),Z.fill=bt(Z.fill);let re,J,ae,me=[],we=[],pe,Ae=!1,lt={};if(X.live){const P=M[1]?M[1].values:null;Ae=P!=null,pe=Ae?P(r,1,0):{_:0};for(let B in pe)lt[B]=fu}if(G)if(re=Hr("table",v_,s),ae=Hr("tbody",null,re),X.mount(r,re),Ae){J=Hr("thead",null,re,ae);let P=Hr("tr",null,J);Hr("th",null,P);for(var zt in pe)Hr("th",Qp,P).textContent=zt}else gr(re,x_),X.live&&gr(re,b_);const gt={show:!0},wt={show:!1};function gn(P,B){if(B==0&&(Ae||!X.live||h==2))return Ko;let Y=[],K=Hr("tr",__,ae,ae.childNodes[B]);gr(K,P.class),P.show||gr(K,ho);let te=Hr("th",null,K);if(Z.show){let ve=Sr(k_,te);if(B>0){let ke=Z.width(r,B);ke&&(ve.style.border=ke+"px "+Z.dash(r,B)+" "+Z.stroke(r,B)),ve.style.background=Z.fill(r,B)}}let oe=Sr(Qp,te);oe.textContent=P.label,B>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(r,B):Z.fill(r,B)),tn("click",te,ve=>{if(Be._lock)return;pi(ve);let ke=M.indexOf(P);if((ve.ctrlKey||ve.metaKey)!=X.isolate){let $e=M.some((Te,Me)=>Me>0&&Me!=ke&&Te.show);M.forEach((Te,Me)=>{Me>0&&Fn(Me,$e?Me==ke?gt:wt:gt,!0,nn.setSeries)})}else Fn(ke,{show:!P.show},!0,nn.setSeries)},!1),ni&&tn(tg,te,ve=>{Be._lock||(pi(ve),Fn(M.indexOf(P),wi,!0,nn.setSeries))},!1));for(var de in pe){let ve=Hr("td",S_,K);ve.textContent="--",Y.push(ve)}return[K,Y]}const Ft=new Map;function tn(P,B,Y,K=!0){const te=Ft.get(B)||{},oe=Be.bind[P](r,B,Y,K);oe&&(fo(P,B,te[P]=oe),Ft.set(B,te))}function ei(P,B,Y){const K=Ft.get(B)||{};for(let te in K)(P==null||te==P)&&(wu(te,B,K[te]),delete K[te]);P==null&&Ft.delete(B)}let Cn=0,an=0,We=0,ze=0,ln=0,Ve=0,ce=ln,Re=Ve,De=We,Ye=ze,Qe=0,mt=0,yt=0,ht=0;r.bbox={};let dt=!1,ot=!1,Yt=!1,Un=!1,fi=!1,sr=!1;function Zs(P,B,Y){(Y||P!=r.width||B!=r.height)&&Js(P,B),mi(!1),Yt=!0,ot=!0,Bi()}function Js(P,B){r.width=Cn=We=P,r.height=an=ze=B,ln=Ve=0,Xh(),ed();let Y=r.bbox;Qe=Y.left=go(ln*$t,.5),mt=Y.top=go(Ve*$t,.5),yt=Y.width=go(We*$t,.5),ht=Y.height=go(ze*$t,.5)}const Ol=3;function Zh(){let P=!1,B=0;for(;!P;){B++;let Y=zl(B),K=Ul(B);P=B==Ol||Y&&K,P||(Js(r.width,r.height),ot=!0)}}function Jh({width:P,height:B}){Zs(P,B)}r.setSize=Jh;function Xh(){let P=!1,B=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:ve}=te,ke=de%2,$e=te.label!=null?te.labelSize:0,Te=ve+$e;Te>0&&(ke?(We-=Te,de==3?(ln+=Te,K=!0):Y=!0):(ze-=Te,de==0?(Ve+=Te,P=!0):B=!0))}}),gi[0]=P,gi[1]=Y,gi[2]=B,gi[3]=K,We-=ri[1]+ri[3],ln+=ri[3],ze-=ri[2]+ri[0],Ve+=ri[0]}function ed(){let P=ln+We,B=Ve+ze,Y=ln,K=Ve;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return B+=de,B-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}A.forEach((oe,de)=>{if(oe.show&&oe._show){let ve=oe.side;oe._pos=te(ve,oe._size),oe.label!=null&&(oe._lpos=te(ve,oe.labelSize))}})}const Be=r.cursor=vn({},_k,{drag:{y:h==2}},n.cursor);if(Be.dataIdx==null){let P=Be.hover,B=P.skip=new Set(P.skip??[]);B.add(void 0);let Y=P.prox=bt(P.prox),K=P.bias??(P.bias=0);Be.dataIdx=(te,oe,de,ve)=>{if(oe==0)return de;let ke=de,$e=Y(te,oe,de,ve)??Xt,Te=$e>=0&&$e<Xt,Me=N.ori==0?We:ze,Ze=Be.left,Lt=e[0],st=e[oe];if(B.has(st[de])){ke=null;let Ke=null,Xe=null,Ne;if(K==0||K==-1)for(Ne=de;Ke==null&&Ne-- >0;)B.has(st[Ne])||(Ke=Ne);if(K==0||K==1)for(Ne=de;Xe==null&&Ne++<st.length;)B.has(st[Ne])||(Xe=Ne);if(Ke!=null||Xe!=null)if(Te){let Tt=Ke==null?-1/0:_(Lt[Ke],N,Me,0),rn=Xe==null?1/0:_(Lt[Xe],N,Me,0),Jt=Ze-Tt,Ht=rn-Ze;Jt<=Ht?Jt<=$e&&(ke=Ke):Ht<=$e&&(ke=Xe)}else ke=Xe==null?Ke:Ke==null?Xe:de-Ke<=Xe-de?Ke:Xe}else Te&&$n(Ze-_(Lt[de],N,Me,0))>$e&&(ke=null);return ke}}const pi=P=>{Be.event=P};Be.idxs=q,Be._lock=!1;let Nn=Be.points;Nn.show=bt(Nn.show),Nn.size=bt(Nn.size),Nn.stroke=bt(Nn.stroke),Nn.width=bt(Nn.width),Nn.fill=bt(Nn.fill);const ti=r.focus=vn({},n.focus||{alpha:.3},Be.focus),ni=ti.prox>=0,Oi=ni&&Nn.one;let Vn=[],Di=[],Ni=[];function Dl(P,B){let Y=Nn.show(r,B);if(Y)return gr(Y,w_),gr(Y,P.class),Qr(Y,-10,-10,We,ze),f.insertBefore(Y,Vn[B]),Y}function Nl(P,B){if(h==1||B>0){let Y=h==1&&k[P.scale].time,K=P.value;P.value=Y?_g(K)?Hg(O,Pg(K,F)):K||V:K||Lk,P.label=P.label||(Y?Sk:kk)}if(Oi||B>0){P.width=P.width==null?1:P.width,P.paths=P.paths||qk||N_,P.fillTo=bt(P.fillTo||Fk),P.pxAlign=+St(P.pxAlign,y),P.pxRound=rm(P.pxAlign),P.stroke=bt(P.stroke||null),P.fill=bt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=Ik(Bn(1,P.width),1),K=P.points=vn({},{size:Y,width:Bn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:Gk,_stroke:null,_fill:null},P.points);K.show=bt(K.show),K.filter=bt(K.filter),K.fill=bt(K.fill),K.stroke=bt(K.stroke),K.paths=bt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=gn(P,B);me.splice(B,0,Y[0]),we.splice(B,0,Y[1]),X.values.push(null)}if(Be.show){q.splice(B,0,null);let Y=null;Oi?B==0&&(Y=Dl(P,B)):B>0&&(Y=Dl(P,B)),Vn.splice(B,0,Y),Di.splice(B,0,0),Ni.splice(B,0,0)}cn("addSeries",B)}function td(P,B){B=B??M.length,P=h==1?Hu(P,B,qg,Xg):Hu(P,B,{},Jg),M.splice(B,0,P),Nl(M[B],B)}r.addSeries=td;function nd(P){if(M.splice(P,1),G){X.values.splice(P,1),we.splice(P,1);let B=me.splice(P,1)[0];ei(null,B.firstChild),B.remove()}Be.show&&(q.splice(P,1),Vn.splice(P,1)[0].remove(),Di.splice(P,1),Ni.splice(P,1)),cn("delSeries",P)}r.delSeries=nd;const gi=[!1,!1,!1,!1];function rd(P,B){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?M[1].scale:T,K=k[P.scale]);let te=K.time;P.size=bt(P.size),P.space=bt(P.space),P.rotate=bt(P.rotate),Ii(P.incrs)&&P.incrs.forEach(de=>{!Li.has(de)&&Li.set(de,bg(de))}),P.incrs=bt(P.incrs||(K.distr==2?ik:te?x==1?sk:ck:mo)),P.splits=bt(P.splits||(te&&K.distr==1?W:K.distr==3?Lu:K.distr==4?Ck:Ak)),P.stroke=bt(P.stroke),P.grid.stroke=bt(P.grid.stroke),P.ticks.stroke=bt(P.ticks.stroke),P.border.stroke=bt(P.border.stroke);let oe=P.values;P.values=Ii(oe)&&!Ii(oe[0])?bt(oe):te?Ii(oe)?Fg(O,Ng(oe,F)):_g(oe)?dk(O,oe):oe||z:oe||$k,P.filter=bt(P.filter||(K.distr>=3&&K.log==10?Rk:K.distr==3&&K.log==2?Mk:mg)),P.font=wm(P.font),P.labelFont=wm(P.labelFont),P._size=P.size(r,null,B,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(gi[B]=!0,P._el=Sr(p_,l))}}function Fi(P,B,Y,K){let[te,oe,de,ve]=Y,ke=B%2,$e=0;return ke==0&&(ve||oe)&&($e=B==0&&!te||B==2&&!de?An(Vg.size/3):0),ke==1&&(te||de)&&($e=B==1&&!oe||B==3&&!ve?An(Kg.size/2):0),$e}const Fl=r.padding=(n.padding||[Fi,Fi,Fi,Fi]).map(P=>bt(St(P,Fi))),ri=r._padding=Fl.map((P,B)=>P(r,B,gi,0));let Tn,bn=null,xn=null;const is=h==1?M[0].idxs:null;let qn=null,xo=!1;function _o(P,B){if(e=P??[],r.data=r._data=e,h==2){Tn=0;for(let Y=1;Y<M.length;Y++)Tn+=e[Y][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),qn=e[0],Tn=qn.length;let Y=e;if(S==2){Y=e.slice();let K=Y[0]=Array(Tn);for(let te=0;te<Tn;te++)K[te]=te}r._data=e=Y}if(mi(!0),cn("setData"),S==2&&(Yt=!0),B!==!1){let Y=N;Y.auto(r,xo)?Xs():Tr(T,Y.min,Y.max),Un=Un||Be.left>=0,sr=!0,Bi()}}r.setData=_o;function Xs(){xo=!0;let P,B;h==1&&(Tn>0?(bn=is[0]=0,xn=is[1]=Tn-1,P=e[0][bn],B=e[0][xn],S==2?(P=bn,B=xn):P==B&&(S==3?[P,B]=nl(P,P,N.log,!1):S==4?[P,B]=vu(P,P,N.log,!1):N.time?B=P+An(86400/x):[P,B]=rl(P,B,bu,!0))):(bn=is[0]=P=null,xn=is[1]=B=null)),Tr(T,P,B)}let os,Pi,ss,as,ls,ea,ta,na,ra,Cr;function ia(P,B,Y,K,te,oe){P??(P=Jp),Y??(Y=Su),K??(K="butt"),te??(te=Jp),oe??(oe="round"),P!=os&&(a.strokeStyle=os=P),te!=Pi&&(a.fillStyle=Pi=te),B!=ss&&(a.lineWidth=ss=B),oe!=ls&&(a.lineJoin=ls=oe),K!=ea&&(a.lineCap=ea=K),Y!=as&&a.setLineDash(as=Y)}function oa(P,B,Y,K){B!=Pi&&(a.fillStyle=Pi=B),P!=ta&&(a.font=ta=P),Y!=na&&(a.textAlign=na=Y),K!=ra&&(a.textBaseline=ra=K)}function ko(P,B,Y,K,te=0){if(K.length>0&&P.auto(r,xo)&&(B==null||B.min==null)){let oe=St(bn,0),de=St(xn,K.length-1),ve=Y.min==null?P.distr==3?R_(K,oe,de):E_(K,oe,de,te):[Y.min,Y.max];P.min=Ar(P.min,Y.min=ve[0]),P.max=Bn(P.max,Y.max=ve[1])}}const Pl={min:null,max:null};function Hl(){for(let K in k){let te=k[K];I[K]==null&&(te.min==null||I[T]!=null&&te.auto(r,xo))&&(I[K]=Pl)}for(let K in k){let te=k[K];I[K]==null&&te.from!=null&&I[te.from]!=null&&(I[K]=Pl)}I[T]!=null&&mi(!0);let P={};for(let K in I){let te=I[K];if(te!=null){let oe=P[K]=Qo(k[K],H_);if(te.min!=null)vn(oe,te);else if(K!=T||h==2)if(Tn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=Xt,oe.max=-1/0}}if(Tn>0){M.forEach((K,te)=>{if(h==1){let oe=K.scale,de=I[oe];if(de==null)return;let ve=P[oe];if(te==0){let ke=ve.range(r,ve.min,ve.max,oe);ve.min=ke[0],ve.max=ke[1],bn=Wr(ve.min,e[0]),xn=Wr(ve.max,e[0]),xn-bn>1&&(e[0][bn]<ve.min&&bn++,e[0][xn]>ve.max&&xn--),K.min=qn[bn],K.max=qn[xn]}else K.show&&K.auto&&ko(ve,de,K,e[te],K.sorted);K.idxs[0]=bn,K.idxs[1]=xn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,ve=oe.scale,ke=de.scale,[$e,Te]=e[te],Me=P[ve],Ze=P[ke];Me!=null&&ko(Me,I[ve],oe,$e,oe.sorted),Ze!=null&&ko(Ze,I[ke],de,Te,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=I[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==Xt?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let B={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?hi(oe.min):de==4?_u(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?hi(oe.max):de==4?_u(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,B[K]=Y=!0}}if(Y){M.forEach((K,te)=>{h==2?te>0&&B.y&&(K._paths=null):B[K.scale]&&(K._paths=null)});for(let K in B)Yt=!0,cn("setScale",K);Be.show&&Be.left>=0&&(Un=sr=!0)}for(let K in I)I[K]=null}function cs(P){let B=ku(bn-1,0,Tn-1),Y=ku(xn+1,0,Tn-1);for(;P[B]==null&&B>0;)B--;for(;P[Y]==null&&Y<Tn-1;)Y++;return[B,Y]}function Wl(){Tn>0&&(M.forEach((P,B)=>{if(B>0&&P.show&&(Bl(B,!1),Bl(B,!0),P._paths==null)){Cr!=P.alpha&&(a.globalAlpha=Cr=P.alpha);let Y=h==2?[0,e[B][0].length-1]:cs(e[B]);P._paths=P.paths(r,B,Y[0],Y[1]),Cr!=1&&(a.globalAlpha=Cr=1)}}),M.forEach((P,B)=>{if(B>0&&P.show){Cr!=P.alpha&&(a.globalAlpha=Cr=P.alpha),P._paths!=null&&sa(B,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(r,B,bn,xn,Y),te=P.points.filter(r,B,K,Y);(K||te)&&(P.points._paths=P.points.paths(r,B,bn,xn,te),sa(B,!0))}Cr!=1&&(a.globalAlpha=Cr=1),cn("drawSeries",B)}}))}function Bl(P,B){let Y=B?M[P].points:M[P];Y._stroke=Y.stroke(r,P),Y._fill=Y.fill(r,P)}function sa(P,B){let Y=B?M[P].points:M[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:ve=Y._stroke,_fill:ke=Y._fill,_width:$e=Y.width}=Y._paths;$e=Nt($e*$t,3);let Te=null,Me=$e%2/2;B&&ke==null&&(ke=$e>0?"#fff":ve);let Ze=Y.pxAlign==1&&Me>0;if(Ze&&a.translate(Me,Me),!B){let Lt=Qe-$e/2,st=mt-$e/2,Ke=yt+$e,Xe=ht+$e;Te=new Path2D,Te.rect(Lt,st,Ke,Xe)}B?aa(ve,$e,Y.dash,Y.cap,ke,K,te,de,oe):jl(P,ve,$e,Y.dash,Y.cap,ke,K,te,de,Te,oe),Ze&&a.translate(-Me,-Me)}function jl(P,B,Y,K,te,oe,de,ve,ke,$e,Te){let Me=!1;ke!=0&&b.forEach((Ze,Lt)=>{if(Ze.series[0]==P){let st=M[Ze.series[1]],Ke=e[Ze.series[1]],Xe=(st._paths||Bs).band;Ii(Xe)&&(Xe=Ze.dir==1?Xe[0]:Xe[1]);let Ne,Tt=null;st.show&&Xe&&L_(Ke,bn,xn)?(Tt=Ze.fill(r,Lt)||oe,Ne=st._paths.clip):Xe=null,aa(B,Y,K,te,Tt,de,ve,ke,$e,Te,Ne,Xe),Me=!0}}),Me||aa(B,Y,K,te,oe,de,ve,ke,$e,Te)}const us=Jo|Ou;function aa(P,B,Y,K,te,oe,de,ve,ke,$e,Te,Me){ia(P,B,Y,K,te),(ke||$e||Me)&&(a.save(),ke&&a.clip(ke),$e&&a.clip($e)),Me?(ve&us)==us?(a.clip(Me),Te&&a.clip(Te),Hi(te,de),So(P,oe,B)):ve&Ou?(Hi(te,de),a.clip(Me),So(P,oe,B)):ve&Jo&&(a.save(),a.clip(Me),Te&&a.clip(Te),Hi(te,de),a.restore(),So(P,oe,B)):(Hi(te,de),So(P,oe,B)),(ke||$e||Me)&&a.restore()}function So(P,B,Y){Y>0&&(B instanceof Map?B.forEach((K,te)=>{a.strokeStyle=os=te,a.stroke(K)}):B!=null&&P&&a.stroke(B))}function Hi(P,B){B instanceof Map?B.forEach((Y,K)=>{a.fillStyle=Pi=K,a.fill(Y)}):B!=null&&P&&a.fill(B)}function la(P,B,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,P,B,Y,K),ve=te._incrs=te.incrs(r,P,B,Y,K,de);oe=Xk(B,Y,ve,K,de)}return te._found=oe}function ii(P,B,Y,K,te,oe,de,ve,ke,$e){let Te=de%2/2;y==1&&a.translate(Te,Te),ia(ve,de,ke,$e,ve),a.beginPath();let Me,Ze,Lt,st,Ke=te+(K==0||K==3?-oe:oe);Y==0?(Ze=te,st=Ke):(Me=te,Lt=Ke);for(let Xe=0;Xe<P.length;Xe++)B[Xe]!=null&&(Y==0?Me=Lt=P[Xe]:Ze=st=P[Xe],a.moveTo(Me,Ze),a.lineTo(Lt,st));a.stroke(),y==1&&a.translate(-Te,-Te)}function zl(P){let B=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(B=!1,Y._show=!1,mi(!1));return}else Y._show||(B=!1,Y._show=!0,mi(!1));let oe=Y.side,de=oe%2,{min:ve,max:ke}=te,[$e,Te]=la(K,ve,ke,de==0?We:ze);if(Te==0)return;let Me=te.distr==2,Ze=Y._splits=Y.splits(r,K,ve,ke,$e,Te,Me),Lt=te.distr==2?Ze.map(Ne=>qn[Ne]):Ze,st=te.distr==2?qn[Ze[1]]-qn[Ze[0]]:$e,Ke=Y._values=Y.values(r,Y.filter(r,Lt,K,Te,st),K,Te,st);Y._rotate=oe==2?Y.rotate(r,Ke,K,Te):0;let Xe=Y._size;Y._size=$r(Y.size(r,Ke,K,P)),Xe!=null&&Y._size!=Xe&&(B=!1)}),B}function Ul(P){let B=!0;return Fl.forEach((Y,K)=>{let te=Y(r,K,gi,P);te!=ri[K]&&(B=!1),ri[K]=te}),B}function id(){for(let P=0;P<A.length;P++){let B=A[P];if(!B.show||!B._show)continue;let Y=B.side,K=Y%2,te,oe,de=B.stroke(r,P),ve=Y==0||Y==3?-1:1;if(B.label){let Mn=B.labelGap*ve,Xn=An((B._lpos+Mn)*$t);oa(B.labelFont[0],de,"center",Y==2?Ps:Zp),a.save(),K==1?(te=oe=0,a.translate(Xn,An(mt+ht/2)),a.rotate((Y==3?-il:il)/2)):(te=An(Qe+yt/2),oe=Xn),a.fillText(B.label,te,oe),a.restore()}let[ke,$e]=B._found;if($e==0)continue;let Te=k[B.scale],Me=K==0?yt:ht,Ze=K==0?Qe:mt,Lt=An(B.gap*$t),st=B._splits,Ke=Te.distr==2?st.map(Mn=>qn[Mn]):st,Xe=Te.distr==2?qn[st[1]]-qn[st[0]]:ke,Ne=B.ticks,Tt=B.border,rn=Ne.show?An(Ne.size*$t):0,Jt=B._rotate*-il/180,Ht=v(B._pos*$t),Wt=(rn+Lt)*ve,ne=Ht+Wt;oe=K==0?ne:0,te=K==1?ne:0;let le=B.font[0],se=B.align==1?Uo:B.align==2?uu:Jt>0?Uo:Jt<0?uu:K==0?"center":Y==3?uu:Uo,Ce=Jt||K==1?"middle":Y==2?Ps:Zp;oa(le,de,se,Ce);let He=B.font[1]*B.lineGap,Je=st.map(Mn=>v(d(Mn,Te,Me,Ze))),Et=B._values;for(let Mn=0;Mn<Et.length;Mn++){let Xn=Et[Mn];if(Xn!=null){K==0?te=Je[Mn]:oe=Je[Mn],Xn=""+Xn;let Ln=Xn.indexOf(`
|
1408
|
+
`)==-1?[Xn]:Xn.split(/\n/gm);for(let vr=0;vr<Ln.length;vr++){let cr=Ln[vr];Jt?(a.save(),a.translate(te,oe+vr*He),a.rotate(Jt),a.fillText(cr,0,0),a.restore()):a.fillText(cr,te,oe+vr*He)}}}Ne.show&&ii(Je,Ne.filter(r,Ke,P,$e,Xe),K,Y,Ht,rn,Nt(Ne.width*$t,3),Ne.stroke(r,P),Ne.dash,Ne.cap);let et=B.grid;et.show&&ii(Je,et.filter(r,Ke,P,$e,Xe),K,K==0?2:1,K==0?mt:Qe,K==0?ht:yt,Nt(et.width*$t,3),et.stroke(r,P),et.dash,et.cap),Tt.show&&ii([Ht],[1],K==0?1:0,K==0?1:2,K==1?mt:Qe,K==1?ht:yt,Nt(Tt.width*$t,3),Tt.stroke(r,P),Tt.dash,Tt.cap)}cn("drawAxes")}function mi(P){M.forEach((B,Y)=>{Y>0&&(B._paths=null,P&&(h==1?(B.min=null,B.max=null):B.facets.forEach(K=>{K.min=null,K.max=null})))})}let $o=!1,hs=!1,Wi=[];function od(){hs=!1;for(let P=0;P<Wi.length;P++)cn(...Wi[P]);Wi.length=0}function Bi(){$o||(q_(ca),$o=!0)}function sd(P,B=!1){$o=!0,hs=B,P(r),ca(),B&&Wi.length>0&&queueMicrotask(od)}r.batch=sd;function ca(){if(dt&&(Hl(),dt=!1),Yt&&(Zh(),Yt=!1),ot){if(qt(o,Uo,ln),qt(o,Ps,Ve),qt(o,Ns,We),qt(o,Fs,ze),qt(f,Uo,ln),qt(f,Ps,Ve),qt(f,Ns,We),qt(f,Fs,ze),qt(l,Ns,Cn),qt(l,Fs,an),c.width=An(Cn*$t),c.height=An(an*$t),A.forEach(({_el:P,_show:B,_size:Y,_pos:K,side:te})=>{if(P!=null)if(B){let oe=te===3||te===0?Y:0,de=te%2==1;qt(P,de?"left":"top",K-oe),qt(P,de?"width":"height",Y),qt(P,de?"top":"left",de?Ve:ln),qt(P,de?"height":"width",de?ze:We),mu(P,ho)}else gr(P,ho)}),os=Pi=ss=ls=ea=ta=na=ra=as=null,Cr=1,Co(!0),ln!=ce||Ve!=Re||We!=De||ze!=Ye){mi(!1);let P=We/De,B=ze/Ye;if(Be.show&&!Un&&Be.left>=0){Be.left*=P,Be.top*=B,ji&&Qr(ji,An(Be.left),0,We,ze),oi&&Qr(oi,0,An(Be.top),We,ze);for(let Y=0;Y<Vn.length;Y++){let K=Vn[Y];K!=null&&(Di[Y]*=P,Ni[Y]*=B,Qr(K,$r(Di[Y]),$r(Ni[Y]),We,ze))}}if(Pt.show&&!fi&&Pt.left>=0&&Pt.width>0){Pt.left*=P,Pt.width*=P,Pt.top*=B,Pt.height*=B;for(let Y in ga)qt(yi,Y,Pt[Y])}ce=ln,Re=Ve,De=We,Ye=ze}cn("setSize"),ot=!1}Cn>0&&an>0&&(a.clearRect(0,0,c.width,c.height),cn("drawClear"),L.forEach(P=>P()),cn("draw")),Pt.show&&fi&&(ds(Pt),fi=!1),Be.show&&Un&&(Gn(null,!0,!1),Un=!1),X.show&&X.live&&sr&&(Ao(),sr=!1),g||(g=!0,r.status=1,cn("ready")),xo=!1,$o=!1}r.redraw=(P,B)=>{Yt=B||!1,P!==!1?Tr(T,N.min,N.max):Bi()};function ua(P,B){let Y=k[P];if(Y.from==null){if(Tn==0){let K=Y.range(r,B.min,B.max,P);B.min=K[0],B.max=K[1]}if(B.min>B.max){let K=B.min;B.min=B.max,B.max=K}if(Tn>1&&B.min!=null&&B.max!=null&&B.max-B.min<1e-16)return;P==T&&Y.distr==2&&Tn>0&&(B.min=Wr(B.min,e[0]),B.max=Wr(B.max,e[0]),B.min==B.max&&B.max++),I[P]=B,dt=!0,Bi()}}r.setScale=ua;let ha,da,ji,oi,Vl,ql,zi,Ui,Gl,Ot,je,Ut,si=!1;const En=Be.drag;let _n=En.x,kn=En.y;Be.show&&(Be.x&&(ha=Sr(m_,f)),Be.y&&(da=Sr(y_,f)),N.ori==0?(ji=ha,oi=da):(ji=da,oi=ha),je=Be.left,Ut=Be.top);const Pt=r.select=vn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),yi=Pt.show?Sr(g_,Pt.over?f:o):null;function ds(P,B){if(Pt.show){for(let Y in P)Pt[Y]=P[Y],Y in ga&&qt(yi,Y,P[Y]);B!==!1&&cn("setSelect")}}r.setSelect=ds;function Rn(P,B){let Y=M[P],K=G?me[P]:null;if(Y.show)K&&mu(K,ho);else{K&&gr(K,ho);let te=Oi?Vn[0]:Vn[P];Qr(te,-10,-10,We,ze)}}function Tr(P,B,Y){ua(P,{min:B,max:Y})}function Fn(P,B,Y,K){B.focus!=null&&Ql(P),B.show!=null&&M.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=B.show,Rn(oe,B.show),h==2?(Tr(te.facets[0].scale,null,null),Tr(te.facets[1].scale,null,null)):Tr(te.scale,null,null),Bi())}),Y!==!1&&cn("setSeries",P,B),K&&zr("setSeries",r,P,B)}r.setSeries=Fn;function Yl(P,B){vn(b[P],B)}function fa(P,B){P.fill=bt(P.fill||null),P.dir=St(P.dir,-1),B=B??b.length,b.splice(B,0,P)}function ar(P){P==null?b.length=0:b.splice(P,1)}r.addBand=fa,r.setBand=Yl,r.delBand=ar;function Kl(P,B){M[P].alpha=B,Be.show&&Vn[P]&&(Vn[P].style.opacity=B),G&&me[P]&&(me[P].style.opacity=B)}let Er,jr,ai;const wi={focus:!0};function Ql(P){if(P!=ai){let B=P==null,Y=ti.alpha!=1;M.forEach((K,te)=>{if(h==1||te>0){let oe=B||te==0||te==P;K._focus=B?null:oe,Y&&Kl(te,oe?1:ti.alpha)}}),ai=P,Y&&Bi()}}G&&ni&&tn(ng,re,P=>{Be._lock||(pi(P),ai!=null&&Fn(null,wi,!0,nn.setSeries))});function Zt(P,B,Y){let K=k[B];Y&&(P=P/$t-(K.ori==1?Ve:ln));let te=We;K.ori==1&&(te=ze,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,ve=P/te,ke=oe+(de-oe)*ve,$e=K.distr;return $e==3?Yo(10,ke):$e==4?O_(ke,K.asinh):$e==100?K.bwd(ke):ke}function ad(P,B){let Y=Zt(P,T,B);return Wr(Y,e[0],bn,xn)}r.valToIdx=P=>Wr(P,e[0]),r.posToIdx=ad,r.posToVal=Zt,r.valToPos=(P,B,Y)=>k[B].ori==0?p(P,k[B],Y?yt:We,Y?Qe:0):w(P,k[B],Y?ht:ze,Y?mt:0),r.setCursor=(P,B,Y)=>{je=P.left,Ut=P.top,Gn(null,B,Y)};function Jn(P,B){qt(yi,Uo,Pt.left=P),qt(yi,Ns,Pt.width=B)}function Zl(P,B){qt(yi,Ps,Pt.top=P),qt(yi,Fs,Pt.height=B)}let Vi=N.ori==0?Jn:Zl,lr=N.ori==1?Jn:Zl;function fs(){if(G&&X.live)for(let P=h==2?1:0;P<M.length;P++){if(P==0&&Ae)continue;let B=X.values[P],Y=0;for(let K in B)we[P][Y++].firstChild.nodeValue=B[K]}}function Ao(P,B){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):P_(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<M.length;Y++)(Y>0||h==1&&!Ae)&&Vt(Y,q[Y]);fs()}sr=!1,B!==!1&&cn("setLegend")}r.setLegend=Ao;function Vt(P,B){let Y=M[P],K=P==0&&S==2?qn:e[P],te;Ae?te=Y.values(r,P,B)??lt:(te=Y.value(r,B==null?null:K[B],P,B),te=te==null?lt:{_:te}),X.values[P]=te}function Gn(P,B,Y){Gl=je,Ot=Ut,[je,Ut]=Be.move(r,je,Ut),Be.left=je,Be.top=Ut,Be.show&&(ji&&Qr(ji,An(je),0,We,ze),oi&&Qr(oi,0,An(Ut),We,ze));let K,te=bn>xn;Er=Xt,jr=null;let oe=N.ori==0?We:ze,de=N.ori==1?We:ze;if(je<0||Tn==0||te){K=Be.idx=null;for(let ve=0;ve<M.length;ve++){let ke=Vn[ve];ke!=null&&Qr(ke,-10,-10,We,ze)}ni&&Fn(null,wi,!0,P==null&&nn.setSeries),X.live&&(q.fill(K),sr=!0)}else{let ve,ke,$e;h==1&&(ve=N.ori==0?je:Ut,ke=Zt(ve,T),K=Be.idx=Wr(ke,e[0],bn,xn),$e=_(e[0][K],N,oe,0));let Te=-10,Me=-10,Ze=0,Lt=0,st=!0,Ke="",Xe="";for(let Ne=h==2?1:0;Ne<M.length;Ne++){let Tt=M[Ne],rn=q[Ne],Jt=rn==null?null:h==1?e[Ne][rn]:e[Ne][1][rn],Ht=Be.dataIdx(r,Ne,K,ke),Wt=Ht==null?null:h==1?e[Ne][Ht]:e[Ne][1][Ht];sr=sr||Wt!=Jt||Ht!=rn,q[Ne]=Ht;let ne=Ht==K?$e:_(h==1?e[0][Ht]:e[Ne][0][Ht],N,oe,0);if(Ne>0&&Tt.show){let le=Wt==null?-10:$(Wt,h==1?k[Tt.scale]:k[Tt.facets[1].scale],de,0);if(ni&&Wt!=null){let se=N.ori==1?je:Ut,Ce=$n(ti.dist(r,Ne,Ht,le,se));if(Ce<Er){let He=ti.bias;if(He!=0){let Je=Zt(se,Tt.scale),Et=Wt>=0?1:-1,et=Je>=0?1:-1;et==Et&&(et==1?He==1?Wt>=Je:Wt<=Je:He==1?Wt<=Je:Wt>=Je)&&(Er=Ce,jr=Ne)}else Er=Ce,jr=Ne}}if(sr||Oi){let se,Ce;N.ori==0?(se=ne,Ce=le):(se=le,Ce=ne);let He,Je,Et,et,Mn,Xn,Ln=!0,vr=Nn.bbox;if(vr!=null){Ln=!1;let cr=vr(r,Ne);Et=cr.left,et=cr.top,He=cr.width,Je=cr.height}else Et=se,et=Ce,He=Je=Nn.size(r,Ne);if(Xn=Nn.fill(r,Ne),Mn=Nn.stroke(r,Ne),Oi)Ne==jr&&Er<=ti.prox&&(Te=Et,Me=et,Ze=He,Lt=Je,st=Ln,Ke=Xn,Xe=Mn);else{let cr=Vn[Ne];cr!=null&&(Di[Ne]=Et,Ni[Ne]=et,cg(cr,He,Je,Ln),ag(cr,Xn,Mn),Qr(cr,$r(Et),$r(et),We,ze))}}}}if(Oi){let Ne=ti.prox,Tt=ai==null?Er<=Ne:Er>Ne||jr!=ai;if(sr||Tt){let rn=Vn[0];Di[0]=Te,Ni[0]=Me,cg(rn,Ze,Lt,st),ag(rn,Ke,Xe),Qr(rn,$r(Te),$r(Me),We,ze)}}}if(Pt.show&&si)if(P!=null){let[ve,ke]=nn.scales,[$e,Te]=nn.match,[Me,Ze]=P.cursor.sync.scales,Lt=P.cursor.drag;if(_n=Lt._x,kn=Lt._y,_n||kn){let{left:st,top:Ke,width:Xe,height:Ne}=P.select,Tt=P.scales[Me].ori,rn=P.posToVal,Jt,Ht,Wt,ne,le,se=ve!=null&&$e(ve,Me),Ce=ke!=null&&Te(ke,Ze);se&&_n?(Tt==0?(Jt=st,Ht=Xe):(Jt=Ke,Ht=Ne),Wt=k[ve],ne=_(rn(Jt,Me),Wt,oe,0),le=_(rn(Jt+Ht,Me),Wt,oe,0),Vi(Ar(ne,le),$n(le-ne))):Vi(0,oe),Ce&&kn?(Tt==1?(Jt=st,Ht=Xe):(Jt=Ke,Ht=Ne),Wt=k[ke],ne=$(rn(Jt,Ze),Wt,de,0),le=$(rn(Jt+Ht,Ze),Wt,de,0),lr(Ar(ne,le),$n(le-ne))):lr(0,de)}else gs()}else{let ve=$n(Gl-Vl),ke=$n(Ot-ql);if(N.ori==1){let Ze=ve;ve=ke,ke=Ze}_n=En.x&&ve>=En.dist,kn=En.y&&ke>=En.dist;let $e=En.uni;$e!=null?_n&&kn&&(_n=ve>=$e,kn=ke>=$e,!_n&&!kn&&(ke>ve?kn=!0:_n=!0)):En.x&&En.y&&(_n||kn)&&(_n=kn=!0);let Te,Me;_n&&(N.ori==0?(Te=zi,Me=je):(Te=Ui,Me=Ut),Vi(Ar(Te,Me),$n(Me-Te)),kn||lr(0,de)),kn&&(N.ori==1?(Te=zi,Me=je):(Te=Ui,Me=Ut),lr(Ar(Te,Me),$n(Me-Te)),_n||Vi(0,oe)),!_n&&!kn&&(Vi(0,0),lr(0,0))}if(En._x=_n,En._y=kn,P==null){if(Y){if(Yn!=null){let[ve,ke]=nn.scales;nn.values[0]=ve!=null?Zt(N.ori==0?je:Ut,ve):null,nn.values[1]=ke!=null?Zt(N.ori==1?je:Ut,ke):null}zr(Xp,r,je,Ut,We,ze,K)}if(ni){let ve=Y&&nn.setSeries,ke=ti.prox;ai==null?Er<=ke&&Fn(jr,wi,!0,ve):Er>ke?Fn(null,wi,!0,ve):jr!=ai&&Fn(jr,wi,!0,ve)}}sr&&(X.idx=K,Ao()),B!==!1&&cn("setCursor")}let Rr=null;Object.defineProperty(r,"rect",{get(){return Rr==null&&Co(!1),Rr}});function Co(P=!1){P?Rr=null:(Rr=f.getBoundingClientRect(),cn("syncRect",Rr))}function ps(P,B,Y,K,te,oe,de){Be._lock||si&&P!=null&&P.movementX==0&&P.movementY==0||(pa(P,B,Y,K,te,oe,de,!1,P!=null),P!=null?Gn(null,!0,!0):Gn(B,!0,!1))}function pa(P,B,Y,K,te,oe,de,ve,ke){if(Rr==null&&Co(!1),pi(P),P!=null)Y=P.clientX-Rr.left,K=P.clientY-Rr.top;else{if(Y<0||K<0){je=-10,Ut=-10;return}let[$e,Te]=nn.scales,Me=B.cursor.sync,[Ze,Lt]=Me.values,[st,Ke]=Me.scales,[Xe,Ne]=nn.match,Tt=B.axes[0].side%2==1,rn=N.ori==0?We:ze,Jt=N.ori==1?We:ze,Ht=Tt?oe:te,Wt=Tt?te:oe,ne=Tt?K:Y,le=Tt?Y:K;if(st!=null?Y=Xe($e,st)?d(Ze,k[$e],rn,0):-10:Y=rn*(ne/Ht),Ke!=null?K=Ne(Te,Ke)?d(Lt,k[Te],Jt,0):-10:K=Jt*(le/Wt),N.ori==1){let se=Y;Y=K,K=se}}ke&&((Y<=1||Y>=We-1)&&(Y=go(Y,We)),(K<=1||K>=ze-1)&&(K=go(K,ze))),ve?(Vl=Y,ql=K,[zi,Ui]=Be.move(r,Y,K)):(je=Y,Ut=K)}const ga={width:0,height:0,left:0,top:0};function gs(){ds(ga,!1)}let ma,To,vi,Jl;function ya(P,B,Y,K,te,oe,de){si=!0,_n=kn=En._x=En._y=!1,pa(P,B,Y,K,te,oe,de,!0,!1),P!=null&&(tn(du,pu,wa,!1),zr(eg,r,zi,Ui,We,ze,null));let{left:ve,top:ke,width:$e,height:Te}=Pt;ma=ve,To=ke,vi=$e,Jl=Te,gs()}function wa(P,B,Y,K,te,oe,de){si=En._x=En._y=!1,pa(P,B,Y,K,te,oe,de,!1,!0);let{left:ve,top:ke,width:$e,height:Te}=Pt,Me=$e>0||Te>0,Ze=ma!=ve||To!=ke||vi!=$e||Jl!=Te;if(Me&&Ze&&ds(Pt),En.setScale&&Me&&Ze){let Lt=ve,st=$e,Ke=ke,Xe=Te;if(N.ori==1&&(Lt=ke,st=Te,Ke=ve,Xe=$e),_n&&Tr(T,Zt(Lt,T),Zt(Lt+st,T)),kn)for(let Ne in k){let Tt=k[Ne];Ne!=T&&Tt.from==null&&Tt.min!=Xt&&Tr(Ne,Zt(Ke+Xe,Ne),Zt(Ke,Ne))}gs()}else Be.lock&&(Be._lock=!Be._lock,Gn(null,!0,!1));P!=null&&(ei(du,pu),zr(du,r,je,Ut,We,ze,null))}function va(P,B,Y,K,te,oe,de){if(Be._lock)return;pi(P);let ve=si;if(si){let ke=!0,$e=!0,Te=10,Me,Ze;N.ori==0?(Me=_n,Ze=kn):(Me=kn,Ze=_n),Me&&Ze&&(ke=je<=Te||je>=We-Te,$e=Ut<=Te||Ut>=ze-Te),Me&&ke&&(je=je<zi?0:We),Ze&&$e&&(Ut=Ut<Ui?0:ze),Gn(null,!0,!0),si=!1}je=-10,Ut=-10,Gn(null,!0,!0),ve&&(si=ve)}function ms(P,B,Y,K,te,oe,de){Be._lock||(pi(P),Xs(),gs(),P!=null&&zr(rg,r,je,Ut,We,ze,null))}function ba(){A.forEach(eS),Zs(r.width,r.height,!0)}fo(el,qo,ba);const qi={};qi.mousedown=ya,qi.mousemove=ps,qi.mouseup=wa,qi.dblclick=ms,qi.setSeries=(P,B,Y,K)=>{let te=nn.match[2];Y=te(r,B,Y),Y!=-1&&Fn(Y,K,!0,!1)},Be.show&&(tn(eg,f,ya),tn(Xp,f,ps),tn(tg,f,P=>{pi(P),Co(!1)}),tn(ng,f,va),tn(rg,f,ms),Pu.add(r),r.syncRect=Co);const Gi=r.hooks=n.hooks||{};function cn(P,B,Y){hs?Wi.push([P,B,Y]):P in Gi&&Gi[P].forEach(K=>{K.call(null,r,B,Y)})}(n.plugins||[]).forEach(P=>{for(let B in P.hooks)Gi[B]=(Gi[B]||[]).concat(P.hooks[B])});const Xl=(P,B,Y)=>Y,nn=vn({key:null,setSeries:!1,filters:{pub:yg,sub:yg},scales:[T,M[1]?M[1].scale:null],match:[wg,wg,Xl],values:[null,null]},Be.sync);nn.match.length==2&&nn.match.push(Xl),Be.sync=nn;const Yn=nn.key,Eo=nm(Yn);function zr(P,B,Y,K,te,oe,de){nn.filters.pub(P,B,Y,K,te,oe,de)&&Eo.pub(P,B,Y,K,te,oe,de)}Eo.sub(r);function ec(P,B,Y,K,te,oe,de){nn.filters.sub(P,B,Y,K,te,oe,de)&&qi[P](null,B,Y,K,te,oe,de)}r.pub=ec;function tc(){Eo.unsub(r),Pu.delete(r),Ft.clear(),wu(el,qo,ba),s.remove(),re==null||re.remove(),cn("destroy")}r.destroy=tc;function xa(){cn("init",n,e),_o(e||n.data,!1),I[T]?ua(T,I[T]):Xs(),fi=Pt.show&&(Pt.width>0||Pt.height>0),Un=sr=!0,Zs(n.width,n.height)}return M.forEach(Nl),A.forEach(rd),t?t instanceof HTMLElement?(t.appendChild(s),xa()):t(r,xa):xa(),r}jn.assign=vn,jn.fmtNum=xu,jn.rangeNum=rl,jn.rangeLog=nl,jn.rangeAsinh=vu,jn.orient=yo,jn.pxRatio=$t,jn.join=V_,jn.fmtDate=$u,jn.tzDate=nk,jn.sync=nm;{jn.addGap=Pk,jn.clipGaps=ul;let n=jn.paths={points:cm};n.linear=hm,n.stepped=Bk,n.bars=jk,n.spline=Uk}var vm,bm;function tS(){return bm||(bm=1,vm=function(n,e,t,r,h){var u,p;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(h===void 0)h=n.length-1;else if(h=h|0,h<r||h>=n.length)throw new RangeError("invalid upper bound");for(;r<=h;)if(u=r+(h-r>>>1),p=+t(n[u],e,u,n),p<0)r=u+1;else if(p>0)h=u-1;else return u;return~r}),vm}var nS=tS();const JO=On("O",Ha(nS));var Wu,xm;function rS(){if(xm)return Wu;xm=1;function n(e,t,r){var h=-1,u=e.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var p=Array(u);++h<u;)p[h]=e[h+t];return p}return Wu=n,Wu}var Bu,_m;function iS(){if(_m)return Bu;_m=1;var n=rS();function e(t,r,h){var u=t.length;return h=h===void 0?u:h,!r&&h>=u?t:n(t,r,h)}return Bu=e,Bu}var ju,km;function Sm(){if(km)return ju;km=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",h=e+t+r,u="\\ufe0e\\ufe0f",p="\\u200d",w=RegExp("["+p+n+h+u+"]");function d(g){return w.test(g)}return ju=d,ju}var zu,$m;function oS(){if($m)return zu;$m=1;function n(e){return e.split("")}return zu=n,zu}var Uu,Am;function sS(){if(Am)return Uu;Am=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",h=e+t+r,u="\\ufe0e\\ufe0f",p="["+n+"]",w="["+h+"]",d="\\ud83c[\\udffb-\\udfff]",g="(?:"+w+"|"+d+")",s="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=g+"?",f="["+u+"]?",y="(?:"+l+"(?:"+[s,c,a].join("|")+")"+f+o+")*",v=f+o+y,x="(?:"+[s+w+"?",w,c,a,p].join("|")+")",M=RegExp(d+"(?="+d+")|"+x+v,"g");function A(k){return k.match(M)||[]}return Uu=A,Uu}var Vu,Cm;function aS(){if(Cm)return Vu;Cm=1;var n=oS(),e=Sm(),t=sS();function r(h){return e(h)?t(h):n(h)}return Vu=r,Vu}var qu,Tm;function lS(){if(Tm)return qu;Tm=1;var n=typeof Mi=="object"&&Mi&&Mi.Object===Object&&Mi;return qu=n,qu}var Gu,Em;function cS(){if(Em)return Gu;Em=1;var n=lS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Gu=t,Gu}var Yu,Rm;function Ku(){if(Rm)return Yu;Rm=1;var n=cS(),e=n.Symbol;return Yu=e,Yu}var Qu,Mm;function uS(){if(Mm)return Qu;Mm=1;function n(e,t){for(var r=-1,h=e==null?0:e.length,u=Array(h);++r<h;)u[r]=t(e[r],r,e);return u}return Qu=n,Qu}var Zu,Lm;function hS(){if(Lm)return Zu;Lm=1;var n=Array.isArray;return Zu=n,Zu}var Ju,Im;function dS(){if(Im)return Ju;Im=1;var n=Ku(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,h=n?n.toStringTag:void 0;function u(p){var w=t.call(p,h),d=p[h];try{p[h]=void 0;var g=!0}catch{}var s=r.call(p);return g&&(w?p[h]=d:delete p[h]),s}return Ju=u,Ju}var Xu,Om;function fS(){if(Om)return Xu;Om=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Xu=t,Xu}var eh,Dm;function pS(){if(Dm)return eh;Dm=1;var n=Ku(),e=dS(),t=fS(),r="[object Null]",h="[object Undefined]",u=n?n.toStringTag:void 0;function p(w){return w==null?w===void 0?h:r:u&&u in Object(w)?e(w):t(w)}return eh=p,eh}var th,Nm;function gS(){if(Nm)return th;Nm=1;function n(e){return e!=null&&typeof e=="object"}return th=n,th}var nh,Fm;function mS(){if(Fm)return nh;Fm=1;var n=pS(),e=gS(),t="[object Symbol]";function r(h){return typeof h=="symbol"||e(h)&&n(h)==t}return nh=r,nh}var rh,Pm;function yS(){if(Pm)return rh;Pm=1;var n=Ku(),e=uS(),t=hS(),r=mS(),h=n?n.prototype:void 0,u=h?h.toString:void 0;function p(w){if(typeof w=="string")return w;if(t(w))return e(w,p)+"";if(r(w))return u?u.call(w):"";var d=w+"";return d=="0"&&1/w==-1/0?"-0":d}return rh=p,rh}var ih,Hm;function pl(){if(Hm)return ih;Hm=1;var n=yS();function e(t){return t==null?"":n(t)}return ih=e,ih}var oh,Wm;function wS(){if(Wm)return oh;Wm=1;var n=iS(),e=Sm(),t=aS(),r=pl();function h(u){return function(p){p=r(p);var w=e(p)?t(p):void 0,d=w?w[0]:p.charAt(0),g=w?n(w,1).join(""):p.slice(1);return d[u]()+g}}return oh=h,oh}var sh,Bm;function jm(){if(Bm)return sh;Bm=1;var n=wS(),e=n("toUpperCase");return sh=e,sh}var vS=jm();const bS=Ha(vS);var ah,zm;function xS(){if(zm)return ah;zm=1;var n=pl(),e=jm();function t(r){return e(n(r).toLowerCase())}return ah=t,ah}var lh,Um;function _S(){if(Um)return lh;Um=1;function n(e,t,r,h){var u=-1,p=e==null?0:e.length;for(h&&p&&(r=e[++u]);++u<p;)r=t(r,e[u],u,e);return r}return lh=n,lh}var ch,Vm;function kS(){if(Vm)return ch;Vm=1;function n(e){return function(t){return e==null?void 0:e[t]}}return ch=n,ch}var uh,qm;function SS(){if(qm)return uh;qm=1;var n=kS(),e={À:"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"},t=n(e);return uh=t,uh}var hh,Gm;function $S(){if(Gm)return hh;Gm=1;var n=SS(),e=pl(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",h="\\ufe20-\\ufe2f",u="\\u20d0-\\u20ff",p=r+h+u,w="["+p+"]",d=RegExp(w,"g");function g(s){return s=e(s),s&&s.replace(t,n).replace(d,"")}return hh=g,hh}var dh,Ym;function AS(){if(Ym)return dh;Ym=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return dh=e,dh}var fh,Km;function CS(){if(Km)return fh;Km=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return n.test(t)}return fh=e,fh}var ph,Qm;function TS(){if(Qm)return ph;Qm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",h=e+t+r,u="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",l=w+d+g+s,o="['’]",f="["+l+"]",y="["+h+"]",v="\\d+",x="["+u+"]",M="["+p+"]",A="[^"+n+l+v+u+p+c+"]",k="\\ud83c[\\udffb-\\udfff]",b="(?:"+y+"|"+k+")",T="[^"+n+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+c+"]",N="\\u200d",S="(?:"+M+"|"+A+")",_="(?:"+E+"|"+A+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+a+"]?",W="(?:"+N+"(?:"+[T,R,L].join("|")+")"+F+O+")*",z="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+W,X="(?:"+[x,R,L].join("|")+")"+q,G=RegExp([E+"?"+M+"+"+$+"(?="+[f,E,"$"].join("|")+")",_+"+"+I+"(?="+[f,E+S,"$"].join("|")+")",E+"?"+S+"+"+$,E+"+"+I,V,z,v,X].join("|"),"g");function Z(re){return re.match(G)||[]}return ph=Z,ph}var gh,Zm;function ES(){if(Zm)return gh;Zm=1;var n=AS(),e=CS(),t=pl(),r=TS();function h(u,p,w){return u=t(u),p=w?void 0:p,p===void 0?e(u)?r(u):n(u):u.match(p)||[]}return gh=h,gh}var mh,Jm;function RS(){if(Jm)return mh;Jm=1;var n=_S(),e=$S(),t=ES(),r="['’]",h=RegExp(r,"g");function u(p){return function(w){return n(t(e(w).replace(h,"")),p,"")}}return mh=u,mh}var yh,Xm;function MS(){if(Xm)return yh;Xm=1;var n=xS(),e=RS(),t=e(function(r,h,u){return h=h.toLowerCase(),r+(u?n(h):h)});return yh=t,yh}var LS=MS();const IS=Ha(LS),OS=Object.assign({"./ArrayWidget.vue":()=>Ie(()=>Le.import("./ArrayWidget-DzHELdHv-cf5adfa1838cab0270f0.js"),void 0),"./ArrayplotWidget.vue":()=>Ie(()=>Le.import("./ArrayplotWidget-BDvziGSm-f5d50e93d7371a2a475f.js"),void 0),"./BlockWidget.vue":()=>Ie(()=>Le.import("./BlockWidget-D0On4x3d-d3e7e856072d714fa58e.js"),void 0),"./ButtonWidget.vue":()=>Ie(()=>Le.import("./ButtonWidget-BOYLHMt4-a78a02b11dceb12c965e.js"),void 0),"./CanvasWidget.vue":()=>Ie(()=>Le.import("./CanvasWidget-CQIqiLEy-b372eb886b6d9b8e1116.js"),void 0),"./CanvasdotWidget.vue":()=>Ie(()=>Le.import("./CanvasdotWidget-BVWutPMF-8e497a46f5c895bef11f.js"),void 0),"./CanvasimageWidget.vue":()=>Ie(()=>Le.import("./CanvasimageWidget-ayu_ASKf-cdd9756836662c81b2ab.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ie(()=>Le.import("./CanvasimagevalueWidget-mv319g5T-653da344ef85fc4b9066.js"),void 0),"./CanvaslabelWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelWidget-BNjbXDb8-9521151a10cec5611247.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelvalueWidget-CrhPwTSP-4ab1e27e14a1fff7e5c7.js"),void 0),"./CanvaslineWidget.vue":()=>Ie(()=>Le.import("./CanvaslineWidget--HdKH6oO-fb81f60216243f239018.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslinevalueWidget-CJsuF6RY-184e134e07ff7b5e424e.js"),void 0),"./CheckbuttonWidget.vue":()=>Ie(()=>Le.import("./CheckbuttonWidget-CQ2HlgIk-beb3f626b444680c4918.js"),void 0),"./ComboboxWidget.vue":()=>Ie(()=>Le.import("./ComboboxWidget-BxILACwz-4b284dcd23feef8753a6.js"),void 0),"./DateWidget.vue":()=>Ie(()=>Le.import("./DateWidget-CIkO0xqH-70af5e8d3bdafcc948a8.js"),void 0),"./DynamicWidget.vue":()=>Ie(()=>Le.import("./DynamicWidget-gFSYxzvT-b0f42e8e4e31be07be5f.js"),void 0),"./FormatvalueWidget.vue":()=>Ie(()=>Le.import("./FormatvalueWidget-D8-EO_3E-9f02667c69f3c22e6bed.js"),void 0),"./HorizontalWidget.vue":()=>Ie(()=>Le.import("./HorizontalWidget-Bp-qtqoh-44b7a80962e1c7e8b4be.js"),void 0),"./HorizontalboxWidget.vue":()=>Ie(()=>Le.import("./HorizontalboxWidget-CrJuGY3s-bea5dff728d5d6f55d51.js"),void 0),"./HorizontallineWidget.vue":()=>Ie(()=>Le.import("./HorizontallineWidget-CbxREBYI-6475b9d462406b21e064.js"),void 0),"./IframeWidget.vue":()=>Ie(()=>Le.import("./IframeWidget-DusiWNNj-33aebb5c3c53dc9ee943.js"),void 0),"./ImageviewerWidget.vue":()=>Ie(()=>Le.import("./ImageviewerWidget-c0gJ9VDC-f3ce6fdd2b34815b3ad8.js"),void 0),"./LabelWidget.vue":()=>Ie(()=>Le.import("./LabelWidget-pPgc0ve3-439a92e6fbe36f559d71.js"),void 0),"./LabelledWidget.vue":()=>Ie(()=>Le.import("./LabelledWidget-CkNjby55-6ddf8cef8ee0d2f72f49.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ie(()=>Le.import("./LabelprogressbarWidget-e2R2yQKw-a95de1b9b83833763126.js"),void 0),"./LabelsparklineWidget.vue":()=>Ie(()=>Le.import("./LabelsparklineWidget-D7MQ_oNw-1de5aa49b9139e76b344.js"),void 0),"./LabelvalueWidget.vue":()=>Ie(()=>Le.import("./LabelvalueWidget-4DShBBvr-dd454968f34369b0bbb2.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ie(()=>Le.import("./LabelvaluedescWidget-Z1m8Bi6N-ab155461e744793981ce.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitsbarWidget-DVa-oYxU-f264286cf044a6708c3b.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitscolumnWidget-DduuX632-585261d45efc4ebc082a.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluerangebarWidget-BR9vXOlt-c5210ff00d810e437d7b.js"),void 0),"./LedWidget.vue":()=>Ie(()=>Le.import("./LedWidget-f7bf8ls_-54d0c26a918b0ac3a0f5.js"),void 0),"./LimitsbarWidget.vue":()=>Ie(()=>Le.import("./LimitsbarWidget-B7fHaDcJ-569ade0445f3bb2acc10.js"),void 0),"./LimitscolorWidget.vue":()=>Ie(()=>Le.import("./LimitscolorWidget-CpC4D_TC-13db36999c3549186478.js"),void 0),"./LimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LimitscolumnWidget-C9FbNC-U-5e1e1c85465841076cd7.js"),void 0),"./LinegraphWidget.vue":()=>Ie(()=>Le.import("./LinegraphWidget-DkWDQ_3K-b330b2d3d502d52de6ed.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ie(()=>Le.import("./MatrixbycolumnsWidget-CHJDyYa3-cfddb2a4b348ab05a2dd.js"),void 0),"./ProgressbarWidget.vue":()=>Ie(()=>Le.import("./ProgressbarWidget-CRZDxClT-e8e9e4b68649cc0d9f8a.js"),void 0),"./RadiobuttonWidget.vue":()=>Ie(()=>Le.import("./RadiobuttonWidget-BW4yFweH-7ed955a4914d627fe1c4.js"),void 0),"./RadiogroupWidget.vue":()=>Ie(()=>Le.import("./RadiogroupWidget-_0bVCHjr-e7d4f04e52803d2fa070.js"),void 0),"./RangebarWidget.vue":()=>Ie(()=>Le.import("./RangebarWidget-CEQFiG4l-29e79471c8b8fd99a429.js"),void 0),"./RollupWidget.vue":()=>Ie(()=>Le.import("./RollupWidget-579c7y0R-151a6747e352114705a2.js"),void 0),"./ScrollwindowWidget.vue":()=>Ie(()=>Le.import("./ScrollwindowWidget-Kcre9gM3-b296e5040c0cad4ac9f4.js"),void 0),"./SignalWidget.vue":()=>Ie(()=>Le.import("./SignalWidget-D55Myd0q-2ae51519ebe8a777ae4e.js"),void 0),"./SpacerWidget.vue":()=>Ie(()=>Le.import("./SpacerWidget-DBDv_w_s-f15f2aad40981070a896.js"),void 0),"./SparklineWidget.vue":()=>Ie(()=>Le.import("./SparklineWidget-DJvIL24z-958a91326f18bb75b86d.js"),void 0),"./TabbookWidget.vue":()=>Ie(()=>Le.import("./TabbookWidget-DH9DHnp1-42b0ec812de0ba6f57d0.js"),void 0),"./TextboxWidget.vue":()=>Ie(()=>Le.import("./TextboxWidget-DCjIEzJn-6212afb58fd6e266dea5.js"),void 0),"./TextfieldWidget.vue":()=>Ie(()=>Le.import("./TextfieldWidget-BRQ6oPzR-970748ea07f59f286198.js"),void 0),"./TimeWidget.vue":()=>Ie(()=>Le.import("./TimeWidget-pXtrK5IC-50feb6504e0180cdfd73.js"),void 0),"./TitleWidget.vue":()=>Ie(()=>Le.import("./TitleWidget-CfAa2SyT-ee690e6021ee99d696f5.js"),void 0),"./ValueWidget.vue":()=>Ie(()=>Le.import("./ValueWidget-DIFivXw_-170a0884cbafd98d2287.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ie(()=>Le.import("./ValuelimitsbarWidget-Cb7_SIUF-bd46f3478047270a6408.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./ValuelimitscolumnWidget-D8bgZ7YP-a88f2ae86e7deb743263.js"),void 0),"./ValuerangebarWidget.vue":()=>Ie(()=>Le.import("./ValuerangebarWidget-VKygtFwP-db27dda0a1b1d84e67fe.js"),void 0),"./VerticalWidget.vue":()=>Ie(()=>Le.import("./VerticalWidget-BuvedA_b-98e3017b484c5b9c1b2f.js"),void 0),"./VerticalboxWidget.vue":()=>Ie(()=>Le.import("./VerticalboxWidget-D_LcL3GF-3750e4d81ce80cee857d.js"),void 0)}),DS=Object.entries(OS).reduce((n,[e,t])=>{e=e.split("/").pop();const r=bS(IS(e.replace(/\.\w+$/,"")));return{...n,[r]:tf(t)}},{}),XO=On("D",{components:DS});function ey(n,e){return function(){return n.apply(e,arguments)}}const{toString:NS}=Object.prototype,{getPrototypeOf:wh}=Object,gl=(n=>e=>{const t=NS.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Br=n=>(n=n.toLowerCase(),e=>gl(e)===n),ml=n=>e=>typeof e===n,{isArray:ts}=Array,Us=ml("undefined");function FS(n){return n!==null&&!Us(n)&&n.constructor!==null&&!Us(n.constructor)&&wr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ty=Br("ArrayBuffer");function PS(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ty(n.buffer),e}const HS=ml("string"),wr=ml("function"),ny=ml("number"),yl=n=>n!==null&&typeof n=="object",WS=n=>n===!0||n===!1,wl=n=>{if(gl(n)!=="object")return!1;const e=wh(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},BS=Br("Date"),jS=Br("File"),zS=Br("Blob"),US=Br("FileList"),VS=n=>yl(n)&&wr(n.pipe),qS=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||wr(n.append)&&((e=gl(n))==="formdata"||e==="object"&&wr(n.toString)&&n.toString()==="[object FormData]"))},GS=Br("URLSearchParams"),[YS,KS,QS,ZS]=["ReadableStream","Request","Response","Headers"].map(Br),JS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,h;if(typeof n!="object"&&(n=[n]),ts(n))for(r=0,h=n.length;r<h;r++)e.call(null,n[r],r,n);else{const u=t?Object.getOwnPropertyNames(n):Object.keys(n),p=u.length;let w;for(r=0;r<p;r++)w=u[r],e.call(null,n[w],w,n)}}function ry(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,h;for(;r-- >0;)if(h=t[r],e===h.toLowerCase())return h;return null}const wo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iy=n=>!Us(n)&&n!==wo;function vh(){const{caseless:n}=iy(this)&&this||{},e={},t=(r,h)=>{const u=n&&ry(e,h)||h;wl(e[u])&&wl(r)?e[u]=vh(e[u],r):wl(r)?e[u]=vh({},r):ts(r)?e[u]=r.slice():e[u]=r};for(let r=0,h=arguments.length;r<h;r++)arguments[r]&&Vs(arguments[r],t);return e}const XS=(n,e,t,{allOwnKeys:r}={})=>(Vs(e,(h,u)=>{t&&wr(h)?n[u]=ey(h,t):n[u]=h},{allOwnKeys:r}),n),e$=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),t$=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},n$=(n,e,t,r)=>{let h,u,p;const w={};if(e=e||{},n==null)return e;do{for(h=Object.getOwnPropertyNames(n),u=h.length;u-- >0;)p=h[u],(!r||r(p,n,e))&&!w[p]&&(e[p]=n[p],w[p]=!0);n=t!==!1&&wh(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},r$=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},i$=n=>{if(!n)return null;if(ts(n))return n;let e=n.length;if(!ny(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},o$=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&wh(Uint8Array)),s$=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const h=r.value;e.call(n,h[0],h[1])}},a$=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},l$=Br("HTMLFormElement"),c$=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),oy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),u$=Br("RegExp"),sy=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Vs(t,(h,u)=>{let p;(p=e(h,u,n))!==!1&&(r[u]=p||h)}),Object.defineProperties(n,r)},h$=n=>{sy(n,(e,t)=>{if(wr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(wr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},d$=(n,e)=>{const t={},r=h=>{h.forEach(u=>{t[u]=!0})};return ts(n)?r(n):r(String(n).split(e)),t},f$=()=>{},p$=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,bh="abcdefghijklmnopqrstuvwxyz",ay="0123456789",ly={DIGIT:ay,ALPHA:bh,ALPHA_DIGIT:bh+bh.toUpperCase()+ay},g$=(n=16,e=ly.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function m$(n){return!!(n&&wr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const y$=n=>{const e=new Array(10),t=(r,h)=>{if(yl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[h]=r;const u=ts(r)?[]:{};return Vs(r,(p,w)=>{const d=t(p,h+1);!Us(d)&&(u[w]=d)}),e[h]=void 0,u}}return r};return t(n,0)},w$=Br("AsyncFunction"),v$=n=>n&&(yl(n)||wr(n))&&wr(n.then)&&wr(n.catch),cy=((n,e)=>n?setImmediate:e?((t,r)=>(wo.addEventListener("message",({source:h,data:u})=>{h===wo&&u===t&&r.length&&r.shift()()},!1),h=>{r.push(h),wo.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",wr(wo.postMessage)),b$=typeof queueMicrotask<"u"?queueMicrotask.bind(wo):typeof process<"u"&&process.nextTick||cy,he={isArray:ts,isArrayBuffer:ty,isBuffer:FS,isFormData:qS,isArrayBufferView:PS,isString:HS,isNumber:ny,isBoolean:WS,isObject:yl,isPlainObject:wl,isReadableStream:YS,isRequest:KS,isResponse:QS,isHeaders:ZS,isUndefined:Us,isDate:BS,isFile:jS,isBlob:zS,isRegExp:u$,isFunction:wr,isStream:VS,isURLSearchParams:GS,isTypedArray:o$,isFileList:US,forEach:Vs,merge:vh,extend:XS,trim:JS,stripBOM:e$,inherits:t$,toFlatObject:n$,kindOf:gl,kindOfTest:Br,endsWith:r$,toArray:i$,forEachEntry:s$,matchAll:a$,isHTMLForm:l$,hasOwnProperty:oy,hasOwnProp:oy,reduceDescriptors:sy,freezeMethods:h$,toObjectSet:d$,toCamelCase:c$,noop:f$,toFiniteNumber:p$,findKey:ry,global:wo,isContextDefined:iy,ALPHABET:ly,generateString:g$,isSpecCompliantForm:m$,toJSONObject:y$,isAsyncFn:w$,isThenable:v$,setImmediate:cy,asap:b$};function it(n,e,t,r,h){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),h&&(this.response=h,this.status=h.status?h.status:null)}he.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const uy=it.prototype,hy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{hy[n]={value:n}}),Object.defineProperties(it,hy),Object.defineProperty(uy,"isAxiosError",{value:!0}),it.from=(n,e,t,r,h,u)=>{const p=Object.create(uy);return he.toFlatObject(n,p,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),it.call(p,n.message,e,t,r,h),p.cause=n,p.name=n.name,u&&Object.assign(p,u),p};const x$=null;function xh(n){return he.isPlainObject(n)||he.isArray(n)}function dy(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function fy(n,e,t){return n?n.concat(e).map(function(r,h){return r=dy(r),!t&&h?"["+r+"]":r}).join(t?".":""):e}function _$(n){return he.isArray(n)&&!n.some(xh)}const k$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function vl(n,e,t){if(!he.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=he.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const r=t.metaTokens,h=t.visitor||g,u=t.dots,p=t.indexes,w=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(h))throw new TypeError("visitor must be a function");function d(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!w&&he.isBlob(l))throw new it("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,f){let y=l;if(l&&!f&&typeof l=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&_$(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(y=he.toArray(l)))return o=dy(o),y.forEach(function(v,x){!(he.isUndefined(v)||v===null)&&e.append(p===!0?fy([o],x,u):p===null?o:o+"[]",d(v))}),!1}return xh(l)?!0:(e.append(fy(f,o,u),d(l)),!1)}const s=[],c=Object.assign(k$,{defaultVisitor:g,convertValue:d,isVisitable:xh});function a(l,o){if(!he.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),he.forEach(l,function(f,y){(!(he.isUndefined(f)||f===null)&&h.call(e,f,he.isString(y)?y.trim():y,o,c))===!0&&a(f,o?o.concat(y):[y])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),e}function py(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function _h(n,e){this._pairs=[],n&&vl(n,this,e)}const gy=_h.prototype;gy.append=function(n,e){this._pairs.push([n,e])},gy.toString=function(n){const e=n?function(t){return n.call(this,t,py)}:py;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function S$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function my(n,e,t){if(!e)return n;const r=t&&t.encode||S$;he.isFunction(t)&&(t={serialize:t});const h=t&&t.serialize;let u;if(h?u=h(e,t):u=he.isURLSearchParams(e)?e.toString():new _h(e,t).toString(r),u){const p=n.indexOf("#");p!==-1&&(n=n.slice(0,p)),n+=(n.indexOf("?")===-1?"?":"&")+u}return n}let yy=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(t){t!==null&&e(t)})}};const wy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$$=typeof URLSearchParams<"u"?URLSearchParams:_h,A$=typeof FormData<"u"?FormData:null,C$=typeof Blob<"u"?Blob:null,T$={isBrowser:!0,classes:{URLSearchParams:$$,FormData:A$,Blob:C$},protocols:["http","https","file","blob","url","data"]},kh=typeof window<"u"&&typeof document<"u",Sh=typeof navigator=="object"&&navigator||void 0,E$=kh&&(!Sh||["ReactNative","NativeScript","NS"].indexOf(Sh.product)<0),R$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",M$=kh&&window.location.href||"http://localhost",L$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kh,hasStandardBrowserEnv:E$,hasStandardBrowserWebWorkerEnv:R$,navigator:Sh,origin:M$},Symbol.toStringTag,{value:"Module"})),zn={...L$,...T$};function I$(n,e){return vl(n,new zn.classes.URLSearchParams,Object.assign({visitor:function(t,r,h,u){return zn.isNode&&he.isBuffer(t)?(this.append(r,t.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},e))}function O$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function D$(n){const e={},t=Object.keys(n);let r;const h=t.length;let u;for(r=0;r<h;r++)u=t[r],e[u]=n[u];return e}function vy(n){function e(t,r,h,u){let p=t[u++];if(p==="__proto__")return!0;const w=Number.isFinite(+p),d=u>=t.length;return p=!p&&he.isArray(h)?h.length:p,d?(he.hasOwnProp(h,p)?h[p]=[h[p],r]:h[p]=r,!w):((!h[p]||!he.isObject(h[p]))&&(h[p]=[]),e(t,r,h[p],u)&&he.isArray(h[p])&&(h[p]=D$(h[p])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const t={};return he.forEachEntry(n,(r,h)=>{e(O$(r),h,t,0)}),t}return null}function N$(n,e,t){if(he.isString(n))try{return(e||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const qs={transitional:wy,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,h=he.isObject(n);if(h&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(vy(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let u;if(h){if(t.indexOf("application/x-www-form-urlencoded")>-1)return I$(n,this.formSerializer).toString();if((u=he.isFileList(n))||t.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return vl(u?{"files[]":n}:n,p&&new p,this.formSerializer)}}return h||r?(e.setContentType("application/json",!1),N$(n)):n}],transformResponse:[function(n){const e=this.transitional||qs.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(t&&!this.responseType||r)){const h=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(u){if(h)throw u.name==="SyntaxError"?it.from(u,it.ERR_BAD_RESPONSE,this,null,this.response):u}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zn.classes.FormData,Blob:zn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{qs.headers[n]={}});const F$=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),P$=n=>{const e={};let t,r,h;return n&&n.split(`
|
1409
|
+
`).forEach(function(u){h=u.indexOf(":"),t=u.substring(0,h).trim().toLowerCase(),r=u.substring(h+1).trim(),!(!t||e[t]&&F$[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},by=Symbol("internals");function Gs(n){return n&&String(n).trim().toLowerCase()}function bl(n){return n===!1||n==null?n:he.isArray(n)?n.map(bl):String(n)}function H$(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const W$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function $h(n,e,t,r,h){if(he.isFunction(r))return r.call(this,e,t);if(h&&(e=t),!!he.isString(e)){if(he.isString(r))return e.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(e)}}function B$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function j$(n,e){const t=he.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(h,u,p){return this[r].call(this,e,h,u,p)},configurable:!0})})}let or=class{constructor(e){e&&this.set(e)}set(e,t,r){const h=this;function u(w,d,g){const s=Gs(d);if(!s)throw new Error("header name must be a non-empty string");const c=he.findKey(h,s);(!c||h[c]===void 0||g===!0||g===void 0&&h[c]!==!1)&&(h[c||d]=bl(w))}const p=(w,d)=>he.forEach(w,(g,s)=>u(g,s,d));if(he.isPlainObject(e)||e instanceof this.constructor)p(e,t);else if(he.isString(e)&&(e=e.trim())&&!W$(e))p(P$(e),t);else if(he.isHeaders(e))for(const[w,d]of e.entries())u(d,w,r);else e!=null&&u(t,e,r);return this}get(e,t){if(e=Gs(e),e){const r=he.findKey(this,e);if(r){const h=this[r];if(!t)return h;if(t===!0)return H$(h);if(he.isFunction(t))return t.call(this,h,r);if(he.isRegExp(t))return t.exec(h);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Gs(e),e){const r=he.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||$h(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let h=!1;function u(p){if(p=Gs(p),p){const w=he.findKey(r,p);w&&(!t||$h(r,r[w],w,t))&&(delete r[w],h=!0)}}return he.isArray(e)?e.forEach(u):u(e),h}clear(e){const t=Object.keys(this);let r=t.length,h=!1;for(;r--;){const u=t[r];(!e||$h(this,this[u],u,e,!0))&&(delete this[u],h=!0)}return h}normalize(e){const t=this,r={};return he.forEach(this,(h,u)=>{const p=he.findKey(r,u);if(p){t[p]=bl(h),delete t[u];return}const w=e?B$(u):String(u).trim();w!==u&&delete t[u],t[w]=bl(h),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(r,h)=>{r!=null&&r!==!1&&(t[h]=e&&he.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
1410
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(h=>r.set(h)),r}static accessor(e){const t=(this[by]=this[by]={accessors:{}}).accessors,r=this.prototype;function h(u){const p=Gs(u);t[p]||(j$(r,u),t[p]=!0)}return he.isArray(e)?e.forEach(h):h(e),this}};or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(or.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),he.freezeMethods(or);function Ah(n,e){const t=this||qs,r=e||t,h=or.from(r.headers);let u=r.data;return he.forEach(n,function(p){u=p.call(t,u,h.normalize(),e?e.status:void 0)}),h.normalize(),u}function xy(n){return!!(n&&n.__CANCEL__)}function ns(n,e,t){it.call(this,n??"canceled",it.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits(ns,it,{__CANCEL__:!0});function _y(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new it("Request failed with status code "+t.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function z$(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function U$(n,e){n=n||10;const t=new Array(n),r=new Array(n);let h=0,u=0,p;return e=e!==void 0?e:1e3,function(w){const d=Date.now(),g=r[u];p||(p=d),t[h]=w,r[h]=d;let s=u,c=0;for(;s!==h;)c+=t[s++],s=s%n;if(h=(h+1)%n,h===u&&(u=(u+1)%n),d-p<e)return;const a=g&&d-g;return a?Math.round(c*1e3/a):void 0}}function V$(n,e){let t=0,r=1e3/e,h,u;const p=(w,d=Date.now())=>{t=d,h=null,u&&(clearTimeout(u),u=null),n.apply(null,w)};return[(...w)=>{const d=Date.now(),g=d-t;g>=r?p(w,d):(h=w,u||(u=setTimeout(()=>{u=null,p(h)},r-g)))},()=>h&&p(h)]}const xl=(n,e,t=3)=>{let r=0;const h=U$(50,250);return V$(u=>{const p=u.loaded,w=u.lengthComputable?u.total:void 0,d=p-r,g=h(d),s=p<=w;r=p;const c={loaded:p,total:w,progress:w?p/w:void 0,bytes:d,rate:g||void 0,estimated:g&&w&&s?(w-p)/g:void 0,event:u,lengthComputable:w!=null,[e?"download":"upload"]:!0};n(c)},t)},ky=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Sy=n=>(...e)=>he.asap(()=>n(...e)),q$=zn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,zn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(zn.origin),zn.navigator&&/(msie|trident)/i.test(zn.navigator.userAgent)):()=>!0,G$=zn.hasStandardBrowserEnv?{write(n,e,t,r,h,u){const p=[n+"="+encodeURIComponent(e)];he.isNumber(t)&&p.push("expires="+new Date(t).toGMTString()),he.isString(r)&&p.push("path="+r),he.isString(h)&&p.push("domain="+h),u===!0&&p.push("secure"),document.cookie=p.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Y$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function K$(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function $y(n,e){return n&&!Y$(e)?K$(n,e):e}const Ay=n=>n instanceof or?{...n}:n;function vo(n,e){e=e||{};const t={};function r(g,s,c,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function h(g,s,c,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g,c,a)}else return r(g,s,c,a)}function u(g,s){if(!he.isUndefined(s))return r(void 0,s)}function p(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,c){if(c in e)return r(g,s);if(c in n)return r(void 0,g)}const d={url:u,method:u,data:u,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,responseEncoding:p,validateStatus:w,headers:(g,s,c)=>h(Ay(g),Ay(s),c,!0)};return he.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||h,c=s(n[g],e[g],g);he.isUndefined(c)&&s!==w||(t[g]=c)}),t}const Cy=n=>{const e=vo({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:h,xsrfCookieName:u,headers:p,auth:w}=e;e.headers=p=or.from(p),e.url=my($y(e.baseURL,e.url),n.params,n.paramsSerializer),w&&p.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let d;if(he.isFormData(t)){if(zn.hasStandardBrowserEnv||zn.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((d=p.getContentType())!==!1){const[g,...s]=d?d.split(";").map(c=>c.trim()).filter(Boolean):[];p.setContentType([g||"multipart/form-data",...s].join("; "))}}if(zn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(e)),r||r!==!1&&q$(e.url))){const g=h&&u&&G$.read(u);g&&p.set(h,g)}return e},Q$=typeof XMLHttpRequest<"u",Z$=Q$&&function(n){return new Promise(function(e,t){const r=Cy(n);let h=r.data;const u=or.from(r.headers).normalize();let{responseType:p,onUploadProgress:w,onDownloadProgress:d}=r,g,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function y(){if(!f)return;const x=or.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),M={data:!p||p==="text"||p==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:n,request:f};_y(function(A){e(A),o()},function(A){t(A),o()},M),f=null}"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(t(new it("Request aborted",it.ECONNABORTED,n,f)),f=null)},f.onerror=function(){t(new it("Network Error",it.ERR_NETWORK,n,f)),f=null},f.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||wy;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new it(x,M.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,f)),f=null},h===void 0&&u.setContentType(null),"setRequestHeader"in f&&he.forEach(u.toJSON(),function(x,M){f.setRequestHeader(M,x)}),he.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),p&&p!=="json"&&(f.responseType=r.responseType),d&&([c,l]=xl(d,!0),f.addEventListener("progress",c)),w&&f.upload&&([s,a]=xl(w),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{f&&(t(!x||x.type?new ns(null,n,f):x),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const v=z$(r.url);if(v&&zn.protocols.indexOf(v)===-1){t(new it("Unsupported protocol "+v+":",it.ERR_BAD_REQUEST,n));return}f.send(h||null)})},J$=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,h;const u=function(g){if(!h){h=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof it?s:new ns(s instanceof Error?s.message:s))}};let p=e&&setTimeout(()=>{p=null,u(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const w=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),n=null)};n.forEach(g=>g.addEventListener("abort",u));const{signal:d}=r;return d.unsubscribe=()=>he.asap(w),d}},X$=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,h;for(;r<t;)h=r+e,yield n.slice(r,h),r=h},eA=async function*(n,e){for await(const t of tA(n))yield*X$(t,e)},tA=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ty=(n,e,t,r)=>{const h=eA(n,e);let u=0,p,w=d=>{p||(p=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await h.next();if(g){w(),d.close();return}let c=s.byteLength;if(t){let a=u+=c;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(d){return w(d),h.return()}},{highWaterMark:2})},_l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ey=_l&&typeof ReadableStream=="function",nA=_l&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Ry=(n,...e)=>{try{return!!n(...e)}catch{return!1}},rA=Ey&&Ry(()=>{let n=!1;const e=new Request(zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),My=64*1024,Ch=Ey&&Ry(()=>he.isReadableStream(new Response("").body)),kl={stream:Ch&&(n=>n.body)};_l&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kl[e]&&(kl[e]=he.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const iA=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(zn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await nA(n)).byteLength},oA=async(n,e)=>he.toFiniteNumber(n.getContentLength())??iA(e),sA=_l&&(async n=>{let{url:e,method:t,data:r,signal:h,cancelToken:u,timeout:p,onDownloadProgress:w,onUploadProgress:d,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=Cy(n);g=g?(g+"").toLowerCase():"text";let l=J$([h,u&&u.toAbortSignal()],p),o;const f=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let y;try{if(d&&rA&&t!=="get"&&t!=="head"&&(y=await oA(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(he.isFormData(r)&&(b=k.headers.get("content-type"))&&s.setContentType(b),k.body){const[T,R]=ky(y,xl(Sy(d)));r=Ty(k.body,My,T,R)}}he.isString(c)||(c=c?"include":"omit");const v="credentials"in Request.prototype;o=new Request(e,{...a,signal:l,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:v?c:void 0});let x=await fetch(o);const M=Ch&&(g==="stream"||g==="response");if(Ch&&(w||M&&f)){const k={};["status","statusText","headers"].forEach(L=>{k[L]=x[L]});const b=he.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&ky(b,xl(Sy(w),!0))||[];x=new Response(Ty(x.body,My,T,()=>{R&&R(),f&&f()}),k)}g=g||"text";let A=await kl[he.findKey(kl,g)||"text"](x,n);return!M&&f&&f(),await new Promise((k,b)=>{_y(k,b,{data:A,headers:or.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(v){throw f&&f(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,n,o),{cause:v.cause||v}):it.from(v,v&&v.code,n,o)}}),Th={http:x$,xhr:Z$,fetch:sA};he.forEach(Th,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ly=n=>`- ${n}`,aA=n=>he.isFunction(n)||n===null||n===!1,Iy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:e}=n;let t,r;const h={};for(let u=0;u<e;u++){t=n[u];let p;if(r=t,!aA(t)&&(r=Th[(p=String(t)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${p}'`);if(r)break;h[p||"#"+u]=r}if(!r){const u=Object.entries(h).map(([w,d])=>`adapter ${w} `+(d===!1?"is not supported by the environment":"is not available in the build"));let p=e?u.length>1?`since :
|
1411
|
+
`+u.map(Ly).join(`
|
1412
|
+
`):" "+Ly(u[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:Th};function Eh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ns(null,n)}function Oy(n){return Eh(n),n.headers=or.from(n.headers),n.data=Ah.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Iy.getAdapter(n.adapter||qs.adapter)(n).then(function(e){return Eh(n),e.data=Ah.call(n,n.transformResponse,e),e.headers=or.from(e.headers),e},function(e){return xy(e)||(Eh(n),e&&e.response&&(e.response.data=Ah.call(n,n.transformResponse,e.response),e.response.headers=or.from(e.response.headers))),Promise.reject(e)})}const Dy="1.7.9",Sl={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Sl[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Ny={};Sl.transitional=function(n,e,t){function r(h,u){return"[Axios v"+Dy+"] Transitional option '"+h+"'"+u+(t?". "+t:"")}return(h,u,p)=>{if(n===!1)throw new it(r(u," has been removed"+(e?" in "+e:"")),it.ERR_DEPRECATED);return e&&!Ny[u]&&(Ny[u]=!0,console.warn(r(u," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(h,u,p):!0}},Sl.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function lA(n,e,t){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let h=r.length;for(;h-- >0;){const u=r[h],p=e[u];if(p){const w=n[u],d=w===void 0||p(w,u,n);if(d!==!0)throw new it("option "+u+" must be "+d,it.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new it("Unknown option "+u,it.ERR_BAD_OPTION)}}const $l={assertOptions:lA,validators:Sl},Zr=$l.validators;let bo=class{constructor(e){this.defaults=e,this.interceptors={request:new yy,response:new yy}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let h={};Error.captureStackTrace?Error.captureStackTrace(h):h=new Error;const u=h.stack?h.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1413
|
+
`+u):r.stack=u}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=vo(this.defaults,t);const{transitional:r,paramsSerializer:h,headers:u}=t;r!==void 0&&$l.assertOptions(r,{silentJSONParsing:Zr.transitional(Zr.boolean),forcedJSONParsing:Zr.transitional(Zr.boolean),clarifyTimeoutError:Zr.transitional(Zr.boolean)},!1),h!=null&&(he.isFunction(h)?t.paramsSerializer={serialize:h}:$l.assertOptions(h,{encode:Zr.function,serialize:Zr.function},!0)),$l.assertOptions(t,{baseUrl:Zr.spelling("baseURL"),withXsrfToken:Zr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=u&&he.merge(u.common,u[t.method]);u&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete u[o]}),t.headers=or.concat(p,u);const w=[];let d=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(d=d&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!d){const o=[Oy.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(t);c<a;)s=s.then(o[c++],o[c++]);return s}a=w.length;let l=t;for(c=0;c<a;){const o=w[c++],f=w[c++];try{l=o(l)}catch(y){f.call(this,y);break}}try{s=Oy.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=g.length;c<a;)s=s.then(g[c++],g[c++]);return s}getUri(e){e=vo(this.defaults,e);const t=$y(e.baseURL,e.url);return my(t,e.params,e.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){bo.prototype[n]=function(e,t){return this.request(vo(t||{},{method:n,url:e,data:(t||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function e(t){return function(r,h,u){return this.request(vo(u||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:h}))}}bo.prototype[n]=e(),bo.prototype[n+"Form"]=e(!0)});let cA=class Av{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(h){t=h});const r=this;this.promise.then(h=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](h);r._listeners=null}),this.promise.then=h=>{let u;const p=new Promise(w=>{r.subscribe(w),u=w}).then(h);return p.cancel=function(){r.unsubscribe(u)},p},e(function(h,u,p){r.reason||(r.reason=new ns(h,u,p),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Av(function(t){e=t}),cancel:e}}};function uA(n){return function(e){return n.apply(null,e)}}function hA(n){return he.isObject(n)&&n.isAxiosError===!0}const Rh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rh).forEach(([n,e])=>{Rh[e]=n});function Fy(n){const e=new bo(n),t=ey(bo.prototype.request,e);return he.extend(t,bo.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Fy(vo(n,r))},t}const dn=On("E",Fy(qs));dn.Axios=bo,dn.CanceledError=ns,dn.CancelToken=cA,dn.isCancel=xy,dn.VERSION=Dy,dn.toFormData=vl,dn.AxiosError=it,dn.Cancel=dn.CanceledError,dn.all=function(n){return Promise.all(n)},dn.spread=uA,dn.isAxiosError=hA,dn.mergeConfig=vo,dn.AxiosHeaders=or,dn.formToJSON=n=>vy(he.isHTMLForm(n)?new FormData(n):n),dn.getAdapter=Iy.getAdapter,dn.HttpStatusCode=Rh,dn.default=dn;const{Axios:eD,AxiosError:tD,CanceledError:nD,isCancel:rD,CancelToken:iD,VERSION:oD,all:sD,Cancel:aD,isAxiosError:lD,spread:cD,toFormData:uD,AxiosHeaders:hD,HttpStatusCode:dD,formToJSON:fD,getAdapter:pD,mergeConfig:gD}=dn;function Py(){return Object.assign({},Po())}function dA(n,e,t){const r=Qt(n,void 0);return r.setTime(r.getTime()+e*Fa),r}function fA(n,e){const t=()=>wn(void 0,NaN),r=yA(n);let h;if(r.date){const d=wA(r.date,2);h=vA(d.restDateString,d.year)}if(!h||isNaN(+h))return t();const u=+h;let p=0,w;if(r.time&&(p=bA(r.time),isNaN(p)))return t();if(r.timezone){if(w=xA(r.timezone),isNaN(w))return t()}else{const d=new Date(u+p),g=Qt(0,void 0);return g.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),g.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),g}return Qt(u+p+w,void 0)}const Al={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},pA=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,gA=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,mA=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yA(n){const e={},t=n.split(Al.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],Al.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Al.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const h=Al.timezone.exec(r);h?(e.time=r.replace(h[1],""),e.timezone=h[1]):e.time=r}return e}function wA(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const h=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:u===null?h:u*100,restDateString:n.slice((r[1]||r[2]).length)}}function vA(n,e){if(e===null)return new Date(NaN);const t=n.match(pA);if(!t)return new Date(NaN);const r=!!t[4],h=Ys(t[1]),u=Ys(t[2])-1,p=Ys(t[3]),w=Ys(t[4]),d=Ys(t[5])-1;if(r)return AA(e,w,d)?_A(e,w,d):new Date(NaN);{const g=new Date(0);return!SA(e,u,p)||!$A(e,h)?new Date(NaN):(g.setUTCFullYear(e,u,Math.max(h,p)),g)}}function Ys(n){return n?parseInt(n):1}function bA(n){const e=n.match(gA);if(!e)return NaN;const t=Mh(e[1]),r=Mh(e[2]),h=Mh(e[3]);return CA(t,r,h)?t*Wc+r*Fa+h*1e3:NaN}function Mh(n){return n&&parseFloat(n.replace(",","."))||0}function xA(n){if(n==="Z")return 0;const e=n.match(mA);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),h=e[3]&&parseInt(e[3])||0;return TA(r,h)?t*(r*Wc+h*Fa):NaN}function _A(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const h=r.getUTCDay()||7,u=(e-1)*7+t+1-h;return r.setUTCDate(r.getUTCDate()+u),r}const kA=[31,null,31,30,31,30,31,31,30,31,30,31];function Hy(n){return n%400===0||n%4===0&&n%100!==0}function SA(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(kA[e]||(Hy(n)?29:28))}function $A(n,e){return e>=1&&e<=(Hy(n)?366:365)}function AA(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function CA(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function TA(n,e){return e>=0&&e<=59}function EA(n,e,t){return dA(n,-e)}function Wy(n,e,t){const r=Py(),h=LA(n,t.timeZone,t.locale??r.locale);return"formatToParts"in h?RA(h,e):MA(h,e)}function RA(n,e){const t=n.formatToParts(e);for(let r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function MA(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function LA(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function IA(n,e){const t=PA(e);return"formatToParts"in t?DA(t,n):NA(t,n)}const OA={year:0,month:1,day:2,hour:3,minute:4,second:5};function DA(n,e){try{const t=n.formatToParts(e),r=[];for(let h=0;h<t.length;h++){const u=OA[t[h].type];u!==void 0&&(r[u]=parseInt(t[h].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function NA(n,e){const t=n.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);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 Lh={},By=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")),FA=By==="06/25/2014, 00:00:00"||By==="06/25/2014 00:00:00";function PA(n){return Lh[n]||(Lh[n]=FA?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Lh[n]}function jy(n,e,t,r,h,u,p){const w=new Date(0);return w.setUTCFullYear(n,e,t),w.setUTCHours(r,h,u,p),w}const zy=36e5,HA=6e4,Ih={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Oh(n,e,t){if(!n)return 0;let r=Ih.timezoneZ.exec(n);if(r)return 0;let h,u;if(r=Ih.timezoneHH.exec(n),r)return h=parseInt(r[1],10),Uy(h)?-(h*zy):NaN;if(r=Ih.timezoneHHMM.exec(n),r){h=parseInt(r[2],10);const p=parseInt(r[3],10);return Uy(h,p)?(u=Math.abs(h)*zy+p*HA,r[1]==="+"?-u:u):NaN}if(jA(n)){e=new Date(e||Date.now());const p=t?e:WA(e),w=Dh(p,n);return-(t?w:BA(e,w,n))}return NaN}function WA(n){return jy(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Dh(n,e){const t=IA(n,e),r=jy(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let h=n.getTime();const u=h%1e3;return h-=u>=0?u:1e3+u,r-h}function BA(n,e,t){let r=n.getTime()-e;const h=Dh(new Date(r),t);if(e===h)return e;r-=h-e;const u=Dh(new Date(r),t);return h===u?h:Math.max(h,u)}function Uy(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const Vy={};function jA(n){if(Vy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Vy[n]=!0,!0}catch{return!1}}const zA=60*1e3,UA={X:function(n,e,t){const r=Nh(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return qy(r);case"XXXX":case"XX":return rs(r);case"XXXXX":case"XXX":default:return rs(r,":")}},x:function(n,e,t){const r=Nh(t.timeZone,n);switch(e){case"x":return qy(r);case"xxxx":case"xx":return rs(r);case"xxxxx":case"xxx":default:return rs(r,":")}},O:function(n,e,t){const r=Nh(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+VA(r,":");case"OOOO":default:return"GMT"+rs(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return Wy("short",n,t);case"zzzz":default:return Wy("long",n,t)}}};function Nh(n,e){const t=n?Oh(n,e,!0)/zA:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Cl(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function rs(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),h=Cl(Math.floor(r/60),2),u=Cl(Math.floor(r%60),2);return t+h+e+u}function qy(n,e){return n%60===0?(n>0?"-":"+")+Cl(Math.abs(n)/60,2):rs(n,e)}function VA(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),h=Math.floor(r/60),u=r%60;return u===0?t+String(h):t+String(h)+e+Cl(u,2)}function Gy(n){const e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+n-+e}const qA=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Fh=36e5,Yy=6e4,GA=2,Zn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:qA};function Ky(n,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const t=e.additionalDigits==null?GA:Number(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=YA(n),{year:h,restDateString:u}=KA(r.date,t),p=QA(u,h);if(p===null||isNaN(p.getTime()))return new Date(NaN);if(p){const w=p.getTime();let d=0,g;if(r.time&&(d=ZA(r.time),d===null||isNaN(d)))return new Date(NaN);if(r.timeZone||e.timeZone){if(g=Oh(r.timeZone||e.timeZone,new Date(w+d)),isNaN(g))return new Date(NaN)}else g=Gy(new Date(w+d)),g=Gy(new Date(w+d+g));return new Date(w+d+g)}else return new Date(NaN)}function YA(n){const e={};let t=Zn.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=Zn.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const h=Zn.timeZone.exec(r);h?(e.time=r.replace(h[1],""),e.timeZone=h[1].trim()):e.time=r}return e}function KA(n,e){if(n){const t=Zn.YYY[e],r=Zn.YYYYY[e];let h=Zn.YYYY.exec(n)||r.exec(n);if(h){const u=h[1];return{year:parseInt(u,10),restDateString:n.slice(u.length)}}if(h=Zn.YY.exec(n)||t.exec(n),h){const u=h[1];return{year:parseInt(u,10)*100,restDateString:n.slice(u.length)}}}return{year:null}}function QA(n,e){if(e===null)return null;let t,r,h;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let u=Zn.MM.exec(n);if(u)return t=new Date(0),r=parseInt(u[1],10)-1,Jy(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(u=Zn.DDD.exec(n),u){t=new Date(0);const p=parseInt(u[1],10);return eC(e,p)?(t.setUTCFullYear(e,0,p),t):new Date(NaN)}if(u=Zn.MMDD.exec(n),u){t=new Date(0),r=parseInt(u[1],10)-1;const p=parseInt(u[2],10);return Jy(e,r,p)?(t.setUTCFullYear(e,r,p),t):new Date(NaN)}if(u=Zn.Www.exec(n),u)return h=parseInt(u[1],10)-1,Xy(h)?Qy(e,h):new Date(NaN);if(u=Zn.WwwD.exec(n),u){h=parseInt(u[1],10)-1;const p=parseInt(u[2],10)-1;return Xy(h,p)?Qy(e,h,p):new Date(NaN)}return null}function ZA(n){let e,t,r=Zn.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Ph(e)?e%24*Fh:NaN;if(r=Zn.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Ph(e,t)?e%24*Fh+t*Yy:NaN;if(r=Zn.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const h=parseFloat(r[3].replace(",","."));return Ph(e,t,h)?e%24*Fh+t*Yy+h*1e3:NaN}return null}function Qy(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const h=r.getUTCDay()||7,u=e*7+t+1-h;return r.setUTCDate(r.getUTCDate()+u),r}const JA=[31,28,31,30,31,30,31,31,30,31,30,31],XA=[31,29,31,30,31,30,31,31,30,31,30,31];function Zy(n){return n%400===0||n%4===0&&n%100!==0}function Jy(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=Zy(n);if(r&&t>XA[e]||!r&&t>JA[e])return!1}return!0}function eC(n,e){if(e<1)return!1;const t=Zy(n);return!(t&&e>366||!t&&e>365)}function Xy(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Ph(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const tC=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function nC(n,e,t={}){e=String(e);const r=e.match(tC);if(r){const h=Ky(t.originalDate||n,t);e=r.reduce(function(u,p){if(p[0]==="'")return u;const w=u.indexOf(p),d=u[w-1]==="'",g=u.replace(p,"'"+UA[p[0]](h,p,t)+"'");return d?g.substring(0,w-1)+g.substring(w+1):g},e)}return io(n,e,t)}function rC(n,e,t){n=Ky(n,t);const r=Oh(e,n,!0),h=new Date(n.getTime()-r),u=new Date(0);return u.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),u.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),u}function Hh(n,e,t,r){return r={...r,timeZone:e,originalDate:n},nC(rC(n,e,{timeZone:r.timeZone}),t,r)}const Wh="yyyy-MM-dd",ew="HH:mm:ss.SSS",iC="HH:mm:ss",Tl=`${Wh} ${ew}`,mD=On("P",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return io(!e||e==="local"?EA(n,n.getTimezoneOffset()):n,Tl)},formatDateTime(n,e){return!e||e==="local"?io(n,Tl):Hh(n,e,Tl)},formatDate:function(n,e){return!e||e==="local"?io(n,Wh):Hh(n,this.timeZone,Wh)},formatTime:function(n,e,t=ew){return!e||e==="local"?io(n,t):Hh(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,iC)},formatTimestamp(n,e){return this.formatDateTime(fA(n),e)},formatSeconds(n,e){return this.formatDateTime(new Date(n*1e3),e)},formatNanoseconds(n,e){return this.formatDateTime(new Date(parseInt(n)/1e6),e)}}});var oC=Object.defineProperty,sC=(n,e,t)=>e in n?oC(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Oe=(n,e,t)=>sC(n,typeof e!="symbol"?e+"":e,t);function Bh(n,e,t){const r=Qt(n,t==null?void 0:t.in);return isNaN(e)?wn((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function aC(n,e){const t=Qt(n,void 0).getDay();return t===0?7:t}function lC(n,e){const t=cC(e)?new e(0):wn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function cC(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const uC=10;let tw=class{constructor(){Oe(this,"subPriority",0)}validate(e,t){return!0}},hC=class extends tw{constructor(e,t,r,h,u){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=h,u&&(this.subPriority=u)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},dC=class extends tw{constructor(e,t){super(),Oe(this,"priority",uC),Oe(this,"subPriority",-1),this.context=e||(r=>wn(t,r))}set(e,t){return t.timestampIsSet?e:wn(e,lC(e,this.context))}};class At{run(e,t,r,h){const u=this.parse(e,t,r,h);return u?{setter:new hC(u.value,this.validate,this.set,this.priority,this.subPriority),rest:u.rest}:null}validate(e,t,r){return!0}}let fC=class extends At{constructor(){super(...arguments),Oe(this,"priority",140),Oe(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};const fn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Jr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function pn(n,e){return n&&{value:e(n.value),rest:n.rest}}function en(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Xr(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,h=t[2]?parseInt(t[2],10):0,u=t[3]?parseInt(t[3],10):0,p=t[5]?parseInt(t[5],10):0;return{value:r*(h*Wc+u*Fa+p*Pv),rest:e.slice(t[0].length)}}function nw(n){return en(fn.anyDigitsSigned,n)}function sn(n,e){switch(n){case 1:return en(fn.singleDigit,e);case 2:return en(fn.twoDigits,e);case 3:return en(fn.threeDigits,e);case 4:return en(fn.fourDigits,e);default:return en(new RegExp("^\\d{1,"+n+"}"),e)}}function rw(n,e){switch(n){case 1:return en(fn.singleDigitSigned,e);case 2:return en(fn.twoDigitsSigned,e);case 3:return en(fn.threeDigitsSigned,e);case 4:return en(fn.fourDigitsSigned,e);default:return en(new RegExp("^-?\\d{1,"+n+"}"),e)}}function jh(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function iw(n,e){const t=e>0,r=t?e:1-e;let h;if(r<=50)h=n||100;else{const u=r+50,p=Math.trunc(u/100)*100,w=n>=u%100;h=n+p-(w?100:0)}return t?h:1-h}function ow(n){return n%400===0||n%4===0&&n%100!==0}let pC=class extends At{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const h=u=>({year:u,isTwoDigitYear:t==="yy"});switch(t){case"y":return pn(sn(4,e),h);case"yo":return pn(r.ordinalNumber(e,{unit:"year"}),h);default:return pn(sn(t.length,e),h)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const h=e.getFullYear();if(r.isTwoDigitYear){const p=iw(r.year,h);return e.setFullYear(p,0,1),e.setHours(0,0,0,0),e}const u=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(u,0,1),e.setHours(0,0,0,0),e}},gC=class extends At{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const h=u=>({year:u,isTwoDigitYear:t==="YY"});switch(t){case"Y":return pn(sn(4,e),h);case"Yo":return pn(r.ordinalNumber(e,{unit:"year"}),h);default:return pn(sn(t.length,e),h)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,h){const u=jc(e,h);if(r.isTwoDigitYear){const w=iw(r.year,u);return e.setFullYear(w,0,h.firstWeekContainsDate),e.setHours(0,0,0,0),Ei(e,h)}const p=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(p,0,h.firstWeekContainsDate),e.setHours(0,0,0,0),Ei(e,h)}};class mC extends At{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return rw(t==="R"?4:t.length,e)}set(e,t,r){const h=wn(e,0);return h.setFullYear(r,0,4),h.setHours(0,0,0,0),Ho(h)}}class yC extends At{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return rw(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class wC extends At{constructor(){super(...arguments),Oe(this,"priority",120),Oe(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"Q":case"QQ":return sn(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}let vC=class extends At{constructor(){super(...arguments),Oe(this,"priority",120),Oe(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"q":case"qq":return sn(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};class bC extends At{constructor(){super(...arguments),Oe(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Oe(this,"priority",110)}parse(e,t,r){const h=u=>u-1;switch(t){case"M":return pn(en(fn.month,e),h);case"MM":return pn(sn(2,e),h);case"Mo":return pn(r.ordinalNumber(e,{unit:"month"}),h);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class xC extends At{constructor(){super(...arguments),Oe(this,"priority",110),Oe(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const h=u=>u-1;switch(t){case"L":return pn(en(fn.month,e),h);case"LL":return pn(sn(2,e),h);case"Lo":return pn(r.ordinalNumber(e,{unit:"month"}),h);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}function _C(n,e,t){const r=Qt(n,t==null?void 0:t.in),h=Cf(r,t)-e;return r.setDate(r.getDate()-h*7),Qt(r,t==null?void 0:t.in)}class kC extends At{constructor(){super(...arguments),Oe(this,"priority",100),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return en(fn.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return sn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,h){return Ei(_C(e,r,h),h)}}function SC(n,e,t){const r=Qt(n,void 0),h=Af(r)-e;return r.setDate(r.getDate()-h*7),r}class $C extends At{constructor(){super(...arguments),Oe(this,"priority",100),Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,r){switch(t){case"I":return en(fn.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return sn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return Ho(SC(e,r))}}const AC=[31,28,31,30,31,30,31,31,30,31,30,31],CC=[31,29,31,30,31,30,31,31,30,31,30,31];class TC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"subPriority",1),Oe(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return en(fn.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return sn(t.length,e)}}validate(e,t){const r=e.getFullYear(),h=ow(r),u=e.getMonth();return h?t>=1&&t<=CC[u]:t>=1&&t<=AC[u]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}class EC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"subpriority",1),Oe(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,r){switch(t){case"D":case"DD":return en(fn.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return sn(t.length,e)}}validate(e,t){const r=e.getFullYear();return ow(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}}function zh(n,e,t){var r,h,u,p;const w=Po(),d=(t==null?void 0:t.weekStartsOn)??((h=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:h.weekStartsOn)??w.weekStartsOn??((p=(u=w.locale)==null?void 0:u.options)==null?void 0:p.weekStartsOn)??0,g=Qt(n,t==null?void 0:t.in),s=g.getDay(),c=(e%7+7)%7,a=7-d,l=e<0||e>6?e-(s+a)%7:(c+a)%7-(s+a)%7;return Bh(g,l,t)}class RC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,h){return e=zh(e,r,h),e.setHours(0,0,0,0),e}}class MC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,h){const u=p=>{const w=Math.floor((p-1)/7)*7;return(p+h.weekStartsOn+6)%7+w};switch(t){case"e":case"ee":return pn(sn(t.length,e),u);case"eo":return pn(r.ordinalNumber(e,{unit:"day"}),u);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,h){return e=zh(e,r,h),e.setHours(0,0,0,0),e}}class LC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,h){const u=p=>{const w=Math.floor((p-1)/7)*7;return(p+h.weekStartsOn+6)%7+w};switch(t){case"c":case"cc":return pn(sn(t.length,e),u);case"co":return pn(r.ordinalNumber(e,{unit:"day"}),u);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,h){return e=zh(e,r,h),e.setHours(0,0,0,0),e}}function IC(n,e,t){const r=Qt(n,void 0),h=aC(r),u=e-h;return Bh(r,u,t)}class OC extends At{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const h=u=>u===0?7:u;switch(t){case"i":case"ii":return sn(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return pn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),h);case"iiiii":return pn(r.day(e,{width:"narrow",context:"formatting"}),h);case"iiiiii":return pn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),h);case"iiii":default:return pn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),h)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=IC(e,r),e.setHours(0,0,0,0),e}}class DC extends At{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(jh(r),0,0,0),e}}class NC extends At{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(jh(r),0,0,0),e}}class FC extends At{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(jh(r),0,0,0),e}}class PC extends At{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return en(fn.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return sn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const h=e.getHours()>=12;return h&&r<12?e.setHours(r+12,0,0,0):!h&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}}class HC extends At{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return en(fn.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return sn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}}class WC extends At{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return en(fn.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return sn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}}class BC extends At{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return en(fn.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return sn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const h=r<=24?r%24:r;return e.setHours(h,0,0,0),e}}class jC extends At{constructor(){super(...arguments),Oe(this,"priority",60),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return en(fn.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return sn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}}class zC extends At{constructor(){super(...arguments),Oe(this,"priority",50),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return en(fn.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return sn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}}class UC extends At{constructor(){super(...arguments),Oe(this,"priority",30),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=h=>Math.trunc(h*Math.pow(10,-t.length+3));return pn(sn(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}}class VC extends At{constructor(){super(...arguments),Oe(this,"priority",10),Oe(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Xr(Jr.basicOptionalMinutes,e);case"XX":return Xr(Jr.basic,e);case"XXXX":return Xr(Jr.basicOptionalSeconds,e);case"XXXXX":return Xr(Jr.extendedOptionalSeconds,e);case"XXX":default:return Xr(Jr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:wn(e,e.getTime()-Pa(e)-r)}}class qC extends At{constructor(){super(...arguments),Oe(this,"priority",10),Oe(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Xr(Jr.basicOptionalMinutes,e);case"xx":return Xr(Jr.basic,e);case"xxxx":return Xr(Jr.basicOptionalSeconds,e);case"xxxxx":return Xr(Jr.extendedOptionalSeconds,e);case"xxx":default:return Xr(Jr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:wn(e,e.getTime()-Pa(e)-r)}}class GC extends At{constructor(){super(...arguments),Oe(this,"priority",40),Oe(this,"incompatibleTokens","*")}parse(e){return nw(e)}set(e,t,r){return[wn(e,r*1e3),{timestampIsSet:!0}]}}class YC extends At{constructor(){super(...arguments),Oe(this,"priority",20),Oe(this,"incompatibleTokens","*")}parse(e){return nw(e)}set(e,t,r){return[wn(e,r),{timestampIsSet:!0}]}}const KC={G:new fC,y:new pC,Y:new gC,R:new mC,u:new yC,Q:new wC,q:new vC,M:new bC,L:new xC,w:new kC,I:new $C,d:new TC,D:new EC,E:new RC,e:new MC,c:new LC,i:new OC,a:new DC,b:new NC,B:new FC,h:new PC,H:new HC,K:new WC,k:new BC,m:new jC,s:new zC,S:new UC,X:new VC,x:new qC,t:new GC,T:new YC},QC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JC=/^'([^]*?)'?$/,XC=/''/g,eT=/\S/,tT=/[a-zA-Z]/;function nT(n,e,t,r){var h,u,p,w;const d=()=>wn(t,NaN),g=Py(),s=g.locale??$f,c=g.firstWeekContainsDate??((u=(h=g.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,a=g.weekStartsOn??((w=(p=g.locale)==null?void 0:p.options)==null?void 0:w.weekStartsOn)??0;if(!e)return n?d():Qt(t,void 0);const l={firstWeekContainsDate:c,weekStartsOn:a,locale:s},o=[new dC(void 0,t)],f=e.match(ZC).map(A=>{const k=A[0];if(k in zc){const b=zc[k];return b(A,s.formatLong)}return A}).join("").match(QC),y=[];for(let A of f){Of(A)&&Uc(A,e,n),If(A)&&Uc(A,e,n);const k=A[0],b=KC[k];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const L=y.find(E=>T.includes(E.token)||E.token===k);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${A}\` at the same time`)}else if(b.incompatibleTokens==="*"&&y.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);y.push({token:k,fullToken:A});const R=b.run(n,A,s.match,l);if(!R)return d();o.push(R.setter),n=R.rest}else{if(k.match(tT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=rT(A)),n.indexOf(A)===0)n=n.slice(A.length);else return d()}}if(n.length>0&&eT.test(n))return d();const v=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,b)=>b.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,b)=>b.subPriority-k.subPriority)).map(A=>A[0]);let x=Qt(t,void 0);if(isNaN(+x))return d();const M={};for(const A of v){if(!A.validate(x,l))return d();const k=A.set(x,M,l);Array.isArray(k)?(x=k[0],Object.assign(M,k[1])):x=k}return x}function rT(n){return n.match(JC)[1].replace(XC,"'")}const iT={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function oT(n,e,t,r,h,u){const p=Se("rux-icon");return Pe(),kt(p,{size:t.size,icon:t.icon,style:eo(u.colorStyle)},null,8,["size","icon","style"])}const sT=Yr(iT,[["render",oT],["__scopeId","data-v-9af48e85"]]),aT="/icons/status-dark.png",lT={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return aT},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=dT.indexOf(sw[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,h=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*h}px;`,`background-size: ${t}px ${r}px;`,`height: ${h}px;`,`width: ${h}px;`,`padding-top: ${n-1}px;`].join("")}}};function cT(n,e,t,r,h,u){return Pe(),Dt("div",{style:eo(u.iconStyle)},null,4)}const uT=Yr(lT,[["render",cT]]),sw={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"},Uh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},hT=function(n){const e="#000000",t="#ffffff",r=Uh[sw[n]];if(r){const h=+`0x${r.slice(1,3)}`,u=+`0x${r.slice(3,5)}`,p=+`0x${r.slice(5,7)}`;if((h*299+u*587+p*114)/1e3>128)return e}return t},dT=Object.keys(Uh),fT={astro:{component:n=>As(sT,{...n})},"astro-status":{component:n=>As(uT,{...n,status:n.icon})}},pT={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()},subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},gT={class:"app-title mr-2"};function mT(n,e,t,r,h,u){const p=Se("v-col"),w=Se("v-row"),d=Se("v-icon"),g=Se("v-btn"),s=Se("v-divider"),c=Se("v-list-item-title"),a=Se("v-list-item"),l=Se("v-list"),o=Se("v-menu"),f=Se("v-radio"),y=Se("v-list-item-action"),v=Se("v-radio-group"),x=Se("v-checkbox");return Pe(),kt(nf,{to:"#openc3-menu"},[_e(w,{"no-gutters":""},{default:xe(()=>[_e(p,{"align-self":"end"},{default:xe(()=>[Dn("span",gT,Kt(t.title),1)]),_:1})]),_:1}),_e(w,{dense:"",class:"flex-nowrap"},{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(t.menus,(M,A)=>(Pe(),kt(o,{ref_for:!0,ref:"topmenu",key:A},{activator:xe(({props:k})=>[_e(g,Cs({ref_for:!0},k,{variant:"outlined",class:"mx-1 menu-button",text:M.label,"data-test":u.formatDT(`${t.title} ${M.label}`)}),{append:xe(()=>[_e(d,{class:"menu-button-icon"},{default:xe(()=>e[0]||(e[0]=[pt(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:xe(()=>[_e(l,null,{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(M.items,(k,b)=>(Pe(),Dt(Nr,null,[k.divider?(Pe(),kt(s,{key:b+"-divider"})):k.subMenu&&k.subMenu.length>0?(Pe(),Dt("div",{key:b+"-submenu"},[(Pe(),kt(o,{"open-on-hover":"",location:"right",key:b},{activator:xe(({props:T})=>[(Pe(),kt(a,Cs({ref_for:!0},T,{disabled:k.disabled,key:b}),Fc({append:xe(()=>[_e(d,null,{default:xe(()=>e[1]||(e[1]=[pt(" mdi-chevron-right ")])),_:1})]),default:xe(()=>[!k.radio&&!k.checkbox?(Pe(),kt(c,{key:0,style:eo("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[pt(Kt(k.label),1)]),_:2},1032,["style"])):rr("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{disabled:k.disabled},{default:xe(()=>[pt(Kt(k.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:xe(()=>[_e(l,null,{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(k.subMenu,(T,R)=>(Pe(),kt(a,{key:R,"prepend-icon":T.icon,onClick:L=>u.subMenuClick(T)},{default:xe(()=>[_e(c,null,{default:xe(()=>[pt(Kt(T.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):k.radioGroup?(Pe(),kt(v,{"model-value":k.value,"onUpdate:modelValue":k.command,key:b+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(k.choices,(T,R)=>(Pe(),kt(a,{key:R+"-choice"},{default:xe(()=>[_e(y,{class:"list-action"},{default:xe(()=>[_e(f,{color:"secondary",label:T.label,value:T.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(Pe(),kt(a,{onClick:T=>k.command(k),disabled:k.disabled,"data-test":u.formatDT(`${t.title} ${M.label} ${k.label}`),key:b+"-list"},Fc({default:xe(()=>[k.checkbox?(Pe(),kt(y,{key:0,class:"list-action"},{default:xe(()=>[_e(x,{modelValue:k.checked,"onUpdate:modelValue":T=>k.checked=T,label:k.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):rr("",!0),!k.radio&&!k.checkbox?(Pe(),kt(c,{key:1,style:eo("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[pt(Kt(k.label),1)]),_:2},1032,["style"])):rr("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{icon:k.icon,disabled:k.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const yT=Yr(pT,[["render",mT],["__scopeId","data-v-4d454b93"]]),aw="single-spa:app-change",wT={data(){return{show:!1}},created(){window.addEventListener(aw,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=mf().length===0},150)},unmounted(){window.removeEventListener(aw,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},vT={class:"mx-1"};function bT(n,e,t,r,h,u){const p=Se("v-card-title"),w=Se("v-card-text"),d=Se("v-card");return h.show?(Pe(),kt(d,{key:0},{default:xe(()=>[_e(p,null,{default:xe(()=>e[0]||(e[0]=[pt(" 404 Not Found ")])),_:1}),_e(w,{class:"d-flex align-center mt-3"},{default:xe(()=>[e[1]||(e[1]=pt(" The requested URL ")),Dn("code",vT,Kt(n.$route.fullPath),1),e[2]||(e[2]=pt(" was not routable. ")),e[3]||(e[3]=Dn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):rr("",!0)}const xT=Yr(wT,[["render",bT]]),_T={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const n=/\w+.gem/;return this.response.tree.filter(e=>n.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,dn.get(this.url).then(n=>{this.response=n.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(n){const e=document.createElement("a");e.href=n.url,e.setAttribute("download",n.name),e.click(),e.remove()}}},kT={class:"pa-3"},ST={class:"px-2"},$T={key:0,class:"mt-4"},AT={key:1,class:"mt-4"},CT={key:0},TT={key:1};function ET(n,e,t,r,h,u){const p=Se("v-spacer"),w=Se("v-toolbar"),d=Se("v-row"),g=Se("v-icon"),s=Se("v-btn"),c=Se("v-col"),a=Se("v-list-item-title"),l=Se("v-progress-circular"),o=Se("v-tooltip"),f=Se("v-list-item"),y=Se("v-divider"),v=Se("v-card-text"),x=Se("v-card"),M=Se("v-dialog");return Pe(),kt(M,{modelValue:u.show,"onUpdate:modelValue":e[0]||(e[0]=A=>u.show=A),width:"600"},{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(w,{height:"24"},{default:xe(()=>[_e(p),e[1]||(e[1]=Dn("span",null," Download Gems ",-1)),_e(p)]),_:1}),_e(v,null,{default:xe(()=>[Dn("div",kT,[_e(d,{class:"my-2"},{default:xe(()=>e[2]||(e[2]=[pt(" Select a download option ")])),_:1}),_e(d,null,{default:xe(()=>[_e(c,null,{default:xe(()=>[Dn("div",ST,[_e(s,{onClick:u.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:h.disableSearch},{default:xe(()=>[e[4]||(e[4]=pt(" Github ")),_e(g,{end:"",theme:"dark"},{default:xe(()=>e[3]||(e[3]=[pt(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),_e(d,{class:"mt-5"},{default:xe(()=>e[5]||(e[5]=[pt(" Community Gems ")])),_:1}),u.listData.length<1?(Pe(),Dt("div",$T,[_e(d,{class:"mx-2"},{default:xe(()=>e[6]||(e[6]=[Dn("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(Pe(),Dt("div",AT,[(Pe(!0),Dt(Nr,null,Gr(u.listData,(A,k)=>(Pe(),Dt("div",{key:k},[_e(f,null,{default:xe(()=>[_e(a,null,{default:xe(()=>[pt(Kt(A.name),1)]),_:2},1024),_e(f,{icon:""},{default:xe(()=>[h.activeDownload?(Pe(),Dt("div",CT,[_e(l,{indeterminate:"",color:"primary"})])):(Pe(),Dt("div",TT,[_e(o,{location:"top"},{activator:xe(({props:b})=>[_e(g,Cs({ref_for:!0},b,{onClick:T=>u.downloadGem(A),disabled:h.activeDownload}),{default:xe(()=>e[7]||(e[7]=[pt(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:xe(()=>[e[8]||(e[8]=Dn("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),k<u.listData.length-1?(Pe(),kt(y,{key:k})):rr("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const yD=On("b",Yr(_T,[["render",ET]])),RT={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){for(const n of this.targets)_x.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})}};function MT(n,e,t,r,h,u){const p=Se("v-spacer"),w=Se("v-toolbar"),d=Se("v-list-item-title"),g=Se("v-list-item-subtitle"),s=Se("v-list-item"),c=Se("v-checkbox"),a=Se("v-card-text"),l=Se("v-btn"),o=Se("v-card-actions"),f=Se("v-card"),y=Se("v-dialog");return Pe(),kt(y,{modelValue:u.show,"onUpdate:modelValue":e[3]||(e[3]=v=>u.show=v),width:"600"},{default:xe(()=>[_e(f,null,{default:xe(()=>[_e(w,{height:"24"},{default:xe(()=>[_e(p),e[4]||(e[4]=Dn("span",null," Modified Plugin ",-1)),_e(p)]),_:1}),_e(a,{class:"pa-3"},{default:xe(()=>[Dn("div",null," Plugin "+Kt(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(Pe(!0),Dt(Nr,null,Gr(h.modifiedTargets,(v,x)=>(Pe(),kt(s,{lines:"two",key:x},{default:xe(()=>[_e(d,null,{default:xe(()=>[pt(Kt(v.name),1)]),_:2},1024),(Pe(!0),Dt(Nr,null,Gr(v.files,(M,A)=>(Pe(),kt(g,{key:A},{default:xe(()=>[pt(Kt(M),1)]),_:2},1024))),128))]),_:2},1024))),128)),_e(c,{modelValue:h.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=v=>h.deleteModified=v),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),_e(o,{class:"px-2"},{default:xe(()=>[_e(p),_e(l,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{u.show=!1,n.$emit("cancel")})},{default:xe(()=>e[5]||(e[5]=[pt(" Cancel ")])),_:1}),_e(l,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{u.show=!1,n.$emit("submit",h.deleteModified)})},{default:xe(()=>e[6]||(e[6]=[pt(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const wD=On("w",Yr(RT,[["render",MT]])),Vh=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Ie(()=>Le.import("./PluginsTab-BA8i6noW-ec73e748b2305bd36bbe.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Ie(()=>Le.import("./TargetsTab-tIu-gzql-877902c00b80f90340f6.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Ie(()=>Le.import("./InterfacesTab-BgBHPbYU-ea6bcfbfdf04d778b00e.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Ie(()=>Le.import("./RoutersTab-DkastnpG-7abd8b072329de36ba5f.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Ie(()=>Le.import("./MicroservicesTab-BEV_rdfR-7a67dfc2f264531dc46a.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Ie(()=>Le.import("./PackagesTab-DtxOIZu6-9f1415581b9fc80a9f63.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Ie(()=>Le.import("./ToolsTab-LKQSXcSL-7959012b4c3e33263fc4.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Ie(()=>Le.import("./RedisTab-C6BFYfSy-e6c17c5f376a8bac1530.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Ie(()=>Le.import("./SecretsTab-Dw5QQhmY-3f50277ae9fe4296f427.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Ie(()=>Le.import("./SettingsTab-BM7Pnw9e-3ab8f9ab402b9da2d731.js"),void 0)}],LT={components:{TopBar:yT},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Vh.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function IT(n,e,t,r,h,u){const p=Se("top-bar"),w=Se("v-tab"),d=Se("v-tabs"),g=Se("router-view"),s=Se("v-card");return Pe(),Dt("div",null,[_e(p,{title:h.title},null,8,["title"]),_e(s,null,{default:xe(()=>[_e(d,{modelValue:h.curTab,"onUpdate:modelValue":e[0]||(e[0]=c=>h.curTab=c),"fixed-tabs":""},{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(u.tabs,(c,a)=>(Pe(),kt(w,{key:a,to:c.path},{default:xe(()=>[pt(Kt(c.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),_e(g)]),_:1})])}const OT=Yr(LT,[["render",IT]]);var be=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},Bt=-1,Gt=1,ut=0;be.Diff=function(n,e){this[0]=n,this[1]=e},be.Diff.prototype.length=2,be.Diff.prototype.toString=function(){return this[0]+","+this[1]},be.prototype.diff_main=function(n,e,t,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);var h=r;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new be.Diff(ut,n)]:[];typeof t>"u"&&(t=!0);var u=t,p=this.diff_commonPrefix(n,e),w=n.substring(0,p);n=n.substring(p),e=e.substring(p),p=this.diff_commonSuffix(n,e);var d=n.substring(n.length-p);n=n.substring(0,n.length-p),e=e.substring(0,e.length-p);var g=this.diff_compute_(n,e,u,h);return w&&g.unshift(new be.Diff(ut,w)),d&&g.push(new be.Diff(ut,d)),this.diff_cleanupMerge(g),g},be.prototype.diff_compute_=function(n,e,t,r){var h;if(!n)return[new be.Diff(Gt,e)];if(!e)return[new be.Diff(Bt,n)];var u=n.length>e.length?n:e,p=n.length>e.length?e:n,w=u.indexOf(p);return w!=-1?(h=[new be.Diff(Gt,u.substring(0,w)),new be.Diff(ut,p),new be.Diff(Gt,u.substring(w+p.length))],n.length>e.length&&(h[0][0]=h[2][0]=Bt),h):p.length==1?[new be.Diff(Bt,n),new be.Diff(Gt,e)]:t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,r):this.diff_bisect_(n,e,r)},be.prototype.diff_lineMode_=function(n,e,t){var r=this.diff_linesToChars_(n,e);n=r.chars1,e=r.chars2;var h=r.lineArray,u=this.diff_main(n,e,!1,t);this.diff_charsToLines_(u,h),this.diff_cleanupSemantic(u),u.push(new be.Diff(ut,""));for(var p=0,w=0,d=0,g="",s="";p<u.length;){switch(u[p][0]){case Gt:d++,s+=u[p][1];break;case Bt:w++,g+=u[p][1];break;case ut:if(w>=1&&d>=1){u.splice(p-w-d,w+d),p=p-w-d;for(var c=this.diff_main(g,s,!1,t),a=c.length-1;a>=0;a--)u.splice(p,0,c[a]);p=p+c.length}d=0,w=0,g="",s="";break}p++}return u.pop(),u},be.prototype.diff_bisect_=function(n,e,t){for(var r=n.length,h=e.length,u=Math.ceil((r+h)/2),p=u,w=2*u,d=new Array(w),g=new Array(w),s=0;s<w;s++)d[s]=-1,g[s]=-1;d[p+1]=0,g[p+1]=0;for(var c=r-h,a=c%2!=0,l=0,o=0,f=0,y=0,v=0;v<u&&!(new Date().getTime()>t);v++){for(var x=-v+l;x<=v-o;x+=2){var M=p+x,A;x==-v||x!=v&&d[M-1]<d[M+1]?A=d[M+1]:A=d[M-1]+1;for(var k=A-x;A<r&&k<h&&n.charAt(A)==e.charAt(k);)A++,k++;if(d[M]=A,A>r)o+=2;else if(k>h)l+=2;else if(a){var b=p+c-x;if(b>=0&&b<w&&g[b]!=-1){var T=r-g[b];if(A>=T)return this.diff_bisectSplit_(n,e,A,k,t)}}}for(var R=-v+f;R<=v-y;R+=2){var b=p+R,T;R==-v||R!=v&&g[b-1]<g[b+1]?T=g[b+1]:T=g[b-1]+1;for(var L=T-R;T<r&&L<h&&n.charAt(r-T-1)==e.charAt(h-L-1);)T++,L++;if(g[b]=T,T>r)y+=2;else if(L>h)f+=2;else if(!a){var M=p+c-R;if(M>=0&&M<w&&d[M]!=-1){var A=d[M],k=p+A-M;if(T=r-T,A>=T)return this.diff_bisectSplit_(n,e,A,k,t)}}}}return[new be.Diff(Bt,n),new be.Diff(Gt,e)]},be.prototype.diff_bisectSplit_=function(n,e,t,r,h){var u=n.substring(0,t),p=e.substring(0,r),w=n.substring(t),d=e.substring(r),g=this.diff_main(u,p,!1,h),s=this.diff_main(w,d,!1,h);return g.concat(s)},be.prototype.diff_linesToChars_=function(n,e){var t=[],r={};t[0]="";function h(d){for(var g="",s=0,c=-1,a=t.length;c<d.length-1;){c=d.indexOf(`
|
1414
|
+
`,s),c==-1&&(c=d.length-1);var l=d.substring(s,c+1);(r.hasOwnProperty?r.hasOwnProperty(l):r[l]!==void 0)?g+=String.fromCharCode(r[l]):(a==u&&(l=d.substring(s),c=d.length),g+=String.fromCharCode(a),r[l]=a,t[a++]=l),s=c+1}return g}var u=4e4,p=h(n);u=65535;var w=h(e);return{chars1:p,chars2:w,lineArray:t}},be.prototype.diff_charsToLines_=function(n,e){for(var t=0;t<n.length;t++){for(var r=n[t][1],h=[],u=0;u<r.length;u++)h[u]=e[r.charCodeAt(u)];n[t][1]=h.join("")}},be.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;for(var t=0,r=Math.min(n.length,e.length),h=r,u=0;t<h;)n.substring(u,h)==e.substring(u,h)?(t=h,u=t):r=h,h=Math.floor((r-t)/2+t);return h},be.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,r=Math.min(n.length,e.length),h=r,u=0;t<h;)n.substring(n.length-h,n.length-u)==e.substring(e.length-h,e.length-u)?(t=h,u=t):r=h,h=Math.floor((r-t)/2+t);return h},be.prototype.diff_commonOverlap_=function(n,e){var t=n.length,r=e.length;if(t==0||r==0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));var h=Math.min(t,r);if(n==e)return h;for(var u=0,p=1;;){var w=n.substring(h-p),d=e.indexOf(w);if(d==-1)return u;p+=d,(d==0||n.substring(h-p)==e.substring(0,p))&&(u=p,p++)}},be.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;var t=n.length>e.length?n:e,r=n.length>e.length?e:n;if(t.length<4||r.length*2<t.length)return null;var h=this;function u(o,f,y){for(var v=o.substring(y,y+Math.floor(o.length/4)),x=-1,M="",A,k,b,T;(x=f.indexOf(v,x+1))!=-1;){var R=h.diff_commonPrefix(o.substring(y),f.substring(x)),L=h.diff_commonSuffix(o.substring(0,y),f.substring(0,x));M.length<L+R&&(M=f.substring(x-L,x)+f.substring(x,x+R),A=o.substring(0,y-L),k=o.substring(y+R),b=f.substring(0,x-L),T=f.substring(x+R))}return M.length*2>=o.length?[A,k,b,T,M]:null}var p=u(t,r,Math.ceil(t.length/4)),w=u(t,r,Math.ceil(t.length/2)),d;if(!p&&!w)return null;w?p?d=p[4].length>w[4].length?p:w:d=w:d=p;var g,s,c,a;n.length>e.length?(g=d[0],s=d[1],c=d[2],a=d[3]):(c=d[0],a=d[1],g=d[2],s=d[3]);var l=d[4];return[g,s,c,a,l]},be.prototype.diff_cleanupSemantic=function(n){for(var e=!1,t=[],r=0,h=null,u=0,p=0,w=0,d=0,g=0;u<n.length;)n[u][0]==ut?(t[r++]=u,p=d,w=g,d=0,g=0,h=n[u][1]):(n[u][0]==Gt?d+=n[u][1].length:g+=n[u][1].length,h&&h.length<=Math.max(p,w)&&h.length<=Math.max(d,g)&&(n.splice(t[r-1],0,new be.Diff(Bt,h)),n[t[r-1]+1][0]=Gt,r--,r--,u=r>0?t[r-1]:-1,p=0,w=0,d=0,g=0,h=null,e=!0)),u++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),u=1;u<n.length;){if(n[u-1][0]==Bt&&n[u][0]==Gt){var s=n[u-1][1],c=n[u][1],a=this.diff_commonOverlap_(s,c),l=this.diff_commonOverlap_(c,s);a>=l?(a>=s.length/2||a>=c.length/2)&&(n.splice(u,0,new be.Diff(ut,c.substring(0,a))),n[u-1][1]=s.substring(0,s.length-a),n[u+1][1]=c.substring(a),u++):(l>=s.length/2||l>=c.length/2)&&(n.splice(u,0,new be.Diff(ut,s.substring(0,l))),n[u-1][0]=Gt,n[u-1][1]=c.substring(0,c.length-l),n[u+1][0]=Bt,n[u+1][1]=s.substring(l),u++),u++}u++}},be.prototype.diff_cleanupSemanticLossless=function(n){function e(l,o){if(!l||!o)return 6;var f=l.charAt(l.length-1),y=o.charAt(0),v=f.match(be.nonAlphaNumericRegex_),x=y.match(be.nonAlphaNumericRegex_),M=v&&f.match(be.whitespaceRegex_),A=x&&y.match(be.whitespaceRegex_),k=M&&f.match(be.linebreakRegex_),b=A&&y.match(be.linebreakRegex_),T=k&&l.match(be.blanklineEndRegex_),R=b&&o.match(be.blanklineStartRegex_);return T||R?5:k||b?4:v&&!M&&A?3:M||A?2:v||x?1:0}for(var t=1;t<n.length-1;){if(n[t-1][0]==ut&&n[t+1][0]==ut){var r=n[t-1][1],h=n[t][1],u=n[t+1][1],p=this.diff_commonSuffix(r,h);if(p){r[r.length-p]===`
|
1415
|
+
`&&(p-=1);var w=h.substring(h.length-p);r=r.substring(0,r.length-p),h=w+h.substring(0,h.length-p),u=w+u}for(var d=r,g=h,s=u,c=e(r,h)+e(h,u);h.charAt(0)===u.charAt(0);){r+=h.charAt(0),h=h.substring(1)+u.charAt(0),u=u.substring(1);var a=e(r,h)+e(h,u);a>=c&&(c=a,d=r,g=h,s=u)}n[t-1][1]!=d&&(d?n[t-1][1]=d:(n.splice(t-1,1),t--),n[t][1]=g,s?n[t+1][1]=s:(n.splice(t+1,1),t--))}t++}},be.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,be.whitespaceRegex_=/\s/,be.linebreakRegex_=/[\r\n]/,be.blanklineEndRegex_=/\n\r?\n$/,be.blanklineStartRegex_=/^\r?\n\r?\n/,be.prototype.diff_cleanupEfficiency=function(n){for(var e=!1,t=[],r=0,h=null,u=0,p=!1,w=!1,d=!1,g=!1;u<n.length;)n[u][0]==ut?(n[u][1].length<this.Diff_EditCost&&(d||g)?(t[r++]=u,p=d,w=g,h=n[u][1]):(r=0,h=null),d=g=!1):(n[u][0]==Bt?g=!0:d=!0,h&&(p&&w&&d&&g||h.length<this.Diff_EditCost/2&&p+w+d+g==3)&&(n.splice(t[r-1],0,new be.Diff(Bt,h)),n[t[r-1]+1][0]=Gt,r--,h=null,p&&w?(d=g=!0,r=0):(r--,u=r>0?t[r-1]:-1,d=g=!1),e=!0)),u++;e&&this.diff_cleanupMerge(n)},be.prototype.diff_cleanupMerge=function(n){n.push(new be.Diff(ut,""));for(var e=0,t=0,r=0,h="",u="",p;e<n.length;)switch(n[e][0]){case Gt:r++,u+=n[e][1],e++;break;case Bt:t++,h+=n[e][1],e++;break;case ut:t+r>1?(t!==0&&r!==0&&(p=this.diff_commonPrefix(u,h),p!==0&&(e-t-r>0&&n[e-t-r-1][0]==ut?n[e-t-r-1][1]+=u.substring(0,p):(n.splice(0,0,new be.Diff(ut,u.substring(0,p))),e++),u=u.substring(p),h=h.substring(p)),p=this.diff_commonSuffix(u,h),p!==0&&(n[e][1]=u.substring(u.length-p)+n[e][1],u=u.substring(0,u.length-p),h=h.substring(0,h.length-p))),e-=t+r,n.splice(e,t+r),h.length&&(n.splice(e,0,new be.Diff(Bt,h)),e++),u.length&&(n.splice(e,0,new be.Diff(Gt,u)),e++),e++):e!==0&&n[e-1][0]==ut?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,h="",u="";break}n[n.length-1][1]===""&&n.pop();var w=!1;for(e=1;e<n.length-1;)n[e-1][0]==ut&&n[e+1][0]==ut&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)==n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),w=!0):n[e][1].substring(0,n[e+1][1].length)==n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),w=!0)),e++;w&&this.diff_cleanupMerge(n)},be.prototype.diff_cleanupSplitSurrogates=function(n){for(var e,t=0;t<n.length;t++){var r=n[t],h=r[1][0],u=r[1][r[1].length-1];if(r[1].length===0){n.splice(t--,1);continue}if(u&&this.isHighSurrogate(u)&&(e=u,r[1]=r[1].slice(0,-1)),e&&h&&this.isHighSurrogate(e)&&this.isLowSurrogate(h)&&(r[1]=e+r[1]),r[1].length===0){n.splice(t--,1);continue}}return n},be.prototype.isHighSurrogate=function(n){var e=n.charCodeAt(0);return e>=55296&&e<=56319},be.prototype.isLowSurrogate=function(n){var e=n.charCodeAt(0);return e>=56320&&e<=57343},be.prototype.digit16=function(n){switch(n){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}},be.prototype.decodeURI=function(n){try{return decodeURI(n)}catch{for(var e=0,t="";e<n.length;){if(n[e]!=="%"){t+=n[e++];continue}var r=(this.digit16(n[e+1])<<4)+this.digit16(n[e+2]);if(!(r&128)){t+=String.fromCharCode(r),e+=3;continue}if(n[e+3]!=="%")throw new URIError("URI malformed");var h=(this.digit16(n[e+4])<<4)+this.digit16(n[e+5]);if((h&192)!==128)throw new URIError("URI malformed");if(h=h&63,(r&224)===192){t+=String.fromCharCode((r&31)<<6|h),e+=6;continue}if(n[e+6]!=="%")throw new URIError("URI malformed");var u=(this.digit16(n[e+7])<<4)+this.digit16(n[e+8]);if((u&192)!==128)throw new URIError("URI malformed");if(u=u&63,(r&240)===224){t+=String.fromCharCode((r&15)<<12|h<<6|u),e+=9;continue}if(n[e+9]!=="%")throw new URIError("URI malformed");var p=(this.digit16(n[e+10])<<4)+this.digit16(n[e+11]);if((p&192)!==128)throw new URIError("URI malformed");if(p=p&63,(r&248)===240){var w=(r&7)<<18|h<<12|u<<6|p;if(w>=65536&&w<=1114111){t+=String.fromCharCode((w&65535)>>>10&1023|55296),t+=String.fromCharCode(56320|w&65535&1023),e+=12;continue}}throw new URIError("URI malformed")}return t}},be.prototype.diff_xIndex=function(n,e){var t=0,r=0,h=0,u=0,p;for(p=0;p<n.length&&(n[p][0]!==Gt&&(t+=n[p][1].length),n[p][0]!==Bt&&(r+=n[p][1].length),!(t>e));p++)h=t,u=r;return n.length!=p&&n[p][0]===Bt?u:u+(e-h)},be.prototype.diff_prettyHtml=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=/&/g,r=/</g,h=/>/g,u=/\n/g,p=0;p<n.length;p++){var w=n[p][0],d=n[p][1],g=d.replace(t,"&").replace(r,"<").replace(h,">").replace(u,"¶<br>");switch(w){case Gt:e[p]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case Bt:e[p]='<del style="background:#ffe6e6;">'+g+"</del>";break;case ut:e[p]="<span>"+g+"</span>";break}}return e.join("")},be.prototype.diff_text1=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Gt&&(e[t]=n[t][1]);return e.join("")},be.prototype.diff_text2=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Bt&&(e[t]=n[t][1]);return e.join("")},be.prototype.diff_levenshtein=function(n){for(var e=0,t=0,r=0,h=0;h<n.length;h++){var u=n[h][0],p=n[h][1];switch(u){case Gt:t+=p.length;break;case Bt:r+=p.length;break;case ut:e+=Math.max(t,r),t=0,r=0;break}}return e+=Math.max(t,r),e},be.prototype.diff_toDelta=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=0;t<n.length;t++)switch(n[t][0]){case Gt:e[t]="+"+encodeURI(n[t][1]);break;case Bt:e[t]="-"+n[t][1].length;break;case ut:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")},be.prototype.diff_fromDelta=function(n,e){for(var t=[],r=0,h=0,u=e.split(/\t/g),p=0;p<u.length;p++){var w=u[p].substring(1);switch(u[p].charAt(0)){case"+":try{t[r++]=new be.Diff(Gt,this.decodeURI(w))}catch{throw new Error("Illegal escape in diff_fromDelta: "+w)}break;case"-":case"=":var d=parseInt(w,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+w);var g=n.substring(h,h+=d);u[p].charAt(0)=="="?t[r++]=new be.Diff(ut,g):t[r++]=new be.Diff(Bt,g);break;default:if(u[p])throw new Error("Invalid diff operation in diff_fromDelta: "+u[p])}}if(h!=n.length)throw new Error("Delta length ("+h+") does not equal source text length ("+n.length+").");return t},be.prototype.match_main=function(n,e,t){if(n==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,n.length)),n==e?0:n.length?n.substring(t,t+e.length)==e?t:this.match_bitap_(n,e,t):-1},be.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(e),h=this;function u(A,k){var b=A/e.length,T=Math.abs(t-k);return h.Match_Distance?b+T/h.Match_Distance:T?1:b}var p=this.Match_Threshold,w=n.indexOf(e,t);w!=-1&&(p=Math.min(u(0,w),p),w=n.lastIndexOf(e,t+e.length),w!=-1&&(p=Math.min(u(0,w),p)));var d=1<<e.length-1;w=-1;for(var g,s,c=e.length+n.length,a,l=0;l<e.length;l++){for(g=0,s=c;g<s;)u(l,t+s)<=p?g=s:c=s,s=Math.floor((c-g)/2+g);c=s;var o=Math.max(1,t-s+1),f=Math.min(t+s,n.length)+e.length,y=Array(f+2);y[f+1]=(1<<l)-1;for(var v=f;v>=o;v--){var x=r[n.charAt(v-1)];if(l===0?y[v]=(y[v+1]<<1|1)&x:y[v]=(y[v+1]<<1|1)&x|((a[v+1]|a[v])<<1|1)|a[v+1],y[v]&d){var M=u(l,v-1);if(M<=p)if(p=M,w=v-1,w>t)o=Math.max(1,2*t-w);else break}}if(u(l+1,t)>p)break;a=y}return w},be.prototype.match_alphabet_=function(n){for(var e={},t=0;t<n.length;t++)e[n.charAt(t)]=0;for(var t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e},be.prototype.patch_addContext_=function(n,e){if(e.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var t=e.substring(n.start2,n.start2+n.length1),r=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,t=e.substring(n.start2-r,n.start2+n.length1+r);r+=this.Patch_Margin,n.start2-r>0&&be.prototype.isLowSurrogate(e[n.start2-r])&&r++;var h=e.substring(n.start2-r,n.start2);h&&n.diffs.unshift(new be.Diff(ut,h)),n.start2+n.length1+r<e.length&&be.prototype.isHighSurrogate(e[n.start2+n.length1+r])&&r++;var u=e.substring(n.start2+n.length1,n.start2+n.length1+r);u&&n.diffs.push(new be.Diff(ut,u)),n.start1-=h.length,n.start2-=h.length,n.length1+=h.length+u.length,n.length2+=h.length+u.length}},be.prototype.patch_make=function(n,e,t){var r,h;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")r=n,h=this.diff_main(r,e,!0),h.length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")h=n,r=this.diff_text1(h);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")r=n,h=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")r=n,h=t;else throw new Error("Unknown call format to patch_make.");if(h.length===0)return[];h=this.diff_cleanupSplitSurrogates(h);for(var u=[],p=new be.patch_obj,w=0,d=0,g=0,s=r,c=r,a=0;a<h.length;a++){var l=h[a][0],o=h[a][1];switch(!w&&l!==ut&&(p.start1=d,p.start2=g),l){case Gt:p.diffs[w++]=h[a],p.length2+=o.length,c=c.substring(0,g)+o+c.substring(g);break;case Bt:p.length1+=o.length,p.diffs[w++]=h[a],c=c.substring(0,g)+c.substring(g+o.length);break;case ut:o.length<=2*this.Patch_Margin&&w&&h.length!=a+1?(p.diffs[w++]=h[a],p.length1+=o.length,p.length2+=o.length):o.length>=2*this.Patch_Margin&&w&&(this.patch_addContext_(p,s),u.push(p),p=new be.patch_obj,w=0,s=c,d=g);break}l!==Gt&&(d+=o.length),l!==Bt&&(g+=o.length)}return w&&(this.patch_addContext_(p,s),u.push(p)),u},be.prototype.patch_deepCopy=function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t],h=new be.patch_obj;h.diffs=[];for(var u=0;u<r.diffs.length;u++)h.diffs[u]=new be.Diff(r.diffs[u][0],r.diffs[u][1]);h.start1=r.start1,h.start2=r.start2,h.length1=r.length1,h.length2=r.length2,e[t]=h}return e},be.prototype.patch_apply=function(n,e){if(n.length==0)return[e,[]];n=this.patch_deepCopy(n);var t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);for(var r=0,h=[],u=0;u<n.length;u++){var p=n[u].start2+r,w=this.diff_text1(n[u].diffs),d,g=-1;if(w.length>this.Match_MaxBits?(d=this.match_main(e,w.substring(0,this.Match_MaxBits),p),d!=-1&&(g=this.match_main(e,w.substring(w.length-this.Match_MaxBits),p+w.length-this.Match_MaxBits),(g==-1||d>=g)&&(d=-1))):d=this.match_main(e,w,p),d==-1)h[u]=!1,r-=n[u].length2-n[u].length1;else{h[u]=!0,r=d-p;var s;if(g==-1?s=e.substring(d,d+w.length):s=e.substring(d,g+this.Match_MaxBits),w==s)e=e.substring(0,d)+this.diff_text2(n[u].diffs)+e.substring(d+w.length);else{var c=this.diff_main(w,s,!1);if(w.length>this.Match_MaxBits&&this.diff_levenshtein(c)/w.length>this.Patch_DeleteThreshold)h[u]=!1;else{this.diff_cleanupSemanticLossless(c);for(var a=0,l,o=0;o<n[u].diffs.length;o++){var f=n[u].diffs[o];f[0]!==ut&&(l=this.diff_xIndex(c,a)),f[0]===Gt?e=e.substring(0,d+l)+f[1]+e.substring(d+l):f[0]===Bt&&(e=e.substring(0,d+l)+e.substring(d+this.diff_xIndex(c,a+f[1].length))),f[0]!==Bt&&(a+=f[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,h]},be.prototype.patch_addPadding=function(n){for(var e=this.Patch_Margin,t="",r=1;r<=e;r++)t+=String.fromCharCode(r);for(var r=0;r<n.length;r++)n[r].start1+=e,n[r].start2+=e;var h=n[0],u=h.diffs;if(u.length==0||u[0][0]!=ut)u.unshift(new be.Diff(ut,t)),h.start1-=e,h.start2-=e,h.length1+=e,h.length2+=e;else if(e>u[0][1].length){var p=e-u[0][1].length;u[0][1]=t.substring(u[0][1].length)+u[0][1],h.start1-=p,h.start2-=p,h.length1+=p,h.length2+=p}if(h=n[n.length-1],u=h.diffs,u.length==0||u[u.length-1][0]!=ut)u.push(new be.Diff(ut,t)),h.length1+=e,h.length2+=e;else if(e>u[u.length-1][1].length){var p=e-u[u.length-1][1].length;u[u.length-1][1]+=t.substring(0,p),h.length1+=p,h.length2+=p}return t},be.prototype.patch_splitMax=function(n){for(var e=this.Match_MaxBits,t=0;t<n.length;t++)if(!(n[t].length1<=e)){var r=n[t];n.splice(t--,1);for(var h=r.start1,u=r.start2,p="";r.diffs.length!==0;){var w=new be.patch_obj,d=!0;for(w.start1=h-p.length,w.start2=u-p.length,p!==""&&(w.length1=w.length2=p.length,w.diffs.push(new be.Diff(ut,p)));r.diffs.length!==0&&w.length1<e-this.Patch_Margin;){var g=r.diffs[0][0],s=r.diffs[0][1];g===Gt?(w.length2+=s.length,u+=s.length,w.diffs.push(r.diffs.shift()),d=!1):g===Bt&&w.diffs.length==1&&w.diffs[0][0]==ut&&s.length>2*e?(w.length1+=s.length,h+=s.length,d=!1,w.diffs.push(new be.Diff(g,s)),r.diffs.shift()):(s=s.substring(0,e-w.length1-this.Patch_Margin),w.length1+=s.length,h+=s.length,g===ut?(w.length2+=s.length,u+=s.length):d=!1,w.diffs.push(new be.Diff(g,s)),s==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(s.length))}p=this.diff_text2(w.diffs),p=p.substring(p.length-this.Patch_Margin);var c=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);c!==""&&(w.length1+=c.length,w.length2+=c.length,w.diffs.length!==0&&w.diffs[w.diffs.length-1][0]===ut?w.diffs[w.diffs.length-1][1]+=c:w.diffs.push(new be.Diff(ut,c))),d||n.splice(++t,0,w)}}},be.prototype.patch_toText=function(n){for(var e=[],t=0;t<n.length;t++)e[t]=n[t];return e.join("")},be.prototype.patch_fromText=function(n){var e=[];if(!n)return e;for(var t=n.split(`
|
1416
|
+
`),r=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<t.length;){var u=t[r].match(h);if(!u)throw new Error("Invalid patch string: "+t[r]);var p=new be.patch_obj;for(e.push(p),p.start1=parseInt(u[1],10),u[2]===""?(p.start1--,p.length1=1):u[2]=="0"?p.length1=0:(p.start1--,p.length1=parseInt(u[2],10)),p.start2=parseInt(u[3],10),u[4]===""?(p.start2--,p.length2=1):u[4]=="0"?p.length2=0:(p.start2--,p.length2=parseInt(u[4],10)),r++;r<t.length;){var w=t[r].charAt(0);try{var d=decodeURI(t[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(w=="-")p.diffs.push(new be.Diff(Bt,d));else if(w=="+")p.diffs.push(new be.Diff(Gt,d));else if(w==" ")p.diffs.push(new be.Diff(ut,d));else{if(w=="@")break;if(w!=="")throw new Error('Invalid patch mode "'+w+'" in: '+d)}r++}}return e},be.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},be.patch_obj.prototype.toString=function(){var n,e;this.length1===0?n=this.start1+",0":this.length1==1?n=this.start1+1:n=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;var t=["@@ -"+n+" +"+e+` @@
|
1417
|
+
`],r;be.prototype.diff_cleanupSplitSurrogates(this.diffs);for(var h=0;h<this.diffs.length;h++){switch(this.diffs[h][0]){case Gt:r="+";break;case Bt:r="-";break;case ut:r=" ";break}t[h+1]=r+encodeURI(this.diffs[h][1])+`
|
1418
|
+
`}return t.join("").replace(/%20/g," ")};function El(n){return n&&typeof n=="object"&&!Array.isArray(n)&&n!==null}function qh(n,e){return El(n)&&El(e)&&Object.keys(e).forEach(t=>{t==="__proto__"||t==="constructor"||(El(e[t])?((!n[t]||!El(n[t]))&&(n[t]=e[t]),qh(n[t],e[t])):Object.assign(n,{[t]:e[t]}))}),n}function lw(n,e,t=!1){let r=null,h=!0;return(...u)=>{const p=t&&h,w=()=>{n.apply(this,u),r=null};p&&(h=!1,w()),r||(r=setTimeout(w,e))}}function DT(n,e){let t;return(...r)=>{const h=this;clearTimeout(t),t=setTimeout(()=>n.apply(h,r),e)}}function cw(n=""){return n.replace(/\r\n/g,`
|
1419
|
+
`)}function uw(n,e,t,r){const h=t-n,u=n+h/2;return`M ${n} ${e} C ${u},${e} ${u},${r} ${t},${r}`}const jt={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function hw(n,e){let{mode:t}=n.options;return e===jt.EDITOR_LEFT&&n.options.left.mode!==null&&(t=n.options.left.mode),e===jt.EDITOR_RIGHT&&n.options.right.mode!==null&&(t=n.options.right.mode),t}function dw(n,e){let{theme:t}=n.options;return e===jt.EDITOR_LEFT&&n.options.left.theme!==null&&(t=n.options.left.theme),e===jt.EDITOR_RIGHT&&n.options.right.theme!==null&&(t=n.options.right.theme),t}function fw(n,e){return n.ace.getSession().doc.getLine(e)}function NT(n){return document.getElementById(n.options.left.id).offsetHeight}function pw(n){const e=document.createElement("div"),t={class:n.className,style:`top:${n.topOffset}px`,title:n.tooltip,"data-diff-index":n.diffIndex};for(const r in t)e.setAttribute(r,t[r]);return e.innerHTML=n.arrowContent,e}function Gh(n,e){const t=Math.random().toString(36).substr(2,5),r=`js-${e}-${t}`,h=n.querySelector(`.${e}`);if(h)return h.id=h.id||r,h.id;const u=document.createElement("div");return n.appendChild(u),u.className=e,u.id=r,u.id}function gw(n,e,t,r){const h=n==="document"?document:document.querySelector(n);h.addEventListener(e,u=>{const p=h.querySelectorAll(t),{target:w}=u;for(let d=0,g=p.length;d<g;d+=1){let s=w;const c=p[d];for(;s&&s!==h;)s===c&&r.call(c,u),s=s.parentNode}})}let Rl;function FT(n){if(n.Range)return n.Range;const e=n.acequire||n.require;return e?e("ace/range"):!1}function Ml(n={}){if(!(this instanceof Ml))return new Ml(n);const e=this,t=()=>window?window.ace:void 0;e.options=qh({ace:t(),mode:null,theme:null,element:null,diffGranularity:jt.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"→",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"←",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},n);const{ace:r}=e.options;if(!r){const h="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(h),new Error(h)}if(Rl=FT(r),!Rl){const h="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(h),new Error(h)}if(e.options.element===null){const h="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(h),new Error(h)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const h=`Can't find the specified element ${e.options.element}`;return console.error(h),new Error(h)}e.options.left.id=Gh(e.el,"acediff__left"),e.options.classes.gutterID=Gh(e.el,"acediff__gutter"),e.options.right.id=Gh(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:r.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(hw(e,jt.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(hw(e,jt.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(dw(e,jt.EDITOR_LEFT)),e.editors.right.ace.setTheme(dw(e,jt.EDITOR_RIGHT)),e.editors.left.ace.setValue(cw(e.options.left.content),-1),e.editors.right.ace.setValue(cw(e.options.right.content),-1),e.editors.editorHeight=NT(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,PT(e),jT(e),$w(e),e.diff()},1)}Ml.prototype={setOptions(n){qh(this.options,n),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const n=new be,e=this.editors.left.ace.getSession().getValue(),t=this.editors.right.ace.getSession().getValue(),r=n.diff_main(t,e);n.diff_cleanupSemantic(r),this.editors.left.lineLengths=ww(this.editors.left),this.editors.right.lineLengths=ww(this.editors.right);const h=[],u={left:0,right:0};r.forEach(p=>{const w=p[0];let d=p[1];d.length!==0&&(w===jt.DIFF_EQUAL?(u.left+=d.length,u.right+=d.length):w===jt.DIFF_DELETE?(h.push(_w(this,jt.DIFF_DELETE,u.left,u.right,d)),u.right+=d.length):w===jt.DIFF_INSERT&&(h.push(_w(this,jt.DIFF_INSERT,u.left,u.right,d)),u.left+=d.length))},this),this.diffs=VT(this,h),!(this.diffs.length>this.options.maxDiffs)&&(xw(this),Cw(this))},destroy(){const n=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,t=e.cloneNode(!1);t.textContent=n,e.parentNode.replaceChild(t,e);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,t=e.cloneNode(!1),t.textContent=r,e.parentNode.replaceChild(t,e),document.getElementById(this.options.classes.gutterID).innerHTML="",mw()}};let mw=()=>{};function PT(n){n.editors.left.ace.getSession().on("changeScrollTop",lw(()=>{bw(n)},16)),n.editors.right.ace.getSession().on("changeScrollTop",lw(()=>{bw(n)},16));const e=n.diff.bind(n);n.editors.left.ace.on("change",e),n.editors.right.ace.on("change",e),n.options.left.copyLinkEnabled&&gw(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.newCodeConnectorLink}`,r=>{yw(n,r,jt.LTR)}),n.options.right.copyLinkEnabled&&gw(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.deletedCodeConnectorLink}`,r=>{yw(n,r,jt.RTL)});const t=DT(()=>{n.editors.availableHeight=document.getElementById(n.options.left.id).offsetHeight,n.diff()},250);window.addEventListener("resize",t),mw=()=>{window.removeEventListener("resize",t)}}function yw(n,e,t){const r=parseInt(e.target.getAttribute("data-diff-index"),10),h=n.diffs[r];let u,p,w,d,g,s;t===jt.LTR?(u=n.editors.left,p=n.editors.right,w=h.leftStartLine,d=h.leftEndLine,g=h.rightStartLine,s=h.rightEndLine):(u=n.editors.right,p=n.editors.left,w=h.rightStartLine,d=h.rightEndLine,g=h.leftStartLine,s=h.leftEndLine);let c="";for(let l=w;l<d;l+=1)c+=fw(u,l),l===w&&c===""&&g!=0&&(c+=`
|
1420
|
+
`),l<u.ace.getSession().getLength()-1&&(c+=`
|
1421
|
+
`);const a=p.ace.getSession().getScrollTop();p.ace.getSession().replace(new Rl(g,0,s,0),c),p.ace.getSession().setScrollTop(parseInt(a,10)),n.diff()}function ww(n){const e=n.ace.getSession().doc.getAllLines(),t=[];return e.forEach(r=>{t.push(r.length+1)}),t}function vw(n,e,t,r,h){const u=n.editors[e];r<t&&(r=t);const p=`${h} ${r>t?"lines":"targetOnly"}`;r>t&&(r-=1),u.markers.push(u.ace.session.addMarker(new Rl(t,0,r,1),p,"fullLine"))}function bw(n){xw(n),Cw(n),BT(n)}function xw(n){n.editors.left.markers.forEach(e=>{n.editors.left.ace.getSession().removeMarker(e)},n),n.editors.right.markers.forEach(e=>{n.editors.right.ace.getSession().removeMarker(e)},n)}function HT(n,e,t,r,h){const u=n.editors.left.ace.getSession().getScrollTop(),p=n.editors.right.ace.getSession().getScrollTop();n.connectorYOffset=1;const w=-1,d=e*n.lineHeight-u+.5,g=n.gutterWidth+1,s=r*n.lineHeight-p+.5,c=-1,a=t*n.lineHeight-u+n.connectorYOffset+.5,l=n.gutterWidth+1,o=h*n.lineHeight-p+n.connectorYOffset+.5,f=uw(w,d,g,s),y=uw(l,o,c,a),v=`L${g},${s} ${l},${o}`,x=`L${c},${a} ${w},${d}`,M=`${f} ${v} ${y} ${x}`,A=document.createElementNS(jt.SVG_NS,"path");A.setAttribute("d",M),A.setAttribute("class",n.options.classes.connector),n.gutterSVG.appendChild(A)}function WT(n,e,t){if(e.leftEndLine>e.leftStartLine&&n.options.left.copyLinkEnabled){const r=pw({className:n.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*n.lineHeight,tooltip:"Copy to right",diffIndex:t,arrowContent:n.options.classes.newCodeConnectorLinkContent});n.copyRightContainer.appendChild(r)}if(e.rightEndLine>e.rightStartLine&&n.options.right.copyLinkEnabled){const r=pw({className:n.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*n.lineHeight,tooltip:"Copy to left",diffIndex:t,arrowContent:n.options.classes.deletedCodeConnectorLinkContent});n.copyLeftContainer.appendChild(r)}}function BT(n){const e=n.editors.left.ace.getSession().getScrollTop(),t=n.editors.right.ace.getSession().getScrollTop();n.copyRightContainer.style.cssText=`top: ${-e}px`,n.copyLeftContainer.style.cssText=`top: ${-t}px`}function _w(n,e,t,r,h){let u={};if(e===jt.DIFF_INSERT){let p=kw(n.editors.left,t,h),w=Sw(n.editors.right,r),d=Ks(n.editors.right,w);const g=Ks(n.editors.left,p.startLine);let s=w,c=p.startLine===p.endLine,a=0;(p.startChar>0||c&&h.length<g)&&d>0&&p.startChar<g&&a++,u={leftStartLine:p.startLine,leftEndLine:p.endLine+1,rightStartLine:s,rightEndLine:s+a}}else{let p=kw(n.editors.right,r,h),w=Sw(n.editors.left,t),d=Ks(n.editors.left,w);const g=Ks(n.editors.right,p.startLine);let s=w,c=p.startLine===p.endLine,a=0;(p.startChar>0||c&&h.length<g)&&d>0&&p.startChar<g&&a++,u={leftStartLine:s,leftEndLine:s+a,rightStartLine:p.startLine,rightEndLine:p.endLine+1}}return u}function kw(n,e,t){const r={startLine:0,startChar:0,endLine:0,endChar:0},h=e+t.length;let u=0,p=!1,w=!1;n.lineLengths.forEach((g,s)=>{u+=g,!p&&e<u&&(r.startLine=s,r.startChar=e-u+g,p=!0),!w&&h<=u&&(r.endLine=s,r.endChar=h-u+g,w=!0)}),r.startChar>0&&Ks(n,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const d=/\n$/.test(t);return r.startChar>0&&d&&r.endLine++,r}function Ks(n,e){return fw(n,e).length}function Sw(n,e){const t=n.ace.getSession().doc.getAllLines();let r=0,h=0;for(let u=0;u<t.length;u+=1)if(h+=t[u].length+1,e<h){r=u;break}return h>n.ace.getSession().getValue().length&&(r+=1),r}function $w(n){n.gutterHeight=document.getElementById(n.options.classes.gutterID).clientHeight,n.gutterWidth=document.getElementById(n.options.classes.gutterID).clientWidth;const e=Aw(n,jt.EDITOR_LEFT),t=Aw(n,jt.EDITOR_RIGHT),r=Math.max(e,t,n.gutterHeight);n.gutterSVG=document.createElementNS(jt.SVG_NS,"svg"),n.gutterSVG.setAttribute("width",n.gutterWidth),n.gutterSVG.setAttribute("height",r),document.getElementById(n.options.classes.gutterID).appendChild(n.gutterSVG)}function Aw(n,e){return(e===jt.EDITOR_LEFT?n.editors.left:n.editors.right).ace.getSession().getLength()*n.lineHeight}function jT(n){n.copyRightContainer=document.createElement("div"),n.copyRightContainer.setAttribute("class",n.options.classes.copyRightContainer),n.copyLeftContainer=document.createElement("div"),n.copyLeftContainer.setAttribute("class",n.options.classes.copyLeftContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyRightContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyLeftContainer)}function zT(n){document.getElementById(n.options.classes.gutterID).removeChild(n.gutterSVG),$w(n)}function UT(n){n.copyLeftContainer.innerHTML="",n.copyRightContainer.innerHTML=""}function VT(n,e){const t=[];function r(u){return n.options.diffGranularity===jt.DIFF_GRANULARITY_SPECIFIC?u<1:u<=1}e.forEach((u,p)=>{if(p===0){t.push(u);return}let w=!1;for(let d=0;d<t.length;d+=1)if(r(Math.abs(u.leftStartLine-t[d].leftEndLine))&&r(Math.abs(u.rightStartLine-t[d].rightEndLine))){t[d].leftStartLine=Math.min(u.leftStartLine,t[d].leftStartLine),t[d].rightStartLine=Math.min(u.rightStartLine,t[d].rightStartLine),t[d].leftEndLine=Math.max(u.leftEndLine,t[d].leftEndLine),t[d].rightEndLine=Math.max(u.rightEndLine,t[d].rightEndLine),w=!0;break}w||t.push(u)});const h=[];return t.forEach(u=>{u.leftStartLine===u.leftEndLine&&u.rightStartLine===u.rightEndLine||h.push(u)}),h}function Cw(n){zT(n),UT(n),n.diffs.forEach((e,t)=>{n.options.showDiffs&&(vw(n,jt.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,n.options.classes.diff),vw(n,jt.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,n.options.classes.diff),n.options.showConnectors&&HT(n,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),WT(n,e,t))},n)}const qT={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null}},mounted(){const n=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=oo.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),this.editor.focus()):(this.tab=1,this.differ=new Ml({element:this.$refs.editor,mode:new n,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let n=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;n>5&&(n-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(n),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let n=oo.require("ace/lib/oop"),e=oo.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,t=["VARIABLE"],r=new RegExp(`(\\b${t.join("\\b|\\b")}\\b)`),h=function(){e.call(this);for(let s in this.$rules)this.$rules[s].unshift({regex:r,token:"support.function"})};n.inherits(h,e);let u=oo.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,p=oo.require("ace/mode/behaviour/cstyle").CstyleBehaviour,w=oo.require("ace/mode/folding/ruby").FoldMode,d=function(){this.HighlightRules=h,this.$outdent=new u,this.$behaviour=new p,this.foldingRules=new w,this.indentKeywords=this.foldingRules.indentKeywords},g=oo.require("ace/mode/ruby").Mode;return n.inherits(d,g),(function(){this.$id="ace/mode/openc3"}).call(d.prototype),d},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
1422
|
+
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
1423
|
+
`)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(n=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
1424
|
+
`))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:rf(this.localVariables),plugin_txt_lines:n};this.$emit("callback",e)},close:function(){this.show=!this.show}}},GT={style:{flex:"1"}},YT={class:"pa-3"},KT={ref:"editor",class:"editor"},QT={ref:"editor",class:"editor"},ZT={key:0};function JT(n,e,t,r,h,u){const p=Se("v-card-title"),w=Se("v-icon"),d=Se("v-row"),g=Se("v-tab"),s=Se("v-tabs"),c=Se("v-text-field"),a=Se("v-col"),l=Se("v-window-item"),o=Se("v-window"),f=Se("v-btn"),y=Se("v-spacer"),v=Se("v-card-actions"),x=Se("v-card-text"),M=Se("v-card"),A=Se("v-dialog");return Pe(),kt(A,{persistent:"",modelValue:u.show,"onUpdate:modelValue":e[3]||(e[3]=k=>u.show=k),width:"80vw"},{default:xe(()=>[_e(M,null,{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(p,null,{default:xe(()=>[pt(Kt(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(Pe(),kt(d,{key:0,class:"notice d-flex flex-row"},{default:xe(()=>[_e(w,{size:"x-large",start:"",color:"yellow"},{default:xe(()=>e[4]||(e[4]=[pt(" mdi-alert-box ")])),_:1}),Dn("div",GT," The existing plugin.txt is different from the "+Kt(t.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+Kt(t.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):rr("",!0),_e(d,{class:"pb-3 pr-3"},{default:xe(()=>[_e(s,{modelValue:h.tab,"onUpdate:modelValue":e[0]||(e[0]=k=>h.tab=k),class:"ml-3"},{default:xe(()=>[(Pe(),kt(g,{key:0},{default:xe(()=>e[5]||(e[5]=[pt(" Variables ")])),_:1})),(Pe(),kt(g,{key:1},{default:xe(()=>e[6]||(e[6]=[pt(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),Dn("form",{onSubmit:e[2]||(e[2]=Na((...k)=>n.onSubmit&&n.onSubmit(...k),["prevent"]))},[_e(o,{modelValue:h.tab,"onUpdate:modelValue":e[1]||(e[1]=k=>h.tab=k)},{default:xe(()=>[(Pe(),kt(l,{key:0,eager:"true",class:"tab"},{default:xe(()=>[Dn("div",YT,[_e(d,{class:"mt-3"},{default:xe(()=>[(Pe(!0),Dt(Nr,null,Gr(h.localVariables,(k,b)=>(Pe(),Dt("div",{key:b},[_e(a,{style:{width:"220px"}},{default:xe(()=>[_e(c,{clearable:"",type:"text",label:b,modelValue:h.localVariables[b],"onUpdate:modelValue":T=>h.localVariables[b]=T},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(Pe(),kt(l,{key:"1-new",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[7]||(e[7]=[pt(" This can be edited before installation. ")])),_:1})]),_:1}),Dn("pre",KT,null,512)]),_:1})):(Pe(),kt(l,{key:"1-existing",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[8]||(e[8]=[pt(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),_e(a,{class:"ml-6"},{default:xe(()=>e[9]||(e[9]=[pt(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),Dn("pre",QT,null,512)]),_:1}))]),_:1},8,["modelValue"]),_e(v,{class:"px-2 mt-2"},{default:xe(()=>[t.existingPluginTxt!==null?(Pe(),Dt("div",ZT,[_e(f,{variant:"text",onClick:u.nextDiff},{default:xe(()=>e[10]||(e[10]=[pt(" Next Diff ")])),_:1},8,["onClick"]),_e(f,{variant:"text",onClick:u.previousDiff},{default:xe(()=>e[11]||(e[11]=[pt(" Previous Diff ")])),_:1},8,["onClick"])])):rr("",!0),_e(y),_e(f,{variant:"outlined",onClick:Na(u.close,["prevent"]),"data-test":"edit-cancel"},{default:xe(()=>e[12]||(e[12]=[pt(" Cancel ")])),_:1},8,["onClick"]),_e(f,{variant:"flat",onClick:u.submit,"data-test":"edit-submit"},{default:xe(()=>e[13]||(e[13]=[pt(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const vD=On("x",Yr(qT,[["render",JT],["__scopeId","data-v-4a504453"]])),XT=Vh.find(n=>n.name==="PluginsTab"),Tw=[{path:"/",component:OT,children:[{component:XT.component,path:""},...Vh]},{path:"/:pathMatch(.*)*",name:"NotFound",component:xT}];Tw.forEach(bf);const eE=pf({history:gf(),routes:Tw}),tE={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"}},nE={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,e,t){this.params=n,this.show=!0,this.resolve=e,this.reject=t},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},rE=["innerHTML"],iE={key:2},oE={key:3,class:"validate mt-4"};function sE(n,e,t,r,h,u){const p=Se("v-spacer"),w=Se("v-toolbar"),d=Se("v-icon"),g=Se("v-text-field"),s=Se("v-card-text"),c=Se("v-btn"),a=Se("v-card-actions"),l=Se("v-card"),o=Se("v-dialog"),f=Se("v-app");return Pe(),kt(f,null,{default:xe(()=>[_e(o,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=y=>n.show=y),width:"600"},{default:xe(()=>[_e(l,null,{default:xe(()=>[_e(w,{height:"24"},{default:xe(()=>[_e(p),Dn("span",null,Kt(n.params.title),1),_e(p)]),_:1}),_e(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(Pe(),kt(d,{key:0,class:"mr-2"},{default:xe(()=>e[2]||(e[2]=[pt(" mdi-alert ")])),_:1})):rr("",!0),n.params.html?(Pe(),Dt("span",{key:1,innerHTML:n.params.text},null,8,rE)):(Pe(),Dt("span",iE,Kt(n.params.text),1)),n.params.validateText?(Pe(),Dt("div",oE,[pt(" Enter "+Kt(n.params.validateText)+" to confirm! ",1),_e(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=y=>n.validationText=y),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):rr("",!0)]),_:1}),_e(a,{class:"px-2"},{default:xe(()=>[_e(p),n.params.cancelText?(Pe(),kt(c,{key:0,variant:"outlined","data-test":u.dataTestCancel,onClick:u.cancel},{default:xe(()=>[pt(Kt(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):rr("",!0),_e(c,{variant:"flat",color:n.params.okClass,"data-test":u.dataTestOk,onClick:u.ok},{default:xe(()=>[pt(Kt(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const aE=Yr(nE,[["render",sE],["__scopeId","data-v-581c0293"]]);class lE{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(aE);e.use(Kh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({title:e,text:t,okText:r,okClass:h,validateText:u,cancelText:p,html:w}){return this.mount(),new Promise((d,g)=>{this.$root.dialog({title:e,text:t,okText:r,okClass:h,validateText:u,cancelText:p,html:w},d,g)})}confirm(e,{okText:t="Ok",cancelText:r="Cancel",okClass:h="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:h,validateText:null,cancelText:r,html:!1})}alert(e,{okText:t="Ok",html:r=!1,okClass:h="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:h,validateText:null,cancelText:null,html:r})}validate(e,{okText:t="Ok",validateText:r="CONFIRM",cancelText:h="Cancel",okClass:u="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:u,validateText:r,cancelText:h,html:!1})}}const cE={install(n,e){const t=new lE;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},uE={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1425
|
+
--toast-bg-color:${Uh[this.toastNotification.level]};
|
1426
|
+
--toast-fg-color:${hT(this.toastNotification.level)};
|
1427
|
+
`},contentStyle:function(){return`
|
1428
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
1429
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
1430
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1431
|
+
`}},methods:{toast:function(n,e){this.noToastPaths.includes(window.location.pathname)||(e===void 0&&(e=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),e&&(this.timeout=setTimeout(()=>{this.hide()},e)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},hE={key:0,class:"text-subtitle-1 mr-1 notification-text"},dE={key:1,class:"text-body-2 notification-text"},fE={key:2,class:"text-body-2 notification-text"};function pE(n,e,t,r,h,u){const p=Se("v-icon"),w=Se("v-spacer"),d=Se("v-btn"),g=Se("v-sheet"),s=Se("v-slide-y-transition");return Pe(),kt(s,null,{default:xe(()=>[df(_e(g,{style:eo(u.toastStyle),class:"toast-notification",onClick:u.expand},{default:xe(()=>[_e(p,{class:"mr-1 notification-text"},{default:xe(()=>[pt(Kt(u.toastNotificationIcon),1)]),_:1}),Dn("div",{class:"toast-content",style:eo(u.contentStyle)},[n.toastNotification.title?(Pe(),Dt("span",hE,Kt(n.toastNotification.title)+": ",1)):rr("",!0),n.toastNotification.body?(Pe(),Dt("span",dE,Kt(n.toastNotification.body),1)):rr("",!0),n.toastNotification.message?(Pe(),Dt("span",fE,Kt(n.toastNotification.message),1)):rr("",!0)],4),_e(w),_e(d,{variant:"text",onClick:Na(u.hide,["stop"]),class:"notification-text"},{default:xe(()=>e[0]||(e[0]=[pt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[ff,n.showToast]])]),_:1})}const gE=Yr(uE,[["render",pE],["__scopeId","data-v-b0459ba8"]]);class mE{constructor(e={}){var t;this.$store=e.store,this.mounted=!1,this.$root=null,(t=window.$cosmosNotify)!=null&&t.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const e=Hc(gE);e.use(Kh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({method:e,title:t,body:r,message:h,level:u,duration:p,type:w="alert",logToConsole:d=!1,saveToHistory:g=!0}){this.mount(),d&&console.log(h?`${u.toUpperCase()} - ${h}`:`${u.toUpperCase()} - ${t}: ${r}`),g&&this.$store.commit("notifyAddHistory",{title:t,body:r,message:h,level:u}),this[e]({title:t,body:r,message:h,level:u,duration:p,type:w})}toast({title:e,body:t,message:r,level:h,duration:u,type:p}){this.$root.toast({title:e,body:t,message:r,level:h,type:p},u)}critical({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"critical",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"serious",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}caution({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"caution",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}WARN(e){this.caution(e)}normal({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"normal",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"standby",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}off({title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w}){this.open({method:"toast",level:"off",title:e,body:t,message:r,type:h,duration:u,logToConsole:p,saveToHistory:w})}}const yE={install(n,e){const t=new mE(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},Ew=100,Rw=yf({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory:(n,e)=>{n.notifyHistory.length>=Ew&&(n.notifyHistory.length=Ew-1),n.notifyHistory.unshift(e)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,e)=>{Object.assign(n.namedWidgets,e)},clearNamedWidget:(n,e)=>{delete n.namedWidgets[e]}},modules:{}});function Mw(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function wE(n,e){const t={},r=new Set(Object.keys(n));for(const h of e)r.has(h)&&(t[h]=n[h]);return t}function Lw(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const r={};for(const h in n)r[h]=n[h];for(const h in e){const u=n[h],p=e[h];if(Mw(u)&&Mw(p)){r[h]=Lw(u,p,t);continue}if(t&&Array.isArray(u)&&Array.isArray(p)){r[h]=t(u,p);continue}r[h]=p}return r}function Qs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Qs.cache.has(n))return Qs.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Qs.cache.set(n,e),e}Qs.cache=new Map;function vE(n){sf(`Vuetify: ${n}`)}function Iw(n,e){return t=>Object.keys(n).reduce((r,h)=>{const u=typeof n[h]=="object"&&n[h]!=null&&!Array.isArray(n[h])?n[h]:{type:n[h]};return t&&h in t?r[h]={...u,default:t[h]}:r[h]=u,e&&!r[h].source&&(r[h].source=e),r},{})}function Ow(n,e){const t=uf();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function bE(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ow("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const Yh=Symbol.for("vuetify:defaults");function Dw(){const n=af(Yh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function xE(n,e){var t,r;return typeof((t=n.props)==null?void 0:t[e])<"u"||typeof((r=n.props)==null?void 0:r[Qs(e)])<"u"}function _E(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dw();const r=Ow("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const h=Pc(()=>{var d;return(d=t.value)==null?void 0:d[n._as??e]}),u=new Proxy(n,{get(d,g){var s,c,a,l,o,f,y;const v=Reflect.get(d,g);return g==="class"||g==="style"?[(s=h.value)==null?void 0:s[g],v].filter(x=>x!=null):typeof g=="string"&&!xE(r.vnode,g)?((c=h.value)==null?void 0:c[g])!==void 0?(a=h.value)==null?void 0:a[g]:((o=(l=t.value)==null?void 0:l.global)==null?void 0:o[g])!==void 0?(y=(f=t.value)==null?void 0:f.global)==null?void 0:y[g]:v:v}}),p=lf();cf(()=>{if(h.value){const d=Object.entries(h.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});p.value=d.length?Object.fromEntries(d):void 0}else p.value=void 0});function w(){const d=bE(Yh,r);hf(Yh,Pc(()=>p.value?Lw((d==null?void 0:d.value)??{},p.value):d==null?void 0:d.value))}return{props:u,provideSubDefaults:w}}function Ll(n){if(n._setup=n._setup??n.setup,!n.name)return vE("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Iw(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return wE(t,e)},n.props._as=String,n.setup=function(t,r){const h=Dw();if(!h.value)return n._setup(t,r);const{props:u,provideSubDefaults:p}=_E(t,t._as??n.name,h),w=n._setup(u,r);return p(),w}}return n}function kE(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?Ll:of)(e)}const SE=[String,Function,Object,Array],Il=Iw({icon:{type:SE},tag:{type:String,required:!0}},"icon");kE()({name:"VComponentIcon",props:Il(),setup(n,e){let{slots:t}=e;return()=>{const r=n.icon;return _e(n.tag,null,{default:()=>{var h;return[n.icon?_e(r,null,null):(h=t.default)==null?void 0:h.call(t)]}})}}}),Ll({name:"VSvgIcon",inheritAttrs:!1,props:Il(),setup(n,e){let{attrs:t}=e;return()=>_e(n.tag,Cs(t,{style:null}),{default:()=>[_e("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?_e("path",{d:r[0],"fill-opacity":r[1]},null):_e("path",{d:r},null)):_e("path",{d:n.icon},null)])]})}}),Ll({name:"VLigatureIcon",props:Il(),setup(n){return()=>_e(n.tag,null,{default:()=>[n.icon]})}});const $E=Ll({name:"VClassIcon",props:Il(),setup(n){return()=>_e(n.tag,{class:n.icon},null)}}),AE={component:n=>As($E,{...n,class:"mdi"})},Kh=wf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:tE}},icons:{defaultSet:"mdi",sets:{mdi:AE,...fT}}}),Qh=Ev({createApp:Hc,appOptions:{render(){return As(Fv,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(eE),n.use(Rw),n.use(Kh),n.use(cE),n.use(yE,{store:Rw})}}),bD=On("e",Qh.bootstrap),xD=On("m",Qh.mount),_D=On("f",Qh.unmount)}}});
|