openc3-cosmos-tool-scriptrunner 6.0.2 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/scriptrunner/{ArrayWidget-DBpEoQ1y-49d96d0b09f2d53606b4.js → ArrayWidget-BxEO5hEG-ead7c1c7c94d72a01f25.js} +2 -2
- data/tools/scriptrunner/ArrayplotWidget-B_VPoV4v-806e26259e495e4a7e7f.js +1 -0
- data/tools/scriptrunner/{BarColumn-B6tCmNJm-39e71e42939f3d10e073.js → BarColumn-C9dkpg2O-fbb489c5b003447ddee2.js} +1 -1
- data/tools/scriptrunner/BlockWidget-CuefOin6-2e7dfeafb154b642df3c.js +2 -0
- data/tools/scriptrunner/{ButtonWidget-CHrHS_Bw-316bf50d6d1c0f4a9823.js → ButtonWidget-B6HM0Doo-d005273b23873ae26eda.js} +2 -2
- data/tools/scriptrunner/CanvasWidget-DZQGG-yQ-894924fb59718fc23d06.js +1 -0
- data/tools/scriptrunner/CanvasdotWidget-6wuCSnw_-a6ca7bc18f60fce7719f.js +1 -0
- data/tools/scriptrunner/{CanvasimageWidget-BrYlPQCf-179b1ea5195189c07639.js → CanvasimageWidget-mhcPpAuN-1a1f851a9a41fcf6c733.js} +1 -1
- data/tools/scriptrunner/{CanvasimagevalueWidget-HnEOXmZy-8868016071abb108b0d9.js → CanvasimagevalueWidget-Cx-dH8Gc-12a4c60baf07c5b8e6ee.js} +1 -1
- data/tools/scriptrunner/CanvaslabelWidget-CQZCeohU-e980c378d26286583638.js +1 -0
- data/tools/scriptrunner/{CanvaslabelvalueWidget-0zRDJav3-71faeab0c96508b78376.js → CanvaslabelvalueWidget-CwmYDCjr-ae8bba1e091b4f2f5511.js} +1 -1
- data/tools/scriptrunner/CanvaslineWidget-nTP3fJB4-971cf3abdbc73dd73ed3.js +1 -0
- data/tools/scriptrunner/CanvaslinevalueWidget-C3sJnjLQ-bbb3d3bebbb53d2f37f1.js +1 -0
- data/tools/scriptrunner/CheckbuttonWidget-5-8YDsQL-c48610df9e187296d930.js +1 -0
- data/tools/scriptrunner/{ComboboxWidget-BykAAoxH-d4ed06756123e801a5b6.js → ComboboxWidget-DzBL8h9f-c587623a19945e52745d.js} +1 -1
- data/tools/scriptrunner/{CriticalCmdDialog-CAcGOWok-f35747471c4e19033e2c.js → CriticalCmdDialog-DLEasFsx-62fa5db3da14e27de0d4.js} +1 -1
- data/tools/scriptrunner/{DateWidget-FtYD86xW-5054c8acf61b84970ba8.js → DateWidget-CW7Od7lB-4108a1baf9b43aa4dfbe.js} +1 -1
- data/tools/scriptrunner/{DetailsDialog-DiVcC3Fg-c70d632fbf418bfd55bd.js → DetailsDialog-BvbziA7Y-9b378ec53ddb57f355da.js} +1 -1
- data/tools/scriptrunner/{DynamicWidget-m9EliUR2-176097c7edd7f31107c7.js → DynamicWidget-gFSYxzvT-33d561dfbdea13148312.js} +1 -1
- data/tools/scriptrunner/{FormatvalueWidget-OykwwCrw-64f7e0ed3ca32f1d7176.js → FormatvalueWidget-CGpnTqVH-9c3e7456e9d1c37af3f7.js} +1 -1
- data/tools/scriptrunner/Graph-3rkhFP3G-88ae99f4cc3dce50617c.js +1 -0
- data/tools/scriptrunner/GraphWidget-Dycey-mj-8059a183566b157bade7.js +1 -0
- data/tools/scriptrunner/{HorizontalWidget-B7YdcFVN-2325176db30708d31e14.js → HorizontalWidget-D31NRWy5-e888b42c390818542848.js} +1 -1
- data/tools/scriptrunner/{HorizontalboxWidget-D-kCNwI3-4b6c41283de618d833a1.js → HorizontalboxWidget-Br8dSVHD-4cfbf1eb02b3f84138dc.js} +1 -1
- data/tools/scriptrunner/HorizontallineWidget-CbxREBYI-75dec7e530974c61a1e5.js +1 -0
- data/tools/scriptrunner/IframeWidget-Ctj8OIcG-3d019032b58dfdefd7d0.js +1 -0
- data/tools/scriptrunner/ImageLoader-BrNrCBvi-6ab161d34aed75d5586e.js +1 -0
- data/tools/scriptrunner/{ImageviewerWidget-B4HbUIfR-e1f10671abe8105a62c4.js → ImageviewerWidget-XrsqxmLo-f64a89cc33d47fd955bd.js} +1 -1
- data/tools/scriptrunner/{LabelWidget-D1JhQAzR-4524acbda5f1de768413.js → LabelWidget-t7I87dp7-1315eaa811930b2233e6.js} +1 -1
- data/tools/scriptrunner/{LabelledWidget-C2VGJ5OJ-3a9fec9e282b149881c0.js → LabelledWidget-C7TDf92M-724ad7815bc212f67e35.js} +1 -1
- data/tools/scriptrunner/{LabelprogressbarWidget-DN0cAeLK-3585c4ce60eb5b2d1095.js → LabelprogressbarWidget-wwLURt1u-a432c9a5b474cf5b6e7c.js} +1 -1
- data/tools/scriptrunner/LabelsparklineWidget-B3awLUyP-e4a0816a04321e38df49.js +1 -0
- data/tools/scriptrunner/LabelvalueWidget-Zx_yHCtl-4c0c4e0ac8ae39bed5d8.js +1 -0
- data/tools/scriptrunner/{LabelvaluedescWidget-DtJwggDu-3380078f5847cfdc450a.js → LabelvaluedescWidget-BBSBh4vI-f984876107c06543c3fb.js} +1 -1
- data/tools/scriptrunner/LabelvaluelimitsbarWidget-CZueHYWG-f6cf6c917f8c67a6eba5.js +1 -0
- data/tools/scriptrunner/LabelvaluelimitscolumnWidget-BTvzyQMq-2cdc4af80e2a87e9dd3c.js +1 -0
- data/tools/scriptrunner/{LabelvaluerangebarWidget-DCJ42bmf-883644ba0a4816f4c01e.js → LabelvaluerangebarWidget-BhYTBgDq-6c2e0fda9184e2208746.js} +1 -1
- data/tools/scriptrunner/{Layout-D4YBjuWs-b2c07658d90efa6c9a67.js → Layout-Bh7VzCZd-20c6f8db2d075e169f19.js} +1 -1
- data/tools/scriptrunner/LedWidget-CxJjJBBS-e3af37bbf00cede52525.js +1 -0
- data/tools/scriptrunner/{LimitsbarWidget-D-wfz_St-1776d291455aa7caa6a3.js → LimitsbarWidget-Djui0IpK-f2c539db7a9ad3b89fb8.js} +1 -1
- data/tools/scriptrunner/LimitscolorWidget-DdmvKzmx-40498c140bc11d03e41d.js +1 -0
- data/tools/scriptrunner/{LimitscolumnWidget-Dt5ce4hN-218db7cc69303b16ed96.js → LimitscolumnWidget-Cc19IEjq-ad17693f30efe09b8fa1.js} +1 -1
- data/tools/scriptrunner/LinegraphWidget-BtieJxeL-42b1ce28200be8efef14.js +1 -0
- data/tools/scriptrunner/{MatrixbycolumnsWidget-wLx4NvXV-6fba40d9f4f218beccfa.js → MatrixbycolumnsWidget-DnExVRF8-14726b7f439cc0f5a4e8.js} +1 -1
- data/tools/scriptrunner/{ProgressbarWidget-B7l0BBiX-6b9205abce83d0f44786.js → ProgressbarWidget-DIfqhHRE-7b0c17e686f27b32e7a2.js} +1 -1
- data/tools/scriptrunner/RadiobuttonWidget-QzIkNP7m-67844f83fea794baf396.js +1 -0
- data/tools/scriptrunner/{RadiogroupWidget-Busjqikr-9969e19cc3971c45ea7a.js → RadiogroupWidget-Ci9sCX39-adf16959ef5dea69675d.js} +1 -1
- data/tools/scriptrunner/{RangebarWidget-DbYrwEfC-a92312aa245b03dc1b13.js → RangebarWidget-CN0YuHqy-e42497ee9496c3b154c6.js} +1 -1
- data/tools/scriptrunner/{RollupWidget-rKxLXuCv-4b6cf1cabac7f65c6b00.js → RollupWidget-y4jBtJB2-b365d016bbec0e14bf6f.js} +1 -1
- data/tools/scriptrunner/ScriptRunner-9cfa2fbbc410498eeb86.js +97 -0
- data/tools/scriptrunner/{ScrollwindowWidget-D4NKIzQO-7ddaef53be1a328cc6c4.js → ScrollwindowWidget-CBzYk4Y3-8ba1e2df0c774f559d80.js} +1 -1
- data/tools/scriptrunner/{SignalWidget-h-oivReC-9728dd31a8309f9a6bb1.js → SignalWidget-DQ5Uc2uV-bec676f52a80f693ffb0.js} +1 -1
- data/tools/scriptrunner/SpacerWidget-6rsc_dSM-35b1c7d8fde745bcec57.js +1 -0
- data/tools/scriptrunner/SparklineWidget-CZtvu2ss-5f6d3fbeb1363f8c025e.js +1 -0
- data/tools/scriptrunner/TabbookWidget-DNALU0jl-fa9b45c7d1d46bd0da6d.js +1 -0
- data/tools/scriptrunner/TextboxWidget-5hqPj74D-c06475767d41689a2ed0.js +1 -0
- data/tools/scriptrunner/{TextfieldWidget-aVRdXRsT-a941d09442846446a348.js → TextfieldWidget-Df0ANSiU-17e3086885e55a815dd5.js} +1 -1
- data/tools/scriptrunner/TimeWidget-C6XQMUG2-12aaccac719f15c27589.js +1 -0
- data/tools/scriptrunner/TitleWidget-B9SPUlbW-de561684727a4e247b6f.js +1 -0
- data/tools/scriptrunner/VWidget-C4spAawK-481dafde19f6dd3512b9.js +1 -0
- data/tools/scriptrunner/ValueWidget-D4RrYVEK-4dee1ed5cb87c7c544af.js +1 -0
- data/tools/scriptrunner/ValuelimitsbarWidget-Bc9_Vj_f-6acbb385894e7b8a4799.js +1 -0
- data/tools/scriptrunner/ValuelimitscolumnWidget-DHKIL7sf-837bdd9ac2eecfd6b717.js +1 -0
- data/tools/scriptrunner/ValuerangebarWidget-CecQRIok-9315e926a735f48db354.js +1 -0
- data/tools/scriptrunner/{VerticalWidget-DziyURNu-bc30c452165476a9094e.js → VerticalWidget-D8jUFxjS-af081d2ee73b78acdc7d.js} +1 -1
- data/tools/scriptrunner/VerticalboxWidget-B4eGUSYH-442cfd2d4b32e7b4536b.js +1 -0
- data/tools/scriptrunner/{Widget-C7ms_xDE-be420af1516fb17191cb.js → Widget-fRCERxGf-5c8646a273d07a19dca9.js} +1 -1
- data/tools/scriptrunner/addMonths-BtG7uZLJ-cf31e98fce9cd8911736.js +1 -0
- data/tools/scriptrunner/main-34ed890e1d26d8bce225.js +1426 -0
- data/tools/scriptrunner/main.js +1 -1
- metadata +71 -69
- data/tools/scriptrunner/BlockWidget-Bmi0UcUW-9aede31c9381490863a5.js +0 -2
- data/tools/scriptrunner/CanvasWidget-BqdyLbQz-67c02d2047f8f9b18018.js +0 -1
- data/tools/scriptrunner/CanvasdotWidget-YYwca104-bb7953ea0bf5e6cc6500.js +0 -1
- data/tools/scriptrunner/CanvaslabelWidget-BfMHNei--b5680b46a874802c7b08.js +0 -1
- data/tools/scriptrunner/CanvaslineWidget-BmOwJP_G-5c9d174da10c00dac8b8.js +0 -1
- data/tools/scriptrunner/CanvaslinevalueWidget-H3L1aUKM-8bd67ad86f5d8d622308.js +0 -1
- data/tools/scriptrunner/CheckbuttonWidget-BnT9X7wE-835a1c528c0aa8cc0a5f.js +0 -1
- data/tools/scriptrunner/GraphWidget-BohHW-97-6c30518edb10899a3409.js +0 -1
- data/tools/scriptrunner/HorizontallineWidget-BdlNB951-4463e518dcd3f253f0f9.js +0 -1
- data/tools/scriptrunner/IframeWidget-0C7GYEVc-2db13bb5a197eead9b2f.js +0 -1
- data/tools/scriptrunner/ImageLoader-y6fAZe9P-3b44a478d722d3b1433a.js +0 -1
- data/tools/scriptrunner/LabelsparklineWidget--sxBENxs-4b6ffc3d8c0935e3d962.js +0 -1
- data/tools/scriptrunner/LabelvalueWidget-BWpP5KX6-6158c8705590b5d0db83.js +0 -1
- data/tools/scriptrunner/LabelvaluelimitsbarWidget-Bj6UVK-5-d78b2f0f044fa7763e04.js +0 -1
- data/tools/scriptrunner/LabelvaluelimitscolumnWidget-BVcEEcUx-30adf8dd0eb5e380ecbc.js +0 -1
- data/tools/scriptrunner/LedWidget-hN9JHxjr-3a82ce913a769303459f.js +0 -1
- data/tools/scriptrunner/LimitscolorWidget-B0AVGdkz-e7b5b0c15d63211f2578.js +0 -1
- data/tools/scriptrunner/LinegraphWidget-CTjtvtPd-448bbb6dbbd6c2d3c4a9.js +0 -1
- data/tools/scriptrunner/RadiobuttonWidget-B032jKIw-7652159c15bfe178dcdc.js +0 -1
- data/tools/scriptrunner/ScriptRunner-814081093096ba287249.js +0 -96
- data/tools/scriptrunner/SpacerWidget-BSy9eOlB-4659cad2b465a988f93e.js +0 -1
- data/tools/scriptrunner/SparklineWidget-C9vdxar--2344ac77af139beda7a2.js +0 -1
- data/tools/scriptrunner/TabbookWidget-DTFTKURm-8eb93528ffe9023b2c14.js +0 -1
- data/tools/scriptrunner/TextboxWidget-BZyYHmBq-f559932ee0b9f9ca332a.js +0 -1
- data/tools/scriptrunner/TimeWidget-BE2rtMxg-7c12959bb6f693906fc5.js +0 -1
- data/tools/scriptrunner/TitleWidget-BB29MZb2-b23a04535efc19f1beaa.js +0 -1
- data/tools/scriptrunner/VWidget-CGdM4sTw-bf3b388e737f5fe1fca2.js +0 -1
- data/tools/scriptrunner/ValueWidget-h3905woQ-d9e293e578f0400d835d.js +0 -1
- data/tools/scriptrunner/ValuelimitsbarWidget-LMXYjWtS-34847311d98ca0e0a500.js +0 -1
- data/tools/scriptrunner/ValuelimitscolumnWidget-gA3ZcfAT-e0bcb4c083ddf76a5959.js +0 -1
- data/tools/scriptrunner/ValuerangebarWidget-DwZ9KQ0O-ea17af9b7ee0faf5a82f.js +0 -1
- data/tools/scriptrunner/VerticalboxWidget-OcoZBsFU-72021996d9be3517bd60.js +0 -1
- data/tools/scriptrunner/addMonths-BdRI44Cs-4ce6b03736dc97c1c56a.js +0 -1
- data/tools/scriptrunner/main-fb05c0535d7089754e6f.js +0 -1425
@@ -0,0 +1,1426 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(dn,De){"use strict";var Ie,on,At,xe,me,rf,_s,Er,No,Vn,bt,ot,Lt,Ji,ai,zr,Br,li,of,sf,af,lf,cf,uf,Dc,hf,df,ff,pf,Nc,gf,mf,yf,vf,wf,bf;return{setters:[et=>{Ie=et.resolveComponent,on=et.createBlock,At=et.openBlock,xe=et.withCtx,me=et.createVNode,rf=et.defineAsyncComponent,_s=et.h,Er=et.createElementBlock,No=et.normalizeStyle,Vn=et.createCommentVNode,bt=et.createTextVNode,ot=et.createElementVNode,Lt=et.toDisplayString,Ji=et.withModifiers,ai=et.withDirectives,zr=et.normalizeProps,Br=et.guardReactiveProps,li=et.vShow,of=et.withKeys,sf=et.Fragment,af=et.renderList,lf=et.defineComponent,cf=et.warn,uf=et.inject,Dc=et.computed,hf=et.shallowRef,df=et.watchEffect,ff=et.getCurrentInstance,pf=et.provide,Nc=et.createApp,gf=et.mergeProps},et=>{mf=et.createRouter,yf=et.createWebHistory},et=>{vf=et.getMountedApps},et=>{wf=et.createStore},et=>{bf=et.createVuetify}],execute:function(){dn({$:Sf,A:Nn,a:ro,c:ET,l:Ut,y:fn,z:Vh});var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),t.push.apply(t,r)}return t}function eo(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?xf(Object(t),!0).forEach(function(r){y0(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function y0(n,e,t){return(e=function(r){var d=function(f,y){if(to(f)!=="object"||f===null)return f;var w=f[Symbol.toPrimitive];if(w!==void 0){var h=w.call(f,y);if(to(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(f)}(r,"string");return to(d)==="symbol"?d:String(d)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function to(n){return to=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},to(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,d=String(t),f=d.length,y=-1,w="",h=d.charCodeAt(0);++y<f;)(r=d.charCodeAt(y))!=0?w+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&f==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+d.charAt(y):d.charAt(y):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=e})(et);var v0={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function w0(n){if(to(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=eo(eo({},v0),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(to(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:b0.bind(null,e,t),mount:x0.bind(null,e,t),unmount:C0.bind(null,e,t),update:A0.bind(null,e,t)}}function b0(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function x0(n,e,t){var r={};return Promise.resolve().then(function(){return function(d,f){return typeof d.appOptions=="function"?d.appOptions(f):Promise.resolve(eo({},d.appOptions))}(n,t).then(function(d){var f;if(t.domElement&&!d.el&&(d.el=t.domElement),d.el)if(typeof d.el=="string"){if(!(f=document.querySelector(d.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(d.el))}else(f=d.el).id||(f.id="single-spa-application:".concat(t.name)),d.el="#".concat(CSS.escape(f.id));else{var y="single-spa-application:".concat(t.name);d.el="#".concat(CSS.escape(y)),(f=document.getElementById(y))||((f=document.createElement("div")).id=y,document.body.appendChild(f))}if(!n.replaceMode&&(d.el=d.el+" .single-spa-container",!f.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",f.appendChild(w)}r.domEl=f,d.render||d.template||!n.rootComponent||(d.render=function(p){return p(n.rootComponent)}),d.data||(d.data={});var h=d.data;if(d.data=function(){return eo(eo({},typeof h=="function"?h.call(this,this):h),t)},n.createApp){if(r.vueInstance=n.createApp(d),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(d.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(d.el)}else if(r.vueInstance=new n.Vue(d),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 A0(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],d=eo(eo({},n.appOptions.data||{}),t),f=r.root||r.vueInstance;for(var y in d)f[y]=d[y]})}function C0(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 k0=dn("_",(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t}),_0={};function S0(n,e){const t=Ie("router-view"),r=Ie("v-app");return At(),on(r,{id:"innerapp"},{default:xe(()=>[me(t)]),_:1})}const $0=k0(_0,[["render",S0]]),H2="modulepreload",z2=function(n){return"/"+n},B2={},Ne=function(e,t,r){let d=Promise.resolve();function f(y){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=y,window.dispatchEvent(w),!w.defaultPrevented)throw y}return d.then(y=>{for(const w of y||[])w.status==="rejected"&&f(w.reason);return e().catch(f)})},Af=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/scriptrunner/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(Af)},ci=dn("s",(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t}),Oa=6e4,Fc=36e5,T0=1e3,Cf=Symbol.for("constructDateFrom");function fn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&Cf in n?n[Cf](e):n instanceof Date?new n.constructor(e):new Date(e)}function Ut(n,e){return fn(e||n,n)}let I0={};function Fo(){return I0}function Ti(n,e){var t,r,d,f;const y=Fo(),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)??y.weekStartsOn??((f=(d=y.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,h=Ut(n,e==null?void 0:e.in),p=h.getDay(),s=(p<w?7:0)+p-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function Wo(n,e){return Ti(n,{...e,weekStartsOn:1})}function kf(n,e){const t=Ut(n,void 0),r=t.getFullYear(),d=fn(t,0);d.setFullYear(r+1,0,4),d.setHours(0,0,0,0);const f=Wo(d),y=fn(t,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const w=Wo(y);return t.getTime()>=f.getTime()?r+1:t.getTime()>=w.getTime()?r:r-1}function Da(n){const e=Ut(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 E0(n,...e){const t=fn.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function _f(n,e){const t=Ut(n,void 0);return t.setHours(0,0,0,0),t}function R0(n,e,t){const[r,d]=E0(void 0,n,e),f=_f(r),y=_f(d),w=+f-Da(f),h=+y-Da(y);return Math.round((w-h)/864e5)}function M0(n,e){const t=kf(n),r=fn(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Wo(r)}function L0(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Sf(n){return!(!L0(n)&&typeof n!="number"||isNaN(+Ut(n)))}function O0(n,e){const t=Ut(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const D0={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"}},N0=(n,e,t)=>{let r;const d=D0[n];return typeof d=="string"?r=d:e===1?r=d.one:r=d.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Wc(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const F0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},W0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},P0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H0={date:Wc({formats:F0,defaultWidth:"full"}),time:Wc({formats:W0,defaultWidth:"full"}),dateTime:Wc({formats:P0,defaultWidth:"full"})},z0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B0=(n,e,t,r)=>z0[n];function Ss(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let d;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,w=t!=null&&t.width?String(t.width):y;d=n.formattingValues[w]||n.formattingValues[y]}else{const y=n.defaultWidth,w=t!=null&&t.width?String(t.width):n.defaultWidth;d=n.values[w]||n.values[y]}const f=n.argumentCallback?n.argumentCallback(e):e;return d[f]}}const j0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},V0={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"]},q0={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"]},G0={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"}},Y0={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"}},K0=(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"},Q0={ordinalNumber:K0,era:Ss({values:j0,defaultWidth:"wide"}),quarter:Ss({values:U0,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ss({values:V0,defaultWidth:"wide"}),day:Ss({values:q0,defaultWidth:"wide"}),dayPeriod:Ss({values:G0,defaultWidth:"wide",formattingValues:Y0,defaultFormattingWidth:"wide"})};function $s(n){return(e,t={})=>{const r=t.width,d=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],f=e.match(d);if(!f)return null;const y=f[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?X0(w,c=>c.test(y)):Z0(w,c=>c.test(y));let p;p=n.valueCallback?n.valueCallback(h):h,p=t.valueCallback?t.valueCallback(p):p;const s=e.slice(y.length);return{value:p,rest:s}}}function Z0(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function X0(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function J0(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const d=r[0],f=e.match(n.parsePattern);if(!f)return null;let y=n.valueCallback?n.valueCallback(f[0]):f[0];y=t.valueCallback?t.valueCallback(y):y;const w=e.slice(d.length);return{value:y,rest:w}}}const eb=/^(\d+)(th|st|nd|rd)?/i,tb=/\d+/i,nb={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},rb={any:[/^b/i,/^(a|c)/i]},ib={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ob={any:[/1/i,/2/i,/3/i,/4/i]},sb={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},ab={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]},lb={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},cb={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]},ub={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},hb={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}},db={ordinalNumber:J0({matchPattern:eb,parsePattern:tb,valueCallback:n=>parseInt(n,10)}),era:$s({matchPatterns:nb,defaultMatchWidth:"wide",parsePatterns:rb,defaultParseWidth:"any"}),quarter:$s({matchPatterns:ib,defaultMatchWidth:"wide",parsePatterns:ob,defaultParseWidth:"any",valueCallback:n=>n+1}),month:$s({matchPatterns:sb,defaultMatchWidth:"wide",parsePatterns:ab,defaultParseWidth:"any"}),day:$s({matchPatterns:lb,defaultMatchWidth:"wide",parsePatterns:cb,defaultParseWidth:"any"}),dayPeriod:$s({matchPatterns:ub,defaultMatchWidth:"any",parsePatterns:hb,defaultParseWidth:"any"})},$f={code:"en-US",formatDistance:N0,formatLong:H0,formatRelative:B0,localize:Q0,match:db,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fb(n,e){const t=Ut(n,void 0);return R0(t,O0(t))+1}function Tf(n,e){const t=Ut(n,void 0),r=+Wo(t)-+M0(t);return Math.round(r/6048e5)+1}function Pc(n,e){var t,r,d,f;const y=Ut(n,e==null?void 0:e.in),w=y.getFullYear(),h=Fo(),p=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((f=(d=h.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,s=fn((e==null?void 0:e.in)||n,0);s.setFullYear(w+1,0,p),s.setHours(0,0,0,0);const c=Ti(s,e),a=fn((e==null?void 0:e.in)||n,0);a.setFullYear(w,0,p),a.setHours(0,0,0,0);const l=Ti(a,e);return+y>=+c?w+1:+y>=+l?w:w-1}function pb(n,e){var t,r,d,f;const y=Fo(),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)??y.firstWeekContainsDate??((f=(d=y.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,h=Pc(n,e),p=fn((e==null?void 0:e.in)||n,0);return p.setFullYear(h,0,w),p.setHours(0,0,0,0),Ti(p,e)}function If(n,e){const t=Ut(n,e==null?void 0:e.in),r=+Ti(t,e)-+pb(t,e);return Math.round(r/6048e5)+1}function It(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Ii={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return It(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):It(t+1,2)},d(n,e){return It(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 It(n.getHours()%12||12,e.length)},H(n,e){return It(n.getHours(),e.length)},m(n,e){return It(n.getMinutes(),e.length)},s(n,e){return It(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),d=Math.trunc(r*Math.pow(10,t-3));return It(d,e.length)}},Po={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ef={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(),d=r>0?r:1-r;return t.ordinalNumber(d,{unit:"year"})}return Ii.y(n,e)},Y:function(n,e,t,r){const d=Pc(n,r),f=d>0?d:1-d;if(e==="YY"){const y=f%100;return It(y,2)}return e==="Yo"?t.ordinalNumber(f,{unit:"year"}):It(f,e.length)},R:function(n,e){const t=kf(n);return It(t,e.length)},u:function(n,e){const t=n.getFullYear();return It(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 It(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 It(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 Ii.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 It(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 d=If(n,r);return e==="wo"?t.ordinalNumber(d,{unit:"week"}):It(d,e.length)},I:function(n,e,t){const r=Tf(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):It(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Ii.d(n,e)},D:function(n,e,t){const r=fb(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):It(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 d=n.getDay(),f=(d-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(f);case"ee":return It(f,2);case"eo":return t.ordinalNumber(f,{unit:"day"});case"eee":return t.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(d,{width:"short",context:"formatting"});case"eeee":default:return t.day(d,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const d=n.getDay(),f=(d-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(f);case"cc":return It(f,e.length);case"co":return t.ordinalNumber(f,{unit:"day"});case"ccc":return t.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(d,{width:"narrow",context:"standalone"});case"cccccc":return t.day(d,{width:"short",context:"standalone"});case"cccc":default:return t.day(d,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),d=r===0?7:r;switch(e){case"i":return String(d);case"ii":return It(d,e.length);case"io":return t.ordinalNumber(d,{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 d;switch(r===12?d=Po.noon:r===0?d=Po.midnight:d=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let d;switch(r>=17?d=Po.evening:r>=12?d=Po.afternoon:r>=4?d=Po.morning:d=Po.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(d,{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 Ii.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Ii.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):It(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):It(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ii.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Ii.s(n,e)},S:function(n,e){return Ii.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Mf(r);case"XXXX":case"XX":return no(r);case"XXXXX":case"XXX":default:return no(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Mf(r);case"xxxx":case"xx":return no(r);case"xxxxx":case"xxx":default:return no(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Rf(r,":");case"OOOO":default:return"GMT"+no(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Rf(r,":");case"zzzz":default:return"GMT"+no(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return It(r,e.length)},T:function(n,e,t){return It(+n,e.length)}};function Rf(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.trunc(r/60),f=r%60;return f===0?t+String(d):t+String(d)+e+It(f,2)}function Mf(n,e){return n%60===0?(n>0?"-":"+")+It(Math.abs(n)/60,2):no(n,e)}function no(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=It(Math.trunc(r/60),2),f=It(r%60,2);return t+d+e+f}const Lf=(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"})}},Of=(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"})}},gb=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],d=t[2];if(!d)return Lf(n,e);let f;switch(r){case"P":f=e.dateTime({width:"short"});break;case"PP":f=e.dateTime({width:"medium"});break;case"PPP":f=e.dateTime({width:"long"});break;case"PPPP":default:f=e.dateTime({width:"full"});break}return f.replace("{{date}}",Lf(r,e)).replace("{{time}}",Of(d,e))},Hc={p:Of,P:gb},mb=/^D+$/,yb=/^Y+$/,vb=["D","DD","YY","YYYY"];function Df(n){return mb.test(n)}function Nf(n){return yb.test(n)}function zc(n,e,t){const r=wb(n,e,t);if(console.warn(r),vb.includes(n))throw new RangeError(r)}function wb(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 bb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ab=/^'([^]*?)'?$/,Cb=/''/g,kb=/[a-zA-Z]/;function ro(n,e,t){var r,d,f,y,w,h,p,s;const c=Fo(),a=(t==null?void 0:t.locale)??c.locale??$f,l=(t==null?void 0:t.firstWeekContainsDate)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??c.firstWeekContainsDate??((y=(f=c.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((h=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((s=(p=c.locale)==null?void 0:p.options)==null?void 0:s.weekStartsOn)??0,u=Ut(n,t==null?void 0:t.in);if(!Sf(u))throw new RangeError("Invalid time value");let m=e.match(xb).map(b=>{const R=b[0];if(R==="p"||R==="P"){const $=Hc[R];return $(b,a.formatLong)}return b}).join("").match(bb).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const R=b[0];if(R==="'")return{isToken:!1,value:_b(b)};if(Ef[R])return{isToken:!0,value:b};if(R.match(kb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));const v={firstWeekContainsDate:l,weekStartsOn:o,locale:a};return m.map(b=>{if(!b.isToken)return b.value;const R=b.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Nf(R)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Df(R))&&zc(R,e,String(n));const $=Ef[R[0]];return $(u,R,a.localize,v)}).join("")}function _b(n){const e=n.match(Ab);return e?e[1].replace(Cb,"'"):n}var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ff={exports:{}},Wf;function Sb(){return Wf||(Wf=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,c,a){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=c),d.modules[s]||(d.payloads[s]=a,d.modules[s]=null)};d.modules={},d.payloads={};var f=function(s,c,a){if(typeof c=="string"){var l=h(s,c);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,m=c.length;u<m;++u){var v=h(s,c[u]);if(v==null&&y.original)return;o.push(v)}return a&&a.apply(null,o)||!0}},y=function(s,c){var a=f("",s,c);return a==null&&y.original?y.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},h=function(s,c){c=w(s,c);var a=d.modules[c];if(!a){if(a=d.payloads[c],typeof a=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(v,b){return f(c,v,b)},m=a(u,l,o);l=m||o.exports,d.modules[c]=l,delete d.payloads[c]}a=d.modules[c]=l||a}return a};function p(s){var c=r;r[s]||(r[s]={}),c=r[s],(!c.define||!c.define.packaged)&&(d.original=c.define,c.define=d,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(y.original=c.require,c.require=y,c.require.packaged=!0)}p(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,d){function f(y,w,h){Object.defineProperty(y,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(y,w){return w=w||0,this.lastIndexOf(y,w)===w}),String.prototype.endsWith||f(String.prototype,"endsWith",function(y,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=y.length;var p=h.indexOf(y,w);return p!==-1&&p===w}),String.prototype.repeat||f(String.prototype,"repeat",function(y){for(var w="",h=this;y>0;)y&1&&(w+=h),(y>>=1)&&(h+=h);return w}),String.prototype.includes||f(String.prototype,"includes",function(y,w){return this.indexOf(y,w)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(y),h=1;h<arguments.length;h++){var p=arguments[h];p!=null&&Object.keys(p).forEach(function(s){w[s]=p[s]})}return w}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(w){return y[w]})}),Array.prototype.find||f(Array.prototype,"find",function(y){for(var w=this.length,h=arguments[1],p=0;p<w;p++){var s=this[p];if(y.call(h,s,p,this))return s}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(y){for(var w=this.length,h=arguments[1],p=0;p<w;p++){var s=this[p];if(y.call(h,s,p,this))return p}}),Array.prototype.includes||f(Array.prototype,"includes",function(y,w){return this.indexOf(y,w)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(y){for(var w=this,h=w.length>>>0,p=arguments[1],s=p>>0,c=s<0?Math.max(h+s,0):Math.min(s,h),a=arguments[2],l=a===void 0?h:a>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)w[c]=y,c++;return w}),Array.of||f(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,d){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,d){r.deepCopy=function f(y){if(typeof y!="object"||!y)return y;var w;if(Array.isArray(y)){w=[];for(var h=0;h<y.length;h++)w[h]=f(y[h]);return w}if(Object.prototype.toString.call(y)!=="[object Object]")return y;w={};for(var h in y)w[h]=f(y[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var p="";h>0;)h&1&&(p+=w),(h>>=1)&&(w+=w);return p};var f=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(f,"")},r.stringTrimRight=function(w){return w.replace(y,"")},r.copyObject=function(w){var h={};for(var p in w)h[p]=w[p];return h},r.copyArray=function(w){for(var h=[],p=0,s=w.length;p<s;p++)w[p]&&typeof w[p]=="object"?h[p]=this.copyObject(w[p]):h[p]=w[p];return h},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},p=0;p<w.length;p++)h[w[p]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var p in w)h[p]=w[p];return h},r.arrayRemove=function(w,h){for(var p=0;p<=w.length;p++)h===w[p]&&w.splice(p,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var p=[];return w.replace(h,function(s){p.push({offset:arguments[arguments.length-2],length:s.length})}),p},r.deferredCall=function(w){var h=null,p=function(){h=null,w()},s=function(c){return s.cancel(),h=setTimeout(p,c||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(w,h){var p=null,s=function(){p=null,w()},c=function(a){p==null&&(p=setTimeout(s,a||h))};return c.delay=function(a){p&&clearTimeout(p),p=setTimeout(s,a||h)},c.schedule=c,c.call=function(){this.cancel(),w()},c.cancel=function(){p&&clearTimeout(p),p=null},c.isPending=function(){return p},c},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,p){return p&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,d){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 f=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),w=f.userAgent||"",h=f.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,d){var f=t("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function a(l,o,u){if(typeof l=="string"&&l){var m=document.createTextNode(l);return o&&o.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var v=[],b=0;b<l.length;b++){var R=a(l[b],o,u);R&&v.push(R)}return v}var $=document.createElement(l[0]),C=l[1],x=1;C&&typeof C=="object"&&!Array.isArray(C)&&(x=2);for(var b=x;b<l.length;b++)a(l[b],$,u);return x==2&&Object.keys(C).forEach(function(T){var E=C[T];T==="class"?$.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?$[T]=E:T==="ref"?u&&(u[E]=$):T==="style"?typeof E=="string"&&($.style.cssText=E):E!=null&&$.setAttribute(T,E)}),o&&o.appendChild($),$},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||y,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 u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,l){for(var o=a.className.split(/\s+/g),u=!0;;){var m=o.indexOf(l);if(m==-1)break;u=!1,o.splice(m,1)}return u&&o.push(l),a.className=o.join(" "),u},r.setCssClass=function(a,l,o){o?r.addCssClass(a,l):r.removeCssClass(a,l)},r.hasCssString=function(a,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},r.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var w,h=[];r.useStrictCSP=function(a){w=a,a==!1?p():h||(h=[])};function p(){var a=h;h=null,a&&a.forEach(function(l){s(l[0],l[1])})}function s(a,l,o){if(!(typeof document>"u")){if(h){if(o)p();else if(o===!1)return h.push([a,l])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var m=u.ownerDocument||u;if(l&&r.hasCssString(l,u))return null;l&&(a+=`
|
2
|
+
/*# sourceURL=ace/css/`+l+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(a)),l&&(v.id=l),u==m&&(u=r.getDocumentHead(m)),u.insertBefore(v,u.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"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(o);var v=l.offsetWidth;u.overflow="scroll";var b=l.offsetWidth;return v===b&&(b=o.clientWidth),m.removeChild(o),v-b},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=f.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,f.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),!f.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,d){/*
|
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 f=t("./dom");r.get=function(y,w){var h=new XMLHttpRequest;h.open("GET",y,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},r.loadScript=function(y,w){var h=f.getDocumentHead(),p=document.createElement("script");p.src=y,h.appendChild(p),p.onload=p.onreadystatechange=function(s,c){(c||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,c||w())}},r.qualifyURL=function(y){var w=document.createElement("a");return w.href=y,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,r,d){r.inherits=function(f,y){f.super_=y,f.prototype=Object.create(y.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(f,y){for(var w in y)f[w]=y[w];return f},r.implement=function(f,y){r.mixin(f,y)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,r,d){var f={},y=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};f._emit=f._dispatchEvent=function(h,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!s.length&&!c)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=h),p.stopPropagation||(p.stopPropagation=y),p.preventDefault||(p.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](p,this),!p.propagationStopped);a++);if(c&&!p.defaultPrevented)return c(p,this)}},f._signal=function(h,p){var s=(this._eventRegistry||{})[h];if(s){s=s.slice();for(var c=0;c<s.length;c++)s[c](p,this)}},f.once=function(h,p){var s=this;if(this.on(h,function c(){s.off(h,c),p.apply(null,arguments)}),!p)return new Promise(function(c){p=c})},f.setDefaultHandler=function(h,p){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[h]){var c=s[h],a=s._disabled_[h];a||(s._disabled_[h]=a=[]),a.push(c);var l=a.indexOf(p);l!=-1&&a.splice(l,1)}s[h]=p},f.removeDefaultHandler=function(h,p){var s=this._defaultHandlers;if(s){var c=s._disabled_[h];if(s[h]==p)c&&this.setDefaultHandler(h,c.pop());else if(c){var a=c.indexOf(p);a!=-1&&c.splice(a,1)}}},f.on=f.addEventListener=function(h,p,s){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(p)==-1&&c[s?"unshift":"push"](p),p},f.off=f.removeListener=f.removeEventListener=function(h,p){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[h];if(s){var c=s.indexOf(p);c!==-1&&s.splice(c,1)}},f.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},r.EventEmitter=f}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,r,d){r.reportError=function(f,y){var w=new Error(f);w.data=y,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,d){var f={"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=f}),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,d){"no use strict";var f=t("./oop"),y=t("./event_emitter").EventEmitter,w=t("./report_error").reportError,h=t("./default_english_messages").defaultEnglishMessages,p={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var m=this.$options;o=Object.keys(m).filter(function(v){return!m[v].hidden})}return o.forEach(function(v){u[v]=this.getOption(v)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var m=this.$options[o];if(!m)return s('misspelled option "'+o+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(o,u);m.handlesSet||(this["$"+o]=u),m&&m.set&&m.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]: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=h,a="dollarSigns"}return o.prototype.defineOptions=function(u,m,v){return u.$options||(this.$defaultOptions[m]=u.$options={}),Object.keys(v).forEach(function(b){var R=v[b];typeof R=="string"&&(R={forwardTo:R}),R.name||(R.name=b),u.$options[R.name]=R,"initialValue"in R&&(u["$"+R.name]=R.initialValue)}),f.implement(u,p),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(m){var v=u.$options[m];"value"in v&&u.setOption(m,v.value)})},o.prototype.setDefaultValue=function(u,m,v){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][m])break;if(!this.$defaultOptions[u][m])return!1}var b=this.$defaultOptions[u]||(this.$defaultOptions[u]={});b[m]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,m,v):b[m].value=v)},o.prototype.setDefaultValues=function(u,m){Object.keys(m).forEach(function(v){this.setDefaultValue(u,v,m[v])},this)},o.prototype.setMessages=function(u,m){c=u,m&&m.placeholders&&(a=m.placeholders)},o.prototype.nls=function(u,m,v){c[u]||(s("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+m+"'."),c[m]||s("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var b=c[u]||c[m]||m;return v&&(a==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(R,$){return $=="$"?"$":v[$]})),a==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(R,$){return v[$]}))),b},o}();l.prototype.warn=s,l.prototype.reportError=w,f.implement(l.prototype,y),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,r,d){d.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,d){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var f=t("../lib/dom");f.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,d){"no use strict";var f=t("./lib/lang"),y=t("./lib/net"),w=t("./lib/dom"),h=t("./lib/app_config").AppConfig;d.exports=r=new h;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!p.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return p[l]},r.set=function(l,o){if(p.hasOwnProperty(l))p[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&w.useStrictCSP(o)},r.all=function(){return f.copyObject(p)},r.$modes={},r.moduleUrl=function(l,o){if(p.$moduleUrls[l])return p.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var m=o=="snippets"?"/":"-",v=u[u.length-1];if(o=="worker"&&m=="-"){var b=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");v=v.replace(b,"")}(!v||v==o)&&u.length>1&&(v=u[u.length-2]);var R=p[o+"Path"];return R==null?R=p.basePath:m=="/"&&(o=m=""),R&&R.slice(-1)!="/"&&(R+="/"),R+o+m+v+this.get("suffix")},r.setModuleUrl=function(l,o){return p.$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 u;if(Array.isArray(l))var m=l[0],v=l[1];else if(typeof l=="string")var v=l;var b=function(R){if(R&&!r.$loading[v])return o&&o(R);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(o),!(r.$loading[v].length>1)){var $=function(){s(v,function(C,x){x&&(r.$loaded[v]=x),r._emit("load.module",{name:v,module:x});var T=r.$loading[v];r.$loading[v]=null,T.forEach(function(E){E&&E(x)})})};if(!r.get("packaged"))return $();y.loadScript(r.moduleUrl(v,m),$),a()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(R){R.default?b(R.default):b(R)});else{try{u=this.$require(v)}catch{}b(u||r.$loaded[v])}},r.$require=function(l){if(typeof d.require=="function"){var o="require";return d[o](l)}},r.setModuleLoader=function(l,o){r.dynamicModules[l]=o};var a=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};r.version="1.38.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,d){t("./lib/fixoldbrowsers");var f=t("./config");f.setLoader(function(p,s){t([p],function(c){s(null,c)})});var y=function(){return this||typeof window<"u"&&window}();d.exports=function(p){f.init=w,f.$require=t,p.require=t},w(!0);function w(p){if(!(!y||!y.document)){f.set("packaged",p||t.packaged||d.packaged||y.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"),u=0;u<o.length;u++){var m=o[u],v=m.src||m.getAttribute("src");if(v){for(var b=m.attributes,R=0,$=b.length;R<$;R++){var C=b[R];C.name.indexOf("data-ace-")===0&&(s[h(C.name.replace(/^data-ace-/,""))]=C.value)}var x=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);x&&(c=x[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"&&f.set(T,s[T])}}function h(p){return p.replace(/-(.)/g,function(s,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,d){var f=function(){function y(w,h,p,s){this.start={row:w,column:h},this.end={row:p,column:s}}return y.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},y.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(w,h){return this.compare(w,h)==0},y.prototype.compareRange=function(w){var h,p=w.end,s=w.start;return h=this.compare(p.row,p.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},y.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},y.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},y.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},y.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},y.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},y.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},y.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},y.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},y.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},y.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},y.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},y.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},y.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},y.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},y.prototype.clipRows=function(w,h){if(this.end.row>h)var p={row:h+1,column:0};else if(this.end.row<w)var p={row:w,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return y.fromPoints(s||this.start,p||this.end)},y.prototype.extend=function(w,h){var p=this.compare(w,h);if(p==0)return this;if(p==-1)var s={row:w,column:h};else var c={row:w,column:h};return y.fromPoints(s||this.start,c||this.end)},y.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},y.prototype.isMultiLine=function(){return this.start.row!==this.end.row},y.prototype.clone=function(){return y.fromPoints(this.start,this.end)},y.prototype.collapseRows=function(){return this.end.column==0?new y(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new y(this.start.row,0,this.end.row,0)},y.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),p=w.documentToScreenPosition(this.end);return new y(h.row,h.column,p.row,p.column)},y.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},y}();f.fromPoints=function(y,w){return new f(y.row,y.column,w.row,w.column)},f.comparePoints=function(y,w){return y.row-w.row||y.column-w.column},r.Range=f}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,d){for(var f=t("./oop"),y={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,y.PRINTABLE_KEYS[48+h]=""+h,y.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var p=String.fromCharCode(h+32);w["Key"+p.toUpperCase()]=h,y.PRINTABLE_KEYS[h]=p}for(var h=1;h<13;h++)w["F"+h]=111+h,y.FUNCTION_KEYS[111+h]="F"+h;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,y.PRINTABLE_KEYS[173]="-";for(var a in y.FUNCTION_KEYS){var l=y.FUNCTION_KEYS[a].toLowerCase();y[l]=parseInt(a,10)}for(var a in y.PRINTABLE_KEYS){var l=y.PRINTABLE_KEYS[a].toLowerCase();y[l]=parseInt(a,10)}f.mixin(y,y.MODIFIER_KEYS),f.mixin(y,y.PRINTABLE_KEYS),f.mixin(y,y.FUNCTION_KEYS),y.enter=y.return,y.escape=y.esc,y.del=y.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)y.KEY_MODS[u]=o.filter(function(m){return u&y.KEY_MODS[m]}).join("-")+"-"}(),y.KEY_MODS[0]="",y.KEY_MODS[-1]="input-",f.mixin(r,y),r.default=r,r.keyCodeToString=function(o){var u=y[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var f=t("./keys"),y=t("./useragent"),w=null,h=0,p;function s(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function c(){return p==null&&s(),p}function a(R,$,C){this.elem=R,this.type=$,this.callback=C}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(R,$,C,x){R.addEventListener($,C,c()),x&&x.$toDestroy.push(new a(R,$,C))},o=r.removeListener=function(R,$,C){R.removeEventListener($,C,c())};r.stopEvent=function(R){return r.stopPropagation(R),r.preventDefault(R),!1},r.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},r.preventDefault=function(R){R.preventDefault&&R.preventDefault()},r.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||y.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},r.capture=function(R,$,C){var x=R&&R.ownerDocument||document;function T(E){$&&$(E),C&&C(E),o(x,"mousemove",$),o(x,"mouseup",T),o(x,"dragstart",T)}return l(x,"mousemove",$),l(x,"mouseup",T),l(x,"dragstart",T),T},r.addMouseWheelListener=function(R,$,C){l(R,"wheel",function(x){var T=.15,E=x.deltaX||0,L=x.deltaY||0;switch(x.deltaMode){case x.DOM_DELTA_PIXEL:x.wheelX=E*T,x.wheelY=L*T;break;case x.DOM_DELTA_LINE:var I=15;x.wheelX=E*I,x.wheelY=L*I;break;case x.DOM_DELTA_PAGE:var N=150;x.wheelX=E*N,x.wheelY=L*N;break}$(x)},C)},r.addMultiMouseDownListener=function(R,$,C,x,T){var E=0,L,I,N,_={2:"dblclick",3:"tripleclick",4:"quadclick"};function A(k){if(r.getButton(k)!==0?E=0:k.detail>1?(E++,E>4&&(E=1)):E=1,y.isIE){var M=Math.abs(k.clientX-L)>5||Math.abs(k.clientY-I)>5;(!N||M)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},$[E-1]||600),E==1&&(L=k.clientX,I=k.clientY)}if(k._clicks=E,C[x]("mousedown",k),E>4)E=0;else if(E>1)return C[x](_[E],k)}Array.isArray(R)||(R=[R]),R.forEach(function(k){l(k,"mousedown",A,T)})};function u(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}r.getModifierString=function(R){return f.KEY_MODS[u(R)]};function m(R,$,C){var x=u($);if(!C&&$.code&&(C=f.$codeToKeyCode[$.code]||C),!y.isMac&&w){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(x|=8),w.altGr)if((3&x)!=3)w.altGr=0;else return;if(C===18||C===17){var T=$.location;if(C===17&&T===1)w[C]==1&&(h=$.timeStamp);else if(C===18&&x===3&&T===2){var E=$.timeStamp-h;E<50&&(w.altGr=!0)}}}if(C in f.MODIFIER_KEYS&&(C=-1),!(!x&&C===13&&$.location===3&&(R($,x,-C),$.defaultPrevented))){if(y.isChromeOS&&x&8){if(R($,x,C),$.defaultPrevented)return;x&=-9}return!x&&!(C in f.FUNCTION_KEYS)&&!(C in f.PRINTABLE_KEYS)?!1:R($,x,C)}}r.addCommandKeyListener=function(R,$,C){var x=null;l(R,"keydown",function(T){w[T.keyCode]=(w[T.keyCode]||0)+1;var E=m($,T,T.keyCode);return x=T.defaultPrevented,E},C),l(R,"keypress",function(T){x&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),x=null)},C),l(R,"keyup",function(T){w[T.keyCode]=null},C),w||(v(),l(window,"focus",v))};function v(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!y.isOldIE){var b=1;r.nextTick=function(R,$){$=$||window;var C="zero-timeout-message-"+b++,x=function(T){T.data==C&&(r.stopPropagation(T),o($,"message",x),R())};l($,"message",x),$.postMessage(C,"*")}}r.$idleBlocked=!1,r.onIdle=function(R,$){return setTimeout(function C(){r.$idleBlocked?setTimeout(C,100):R()},$)},r.$idleBlockId=null,r.blockIdle=function(R){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},R||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(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,d){var f;d.exports={lineMode:!1,pasteCancelled:function(){return f&&f>Date.now()-50?!0:f=!1},cancel:function(){f=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,d){var f=t("../lib/event"),y=t("../config").nls,w=t("../lib/useragent"),h=t("../lib/dom"),p=t("../lib/lang"),s=t("../clipboard"),c=w.isChrome<18,a=w.isIE,l=w.isChrome>63,o=400,u=t("../lib/keys"),m=u.KEY_MODS,v=w.isIOS,b=v?/\s/:/\n/,R=w.isMobile,$;$=function(C,x){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",C.insertBefore(T,C.firstChild);var E=!1,L=!1,I=!1,N=!1,_="";R||(T.style.fontSize="1px");var A=!1,k=!1,M="",O=0,F=0,P=0,j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var J=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(x.$textInputAriaLabel&&(ce+="".concat(x.$textInputAriaLabel,", ")),x.session){var Te=x.session.selection.cursor.row;ce+=y("text-input.aria-label","Cursor at row $0",[Te+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",y("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),f.addListener(T,"blur",function(ce){k||(x.onBlur(ce),J=!1)},x),f.addListener(T,"focus",function(ce){if(!k){if(J=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}x.onFocus(ce),w.isEdge?setTimeout(Z):Z()}},x),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:x.renderer.enableKeyboardAccessibility}),_||l||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Te=T.getBoundingClientRect().top!=0}catch{return}var Me=[];if(Te)for(var qe=T.parentElement;qe&&qe.nodeType==1;)Me.push(qe),qe.setAttribute("ace_nocontext","true"),!qe.parentElement&&qe.getRootNode?qe=qe.getRootNode().host:qe=qe.parentElement;T.focus({preventScroll:!0}),Te&&Me.forEach(function(Ye){Ye.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 J},x.on("beforeEndOperation",function(){var ce=x.curOp,Te=ce&&ce.command&&ce.command.name;if(Te!="insertstring"){var Me=Te&&(ce.docChanged||ce.selectionChanged);I&&Me&&(M=T.value="",Kt()),Z()}}),x.on("changeSelection",this.setAriaLabel);var G=function(ce,Te){for(var Me=Te,qe=1;qe<=ce-j&&qe<2*q+1;qe++)Me+=x.session.getLine(ce-qe).length+1;return Me},Z=v?function(ce){if(!(!J||E&&!ce||N)){ce||(ce="");var Te=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Te!=T.value&&(T.value=M=Te);var Me=4,qe=4+(ce.length||(x.selection.isEmpty()?0:1));(O!=Me||F!=qe)&&T.setSelectionRange(Me,qe),O=Me,F=qe}}:function(){if(!(I||N)&&!(!J&&!ye)){I=!0;var ce=0,Te=0,Me="";if(x.session){var qe=x.selection,Ye=qe.getRange(),ft=qe.cursor.row;ft===V+1?(j=V+1,V=j+2*q):ft===j-1?(V=j-1,j=V-2*q):(ft<j-1||ft>V+1)&&(j=ft>q?ft-q:0,V=ft>q?ft+q:2*q);for(var pt=[],ct=j;ct<=V;ct++)pt.push(x.session.getLine(ct));if(Me=pt.join(`
|
169
|
+
`),ce=G(Ye.start.row,Ye.start.column),Te=G(Ye.end.row,Ye.end.column),Ye.start.row<j){var ut=x.session.getLine(j-1);ce=Ye.start.row<j-1?0:ce,Te+=ut.length+1,Me=ut+`
|
170
|
+
`+Me}else if(Ye.end.row>V){var rt=x.session.getLine(V+1);Te=Ye.end.row>V+1?rt.length:Ye.end.column,Te+=Me.length+1,Me=Me+`
|
171
|
+
`+rt}else R&&ft>0&&(Me=`
|
172
|
+
`+Me,Te+=1,ce+=1);Me.length>o&&(ce<o&&Te<o?Me=Me.slice(0,o):(Me=`
|
173
|
+
`,ce==Te?ce=Te=0:(ce=0,Te=1)));var jt=Me+`
|
174
|
+
|
175
|
+
`;jt!=M&&(T.value=M=jt,O=F=jt.length)}if(ye&&(O=T.selectionStart,F=T.selectionEnd),F!=Te||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Te),O=ce,F=Te}catch{}I=!1}};this.resetSelection=Z,J&&x.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=M.length&&ce.value===M&&M&&ce.selectionEnd!==F},X=function(ce){I||(E?E=!1:re(T)?(x.selectAll(),Z()):R&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var ye=!1,we=function(ce,Te){if(ye&&(ye=!1),L)return Z(),ce&&x.onPaste(ce),L=!1,"";for(var Me=T.selectionStart,qe=T.selectionEnd,Ye=O,ft=M.length-F,pt=ce,ct=ce.length-Me,ut=ce.length-qe,rt=0;Ye>0&&M[rt]==ce[rt];)rt++,Ye--;for(pt=pt.slice(rt),rt=1;ft>0&&M.length-rt>O-1&&M[M.length-rt]==ce[ce.length-rt];)rt++,ft--;ct-=rt-1,ut-=rt-1;var jt=pt.length-rt+1;if(jt<0&&(Ye=-jt,jt=0),pt=pt.slice(0,jt),!Te&&!pt&&!ct&&!Ye&&!ft&&!ut)return"";N=!0;var Wn=!1;return w.isAndroid&&pt==". "&&(pt=" ",Wn=!0),pt&&!Ye&&!ft&&!ct&&!ut||A?x.onTextInput(pt):x.onTextInput(pt,{extendLeft:Ye,extendRight:ft,restoreStart:ct,restoreEnd:ut}),N=!1,M=ce,O=Me,F=qe,P=ut,Wn?`
|
176
|
+
`:pt},pe=function(ce){if(I)return Dt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return x.execCommand("undo");if(ce.inputType=="historyRedo")return x.execCommand("redo")}var Te=T.value,Me=we(Te,!0);(Te.length>o+100||b.test(Me)||R&&O<1&&O==F)&&Z()},ke=function(ce,Te,Me){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||c)){var Ye=a||Me?"Text":"text/plain";try{return Te?qe.setData(Ye,Te)!==!1:qe.getData(Ye)}catch(ft){if(!Me)return ke(ft,Te,!0)}}},at=function(ce,Te){var Me=x.getCopyText();if(!Me)return f.preventDefault(ce);ke(ce,Me)?(v&&(Z(Me),E=Me,setTimeout(function(){E=!1},10)),Te?x.onCut():x.onCopy(),f.preventDefault(ce)):(E=!0,T.value=Me,T.select(),setTimeout(function(){E=!1,Z(),Te?x.onCut():x.onCopy()}))},Pt=function(ce){at(ce,!0)},dt=function(ce){at(ce,!1)},gt=function(ce){var Te=ke(ce);s.pasteCancelled()||(typeof Te=="string"?(Te&&x.onPaste(Te,ce),w.isIE&&setTimeout(Z),f.preventDefault(ce)):(T.value="",L=!0))};f.addCommandKeyListener(T,function(ce,Te,Me){if(!I)return x.onCommandKey(ce,Te,Me)},x),f.addListener(T,"select",X,x),f.addListener(T,"input",pe,x),f.addListener(T,"cut",Pt,x),f.addListener(T,"copy",dt,x),f.addListener(T,"paste",gt,x),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&f.addListener(C,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:dt(ce);break;case 86:gt(ce);break;case 88:Pt(ce);break}},x);var cn=function(ce){if(!(I||!x.onCompositionStart||x.$readOnly)&&(I={},!A)){ce.data&&(I.useTextareaForIME=!1),setTimeout(Dt,0),x._signal("compositionStart"),x.on("mousedown",Qr);var Te=x.getSelectionRange();Te.end.row=Te.start.row,Te.end.column=Te.start.column,I.markerRange=Te,I.selectionStart=O,x.onCompositionStart(I),I.useTextareaForIME?(M=T.value="",O=0,F=0):(T.msGetInputContext&&(I.context=T.msGetInputContext()),T.getInputContext&&(I.context=T.getInputContext()))}},Dt=function(){if(!(!I||!x.onCompositionUpdate||x.$readOnly)){if(A)return Qr();if(I.useTextareaForIME)x.onCompositionUpdate(T.value);else{var ce=T.value;we(ce),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+F-I.selectionStart+P)}}},Kt=function(ce){!x.onCompositionEnd||x.$readOnly||(I=!1,x.onCompositionEnd(),x.off("mousedown",Qr),ce&&pe())};function Qr(){k=!0,T.blur(),T.focus(),k=!1}var Cn=p.delayedCall(Dt,50).schedule.bind(null,null);function en(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(I||(M=T.value),O=F=-1,Z()),Cn()}f.addListener(T,"compositionstart",cn,x),f.addListener(T,"compositionupdate",Dt,x),f.addListener(T,"keyup",en,x),f.addListener(T,"keydown",Cn,x),f.addListener(T,"compositionend",Kt,x),this.getElement=function(){return T},this.setCommandMode=function(ce){A=ce,T.readOnly=!1},this.setReadOnly=function(ce){A||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){ye=!0,Z(),x._emit("nativecontextmenu",{target:x,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Te){_||(_=T.style.cssText),T.style.cssText=(Te?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*x.renderer.characterWidth*.5+"px;";var Me=x.container.getBoundingClientRect(),qe=h.computedStyle(x.container),Ye=Me.top+(parseInt(qe.borderTopWidth)||0),ft=Me.left+(parseInt(qe.borderLeftWidth)||0),pt=Me.bottom-Ye-T.clientHeight-2,ct=function(ut){h.translate(T,ut.clientX-ft-2,Math.min(ut.clientY-Ye-2,pt))};ct(ce),ce.type=="mousedown"&&(x.renderer.$isMousePressed=!0,clearTimeout(We),w.isWin&&f.capture(x.container,ct,ze))},this.onContextMenuClose=ze;var We;function ze(){clearTimeout(We),We=setTimeout(function(){_&&(T.style.cssText=_,_=""),x.renderer.$isMousePressed=!1,x.renderer.$keepTextAreaAtCursor&&x.renderer.$moveTextAreaToCursor()},0)}var tn=function(ce){x.textInput.onContextMenu(ce),ze()};f.addListener(T,"mouseup",tn,x),f.addListener(T,"mousedown",function(ce){ce.preventDefault(),ze()},x),f.addListener(x.renderer.scroller,"contextmenu",tn,x),f.addListener(T,"contextmenu",tn,x),v&&je(C,x,T);function je(ce,Te,Me){var qe=null,Ye=!1;Me.addEventListener("keydown",function(pt){qe&&clearTimeout(qe),Ye=!0},!0),Me.addEventListener("keyup",function(pt){qe=setTimeout(function(){Ye=!1},100)},!0);var ft=function(pt){if(document.activeElement===Me&&!(Ye||I||Te.$mouseHandler.isMousePressed)&&!E){var ct=Me.selectionStart,ut=Me.selectionEnd,rt=null,jt=0;if(ct==0?rt=u.up:ct==1?rt=u.home:ut>F&&M[ut]==`
|
177
|
+
`?rt=u.end:ct<O&&M[ct-1]==" "?(rt=u.left,jt=m.option):ct<O||ct==O&&F!=O&&ct==ut?rt=u.left:ut>F&&M.slice(0,ut).split(`
|
178
|
+
`).length>2?rt=u.down:ut>F&&M[ut-1]==" "?(rt=u.right,jt=m.option):(ut>F||ut==F&&F!=O&&ct==ut)&&(rt=u.right),ct!==ut&&(jt|=m.shift),rt){var Wn=Te.onCommandKey({},jt,rt);if(!Wn&&Te.commands){rt=u.keyCodeToString(rt);var di=Te.commands.findKeyCommand(jt,rt);di&&Te.execCommand(di)}O=ct,F=ut,Z("")}}};document.addEventListener("selectionchange",ft),Te.on("destroy",function(){document.removeEventListener("selectionchange",ft)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=$,r.$setUserAgentForTests=function(C,x){R=C,v=x}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,d){var f=t("../lib/useragent"),y=0,w=550,h=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(u){a[u]=this[u]},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 u=this.editor,m=a.getButton();if(m!==0){var v=u.getSelectionRange(),b=v.isEmpty();(b||m==1)&&u.selection.moveToPosition(o),m==2&&(u.textInput.onContextMenu(a.domEvent),f.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.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 u=this.$clickSelection.comparePoint(o);if(u==-1)a=this.$clickSelection.end;else if(u==1)a=this.$clickSelection.start;else{var m=s(this.$clickSelection,o);o=m.cursor,a=m.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,u=o.renderer.screenToTextCoordinates(this.x,this.y),m=o.selection[a](u.row,u.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(v==-1&&b<=0)l=this.$clickSelection.end,(m.end.row!=u.row||m.end.column!=u.column)&&(u=m.start);else if(b==1&&v>=0)l=this.$clickSelection.start,(m.start.row!=u.row||m.start.column!=u.column)&&(u=m.end);else if(v==-1&&b==1)u=m.end,l=m.start;else{var R=s(this.$clickSelection,u);u=R.cursor,l=R.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var a=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>y||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(a){var l=a.getDocumentPosition(),o=this.editor,u=o.session,m=u.getBracketRange(l);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},c.prototype.onTripleClick=function(a){var l=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(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,u=a.domEvent.timeStamp,m=u-o.t,v=m?a.wheelX/m:o.vx,b=m?a.wheelY/m:o.vy;m<w&&(v=(v+o.vx)/2,b=(b+o.vy)/2);var R=Math.abs(v/b),$=!1;if(R>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&($=!0),R<=1&&l.renderer.isScrollableBy(0,a.wheelY*a.speed)&&($=!0),$)o.allowed=u;else if(u-o.allowed<w){var C=Math.abs(v)<=1.5*Math.abs(o.vx)&&Math.abs(b)<=1.5*Math.abs(o.vy);C?($=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=v,o.vy=b,$)return l.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function p(c,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,d){r.preventParentScroll=function(f){f.stopPropagation();var y=f.currentTarget,w=y.scrollHeight>y.clientHeight;w||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,d){var f=this&&this.__extends||function(){var u=function(m,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,R){b.__proto__=R}||function(b,R){for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&(b[$]=R[$])},u(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");u(m,v);function b(){this.constructor=m}m.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}}(),y=this&&this.__values||function(u){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&u[m],b=0;if(v)return v.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&b>=u.length&&(u=void 0),{value:u&&u[b++],done:!u}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},w=t("./lib/dom");t("./lib/event");var h=t("./range").Range,p=t("./lib/scroll").preventParentScroll,s="ace_tooltip",c=function(){function u(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return u.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},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(m){this.getElement().textContent=m},u.prototype.setHtml=function(m){this.getElement().innerHTML=m},u.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},u.prototype.setClassName=function(m){w.addCssClass(this.getElement(),m)},u.prototype.setTheme=function(m){this.$element.className=s+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},u.prototype.show=function(m,v,b){m!=null&&this.setText(m),v!=null&&b!=null&&this.setPosition(v,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),a=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},u.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},u.prototype.updatePopups=function(){var m,v,b,R;this.popups.sort(function(_,A){return A.priority-_.priority});var $=[];try{for(var C=y(this.popups),x=C.next();!x.done;x=C.next()){var T=x.value,E=!0;try{for(var L=(b=void 0,y($)),I=L.next();!I.done;I=L.next()){var N=I.value;if(this.doPopupsOverlap(N,T)){E=!1;break}}}catch(_){b={error:_}}finally{try{I&&!I.done&&(R=L.return)&&R.call(L)}finally{if(b)throw b.error}}E?$.push(T):T.hide()}}catch(_){m={error:_}}finally{try{x&&!x.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}},u.prototype.doPopupsOverlap=function(m,v){var b=m.getElement().getBoundingClientRect(),R=v.getElement().getBoundingClientRect();return b.left<R.right&&b.right>R.left&&b.top<R.bottom&&b.bottom>R.top},u}(),l=new a;r.popupManager=l,r.Tooltip=c;var o=function(u){f(m,u);function m(v){v===void 0&&(v=document.body);var b=u.call(this,v)||this;b.timeout=void 0,b.lastT=0,b.idleTime=350,b.lastEvent=void 0,b.onMouseOut=b.onMouseOut.bind(b),b.onMouseMove=b.onMouseMove.bind(b),b.waitForHover=b.waitForHover.bind(b),b.hide=b.hide.bind(b);var R=b.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",b.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(b)),R.addEventListener("wheel",p),b}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.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)},m.prototype.onMouseMove=function(v,b){this.lastEvent=v,this.lastT=Date.now();var R=b.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.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)},m.prototype.isOutsideOfText=function(v){var b=v.editor,R=v.getDocumentPosition(),$=b.session.getLine(R.row);if(R.column==$.length){var C=b.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),x=b.session.documentToScreenPosition(R.row,R.column);if(x.column!=C.column||x.row!=C.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,b,R,$){var C=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var x=v.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(x.theme)),this.isOpen=!0,this.addMarker(b,v.session),this.range=h.fromPoints(b.start,b.end);var T=x.textToScreenCoordinates(b.start.row,b.start.column),E=x.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var L=this.getElement();L.innerHTML="",L.appendChild(R),L.style.maxHeight="",L.style.display="block";var I=L.clientHeight,N=L.clientWidth,_=window.innerHeight-T.pageY-x.lineHeight,A=!0;T.pageY-I<0&&T.pageY<_&&(A=!1),L.style.maxHeight=(A?T.pageY:_)-C+"px",L.style.top=A?"":T.pageY+x.lineHeight+"px",L.style.bottom=A?window.innerHeight-T.pageY+"px":"",L.style.left=Math.min(T.pageX,window.innerWidth-N-C)+"px"}},m.prototype.addMarker=function(v,b){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=b,this.marker=b&&b.addMarker(v,"ace_highlight-marker","text")},m.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)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.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())},m}(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,d){var f=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],m=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&m>=l.length&&(l=void 0),{value:l&&l[m++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=t("../lib/dom"),h=t("../lib/event"),p=t("../tooltip").Tooltip,s=t("../config").nls;t("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,m=new a(o);l.editor.setDefaultHandler("guttermousedown",function(x){if(!(!o.isFocused()||x.getButton()!=0)){var T=u.getRegion(x);if(T!="foldWidgets"){var E=x.getDocumentPosition().row,L=o.session.selection;if(x.getShiftKey())L.selectTo(E,0);else{if(x.domEvent.detail==2)return o.selectAll(),x.preventDefault();l.$clickSelection=o.selection.getLineRange(E)}return l.setState("selectByLines"),l.captureMouse(x),x.preventDefault()}}});var v,b;function R(){var x=b.getDocumentPosition().row,T=o.session.getLength();if(x==T){var E=o.renderer.pixelToScreenCoordinates(0,b.y).row,L=b.$pos;if(E>o.session.documentToScreenRow(L.row,L.column))return $()}if(m.showTooltip(x),!!m.isOpen)if(o.on("mousewheel",$),l.$tooltipFollowsMouse)C(b);else{var I=b.getGutterRow(),N=u.$lines.get(I);if(N){var _=N.element.querySelector(".ace_gutter_annotation"),A=_.getBoundingClientRect(),k=m.getElement().style;k.left=A.right+"px",k.top=A.bottom+"px"}else C(b)}}function $(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),o.off("mousewheel",$))}function C(x){m.setPosition(x.x,x.y)}l.editor.setDefaultHandler("guttermousemove",function(x){var T=x.domEvent.target||x.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return $();m.isOpen&&l.$tooltipFollowsMouse&&C(x),b=x,!v&&(v=setTimeout(function(){v=null,b&&!l.isMousePressed?R():$()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(x){b=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,$()},50))},o),o.on("changeSession",$),o.on("input",$)}r.GutterHandler=c;var a=function(l){f(o,l);function o(u){var m=l.call(this,u.container)||this;return m.editor=u,m.visibleTooltipRow,m}return o.prototype.setPosition=function(u,m){var v=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),$=this.getHeight();u+=15,m+=15,u+R>v&&(u-=u+R-v),m+$>b&&(m-=20+$),p.prototype.setPosition.call(this,u,m)},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(u){var m,v=this.editor.renderer.$gutterLayer,b=v.$annotations[u],R;b?R={displayText:Array.from(b.displayText),type:Array.from(b.type)}:R={displayText:[],type:[]};var $=v.session.getFoldLine(u);if($&&v.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},x={error:1,security:2,warning:3,info:4,hint:5},T,E=u+1;E<=$.end.row;E++)if(v.$annotations[E])for(var L=0;L<v.$annotations[E].text.length;L++){var I=v.$annotations[E].type[L];C[I].push(v.$annotations[E].text[L]),(!T||x[I]<x[T])&&(T=I)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(C)," in folded code.");R.displayText.push(N),R.type.push(T+"_fold")}}if(R.displayText.length===0)return this.hideTooltip();for(var _={error:[],security:[],warning:[],info:[],hint:[]},A=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var k=w.createElement("span"),M=w.createElement("span");(m=M.classList).add.apply(m,["ace_".concat(R.type[E]),A]),M.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),M.setAttribute("role","img"),M.appendChild(w.createTextNode(" ")),k.appendChild(M),k.appendChild(w.createTextNode(R.displayText[E])),k.appendChild(w.createElement("br")),_[R.type[E].replace("_fold","")].push(k)}var O=this.getElement();w.removeChildren(O),_.error.forEach(function(F){return O.appendChild(F)}),_.security.forEach(function(F){return O.appendChild(F)}),_.warning.forEach(function(F){return O.appendChild(F)}),_.info.forEach(function(F){return O.appendChild(F)}),_.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=u,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(u){var m,v,b=[],R=["error","security","warning","info","hint"];try{for(var $=y(R),C=$.next();!C.done;C=$.next()){var x=C.value;if(u[x].length){var T=u[x].length===1?o.annotationLabels[x].singular:o.annotationLabels[x].plural;b.push("".concat(u[x].length," ").concat(T))}}}catch(E){m={error:E}}finally{try{C&&!C.done&&(v=$.return)&&v.call($)}finally{if(m)throw m.error}}return b.join(", ")},o}(p);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var f=t("../lib/event"),y=t("../lib/useragent"),w=function(){function h(p,s){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=s,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){f.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){f.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(p,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,s=p.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=s.contains(c.row,c.column)}return this.$inSelection},h.prototype.getButton=function(){return f.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,d){var f=t("../lib/dom"),y=t("../lib/event"),w=t("../lib/useragent"),h=200,p=200,s=5;function c(l){var o=l.editor,u=f.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var v=o.container,b,R,$,C,x,T,E=0,L,I,N,_,A;this.onDragStart=function(G){if(this.cancelDrag||!v.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}x=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),re.setDragImage&&re.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),re.clearData(),re.setData("Text",o.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(G){if(v.draggable=!1,I=!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 R=G.clientX,$=G.clientY,b||F(),E++,G.dataTransfer.dropEffect=L=J(G),y.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,$=G.clientY,b||(F(),E++),j!==null&&(j=null),G.dataTransfer.dropEffect=L=J(G),y.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&b)return P(),L=null,y.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(I)switch(L){case"move":x.contains(T.row,T.column)?x={start:T,end:T}:x=o.moveText(x,T);break;case"copy":x=o.moveText(x,T,!0);break}else{var re=Z.getData("Text");x={start:T,end:o.session.insert(T,re)},o.focus(),L=null}return P(),y.preventDefault(G)}},y.addListener(v,"dragstart",this.onDragStart.bind(l),o),y.addListener(v,"dragend",this.onDragEnd.bind(l),o),y.addListener(v,"dragenter",this.onDragEnter.bind(l),o),y.addListener(v,"dragover",this.onDragOver.bind(l),o),y.addListener(v,"dragleave",this.onDragLeave.bind(l),o),y.addListener(v,"drop",this.onDrop.bind(l),o);function k(G,Z){var re=Date.now(),X=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!_||X||ae)o.moveCursorToPosition(G),_=re,A={x:R,y:$};else{var ye=a(A.x,A.y,R,$);ye>s?_=null:re-_>=p&&(o.renderer.scrollCursorIntoView(),_=null)}}function M(G,Z){var re=Date.now(),X=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,ye=o.renderer.scroller.getBoundingClientRect(),we={x:{left:R-ye.left,right:ye.right-R},y:{top:$-ye.top,bottom:ye.bottom-$}},pe=Math.min(we.x.left,we.x.right),ke=Math.min(we.y.top,we.y.bottom),at={row:G.row,column:G.column};pe/ae<=2&&(at.column+=we.x.left<we.x.right?-3:2),ke/X<=1&&(at.row+=we.y.top<we.y.bottom?-1:1);var Pt=G.row!=at.row,dt=G.column!=at.column,gt=!Z||G.row!=Z.row;Pt||dt&&!gt?N?re-N>=h&&o.renderer.scrollCursorIntoView(at):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(R,$),k(T,G),M(T,G)}function F(){x=o.selection.toOrientedRange(),b=o.session.addMarker(x,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),O(),C=setInterval(O,20),E=0,y.addListener(document,"mousemove",V)}function P(){clearInterval(C),o.session.removeMarker(b),b=null,o.selection.fromOrientedRange(x),o.isFocused()&&!I&&o.$resetCursorStyle(),x=null,T=null,E=0,N=null,_=null,y.removeListener(document,"mousemove",V)}var j=null;function V(){j==null&&(j=setTimeout(function(){j!=null&&b&&P()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function J(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],X=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var ye="none";return X&&Z.indexOf(ae)>=0?ye="copy":re.indexOf(ae)>=0?ye="move":Z.indexOf(ae)>=0&&(ye="copy"),ye}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=w.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),m=l.getButton(),v=l.domEvent.detail||1;if(v===1&&m===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var R=o.container;R.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,u,m){return Math.sqrt(Math.pow(u-l,2)+Math.pow(m-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,d){var f=t("./mouse_event").MouseEvent,y=t("../lib/event"),w=t("../lib/dom");r.addTouchListeners=function(h,p){var s="scroll",c,a,l,o,u,m,v=0,b,R=0,$=0,C=0,x,T;function E(){var k=window.navigator&&window.navigator.clipboard,M=!1,O=function(){var j=p.getCopyText(),V=p.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(M?["span",!j&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],j&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],j&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],k&&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(j){return p.commands.canExecute(j,p)},P=function(j){var V=j.target.getAttribute("action");if(V=="more"||!M)return M=!M,O();V=="paste"?k.readText().then(function(q){p.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(k?k.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(V)),T.firstChild.style.display="none",M=!1,V!="openCommandPalette"&&p.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(j){s="menu",j.stopPropagation(),j.preventDefault(),p.textInput.focus()},ontouchend:function(j){j.stopPropagation(),j.preventDefault(),P(j)},onclick:P},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function L(){if(!p.getOption("enableMobileMenu")){T&&I();return}T||E();var k=p.selection.cursor,M=p.renderer.textToScreenCoordinates(k.row,k.column),O=p.renderer.textToScreenCoordinates(0,0).pageX,F=p.renderer.scrollLeft,P=p.container.getBoundingClientRect();T.style.top=M.pageY-P.top-3+"px",M.pageX-P.left<P.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-P.left+"px"),T.style.display="",T.firstChild.style.display="none",p.on("input",I)}function I(k){T&&(T.style.display="none"),p.off("input",I)}function N(){u=null,clearTimeout(u);var k=p.selection.getRange(),M=k.contains(b.row,b.column);(k.isEmpty()||!M)&&(p.selection.moveToPosition(b),p.selection.selectWord()),s="wait",L()}function _(){u=null,clearTimeout(u),p.selection.moveToPosition(b);var k=R>=2?p.selection.getLineRange(b.row):p.session.getBracketRange(b);k&&!k.isEmpty()?p.selection.setRange(k):p.selection.selectWord(),s="wait"}y.addListener(h,"contextmenu",function(k){if(x){var M=p.textInput.getElement();M.focus()}},p),y.addListener(h,"touchstart",function(k){var M=k.touches;if(u||M.length>1){clearTimeout(u),u=null,l=-1,s="zoom";return}x=p.$mouseHandler.isMousePressed=!0;var O=p.renderer.layerConfig.lineHeight,F=p.renderer.layerConfig.lineHeight,P=k.timeStamp;o=P;var j=M[0],V=j.clientX,q=j.clientY;Math.abs(c-V)+Math.abs(a-q)>O&&(l=-1),c=k.clientX=V,a=k.clientY=q,$=C=0;var J=new f(k,p);if(b=J.getDocumentPosition(),P-l<500&&M.length==1&&!v)R++,k.preventDefault(),k.button=0,_();else{R=0;var G=p.selection.cursor,Z=p.selection.isEmpty()?G:p.selection.anchor,re=p.renderer.$cursorLayer.getPixelPosition(G,!0),X=p.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=p.renderer.scroller.getBoundingClientRect(),ye=p.renderer.layerConfig.offset,we=p.renderer.scrollLeft,pe=function(Pt,dt){return Pt=Pt/F,dt=dt/O-.75,Pt*Pt+dt*dt};if(k.clientX<ae.left){s="zoom";return}var ke=pe(k.clientX-ae.left-re.left+we,k.clientY-ae.top-re.top+ye),at=pe(k.clientX-ae.left-X.left+we,k.clientY-ae.top-X.top+ye);ke<3.5&&at<3.5&&(s=ke>at?"cursor":"anchor"),at<3.5?s="anchor":ke<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}l=P},p),y.addListener(h,"touchend",function(k){x=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",v=0):u?(p.selection.moveToPosition(b),v=0,L()):s=="scroll"?(A(),I()):L(),clearTimeout(u),u=null},p),y.addListener(h,"touchmove",function(k){u&&(clearTimeout(u),u=null);var M=k.touches;if(!(M.length>1||s=="zoom")){var O=M[0],F=c-O.clientX,P=a-O.clientY;if(s=="wait")if(F*F+P*P>4)s="cursor";else return k.preventDefault();c=O.clientX,a=O.clientY,k.clientX=O.clientX,k.clientY=O.clientY;var j=k.timeStamp,V=j-o;if(o=j,s=="scroll"){var q=new f(k,p);q.speed=1,q.wheelX=F,q.wheelY=P,10*Math.abs(F)<Math.abs(P)&&(F=0),10*Math.abs(P)<Math.abs(F)&&(P=0),V!=0&&($=F/V,C=P/V),p._emit("mousewheel",q),q.propagationStopped||($=C=0)}else{var J=new f(k,p),G=J.getDocumentPosition();s=="cursor"?p.selection.moveCursorToPosition(G):s=="anchor"&&p.selection.setSelectionAnchor(G.row,G.column),p.renderer.scrollCursorIntoView(G),k.preventDefault()}}},p);function A(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(C)<.01&&(C=0),v<20&&($=.9*$),v<20&&(C=.9*C);var k=p.session.getScrollTop();p.renderer.scrollBy(10*$,10*C),k==p.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,d){var f=t("../lib/event"),y=t("../lib/useragent"),w=t("./default_handlers").DefaultHandlers,h=t("./default_gutter_handler").GutterHandler,p=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,c=t("./touch_handler").addTouchListeners,a=t("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=u,new w(this),new h(this),new s(this);var v=function($){var C=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());C&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},b=u.renderer.getMouseEventTarget();f.addListener(b,"click",this.onMouseEvent.bind(this,"click"),u),f.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),f.addMultiMouseDownListener([b,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),f.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var R=u.renderer.$gutter;f.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),f.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),f.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),f.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),f.addListener(b,"mousedown",v,u),f.addListener(R,"mousedown",v,u),y.isIE&&u.renderer.scrollBarV&&(f.addListener(u.renderer.scrollBarV.element,"mousedown",v,u),f.addListener(u.renderer.scrollBarH.element,"mousedown",v,u)),u.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var C=u.renderer.screenToTextCoordinates($.x,$.y),x=u.session.selection.getRange(),T=u.renderer;!x.isEmpty()&&x.insideStart(C.row,C.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,m){this.editor.session&&this.editor._emit(u,new p(m,this.editor))},o.prototype.onMouseMove=function(u,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(u,new p(m,this.editor))},o.prototype.onMouseWheel=function(u,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(u,v)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,m){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var v=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var R=this,$=function(L){if(L){if(y.isWebKit&&!L.which&&R.releaseMouse)return R.releaseMouse();R.x=L.clientX,R.y=L.clientY,m&&m(L),R.mouseEvent=new p(L,R.editor),R.$mouseMoved=!0}},C=function(L){v.off("beforeEndOperation",T),clearInterval(E),v.session&&x(),R[R.state+"End"]&&R[R.state+"End"](L),R.state="",R.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,L&&R.onMouseEvent("mouseup",L),v.endOperation()},x=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(y.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){C(u)});var T=function(L){R.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};v.on("beforeEndOperation",T),v.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=$,R.releaseMouse=f.capture(this.editor.container,$,C);var E=setInterval(x,20)},o.prototype.cancelContextMenu=function(){var u=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),m&&m.domEvent&&f.stopEvent(m.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,d){var f=t("../lib/dom"),y=function(){function w(h){h.on("click",function(p){var s=p.getDocumentPosition(),c=h.session,a=c.getFoldAt(s.row,s.column,1);a&&(p.getAccelKey()?c.removeFold(a):c.expandFold(a),p.stop());var l=p.domEvent&&p.domEvent.target;l&&f.hasCssClass(l,"ace_inline_button")&&f.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(p){var s=h.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var c=p.getDocumentPosition().row,a=h.session;a.foldWidgets&&a.foldWidgets[c]&&h.session.onFoldWidgetClick(c,p),h.isFocused()||h.focus(),p.stop()}}),h.on("gutterdblclick",function(p){var s=h.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var c=p.getDocumentPosition().row,a=h.session,l=a.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=a.getFoldAt(c,a.getLine(c).length,1);u?a.removeFold(u):(a.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}p.stop()}})}return w}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,d){var f=t("../lib/keys"),y=t("../lib/event"),w=function(){function h(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return h.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},h.prototype.setKeyboardHandler=function(p){var s=this.$handlers;if(s[s.length-1]!=p){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(p,1)}},h.prototype.addKeyboardHandler=function(p,s){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var c=this.$handlers.indexOf(p);c!=-1&&this.$handlers.splice(c,1),s==null?this.$handlers.push(p):this.$handlers.splice(s,0,p),c==-1&&p.attach&&p.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(p){var s=this.$handlers.indexOf(p);return s==-1?!1:(this.$handlers.splice(s,1),p.detach&&p.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var p=this.$data,s=p.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(s,p)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(p,s,c,a){for(var l,o=!1,u=this.$editor.commands,m=this.$handlers.length;m--&&(l=this.$handlers[m].handleKeyboard(this.$data,p,s,c,a),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,a),o&&a&&p!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&y.stopEvent(a),o))););return!o&&p==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(p,s,c){var a=f.keyCodeToString(c);return this.$callKeyboardHandlers(s,a,c,p)},h.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},h}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,d){var f=0,y=0,w=!1,h=!1,p=!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,u=1,m=2,v=3,b=4,R=5,$=6,C=7,x=8,T=9,E=10,L=11,I=12,N=13,_=14,A=15,k=16,M=17,O=18,F=[O,O,O,O,O,O,O,O,O,$,R,$,x,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,$,x,b,b,L,L,L,b,b,b,b,b,E,T,E,T,T,m,m,m,m,m,m,m,m,m,m,T,b,b,b,b,b,b,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,b,b,b,b,b,b,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,b,b,b,b,O,O,O,O,O,O,R,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,b,L,L,L,L,b,b,b,b,o,b,b,O,b,b,L,L,m,m,b,o,b,b,b,m,o,b,b,b,b,b],P=[x,x,x,x,x,x,x,x,x,x,x,O,O,O,o,u,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x,R,N,_,A,k,M,T,L,L,L,L,L,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,T,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x];function j(G,Z,re,X){var ae=f?c:s,ye=null,we=null,pe=null,ke=0,at=null,Pt=null,dt=-1,gt=null,cn=null,Dt=[];if(!X)for(gt=0,X=[];gt<re;gt++)X[gt]=J(G[gt]);for(y=f,w=!1,h=!1,p=!1,cn=0;cn<re;cn++){if(ye=ke,Dt[cn]=we=q(G,X,Dt,cn),ke=ae[ye][we],at=ke&240,ke&=15,Z[cn]=pe=ae[ke][5],at>0)if(at==16){for(gt=dt;gt<cn;gt++)Z[gt]=1;dt=-1}else dt=-1;if(Pt=ae[ke][6],Pt)dt==-1&&(dt=cn);else if(dt>-1){for(gt=dt;gt<cn;gt++)Z[gt]=pe;dt=-1}X[cn]==R&&(Z[cn]=0),y|=pe}if(p){for(gt=0;gt<re;gt++)if(X[gt]==$){Z[gt]=f;for(var Kt=gt-1;Kt>=0&&X[Kt]==x;Kt--)Z[Kt]=f}}}function V(G,Z,re){if(!(y<G)){if(G==1&&f==l&&!h){re.reverse();return}for(var X=re.length,ae=0,ye,we,pe,ke;ae<X;){if(Z[ae]>=G){for(ye=ae+1;ye<X&&Z[ye]>=G;)ye++;for(we=ae,pe=ye-1;we<pe;we++,pe--)ke=re[we],re[we]=re[pe],re[pe]=ke;ae=ye}ae++}}}function q(G,Z,re,X){var ae=Z[X],ye,we,pe,ke;switch(ae){case o:case u:w=!1;case b:case v:return ae;case m:return w?v:m;case C:return w=!0,u;case x:return b;case T:return X<1||X+1>=Z.length||(ye=re[X-1])!=m&&ye!=v||(we=Z[X+1])!=m&&we!=v?b:(w&&(we=v),we==ye?we:b);case E:return ye=X>0?re[X-1]:R,ye==m&&X+1<Z.length&&Z[X+1]==m?m:b;case L:if(X>0&&re[X-1]==m)return m;if(w)return b;for(ke=X+1,pe=Z.length;ke<pe&&Z[ke]==L;)ke++;return ke<pe&&Z[ke]==m?m:b;case I:for(pe=Z.length,ke=X+1;ke<pe&&Z[ke]==I;)ke++;if(ke<pe){var at=G[X],Pt=at>=1425&&at<=2303||at==64286;if(ye=Z[ke],Pt&&(ye==u||ye==C))return u}return X<1||(ye=Z[X-1])==R?b:re[X-1];case R:return w=!1,h=!0,f;case $:return p=!0,b;case N:case _:case k:case M:case A:w=!1;case O:return b}}function J(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?u:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?I:/[\u0660-\u0669\u066b-\u066c]/.test(G)?v:Z==1642?L:/[\u06f0-\u06f9]/.test(G)?m:C:re==32&&Z<=8287?P[Z&255]:re==254&&Z>=65136?C:b}r.L=o,r.R=u,r.EN=m,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 X=G.split(""),ae=new Array(X.length),ye=new Array(X.length),we=[];f=re?l:a,j(X,we,X.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]===u&&(Z[pe]>C&&Z[pe]<N||Z[pe]===b||Z[pe]===O)?we[pe]=r.ON_R:pe>0&&X[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(X[pe])&&(we[pe-1]=we[pe]=r.R_H,pe++);X[X.length-1]===r.DOT&&(we[X.length-1]=r.B),X[0]===""&&(we[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)ye[pe]=we[ae[pe]];return{logicalFromVisual:ae,bidiLevels:ye}},r.hasBidiCharacters=function(G,Z){for(var re=!1,X=0;X<G.length;X++)Z[X]=J(G.charAt(X)),!re&&(Z[X]==u||Z[X]==C||Z[X]==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,d){var f=t("./lib/bidiutil"),y=t("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function p(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=f,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 p.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},p.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.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},p.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},p.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[f.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:f.DOT))}else this.line+=this.showInvisibles?l:f.DOT;var u=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,R){return b===" "||u.isFullWidth(b.charCodeAt(0))?(v=b===" "?u.getScreenTabSize(R+m):2,m+=v-1,y.stringRepeat(f.DOT,v)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==f.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var s=[];f.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=f.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.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[f.L]=this.charWidths[f.EN]=this.charWidths[f.ON_R]=c,this.charWidths[f.R]=this.charWidths[f.AN]=a,this.charWidths[f.R_H]=a*.45,this.charWidths[f.B]=this.charWidths[f.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},p.prototype.setEolChar=function(s){this.EOL=s},p.prototype.setContentWidth=function(s){this.contentWidth=s},p.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},p.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)},p.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=f.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=c&&o[l]%2!==0&&l++;for(var m=0;m<l;m++)u+=this.charWidths[o[m]];return!this.session.getOverwrite()&&s>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},p.prototype.getSelections=function(s,c){var a=this.bidiMap,l=a.bidiLevels,o,u=[],m=0,v=Math.min(s,c)-this.wrapIndent,b=Math.max(s,c)-this.wrapIndent,R=!1,$=!1,C=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var x,T=0;T<l.length;T++)x=a.logicalFromVisual[T],o=l[T],R=x>=v&&x<b,R&&!$?C=m:!R&&$&&u.push({left:C,width:m-C}),m+=this.charWidths[o],$=R;if(R&&T===l.length&&u.push({left:C,width:m-C}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},p.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var c=0,a=Math.max(a,0),l=0,o=0,u=this.bidiMap.bidiLevels,m=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+m/2;){if(l+=m,o===u.length-1){m=0;break}m=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(a>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&m===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&m!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},p}();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,d){var f=t("./lib/oop"),y=t("./lib/lang"),w=t("./lib/event_emitter").EventEmitter,h=t("./range").Range,p=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?h.fromPoints(a,a):this.isBackwards()?h.fromPoints(a,c):h.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 u=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,a),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||m)&&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,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,a===!0?new h(l,0,o,this.session.getLine(o).length):new h(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,u=c.column+a;return l<0&&(o=c.column-a,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).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),u=this.session.getDisplayLine(c,null,o.row,o.column),m=u.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=m[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 u=this.session.getFoldAt(c,a,1);if(u){this.moveCursorTo(u.end.row,u.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 u=y.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(a-=this.session.nonTokenRe.lastIndex,u=u.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(u)&&(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/,u=this.session.tokenRe;if(u.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(u.lastIndex=0;(l=c[a])&&!u.test(l);)if(u.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 u.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),u=this.session.getFoldAt(c,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==l.length){var m=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<m&&/^\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 u=y.stringReverse(o),m=this.$shortWordEndIndex(u);return this.moveCursorTo(c,a-m)},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 u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var m=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&a===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.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 u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.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 h.fromPoints(a,l)}catch{return h.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=h.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}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,f.implement(p.prototype,w),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,r,d){var f=t("./lib/report_error").reportError,y=2e3,w=function(){function h(p){this.splitRegex,this.states=p,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"},u="g",m=[],v=0;v<c.length;v++){var b=c[v];if(b.defaultToken&&(o.defaultToken=b.defaultToken),b.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),b.unicode&&u.indexOf("u")===-1&&(u+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var R=b.regex,$=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||$==1?b.token=b.token[0]:$-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:$-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&($>1?b.onMatch=this.$applyToken:b.onMatch=b.token),$>1&&(/\\\d/.test(b.regex)?R=b.regex.replace(/\\([0-9]+)/g,function(C,x){return"\\"+(parseInt(x,10)+l+1)}):($=1,R=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),o[l]=v,l+=$,a.push(R),b.onMatch||(b.onMatch=null)}}a.length||(o[0]=0,a.push("$")),m.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(p){y=p|0},h.prototype.$applyToken=function(p){var s=this.splitRegex.exec(p).slice(1),c=this.token.apply(this,s);if(typeof c=="string")return[{type:c,value:p}];for(var a=[],l=0,o=c.length;l<o;l++)s[l]&&(a[a.length]={type:c[l],value:s[l]});return a},h.prototype.$arrayTokens=function(p){if(!p)return[];var s=this.splitRegex.exec(p);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},h.prototype.removeCapturingGroups=function(p){var s=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,a){return a?"(?:":c});return s},h.prototype.createSplitterRegexp=function(p,s){if(p.indexOf("(?=")!=-1){var c=0,a=!1,l={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,m,v,b,R){return a?a=b!="]":b?a=!0:v?(c==l.stack&&(l.end=R+1,l.stack=-1),c--):m&&(c++,m.length!=1&&(l.stack=c,l.start=R)),o}),l.end!=null&&/^\)*$/.test(p.substr(l.end))&&(p=p.substring(0,l.start)+p.substr(l.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(s||"").replace("g",""))},h.prototype.getLineTokens=function(p,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],u=this.regExps[a];u.lastIndex=0;for(var m,v=[],b=0,R=0,$={type:null,value:""};m=u.exec(p);){var C=o.defaultToken,x=null,T=m[0],E=u.lastIndex;if(E-T.length>b){var L=p.substring(b,E-T.length);$.type==C?$.value+=L:($.type&&v.push($),$={type:C,value:L})}for(var I=0;I<m.length-2;I++)if(m[I+1]!==void 0){x=l[o[I]],x.onMatch?C=x.onMatch(T,a,c,p):C=x.token,x.next&&(typeof x.next=="string"?a=x.next:a=x.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],b=E,u=this.regExps[a],u.lastIndex=E),x.consumeLineEnd&&(b=E);break}if(T){if(typeof C=="string")(!x||x.merge!==!1)&&$.type===C?$.value+=T:($.type&&v.push($),$={type:C,value:T});else if(C){$.type&&v.push($),$={type:null,value:""};for(var I=0;I<C.length;I++)v.push(C[I])}}if(b==p.length)break;if(b=E,R++>y){for(R>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:p});b<p.length;)$.type&&v.push($),$={value:p.substring(b,b+=500),type:"overflow"};a="start",c=[];break}}return $.type&&v.push($),c.length>1&&c[0]!==a&&c.unshift("#tmp",a),{tokens:v,state:c.length?c:a}},h}();w.prototype.reportError=f,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){var f=t("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,s){if(!s){for(var c in p)this.$rules[c]=p[c];return}for(var c in p){for(var a=p[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(p,s,c,a,l){var o=typeof p=="function"?new p().getRules():p;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var m in o)a.push(s+m)}if(this.addRules(o,s),c)for(var v=Array.prototype[l?"push":"unshift"],u=0;u<a.length;u++)v.apply(this.$rules[a[u]],f(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(p,s){return(p!="start"||s.length)&&s.unshift(this.nextState,p),this.nextState},h=function(p,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var p=0,s=this.$rules;function c(a){var l=s[a];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],m=null;Array.isArray(u)&&(m=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var v=u.next||u.push;if(v&&Array.isArray(v)){var b=u.stateName;b||(b=u.token,typeof b!="string"&&(b=b[0]||""),s[b]&&(b+=p++)),s[b]=v,u.next=b,c(b)}else v=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=w,delete u.push),u.rules)for(var R in u.rules)s[R]?s[R].push&&s[R].push.apply(s[R],u.rules[R]):s[R]=u.rules[R];var $=typeof u=="string"?u:u.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(x){return s[x]}):m=s[$]),m){var C=[o,1].concat(m);u.noEscape&&(C=C.filter(function(x){return!x.next})),l.splice.apply(l,C),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(c,this)},this.createKeywordMapper=function(p,s,c,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(o){for(var u=p[o],m=u.split(a||"|"),v=m.length;v--;){var b=m[v];this.$keywordList.push(b),c&&(b=b.toLowerCase()),l[b]=o}},this),p=null,c?function(o){return l[o.toLowerCase()]||s}:function(o){return l[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),r.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,d){var f;f=function(){this.$behaviours={}},(function(){this.add=function(y,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][w]=h},this.addBehaviours=function(y){for(var w in y)for(var h in y[w])this.add(w,h,y[w][h])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,w){if(typeof y=="function")var h=new y().getBehaviours(w);else var h=y.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(y){if(y){for(var w={},h=0;h<y.length;h++)this.$behaviours[y[h]]&&(w[y[h]]=this.$behaviours[y[h]]);return w}else return this.$behaviours}}).call(f.prototype),r.Behaviour=f}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,d){var f=t("./range").Range,y=function(){function w(h,p,s){this.$session=h,this.$row=p,this.$rowTokens=h.getTokens(p);var c=h.getTokenAt(p,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 h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,p=this.$tokenIndex,s=h[p].start;if(s!==void 0)return s;for(s=0;p>0;)p-=1,s+=h[p].value.length;return s},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new f(this.$row,p,this.$row,p+h.value.length)},w}();r.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,d){var f=t("../../lib/oop"),y=t("../behaviour").Behaviour,w=t("../../token_iterator").TokenIterator,h=t("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,a={},l={'"':'"',"'":"'"},o=function(v){var b=-1;if(v.multiSelect&&(b=v.selection.index,a.rangeCount!=v.multiSelect.rangeCount&&(a={rangeCount:v.multiSelect.rangeCount})),a[b])return c=a[b];c=a[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(v,b,R,$){var C=v.end.row-v.start.row;return{text:R+b+$,selection:[0,v.start.column+1,C,v.end.column+(C?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(b,R,$,C,x){var T=$.getCursorPosition(),E=C.doc.getLine(T.row);if(x=="{"){o($);var L=$.getSelectionRange(),I=C.doc.getTextRange(L),N=C.getTokenAt(T.row,T.column);if(I!==""&&I!=="{"&&$.getWrapBehavioursEnabled())return u(L,I,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var _=[/tag\-(?:open|name)/,/attribute\-name/];return _.some(function(j){return j.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(m.recordAutoInsert($,C,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion($,C))return/[\]\}\)]/.test(E[T.column])||$.inMultiSelectMode||v.braces?(m.recordAutoInsert($,C,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,C,"{"),{text:"{",selection:[1,1]})}else if(x=="}"){o($);var A=E.substring(T.column,T.column+1);if(A=="}"){var k=C.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(k!==null&&m.isAutoInsertedClosing(T,E,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(x==`
|
180
|
+
`||x==`\r
|
181
|
+
`){o($);var M="";m.isMaybeInsertedClosing(T,E)&&(M=h.stringRepeat("}",c.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var A=E.substring(T.column,T.column+1);if(A==="}"){var O=C.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(C.getLine(O.row))}else if(M)var F=this.$getIndent(E);else{m.clearMaybeInsertedClosing();return}var P=F+C.getTabString();return{text:`
|
182
|
+
`+P+`
|
183
|
+
`+F+M,selection:[1,P.length,1,P.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,R,$,C,x){var T=C.doc.getTextRange(x);if(!x.isMultiLine()&&T=="{"){o($);var E=C.doc.getLine(x.start.row),L=E.substring(x.end.column,x.end.column+1);if(L=="}")return x.end.column++,x;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,R,$,C,x){if(x=="("){o($);var T=$.getSelectionRange(),E=C.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return u(T,E,"(",")");if(m.isSaneInsertion($,C))return m.recordAutoInsert($,C,")"),{text:"()",selection:[1,1]}}else if(x==")"){o($);var L=$.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N==")"){var _=C.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(_!==null&&m.isAutoInsertedClosing(L,I,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,R,$,C,x){var T=C.doc.getTextRange(x);if(!x.isMultiLine()&&T=="("){o($);var E=C.doc.getLine(x.start.row),L=E.substring(x.start.column+1,x.start.column+2);if(L==")")return x.end.column++,x}}),this.add("brackets","insertion",function(b,R,$,C,x){if(x=="["){o($);var T=$.getSelectionRange(),E=C.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return u(T,E,"[","]");if(m.isSaneInsertion($,C))return m.recordAutoInsert($,C,"]"),{text:"[]",selection:[1,1]}}else if(x=="]"){o($);var L=$.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N=="]"){var _=C.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(_!==null&&m.isAutoInsertedClosing(L,I,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,R,$,C,x){var T=C.doc.getTextRange(x);if(!x.isMultiLine()&&T=="["){o($);var E=C.doc.getLine(x.start.row),L=E.substring(x.start.column+1,x.start.column+2);if(L=="]")return x.end.column++,x}}),this.add("string_dquotes","insertion",function(b,R,$,C,x){var T=C.$mode.$quotes||l;if(x.length==1&&T[x]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(x)!=-1)return;o($);var E=x,L=$.getSelectionRange(),I=C.doc.getTextRange(L);if(I!==""&&(I.length!=1||!T[I])&&$.getWrapBehavioursEnabled())return u(L,I,E,E);if(!I){var N=$.getCursorPosition(),_=C.doc.getLine(N.row),A=_.substring(N.column-1,N.column),k=_.substring(N.column,N.column+1),M=C.getTokenAt(N.row,N.column),O=C.getTokenAt(N.row,N.column+1);if(A=="\\"&&M&&/escape/.test(M.type))return null;var F=M&&/string|escape/.test(M.type),P=!O||/string|escape/.test(O.type),j;if(k==E)j=F!==P,j&&/string\.end/.test(O.type)&&(j=!1);else{if(F&&!P||F&&P)return null;var V=C.$mode.tokenRe;V.lastIndex=0;var q=V.test(A);V.lastIndex=0;var J=V.test(k),G=C.$mode.$pairQuotesAfter,Z=G&&G[E]&&G[E].test(A);if(!Z&&q||J||k&&!/[\s;,.})\]\\]/.test(k))return null;var re=_[N.column-2];if(A==E&&(re==E||V.test(re)))return null;j=!0}return{text:j?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,R,$,C,x){var T=C.$mode.$quotes||l,E=C.doc.getTextRange(x);if(!x.isMultiLine()&&T.hasOwnProperty(E)){o($);var L=C.doc.getLine(x.start.row),I=L.substring(x.start.column+1,x.start.column+2);if(I==E)return x.end.column++,x}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,R,$,C,x){if(b==="doc-start"&&(x===`
|
184
|
+
`||x===`\r
|
185
|
+
`)&&$.selection.isEmpty()){var T=$.getCursorPosition();if(T.column===0)return;for(var E=C.doc.getLine(T.row),L=C.doc.getLine(T.row+1),I=C.getTokens(T.row),N=0,_=0;_<I.length;_++){N+=I[_].value.length;var A=I[_];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(A.type))return;if(/\*\//.test(A.value)){var k=I[_+1];if(!k||!/\.doc/.test(k.type))return}}var M=T.column-(N-A.value.length),O=A.value.indexOf("*/"),F=A.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&M>F&&M<F+3||O!==-1&&F!==-1&&M>=O&&M<=F||!/\.doc/.test(A.type))return;break}}var P=this.$getIndent(E);if(/\s*\*/.test(L))return/^\s*\*/.test(E)?{text:x+P+"* ",selection:[1,2+P.length,1,2+P.length]}:{text:x+P+" * ",selection:[1,3+P.length,1,3+P.length]};if(/\/\*\*/.test(E.substring(0,T.column)))return{text:x+P+" * "+x+" "+P+"*/",selection:[1,4+P.length,1,4+P.length]}}})},m.isSaneInsertion=function(v,b){var R=v.getCursorPosition(),$=new w(b,R.row,R.column);if(!this.$matchTokenType($.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(R.row)[R.column]))return!0;var C=new w(b,R.row,R.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",p))return!1}return $.stepForward(),$.getCurrentTokenRow()!==R.row||this.$matchTokenType($.getCurrentToken()||"text",s)},m.$matchTokenType=function(v,b){return b.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,b,R){var $=v.getCursorPosition(),C=b.doc.getLine($.row);this.isAutoInsertedClosing($,C,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=$.row,c.autoInsertedLineEnd=R+C.substr($.column),c.autoInsertedBrackets++},m.recordMaybeInsert=function(v,b,R){var $=v.getCursorPosition(),C=b.doc.getLine($.row);this.isMaybeInsertedClosing($,C)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=$.row,c.maybeInsertedLineStart=C.substr(0,$.column)+R,c.maybeInsertedLineEnd=C.substr($.column),c.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,b,R){return c.autoInsertedBrackets>0&&v.row===c.autoInsertedRow&&R===c.autoInsertedLineEnd[0]&&b.substr(v.column)===c.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,b){return c.maybeInsertedBrackets>0&&v.row===c.maybeInsertedRow&&b.substr(v.column)===c.maybeInsertedLineEnd&&b.substr(0,v.column)==c.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},f.inherits(m,y),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(t,r,d){for(var f=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],y=0,w=[],h=0;h<f.length;h+=2)w.push(y+=f[h]),f[h+1]&&w.push(45,y+=f[h+1]);r.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(t,r,d){var f=t("../config"),y=t("../tokenizer").Tokenizer,w=t("./text_highlight_rules").TextHighlightRules,h=t("./behaviour/cstyle").CstyleBehaviour,p=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 h,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new y(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,m,v){var b=u.doc,R=!0,$=!0,C=1/0,x=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(s.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var E=s.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),T=u.getUseSoftTabs();var I=function(j,V){var q=j.match(E);if(q){var J=q[1].length,G=q[0].length;!k(j,J,G)&&q[0][G-1]==" "&&G--,b.removeInLine(V,J,G)}},N=L+" ",_=function(j,V){(!R||/\S/.test(j))&&(k(j,C,C)?b.insertInLine({row:V,column:C},N):b.insertInLine({row:V,column:C},L))},A=function(j,V){return E.test(j)},k=function(j,V,q){for(var J=0;V--&&j.charAt(V)==" ";)J++;if(J%x!=0)return!1;for(var J=0;j.charAt(q++)==" ";)J++;return x>2?J%x!=x-1:J%x==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,M=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+s.escapeRegExp(L)+")"),O=new RegExp("(?:"+s.escapeRegExp(M)+")\\s*$"),_=function(Z,re){A(Z,re)||(!R||/\S/.test(Z))&&(b.insertInLine({row:re,column:Z.length},M),b.insertInLine({row:re,column:C},L))},I=function(Z,re){var X;(X=Z.match(O))&&b.removeInLine(re,Z.length-X[0].length,Z.length),(X=Z.match(E))&&b.removeInLine(re,X[1].length,X[0].length)},A=function(Z,re){if(E.test(Z))return!0;for(var X=u.getTokens(re),ae=0;ae<X.length;ae++)if(X[ae].type==="comment")return!0}}function F(j){for(var V=m;V<=v;V++)j(b.getLine(V),V)}var P=1/0;F(function(j,V){var q=j.search(/\S/);q!==-1?(q<C&&(C=q),$&&!A(j,V)&&($=!1)):P>j.length&&(P=j.length)}),C==1/0&&(C=P,R=!1,$=!1),T&&C%x!=0&&(C=Math.floor(C/x)*x),F($?I:_)},this.toggleBlockComment=function(o,u,m,v){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var R=new c(u,v.row,v.column),$=R.getCurrentToken();u.selection;var C=u.selection.toOrientedRange(),x,T;if($&&/comment/.test($.type)){for(var E,L;$&&/comment/.test($.type);){var I=$.value.indexOf(b.start);if(I!=-1){var N=R.getCurrentTokenRow(),_=R.getCurrentTokenColumn()+I;E=new a(N,_,N,_+b.start.length);break}$=R.stepBackward()}for(var R=new c(u,v.row,v.column),$=R.getCurrentToken();$&&/comment/.test($.type);){var I=$.value.indexOf(b.end);if(I!=-1){var N=R.getCurrentTokenRow(),_=R.getCurrentTokenColumn()+I;L=new a(N,_,N,_+b.end.length);break}$=R.stepForward()}L&&u.remove(L),E&&(u.remove(E),x=E.start.row,T=-b.start.length)}else T=b.start.length,x=m.start.row,u.insert(m.end,b.end),u.insert(m.start,b.start);C.start.row==x&&(C.start.column+=T),C.end.row==x&&(C.end.column+=T),u.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(o,u,m){return this.$getIndent(u)},this.checkOutdent=function(o,u,m){return!1},this.autoOutdent=function(o,u,m){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var m=o[u],v=m.prototype.$id,b=f.$modes[v];b||(f.$modes[v]=b=new m),f.$modes[u]||(f.$modes[u]=b),this.$embeds.push(u),this.$modes[u]=b}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(T){(function(E){var L=R[T],I=E[L];E[R[T]]=function(){return this.$delegator(L,arguments,I)}})(C)},C=this,u=0;u<R.length;u++)$(u)},this.$delegator=function(o,u,m){var v=u[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var b=v[2][v[2].length-1],R=this.$modes[b];if(R)return R[o].apply(R,[v[1]].concat([].slice.call(u,1)))}v=v[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var C=v.split(this.$embeds[$]);if(!C[0]&&C[1]){u[0]=C[1];var R=this.$modes[this.$embeds[$]];return R[o].apply(R,u)}}var x=m.apply(this,u);return m?x:void 0},this.transformAction=function(o,u,m,v,b){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var $ in R)if(R[$][u]){var C=R[$][u].apply(this,arguments);if(C)return C}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,m=[];for(var v in u)for(var b=u[v],R=0,$=b.length;R<$;R++)if(typeof b[R].token=="string")/keyword|support|storage/.test(b[R].token)&&m.push(b[R].regex);else if(typeof b[R].token=="object"){for(var C=0,x=b[R].token.length;C<x;C++)if(/keyword|support|storage/.test(b[R].token[C])){var v=b[R].regex.match(/\(.+?\)/g)[C];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return o?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,m,v){var b=this.$keywordList||this.$createKeywordList();return b.map(function(R){return{name:R,value:R,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,d){var f=t("./lib/dom"),y=function(){function w(h){this.session=h,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return w.prototype.getRowLength=function(h){var p;return this.lineWidgets?p=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[h]?1+p:this.$wrapData[h].length+1+p},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(h+=p.rowCount)}),h},w.prototype.$onChangeEditor=function(h){this.attach(h.editor)},w.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(h){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.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(h,p){var s=p.lineWidgets;if(!(!s||!h.action)){for(var c=h.data,a=c.start.row,l=c.end.row,o=h.action=="add",u=a+1;u<l;u++)s[u]&&(s[u].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(h){var p=this.session.lineWidgets;if(p){var s=h.start.row,c=h.end.row-s;if(c!==0)if(h.action=="remove"){var a=p.splice(s+1,c);!p[s]&&a[a.length-1]&&(p[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);p[s]&&p[s].column!=null&&h.start.column>p[s].column&&s++,l.unshift(s,0),p.splice.apply(p,l),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var p=!0;h.forEach(function(s,c){if(s)for(p=!1,s.row=c;s.$oldWidget;)s.$oldWidget.row=c,s=s.$oldWidget}),p&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[h.row];return p&&(h.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},w.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var p=this.editor.renderer;h.html&&!h.el&&(h.el=f.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=f.createElement("div"),h.el.textContent=h.text),h.el&&(f.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&f.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",p.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/p.layerConfig.lineHeight);var s=this.session.getFoldAt(h.row,0);if(h.$fold=s,s){var c=this.session.lineWidgets;h.row==s.end.row&&!c[s.start.row]?c[s.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(h),h},w.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[h.row];if(p==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;p;){if(p.$oldWidget==h){p.$oldWidget=h.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var p=this.session.lineWidgets,s=p&&p[h],c=[];s;)c.push(s),s=s.$oldWidget;return c},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,p){var s=this.session._changedWidgets,c=p.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,p.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<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(h,p){var s=p.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,p.$cursorLayer.config=s;for(var o=a;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,p.container.appendChild(u.el));var m=p.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(m+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=m-s.offset+"px";var v=u.coverGutter?0:p.gutterWidth;u.fixedWidth||(v-=p.scrollLeft),u.el.style.left=v+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=p.scrollBar.getWidth()+"px":u.el.style.right=""}}}},w}();r.LineWidgets=y}),ace.define("ace/apply_delta",["require","exports","module"],function(t,r,d){r.applyDelta=function(f,y,w){var h=y.start.row,p=y.start.column,s=f[h]||"";switch(y.action){case"insert":var c=y.lines;if(c.length===1)f[h]=s.substring(0,p)+y.lines[0]+s.substring(p);else{var a=[h,1].concat(y.lines);f.splice.apply(f,a),f[h]=s.substring(0,p)+f[h],f[h+y.lines.length-1]+=s.substring(p)}break;case"remove":var l=y.end.column,o=y.end.row;h===o?f[h]=s.substring(0,p)+s.substring(l):f.splice(h,o-h+1,s.substring(0,p)+f[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,d){var f=t("./lib/oop"),y=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=p(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 u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,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,f.implement(w.prototype,y);function h(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 p(s,c,a){var l=s.action=="insert",o=(l?1:-1)*(s.end.row-s.start.row),u=(l?1:-1)*(s.end.column-s.start.column),m=s.start,v=l?m:s.end;return h(c,m,a)?{row:c.row,column:c.column}:h(v,c,!a)?{row:c.row+o,column:c.column+(c.row==v.row?u:0)}:{row:m.row,column:m.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,d){var f=t("./lib/oop"),y=t("./apply_delta").applyDelta,w=t("./lib/event_emitter").EventEmitter,h=t("./range").Range,p=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 h(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 p(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),u=this.pos(a.row,a.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},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 u=this.getLine(a);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.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),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(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 u=this.clippedPos(a,l),m=this.clippedPos(a,o);return this.applyDelta({start:u,end:m,action:"remove",lines:this.getLinesForRange({start:u,end:m})},!0),this.clonePos(u)},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,u=l<this.getLength()-1,m=o?a-1:a,v=o?this.getLine(m).length:0,b=u?l+1:l,R=u?0:this.getLine(b).length,$=new h(m,v,b,R),C=this.$lines.slice(a,l+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),C},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 h||(a=h.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]:!h.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(y(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,u=o.length-l+1,m=a.start.row,v=a.start.column,b=0,R=0;b<u;b=R){R+=l-1;var $=o.slice(b,R);$.push(""),this.applyDelta({start:this.pos(m+b,v),end:this.pos(m+R,v=0),action:a.action,lines:$},!0)}a.lines=o.slice(b),a.start.row=m+b,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(),u=this.getNewLineCharacter().length,m=l||0,v=o.length;m<v;m++)if(a-=o[m].length+u,a<0)return{row:m,column:a+o[m].length+u};return{row:v-1,column:a+o[v-1].length+u}},c.prototype.positionToIndex=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,m=0,v=Math.min(a.row,o.length),b=l||0;b<v;++b)m+=o[b].length+u;return m+a.column},c.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},c}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",f.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,d){var f=t("./lib/oop"),y=t("./lib/event_emitter").EventEmitter,w=function(){function h(p,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var c=this;this.$worker=function(){if(c.running){for(var a=new Date,l=c.currentLine,o=-1,u=c.doc,m=l;c.lines[l];)l++;var v=u.getLength(),b=0;for(c.running=!1;l<v;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(b++,b%5===0&&new Date-a>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),m<=o&&c.fireUpdateEvent(m,o)}}}return h.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(p,s){var c={first:p,last:s};this._signal("update",{data:c})},h.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(p){var s=p.start.row,c=p.end.row-s;if(c===0)this.lines[s]=null;else if(p.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()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},h.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},h.prototype.$tokenizeRow=function(p){var s=this.doc.getLine(p),c=this.states[p-1],a=this.tokenizer.getLineTokens(s,c,p);return this.states[p]+""!=a.state+""?(this.states[p]=a.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=a.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();f.implement(w.prototype,y),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,r,d){var f=t("./lib/lang"),y=t("./range").Range,w=function(){function h(p,s,c){c===void 0&&(c="text"),this.setRegexp(p),this.clazz=s,this.type=c}return h.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},h.prototype.update=function(p,s,c,a){if(this.regExp)for(var l=a.firstRow,o=a.lastRow,u={},m=l;m<=o;m++){var v=this.cache[m];v==null&&(v=f.getMatchOffsets(c.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(C){return new y(m,C.offset,m,C.offset+C.length)}),this.cache[m]=v.length?v:"");for(var b=v.length;b--;){var R=v[b].toScreenRange(c),$=R.toString();u[$]||(u[$]=!0,s.drawSingleLineMarker(p,R,this.clazz,a))}}},h}();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,r,d){var f=function(){function C(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function(x){this.$session=x},C.prototype.add=function(x,T,E){if(!this.$fromUndo&&x!=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),x.id=this.$rev=++this.$maxRev}(x.action=="remove"||x.action=="insert")&&(this.$lastDelta=x),this.lastDeltas.push(x)}},C.prototype.addSelection=function(x,T){this.selections.push({value:x,rev:T||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(x,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,L=E.length;L--;){var I=E[L][0];if(I.id<=x)break;I.id<T&&(I.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function(x,T){for(var E=this.selections,L=E.length;L--;){var I=E[L];if(I.rev<x)return T&&(I=E[L+1]),I}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function(x,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,L=null,I=0,N=E.length;N--;){var _=E[N][0];if(_.id<T&&!L&&(L=N+1),_.id<=x){I=N+1;break}}return E.slice(I,L)},C.prototype.getChangedRanges=function(x,T){T==null&&(T=this.$rev+1)},C.prototype.getChangedLines=function(x,T){T==null&&(T=this.$rev+1)},C.prototype.undo=function(x,T){this.lastDeltas=null;var E=this.$undoStack;if(y(E,E.length)){x||(x=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=E.pop(),I=null;return L&&(I=x.undoChanges(L,T),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I}},C.prototype.redo=function(x,T){if(this.lastDeltas=null,x||(x=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),I=null;return L&&(I=x.redoChanges(L,T),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I},C.prototype.$syncRev=function(){var x=this.$undoStack,T=x[x.length-1],E=T&&T[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},C.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=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function(x){x==null&&(x=this.$rev),this.mark=x},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},C.prototype.fromJSON=function(x){this.reset(),this.$undoStack=x.$undoStack,this.$redoStack=x.$redoStack},C.prototype.$prettyPrint=function(x){return x?c(x):c(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+c(this.$redoStack)},C}();f.prototype.hasUndo=f.prototype.canUndo,f.prototype.hasRedo=f.prototype.canRedo,f.prototype.isClean=f.prototype.isAtBookmark,f.prototype.markClean=f.prototype.bookmark;function y(C,x){for(var T=x;T--;){var E=C[T];if(E&&!E[0].ignore){for(;T<x-1;){var L=o(C[T],C[T+1]);C[T]=L[0],C[T+1]=L[1],T++}return!0}}}var w=t("./range").Range,h=w.comparePoints;w.comparePoints;function p(C){return{row:C.row,column:C.column}}function s(C){return{start:p(C.start),end:p(C.end),action:C.action,lines:C.lines.slice()}}function c(C){if(C=C||this,Array.isArray(C))return C.map(c).join(`
|
194
|
+
`);var x="";return C.action?(x=C.action=="insert"?"+":"-",x+="["+C.lines+"]"):C.value&&(Array.isArray(C.value)?x=C.value.map(a).join(`
|
195
|
+
`):x=a(C.value)),C.start&&(x+=a(C)),(C.id||C.rev)&&(x+=" ("+(C.id||C.rev)+")"),x}function a(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function l(C,x){var T=C.action=="insert",E=x.action=="insert";if(T&&E)if(h(x.start,C.end)>=0)m(x,C,-1);else if(h(x.start,C.start)<=0)m(C,x,1);else return null;else if(T&&!E)if(h(x.start,C.end)>=0)m(x,C,-1);else if(h(x.end,C.start)<=0)m(C,x,-1);else return null;else if(!T&&E)if(h(x.start,C.start)>=0)m(x,C,1);else if(h(x.start,C.start)<=0)m(C,x,1);else return null;else if(!T&&!E)if(h(x.start,C.start)>=0)m(x,C,1);else if(h(x.end,C.start)<=0)m(C,x,-1);else return null;return[x,C]}function o(C,x){for(var T=C.length;T--;)for(var E=0;E<x.length;E++)if(!l(C[T],x[E])){for(;T<C.length;){for(;E--;)l(x[E],C[T]);E=x.length,T++}return[C,x]}return C.selectionBefore=x.selectionBefore=C.selectionAfter=x.selectionAfter=null,[x,C]}function u(C,x){var T=C.action=="insert",E=x.action=="insert";if(T&&E)h(C.start,x.start)<0?m(x,C,1):m(C,x,1);else if(T&&!E)h(C.start,x.end)>=0?m(C,x,-1):(h(C.start,x.start)<=0||m(C,w.fromPoints(x.start,C.start),-1),m(x,C,1));else if(!T&&E)h(x.start,C.end)>=0?m(x,C,-1):(h(x.start,C.start)<=0||m(x,w.fromPoints(C.start,x.start),-1),m(C,x,1));else if(!T&&!E)if(h(x.start,C.end)>=0)m(x,C,-1);else if(h(x.end,C.start)<=0)m(C,x,-1);else{var L,I;return h(C.start,x.start)<0&&(L=C,C=b(C,x.start)),h(C.end,x.end)>0&&(I=b(C,x.end)),v(x.end,C.start,C.end,-1),I&&!L&&(C.lines=I.lines,C.start=I.start,C.end=I.end,I=C),[x,L,I].filter(Boolean)}return[x,C]}function m(C,x,T){v(C.start,x.start,x.end,T),v(C.end,x.start,x.end,T)}function v(C,x,T,E){C.row==(E==1?x:T).row&&(C.column+=E*(T.column-x.column)),C.row+=E*(T.row-x.row)}function b(C,x){var T=C.lines,E=C.end;C.end=p(x);var L=C.end.row-C.start.row,I=T.splice(L,T.length),N=L?x.column:x.column-C.start.column;T.push(I[0].substring(0,N)),I[0]=I[0].substr(N);var _={start:p(x),end:E,lines:I,action:C.action};return _}function R(C,x){x=s(x);for(var T=C.length;T--;){for(var E=C[T],L=0;L<E.length;L++){var I=E[L],N=u(I,x);x=N[0],N.length!=2&&(N[2]?(E.splice(L+1,1,N[1],N[2]),L++):N[1]||(E.splice(L,1),L--))}E.length||C.splice(T,1)}return C}function $(C,x){for(var T=0;T<x.length;T++)for(var E=x[T],L=0;L<E.length;L++)R(C,E[L])}r.UndoManager=f}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,r,d){var f=t("../range").Range,y=function(){function w(h,p){this.foldData=h,Array.isArray(p)?this.folds=p:p=this.folds=[p];var s=p[p.length-1];this.range=new f(p[0].start.row,p[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(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(p){p.start.row+=h,p.end.row+=h})},w.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(p,s){return-p.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},w.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},w.prototype.walk=function(h,p,s){var c=0,a=this.folds,l,o,u,m=!0;p==null&&(p=this.end.row,s=this.end.column);for(var v=0;v<a.length;v++){if(l=a[v],o=l.range.compareStart(p,s),o==-1){h(null,p,s,c,m);return}if(u=h(null,l.start.row,l.start.column,c,m),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;m=!l.sameRow,c=l.end.column}h(null,p,s,c,m)},w.prototype.getNextFoldTo=function(h,p){for(var s,c,a=0;a<this.folds.length;a++){if(s=this.folds[a],c=s.range.compareEnd(h,p),c==-1)return{fold:s,kind:"after"};if(c===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,p,s){var c=this.getNextFoldTo(h,p),a,l;if(c){if(a=c.fold,c.kind=="inside"&&a.start.column!=p&&a.start.row!=h)window.console&&window.console.log(h,p,a);else if(a.start.row==h){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(h,p){var s=this.getNextFoldTo(h,p);if(!s||s.kind=="inside")return null;var c=s.fold,a=this.folds,l=this.foldData,o=a.indexOf(c),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var m=new w(l,a);return l.splice(l.indexOf(this)+1,0,m),m},w.prototype.merge=function(h){for(var p=h.folds,s=0;s<p.length;s++)this.addFold(p[s]);var c=this.foldData;c.splice(c.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(p){h.push(" "+p.toString())}),h.push("]"),h.join(`
|
196
|
+
`)},w.prototype.idxToPosition=function(h){for(var p=0,s=0;s<this.folds.length;s++){var c=this.folds[s];if(h-=c.start.column-p,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;p=c.end.column}return{row:this.end.row,column:this.end.column+h}},w}();r.FoldLine=y}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,r,d){var f=t("./range").Range,y=f.comparePoints,w=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(p,s,c){for(var a=this.ranges,l=c||0;l<a.length;l++){var o=a[l],u=y(p,o.end);if(!(u>0)){var m=y(p,o.start);return u===0?s&&m!==0?-l-2:l:m>0||m===0&&!s?l:-l-1}}return-l-1},h.prototype.add=function(p){var s=!p.isEmpty(),c=this.pointIndex(p.start,s);c<0&&(c=-c-1);var a=this.pointIndex(p.end,s,c);return a<0?a=-a-1:a++,this.ranges.splice(c,a-c,p)},h.prototype.addList=function(p){for(var s=[],c=p.length;c--;)s.push.apply(s,this.add(p[c]));return s},h.prototype.substractPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges.splice(s,1)},h.prototype.merge=function(){var p=[],s=this.ranges;s=s.sort(function(u,m){return y(u.start,m.start)});for(var c=s[0],a,l=1;l<s.length;l++){a=c,c=s[l];var o=y(a.end,c.start);o<0||o==0&&!a.isEmpty()&&!c.isEmpty()||(y(a.end,c.end)<0&&(a.end.row=c.end.row,a.end.column=c.end.column),s.splice(l,1),p.push(c),c=a,l--)}return this.ranges=s,p},h.prototype.contains=function(p,s){return this.pointIndex({row:p,column:s})>=0},h.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},h.prototype.rangeAtPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges[s]},h.prototype.clipRows=function(p,s){var c=this.ranges;if(c[0].start.row>s||c[c.length-1].start.row<p)return[];var a=this.pointIndex({row:p,column:0});a<0&&(a=-a-1);var l=this.pointIndex({row:s,column:0},a);l<0&&(l=-l-1);for(var o=[],u=a;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(p){for(var s=p.start,c=p.end,a=s.row,l=c.row,o=this.ranges,u=0,m=o.length;u<m;u++){var v=o[u];if(v.end.row>=a)break}if(p.action=="insert")for(var b=l-a,R=-s.column+c.column;u<m;u++){var v=o[u];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+=R,v.start.row+=b)),v.end.row==a&&v.end.column>=s.column){if(v.end.column==s.column&&this.$bias<0)continue;v.end.column==s.column&&R>0&&u<m-1&&v.end.column>v.start.column&&v.end.column==o[u+1].start.column&&(v.end.column-=R),v.end.column+=R,v.end.row+=b}}else for(var b=a-l,R=s.column-c.column;u<m;u++){var v=o[u];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?(b||v.end.column>s.column)&&(v.end.column=s.column,v.end.row=s.row):(v.end.column+=R,v.end.row+=b):v.end.row>l&&(v.end.row+=b),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?(b||v.start.column>s.column)&&(v.start.column=s.column,v.start.row=s.row):(v.start.column+=R,v.start.row+=b):v.start.row>l&&(v.start.row+=b)}if(b!=0&&u<m)for(;u<m;u++){var v=o[u];v.start.row+=b,v.end.row+=b}},h}();w.prototype.comparePoints=y,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,r,d){var f=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(u[v]=m[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 u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=t("../range_list").RangeList,w=function(a){f(l,a);function l(o,u){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=u,m.range=o,m.start=o.start,m.end=o.end,m.sameRow=o.start.row==o.end.row,m.subFolds=m.ranges=[],m}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(m){u.subFolds.push(m.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){p(o,this.start);for(var u=o.start.row,m=o.start.column,v=0,b=-1;v<this.subFolds.length&&(b=this.subFolds[v].range.compare(u,m),b==1);v++);var R=this.subFolds[v],$=0;if(b==0){if(R.range.containsRange(o))return R.addSubFold(o);$=1}for(var u=o.range.end.row,m=o.range.end.column,C=v,b=-1;C<this.subFolds.length&&(b=this.subFolds[C].range.compare(u,m),b==1);C++);b==0&&C++;for(var x=this.subFolds.splice(v,C-v,o),T=b==0?x.length-1:x.length,E=$;E<T;E++)o.addSubFold(x[E]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(y);function h(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function p(a,l){h(a.start,l),h(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,d){var f=t("../range").Range,y=t("./fold_line").FoldLine,w=t("./fold").Fold,h=t("../token_iterator").TokenIterator,p=t("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(c,a,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,m=0;m<u.length;m++){var v=u[m].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 u[m]}}},this.getFoldsInRange=function(c){var a=c.start,l=c.end,o=this.$foldData,u=[];a.column+=1,l.column-=1;for(var m=0;m<o.length;m++){var v=o[m].range.compareRange(c);if(v!=2){if(v==-2)break;for(var b=o[m].folds,R=0;R<b.length;R++){var $=b[R];if(v=$.range.compareRange(c),v==-2)break;if(v!=2){if(v==42)break;u.push($)}}}}return a.column-=1,l.column+=1,u},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 u={end:{column:0}},m,v,b=0;b<o.folds.length;b++){v=o.folds[b];var R=v.range.compareEnd(c,a);if(R==-1){m=this.getLine(v.start.row).substring(u.end.column,v.start.column);break}else if(R===0)return null;u=v}return m||(m=this.getLine(v.start.row).substring(u.end.column)),l==-1?m.substring(0,a-u.end.column):l==1?m.substring(a-u.end.column):m},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 u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,a){for(var l=this.$foldData,o=a-c+1,u=0;u<l.length;u++){var m=l[u],v=m.end.row,b=m.start.row;if(v>=a){b<a&&(b>=c?o-=a-b:o=0);break}else v>=c&&(b>=c?o-=v-b: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,u;c instanceof w?u=c:(u=new w(a,c),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var m=u.start.row,v=u.start.column,b=u.end.row,R=u.end.column,$=this.getFoldAt(m,v,1),C=this.getFoldAt(b,R,-1);if($&&C==$)return $.addSubFold(u);$&&!$.range.isStart(m,v)&&this.removeFold($),C&&!C.range.isEnd(b,R)&&this.removeFold(C);var x=this.getFoldsInRange(u.range);x.length>0&&(this.removeFolds(x),u.collapseChildren||x.forEach(function(I){u.addSubFold(I)}));for(var T=0;T<l.length;T++){var E=l[T];if(b==E.start.row){E.addFold(u),o=!0;break}else if(m==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var L=l[T+1];if(L&&L.start.row==b){E.merge(L);break}}break}else if(b<=E.start.row)break}return o||(E=this.$addFoldLine(new y(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(E.start.row,E.start.row):this.$updateRowLengthCache(E.start.row,E.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},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,u=this.$foldData,m=a.folds;if(m.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(c.end.row,c.end.column))m.pop(),a.end.row=m[m.length-1].end.row,a.end.column=m[m.length-1].end.column;else if(a.range.isStart(c.start.row,c.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(c.sameRow)m.splice(m.indexOf(c),1);else{var v=a.split(c.start.row,c.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[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 f(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof c=="number")l=new f(c,0,c,this.getLine(c).length);else if("row"in c)l=f.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(m){o=o.concat(this.unfold(m))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&f.comparePoints(o[0].start,l.start)<0&&f.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},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,u){o==null&&(o=c.start.row),u==null&&(u=0),a==null&&(a=c.end.row),l==null&&(l=this.getLine(a).length);var m=this.doc,v="";return c.walk(function(b,R,$,C){if(!(R<o)){if(R==o){if($<u)return;C=Math.max(u,C)}b!=null?v+=b:v+=m.getLine(R).substring(C,$)}},a,l),v},this.getDisplayLine=function(c,a,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,a,l,o);var m;return m=this.doc.getLine(c),m.substring(o||0,a||m.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 y(c,l)}),c},this.toggleFold=function(c){var a=this.selection,l=a.getRange(),o,u;if(l.isEmpty()){var m=l.start;if(o=this.getFoldAt(m.row,m.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(m))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:m.row,column:m.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(m.row,m.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 b="...";if(!l.isMultiLine()){if(b=this.getTextRange(l),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,l)},this.getCommentFoldRange=function(c,a,l){var o=new h(this,c,a),u=o.getCurrentToken(),m=u&&u.type;if(u&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),b=new f;if(l!=1){do u=o.stepBackward();while(u&&v.test(u.type));u=o.stepForward()}b.start.row=o.getCurrentTokenRow(),b.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,c,a);var R=this.getState(o.$row);if(l!=-1){var $=-1;do if(u=o.stepForward(),$==-1){var C=this.getState(o.$row);R.toString()!==C.toString()&&($=o.$row)}else if(o.$row>$)break;while(u&&v.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return b.end.row=o.getCurrentTokenRow(),b.end.column=o.getCurrentTokenColumn(),b}},this.foldAll=function(c,a,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),c=c||0;for(var m=c;m<a;m++)if(u[m]==null&&(u[m]=this.getFoldWidget(m)),u[m]=="start"&&!(o&&!o(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=a&&v.start.row>=c&&(m=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 u=l[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var 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,u;o>=0;){var m=l[o];if(m==null&&(m=l[o]=this.getFoldWidget(o)),m=="start"){var v=this.getFoldWidgetRange(o);if(u||(u=v),v&&v.end.row>=c)break}o--}return{range:o!==-1&&v,firstRange:u}},this.onFoldWidgetClick=function(c,a){a instanceof p&&(a=a.domEvent);var l={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,a){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,m=this.getFoldAt(c,u===-1?0:o.length,u);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(c,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(a.siblings){var b=this.getParentFoldRangeData(c);if(b.range)var R=b.range.start.row+1,$=b.range.end.row;this.foldAll(R,$,a.all?1e4:0)}else a.children?($=v?v.end.row:this.getLength(),this.foldAll(c+1,$,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 u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):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,d){var f=t("../token_iterator").TokenIterator,y=t("../range").Range;function w(){this.findMatchingBracket=function(h,p){if(h.column==0)return null;var s=p||this.getLine(h.row).charAt(h.column-1);if(s=="")return null;var c=s.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var p=this.getLine(h.row),s=!0,c,a=p.charAt(h.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=p.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=y.fromPoints(h,o),s||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=y.fromPoints(o,h),s||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,p){var s=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,a=!p&&s.charAt(h.column-1),l=a&&a.match(c);if(l||(a=(p===void 0||p)&&s.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(c)),!l)return null;var o=new y(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var m=new y(u.row,u.column,u.row,u.column+1);return[o,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,p,s){var c=this.$brackets[h],a=1,l=new f(this,p.row,p.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 u=p.column-l.getCurrentTokenColumn()-2,m=o.value;;){for(;u>=0;){var v=m.charAt(u);if(v==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else v==h&&(a+=1);u-=1}do o=l.stepBackward();while(o&&!s.test(o.type));if(o==null)break;m=o.value,u=m.length-1}return null}},this.$findClosingBracket=function(h,p,s){var c=this.$brackets[h],a=1,l=new f(this,p.row,p.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 u=p.column-l.getCurrentTokenColumn();;){for(var m=o.value,v=m.length;u<v;){var b=m.charAt(u);if(b==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else b==h&&(a+=1);u+=1}do o=l.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var p=new f(this,h.row,h.column),s=this.$findTagName(p);if(s){var c=p.stepBackward();return c.value==="<"?this.$findClosingTag(p,s):this.$findOpeningTag(p,s)}},this.$findTagName=function(h){var p=h.getCurrentToken(),s=!1,c=!1;if(p&&p.type.indexOf("tag-name")===-1)do c?p=h.stepBackward():p=h.stepForward(),p&&(p.value==="/>"?c=!0:p.type.indexOf("tag-name")!==-1&&(s=!0));while(p&&!s);return p},this.$findClosingTag=function(h,p){var s,c=p.value,a=p.value,l=0,o=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=h.stepForward();var u=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length),m=!1;do{if(s=p,s.type.indexOf("tag-close")!==-1&&!m){var v=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(p=h.stepForward(),p){if(p.value===">"&&!m){var v=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(c=p.value,a===c){if(s.value==="<")l++;else if(s.value==="</"&&(l--,l<0)){h.stepBackward();var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);p=h.stepForward();var R=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=h.stepForward()),p&&p.value===">")var $=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(a===c&&p.value==="/>"&&(l--,l<0))var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),R=b,$=R,v=new y(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(p&&l>=0);if(o&&v&&b&&$&&u&&R)return{openTag:new y(o.start.row,o.start.column,v.end.row,v.end.column),closeTag:new y(b.start.row,b.start.column,$.end.row,$.end.column),openTagName:u,closeTagName:R}},this.$findOpeningTag=function(h,p){var s=h.getCurrentToken(),c=p.value,a=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,m=new y(l,o,l,u);h.stepForward();var v=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=h.stepForward()),!(!p||p.value!==">")){var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(p=s,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+p.value.length,s=h.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(c===p.value)if(s.value==="<"){if(a++,a>0){var R=new y(l,o,l,u),$=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do p=h.stepForward();while(p&&p.value!==">");var C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(p.value==="/>"){for(var x=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){a--;break}else if(T.value==="<")break;T=h.stepBackward(),x++}for(var E=0;E<x;E++)h.stepForward()}}while(s&&a<=0);if($&&C&&m&&b&&R&&v)return{openTag:new y($.start.row,$.start.column,C.end.row,C.end.column),closeTag:new y(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:R,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,d){var f=t("./lib/oop"),y=t("./lib/lang"),w=t("./bidihandler").BidiHandler,h=t("./config"),p=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,u=t("./background_tokenizer").BackgroundTokenizer,m=t("./search_highlight").SearchHighlight,v=t("./undomanager").UndoManager,b=function(){function _(A,k){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"+ ++_.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new u(new c().getTokenizer(),this);var M=this;this.bgTokenizer.on("update",function(O){M._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new o(A)),this.setDocument(A),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),h.resetOptions(this),this.setMode(k),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return _.prototype.$initOperationListeners=function(){var A=this;this.curOp=null,this.on("change",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.docChanged=!0},!0),this.on("changeSelection",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.selectionChanged=!0},!0),this.$operationResetTimer=y.delayedCall(this.endOperation.bind(this,!0))},_.prototype.startOperation=function(A){if(this.curOp){if(!A||this.curOp.command)return;this.prevOp=this.curOp}A||(A={}),this.$operationResetTimer.schedule(),this.curOp={command:A.command||{},args:A.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",A)},_.prototype.endOperation=function(A){if(this.curOp){if(A&&A.returnValue===!1){this.curOp=null,this._signal("endOperation",A);return}if(A==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var k=this.selection.toJSON();this.curOp.selectionAfter=k,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(k),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",A)}},_.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},_.prototype.getDocument=function(){return this.doc},Object.defineProperty(_.prototype,"widgetManager",{get:function(){var A=new l(this);return this.widgetManager=A,this.$editor&&A.attach(this.$editor),A},set:function(A){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:A})},enumerable:!1,configurable:!0}),_.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var k=this.$docRowCache.length,M=this.$getRowCacheIndex(this.$docRowCache,A)+1;k>M&&(this.$docRowCache.splice(M,k),this.$screenRowCache.splice(M,k))},_.prototype.$getRowCacheIndex=function(A,k){for(var M=0,O=A.length-1;M<=O;){var F=M+O>>1,P=A[F];if(k>P)M=F+1;else if(k<P)O=F-1;else return F}return M-1},_.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},_.prototype.onChangeFold=function(A){var k=A.data;this.$resetRowCache(k.start.row)},_.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var k=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(k&&k.length&&(this.$undoManager.add({action:"removeFolds",folds:k},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},_.prototype.onSelectionChange=function(){this._signal("changeSelection")},_.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},_.fromJSON=function(A){typeof A=="string"&&(A=JSON.parse(A));var k=new v;k.$undoStack=A.history.undo,k.$redoStack=A.history.redo,k.mark=A.history.mark,k.$rev=A.history.rev;var M=new _(A.value);return A.folds.forEach(function(O){M.addFold("...",a.fromPoints(O.start,O.end))}),M.setAnnotations(A.annotations),M.setBreakpoints(A.breakpoints),M.setMode(A.mode),M.setScrollLeft(A.scrollLeft),M.setScrollTop(A.scrollTop),M.setUndoManager(k),M.selection.fromJSON(A.selection),M},_.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},_.prototype.toString=function(){return this.doc.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.getState=function(A){return this.bgTokenizer.getState(A)},_.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},_.prototype.getTokenAt=function(A,k){var M=this.bgTokenizer.getTokens(A),O,F=0;if(k==null){var P=M.length-1;F=this.getLine(A).length}else for(var P=0;P<M.length&&(F+=M[P].value.length,!(F>=k));P++);return O=M[P],O?(O.index=P,O.start=F-O.value.length,O):null},_.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var k=this;A.addSession(this),this.$syncInformUndoManager=function(){k.$informUndoManager.cancel(),k.mergeUndoDeltas=!1},this.$informUndoManager=y.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?y.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(A){this.setOption("tabSize",A)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(A,k){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+k,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(A,k){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+k,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var k=0;k<A.length;k++)this.$breakpoints[A[k]]="ace_breakpoint";this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},_.prototype.setBreakpoint=function(A,k){k===void 0&&(k="ace_breakpoint"),k?this.$breakpoints[A]=k:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},_.prototype.addMarker=function(A,k,M,O){var F=this.$markerId++,P={range:A,type:M||"line",renderer:typeof M=="function"?M:null,clazz:k,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=P,this._signal("changeFrontMarker")):(this.$backMarkers[F]=P,this._signal("changeBackMarker")),F},_.prototype.addDynamicMarker=function(A,k){if(A.update){var M=this.$markerId++;return A.id=M,A.inFront=!!k,k?(this.$frontMarkers[M]=A,this._signal("changeFrontMarker")):(this.$backMarkers[M]=A,this._signal("changeBackMarker")),A}},_.prototype.removeMarker=function(A){var k=this.$frontMarkers[A]||this.$backMarkers[A];if(k){var M=k.inFront?this.$frontMarkers:this.$backMarkers;delete M[A],this._signal(k.inFront?"changeFrontMarker":"changeBackMarker")}},_.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},_.prototype.highlight=function(A){if(!this.$searchHighlight){var k=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(k)}this.$searchHighlight.setRegexp(A)},_.prototype.highlightLines=function(A,k,M,O){typeof k!="number"&&(M=k,k=A),M||(M="ace_step");var F=new a(A,0,k,1/0);return F.id=this.addMarker(F,M,"fullLine",O),F},_.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},_.prototype.getAnnotations=function(){return this.$annotations||[]},_.prototype.clearAnnotations=function(){this.setAnnotations([])},_.prototype.$detectNewLine=function(A){var k=A.match(/^.*?(\r?\n)/m);k?this.$autoNewLine=k[1]:this.$autoNewLine=`
|
198
|
+
`},_.prototype.getWordRange=function(A,k){var M=this.getLine(A),O=!1;if(k>0&&(O=!!M.charAt(k-1).match(this.tokenRe)),O||(O=!!M.charAt(k).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(M.slice(k-1,k+1)))var F=/\s/;else var F=this.nonTokenRe;var P=k;if(P>0){do P--;while(P>=0&&M.charAt(P).match(F));P++}for(var j=k;j<M.length&&M.charAt(j).match(F);)j++;return new a(A,P,A,j)},_.prototype.getAWordRange=function(A,k){for(var M=this.getWordRange(A,k),O=this.getLine(M.end.row);O.charAt(M.end.column).match(/[ \t]/);)M.end.column+=1;return M},_.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},_.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},_.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},_.prototype.getUseWorker=function(){return this.$useWorker},_.prototype.onReloadTokenizer=function(A){var k=A.data;this.bgTokenizer.start(k.first),this._signal("tokenizerUpdate",A)},_.prototype.setMode=function(A,k){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var M=A,O=M.path}else O=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!M){this.$onChangeMode(this.$modes[O]),k&&k();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(!this.destroyed){if(this.$modeId!==O)return k&&k();this.$modes[O]&&!M?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(M),M||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),k&&k()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},_.prototype.$onChangeMode=function(A,k){if(k||(this.$modeId=A.$id),this.$mode!==A){var M=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=A.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=A.tokenRe,this.nonTokenRe=A.nonTokenRe,k||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:M,mode:A}))}},_.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},_.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){h.warn("Could not load worker",A),this.$worker=null}},_.prototype.getMode=function(){return this.$mode},_.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},_.prototype.getScrollTop=function(){return this.$scrollTop},_.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},_.prototype.getScrollLeft=function(){return this.$scrollLeft},_.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},_.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function(k){k&&k.screenWidth>A&&(A=k.screenWidth)}),this.lineWidgetWidth=A},_.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var k=this.doc.getAllLines(),M=this.$rowLengthCache,O=0,F=0,P=this.$foldData[F],j=P?P.start.row:1/0,V=k.length,q=0;q<V;q++){if(q>j){if(q=P.end.row+1,q>=V)break;P=this.$foldData[F++],j=P?P.start.row:1/0}M[q]==null&&(M[q]=this.$getStringScreenWidth(k[q])[0]),M[q]>O&&(O=M[q])}this.screenWidth=O}},_.prototype.getLine=function(A){return this.doc.getLine(A)},_.prototype.getLines=function(A,k){return this.doc.getLines(A,k)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},_.prototype.insert=function(A,k){return this.doc.insert(A,k)},_.prototype.remove=function(A){return this.doc.remove(A)},_.prototype.removeFullLines=function(A,k){return this.doc.removeFullLines(A,k)},_.prototype.undoChanges=function(A,k){if(A.length){this.$fromUndo=!0;for(var M=A.length-1;M!=-1;M--){var O=A[M];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!k&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(A,k){if(A.length){this.$fromUndo=!0;for(var M=0;M<A.length;M++){var O=A[M];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!k&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},_.prototype.setUndoSelect=function(A){this.$undoSelect=A},_.prototype.$getUndoSelection=function(A,k){function M(V){return k?V.action!=="insert":V.action==="insert"}for(var O,F,P=0;P<A.length;P++){var j=A[P];if(j.start){if(!O){M(j)?O=a.fromPoints(j.start,j.end):O=a.fromPoints(j.start,j.start);continue}M(j)?(F=j.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=j.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=j.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(j.start,j.start)))}}return O},_.prototype.replace=function(A,k){return this.doc.replace(A,k)},_.prototype.moveText=function(A,k,M){var O=this.getTextRange(A),F=this.getFoldsInRange(A),P=a.fromPoints(k,k);if(!M){this.remove(A);var j=A.start.row-A.end.row,V=j?-A.end.column:A.start.column-A.end.column;V&&(P.start.row==A.end.row&&P.start.column>A.end.column&&(P.start.column+=V),P.end.row==A.end.row&&P.end.column>A.end.column&&(P.end.column+=V)),j&&P.start.row>=A.end.row&&(P.start.row+=j,P.end.row+=j)}if(P.end=this.insert(P.start,O),F.length){var q=A.start,J=P.start,j=J.row-q.row,V=J.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+=j,re.end.row+=j,re}))}return P},_.prototype.indentRows=function(A,k,M){M=M.replace(/\t/g,this.getTabString());for(var O=A;O<=k;O++)this.doc.insertInLine({row:O,column:0},M)},_.prototype.outdentRows=function(A){for(var k=A.collapseRows(),M=new a(0,0,0,0),O=this.getTabSize(),F=k.start.row;F<=k.end.row;++F){var P=this.getLine(F);M.start.row=F,M.end.row=F;for(var j=0;j<O&&P.charAt(j)==" ";++j);j<O&&P.charAt(j)==" "?(M.start.column=j,M.end.column=j+1):(M.start.column=0,M.end.column=j),this.remove(M)}},_.prototype.$moveLines=function(A,k,M){if(A=this.getRowFoldStart(A),k=this.getRowFoldEnd(k),M<0){var O=this.getRowFoldStart(A+M);if(O<0)return 0;var F=O-A}else if(M>0){var O=this.getRowFoldEnd(k+M);if(O>this.doc.getLength()-1)return 0;var F=O-k}else{A=this.$clipRowToDocument(A),k=this.$clipRowToDocument(k);var F=k-A+1}var P=new a(A,0,k,Number.MAX_VALUE),j=this.getFoldsInRange(P).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=M==0?this.doc.getLines(A,k):this.doc.removeFullLines(A,k);return this.doc.insertFullLines(A+F,V),j.length&&this.addFolds(j),F},_.prototype.moveLinesUp=function(A,k){return this.$moveLines(A,k,-1)},_.prototype.moveLinesDown=function(A,k){return this.$moveLines(A,k,1)},_.prototype.duplicateLines=function(A,k){return this.$moveLines(A,k,0)},_.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(A,k){return k<0?0:Math.min(this.doc.getLine(A).length,k)},_.prototype.$clipPositionToDocument=function(A,k){if(k=Math.max(0,k),A<0)A=0,k=0;else{var M=this.doc.getLength();A>=M?(A=M-1,k=this.doc.getLine(M-1).length):k=Math.min(this.doc.getLine(A).length,k)}return{row:A,column:k}},_.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var k=this.doc.getLength()-1;return A.end.row>k?(A.end.row=k,A.end.column=this.doc.getLine(k).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},_.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var k=this.getLength();this.$wrapData=Array(k),this.$updateWrapData(0,k-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(A,k){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==k)&&(this.$wrapLimitRange={min:A,max:k},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(A,k){var M=this.$wrapLimitRange;M.max<0&&(M={min:k,max:k});var O=this.$constrainWrapLimit(A,M.min,M.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},_.prototype.$constrainWrapLimit=function(A,k,M){return k&&(A=Math.max(k,A)),M&&(A=Math.min(M,A)),A},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(A){var k=this.$useWrapMode,M=A.action,O=A.start,F=A.end,P=O.row,j=F.row,V=j-P,q=null;if(this.$updating=!0,V!=0)if(M==="remove"){this[k?"$wrapData":"$rowLengthCache"].splice(P,V);var J=this.$foldData;q=this.getFoldsInRange(A),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(P);re&&re!==G&&(re.merge(G),G=re),Z=J.indexOf(G)+1}for(Z;Z<J.length;Z++){var G=J[Z];G.start.row>=F.row&&G.shiftRow(-V)}j=P}else{var X=Array(V);X.unshift(P,0);var ae=k?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,X);var J=this.$foldData,G=this.getFoldLine(P),Z=0;if(G){var ye=G.range.compareInside(O.row,O.column);ye==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(j,0,F.column-O.column))):ye==-1&&(G.addRemoveChars(P,0,F.column-O.column),G.shiftRow(V)),Z=J.indexOf(G)+1}for(Z;Z<J.length;Z++){var G=J[Z];G.start.row>=P&&G.shiftRow(V)}}else{V=Math.abs(A.start.column-A.end.column),M==="remove"&&(q=this.getFoldsInRange(A),this.removeFolds(q),V=-V);var G=this.getFoldLine(P);G&&G.addRemoveChars(P,O.column,V)}return k&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,k?this.$updateWrapData(P,j):this.$updateRowLengthCache(P,j),q},_.prototype.$updateRowLengthCache=function(A,k){this.$rowLengthCache[A]=null,this.$rowLengthCache[k]=null},_.prototype.$updateWrapData=function(A,k){var M=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,P=this.$wrapLimit,j,V,q=A;for(k=Math.min(k,M.length-1);q<=k;)V=this.getFoldLine(q,V),V?(j=[],V.walk((function(J,G,Z,re){var X;if(J!=null){X=this.$getDisplayTokens(J,j.length),X[0]=C;for(var ae=1;ae<X.length;ae++)X[ae]=x}else X=this.$getDisplayTokens(M[G].substring(re,Z),j.length);j=j.concat(X)}).bind(this),V.end.row,M[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(j,P,O),q=V.end.row+1):(j=this.$getDisplayTokens(M[q]),F[q]=this.$computeWrapSplits(j,P,O),q++)},_.prototype.$computeWrapSplits=function(A,k,M){if(A.length==0)return[];var O=[],F=A.length,P=0,j=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,J=k<=Math.max(2*M,8)||q===!1?0:Math.floor(k/2);function G(){var ye=0;if(J===0)return ye;if(q)for(var we=0;we<A.length;we++){var pe=A[we];if(pe==E)ye+=1;else if(pe==L)ye+=M;else{if(pe==I)continue;break}}return V&&q!==!1&&(ye+=M),Math.min(ye,J)}function Z(ye){for(var we=ye-P,pe=P;pe<ye;pe++){var ke=A[pe];(ke===12||ke===2)&&(we-=1)}O.length||(re=G(),O.indent=re),j+=we,O.push(j),P=ye}for(var re=0;F-P>k-re;){var X=P+k-re;if(A[X-1]>=E&&A[X]>=E){Z(X);continue}if(A[X]==C||A[X]==x){for(X;X!=P-1&&A[X]!=C;X--);if(X>P){Z(X);continue}for(X=P+k,X;X<A.length&&A[X]==x;X++);if(X==A.length)break;Z(X);continue}for(var ae=Math.max(X-(k-(k>>2)),P-1);X>ae&&A[X]<C;)X--;if(V){for(;X>ae&&A[X]<C;)X--;for(;X>ae&&A[X]==T;)X--}else for(;X>ae&&A[X]<E;)X--;if(X>ae){Z(++X);continue}X=P+k,A[X]==$&&X--,Z(X-re)}return O},_.prototype.$getDisplayTokens=function(A,k){var M=[],O;k=k||0;for(var F=0;F<A.length;F++){var P=A.charCodeAt(F);if(P==9){O=this.getScreenTabSize(M.length+k),M.push(L);for(var j=1;j<O;j++)M.push(I)}else P==32?M.push(E):P>39&&P<48||P>57&&P<64?M.push(T):P>=4352&&N(P)?M.push(R,$):M.push(R)}return M},_.prototype.$getStringScreenWidth=function(A,k,M){if(k==0)return[0,0];k==null&&(k=1/0),M=M||0;var O,F;for(F=0;F<A.length&&(O=A.charCodeAt(F),O==9?M+=this.getScreenTabSize(M):O>=4352&&N(O)?M+=2:M+=1,!(M>k));F++);return[M,F]},_.prototype.getRowLength=function(A){var k=1;return this.lineWidgets&&(k+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?k:this.$wrapData[A].length+k},_.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},_.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var k=this.screenToDocumentPosition(A,Number.MAX_VALUE),M=this.$wrapData[k.row];return M.length&&M[0]<k.column?M.indent:0}else return 0},_.prototype.getScreenLastRowColumn=function(A){var k=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(k.row,k.column)},_.prototype.getDocumentLastRowColumn=function(A,k){var M=this.documentToScreenRow(A,k);return this.getScreenLastRowColumn(M)},_.prototype.getDocumentLastRowColumnPosition=function(A,k){var M=this.documentToScreenRow(A,k);return this.screenToDocumentPosition(M,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},_.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(A,k){return this.screenToDocumentPosition(A,k).row},_.prototype.screenToDocumentColumn=function(A,k){return this.screenToDocumentPosition(A,k).column},_.prototype.screenToDocumentPosition=function(A,k,M){if(A<0)return{row:0,column:0};var O,Z=0,F=0,P,G=0,j=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,A),J=V.length;if(J&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=A>V[J-1];else var re=!J;for(var X=this.getLength()-1,ae=this.getNextFoldLine(Z),ye=ae?ae.start.row:1/0;G<=A&&(j=this.getRowLength(Z),!(G+j>A||Z>=X));)G+=j,Z++,Z>ye&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),ye=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+j<=A||Z>X)return{row:X,column:this.getLine(X).length};O=this.getLine(Z),ae=null}var we=0,pe=Math.floor(A-G);if(this.$useWrapMode){var ke=this.$wrapData[Z];ke&&(P=ke[pe],pe>0&&ke.length&&(we=ke.indent,F=ke[pe-1]||ke[ke.length-1],O=O.substring(F)))}return M!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&(k=this.$bidiHandler.offsetToCol(M)),F+=this.$getStringScreenWidth(O,k-we)[1],this.$useWrapMode&&F>=P&&(F=P-1),ae?ae.idxToPosition(F):{row:Z,column:F}},_.prototype.documentToScreenPosition=function(A,k){if(typeof k>"u")var M=this.$clipPositionToDocument(A.row,A.column);else M=this.$clipPositionToDocument(A,k);A=M.row,k=M.column;var G=0,O=null,F=null;F=this.getFoldAt(A,k,1),F&&(A=F.start.row,k=F.start.column);var P,J=0,j=this.$docRowCache,V=this.$getRowCacheIndex(j,A),q=j.length;if(q&&V>=0)var J=j[V],G=this.$screenRowCache[V],Z=A>j[q-1];else var Z=!q;for(var re=this.getNextFoldLine(J),X=re?re.start.row:1/0;J<A;){if(J>=X){if(P=re.end.row+1,P>A)break;re=this.getNextFoldLine(P,re),X=re?re.start.row:1/0}else P=J+1;G+=this.getRowLength(J),J=P,Z&&(this.$docRowCache.push(J),this.$screenRowCache.push(G))}var ae="";re&&J>=X?(ae=this.getFoldDisplayLine(re,A,k),O=re.start.row):(ae=this.getLine(A).substring(0,k),O=A);var ye=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),ye=pe>0?we.indent:0}}return this.lineWidgets&&this.lineWidgets[J]&&this.lineWidgets[J].rowsAbove&&(G+=this.lineWidgets[J].rowsAbove),{row:G,column:ye+this.$getStringScreenWidth(ae)[0]}},_.prototype.documentToScreenColumn=function(A,k){return this.documentToScreenPosition(A,k).column},_.prototype.documentToScreenRow=function(A,k){return this.documentToScreenPosition(A,k).row},_.prototype.getScreenLength=function(){var A=0,k=null;if(this.$useWrapMode)for(var M=this.$wrapData.length,O=0,F=0,k=this.$foldData[F++],P=k?k.start.row:1/0;O<M;){var j=this.$wrapData[O];A+=j?j.length+1:1,O++,O>P&&(O=k.end.row+1,k=this.$foldData[F++],P=k?k.start.row:1/0)}else{A=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)k=V[F],A-=k.end.row-k.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},_.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(k,M,O){if(M===0)return[0,0];M||(M=1/0),O=O||0;var F,P;for(P=0;P<k.length&&(F=k.charAt(P),F===" "?O+=this.getScreenTabSize(O):O+=A.getCharacterWidth(F),!(O>M));P++);return[O,P]})},_.prototype.getPrecedingCharacter=function(){var A=this.selection.getCursor();if(A.column===0)return A.row===0?"":this.doc.getNewLineCharacter();var k=this.getLine(A.row);return k[A.column-1]},_.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()},_}();b.$uid=0,b.prototype.$modes=h.$modes,b.prototype.getValue=b.prototype.toString,b.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},b.prototype.$overwrite=!1,b.prototype.$mode=null,b.prototype.$modeId=null,b.prototype.$scrollTop=0,b.prototype.$scrollLeft=0,b.prototype.$wrapLimit=80,b.prototype.$useWrapMode=!1,b.prototype.$wrapLimitRange={min:null,max:null},b.prototype.lineWidgets=null,b.prototype.isFullWidth=N,f.implement(b.prototype,p);var R=1,$=2,C=3,x=4,T=9,E=10,L=11,I=12;function N(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}t("./edit_session/folding").Folding.call(b.prototype),t("./edit_session/bracket_match").BracketMatch.call(b.prototype),h.defineOptions(b.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var A=typeof _=="number"?_:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,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(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,d){var f=t("./lib/lang"),y=t("./lib/oop"),w=t("./range").Range,h=function(){function s(){this.$options={}}return s.prototype.set=function(c){return y.mixin(this.$options,c),this},s.prototype.getOptions=function(){return f.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(u,m,v,b){return o=new w(u,m,v,b),m==b&&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(),u=[],m=a.re;if(a.$isMultiLine){var v=m.length,b=o.length-v,R;e:for(var $=m.offset||0;$<=b;$++){for(var C=0;C<v;C++)if(o[$+C].search(m[C])==-1)continue e;var x=o[$],T=o[$+v-1],E=x.length-x.match(m[0])[0].length,L=T.match(m[v-1])[0].length;R&&R.end.row===$&&R.end.column>E||(u.push(R=new w($,E,$+v-1,L)),v>2&&($=$+v-2))}}else for(var I=0;I<o.length;I++)for(var N=f.getMatchOffsets(o[I],m),C=0;C<N.length;C++){var _=N[C];u.push(new w(I,_.offset,I,_.offset+_.length))}if(l){for(var A=l.start.column,k=l.end.column,I=0,C=u.length-1;I<C&&u[I].start.column<A&&u[I].start.row==0;)I++;for(var M=l.end.row-l.start.row;I<C&&u[C].end.column>k&&u[C].end.row==M;)C--;for(u=u.slice(I,C+1),I=0,C=u.length;I<C;I++)u[I].start.row+=l.start.row,u[I].end.row+=l.start.row}return u},s.prototype.replace=function(c,a){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return a;if(o){var u=o.exec(c);if(!u||u[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 m=Math.min(c.length,c.length);m--;){var v=c[m];v&&v.toLowerCase()!=v?a[m]=a[m].toUpperCase():a[m]=a[m].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=f.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=p(l,c)),c.$isMultiLine=!a&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},s.prototype.$assembleMultilineRegExp=function(c,a){for(var l=c.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],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,u=a.skipCurrent!=!1,m=l.unicode,v=a.range,b=a.start;b||(b=v?v[o?"end":"start"]:c.selection.getRange()),b.start&&(b=b[u!=o?"end":"start"]);var R=v?v.start.row:0,$=v?v.end.row:c.getLength()-1;if(o)var C=function(E){var L=b.row;if(!T(L,b.column,E)){for(L--;L>=R;L--)if(T(L,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(L=$,R=b.row;L>=R;L--)if(T(L,Number.MAX_VALUE,E))return}}};else var C=function(E){var L=b.row;if(!T(L,b.column,E)){for(L=L+1;L<=$;L++)if(T(L,0,E))return;if(a.wrap!=!1){for(L=R,$=b.row;L<=$;L++)if(T(L,0,E))return}}};if(a.$isMultiLine)var x=l.length,T=function(E,L,I){var N=o?E-x+1:E;if(!(N<0||N+x>c.getLength())){var _=c.getLine(N),A=_.search(l[0]);if(!(!o&&A<L||A===-1)){for(var k=1;k<x;k++)if(_=c.getLine(N+k),_.search(l[k])==-1)return;var M=_.match(l[x-1])[0].length;if(!(o&&M>L)&&I(N,A,N+x-1,M))return!0}}};else if(o)var T=function(E,L,I){var N=c.getLine(E),_=[],A,k=0;for(l.lastIndex=0;A=l.exec(N);){var M=A[0].length;if(k=A.index,!M){if(k>=N.length)break;l.lastIndex=k+=f.skipEmptyMatch(N,k,m)}if(A.index+M>L)break;_.push(A.index,M)}for(var O=_.length-1;O>=0;O-=2){var F=_[O-1],M=_[O];if(I(E,F,E,F+M))return!0}};else var T=function(E,L,I){var N=c.getLine(E),_,A;for(l.lastIndex=L;A=l.exec(N);){var k=A[0].length;if(_=A.index,I(E,_,E,_+k))return!0;if(!k&&(l.lastIndex=_+=f.skipEmptyMatch(N,_,m),_>=N.length))return!1}};return{forEach:C}},s}();function p(s,c){var a=f.supportsLookbehind();function l(v,b){b===void 0&&(b=!0);var R=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(v)||c.regExp?a&&c.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],m=o[o.length-1];return l(u)+s+l(m,!1)}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var f=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(u[v]=m[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 u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=t("../lib/keys"),w=t("../lib/useragent"),h=y.KEY_MODS,p=function(){function a(l,o){this.$init(l,o,!1)}return a.prototype.$init=function(l,o,u){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},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 u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var m=this.commandKeyBinding;for(var v in m){var b=m[v];if(b==l)delete m[v];else if(Array.isArray(b)){var R=b.indexOf(l);R!=-1&&(b.splice(R,1),b.length==1&&(m[v]=b[0]))}}},a.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(C){var x=this.parseKeys(C),T=h[x.hashId]+x.key;v+=(v?" ":"")+T,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var R=this.parseKeys(m),$=h[R.hashId]+R.key;this._addCommandToBinding(v+$,o,u)},this)}},a.prototype._addCommandToBinding=function(l,o,u){var m=this.commandKeyBinding,v;if(!o)delete m[l];else if(!m[l]||this.$singleCommand)m[l]=o;else{Array.isArray(m[l])?(v=m[l].indexOf(o))!=-1&&m[l].splice(v,1):m[l]=[m[l]],typeof u!="number"&&(u=s(o));var b=m[l];for(v=0;v<b.length;v++){var R=b[v],$=s(R);if($>u)break}b.splice(v,0,o)}},a.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},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($){return $}),u=o.pop(),m=y[u];if(y.FUNCTION_KEYS[m])u=y.FUNCTION_KEYS[m].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var v=0,b=o.length;b--;){var R=y.KEY_MODS[o[b]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+o[b]+" in "+l),!1;v|=R}return{key:u,hashId:v}},a.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(l,o,u,m){if(!(m<0)){var v=h[o]+u,b=this.commandKeyBinding[v];return l.$keyChain&&(l.$keyChain+=" "+v,b=this.commandKeyBinding[l.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||v,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-v.length-1):(o==-1||m>0)&&(l.$keyChain="")),{command:b})}},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){f(l,a);function l(o,u){var m=a.call(this,o,u)||this;return m.$singleCommand=!0,m}return l}(p);c.call=function(a,l,o){p.prototype.$init.call(a,l,o,!0)},p.call=function(a,l,o){p.prototype.$init.call(a,l,o,!1)},r.HashHandler=c,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,r,d){var f=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 u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},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)}}(),y=t("../lib/oop"),w=t("../keyboard/hash_handler").MultiHashHandler,h=t("../lib/event_emitter").EventEmitter,p=function(s){f(c,s);function c(a,l){var o=s.call(this,l,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return c.prototype.exec=function(a,l,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],l,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,l))return!1;var m={editor:l,command:a,args:o};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.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);y.implement(p.prototype,h),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,r,d){var f=t("../lib/lang"),y=t("../config"),w=t("../range").Range;function h(s,c){return{win:s,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(s){y.loadModule("ace/ext/settings_menu",function(c){c.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(s){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(s){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("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:h("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:h("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:h("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("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:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("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:h("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:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(s){y.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:h("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:h("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:h("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:h("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:h("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:h("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:h("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:h("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:h("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:h("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("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:h("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:h("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:h("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("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:h(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("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:h(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:h("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("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:h("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("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:h("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:h(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:h("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(s){y.loadModule("ace/ext/searchbox",function(c){c.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("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:h("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:h("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("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:h("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:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("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(f.stringRepeat(c.text||"",c.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("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:h("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(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,u=s.session.doc.getTextRange(s.selection.getRange()),m=u.replace(/\n\s*/," ").length,v=s.session.doc.getLine(a.row),b=a.row+1;b<=l.row+1;b++){var R=f.stringTrimLeft(f.stringTrimRight(s.session.doc.getLine(b)));R.length!==0&&(R=" "+R),v+=R}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),m>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+m)):(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:h(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 u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===a||o.push(new w(l[u].end.row,l[u].end.column,c,a))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new w(0,0,l[u].start.row,l[u].start.column)):o.push(new w(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[u].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var u=0;u<o.length;u++)s.selection.addRange(o[u],!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:h("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(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,d){var f=t("../lib/keys"),y=t("../mouse/default_gutter_handler").GutterTooltip,w=function(){function p(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 y(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===f.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=f.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 h(s,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===f.tab){s.preventDefault();return}if(s.keyCode===f.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===f.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===f.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===f.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===f.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===f.enter||s.keyCode===f.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}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return c&&a},p.prototype.$isAnnotationVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return c&&a},p.prototype.$getFoldWidget=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[1]},p.prototype.$getAnnotation=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[2]},p.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},p.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},p.prototype.$focusFoldWidget=function(s){if(s!=null){var c=this.$getFoldWidget(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},p.prototype.$focusAnnotation=function(s){if(s!=null){var c=this.$getAnnotation(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},p.prototype.$blurFoldWidget=function(s){var c=this.$getFoldWidget(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},p.prototype.$blurAnnotation=function(s){var c=this.$getAnnotation(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},p.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}},p.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}},p.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}},p.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}},p.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}},p.prototype.$rowIndexToRow=function(s){var c=this.lines.get(s);return c?c.row:null},p.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},p}();r.GutterKeyboardHandler=w;var h=function(){function p(s,c){this.gutterKeyboardHandler=c,this.domEvent=s}return p.prototype.getKey=function(){return f.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.GutterKeyboardEvent=h}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(t,r,d){var f=this&&this.__values||function(_){var A=typeof Symbol=="function"&&Symbol.iterator,k=A&&_[A],M=0;if(k)return k.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&M>=_.length&&(_=void 0),{value:_&&_[M++],done:!_}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")},y=t("./lib/oop"),w=t("./lib/dom"),h=t("./lib/lang"),p=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,u=t("./search").Search,m=t("./range").Range,v=t("./lib/event_emitter").EventEmitter,b=t("./commands/command_manager").CommandManager,R=t("./commands/default_commands").commands,$=t("./config"),C=t("./token_iterator").TokenIterator,x=t("./keyboard/gutter_handler").GutterKeyboardHandler,T=t("./config").nls,E=t("./clipboard"),L=t("./lib/keys"),I=function(){function _(A,k,M){this.session,this.$toDestroy=[];var O=A.getContainerElement();this.container=O,this.renderer=A,this.id="editor"+ ++_.$uid,this.commands=new b(p.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new s(A.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new a(this)),this.keyBinding=new l(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,P){P._$emitInputEvent.schedule(31)}),this.setSession(k||M&&M.session||new o("")),$.resetOptions(this),M&&this.setOptions(M),$._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},_.prototype.startOperation=function(A){this.session.startOperation(A)},_.prototype.endOperation=function(A){this.session.endOperation(A)},_.prototype.onStartOperation=function(A){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,A||(this.previousCommand=null)},_.prototype.onEndOperation=function(A){if(this.curOp&&this.session){if(A&&A.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var k=this.curOp.command,M=k&&k.scrollIntoView;if(M){switch(M){case"center-animate":M="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}M=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(A){if(this.$mergeUndoDeltas){var k=this.prevOp,M=this.$mergeableCommands,O=k.command&&A.command.name==k.command.name;if(A.command.name=="insertstring"){var F=A.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(k.args)),this.mergeNextCommand=!0}else O=O&&M.indexOf(A.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:M.indexOf(A.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(A,k){if(A&&typeof A=="string"&&A!="ace"){this.$keybindingId=A;var M=this;$.loadModule(["keybinding",A],function(O){M.$keybindingId==A&&M.keyBinding.setKeyboardHandler(O&&O.handler),k&&k()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(A),k&&k()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(A){if(this.session!=A){this.curOp&&this.endOperation(),this.curOp={};var k=this.session;if(k){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 M=this.session.getSelection();M.off("changeCursor",this.$onCursorChange),M.off("changeSelection",this.$onSelectionChange)}this.session=A,A?(this.$onDocumentChange=this.onDocumentChange.bind(this),A.on("change",this.$onDocumentChange),this.renderer.setSession(A),this.$onChangeMode=this.onChangeMode.bind(this),A.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),A.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),A.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),A.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),A.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),A.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=A.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(A)),this._signal("changeSession",{session:A,oldSession:k}),this.curOp=null,k&&k._signal("changeEditor",{oldEditor:this}),k&&(k.$editor=null),A&&A._signal("changeEditor",{editor:this}),A&&(A.$editor=this),A&&!A.destroyed&&A.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(A,k){return this.session.doc.setValue(A),k?k==1?this.navigateFileEnd():k==-1&&this.navigateFileStart():this.selectAll(),A},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(A){this.renderer.onResize(A)},_.prototype.setTheme=function(A,k){this.renderer.setTheme(A,k)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(A){this.renderer.setStyle(A)},_.prototype.unsetStyle=function(A){this.renderer.unsetStyle(A)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(A){this.setOption("fontSize",A)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var A=this;this.$highlightPending=!0,setTimeout(function(){A.$highlightPending=!1;var k=A.session;if(!(!k||k.destroyed)){k.$bracketHighlight&&(k.$bracketHighlight.markerIds.forEach(function(G){k.removeMarker(G)}),k.$bracketHighlight=null);var M=A.getCursorPosition(),O=A.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(A),P=k.getMatchingBracketRanges(M,F);if(!P){var j=new C(k,M.row,M.column),V=j.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=k.getMatchingTags(M);q&&(P=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!P&&k.$mode.getMatching&&(P=k.$mode.getMatching(A.session)),!P){A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(P)?P.length==1&&(J="ace_error_bracket"):P=[P],P.length==2&&(m.comparePoints(P[0].end,P[1].start)==0?P=[m.fromPoints(P[0].start,P[1].end)]:m.comparePoints(P[0].start,P[1].end)==0&&(P=[m.fromPoints(P[1].start,P[0].end)])),k.$bracketHighlight={ranges:P,markerIds:P.map(function(G){return k.addMarker(G,J,"text")})},A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(A){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",A))},_.prototype.onBlur=function(A){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",A))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(A){var k=this.session.$useWrapMode,M=A.start.row==A.end.row?A.end.row:1/0;this.renderer.updateLines(A.start.row,M,k),this._signal("change",A),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(A){var k=A.data;this.renderer.updateLines(k.first,k.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var A=this.getSession(),k;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(k=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(k=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(k=!1)),A.$highlightLineMarker&&!k)A.removeMarker(A.$highlightLineMarker.id),A.$highlightLineMarker=null;else if(!A.$highlightLineMarker&&k){var M=new m(k.row,k.column,k.row,1/0);M.id=A.addMarker(M,"ace_active-line","screenLine"),A.$highlightLineMarker=M}else k&&(A.$highlightLineMarker.start.row=k.row,A.$highlightLineMarker.end.row=k.row,A.$highlightLineMarker.start.column=k.column,A._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(A){var k=this.session;if(k.$selectionMarker&&k.removeMarker(k.$selectionMarker),k.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var M=this.selection.getRange(),O=this.getSelectionStyle();k.$selectionMarker=k.addMarker(M,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var A=this.session,k=this.getSelectionRange();if(!(k.isEmpty()||k.isMultiLine())){var M=k.start.column,O=k.end.column,F=A.getLine(k.start.row),P=F.substring(M,O);if(!(P.length>5e3||!/[\w\d]/.test(P))){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:P}),V=F.substring(M-1,O+1);if(j.test(V))return j}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(A){this.renderer.updateText(),this._emit("changeMode",A)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var A=this.getSelectedText(),k=this.session.doc.getNewLineCharacter(),M=!1;if(!A&&this.$copyWithEmptySelection){M=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var P=O[F];F&&O[F-1].start.row==P.start.row||(A+=this.session.getLine(P.start.row)+k)}}var j={text:A};return this._signal("copy",j),E.lineMode=M?j.text:!1,j.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(A,k){var M={text:A,event:k};this.commands.exec("paste",this,M)},_.prototype.$handlePaste=function(A){typeof A=="string"&&(A={text:A}),this._signal("paste",A);var k=A.text,M=k===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)M?O.insert({row:this.selection.lead.row,column:0},k):this.insert(k);else if(M)this.selection.rangeList.ranges.forEach(function(J){O.insert({row:J.start.row,column:0},k)});else{var F=k.split(/\r\n|\r|\n/),P=this.selection.rangeList.ranges,j=F.length==2&&(!F[0]||!F[1]);if(F.length!=P.length||j)return this.commands.exec("insertstring",this,k);for(var V=P.length;V--;){var q=P[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},_.prototype.execCommand=function(A,k){return this.commands.exec(A,this,k)},_.prototype.insert=function(A,k){var M=this.session,O=M.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!k){var P=O.transformAction(M.getState(F.row),"insertion",this,M,A);P&&(A!==P.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),A=P.text)}if(A==" "&&(A=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&A.indexOf(`
|
203
|
+
`)==-1){var j=m.fromPoints(F,F);j.end.column+=A.length,this.session.remove(j)}}else{var j=this.getSelectionRange();F=this.session.remove(j),this.clearSelection()}if(A==`
|
204
|
+
`||A==`\r
|
205
|
+
`){var G=M.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);M.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,J=M.getState(F.row),G=M.getLine(F.row),Z=O.checkOutdent(J,G,A);if(M.insert(F,A),P&&P.selection&&(P.selection.length==2?this.selection.setSelectionRange(new m(F.row,q+P.selection[0],F.row,q+P.selection[1])):this.selection.setSelectionRange(new m(F.row+P.selection[0],P.selection[1],F.row+P.selection[2],P.selection[3]))),this.$enableAutoIndent){if(M.getDocument().isNewLine(A)){var re=O.getNextLineIndent(J,G.slice(0,F.column),M.getTabString());M.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(J,M,F.row)}},_.prototype.autoIndent=function(){for(var A=this.session,k=A.getMode(),M=this.selection.isEmpty()?[new m(0,0,A.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",P="",j=A.getTabString(),V=0;V<M.length;V++)for(var q=M[V].start.row,J=M[V].end.row,G=q;G<=J;G++){G>0&&(O=A.getState(G-1),F=A.getLine(G-1),P=k.getNextLineIndent(O,F,j));var Z=A.getLine(G),re=k.$getIndent(Z);if(P!==re){if(re.length>0){var X=new m(G,0,G,re.length);A.remove(X)}P.length>0&&A.insert({row:G,column:0},P)}k.autoOutdent(O,A,G)}},_.prototype.onTextInput=function(A,k){if(!k)return this.keyBinding.onTextInput(A);this.startOperation({command:{name:"insertstring"}});var M=this.applyComposition.bind(this,A,k);this.selection.rangeCount?this.forEachSelection(M):M(),this.endOperation()},_.prototype.applyComposition=function(A,k){if(k.extendLeft||k.extendRight){var M=this.selection.getRange();M.start.column-=k.extendLeft,M.end.column+=k.extendRight,M.start.column<0&&(M.start.row--,M.start.column+=this.session.getLine(M.start.row).length+1),this.selection.setRange(M),!A&&!M.isEmpty()&&this.remove()}if((A||!this.selection.isEmpty())&&this.insert(A,!0),k.restoreStart||k.restoreEnd){var M=this.selection.getRange();M.start.column-=k.restoreStart,M.end.column-=k.restoreEnd,this.selection.setRange(M)}},_.prototype.onCommandKey=function(A,k,M){return this.keyBinding.onCommandKey(A,k,M)},_.prototype.setOverwrite=function(A){this.session.setOverwrite(A)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(A){this.setOption("scrollSpeed",A)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(A){this.setOption("dragDelay",A)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(A){this.setOption("selectionStyle",A)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(A){this.setOption("highlightActiveLine",A)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(A){this.setOption("highlightSelectedWord",A)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(A){this.renderer.setAnimatedScroll(A)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(A){this.renderer.setShowInvisibles(A)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(A){this.renderer.setDisplayIndentGuides(A)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(A){this.renderer.setHighlightIndentGuides(A)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(A){this.renderer.setShowPrintMargin(A)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(A){this.renderer.setPrintMarginColumn(A)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(A){this.setOption("readOnly",A)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(A){this.setOption("behavioursEnabled",A)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(A){this.setOption("wrapBehavioursEnabled",A)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(A){this.setOption("showFoldWidgets",A)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(A){this.selection.isEmpty()&&(A=="left"?this.selection.selectLeft():this.selection.selectRight());var k=this.getSelectionRange();if(this.getBehavioursEnabled()){var M=this.session,O=M.getState(k.start.row),F=M.getMode().transformAction(O,"deletion",this,M,k);if(k.end.column===0){var P=M.getTextRange(k);if(P[P.length-1]==`
|
206
|
+
`){var j=M.getLine(k.end.row);/^\s+$/.test(j)&&(k.end.column=j.length)}}F&&(k=F)}this.session.remove(k),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var A=this.getSelectionRange();A.start.column==A.end.column&&A.start.row==A.end.row&&(A.end.column=0,A.end.row++),this.session.remove(A),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var A=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(A)},_.prototype.setGhostText=function(A,k){this.renderer.setGhostText(A,k)},_.prototype.removeGhostText=function(){this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var A=this.getCursorPosition(),k=A.column;if(k!==0){var M=this.session.getLine(A.row),O,F;k<M.length?(O=M.charAt(k)+M.charAt(k-1),F=new m(A.row,k-1,A.row,k+1)):(O=M.charAt(k-1)+M.charAt(k-2),F=new m(A.row,k-2,A.row,k)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},_.prototype.toLowerCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),M=this.session.getTextRange(k);this.session.replace(k,M.toLowerCase()),this.selection.setSelectionRange(A)},_.prototype.toUpperCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),M=this.session.getTextRange(k);this.session.replace(k,M.toUpperCase()),this.selection.setSelectionRange(A)},_.prototype.indent=function(){var A=this.session,k=this.getSelectionRange();if(k.start.row<k.end.row){var M=this.$getSelectedRows();A.indentRows(M.first,M.last," ");return}else if(k.start.column<k.end.column){var O=A.getTextRange(k);if(!/^\s+$/.test(O)){var M=this.$getSelectedRows();A.indentRows(M.first,M.last," ");return}}var F=A.getLine(k.start.row),P=k.start,j=A.getTabSize(),V=A.documentToScreenColumn(P.row,P.column);if(this.session.getUseSoftTabs())var q=j-V%j,J=h.stringRepeat(" ",q);else{for(var q=V%j;F[k.start.column-1]==" "&&q;)k.start.column--,q--;this.selection.setSelectionRange(k),J=" "}return this.insert(J)},_.prototype.blockIndent=function(){var A=this.$getSelectedRows();this.session.indentRows(A.first,A.last," ")},_.prototype.blockOutdent=function(){var A=this.session.getSelection();this.session.outdentRows(A.getRange())},_.prototype.sortLines=function(){for(var A=this.$getSelectedRows(),k=this.session,M=[],O=A.first;O<=A.last;O++)M.push(k.getLine(O));M.sort(function(j,V){return j.toLowerCase()<V.toLowerCase()?-1:j.toLowerCase()>V.toLowerCase()?1:0});for(var F=new m(0,0,0,0),O=A.first;O<=A.last;O++){var P=k.getLine(O);F.start.row=O,F.end.row=O,F.end.column=P.length,k.replace(F,M[O-A.first])}},_.prototype.toggleCommentLines=function(){var A=this.session.getState(this.getCursorPosition().row),k=this.$getSelectedRows();this.session.getMode().toggleCommentLines(A,this.session,k.first,k.last)},_.prototype.toggleBlockComment=function(){var A=this.getCursorPosition(),k=this.session.getState(A.row),M=this.getSelectionRange();this.session.getMode().toggleBlockComment(k,this.session,M,A)},_.prototype.getNumberAt=function(A,k){var M=/[\-]?[0-9]+(?:\.[0-9]+)?/g;M.lastIndex=0;for(var O=this.session.getLine(A);M.lastIndex<k;){var F=M.exec(O);if(F.index<=k&&F.index+F[0].length>=k){var P={value:F[0],start:F.index,end:F.index+F[0].length};return P}}return null},_.prototype.modifyNumber=function(A){var k=this.selection.getCursor().row,M=this.selection.getCursor().column,O=new m(k,M-1,k,M),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var P=this.getNumberAt(k,M);if(P){var j=P.value.indexOf(".")>=0?P.start+P.value.indexOf(".")+1:P.end,V=P.start+P.value.length-j,q=parseFloat(P.value);q*=Math.pow(10,V),j!==P.end&&M<j?A*=Math.pow(10,P.end-M-1):A*=Math.pow(10,P.end-M),q+=A,q/=Math.pow(10,V);var J=q.toFixed(V),G=new m(k,P.start,k,P.end);this.session.replace(G,J),this.moveCursorTo(k,Math.max(P.start+1,M+J.length-P.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var A=this.selection.getCursor().row,k=this.selection.getCursor().column;this.selection.selectWord();var M=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=M.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),P=k-O-1;P<0&&(P=0);var j=0,V=0,q=this;M.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,ke){V=j+pe.length,P>=j&&P<=V&&(M=pe,q.selection.clearSelection(),q.moveCursorTo(A,j+O),q.selection.selectTo(A,V+O)),j=V});for(var J=this.$toggleWordPairs,G,Z=0;Z<J.length;Z++)for(var re=J[Z],X=0;X<=1;X++){var ae=+!X,ye=M.match(new RegExp("^\\s?_?("+h.escapeRegExp(re[X])+")\\s?$","i"));if(ye){var we=M.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(ye[1])+")($|\\s)","g"));we&&(G=M.replace(new RegExp(h.escapeRegExp(re[X]),"i"),function(pe){var ke=re[ae];return pe.toUpperCase()==pe?ke=ke.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(ke=ke.substr(0,0)+re[ae].charAt(0).toUpperCase()+ke.substr(1)),ke}),this.insert(G),G="")}}},_.prototype.findLinkAt=function(A,k){var M,O,F=this.session.getLine(A),P=F.split(/((?:https?|ftp):\/\/[\S]+)/),j=k;j<0&&(j=0);var V=0,q=0,J;try{for(var G=f(P),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,j>=V&&j<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){J=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(X){M={error:X}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(M)throw M.error}}return J},_.prototype.openLink=function(){var A=this.selection.getCursor(),k=this.findLinkAt(A.row,A.column);return k&&window.open(k,"_blank"),k!=null},_.prototype.removeLines=function(){var A=this.$getSelectedRows();this.session.removeFullLines(A.first,A.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var A=this.selection,k=this.session,M=A.getRange(),O=A.isBackwards();if(M.isEmpty()){var F=M.start.row;k.duplicateLines(F,F)}else{var P=O?M.start:M.end,j=k.insert(P,k.getTextRange(M));M.start=P,M.end=j,A.setSelectionRange(M,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(A,k,M){return this.session.moveText(A,k,M)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(A,k){var M,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var P=F.toOrientedRange();M=this.$getSelectedRows(P),O=this.session.$moveLines(M.first,M.last,k?0:A),k&&A==-1&&(O=0),P.moveBy(O,0),F.fromOrientedRange(P)}else{var j=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,J=j.length,G=0;G<J;G++){var Z=G;j[G].moveBy(V,0),M=this.$getSelectedRows(j[G]);for(var re=M.first,X=M.last;++G<J;){q&&j[G].moveBy(q,0);var ae=this.$getSelectedRows(j[G]);if(k&&ae.first!=X||!k&&ae.first>X+1)break;X=ae.last}for(G--,V=this.session.$moveLines(re,X,k?0:A),k&&A==-1&&(Z=G+1);Z<=G;)j[Z].moveBy(V,0),Z++;k||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(A){return A=(A||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(A.start.row),last:this.session.getRowFoldEnd(A.end.row)}},_.prototype.onCompositionStart=function(A){this.renderer.showComposition(A)},_.prototype.onCompositionUpdate=function(A){this.renderer.setCompositionText(A)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(A){return A>=this.getFirstVisibleRow()&&A<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(A){return A>=this.renderer.getFirstFullyVisibleRow()&&A<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(A,k){var M=this.renderer,O=this.renderer.layerConfig,F=A*Math.floor(O.height/O.lineHeight);k===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):k===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var P=M.scrollTop;M.scrollBy(0,F*O.lineHeight),k!=null&&M.scrollCursorIntoView(null,.5),M.animateScrolling(P)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(A){this.renderer.scrollToRow(A)},_.prototype.scrollToLine=function(A,k,M,O){this.renderer.scrollToLine(A,k,M,O)},_.prototype.centerSelection=function(){var A=this.getSelectionRange(),k={row:Math.floor(A.start.row+(A.end.row-A.start.row)/2),column:Math.floor(A.start.column+(A.end.column-A.start.column)/2)};this.renderer.alignCursor(k,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(A,k){this.selection.moveCursorTo(A,k)},_.prototype.moveCursorToPosition=function(A){this.selection.moveCursorToPosition(A)},_.prototype.jumpToMatching=function(A,k){var M=this.getCursorPosition(),O=new C(this.session,M.row,M.column),F=O.getCurrentToken(),P=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var j=F||O.stepForward();if(j){var V,q=!1,J={},G=M.column-j.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;G<j.value.length&&!q;G++)if(re[j.value[G]])switch(Z=re[j.value[G]]+"."+j.type.replace("rparen","lparen"),isNaN(J[Z])&&(J[Z]=0),j.value[G]){case"(":case"[":case"{":J[Z]++;break;case")":case"]":case"}":J[Z]--,J[Z]===-1&&(V="bracket",q=!0);break}}else j.type.indexOf("tag-name")!==-1&&(isNaN(J[j.value])&&(J[j.value]=0),F.value==="<"&&P>1?J[j.value]++:F.value==="</"&&J[j.value]--,J[j.value]===-1&&(V="tag",q=!0));q||(F=j,P++,j=O.stepForward(),G=0)}while(j&&!q);if(V){var X,ae;if(V==="bracket")X=this.session.getBracketRange(M),X||(X=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=X.start,(k||ae.row===M.row&&Math.abs(ae.column-M.column)<2)&&(X=this.session.getBracketRange(ae)));else if(V==="tag"){if(!j||j.type.indexOf("tag-name")===-1)return;if(X=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),X.compare(M.row,M.column)===0){var ye=this.session.getMatchingTags(M);ye&&(ye.openTag.contains(M.row,M.column)?(X=ye.closeTag,ae=X.start):(X=ye.openTag,ye.closeTag.start.row===M.row&&ye.closeTag.start.column===M.column?ae=X.end:ae=X.start))}ae=ae||X.start}ae=X&&X.cursor||ae,ae&&(A?X&&k?this.selection.setRange(X):X&&X.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},_.prototype.gotoLine=function(A,k,M){this.selection.clearSelection(),this.session.unfold({row:A-1,column:k||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(A-1,k||0),this.isRowFullyVisible(A-1)||this.scrollToLine(A-1,!0,M)},_.prototype.navigateTo=function(A,k){this.selection.moveTo(A,k)},_.prototype.navigateUp=function(A){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(-A||-1,0)},_.prototype.navigateDown=function(A){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(A||1,0)},_.prototype.navigateLeft=function(A){if(this.selection.isEmpty())for(A=A||1;A--;)this.selection.moveCursorLeft();else{var k=this.getSelectionRange().start;this.moveCursorToPosition(k)}this.clearSelection()},_.prototype.navigateRight=function(A){if(this.selection.isEmpty())for(A=A||1;A--;)this.selection.moveCursorRight();else{var k=this.getSelectionRange().end;this.moveCursorToPosition(k)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(A,k){k&&this.$search.set(k);var M=this.$search.find(this.session),O=0;return M&&(this.$tryReplace(M,A)&&(O=1),this.selection.setSelectionRange(M),this.renderer.scrollSelectionIntoView(M.start,M.end)),O},_.prototype.replaceAll=function(A,k){k&&this.$search.set(k);var M=this.$search.findAll(this.session),O=0;if(!M.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var P=M.length-1;P>=0;--P)this.$tryReplace(M[P],A)&&O++;return this.selection.setSelectionRange(F),O},_.prototype.$tryReplace=function(A,k){var M=this.session.getTextRange(A);return k=this.$search.replace(M,k),k!==null?(A.end=this.session.replace(A,k),A):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(A,k,M){k||(k={}),typeof A=="string"||A instanceof RegExp?k.needle=A:typeof A=="object"&&y.mixin(k,A);var O=this.selection.getRange();k.needle==null&&(A=this.session.getTextRange(O)||this.$search.$options.needle,A||(O=this.session.getWordRange(O.start.row,O.start.column),A=this.session.getTextRange(O)),this.$search.set({needle:A})),this.$search.set(k),k.start||this.$search.set({start:O});var F=this.$search.find(this.session);if(k.preventScroll)return F;if(F)return this.revealRange(F,M),F;k.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(A,k){this.find({skipCurrent:!0,backwards:!1},A,k)},_.prototype.findPrevious=function(A,k){this.find(A,{skipCurrent:!0,backwards:!0},k)},_.prototype.revealRange=function(A,k){this.session.unfold(A),this.selection.setSelectionRange(A);var M=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(A.start,A.end,.5),k!==!1&&this.renderer.animateScrolling(M)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(A){A.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()},_.prototype.setAutoScrollEditorIntoView=function(A){if(A){var k,M=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 P=this.on("changeSelection",function(){O=!0}),j=this.renderer.on("beforeRender",function(){O&&(k=M.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&k&&(M.isFocused()||M.searchBox&&M.searchBox.isFocused())){var q=M.renderer,J=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=J.top-G.offset;J.top>=0&&Z+k.top<0?O=!0:J.top<G.height&&J.top+k.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=J.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=k=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",P),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",j))}}},_.prototype.$resetCursorStyle=function(){var A=this.$cursorStyle||"ace",k=this.renderer.$cursorLayer;k&&(k.setSmoothBlinking(/smooth/.test(A)),k.isBlinking=!this.$readOnly&&A!="wide",w.setCssClass(k.element,"ace_slim-cursors",/slim/.test(A)))},_.prototype.prompt=function(A,k,M){var O=this;$.loadModule("ace/ext/prompt",function(F){F.prompt(O,A,k,M)})},_}();I.$uid=0,I.prototype.curOp=null,I.prototype.prevOp={},I.prototype.$mergeableCommands=["backspace","del","insertstring"],I.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],y.implement(I.prototype,v),$.defineOptions(I.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){this.textInput.setReadOnly(_),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?N.attach(this):N.detach(this)}},placeholder:{set:function(_){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var A=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(A&&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(!A&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var k=w.createElement("div");k.className="ace_placeholder",k.textContent=this.$placeholder||"",this.renderer.placeholderNode=k,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!A&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(_){var A={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},k=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()}},M;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",k.bind(this)),this.commands.addCommand(A),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),M||(M=new x(this)),M.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",k.bind(this)),this.commands.removeCommand(A),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),M&&M.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(_){this.$textInputAriaLabel=_},initialValue:""},enableMobileMenu:{set:function(_){this.$enableMobileMenu=_},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",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(_,A){return(Math.abs(_.selection.lead.row-A)||A+1+(A<9?"·":""))+""},getWidth:function(_,A,k){return Math.max(A.toString().length,(k.lastRow+1).toString().length,2)*k.characterWidth},update:function(_,A){A.renderer.$loop.schedule(A.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};r.Editor=I}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,r,d){var f=t("../lib/dom"),y=function(){function w(h,p){this.element=h,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){f.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,p){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,p,s){var c=p.firstRowScreen*p.lineHeight,a=Math.floor(c/this.canvasHeight),l=s.documentToScreenRow(h,0)*p.lineHeight;return l-a*this.canvasHeight},w.prototype.computeLineHeight=function(h,p,s){return p.lineHeight*s.getRowLineCount(h)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(h){return this.cells[h]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var p=f.createFragment(this.element),s=0;s<h.length;s++)p.appendChild(h[s].element);this.element.appendChild(p)}else this.cells.push(h),this.element.appendChild(h.element)},w.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var p=f.createFragment(this.element),s=0;s<h.length;s++)p.appendChild(h[s].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},w.prototype.createCell=function(h,p,s,c){var a=this.cellCache.pop();if(!a){var l=f.createElement("div");c&&c(l),this.element.appendChild(l),a={element:l,text:"",row:h}}return a.row=h,a},w}();r.Lines=y}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(t,r,d){var f=t("../lib/dom"),y=t("../lib/oop"),w=t("../lib/lang"),h=t("../lib/event_emitter").EventEmitter,p=t("./lines").Lines,s=t("../config").nls,c=function(){function l(o){this.element=f.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var m=o[u],v=m.row,b=this.$annotations[v];b||(b=this.$annotations[v]={text:[],type:[],displayText:[]});var R=m.text,$=m.text,C=m.type;R=R?w.escapeHTML(R):m.html||"",$=$||m.html||"",b.text.indexOf(R)===-1&&(b.text.push(R),b.type.push(C),b.displayText.push($));var x=m.className;x?b.className=x:C==="error"?b.className=" ace_error":C==="security"&&!/\bace_error\b/.test(b.className)?b.className=" ace_security":C==="warning"&&!/\bace_(error|security)\b/.test(b.className)?b.className=" ace_warning":C==="info"&&!b.className?b.className=" ace_info":C==="hint"&&!b.className&&(b.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,m=o.end.row-u;if(m!==0)if(o.action=="remove")this.$annotations.splice(u,m+1,null);else{var v=new Array(m+1);v.unshift(u,1),this.$annotations.splice.apply(this.$annotations,v)}}},l.prototype.update=function(o){this.config=o;var u=this.session,m=o.firstRow,v=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=v,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var b=u.getNextFoldLine(m),R=b?b.start.row:1/0,$=null,C=-1,x=m;;){if(x>R&&(x=b.end.row+1,b=u.getNextFoldLine(x,b),R=b?b.start.row:1/0),x>v){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}$=this.$lines.get(++C),$?$.row=x:($=this.$lines.createCell(x,o,this.session,a),this.$lines.push($)),this.$renderCell($,o,b,x),x++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,m=u.gutterRenderer||this.$renderer,v=u.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(b=u.getLength()+v-1);var R=m?m.getWidth(u,b,o):b.toString().length*o.characterWidth,$=this.$padding||this.$computePadding();R+=$.left+$.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<u.length;m++){var v=u[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.start.row==u[m-1].row)v=u[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!u||v<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(v>m)for(var b=this.session.getFoldedRowCount(m+1,v);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(o,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,m){for(var v=[],b=u,R=this.session.getNextFoldLine(b),$=R?R.start.row:1/0;b>$&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),$=R?R.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,o,this.session,a);this.$renderCell(C,o,R,b),v.push(C),b++}return v},l.prototype.$renderCell=function(o,u,m,v){var b=o.element,R=this.session,$=b.childNodes[0],C=b.childNodes[1],x=b.childNodes[2],T=x.firstChild,E=R.$firstLineNumber,L=R.$breakpoints,I=R.$decorations,N=R.gutterRenderer||this.$renderer,_=this.$showFoldWidgets&&R.foldWidgets,A=m?m.start.row:Number.MAX_VALUE,k=u.lineHeight+"px",M=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(R,v):v+E).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=A&&this.$cursorRow<=m.end.row)&&(M+="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]&&(M+=L[v]),I[v]&&(M+=I[v]),this.$annotations[v]&&v!==A&&(M+=this.$annotations[v].className),_){var P=_[v];P==null&&(P=_[v]=R.getFoldWidget(v))}if(P){var j="ace_fold-widget ace_"+P,V=P=="start"&&v==A&&v<m.end.row;if(V){j+=" ace_closed";for(var q="",J=!1,G=v+1;G<=m.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){J=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(J=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(J=!0,q=" ace_warning_fold")}M+=q}else j+=" ace_open";C.className!=j&&(C.className=j),f.setStyle(C.style,"height",k),f.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var Z=R.getFoldWidgetRange(v);Z?C.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])):m?C.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):C.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),V?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else C&&(f.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));if(J&&this.$showFoldedAnnotations){x.className="ace_gutter_annotation",T.className=O,T.className+=q,f.setStyle(T.style,"height",k),f.setStyle(x.style,"display","block"),f.setStyle(x.style,"height",k);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}x.setAttribute("aria-label",re),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else if(this.$annotations[v]){x.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[v].className:b.classList.add(this.$annotations[v].className.replace(" ","")),f.setStyle(T.style,"height",k),f.setStyle(x.style,"display","block"),f.setStyle(x.style,"height",k);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}x.setAttribute("aria-label",re),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else f.setStyle(x.style,"display","none"),x.removeAttribute("aria-label"),x.removeAttribute("role"),x.setAttribute("tabindex","0");return F!==$.data&&($.data=F),b.className!=M&&(b.className=M),f.setStyle(o.element.style,"height",this.$lines.computeLineHeight(v,u,R)+"px"),f.setStyle(o.element.style,"top",this.$lines.computeLineTop(v,u,R)+"px"),o.text=F,x.style.display==="none"&&C.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?f.addCssClass(this.element,"ace_folding-enabled"):f.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=f.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(o.x<u.left+m.left)return"markers";if(this.$showFoldWidgets&&o.x>m.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,y.implement(c.prototype,h);function a(l){var o=document.createTextNode("");l.appendChild(o);var u=f.createElement("span");l.appendChild(u);var m=f.createElement("span");l.appendChild(m);var v=f.createElement("span");return m.appendChild(v),l}r.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,r,d){var f=t("../range").Range,y=t("../lib/dom"),w=function(){function p(s){this.element=y.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return p.prototype.setPadding=function(s){this.$padding=s},p.prototype.setSession=function(s){this.session=s},p.prototype.setMarkers=function(s){this.markers=s},p.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},p.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 u=this.$getTop(o.start.row,s),m=this.$padding+o.start.column*s.characterWidth;l.renderer(c,o,m,u,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)}},p.prototype.$getTop=function(s,c){return(s-c.firstRowScreen)*c.lineHeight},p.prototype.drawTextMarker=function(s,c,a,l,o){for(var u=this.session,m=c.start.row,v=c.end.row,b=m,R=0,$=0,C=u.getScreenLastRowColumn(b),x=new f(b,c.start.column,b,$);b<=v;b++)x.start.row=x.end.row=b,x.start.column=b==m?c.start.column:u.getRowWrapIndent(b),x.end.column=C,R=$,$=C,C=b+1<v?u.getScreenLastRowColumn(b+1):b==v?0:c.end.column,this.drawSingleLineMarker(s,x,a+(b==m?" ace_start":"")+" ace_br"+h(b==m||b==m+1&&c.start.column,R<$,$>C,b==v),l,b==v?0:1,o)},p.prototype.drawMultiLineMarker=function(s,c,a,l,o){var u=this.$padding,m=l.lineHeight,v=this.$getTop(c.start.row,l),b=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var R=c.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(s,R,a+" ace_br1 ace_start",l,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:"+u+"px;top:"+v+"px;left:"+b+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var R=c.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(s,R,a+" ace_br12",l,null,o)}else{v=this.$getTop(c.end.row,l);var $=c.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+v+"px;left:"+u+"px;"+(o||""))}if(m=(c.end.row-c.start.row-1)*l.lineHeight,!(m<=0)){v=this.$getTop(c.start.row+1,l);var C=(c.start.column?1:0)|(c.end.column?0:8);this.elt(a+(C?" ace_br"+C:""),"height:"+m+"px;right:"+u+"px;top:"+v+"px;left:"+u+"px;"+(o||""))}},p.prototype.drawSingleLineMarker=function(s,c,a,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(s,c,a,l,o,u);var m=l.lineHeight,v=(c.end.column+(o||0)-c.start.column)*l.characterWidth,b=this.$getTop(c.start.row,l),R=this.$padding+c.start.column*l.characterWidth;this.elt(a,"height:"+m+"px;width:"+v+"px;top:"+b+"px;left:"+R+"px;"+(u||""))},p.prototype.drawBidiSingleLineMarker=function(s,c,a,l,o,u){var m=l.lineHeight,v=this.$getTop(c.start.row,l),b=this.$padding,R=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);R.forEach(function($){this.elt(a,"height:"+m+"px;width:"+($.width+(o||0))+"px;top:"+v+"px;left:"+(b+$.left)+"px;"+(u||""))},this)},p.prototype.drawFullLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;c.start.row!=c.end.row&&(m+=this.$getTop(c.end.row,l)-u),this.elt(a,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},p.prototype.drawScreenLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;this.elt(a,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},p}();w.prototype.$padding=0;function h(p,s,c,a){return(p?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,d){var f=new Set(["text","rparen","lparen"]);r.isTextToken=function(y){return f.has(y)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(t,r,d){var f=t("../lib/oop"),y=t("../lib/dom"),w=t("../lib/lang"),h=t("./lines").Lines,p=t("../lib/event_emitter").EventEmitter,s=t("../config").nls,c=t("./text_util").isTextToken,a=function(){function l(o){this.dom=y,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",m=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],m=1;m<o+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=w.stringRepeat(this.TAB_CHAR,m),u.push(v)}else u.push(this.dom.createTextNode(w.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",R=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",x=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):$,v=this.dom.createElement("span");v.className=b+R,v.textContent=$,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=b+C,v.textContent=x,this.$tabStrings[" "]=v}},l.prototype.updateLines=function(o,u,m){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var v=Math.max(u,o.firstRow),b=Math.min(m,o.lastRow),R=this.element.childNodes,$=0,C=o.firstRow;C<v;C++){var x=this.session.getFoldLine(C);if(x)if(x.containsRow(v)){v=x.start.row;break}else C=x.end.row;$++}for(var T=!1,C=v,x=this.session.getNextFoldLine(C),E=x?x.start.row:1/0;C>E&&(C=x.end.row+1,x=this.session.getNextFoldLine(C,x),E=x?x.start.row:1/0),!(C>b);){var L=R[$++];if(L){this.dom.removeChildren(L),this.$renderLine(L,C,C==E?x:!1),T&&(L.style.top=this.$lines.computeLineTop(C,o,this.session)+"px");var I=o.lineHeight*this.session.getRowLength(C)+"px";L.style.height!=I&&(T=!0,L.style.height=I)}C++}if(T)for(;$<this.$lines.cells.length;){var N=this.$lines.cells[$++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=o.lastRow,v=u?u.lastRow:-1;if(!u||v<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var b=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,u,m){for(var v=[],b=u,R=this.session.getNextFoldLine(b),$=R?R.start.row:1/0;b>$&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),$=R?R.start.row:1/0),!(b>m);){var C=this.$lines.createCell(b,o,this.session),x=C.element;this.dom.removeChildren(x),y.setStyle(x.style,"height",this.$lines.computeLineHeight(b,o,this.session)+"px"),y.setStyle(x.style,"top",this.$lines.computeLineTop(b,o,this.session)+"px"),this.$renderLine(x,b,b==$?R:!1),this.$useLineGroups()?x.className="ace_line_group":x.className="ace_line",v.push(C),b++}return v},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,m=o.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(o,u,m))},l.prototype.$renderToken=function(o,u,m,v){for(var b=this,R=/(\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,$=this.dom.createFragment(this.element),C,x=0;C=R.exec(v);){var T=C[1],E=C[2],L=C[3],I=C[4],N=C[5];if(!(!b.showSpaces&&E)){var _=x!=C.index?v.slice(x,C.index):"";if(x=C.index+C[0].length,_&&$.appendChild(this.dom.createTextNode(_,this.element)),T){var A=b.session.getScreenTabSize(u+C.index);$.appendChild(b.$tabStrings[A].cloneNode(!0)),u+=A-1}else if(E)if(b.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=w.stringRepeat(b.SPACE_CHAR,E.length),$.appendChild(k)}else $.appendChild(this.dom.createTextNode(E,this.element));else if(L){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=w.stringRepeat(b.SPACE_CHAR,L.length),$.appendChild(k)}else if(I){u+=1;var k=this.dom.createElement("span");k.style.width=b.config.characterWidth*2+"px",k.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=b.showSpaces?b.SPACE_CHAR:I,$.appendChild(k)}else if(N){u+=1;var k=this.dom.createElement("span");k.style.width=b.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=N,$.appendChild(k)}}}if($.appendChild(this.dom.createTextNode(x?v.slice(x):v,this.element)),c(m.type))o.appendChild($);else{var M="ace_"+m.type.replace(/\./g," ace_"),k=this.dom.createElement("span");m.type=="fold"&&(k.style.width=m.value.length*this.config.characterWidth+"px",k.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),k.className=M,k.appendChild($),o.appendChild(k)}return u+v.length},l.prototype.renderIndentGuide=function(o,u,m){var v=u.search(this.$indentGuideRe);if(v<=0||v>=m)return u;if(u[0]==" "){v-=v%this.tabSize;for(var b=v/this.tabSize,R=0;R<b;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(v)}else if(u[0]==" "){for(var R=0;R<v;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(v)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:u.row};var b=this.session.$bracketHighlight;if(b){for(var R=this.session.$bracketHighlight.ranges,$=0;$<R.length;$++)if(u.row!==R[$].start.row){this.$highlightIndentGuideMarker.end=R[$].start.row+1,u.row>R[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=u.row+1;$<o.length;$++){var C=o[$],x=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=$,x<=m))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){var o=this.element.querySelectorAll(".ace_indent-guide-active");o.forEach(function(u){u.classList.remove("ace_indent-guide-active")})},l.prototype.$setIndentGuideActive=function(o,u){var m=this.session.doc.getLine(o.row);if(m!==""){var v=o.element;if(o.element.classList&&o.element.classList.contains("ace_line_group"))if(o.element.childNodes.length>0)v=o.element.childNodes[0];else return;var b=v.childNodes;if(b){var R=b[u-1];R&&R.classList&&R.classList.contains("ace_indent-guide")&&R.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<o.length;m++){var v=o[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,u)}}else for(var m=o.length-1;m>=0;m--){var v=o[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,m){var v=0,b=0,R=m[0],$=0,C=this.$createLineElement();o.appendChild(C);for(var x=0;x<u.length;x++){var T=u[x],E=T.value;if(x==0&&this.displayIndentGuides){if(v=E.length,E=this.renderIndentGuide(C,E,R),!E)continue;v-=E.length}if(v+E.length<R)$=this.$renderToken(C,$,T,E),v+=E.length;else{for(;v+E.length>=R;)$=this.$renderToken(C,$,T,E.substring(0,R-v)),E=E.substring(R-v),v=R,C=this.$createLineElement(),o.appendChild(C),C.appendChild(this.dom.createTextNode(w.stringRepeat(" ",m.indent),this.element)),b++,$=0,R=m[b]||Number.MAX_VALUE;E.length!=0&&(v+=E.length,$=this.$renderToken(C,$,T,E))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,$,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var m=0,v=0;v<u.length;v++){var b=u[v],R=b.value;if(!(v==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(o,R),!R))){if(m+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,m,b,R);m=this.$renderToken(o,m,b,R)}}},l.prototype.$renderOverflowMessage=function(o,u,m,v,b){m&&this.$renderToken(o,u,m,v.slice(0,this.MAX_LINE_LENGTH-u));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=b?"<hide>":"<click to see more...>",o.appendChild(R)},l.prototype.$renderLine=function(o,u,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(u)),m)var v=this.$getFoldLineTokens(u,m);else var v=this.session.getTokens(u);var b=o;if(v.length){var R=this.session.getRowSplitData(u);if(R&&R.length){this.$renderWrappedLine(o,v,R);var b=o.lastChild}else{var b=o;this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b)),this.$renderSimpleLine(b,v)}}else this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b));if(this.showEOL&&b){m&&(u=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild($)}},l.prototype.$getFoldLineTokens=function(o,u){var m=this.session,v=[];function b($,C,x){for(var T=0,E=0;E+$[T].value.length<C;)if(E+=$[T].value.length,T++,T==$.length)return;if(E!=C){var L=$[T].value.substring(C-E);L.length>x-C&&(L=L.substring(0,x-C)),v.push({type:$[T].type,value:L}),E=C+L.length,T+=1}for(;E<x&&T<$.length;){var L=$[T].value;L.length+E>x?v.push({type:$[T].type,value:L.substring(0,x-E)}):v.push($[T]),E+=L.length,T+=1}}var R=m.getTokens(o);return u.walk(function($,C,x,T,E){$!=null?v.push({type:"fold",value:$}):(E&&(R=m.getTokens(C)),R.length&&b(R,T,x))},u.end.row,this.session.getLine(u.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,f.implement(a.prototype,p),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,r,d){var f=t("../lib/dom"),y=function(){function w(h){this.element=f.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),f.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var p=this.cursors,s=p.length;s--;)f.setStyle(p[s].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,p=h.length;p--;)h[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&f.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,f.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,f.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=f.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,f.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,f.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,f.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&f.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),f.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),p()},this.blinkInterval),p()}},w.prototype.getPixelPosition=function(h,p){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,h.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:a}},w.prototype.isCursorInView=function(h,p){return h.top>=0&&h.top<p.maxHeight},w.prototype.update=function(h){this.config=h;var p=this.session.$selectionMarkers,s=0,c=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var s=0,a=p.length;s<a;s++){var l=this.getPixelPosition(p[s].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&s>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,p[s],this.session):this.isCursorInView(l,h)?(f.setStyle(u,"display","block"),f.translate(o,l.left,l.top),f.setStyle(u,"width",Math.round(h.characterWidth)+"px"),f.setStyle(u,"height",h.lineHeight+"px")):f.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=l,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?f.addCssClass(this.element,"ace_overwrite-cursors"):f.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();y.prototype.$padding=0,y.prototype.drawCursor=null,r.Cursor=y}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,d){var f=this&&this.__extends||function(){var o=function(u,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(v[R]=b[R])},o(u,m)};return function(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(u,m);function v(){this.constructor=u}u.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),y=t("./lib/oop"),w=t("./lib/dom"),h=t("./lib/event"),p=t("./lib/event_emitter").EventEmitter,s=32768,c=function(){function o(u,m){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();y.implement(c.prototype,p);var a=function(o){f(u,o);function u(m,v){var b=o.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,v.$scrollbarWidth=b.width=w.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(m){this.element.style.height=m+"px"},u.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>s?(this.coeff=s/m,m=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},u.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},u}(c);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(o){f(u,o);function u(m,v){var b=o.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=v.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(m){this.element.style.width=m+"px"},u.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},u}(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,d){var f=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=t("./lib/oop"),w=t("./lib/dom"),h=t("./lib/event"),p=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,u){this.element=w.createElement("div"),this.element.className="ace_sb"+u,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,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();y.implement(s.prototype,p);var c=function(l){f(o,l);function o(u,m){var v=l.call(this,u,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=u,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientY,R=function(I){b=I.clientY},$=function(){clearInterval(E)},C=m.clientY,x=this.thumbTop,T=function(){if(b!==void 0){var I=v.scrollTopFromThumbTop(x+b-C);I!==v.scrollTop&&v._emit("scroll",{data:I})}};h.capture(this.inner,R,$);var E=setInterval(T,20);return h.preventDefault(m)}var L=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var m=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,m){this.pageHeight===u&&!m||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var a=function(l){f(o,l);function o(u,m){var v=l.call(this,u,"-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=m,v}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientX,R=function(I){b=I.clientX},$=function(){clearInterval(E)},C=m.clientX,x=this.thumbLeft,T=function(){if(b!==void 0){var I=v.scrollLeftFromThumbLeft(x+b-C);I!==v.scrollLeft&&v._emit("scroll",{data:I})}};h.capture(this.inner,R,$);var E=setInterval(T,20);return h.preventDefault(m)}var L=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var m=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,m){this.pageWidth===u&&!m||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(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,d){var f=t("./lib/event"),y=function(){function w(h,p){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var s=this;this._flush=function(c){s.pending=!1;var a=s.changes;if(a&&(f.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(h){this.changes=this.changes|h,this.changes&&!this.pending&&(f.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var p=this.changes;return this.changes=0,p},w}();r.RenderLoop=y}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(t,r,d){var f=t("../lib/oop"),y=t("../lib/dom"),w=t("../lib/lang"),h=t("../lib/event"),p=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,c=512,a=typeof ResizeObserver=="function",l=200,o=function(){function u(m){this.el=y.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=y.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=y.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",c),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},u.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},u.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=h.onIdle(function v(){m.checkForSizeChanges(),h.onIdle(v,500)},500)},u.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/c};return v.width===0||v.height===0?null:v},u.prototype.$measureCharWidth=function(m){this.$main.textContent=w.stringRepeat(m,c);var v=this.$main.getBoundingClientRect();return v.width/c},u.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var m=function(v,b){return["div",{style:"position: absolute;top:"+v+"px;left:"+b+"px;"}]};this.els=y.buildDom([m(0,0),m(l,0),m(0,l),m(l,l)],this.el)},u.prototype.transformCoordinates=function(m,v){if(m){var b=this.$getZoom(this.el);m=x(1/b,m)}function R(V,q,J){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*J[0]+q[0]*J[1])/G,(+V[1]*J[0]-V[0]*J[1])/G]}function $(V,q){return[V[0]-q[0],V[1]-q[1]]}function C(V,q){return[V[0]+q[0],V[1]+q[1]]}function x(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 E=T(this.els[0]),L=T(this.els[1]),I=T(this.els[2]),N=T(this.els[3]),_=R($(N,L),$(N,I),$(C(L,I),C(N,E))),A=x(1+_[0],$(L,E)),k=x(1+_[1],$(I,E));if(v){var M=v,O=_[0]*M[0]/l+_[1]*M[1]/l+1,F=C(x(M[0],A),x(M[1],k));return C(x(1/O/l,F),E)}var P=$(m,E),j=R($(A,x(_[0],P)),$(k,x(_[1],P)),P);return x(l,j)},u}();o.prototype.$characterSize={width:0,height:0},f.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,r,d){d.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,d){var f=t("../lib/dom"),y=t("../lib/oop"),w=t("../lib/event_emitter").EventEmitter,h=function(){function p(s,c){this.canvas=f.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 p.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,_){return N.priority<_.priority?-1:N.priority>_.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var m={info:1,warning:2,error:3};u.forEach(function(N){N.priority=m[N.type]||null}),u=u.sort(o);for(var v=this.renderer.session.$foldData,b=0;b<u.length;b++){var R=u[b].row,$=this.compensateFoldRows(R,v),C=Math.round((R-$)*this.lineHeight*this.heightRatio),x=Math.round((R-$)*this.lineHeight*this.heightRatio),T=Math.round(((R-$)*this.lineHeight+this.lineHeight)*this.heightRatio),E=T-x;if(E<this.minDecorationHeight){var L=(x+T)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),x=Math.round(L-this.halfMinDecorationHeight),T=Math.round(L+this.halfMinDecorationHeight)}l.fillStyle=c[u[b].type]||null,l.fillRect(0,C,this.canvasWidth,T-x)}}var I=this.renderer.session.selection.getCursor();if(I){var $=this.compensateFoldRows(I.row,v),C=Math.round((I.row-$)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,C,this.canvasWidth,2)}},p.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},p}();y.implement(h.prototype,w),r.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(t,r,d){var f=t("./lib/oop"),y=t("./lib/dom"),w=t("./lib/lang"),h=t("./config"),p=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,u=t("./scrollbar_custom").HScrollBar,m=t("./scrollbar_custom").VScrollBar,v=t("./renderloop").RenderLoop,b=t("./layer/font_metrics").FontMetrics,R=t("./lib/event_emitter").EventEmitter,$=t("./css/editor-css"),C=t("./layer/decorators").Decorator,x=t("./lib/useragent"),T=t("./layer/text_util").isTextToken;y.importCssString($,"ace_editor.css",!1);var E=function(){function L(I,N){var _=this;this.container=I||y.createElement("div"),y.addCssClass(this.container,"ace_editor"),y.HI_DPI&&y.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=y.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=y.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=y.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var A=this.$textLayer=new c(this.content);this.canvas=A.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(k){_.$scrollAnimation||_.session.setScrollTop(k.data-_.scrollMargin.top)}),this.scrollBarH.on("scroll",function(k){_.$scrollAnimation||_.session.setScrollLeft(k.data-_.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(k){_.updateCharacterSize(),_.onResize(!0,_.gutterWidth,_.$size.width,_.$size.height),_._signal("changeCharacterSize",k)}),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=!x.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(),h.resetOptions(this),h._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(),y.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(I){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=I,I&&this.scrollMargin.top&&I.getScrollTop()<=0&&I.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(I),this.$markerBack.setSession(I),this.$markerFront.setSession(I),this.$gutterLayer.setSession(I),this.$textLayer.setSession(I),I&&(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(I,N,_){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>I&&(this.$changedLines.firstRow=I),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:I,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(_)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(I){I?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(I,N,_,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=I?1:0;var k=this.container;A||(A=k.clientHeight||k.scrollHeight),!A&&this.$maxLines&&this.lineHeight>1&&(!k.style.height||k.style.height=="0px")&&(k.style.height="1px",A=k.clientHeight||k.scrollHeight),_||(_=k.clientWidth||k.scrollWidth);var M=this.$updateCachedSize(I,N,_,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!_&&!A)return this.resizing=0;I&&(this.$gutterLayer.$padding=null),I?this.$renderChanges(M|this.$changes,!0):this.$loop.schedule(M|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(I,N,_,A){A-=this.$extraHeight||0;var k=0,M=this.$size,O={width:M.width,height:M.height,scrollerHeight:M.scrollerHeight,scrollerWidth:M.scrollerWidth};if(A&&(I||M.height!=A)&&(M.height=A,k|=this.CHANGE_SIZE,M.scrollerHeight=M.height,this.$horizScroll&&(M.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(M.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",k=k|this.CHANGE_SCROLL),_&&(I||M.width!=_)){k|=this.CHANGE_SIZE,M.width=_,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,y.setStyle(this.scrollBarH.element.style,"left",N+"px"),y.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),M.scrollerWidth=Math.max(0,_-N-this.scrollBarV.getWidth()-this.margin.h),y.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";y.setStyle(this.scrollBarH.element.style,"right",F),y.setStyle(this.scroller.style,"right",F),y.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(M.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||I)&&(k|=this.CHANGE_FULL)}return M.$dirty=!_||!A,k&&this._signal("resize",O),k},L.prototype.onGutterResize=function(I){var N=this.$showGutter?I: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 I=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(I/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(I){this.setOption("animatedScroll",I)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(I){this.setOption("showInvisibles",I),this.session.$bidiHandler.setShowInvisibles(I)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(I){this.setOption("displayIndentGuides",I)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(I){this.setOption("highlightIndentGuides",I)},L.prototype.setShowPrintMargin=function(I){this.setOption("showPrintMargin",I)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(I){this.setOption("printMarginColumn",I)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(I){return this.setOption("showGutter",I)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(I){this.setOption("fadeFoldWidgets",I)},L.prototype.setHighlightGutterLine=function(I){this.setOption("highlightGutterLine",I)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var I=y.createElement("div");I.className="ace_layer ace_print-margin-layer",this.$printMarginEl=y.createElement("div"),this.$printMarginEl.className="ace_print-margin",I.appendChild(this.$printMarginEl),this.content.insertBefore(I,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 I=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){y.translate(this.textarea,-100,0);return}var _=this.$cursorLayer.$pixelPos;if(_){N&&N.markerRange&&(_=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var A=this.layerConfig,k=_.top,M=_.left;k-=A.offset;var O=N&&N.useTextareaForIME||x.isMobile?this.lineHeight:1;if(k<0||k>A.height-O){y.translate(this.textarea,0,0);return}var F=1,P=this.$size.height-O;if(!N)k+=this.lineHeight;else if(N.useTextareaForIME){var j=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(j)[0]}else k+=this.lineHeight+2;M-=this.scrollLeft,M>this.$size.scrollerWidth-F&&(M=this.$size.scrollerWidth-F),M+=this.gutterWidth+this.margin.left,y.setStyle(I,"height",O+"px"),y.setStyle(I,"width",F+"px"),y.translate(this.textarea,Math.min(M,this.$size.scrollerWidth-F),Math.min(k,P))}}},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 I=this.layerConfig,N=I.lastRow,_=this.session.documentToScreenRow(N,0)*I.lineHeight;return _-this.session.getScrollTop()>I.height-I.lineHeight?N-1:N},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(I){this.$padding=I,this.$textLayer.setPadding(I),this.$cursorLayer.setPadding(I),this.$markerFront.setPadding(I),this.$markerBack.setPadding(I),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(I,N,_,A){var k=this.scrollMargin;k.top=I|0,k.bottom=N|0,k.right=A|0,k.left=_|0,k.v=k.top+k.bottom,k.h=k.left+k.right,k.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-k.top),this.updateFull()},L.prototype.setMargin=function(I,N,_,A){var k=this.margin;k.top=I|0,k.bottom=N|0,k.right=A|0,k.left=_|0,k.v=k.top+k.bottom,k.h=k.left+k.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(I){this.setOption("hScrollBarAlwaysVisible",I)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(I){this.setOption("vScrollBarAlwaysVisible",I)},L.prototype.$updateScrollBarV=function(){var I=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(I-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>I-N&&(I=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(I+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(I,N){if(this.$changes&&(I|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!I&&!N){this.$changes|=I;return}if(this.$size.$dirty)return this.$changes|=I,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",I),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var _=this.layerConfig;if(I&this.CHANGE_FULL||I&this.CHANGE_SIZE||I&this.CHANGE_TEXT||I&this.CHANGE_LINES||I&this.CHANGE_SCROLL||I&this.CHANGE_H_SCROLL){if(I|=this.$computeLayerConfig()|this.$loop.clear(),_.firstRow!=this.layerConfig.firstRow&&_.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(_.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,I=I|this.CHANGE_SCROLL,I|=this.$computeLayerConfig()|this.$loop.clear())}_=this.layerConfig,this.$updateScrollBarV(),I&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),y.translate(this.content,-this.scrollLeft,-_.offset);var k=_.width+2*this.$padding+"px",M=_.minHeight+"px";y.setStyle(this.content.style,"width",k),y.setStyle(this.content.style,"height",M)}if(I&this.CHANGE_H_SCROLL&&(y.translate(this.content,-this.scrollLeft,-_.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),I&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}if(I&this.CHANGE_SCROLL){this.$changedLines=null,I&this.CHANGE_TEXT||I&this.CHANGE_LINES?this.$textLayer.update(_):this.$textLayer.scrollLines(_),this.$showGutter&&(I&this.CHANGE_GUTTER||I&this.CHANGE_LINES?this.$gutterLayer.update(_):this.$gutterLayer.scrollLines(_)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}I&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_LINES?((this.$updateLines()||I&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_TEXT||I&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)),I&this.CHANGE_CURSOR&&(this.$cursorLayer.update(_),this.$moveTextAreaToCursor()),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(_),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(_),this._signal("afterRender",I)},L.prototype.$autosize=function(){var I=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,_=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,I))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(_+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&_>this.$maxPixelHeight&&(_=this.$maxPixelHeight);var A=_<=2*this.lineHeight,k=!A&&I>N;if(_!=this.desiredHeight||this.$size.height!=this.desiredHeight||k!=this.$vScroll){k!=this.$vScroll&&(this.$vScroll=k,this.scrollBarV.setVisible(k));var M=this.container.clientWidth;this.container.style.height=_+"px",this.$updateCachedSize(!0,this.$gutterWidth,M,_),this.desiredHeight=_,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var I=this.session,N=this.$size,_=N.height<=2*this.lineHeight,A=this.session.getScreenLength(),k=A*this.lineHeight,M=this.$getLongestLine(),O=!_&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-M-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var P=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),_=N.height<=2*this.lineHeight);var j=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;k+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,k-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,M+2*this.$padding-N.scrollerWidth+q.right)));var J=!_&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-k+V<0||this.scrollTop>q.top),G=P!==J;G&&(this.$vScroll=J,this.scrollBarV.setVisible(J));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(j/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=X+re,ye,we,pe=this.lineHeight;X=I.screenToDocumentRow(X,0);var ke=I.getFoldLine(X);ke&&(X=ke.start.row),ye=I.documentToScreenRow(X,0),we=I.getRowLength(X)*pe,ae=Math.min(I.screenToDocumentRow(ae,0),I.getLength()-1),j=N.scrollerHeight+I.getRowLength(ae)*pe+we,Z=this.scrollTop-ye*pe;var at=0;return(this.layerConfig.width!=M||F)&&(at=this.CHANGE_H_SCROLL),(F||G)&&(at|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(M=this.$getLongestLine())),this.layerConfig={width:M,padding:this.$padding,firstRow:X,firstRowScreen:ye,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:j,maxHeight:k,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(M-this.$padding),at},L.prototype.$updateLines=function(){if(this.$changedLines){var I=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var _=this.layerConfig;if(!(I>_.lastRow+1)&&!(N<_.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(_),this.$textLayer.update(_);return}return this.$textLayer.updateLines(_,I,N),!0}}},L.prototype.$getLongestLine=function(){var I=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(I+=1),this.$textLayer&&I>this.$textLayer.MAX_LINE_LENGTH&&(I=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(I*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(I,N){this.$gutterLayer.addGutterDecoration(I,N)},L.prototype.removeGutterDecoration=function(I,N){this.$gutterLayer.removeGutterDecoration(I,N)},L.prototype.updateBreakpoints=function(I){this._rows=I,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(I){this.$gutterLayer.setAnnotations(I),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(I,N,_){this.scrollCursorIntoView(I,_),this.scrollCursorIntoView(N,_)},L.prototype.scrollCursorIntoView=function(I,N,_){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(I),k=A.left,M=A.top,O=_&&_.top||0,F=_&&_.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var P=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;P+O>M?(N&&P+O>M+this.lineHeight&&(M-=N*this.$size.scrollerHeight),M===0&&(M=-this.scrollMargin.top),this.session.setScrollTop(M)):P+this.$size.scrollerHeight-F<M+this.lineHeight&&(N&&P+this.$size.scrollerHeight-F<M-this.lineHeight&&(M+=N*this.$size.scrollerHeight),this.session.setScrollTop(M+this.lineHeight+F-this.$size.scrollerHeight));var j=this.scrollLeft,V=2*this.layerConfig.characterWidth;k-V<j?(k-=V,k<this.$padding+V&&(k=-this.scrollMargin.left),this.session.setScrollLeft(k)):(k+=V,j+this.$size.scrollerWidth<k+this.characterWidth?this.session.setScrollLeft(Math.round(k+this.characterWidth-this.$size.scrollerWidth)):j<=this.$padding&&k-j<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(I){this.session.setScrollTop(I*this.lineHeight)},L.prototype.alignCursor=function(I,N){typeof I=="number"&&(I={row:I,column:0});var _=this.$cursorLayer.getPixelPosition(I),A=this.$size.scrollerHeight-this.lineHeight,k=_.top-A*(N||0);return this.session.setScrollTop(k),k},L.prototype.$calcSteps=function(I,N){var _=0,A=this.STEPS,k=[],M=function(O,F,P){return P*(Math.pow(O-1,3)+1)+F};for(_=0;_<A;++_)k.push(M(_/this.STEPS,I,N-I));return k},L.prototype.scrollToLine=function(I,N,_,A){var k=this.$cursorLayer.getPixelPosition({row:I,column:0}),M=k.top;N&&(M-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(M),_!==!1&&this.animateScrolling(O,A)},L.prototype.animateScrolling=function(I,N){var _=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(I==_)return;if(this.$scrollAnimation){var k=this.$scrollAnimation.steps;if(k.length&&(I=k[0],I==_))return}var M=A.$calcSteps(I,_);this.$scrollAnimation={from:I,to:_,steps:M},clearInterval(this.$timer),A.session.setScrollTop(M.shift()),A.session.$scrollTop=_;function O(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(A.$stopAnimation){O();return}if(!A.session)return clearInterval(A.$timer);M.length?(A.session.setScrollTop(M.shift()),A.session.$scrollTop=_):_!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(_),_=null):O()},10)},L.prototype.scrollToY=function(I){this.scrollTop!==I&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=I)},L.prototype.scrollToX=function(I){this.scrollLeft!==I&&(this.scrollLeft=I),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(I,N){this.session.setScrollTop(N),this.session.setScrollLeft(I)},L.prototype.scrollBy=function(I,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),I&&this.session.setScrollLeft(this.session.getScrollLeft()+I)},L.prototype.isScrollableBy=function(I,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||I<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||I>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(I,N){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([I,N]);I=A[1]-this.gutterWidth-this.margin.left,N=A[0]}else _=this.scroller.getBoundingClientRect();var k=I+this.scrollLeft-_.left-this.$padding,M=k/this.characterWidth,O=Math.floor((N+this.scrollTop-_.top)/this.lineHeight),F=this.$blockCursor?Math.floor(M):Math.round(M);return{row:O,column:F,side:M-F>0?1:-1,offsetX:k}},L.prototype.screenToTextCoordinates=function(I,N){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([I,N]);I=A[1]-this.gutterWidth-this.margin.left,N=A[0]}else _=this.scroller.getBoundingClientRect();var k=I+this.scrollLeft-_.left-this.$padding,M=k/this.characterWidth,O=this.$blockCursor?Math.floor(M):Math.round(M),F=Math.floor((N+this.scrollTop-_.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),k)},L.prototype.textToScreenCoordinates=function(I,N){var _=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(I,N),k=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,I)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),M=A.row*this.lineHeight;return{pageX:_.left+k-this.scrollLeft,pageY:_.top+M-this.scrollTop}},L.prototype.visualizeFocus=function(){y.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){y.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(I){this.$composition=I,I.cssText||(I.cssText=this.textarea.style.cssText),I.useTextareaForIME==null&&(I.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(y.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):I.markerId=this.session.addMarker(I.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(I){var N=this.session.selection.cursor;this.addToken(I,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),y.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var I=this.session.selection.cursor;this.removeExtraToken(I.row,I.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(I,N){var _=this.session.selection.cursor,A=N||{row:_.row,column:_.column};this.removeGhostText();var k=this.$calculateWrappedTextChunks(I,A);this.addToken(k[0].text,"ghost_text",A.row,A.column),this.$ghostText={text:I,position:{row:A.row,column:A.column}};var M=y.createElement("div");if(k.length>1){var O=this.hideTokensAfterPosition(A.row,A.column),F;k.slice(1).forEach(function(G){var Z=y.createElement("div"),re=y.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(y.createTextNode(G.text)),Z.appendChild(re),M.appendChild(Z),F=Z}),O.forEach(function(G){var Z=y.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(y.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:M,row:A.row,column:A.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var P=this.$cursorLayer.getPixelPosition(A,!0),j=this.container,V=j.getBoundingClientRect().height,q=k.length*this.lineHeight,J=q<V-P.top;if(J)return;q<V?this.scrollBy(0,(k.length-1)*this.lineHeight):this.scrollToRow(A.row)}},L.prototype.$calculateWrappedTextChunks=function(I,N){var _=this.$size.scrollerWidth-this.$padding*2,A=Math.floor(_/this.characterWidth)-2;A=A<=0?60:A;for(var k=I.split(/\r?\n/),M=[],O=0;O<k.length;O++){var F=this.session.$getDisplayTokens(k[O],N.column),P=this.session.$computeWrapSplits(F,A,this.session.$tabSize);if(P.length>0){var j=0;P.push(k[O].length);for(var V=0;V<P.length;V++){var q=k[O].slice(j,P[V]);M.push({text:q,wrapped:!0}),j=P[V]}}else M.push({text:k[O],wrapped:!1})}return M},L.prototype.removeGhostText=function(){if(this.$ghostText){var I=this.$ghostText.position;this.removeExtraToken(I.row,I.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(I,N,_,A){var k=this.session;k.bgTokenizer.lines[_]=null;var M={type:N,value:I},O=k.getTokens(_);if(A==null||!O.length)O.push(M);else for(var F=0,P=0;P<O.length;P++){var j=O[P];if(F+=j.value.length,A<=F){var V=j.value.length-(F-A),q=j.value.slice(0,V),J=j.value.slice(V);O.splice(P,1,{type:j.type,value:q},M,{type:j.type,value:J});break}}this.updateLines(_,_)},L.prototype.hideTokensAfterPosition=function(I,N){for(var _=this.session.getTokens(I),A=0,k=!1,M=[],O=0;O<_.length;O++){var F=_[O];if(A+=F.value.length,F.type!=="ghost_text"){if(k){M.push({type:F.type,value:F.value}),F.type="hidden_token";continue}A===N&&(k=!0)}}return this.updateLines(I,I),M},L.prototype.removeExtraToken=function(I,N){this.session.bgTokenizer.lines[I]=null,this.updateLines(I,I)},L.prototype.setTheme=function(I,N){var _=this;if(this.$themeId=I,_._dispatchEvent("themeChange",{theme:I}),!I||typeof I=="string"){var A=I||this.$options.theme.initialValue;h.loadModule(["theme",A],k)}else k(I);function k(M){if(_.$themeId!=I)return N&&N();if(!M||!M.cssClass)throw new Error("couldn't load module "+I+" or it didn't call define");M.$id&&(_.$themeId=M.$id),y.importCssString(M.cssText,M.cssClass,_.container),_.theme&&y.removeCssClass(_.container,_.theme.cssClass);var O="padding"in M?M.padding:"padding"in(_.theme||{})?4:_.$padding;_.$padding&&O!=_.$padding&&_.setPadding(O),_.$theme=M.cssClass,_.theme=M,y.addCssClass(_.container,M.cssClass),y.setCssClass(_.container,"ace_dark",M.isDark),_.$size&&(_.$size.width=0,_.$updateSizeAsync()),_._dispatchEvent("themeLoaded",{theme:M}),N&&N(),x.isSafari&&_.scroller&&(_.scroller.style.background="red",_.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(I,N){y.setCssClass(this.container,I,N!==!1)},L.prototype.unsetStyle=function(I){y.removeCssClass(this.container,I)},L.prototype.setCursorStyle=function(I){y.setStyle(this.scroller.style,"cursor",I)},L.prototype.setMouseCursor=function(I){y.setStyle(this.scroller.style,"cursor",I)},L.prototype.attachToShadowRoot=function(){y.importCssString($,"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(I){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,I===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollTop(_.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollLeft(_.data-N.scrollMargin.left)}),this.$scrollDecorator=new C(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(_){N.$scrollAnimation||N.session.setScrollTop(_.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollLeft(_.data-N.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var I=this;this.$resizeTimer=w.delayedCall(function(){I.destroyed||I.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var _=N[0].contentRect.width,A=N[0].contentRect.height;Math.abs(I.$size.width-_)>1||Math.abs(I.$size.height-A)>1?I.$resizeTimer.delay():I.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,f.implement(E.prototype,R),h.defineOptions(E.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){y.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:!x.isMobile&&!x.isIE}}),r.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,r,d){var f=t("../lib/oop"),y=t("../lib/net"),w=t("../lib/event_emitter").EventEmitter,h=t("../config");function p(l){var o="importScripts('"+y.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new u;return m.append(o),m.getBlob("application/javascript")}}function s(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=p(l),u=window.URL||window.webkitURL,m=u.createObjectURL(o);return new Worker(m)}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(){f.implement(this,w),this.$createWorkerFromOldConfig=function(l,o,u,m,v){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),h.get("packaged")||!t.toUrl)m=m||h.moduleUrl(o,"worker");else{var b=this.$normalizePath;m=m||b(t.toUrl("ace/worker/worker.js",null,"_"));var R={};l.forEach(function($){R[$]=b(t.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:R,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return y.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var m=this.callbackId++;this.callbacks[m]=u,o.push(m)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var a=function(l,o,u){var m=null,v=!1,b=Object.create(w),R=[],$=new c({messageBuffer:R,terminate:function(){},postMessage:function(x){R.push(x),m&&(v?setTimeout(C):C())}});$.setEmitSync=function(x){v=x};var C=function(){var x=R.shift();x.command?m[x.command].apply(m,x.args):x.event&&b._signal(x.event,x.data)};return b.postMessage=function(x){$.onMessage({data:x})},b.callback=function(x,T){this.postMessage({type:"call",id:T,data:x})},b.emit=function(x,T){this.postMessage({type:"event",name:x,data:T})},h.loadModule(["worker",o],function(x){for(m=new x[u](b);R.length;)C()}),$};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,d){var f=t("./range").Range,y=t("./lib/event_emitter").EventEmitter,w=t("./lib/oop"),h=function(){function p(s,c,a,l,o,u){var m=this;this.length=c,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){m.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 p.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 f(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},p.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 f(a.row,a.column,a.row,a.column+c.length),c.othersClass,null,!1)})}},p.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)}},p.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 u=this.others.length-1;u>=0;u--){var m=this.others[u],v={row:m.row,column:m.column+o};this.doc.insertMergedLines(v,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var m=this.others[u],v={row:m.row,column:m.column+o};this.doc.remove(new f(v.row,v.column,v.row,v.column-a))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var c=this.others.length;c--;)this.others[c].onChange(s);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var s=this,c=this.session,a=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new f(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var l=this.others.length;l--;)a(this.others[l],this.othersClass)}},p.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))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var 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)}},p}();w.implement(h.prototype,y),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var f=t("../lib/event"),y=t("../lib/useragent");function w(p,s){return p.row==s.row&&p.column==s.column}function h(p){var s=p.domEvent,c=s.altKey,a=s.shiftKey,l=s.ctrlKey,o=p.getAccelKey(),u=p.getButton();if(l&&y.isMac&&(u=s.button),p.editor.inMultiSelectMode&&u==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!l&&!c&&!o){u===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(u===0){var m=p.editor,v=m.selection,b=m.inMultiSelectMode,R=p.getDocumentPosition(),$=v.getCursor(),C=p.inSelection()||v.isEmpty()&&w(R,$),x=p.x,T=p.y,E=function(q){x=q.clientX,T=q.clientY},L=m.session,I=m.renderer.pixelToScreenCoordinates(x,T),N=I,_;if(m.$mouseHandler.$enableJumpToDef)l&&c||o&&c?_=a?"block":"add":c&&m.$blockSelectEnabled&&(_="block");else if(o&&!c){if(_="add",!b&&a)return}else c&&m.$blockSelectEnabled&&(_="block");if(_&&y.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),_=="add"){if(!b&&C)return;if(!b){var A=v.toOrientedRange();m.addSelectionMarker(A)}var k=v.rangeList.rangeAtPoint(R);m.inVirtualSelectionMode=!0,a&&(k=null,A=v.ranges[0]||A,m.removeSelectionMarker(A)),m.once("mouseup",function(){var q=v.toOrientedRange();k&&q.isEmpty()&&w(k.cursor,q.cursor)?v.substractPoint(q.cursor):(a?v.substractPoint(A.cursor):A&&(m.removeSelectionMarker(A),v.addRange(A)),v.addRange(q)),m.inVirtualSelectionMode=!1})}else if(_=="block"){p.stop(),m.inVirtualSelectionMode=!0;var M,O=[],F=function(){var q=m.renderer.pixelToScreenCoordinates(x,T),J=L.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(J,v.lead)||(N=q,m.selection.moveToPosition(J),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(O),O=v.rectangularRangeBlock(N,I),m.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=m.$mouseHandler.$clickSelection.clone()),O.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};b&&!o?v.toSingleRange():!b&&o&&(M=v.toOrientedRange(),m.addSelectionMarker(M)),a?I=L.documentToScreenPosition(v.lead):v.moveToPosition(R),N={row:-1,column:-1};var P=function(q){F(),clearInterval(V),m.removeSelectionMarkers(O),O.length||(O=[v.toOrientedRange()]),M&&(m.removeSelectionMarker(M),v.toSingleRange(M));for(var J=0;J<O.length;J++)v.addRange(O[J]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},j=F;f.capture(m.container,E,P);var V=setInterval(function(){j()},20);return p.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,r,d){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(y){y.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(y){y.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(y){y.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(y){y.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(y){y.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(y){y.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(y){y.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(y){y.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(y){y.multiSelect.rangeCount>1?y.multiSelect.joinSelections():y.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(y){y.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(y){y.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(y){y.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(y){y.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(y){return y&&y.inMultiSelectMode}}];var f=t("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new f(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,d){var f=t("./range_list").RangeList,y=t("./range").Range,w=t("./selection").Selection,h=t("./mouse/multi_select_handler").onMouseDown,p=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($,C,x){return l.$options.wrap=!0,l.$options.needle=C,l.$options.backwards=x==-1,l.find($)}var u=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,C){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var x=this.toOrientedRange();if(this.rangeList.add(x),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),C||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(x),this.$onAddRange(x)}$.cursor||($.cursor=$.end);var T=this.rangeList.add($);return this.$onAddRange($),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)),C||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),$&&this.fromOrientedRange($)},this.substractPoint=function($){var C=this.rangeList.substractPoint($);if(C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var C=this.rangeList.ranges.pop();$.push(C),this.rangeCount=0}for(var x=$.length;x--;){var T=this.ranges.indexOf($[x]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new f,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],C=[],x=0;x<$.length;x++){var T=$[x],E=T.start.row,L=T.end.row;if(E===L)C.push(T.clone());else{for(C.push(new y(E,T.start.column,E,this.session.getLine(E).length));++E<L;)C.push(this.getLineRange(E,!0));C.push(new y(L,0,L,T.end.column))}x==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var x=C.length;x--;)this.addRange(C[x])},this.joinSelections=function(){var $=this.rangeList.ranges,C=$[$.length-1],x=y.fromPoints($[0].start,C.end);this.toSingleRange(),this.setSelectionRange(x,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,C=$[$.length-1],x=y.fromPoints($[0].start,C.end);this.toSingleRange(),this.setSelectionRange(x,C.cursor==C.start)}else{var T=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(T,E);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,C,x){var T=[],E=$.column<C.column;if(E)var L=$.column,I=C.column,N=$.offsetX,_=C.offsetX;else var L=C.column,I=$.column,N=C.offsetX,_=$.offsetX;var A=$.row<C.row;if(A)var k=$.row,M=C.row;else var k=C.row,M=$.row;L<0&&(L=0),k<0&&(k=0),k==M&&(x=!0);for(var O,F=k;F<=M;F++){var P=y.fromPoints(this.session.screenToDocumentPosition(F,L,N),this.session.screenToDocumentPosition(F,I,_));if(P.isEmpty()){if(O&&v(P.end,O))break;O=P.end}P.cursor=E?P.start:P.end,T.push(P)}if(A&&T.reverse(),!x){for(var j=T.length-1;T[j].isEmpty()&&j>0;)j--;if(j>0)for(var V=0;T[V].isEmpty();)V++;for(var q=j;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(w.prototype);var m=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var C=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",C),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var C=this.session.$selectionMarkers.indexOf($);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var C=this.session.$selectionMarkers,x=$.length;x--;){var T=$[x];if(T.marker){this.session.removeMarker(T.marker);var E=C.indexOf(T);E!=-1&&C.splice(E,1)}}this.session.selectionMarkerCount=C.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){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($){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($){var C=$.command,x=$.editor;if(x.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?T=x.forEachSelection(C,$.args):C.multiSelectAction=="forEachLine"?T=x.forEachSelection(C,$.args,!0):C.multiSelectAction=="single"?(x.exitMultiSelectMode(),T=C.exec(x,$.args||{})):T=C.multiSelectAction(x,$.args||{});else{var T=C.exec(x,$.args||{});x.multiSelect.addRange(x.multiSelect.toOrientedRange()),x.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function($,C,x){if(!this.inVirtualSelectionMode){var T=x&&x.keepOrder,E=x==!0||x&&x.$byLines,L=this.session,I=this.selection,N=I.rangeList,_=(T?I:N).ranges,A;if(!_.length)return $.exec?$.exec(this,C||{}):$(this,C||{});var k=I._eventRegistry;I._eventRegistry={};var M=new w(L);this.inVirtualSelectionMode=!0;for(var O=_.length;O--;){if(E)for(;O>0&&_[O].start.row==_[O-1].end.row;)O--;M.fromOrientedRange(_[O]),M.index=O,this.selection=L.selection=M;var F=$.exec?$.exec(this,C||{}):$(this,C||{});!A&&F!==void 0&&(A=F),M.toOrientedRange(_[O])}M.detach(),this.selection=L.selection=I,this.inVirtualSelectionMode=!1,I._eventRegistry=k,I.mergeOverlappingRanges(),I.ranges[0]&&I.fromOrientedRange(I.ranges[0]);var P=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),P&&P.from==P.to&&this.renderer.animateScrolling(P.from),A}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,x=[],T=0;T<C.length;T++)x.push(this.session.getTextRange(C[T]));var E=this.session.getDocument().getNewLineCharacter();$=x.join(E),$.length==(x.length-1)*E.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var x=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var T=C==this.multiSelect.anchor?x.cursor==x.start?x.end:x.start:x.cursor;T.row!=C.row||this.session.$clipPositionToDocument(T.row,T.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,C,x){if(C=C||{},C.needle=$||C.needle,C.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(T)}this.$search.set(C);var E=this.$search.findAll(this.session);if(!E.length)return 0;var L=this.multiSelect;x||L.toSingleRange(E[0]);for(var I=E.length;I--;)L.addRange(E[I],!0);return T&&L.rangeList.rangeAtPoint(T.start)&&L.addRange(T,!0),E.length},this.selectMoreLines=function($,C){var x=this.selection.toOrientedRange(),T=x.cursor==x.end,E=this.session.documentToScreenPosition(x.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(E.row+$,E.column);if(x.isEmpty())var N=L;else var I=this.session.documentToScreenPosition(T?x.end:x.start),N=this.session.screenToDocumentPosition(I.row+$,I.column);if(T){var _=y.fromPoints(L,N);_.cursor=_.start}else{var _=y.fromPoints(N,L);_.cursor=_.end}if(_.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(x);else if(C)var A=x.cursor;this.selection.addRange(_),A&&this.selection.substractPoint(A)},this.transposeSelections=function($){for(var C=this.session,x=C.multiSelect,T=x.ranges,E=T.length;E--;){var L=T[E];if(L.isEmpty()){var I=C.getWordRange(L.start.row,L.start.column);L.start.row=I.start.row,L.start.column=I.start.column,L.end.row=I.end.row,L.end.column=I.end.column}}x.mergeOverlappingRanges();for(var N=[],E=T.length;E--;){var L=T[E];N.unshift(C.getTextRange(L))}$<0?N.unshift(N.pop()):N.push(N.shift());for(var E=T.length;E--;){var L=T[E],_=L.clone();C.replace(L,N[E]),L.start.row=_.start.row,L.start.column=_.start.column}x.fromOrientedRange(x.ranges[0])},this.selectMore=function($,C,x){var T=this.session,E=T.multiSelect,L=E.toOrientedRange();if(!(L.isEmpty()&&(L=T.getWordRange(L.start.row,L.start.column),L.cursor=$==-1?L.start:L.end,this.multiSelect.addRange(L),x))){var I=T.getTextRange(L),N=o(T,I,$);N&&(N.cursor=$==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var $=this.session,C=$.multiSelect,x=C.ranges,T=-1,E=x.filter(function(j){if(j.cursor.row==T)return!0;T=j.cursor.row});if(!x.length||E.length==x.length-1){var L=this.selection.getRange(),I=L.start.row,N=L.end.row,_=I==N;if(_){var A=this.session.getLength(),k;do k=this.session.getLine(N);while(/[=:]/.test(k)&&++N<A);do k=this.session.getLine(I);while(/[=:]/.test(k)&&--I>0);I<0&&(I=0),N>=A&&(N=A-1)}var M=this.session.removeFullLines(I,N);M=this.$reAlignText(M,_),this.session.insert({row:I,column:0},M.join(`
|
936
|
+
`)+`
|
937
|
+
`),_||(L.start.column=0,L.end.column=M[M.length-1].length),this.selection.setRange(L)}else{E.forEach(function(j){C.substractPoint(j.cursor)});var O=0,F=1/0,P=x.map(function(j){var V=j.cursor,q=$.getLine(V.row),J=q.substr(V.column).search(/\S/g);return J==-1&&(J=0),V.column>O&&(O=V.column),J<F&&(F=J),J});x.forEach(function(j,V){var q=j.cursor,J=O-q.column,G=P[V]-F;J>G?$.insert(q,s.stringRepeat(" ",J-G)):$.remove(new y(q.row,q.column,q.row,q.column-J+G)),j.start.column=j.end.column=O,j.start.row=j.end.row=q.row,j.cursor=j.end}),C.fromOrientedRange(x[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,C){var x=!0,T=!0,E,L,I;return $.map(function(M){var O=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,L=O[2].length,I=O[3].length,O):(E+L+I!=O[1].length+O[2].length+O[3].length&&(T=!1),E!=O[1].length&&(x=!1),E>O[1].length&&(E=O[1].length),L<O[2].length&&(L=O[2].length),I>O[3].length&&(I=O[3].length),O):[M]}).map(C?_:x?T?A:_:k);function N(M){return s.stringRepeat(" ",M)}function _(M){return M[2]?N(E)+M[2]+N(L-M[2].length+I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function A(M){return M[2]?N(E+L-M[2].length)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function k(M){return M[2]?N(E)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(m.prototype);function v($,C){return $.row==C.row&&$.column==C.column}r.onSessionChange=function($){var C=$.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.multiSelect;var x=$.oldSession;x&&(x.multiSelect.off("addRange",this.$onAddRange),x.multiSelect.off("removeRange",this.$onRemoveRange),x.multiSelect.off("multiSelect",this.$onMultiSelect),x.multiSelect.off("singleSelect",this.$onSingleSelect),x.multiSelect.lead.off("change",this.$checkMultiselectChange),x.multiSelect.anchor.off("change",this.$checkMultiselectChange)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",h),$.commands.addCommands(c.defaultCommands),R($))}function R($){if(!$.textInput)return;var C=$.textInput.getElement(),x=!1;p.addListener(C,"keydown",function(E){var L=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);$.$blockSelectEnabled&&L?x||($.renderer.setMouseCursor("crosshair"),x=!0):x&&T()},$),p.addListener(C,"keyup",T,$),p.addListener(C,"blur",T,$);function T(E){x&&($.renderer.setMouseCursor(""),x=!1)}}r.MultiSelect=b,t("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){b(this),$?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,r,d){var f=t("../../range").Range,y=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,p){var s=w.getLine(p);return this.foldingStartMarker.test(s)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,h,p){return null},this.indentationBlock=function(w,h,p){var s=/\S/,c=w.getLine(h),a=c.search(s);if(a!=-1){for(var l=p||c.length,o=w.getLength(),u=h,m=h;++h<o;){var v=w.getLine(h).search(s);if(v!=-1){if(v<=a){var b=w.getTokenAt(h,0);if(!b||b.type!=="string")break}m=h}}if(m>u){var R=w.getLine(m).length;return new f(u,l,m,R)}}},this.openingBracketBlock=function(w,h,p,s,c){var a={row:p,column:s+1},l=w.$findClosingBracket(h,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),f.fromPoints(a,l)}},this.closingBracketBlock=function(w,h,p,s,c){var a={row:p,column:s},l=w.$findOpeningBracket(h,a);if(l)return l.column++,a.column--,f.fromPoints(l,a)}}).call(y.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,r,d){var f=t("../lib/dom"),y=t("../range").Range,w=t("../config").nls;function h(s,c,a){for(var l=0,o=s.length-1;l<=o;){var u=l+o>>1,m=a(c,s[u]);if(m>0)l=u+1;else if(m<0)o=u-1;else return u}return-(l+1)}function p(s,c,a){var l=s.getAnnotations().sort(y.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},y.comparePoints);o<0&&(o=-o-1),o>=l.length?o=a>0?0:l.length-1:o===0&&a<0&&(o=l.length-1);var u=l[o];if(!(!u||!a)){if(u.row===c){do u=l[o+=a];while(u&&u.row===c);if(!u)return l.slice()}var m=[];c=u.row;do m[a<0?"unshift":"push"](u),u=l[o+=a];while(u&&u.row==c);return m.length&&m}}}r.showErrorMarker=function(s,c){var a=s.session,l=s.getCursorPosition(),o=l.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(E){return E.type=="errorMarker"})[0];u?u.destroy():o-=c;var m=p(a,o,c),v;if(m){var b=m[0];l.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,l.row=b.row,v=s.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;v={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(l.row),s.selection.moveToPosition(l);var R={row:l.row,fixedWidth:!0,coverGutter:!0,el:f.createElement("div"),type:"errorMarker"},$=R.el.appendChild(f.createElement("div")),C=R.el.appendChild(f.createElement("div"));C.className="error_widget_arrow "+v.className;var x=s.renderer.$cursorLayer.getPixelPosition(l).left;C.style.left=x+s.renderer.gutterWidth-5+"px",R.el.className="error_widget_wrapper",$.className="error_widget "+v.className,v.displayText.forEach(function(E,L){$.appendChild(f.createTextNode(E)),L<v.displayText.length-1&&$.appendChild(f.createElement("br"))}),$.appendChild(f.createElement("div"));var T=function(E,L,I){if(L===0&&(I==="esc"||I==="return"))return R.destroy(),{command:"null"}};R.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(R),s.off("changeSelection",R.destroy),s.off("changeSession",R.destroy),s.off("mouseup",R.destroy),s.off("change",R.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",R.destroy),s.on("changeSession",R.destroy),s.on("mouseup",R.destroy),s.on("change",R.destroy),s.session.widgetManager.addLineWidget(R),R.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:R.el.offsetHeight})},f.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,d){t("./loader_build")(r);var f=t("./lib/dom"),y=t("./range").Range,w=t("./editor").Editor,h=t("./edit_session").EditSession,p=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 u="";if(a&&/input|textarea/i.test(a.tagName)){var m=a;u=m.value,a=f.createElement("pre"),m.parentNode.replaceChild(a,m)}else a&&(u=a.textContent,a.innerHTML="");var v=r.createEditSession(u),b=new w(new s(a),v,l),R={document:v,editor:b,onResize:b.resize.bind(b,null)};return m&&(R.textarea=m),b.on("destroy",function(){R.editor.container.env=null}),b.container.env=b.env=R,b},r.createEditSession=function(a,l){var o=new h(a,l);return o.setUndoManager(new p),o},r.Range=y,r.Editor=w,r.EditSession=h,r.UndoManager=p,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 d in t)t.hasOwnProperty(d)&&(r.ace[d]=t[d]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(Ff)),Ff.exports}var Fa=dn("p",Sb()),Pf={exports:{}},Hf;function $b(){return Hf||(Hf=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,d){var f=t("../lib/oop"),y=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 h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},p=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},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"},u=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},m=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",b="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",R="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",$="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",C=this.$keywords=this.createKeywordMapper({keyword:b,"constant.language":R,"variable.language":$,"support.function":v,"invalid.deprecated":"debugger"},"identifier"),x=`\\\\(?: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:x},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:x},{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(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+x+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,l,w,h,o,p,s,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:C,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,L,I){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",_=E.split(this.splitRegex);return I.push(N,_[3]),[{type:"constant",value:_[1]},{type:"string",value:_[2]},{type:"support.class",value:_[3]},{type:"string",value:_[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,L,I){return E===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,L,I){return E===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,L,I){return this.next="",E=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.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(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"string"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,L,I){return I.length&&E[0]===T[I[0]]?(I.shift(),this.next=I.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()};f.inherits(m,y),r.RubyHighlightRules=m}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var f=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var p=w.getLine(h),s=p.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(t,r,d){var f=t("../../lib/oop"),y=t("./fold_mode").FoldMode,w=t("../../range").Range,h=t("../../token_iterator").TokenIterator,p=r.FoldMode=function(){};f.inherits(p,y),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,c,a){var l=s.getLine(a),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var m=l.match(this.foldingStartMarker);if(m[1]){if((m[1]=="if"||m[1]=="else"||m[1]=="while"||m[1]=="until"||m[1]=="unless")&&(m[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||m[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(s.getTokenAt(a,m.index+2).type==="keyword")return"start"}else if(!m[3]||s.getTokenAt(a,m.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var m=l.match(this.foldingStopMarker);if(m[3]==="end"){if(s.getTokenAt(a,m.index+1).type==="keyword")return"end"}else if(!m[1]||s.getTokenAt(a,m.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 h(s,c,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var m=u.value,v=s.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);if(!b.test(v))return;var R=this.indentKeywords[m];break;case"when":if(/\sthen\s/.test(v))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");if(!b.test(v))return;var R=1;break;default:var R=this.indentKeywords[m]}var $=[m];if(R){var C=R===-1?s.getLine(c-1).length:s.getLine(c).length,x=c,T=[];if(T.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==1){if(C=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var L=R*this.indentKeywords[u.value];switch(v=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var I=o.$tokenIndex-1;I>=0;I--){var N=o.$rowTokens[I];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){L=0;break}}break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");(!b.test(v)||m=="case")&&(L=0,E=!0);break;case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);b.test(v)||(L=0,E=!0);break;case"when":(/\sthen\s/.test(v)||m=="case")&&(L=0,E=!0)}if(L>0)$.unshift(u.value);else if(L<=0&&E===!1){if($.shift(),!$.length&&((m=="while"||m=="until"||m=="for")&&u.value!="do"||u.value=="do"&&R==-1&&L!=0||u.value!="do"))break;L===0&&$.unshift(u.value)}}}if(!u)return null;if(l)return T.push(o.getCurrentTokenRange()),T;var c=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var _=6;else var _=s.getLine(c).length;return new w(c,_,x-1,C)}return new w(x,C,c-1,s.getLine(c-1).length)}}}}).call(p.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(t,r,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./ruby_highlight_rules").RubyHighlightRules,h=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../range").Range,s=t("./folding/ruby").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};f.inherits(c,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),v=m.tokens;if(v.length&&v[v.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[]\s*$/),R=l.match(/^\s*(class|def|module)\s.*$/),$=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),C=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||R||$||C)&&(u+=o)}return u},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 u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var m=this.$getIndent(u),v=l.getLine(o-1),b=this.$getIndent(v),R=l.getTabString();b.length<=m.length&&m.slice(-R.length)==R&&l.remove(new p(o,m.length-R.length,o,m.length))},this.getMatching=function(a,l,o){if(l==null){var u=a.selection.lead;o=u.column,l=u.row}var m=a.getTokenAt(l,o);if(m&&m.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)})}()}(Pf)),Pf.exports}$b();var zf={exports:{}},Bf;function Tb(){return Bf||(Bf=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,d){var f=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",p="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":p,keyword:h},"identifier"),a="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",m="(?:(?:[1-9]\\d*)|(?:0))",v="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",$="(?:"+m+"|"+v+"|"+b+"|"+R+")",C="(?:[eE][+-]?\\d+)",x="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+x+")|(?:"+T+"\\.))",L="(?:(?:"+E+"|"+T+")"+C+")",I="(?:"+L+"|"+E+")",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:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:$+"[lL]\\b"},{token:"constant.numeric",regex:$+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.inherits(w,y),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,d){var f=t("../../lib/oop"),y=t("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};f.inherits(w,y),(function(){this.getFoldWidgetRange=function(h,p,s){var c=h.getLine(s),a=c.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(h,a[1],s,a.index):a[2]?this.indentationBlock(h,s,a.index+a[2].length):this.indentationBlock(h,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,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./python_highlight_rules").PythonHighlightRules,h=t("./folding/pythonic").FoldMode,p=t("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(s,y),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),v=m.tokens;if(v.length&&v[v.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};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 u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new p(o,u.length-m.length,o,u.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)})}()}(zf)),zf.exports}Tb();var jf={exports:{}},Uf;function Ib(){return Uf||(Uf=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,d){var f=t("../lib/oop"),y=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"}]}};f.inherits(w,y),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var f=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var p=w.getLine(h),s=p.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){var f=t("../../lib/oop"),y=t("../../range").Range,w=t("./fold_mode").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};f.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,s,c){var a=p.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(p,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(p,s,c,a){var l=p.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(p,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(p,o[1],c,u);var m=p.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(p,c):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],c,u):p.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(p,s){var c=p.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,m=p.getLength();++s<m;){c=p.getLine(s);var v=c.search(/\S/);if(v!==-1){if(a>v)break;var b=this.getFoldWidgetRange(p,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==v)break}u=s}}return new y(l,o,u,p.getLine(u).length)},this.getCommentRegionBlock=function(p,s,c){for(var a=s.search(/\s*$/),l=p.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){s=p.getLine(c);var v=u.exec(s);if(v&&(v[1]?m--:m++,!m))break}var b=c;if(b>o)return new y(o,a,b,s.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(t,r,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./json_highlight_rules").JsonHighlightRules,h=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("./folding/cstyle").FoldMode,s=t("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new p};f.inherits(c,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l);if(a=="start"){var m=l.match(/^.*[\{\(\[]\s*$/);m&&(u+=o)}return u},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)})}()}(jf)),jf.exports}Ib();var Vf={exports:{}},qf;function Eb(){return qf||(qf=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,d){var f=t("../lib/oop");t("../lib/lang");var y=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",h=r.supportFunction="rgb|rgba|url|attr|counter|counters",p=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",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",u=function(){var m=this.createKeywordMapper({"support.function":h,"support.constant":p,"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:m,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()};f.inherits(u,y),r.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var f=t("../lib/oop"),y=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()};f.inherits(w,y),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(t,r,d){function f(){var a=s.replace("\\d","\\d\\-"),l={onMatch:function(u,m,v){var b=u.charAt(1)=="/"?2:1;return b==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):b==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(b==1?"":"end-")+"tag-open.xml",value:u.slice(0,b)},{type:"meta.tag.tag-name.xml",value:u.substr(b)}]},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(u,m,v){return m==v[0]&&v.shift(),u.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:u}]},nextState:"jsx"},o,y("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 y(a){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=t("../lib/oop"),h=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,p=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"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",m="\\\\(?: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*)(\\*?)",b={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),y("no_regex"),b,{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:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex: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:[h.getStartRule("doc-start"),y("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[y("function_arguments"),{token:"variable.parameter",regex: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:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,$,C){if(this.next=R=="{"?this.nextState:"",R=="{"&&C.length)C.unshift("start",$);else if(R=="}"&&C.length&&(C.shift(),this.next=C.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:m},{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)&&f.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(c,p),r.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var f=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,w=function(h){var p="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+p+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:p},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+p+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+p+":)?"+p+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:p},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,p,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:p+"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(h,p,[{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(y.prototype),f.inherits(w,y),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,d){var f=t("../lib/oop"),y=t("../lib/lang"),w=t("./css_highlight_rules").CssHighlightRules,h=t("./javascript_highlight_rules").JavaScriptHighlightRules,p=t("./xml_highlight_rules").XmlHighlightRules,s=y.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){p.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(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 h({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};f.inherits(c,p),r.HtmlHighlightRules=c}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(t,r,d){var f=t("../config").$modes,y=t("../lib/oop"),w=t("../lib/lang"),h=t("./text_highlight_rules").TextHighlightRules,p=t("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},c=function(){p.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,m,v){var b=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(b[3])[0];return f[R]||(R=""),m.unshift("githubblock",[],[b[1],b[2],R],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,m,v){var b=m[1],R=m[2][0],$=m[2][1],C=m[2][2],x=/^(\s*)(`+|~+)\s*$/.exec(o);if(x&&x[1].length<R.length+3&&x[2].length>=$.length&&x[2][0]==$[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",C&&f[C]){var T=f[C].getTokenizer().getLineTokens(o,b.slice(0));return m[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()};y.inherits(c,h),r.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,r,d){var f=t("../../lib/oop"),y=t("./fold_mode").FoldMode,w=t("../../range").Range,h=r.FoldMode=function(){};f.inherits(h,y),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(p,s,c){var a=p.getLine(c);return this.foldingStartMarker.test(a)?a[0]=="`"&&p.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(p,s,c){function a(E){return R=p.getTokens(E)[0],R&&R.type.lastIndexOf($,0)===0}function l(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=p.getLine(c),u=o.length,m=p.getLength(),v=c,b=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(p.bgTokenizer.getState(c)!=="start"){for(;++c<m&&(o=p.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(v,u,c,0)}for(;c-- >0&&(o=p.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(c,o.length,v,0)}var R,$="markup.heading";if(a(c)){for(var C=l();++c<m;)if(a(c)){var x=l();if(x>=C)break}if(b=c-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),b>v)for(;b>v&&/^\s*$/.test(p.getLine(b));)b--;if(b>v){var T=p.getLine(b).length;return new w(v,u,b,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var f=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var p=w.getLine(h),s=p.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(t,r,d){function f(s,c){return s&&s.type.lastIndexOf(c+".xml")>-1}var y=t("../../lib/oop"),w=t("../behaviour").Behaviour,h=t("../../token_iterator").TokenIterator,p=function(){this.add("string_dquotes","insertion",function(s,c,a,l,o){if(o=='"'||o=="'"){var u=o,m=l.doc.getTextRange(a.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&a.getWrapBehavioursEnabled())return{text:u+m+u,selection:!1};var v=a.getCursorPosition(),b=l.doc.getLine(v.row),R=b.substring(v.column,v.column+1),$=new h(l,v.row,v.column),C=$.getCurrentToken();if(R==u&&(f(C,"attribute-value")||f(C,"string")))return{text:"",selection:[1,1]};if(C||(C=$.stepBackward()),!C)return;for(;f(C,"tag-whitespace")||f(C,"whitespace");)C=$.stepBackward();var x=!R||R.match(/\s/);if(f(C,"attribute-equals")&&(x||R==">")||f(C,"decl-attribute-equals")&&(x||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,c,a,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var m=l.doc.getLine(o.start.row),v=m.substring(o.start.column+1,o.start.column+2);if(v==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,c,a,l,o){if(o==">"){var u=a.getSelectionRange().start,m=new h(l,u.row,u.column),v=m.getCurrentToken()||m.stepBackward();if(!v||!(f(v,"tag-name")||f(v,"tag-whitespace")||f(v,"attribute-name")||f(v,"attribute-equals")||f(v,"attribute-value"))||f(v,"reference.attribute-value"))return;if(f(v,"attribute-value")){var b=m.getCurrentTokenColumn()+v.value.length;if(u.column<b)return;if(u.column==b){var R=m.stepForward();if(R&&f(R,"attribute-value"))return;m.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!f(v,"tag-name");)if(v=m.stepBackward(),v.value=="<"){v=m.stepForward();break}var $=m.getCurrentTokenRow(),C=m.getCurrentTokenColumn();if(f(m.stepBackward(),"end-tag-open"))return;var x=v.value;return $==u.row&&(x=x.substring(0,u.column-C)),this.voidElements&&this.voidElements.hasOwnProperty(x.toLowerCase())?void 0:{text:"></"+x+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,c,a,l,o){if(o==`
|
973
|
+
`){var u=a.getCursorPosition(),m=l.getLine(u.row),v=new h(l,u.row,u.column),b=v.getCurrentToken();if(f(b,"")&&b.type.indexOf("tag-close")!==-1){if(b.value=="/>")return;for(;b&&b.type.indexOf("tag-name")===-1;)b=v.stepBackward();if(!b)return;var R=b.value,$=v.getCurrentTokenRow();if(b=v.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var C=l.getTokenAt(u.row,u.column+1),m=l.getLine($),x=this.$getIndent(m),T=x+l.getTabString();return C&&C.value==="</"?{text:`
|
974
|
+
`+T+`
|
975
|
+
`+x,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
+
`+T}}}}})};y.inherits(p,w),r.XmlBehaviour=p}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(t,r,d){var f=t("../../lib/oop"),y=t("../../token_iterator").TokenIterator,w=t("../behaviour/cstyle").CstyleBehaviour,h=t("../behaviour/xml").XmlBehaviour,p=function(){var s=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(w),this.add("autoclosing-fragment","insertion",function(c,a,l,o,u){if(u==">"){var m=l.getSelectionRange().start,v=new y(o,m.row,m.column),b=v.getCurrentToken()||v.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};f.inherits(p,w),r.JavaScriptBehaviour=p}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){function f(c,a){return c.type.lastIndexOf(a+".xml")>-1}var y=t("../../lib/oop"),w=t("../../range").Range,h=t("./fold_mode").FoldMode,p=r.FoldMode=function(c,a){h.call(this),this.voidElements=c||{},this.optionalEndTags=y.mixin({},this.voidElements),a&&y.mixin(this.optionalEndTags,a)};y.inherits(p,h);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,u=0;u<l.length;u++){var m=l[u];if(f(m,"tag-open")){if(o.end.column=o.start.column+m.value.length,o.closing=f(m,"end-tag-open"),m=l[++u],!m)return null;if(o.tagName=m.value,m.value===""){if(m=l[++u],!m)return null;o.tagName=m.value}for(o.end.column+=m.value.length,u++;u<l.length;u++)if(m=l[u],o.end.column+=m.value.length,f(m,"tag-close")){o.selfClosing=m.value=="/>";break}return o}if(f(m,"tag-close"))return o.selfClosing=m.value=="/>",o;o.start.column+=m.value.length}return null},this._findEndTagInLine=function(c,a,l,o){for(var u=c.getTokens(a),m=0,v=0;v<u.length;v++){var b=u[v];if(m+=b.value.length,!(m<o-1)&&f(b,"end-tag-open")&&(b=u[v+1],f(b,"tag-name")&&b.value===""&&(b=u[v+2]),b&&b.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 u=c.getMatchingTags({row:l,column:0});if(u)return new w(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(p.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){var f=t("../../lib/oop"),y=t("../../range").Range,w=t("./fold_mode").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};f.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,s,c){var a=p.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(p,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(p,s,c,a){var l=p.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(p,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(p,o[1],c,u);var m=p.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(p,c):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],c,u):p.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(p,s){var c=p.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,m=p.getLength();++s<m;){c=p.getLine(s);var v=c.search(/\S/);if(v!==-1){if(a>v)break;var b=this.getFoldWidgetRange(p,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==v)break}u=s}}return new y(l,o,u,p.getLine(u).length)},this.getCommentRegionBlock=function(p,s,c){for(var a=s.search(/\s*$/),l=p.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){s=p.getLine(c);var v=u.exec(s);if(v&&(v[1]?m--:m++,!m))break}var b=c;if(b>o)return new y(o,a,b,s.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,d){var f=t("../../lib/oop"),y=t("./xml").FoldMode,w=t("./cstyle").FoldMode,h=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end))),this.xmlFoldMode=new y};f.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,s,c){var a=this.getFoldWidgetBase(p,s,c);return a||this.xmlFoldMode.getFoldWidget(p,s,c)},this.getFoldWidgetRange=function(p,s,c,a){var l=this.getFoldWidgetRangeBase(p,s,c,a);return l||this.xmlFoldMode.getFoldWidgetRange(p,s,c)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(t,r,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./javascript_highlight_rules").JavaScriptHighlightRules,h=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../worker/worker_client").WorkerClient,s=t("./behaviour/javascript").JavaScriptBehaviour,c=t("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new s,this.foldingRules=new c};f.inherits(a,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var m=this.$getIndent(o),v=this.getTokenizer().getLineTokens(o,l),b=v.tokens,R=v.state;if(b.length&&b[b.length-1].type=="comment")return m;if(l=="start"||l=="no_regex"){var $=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);$&&(m+=u)}else if(l=="doc-start"&&(R=="start"||R=="no_regex"))return"";return m},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new p(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,r,d){var f={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},y=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var p=h.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});f.hasOwnProperty(p)||(f[p]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,p,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(p.row).substr(0,p.column),a=/\([^)]*$/.test(c);return a&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(w,h,p,s):this.getPropertyCompletions(w,h,p,s,a)}return[]},this.getPropertyCompletions=function(w,h,p,s,c){c=c||!1;var a=Object.keys(f);return a.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,p,s){var c=h.getLine(p.row).substr(0,p.column),a=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!a)return[];var l=[];return a in f&&typeof f[a]=="object"&&(l=Object.keys(f[a])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(y.prototype),r.CssCompletions=y}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,r,d){var f=t("../../lib/oop");t("../behaviour").Behaviour;var y=t("./cstyle").CstyleBehaviour,w=t("../../token_iterator").TokenIterator,h=function(){this.inherit(y),this.add("colon","insertion",function(p,s,c,a,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new w(a,o.row,o.column),m=u.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=u.stepBackward()),m&&m.type==="support.type"){var v=a.doc.getLine(o.row),b=v.substring(o.column,o.column+1);if(b===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(p,s,c,a,l){var o=a.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),m=new w(a,u.row,u.column),v=m.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=m.stepBackward()),v&&v.type==="support.type"){var b=a.doc.getLine(l.start.row),R=b.substring(l.end.column,l.end.column+1);if(R===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(p,s,c,a,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row),m=u.substring(o.column,o.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(p,s,c,a,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};f.inherits(h,y),r.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(t,r,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./css_highlight_rules").CssHighlightRules,h=t("./matching_brace_outdent").MatchingBraceOutdent,p=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 h,this.$behaviour=new c,this.$completer=new s,this.foldingRules=new a};f.inherits(l,y),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,m){var v=this.$getIndent(u),b=this.getTokenizer().getLineTokens(u,o).tokens;if(b.length&&b[b.length-1].type=="comment")return v;var R=u.match(/^.*\{\s*$/);return R&&(v+=m),v},this.checkOutdent=function(o,u,m){return this.$outdent.checkOutdent(u,m)},this.autoOutdent=function(o,u,m){this.$outdent.autoOutdent(u,m)},this.getCompletions=function(o,u,m,v){return this.$completer.getCompletions(o,u,m,v)},this.createWorker=function(o){var u=new p(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(m){o.setAnnotations(m.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),r.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,d){var f=t("../../lib/oop"),y=t("./fold_mode").FoldMode,w=r.FoldMode=function(h,p){this.defaultMode=h,this.subModes=p};f.inherits(w,y),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var p in this.subModes)if(h.indexOf(p)===0)return this.subModes[p];return null},this.$tryMode=function(h,p,s,c){var a=this.$getMode(h);return a?a.getFoldWidget(p,s,c):""},this.getFoldWidget=function(h,p,s){return this.$tryMode(h.getState(s-1),h,p,s)||this.$tryMode(h.getState(s),h,p,s)||this.defaultMode.getFoldWidget(h,p,s)},this.getFoldWidgetRange=function(h,p,s){var c=this.$getMode(h.getState(s-1));return(!c||!c.getFoldWidget(h,p,s))&&(c=this.$getMode(h.getState(s))),(!c||!c.getFoldWidget(h,p,s))&&(c=this.defaultMode),c.getFoldWidgetRange(h,p,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,d){var f=t("../../lib/oop"),y=t("./mixed").FoldMode,w=t("./xml").FoldMode,h=t("./cstyle").FoldMode,p=r.FoldMode=function(s,c){y.call(this,new w(s,c),{"js-":new h,"css-":new h})};f.inherits(p,y)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,r,d){function f(u,m){return u.type.lastIndexOf(m+".xml")>-1}function y(u,m){for(var v=new h(u,m.row,m.column),b=v.getCurrentToken();b&&!f(b,"tag-name");)b=v.stepBackward();if(b)return b.value}function w(u,m){for(var v=new h(u,m.row,m.column),b=v.getCurrentToken();b&&!f(b,"attribute-name");)b=v.stepBackward();if(b)return b.value}var h=t("../token_iterator").TokenIterator,p=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],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=p.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(u,m,v,b){var R=m.getTokenAt(v.row,v.column);if(!R)return[];if(f(R,"tag-name")||f(R,"tag-open")||f(R,"end-tag-open"))return this.getTagCompletions(u,m,v,b);if(f(R,"tag-whitespace")||f(R,"attribute-name"))return this.getAttributeCompletions(u,m,v,b);if(f(R,"attribute-value"))return this.getAttributeValueCompletions(u,m,v,b);var $=m.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test($)?this.getHTMLEntityCompletions(u,m,v,b):[]},this.getTagCompletions=function(u,m,v,b){return l.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,m,v,b){var R=y(m,v);if(!R)return[];var $=c;return R in a&&($=$.concat(Object.keys(a[R]))),$.map(function(C){return{caption:C,snippet:C+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,m,v,b){var R=y(m,v),$=w(m,v);if(!R)return[];var C=[];return R in a&&$ in a[R]&&typeof a[R][$]=="object"&&(C=Object.keys(a[R][$])),C.map(function(x){return{caption:x,snippet:x,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,m,v,b){var R=["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 R.map(function($){return{caption:$,snippet:$,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,d){var f=t("../lib/oop"),y=t("../lib/lang"),w=t("./text").Mode,h=t("./javascript").Mode,p=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,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(b){this.fragmentContext=b&&b.fragmentContext,this.HighlightRules=s,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":p}),this.foldingRules=new a(this.voidElements,y.arrayToMap(m))};f.inherits(v,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=y.arrayToMap(u),this.getNextLineIndent=function(b,R,$){return this.$getIndent(R)},this.checkOutdent=function(b,R,$){return!1},this.getCompletions=function(b,R,$,C){return this.$completer.getCompletions(b,R,$,C)},this.createWorker=function(b){if(this.constructor==v){var R=new o(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(b.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function($){b.setAnnotations($.data)}),R.on("terminate",function(){b.clearAnnotations()}),R}},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,d){var f=t("../lib/oop"),y=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",h=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",p=function(){var s=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+a+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",m="(?:"+u+"|"+o+")",v="(?:&"+l+")",b="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+b+"(?==))",$="(?:\\$(?:SHLVL|\\$|\\!|\\?))",C="(?:"+b+"\\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(x,T,E){var L=x[2]=="-"?"indentedHeredoc":"heredoc",I=x.split(this.splitRegex);return E.push(L,I[4]),[{type:"constant",value:I[1]},{type:"text",value:I[2]},{type:"string",value:I[3]},{type:"support.class",value:I[4]},{type:"string",value:I[5]}]},rules:{heredoc:[{onMatch:function(x,T,E){return x===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(x,T,E){return x===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(x,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:x}},{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:$},{token:"variable",regex:R},{include:"variables"},{token:"support.function",regex:C},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{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()};f.inherits(p,y),r.ShHighlightRules=p}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(t,r,d){var f=t("../lib/oop"),y=t("./text").Mode,w=t("./sh_highlight_rules").ShHighlightRules,h=t("../range").Range,p=t("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};f.inherits(s,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),v=m.tokens;if(v.length&&v[v.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};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 u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new h(o,u.length-m.length,o,u.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,d){var f=t("../lib/oop"),y=t("../lib/lang"),w=t("./text").Mode,h=t("./xml_highlight_rules").XmlHighlightRules,p=t("./behaviour/xml").XmlBehaviour,s=t("./folding/xml").FoldMode,c=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=h,this.$behaviour=new p,this.foldingRules=new s};f.inherits(a,w),(function(){this.voidElements=y.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(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,d){var f=t("../lib/oop"),y=t("./behaviour/cstyle").CstyleBehaviour,w=t("./text").Mode,h=t("./markdown_highlight_rules").MarkdownHighlightRules,p=t("./folding/markdown").FoldMode,s=function(){this.HighlightRules=h,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 p,this.$behaviour=new y({braces:!0})};f.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 u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+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)})}()}(Vf)),Vf.exports}Eb();var Gf={exports:{}},Yf;function Rb(){return Yf||(Yf=1,function(n,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,r,d){d.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,d){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=t("./twilight-css");var f=t("../lib/dom");f.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){n&&(n.exports=t)})}()}(Gf)),Gf.exports}Rb();var Kf={exports:{}},Qf;function Mb(){return Qf||(Qf=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,d){function f(x){var T=new Date().toLocaleString("en-us",x);return T.length==1?"0"+T:T}var y=t("./lib/dom"),w=t("./lib/oop"),h=t("./lib/event_emitter").EventEmitter,p=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"),u={CURRENT_WORD:function(x){return x.session.getTextRange(x.session.getWordRange())},SELECTION:function(x,T,E){var L=x.session.getTextRange();return E?L.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+E+"$1"):L},CURRENT_LINE:function(x){return x.session.getLine(x.getCursorPosition().row)},PREV_LINE:function(x){return x.session.getLine(x.getCursorPosition().row-1)},LINE_INDEX:function(x){return x.getCursorPosition().row},LINE_NUMBER:function(x){return x.getCursorPosition().row+1},SOFT_TABS:function(x){return x.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(x){return x.session.getTabSize()},CLIPBOARD:function(x){return o.getText&&o.getText()},FILENAME:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0]},FILENAME_BASE:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(x){return this.FILEPATH(x).replace(/[^/\\]*$/,"")},FILEPATH:function(x){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(x){var T=x.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:f.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:f.bind(null,{year:"2-digit"}),CURRENT_MONTH:f.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:f.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:f.bind(null,{month:"short"}),CURRENT_DATE:f.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:f.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:f.bind(null,{weekday:"short"}),CURRENT_HOUR:f.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:f.bind(null,{minute:"2-digit"}),CURRENT_SECOND:f.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var m=function(){function x(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return x.prototype.getTokenizer=function(){return x.$tokenizer||this.createTokenizer()},x.prototype.createTokenizer=function(){function T(I){return I=I.substr(1),/^\d+$/.test(I)?[{tabstopId:parseInt(I,10)}]:[{text:I}]}function E(I){return"(?:[^\\\\"+I+"]|\\\\.)"}var L={regex:"/("+E("/")+"+)/",onMatch:function(I,N,_){var A=_[0];return A.fmtString=!0,A.guard=I.slice(1,-1),A.flag="",""},next:"formatString"};return x.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(I,N,_){var A=I[1];return(A=="}"&&_.length||"`$\\".indexOf(A)!=-1)&&(I=A),[I]}},{regex:/}/,onMatch:function(I,N,_){return[_.length?_.shift():I]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(I,N,_){var A=T(I.substr(1));return _.unshift(A[0]),A},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(I,N,_){var A=I.slice(1,-1).replace(/\\[,|\\]|,/g,function(k){return k.length==2?k[1]:"\0"}).split("\0").map(function(k){return{value:k}});return _[0].choices=A,[A[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(I,N,_){return _.length&&_[0].expectElse?(_[0].expectElse=!1,_[0].ifEnd={elseEnd:_[0]},[_[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(I,N,_){var A=I[1];return A=="}"&&_.length||"`$\\".indexOf(A)!=-1?I=A:A=="n"?I=`
|
1110
|
+
`:A=="t"?I=" ":"ulULE".indexOf(A)!=-1&&(I={changeCase:A,local:A>"a"}),[I]}},{regex:"/\\w*}",onMatch:function(I,N,_){var A=_.shift();return A&&(A.flag=I.slice(1,-1)),this.next=A&&A.tabstopId?"start":"",[A||I]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(I,N,_){return[{text:I.slice(1)}]}},{regex:/\${\w+/,onMatch:function(I,N,_){var A={text:I.slice(2)};return _.unshift(A),[A]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(I,N,_){var A=_.shift();return this.next=A&&A.tabstopId?"start":"",[A||I]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(I,N,_){var A=_[0];return A.formatFunction=I.slice(2,-1),[_.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(I,N,_){I[1]=="+"&&(_[0].ifEnd=_[0]),I[1]=="?"&&(_[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),x.$tokenizer},x.prototype.tokenizeTmSnippet=function(T,E){return this.getTokenizer().getLineTokens(T,E).tokens.map(function(L){return L.value||L})},x.prototype.getVariableValue=function(T,E,L){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var I=this.variables[E];return typeof I=="function"&&(I=this.variables[E](T,E,L)),I??""},x.prototype.tmStrFormat=function(T,E,L){if(!E.fmt)return T;var I=E.flag||"",N=E.guard;N=new RegExp(N,I.replace(/[^gim]/g,""));var _=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,A=this,k=T.replace(N,function(){var M=A.variables.__;A.variables.__=[].slice.call(arguments);for(var O=A.resolveVariables(_,L),F="E",P=0;P<O.length;P++){var j=O[P];if(typeof j=="object")if(O[P]="",j.changeCase&&j.local){var V=O[P+1];V&&typeof V=="string"&&(j.changeCase=="u"?O[P]=V[0].toUpperCase():O[P]=V[0].toLowerCase(),O[P+1]=V.substr(1))}else j.changeCase&&(F=j.changeCase);else F=="U"?O[P]=j.toUpperCase():F=="L"&&(O[P]=j.toLowerCase())}return A.variables.__=M,O.join("")});return k},x.prototype.tmFormatFunction=function(T,E,L){return E.formatFunction=="upcase"?T.toUpperCase():E.formatFunction=="downcase"?T.toLowerCase():T},x.prototype.resolveVariables=function(T,E){function L(F){var P=T.indexOf(F,A+1);P!=-1&&(A=P)}for(var I=[],N="",_=!0,A=0;A<T.length;A++){var k=T[A];if(typeof k=="string"){I.push(k),k==`
|
1111
|
+
`?(_=!0,N=""):_&&(N=/^\t*/.exec(k)[0],_=/\S/.test(k));continue}if(k){if(_=!1,k.fmtString){var M=T.indexOf(k,A+1);M==-1&&(M=T.length),k.fmt=T.slice(A+1,M),A=M}if(k.text){var O=this.getVariableValue(E,k.text,N)+"";k.fmtString&&(O=this.tmStrFormat(O,k,E)),k.formatFunction&&(O=this.tmFormatFunction(O,k,E)),O&&!k.ifEnd?(I.push(O),L(k)):!O&&k.ifEnd&&L(k.ifEnd)}else k.elseEnd?L(k.elseEnd):(k.tabstopId!=null||k.changeCase!=null)&&I.push(k)}}return I},x.prototype.getDisplayTextForSnippet=function(T,E){var L=v.call(this,T,E);return L.text},x.prototype.insertSnippetForSelection=function(T,E,L){L===void 0&&(L={});var I=v.call(this,T,E,L),N=T.getSelectionRange(),_=T.session.replace(N,I.text),A=new b(T),k=T.inVirtualSelectionMode&&T.selection.index;A.addTabstops(I.tabstops,N.start,_,k)},x.prototype.insertSnippet=function(T,E,L){L===void 0&&(L={});var I=this;if(T.inVirtualSelectionMode)return I.insertSnippetForSelection(T,E,L);T.forEachSelection(function(){I.insertSnippetForSelection(T,E,L)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},x.prototype.$getScope=function(T){var E=T.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!T.session.$mode.inlinePhp&&(E="html");var L=T.getCursorPosition(),I=T.session.getState(L.row);typeof I=="object"&&(I=I[0]),I.substring&&(I.substring(0,3)=="js-"?E="javascript":I.substring(0,4)=="css-"?E="css":I.substring(0,4)=="php-"&&(E="php"))}return E},x.prototype.getActiveScopes=function(T){var E=this.$getScope(T),L=[E],I=this.snippetMap;return I[E]&&I[E].includeScopes&&L.push.apply(L,I[E].includeScopes),L.push("_"),L},x.prototype.expandWithTab=function(T,E){var L=this,I=T.forEachSelection(function(){return L.expandSnippetForSelection(T,E)},null,{keepOrder:!0});return I&&T.tabstopManager&&T.tabstopManager.tabNext(),I},x.prototype.expandSnippetForSelection=function(T,E){var L=T.getCursorPosition(),I=T.session.getLine(L.row),N=I.substring(0,L.column),_=I.substr(L.column),A=this.snippetMap,k;return this.getActiveScopes(T).some(function(M){var O=A[M];return O&&(k=this.findMatchingSnippet(O,N,_)),!!k},this),k?(E&&E.dryRun||(T.session.doc.removeInLine(L.row,L.column-k.replaceBefore.length,L.column+k.replaceAfter.length),this.variables.M__=k.matchBefore,this.variables.T__=k.matchAfter,this.insertSnippetForSelection(T,k.content),this.variables.M__=this.variables.T__=null),!0):!1},x.prototype.findMatchingSnippet=function(T,E,L){for(var I=T.length;I--;){var N=T[I];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(L))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(L):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(L)[0]:"",N}},x.prototype.register=function(T,E){function L(M){return M&&!/^\^?\(.*\)\$?$|^\\b$/.test(M)&&(M="(?:"+M+")"),M||""}function I(M,O,F){return M=L(M),O=L(O),M=O+M,M&&M[M.length-1]!="$"&&(M+="$"),new RegExp(M)}function N(M){M.scope||(M.scope=E||"_"),E=M.scope,_[E]||(_[E]=[],A[E]={});var O=A[E];if(M.name){var F=O[M.name];F&&k.unregister(F),O[M.name]=M}_[E].push(M),M.prefix&&(M.tabTrigger=M.prefix),!M.content&&M.body&&(M.content=Array.isArray(M.body)?M.body.join(`
|
1112
|
+
`):M.body),M.tabTrigger&&!M.trigger&&(!M.guard&&/^\w/.test(M.tabTrigger)&&(M.guard="\\b"),M.trigger=p.escapeRegExp(M.tabTrigger)),!(!M.trigger&&!M.guard&&!M.endTrigger&&!M.endGuard)&&(M.startRe=I(M.trigger,M.guard),M.triggerRe=new RegExp(M.trigger),M.endRe=I(M.endTrigger,M.endGuard),M.endTriggerRe=new RegExp(M.endTrigger))}var _=this.snippetMap,A=this.snippetNameMap,k=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(M){N(T[M])}),this._signal("registerSnippets",{scope:E})},x.prototype.unregister=function(T,E){function L(_){var A=N[_.scope||E];if(A&&A[_.name]){delete A[_.name];var k=I[_.scope||E],M=k&&k.indexOf(_);M>=0&&k.splice(M,1)}}var I=this.snippetMap,N=this.snippetNameMap;T.content?L(T):Array.isArray(T)&&T.forEach(L)},x.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var E=[],L={},I=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=I.exec(T);){if(N[1])try{L=JSON.parse(N[1]),E.push(L)}catch{}if(N[4])L.content=N[4].replace(/^\t/gm,""),E.push(L),L={};else{var _=N[2],A=N[3];if(_=="regex"){var k=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=k.exec(A)[1],L.trigger=k.exec(A)[1],L.endTrigger=k.exec(A)[1],L.endGuard=k.exec(A)[1]}else _=="snippet"?(L.tabTrigger=A.match(/^\S*/)[0],L.name||(L.name=A)):_&&(L[_]=A)}}return E},x.prototype.getSnippetByName=function(T,E){var L=this.snippetNameMap,I;return this.getActiveScopes(E).some(function(N){var _=L[N];return _&&(I=_[T]),!!I},this),I},x}();w.implement(m.prototype,h);var v=function(x,T,E){function L(X){for(var ae=[],ye=0;ye<X.length;ye++){var we=X[ye];if(typeof we=="object"){if(O[we.tabstopId])continue;var pe=X.lastIndexOf(we,ye-1);we=ae[pe]||{tabstopId:we.tabstopId}}ae[ye]=we}return ae}E===void 0&&(E={});var I=x.getCursorPosition(),N=x.session.getLine(I.row),_=x.session.getTabString(),A=N.match(/^\s*/)[0];I.column<A.length&&(A=A.slice(0,I.column)),T=T.replace(/\r/g,"");var k=this.tokenizeTmSnippet(T);k=this.resolveVariables(k,x),k=k.map(function(X){return X==`
|
1113
|
+
`&&!E.excludeExtraIndent?X+A:typeof X=="string"?X.replace(/\t/g,_):X});var M=[];k.forEach(function(X,ae){if(typeof X=="object"){var ye=X.tabstopId,we=M[ye];if(we||(we=M[ye]=[],we.index=ye,we.value="",we.parents={}),we.indexOf(X)===-1){X.choices&&!we.choices&&(we.choices=X.choices),we.push(X);var pe=k.indexOf(X,ae+1);if(pe!==-1){var ke=k.slice(ae+1,pe),at=ke.some(function(Pt){return typeof Pt=="object"});at&&!we.value?we.value=ke:ke.length&&(!we.value||typeof we.value!="string")&&(we.value=ke.join(""))}}}}),M.forEach(function(X){X.length=0});for(var O={},F=0;F<k.length;F++){var P=k[F];if(typeof P=="object"){var j=P.tabstopId,V=M[j],q=k.indexOf(P,F+1);if(O[j]){O[j]===P&&(delete O[j],Object.keys(O).forEach(function(X){V.parents[X]=!0}));continue}O[j]=P;var J=V.value;typeof J!="string"?J=L(J):P.fmt&&(J=this.tmStrFormat(J,P,x)),k.splice.apply(k,[F+1,Math.max(0,q-F)].concat(J,P)),V.indexOf(P)===-1&&V.push(P)}}var G=0,Z=0,re="";return k.forEach(function(X){if(typeof X=="string"){var ae=X.split(`
|
1114
|
+
`);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=X.length,re+=X}else X&&(X.start?X.end={row:G,column:Z}:X.start={row:G,column:Z})}),{text:re,tabstops:M,tokens:k}},b=function(){function x(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=p.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return x.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)},x.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},x.prototype.onChange=function(T){for(var E=T.action[0]=="r",L=this.selectedTabstop||{},I=L.parents||{},N=this.tabstops.slice(),_=0;_<N.length;_++){var A=N[_],k=A==L||I[A.index];if(A.rangeList.$bias=k?0:1,T.action=="remove"&&A!==L){var M=A.parents&&A.parents[L.index],O=A.rangeList.pointIndex(T.start,M);O=O<0?-O-1:O+1;var F=A.rangeList.pointIndex(T.end,M);F=F<0?-F-1:F-1;for(var P=A.rangeList.ranges.slice(O,F),j=0;j<P.length;j++)this.removeRange(P[j])}A.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},x.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var E=this.session,L=E.getTextRange(T.firstNonLinked),I=0;I<T.length;I++){var N=T[I];if(N.linked){var _=N.original,A=r.snippetManager.tmStrFormat(L,_,this.editor);E.replace(N,A)}}this.$inChange=!1}},x.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},x.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,E=this.editor.selection.anchor,L=this.editor.selection.isEmpty(),I=0;I<this.ranges.length;I++)if(!this.ranges[I].linked){var N=this.ranges[I].contains(T.row,T.column),_=L||this.ranges[I].contains(E.row,E.column);if(N&&_)return}this.detach()}},x.prototype.onChangeSession=function(){this.detach()},x.prototype.tabNext=function(T){var E=this.tabstops.length,L=this.index+(T||1);L=Math.min(Math.max(L,1),E),L==E&&(L=0),this.selectTabstop(L),this.updateTabstopMarkers(),L===0&&this.detach()},x.prototype.selectTabstop=function(T){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=T,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var L=E.firstNonLinked||E;if(E.choices&&(L.cursor=L.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(L);else{var I=this.editor.multiSelect;I.toSingleRange(L);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||I.addRange(E[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},x.prototype.addTabstops=function(T,E,L){var I=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(L,L);$(N.start,E),$(N.end,E),T[0]=[N],T[0].index=0}var _=this.index,A=[_+1,0],k=this.ranges,M=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var P=this.$openTabstops[F]||O;P.snippetId=M;for(var j=0;j<O.length;j++){var V=O[j],q=s.fromPoints(V.start,V.end||V.start);R(q.start,E),R(q.end,E),q.original=V,q.tabstop=P,k.push(q),P!=O?P.unshift(q):P[j]=q,V.fmtString||P.firstNonLinked&&I?(q.linked=!0,P.hasLinkedRanges=!0):P.firstNonLinked||(P.firstNonLinked=q)}P.firstNonLinked||(P.hasLinkedRanges=!1),P===O&&(A.push(P),this.$openTabstops[F]=P),this.addTabstopMarkers(P),P.rangeList=P.rangeList||new c,P.rangeList.$bias=0,P.rangeList.addList(P)},this),A.length>2&&(this.tabstops.length&&A.push(A.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,A))},x.prototype.addTabstopMarkers=function(T){var E=this.session;T.forEach(function(L){L.markerId||(L.markerId=E.addMarker(L,"ace_snippet-marker","text"))})},x.prototype.removeTabstopMarkers=function(T){var E=this.session;T.forEach(function(L){E.removeMarker(L.markerId),L.markerId=null})},x.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(E){E.snippetId===T?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},x.prototype.removeRange=function(T){var E=T.tabstop.indexOf(T);E!=-1&&T.tabstop.splice(E,1),E=this.ranges.indexOf(T),E!=-1&&this.ranges.splice(E,1),E=T.tabstop.rangeList.ranges.indexOf(T),E!=-1&&T.tabstop.splice(E,1),this.session.removeMarker(T.markerId),T.tabstop.length||(E=this.tabstops.indexOf(T.tabstop),E!=-1&&this.tabstops.splice(E,1),this.tabstops.length||this.detach())},x}();b.prototype.keyboardHandler=new a,b.prototype.keyboardHandler.bindKeys({Tab:function(x){r.snippetManager&&r.snippetManager.expandWithTab(x)||(x.tabstopManager.tabNext(1),x.renderer.scrollCursorIntoView())},"Shift-Tab":function(x){x.tabstopManager.tabNext(-1),x.renderer.scrollCursorIntoView()},Esc:function(x){x.tabstopManager.detach()}});var R=function(x,T){x.row==0&&(x.column+=T.column),x.row+=T.row},$=function(x,T){x.row==T.row&&(x.column-=T.column),x.row-=T.row};y.importCssString(`
|
1115
|
+
.ace_snippet-marker {
|
1116
|
+
-moz-box-sizing: border-box;
|
1117
|
+
box-sizing: border-box;
|
1118
|
+
background: rgba(194, 193, 208, 0.09);
|
1119
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
1120
|
+
position: absolute;
|
1121
|
+
}`,"snippets.css",!1),r.snippetManager=new m;var C=t("./editor").Editor;(function(){this.insertSnippet=function(x,T){return r.snippetManager.insertSnippet(this,x,T)},this.expandSnippet=function(x){return r.snippetManager.expandWithTab(this,x)}}).call(C.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,d){var f=t("../virtual_renderer").VirtualRenderer,y=t("../editor").Editor,w=t("../range").Range,h=t("../lib/event"),p=t("../lib/lang"),s=t("../lib/dom"),c=t("../config").nls,a=t("./../lib/useragent"),l=function(R){return"suggest-aria-id:".concat(R)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",m=a.isSafari?"aria-current":"aria-selected",v=function(R){var $=new f(R);$.$maxLines=4;var C=new y($);return C.setHighlightActiveLine(!1),C.setShowPrintMargin(!1),C.renderer.setShowGutter(!1),C.renderer.setHighlightGutterLine(!1),C.$mouseHandler.$focusTimeout=0,C.$highlightTagPending=!0,C},b=function(){function R($){var C=s.createElement("div"),x=v(C);$&&$.appendChild(C),C.style.display="none",x.renderer.content.style.cursor="default",x.renderer.setStyle("ace_autocomplete"),x.renderer.$textLayer.element.setAttribute("role",o),x.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),x.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var T=function(){};x.focus=T,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=T,x.renderer.$cursorLayer.element.style.opacity="0",x.renderer.$maxLines=8,x.renderer.$keepTextAreaAtCursor=!1,x.setHighlightActiveLine(!1),x.session.highlight(""),x.session.$searchHighlight.clazz="ace_highlight-marker",x.on("mousedown",function(k){var M=k.getDocumentPosition();x.selection.moveToPosition(M),I.start.row=I.end.row=M.row,k.stop()});var E,L=new w(-1,0,-1,1/0),I=new w(-1,0,-1,1/0);I.id=x.session.addMarker(I,"ace_active-line","fullLine"),x.setSelectOnHover=function(k){k?L.id&&(x.session.removeMarker(L.id),L.id=null):L.id=x.session.addMarker(L,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function(k){if(!E){E=k;return}if(!(E.x==k.x&&E.y==k.y)){E=k,E.scrollTop=x.renderer.scrollTop,x.isMouseOver=!0;var M=E.getDocumentPosition().row;L.start.row!=M&&(L.id||x.setRow(M),_(M))}}),x.renderer.on("beforeRender",function(){if(E&&L.start.row!=-1){E.$pos=null;var k=E.getDocumentPosition().row;L.id||x.setRow(k),_(k,!0)}}),x.renderer.on("afterRender",function(){for(var k=x.renderer.$textLayer,M=k.config.firstRow,O=k.config.lastRow;M<=O;M++){var F=k.element.childNodes[M-k.config.firstRow],P=x.getData(M),j="".concat(P.caption||P.value).concat(P.meta?", ".concat(P.meta):"");F.setAttribute("role",u),F.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),F.setAttribute("aria-label",j),F.setAttribute("aria-setsize",x.data.length),F.setAttribute("aria-describedby","doc-tooltip"),F.setAttribute("aria-posinset",M+1);var V=F.querySelectorAll(".ace_completion-highlight");V.forEach(function(q){q.setAttribute("role","mark")})}}),x.renderer.on("afterRender",function(){var k=x.getRow(),M=x.renderer.$textLayer,O=M.element.childNodes[k-M.config.firstRow],F=document.activeElement;if(O!==x.selectedNode&&x.selectedNode&&(s.removeCssClass(x.selectedNode,"ace_selected"),x.selectedNode.removeAttribute(m),x.selectedNode.removeAttribute("id")),F.removeAttribute("aria-activedescendant"),x.selectedNode=O,O){var P=l(k);s.addCssClass(O,"ace_selected"),O.id=P,M.element.setAttribute("aria-activedescendant",P),F.setAttribute("aria-activedescendant",P),O.setAttribute(m,"true")}});var N=function(){_(-1)},_=function(k,M){k!==L.start.row&&(L.start.row=L.end.row=k,M||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return L.start.row},h.addListener(x.container,"mouseout",function(){x.isMouseOver=!1,N()}),x.on("hide",N),x.on("changeSelection",N),x.session.doc.getLength=function(){return x.data.length},x.session.doc.getLine=function(k){var M=x.data[k];return typeof M=="string"?M:M&&M.value||""};var A=x.session.bgTokenizer;return A.$tokenizeRow=function(k){function M(X,ae){X&&F.push({type:(O.className||"")+(ae||""),value:X})}var O=x.data[k],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var P=O.caption||O.value||O.name,j=P.toLowerCase(),V=(x.filterText||"").toLowerCase(),q=0,J=0,G=0;G<=V.length;G++)if(G!=J&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(J,G);J=G;var re=j.indexOf(Z,q);if(re==-1)continue;M(P.slice(q,re),""),q=re+Z.length,M(P.slice(re,q),"completion-highlight")}return M(P.slice(q,P.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},A.$updateOnChange=T,A.start=T,x.session.$computeWidth=function(){return this.screenWidth=0},x.isOpen=!1,x.isTopdown=!1,x.autoSelect=!0,x.filterText="",x.isMouseOver=!1,x.data=[],x.setData=function(k,M){x.filterText=M||"",x.setValue(p.stringRepeat(`
|
1122
|
+
`,k.length),-1),x.data=k||[],x.setRow(0)},x.getData=function(k){return x.data[k]},x.getRow=function(){return I.start.row},x.setRow=function(k){k=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,k)),I.start.row!=k&&(x.selection.clearSelection(),I.start.row=I.end.row=k||0,x.session._emit("changeBackMarker"),x.moveCursorTo(k||0,0),x.isOpen&&x._signal("select"))},x.on("changeSelection",function(){x.isOpen&&x.setRow(x.selection.lead.row),x.renderer.scrollCursorIntoView()}),x.hide=function(){this.container.style.display="none",x.anchorPos=null,x.anchor=null,x.isOpen&&(x.isOpen=!1,this._signal("hide"))},x.tryShow=function(k,M,O,F){if(!F&&x.isOpen&&x.anchorPos&&x.anchor&&x.anchorPos.top===k.top&&x.anchorPos.left===k.left&&x.anchor===O)return!0;var P=this.container,j=window.innerHeight,V=window.innerWidth,q=this.renderer,J=q.$maxLines*M*1.4,G={top:0,bottom:0},Z=j-k.top-3*this.$borderSize-M,re=k.top-3*this.$borderSize;O||(re<=Z||Z>=J?O="bottom":O="top"),O==="top"?(G.bottom=k.top-this.$borderSize,G.top=G.bottom-J):O==="bottom"&&(G.top=k.top+M+this.$borderSize,G.bottom=G.top+J);var X=G.top>=0&&G.bottom<=j;if(!F&&!X)return!1;X?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(P.style.top="",P.style.bottom=j-G.bottom+"px",x.isTopdown=!1):(P.style.top=G.top+"px",P.style.bottom="",x.isTopdown=!0),P.style.display="";var ae=k.left;return ae+P.offsetWidth>V&&(ae=V-P.offsetWidth),P.style.left=ae+"px",P.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),E=null),x.anchorPos=k,x.anchor=O,!0},x.show=function(k,M,O){this.tryShow(k,M,O?"bottom":void 0,!0)},x.goTo=function(k){var M=this.getRow(),O=this.session.getLength()-1;switch(k){case"up":M=M<=0?O:M-1;break;case"down":M=M>=O?-1:M+1;break;case"start":M=0;break;case"end":M=O}this.setRow(M)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return R}();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=b,r.$singleLineEditor=v,r.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,d){var f=function(){function y(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return y.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 p=this.popup.getRow(),s=this.popup.renderer.$textLayer,c=s.element.childNodes[p-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 h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},y.prototype.destroy=function(){this.screenReaderDiv.remove()},y.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var p=document.createElement("code");p.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);p.appendChild(s),w.appendChild(p)}return w},y}();r.AceInlineScreenReader=f}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,d){var f=t("../snippets").snippetManager,y=t("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(p,s,c){if(c=c||"",p&&this.editor&&this.editor!==p&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!p||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new y(p));var a=s.snippet?f.getDisplayTextForSnippet(p,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(c)?!1:(this.editor=p,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(c.length),a===""?p.removeGhostText():p.setGhostText(a),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,d){r.parForEach=function(y,w,h){var p=0,s=y.length;s===0&&h();for(var c=0;c<s;c++)w(y[c],function(a,l){p++,p===s&&h(a,l)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(y,w,h){h=h||f;for(var p=[],s=w-1;s>=0&&h.test(y[s]);s--)p.push(y[s]);return p.reverse().join("")},r.retrieveFollowingIdentifier=function(y,w,h){h=h||f;for(var p=[],s=w;s<y.length&&h.test(y[s]);s++)p.push(y[s]);return p},r.getCompletionPrefix=function(y){var w=y.getCursorPosition(),h=y.session.getLine(w.row),p;return y.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!p&&c&&(p=this.retrievePrecedingIdentifier(h,w.column,c))}).bind(this))}).bind(this)),p||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(y,h){var h=h??y.session.getPrecedingCharacter();return y.completers.some(function(p){if(p.triggerCharacters&&Array.isArray(p.triggerCharacters))return p.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(t,r,d){var f=t("./keyboard/hash_handler").HashHandler,y=t("./autocomplete/popup").AcePopup,w=t("./autocomplete/inline").AceInline,h=t("./autocomplete/popup").getAriaId,p=t("./autocomplete/util"),s=t("./lib/lang"),c=t("./lib/dom"),a=t("./snippets").snippetManager,l=t("./config"),o=t("./lib/event"),u=t("./lib/scroll").preventParentScroll,m=function($,C){C.completer&&C.completer.destroy()},v=function(){function $(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new f,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 C=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!C||this.editor.completers.length===0||(this.completions=new R($.completionsForLoading),this.openPopup(this.editor,C.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty($,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),$.prototype.$init=function(){return this.popup=new y(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(C){this.insertMatch(),C.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},$.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},$.prototype.getPopup=function(){return this.popup||this.$init()},$.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},$.prototype.$seen=function(C){!this.hasSeen.has(C)&&C&&C.completer&&C.completer.onSeen&&typeof C.completer.onSeen=="function"&&(C.completer.onSeen(this.editor,C),this.hasSeen.add(C))},$.prototype.$onPopupChange=function(C){if(this.inlineRenderer&&this.inlineEnabled){var x=C?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(x),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)},$.prototype.$updateGhostText=function(C){var x=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,L=this.editor.session.getLine(x).slice(T,E);this.inlineRenderer.show(this.editor,C,L)?this.$seen(C):this.inlineRenderer.hide()},$.prototype.$onPopupRender=function(){var C=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var x=this.popup.getFirstVisibleRow();x<=this.popup.getLastVisibleRow();x++){var T=this.popup.getData(x);T&&(!C||T.hideInlinePreview)&&this.$seen(T)}},$.prototype.$onPopupShow=function(C){this.$onPopupChange(C),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},$.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var C=this.editor.container.parentNode,x=[];C;)x.push(C),C.addEventListener("scroll",this.onLayoutChange,{passive:!0}),C=C.parentNode;this.$elements=x}},$.prototype.unObserveLayoutChanges=function(){var C=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(x){x.removeEventListener("scroll",C.onLayoutChange,{passive:!0})}),this.$elements=null},$.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},$.prototype.$updatePopupPosition=function(){var C=this.editor,x=C.renderer,T=x.layerConfig.lineHeight,E=x.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var L=C.container.getBoundingClientRect();E.top+=L.top-x.layerConfig.offset,E.left+=L.left-C.renderer.scrollLeft,E.left+=x.gutterWidth;var I={top:E.top,left:E.left};x.$ghostText&&x.$ghostTextWidget&&this.base.row===x.$ghostText.position.row&&(I.top+=x.$ghostTextWidget.el.offsetHeight);var N=C.container.getBoundingClientRect().bottom-T,_=N<I.top?{top:N,left:I.left}:I;this.popup.tryShow(_,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},$.prototype.openPopup=function(C,x,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 E=this.popup.getRow(),L=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),C.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(L)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===E&&L!==this.completions.filtered[I]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(I===E&&N){var _=this.popup.getData(this.popup.getRow());this.$updateGhostText(_)}T||(this.popup.setTheme(C.getTheme()),this.popup.setFontSize(C.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},$.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()},$.prototype.changeListener=function(C){var x=this.editor.selection.lead;(x.row!=this.base.row||x.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},$.prototype.blurListener=function(C){var x=document.activeElement,T=this.editor.textInput.getElement(),E=C.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(C.relatedTarget),L=this.popup&&this.popup.container;x!=T&&x.parentNode!=L&&!E&&x!=this.tooltipNode&&C.relatedTarget!=T&&this.detach()},$.prototype.mousedownListener=function(C){this.detach()},$.prototype.mousewheelListener=function(C){this.popup&&!this.popup.isMouseOver&&this.detach()},$.prototype.mouseOutListener=function(C){this.popup.isOpen&&this.$updatePopupPosition()},$.prototype.goTo=function(C){this.popup.goTo(C)},$.prototype.insertMatch=function(C,x){if(C||(C=this.popup.getData(this.popup.getRow())),!C)return!1;if(C.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,C,T.filterText,x);return this.completions==T&&this.detach(),E},$.prototype.showPopup=function(C,x){this.editor&&this.detach(),this.activated=!0,this.editor=C,C.completer!=this&&(C.completer&&C.completer.detach(),C.completer=this),C.on("changeSelection",this.changeListener),C.on("blur",this.blurListener),C.on("mousedown",this.mousedownListener),C.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,x)},$.prototype.getCompletionProvider=function(C){return this.completionProvider||(this.completionProvider=new b(C)),this.completionProvider},$.prototype.gatherCompletions=function(C,x){return this.getCompletionProvider().gatherCompletions(C,x)},$.prototype.updateCompletions=function(C,x){if(C&&this.base&&this.completions){var E=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:E});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,C);return}if(x&&x.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(x.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",C)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),L=p.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-L.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:L,pos:E}).provideCompletions(this.editor,I,(function(N,_,A){var k=_.filtered,M=p.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),A){if(!k.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(M)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(k.length==1&&k[0].value==M&&!k[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&k.length==1)return this.insertMatch(k[0])}this.completions=!A&&this.showLoadingState?new R($.completionsForLoading.concat(k),_.filterText):_,this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!A)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},$.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},$.prototype.updateDocTooltip=function(){var C=this.popup,x=this.completions.filtered,T=x&&(x[C.getHoveredRow()]||x[C.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,I=0;I<L;I++){var N=this.editor.completers[I];if(N.getDocTooltip&&T.completerId===N.id){E=N.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},$.prototype.showDocTooltip=function(C){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var x=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(x.isDark?"ace_dark ":"")+(x.cssClass||"");var T=this.tooltipNode;C.docHTML?T.innerHTML=C.docHTML:C.docText&&(T.textContent=C.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,L=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-L.right<320?L.left<320?E.isTopdown?(T.style.top=L.bottom+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.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="")},$.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var C=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==C&&this.editor.focus(),this.tooltipNode=null,C.parentNode&&C.parentNode.removeChild(C)}},$.prototype.onTooltipClick=function(C){for(var x=C.target;x&&x!=this.tooltipNode;){if(x.nodeName=="A"&&x.href){x.rel="noreferrer",x.target="_blank";break}x=x.parentNode}},$.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var C=this.popup.container;C&&C.parentNode&&C.parentNode.removeChild(C)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},$.for=function(C){return C.completer instanceof $||(C.completer&&(C.completer.destroy(),C.completer=null),l.get("sharedPopups")?($.$sharedInstance||($.$sharedInstance=new $),C.completer=$.$sharedInstance):(C.completer=new $,C.once("destroy",m))),C.completer},$}();v.prototype.commands={Up:function($){$.completer.goTo("up")},Down:function($){$.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function($){$.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function($){$.completer.goTo("end")},Esc:function($){$.completer.detach()},Return:function($){return $.completer.insertMatch()},"Shift-Return":function($){$.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function($){var C=$.completer.insertMatch();if(C||$.tabstopManager)return C;$.completer.goTo("down")},Backspace:function($){$.execCommand("backspace");var C=p.getCompletionPrefix($);!C&&$.completer&&$.completer.detach()},PageUp:function($){$.completer.popup.gotoPageUp()},PageDown:function($){$.completer.popup.gotoPageDown()}},v.startCommand={name:"startAutocomplete",exec:function($,C){var x=v.for($);x.autoInsert=!1,x.autoSelect=!0,x.autoShown=!1,x.showPopup($,C),x.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var b=function(){function $(C){this.initialPosition=C,this.active=!0}return $.prototype.insertByIndex=function(C,x,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(C,this.completions.filtered[x],T)},$.prototype.insertMatch=function(C,x,T){if(!x)return!1;if(C.startOperation({command:{name:"insertMatch"}}),x.completer&&x.completer.insertMatch)x.completer.insertMatch(C,x);else{if(!this.completions)return!1;var E=this.completions.filterText.length,L=0;if(x.range&&x.range.start.row===x.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-x.range.start.column,L+=x.range.end.column-this.initialPosition.pos.column),E||L){var I;C.selection.getAllRanges?I=C.selection.getAllRanges():I=[C.getSelectionRange()];for(var N=0,_;_=I[N];N++)_.start.column-=E,_.end.column+=L,C.session.remove(_)}x.snippet?a.insertSnippet(C,x.snippet):this.$insertString(C,x),x.completer&&x.completer.onInsert&&typeof x.completer.onInsert=="function"&&x.completer.onInsert(C,x),x.command&&x.command==="startAutocomplete"&&C.execCommand(x.command)}return C.endOperation(),!0},$.prototype.$insertString=function(C,x){var T=x.value||x;C.execCommand("insertstring",T)},$.prototype.gatherCompletions=function(C,x){var T=C.getSession(),E=C.getCursorPosition(),L=p.getCompletionPrefix(C),I=[];this.completers=C.completers;var N=C.completers.length;return C.completers.forEach(function(_,A){_.getCompletions(C,T,E,L,function(k,M){_.hideInlinePreview&&(M=M.map(function(O){return Object.assign(O,{hideInlinePreview:_.hideInlinePreview})})),!k&&M&&(I=I.concat(M)),x(null,{prefix:p.getCompletionPrefix(C),matches:I,finished:--N===0})})}),!0},$.prototype.provideCompletions=function(C,x,T){var E=(function(_){var A=_.prefix,k=_.matches;this.completions=new R(k),x.exactMatch&&(this.completions.exactMatch=!0),x.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(A),(_.finished||this.completions.filtered.length)&&T(null,this.completions,_.finished)}).bind(this),L=!0,I=null;if(this.gatherCompletions(C,(function(_,A){if(this.active){_&&(T(_,[],!0),this.detach());var k=A.prefix;if(k.indexOf(A.prefix)===0){if(L){I=A;return}E(A)}}}).bind(this)),L=!1,I){var N=I;I=null,E(N)}},$.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(C){typeof C.cancel=="function"&&C.cancel()})},$}(),R=function(){function $(C,x){this.all=C,this.filtered=C,this.filterText=x||"",this.exactMatch=!1,this.ignoreCaption=!1}return $.prototype.setFilter=function(C){if(C.length>this.filterText&&C.lastIndexOf(this.filterText,0)===0)var x=this.filtered;else var x=this.all;this.filterText=C,x=this.filterCompletions(x,this.filterText),x=x.sort(function(E,L){return L.exactMatch-E.exactMatch||L.$score-E.$score||(E.caption||E.value).localeCompare(L.caption||L.value)});var T=null;x=x.filter(function(E){var L=E.snippet||E.caption||E.value;return L===T?!1:(T=L,!0)}),this.filtered=x},$.prototype.filterCompletions=function(C,x){var T=[],E=x.toUpperCase(),L=x.toLowerCase();e:for(var I=0,N;N=C[I];I++){if(N.skipFilter){T.push(N);continue}var _=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(_){var A=-1,k=0,M=0,O,F;if(this.exactMatch){if(x!==_.substr(0,x.length))continue e}else{var P=_.toLowerCase().indexOf(L);if(P>-1)M=P;else for(var j=0;j<x.length;j++){var V=_.indexOf(L[j],A+1),q=_.indexOf(E[j],A+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-A-1,F>0&&(A===-1&&(M+=10),M+=F,k|=1<<j),A=O}}N.matchMask=k,N.exactMatch=M?0:1,N.$score=(N.score||0)-M,T.push(N)}}return T},$}();r.Autocomplete=v,r.CompletionProvider=b,r.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,d){function f(p,s){var c=p.getTextRange(w.fromPoints({row:0,column:0},s));return c.split(h).length-1}function y(p,s){var c=f(p,s),a=p.getValue().split(h),l=Object.create(null),o=a[c];return a.forEach(function(u,m){if(!(!u||u===o)){var v=Math.abs(c-m),b=a.length-v;l[u]?l[u]=Math.max(b,l[u]):l[u]=b}}),l}var w=t("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(p,s,c,a,l){var o=y(s,c),u=Object.keys(o);l(null,u.map(function(m){return{caption:m,value:m,score:o[m],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,d){var f=t("../snippets").snippetManager,y=t("../autocomplete").Autocomplete,w=t("../config"),h=t("../lib/lang"),p=t("../autocomplete/util"),s=t("../autocomplete/text_completer"),c={getCompletions:function(E,L,I,N,_){if(L.$mode.completer)return L.$mode.completer.getCompletions(E,L,I,N,_);var A=E.session.getState(I.row),k=L.$mode.getCompletions(A,L,I,N);k=k.map(function(M){return M.completerId=c.id,M}),_(null,k)},id:"keywordCompleter"},a=function(E){var L={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(I,N,_,A){return L[N]=A||""}).replace(/\$(\d+?)/g,function(I,N){return L[N]})},l={getCompletions:function(E,L,I,N,_){var A=[],k=L.getTokenAt(I.row,I.column);k&&k.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?A.push("html-tag"):A=f.getActiveScopes(E);var M=f.snippetMap,O=[];A.forEach(function(F){for(var P=M[F]||[],j=P.length;j--;){var V=P[j],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),_(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(a(E.snippet))].join(""))},id:"snippetCompleter"},o=[l,s,c];r.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},r.addCompleter=function(E){o.push(E)},r.textCompleter=s,r.keyWordCompleter=c,r.snippetCompleter=l;var u={name:"expandSnippet",exec:function(E){return f.expandWithTab(E)},bindKey:"Tab"},m=function(E,L){v(L.session.$mode)},v=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(f.files||(f.files={}),b(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(v))},b=function(E,L){!L||!E||f.files[E]||(f.files[E]={},w.loadModule(L,function(I){I&&(f.files[E]=I,!I.snippets&&I.snippetText&&(I.snippets=f.parseSnippetFile(I.snippetText)),f.register(I.snippets||[],I.scope),I.includeScopes&&(f.snippetMap[I.scope].includeScopes=I.includeScopes,I.includeScopes.forEach(function(N){v("ace/mode/"+N)})))}))},R=function(E){var L=E.editor,I=L.completer&&L.completer.activated;if(E.command.name==="backspace")I&&!p.getCompletionPrefix(L)&&L.completer.detach();else if(E.command.name==="insertstring"&&!I){$=E;var N=E.editor.$liveAutocompletionDelay;N?C.delay(N):x(E)}},$,C=h.delayedCall(function(){x($)},0),x=function(E){var L=E.editor,I=p.getCompletionPrefix(L),N=E.args,_=p.triggerAutocomplete(L,N);if(I&&I.length>=L.$liveAutocompletionThreshold||_){var A=y.for(L);A.autoShown=!0,A.showPopup(L)}},T=t("../editor").Editor;t("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(y.startCommand)):this.commands.removeCommand(y.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(u),this.off("changeMode",m))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){n&&(n.exports=t)})}()}(Kf)),Kf.exports}Mb();var Zf={exports:{}},Xf;function Lb(){return Xf||(Xf=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,d){d.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,d){var f=t("../lib/dom"),y=t("../lib/lang"),w=t("../lib/event"),h=t("./searchbox-css"),p=t("../keyboard/hash_handler").HashHandler,s=t("../lib/keys"),c=t("../config").nls,a=999;f.importCssString(h,"ace_searchbox",!1);var l=function(){function m(v,b,R){this.activeInput;var $=f.createElement("div");f.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"]]],$),this.element=$.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(v),f.importCssString(h,"ace_searchbox",v.container)}return m.prototype.setEditor=function(v){v.searchBox=this,v.renderer.scroller.appendChild(this.element),this.editor=v},m.prototype.setSession=function(v){this.searchRange=null,this.$syncOptions(!0)},m.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")},m.prototype.$init=function(){var v=this.element;this.$initElements(v);var b=this;w.addListener(v,"mousedown",function(R){setTimeout(function(){b.activeInput.focus()},0),w.stopPropagation(R)}),w.addListener(v,"click",function(R){var $=R.target||R.srcElement,C=$.getAttribute("action");C&&b[C]?b[C]():b.$searchBarKb.commands[C]&&b.$searchBarKb.commands[C].exec(b),w.stopPropagation(R)}),w.addCommandKeyListener(v,function(R,$,C){var x=s.keyCodeToString(C),T=b.$searchBarKb.findKeyCommand($,x);T&&T.exec&&(T.exec(b),w.stopEvent(R))}),this.$onChange=y.delayedCall(function(){b.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),w.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},m.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)},m.prototype.$syncOptions=function(v){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,v)},m.prototype.highlight=function(v){this.editor.session.highlight(v||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},m.prototype.find=function(v,b,R){var $=this.editor.find(this.searchInput.value,{skipCurrent:v,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),C=!$&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",C),this.editor._emit("findSearchBox",{match:!C}),this.highlight(),this.updateCounter()},m.prototype.updateCounter=function(){var v=this.editor,b=v.$search.$options.re,R=b.unicode,$=0,C=0;if(b){var x=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 E=b.lastIndex=0,L;(L=b.exec(x))&&($++,E=L.index,E<=T&&C++,!($>a||!L[0]&&(b.lastIndex=E+=y.skipEmptyMatch(x,E,R),E>=x.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[C,$>a?a+"+":$])},m.prototype.findNext=function(){this.find(!0,!1)},m.prototype.findPrev=function(){this.find(!0,!0)},m.prototype.findAll=function(){var v=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!v&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},m.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},m.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},m.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},m.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()},m.prototype.show=function(v,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,v&&(this.searchInput.value=v),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},m.prototype.isFocused=function(){var v=document.activeElement;return v==this.searchInput||v==this.replaceInput},m}(),o=new p;o.bindKeys({"Ctrl-f|Command-f":function(m){var v=m.isReplace=!m.isReplace;m.replaceBox.style.display=v?"":"none",m.replaceOption.checked=!1,m.$syncOptions(),m.searchInput.focus()},"Ctrl-H|Command-Option-F":function(m){m.editor.getReadOnly()||(m.replaceOption.checked=!0,m.$syncOptions(),m.replaceInput.focus())},"Ctrl-G|Command-G":function(m){m.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(m){m.findPrev()},esc:function(m){setTimeout(function(){m.hide()})},Return:function(m){m.activeInput==m.replaceInput&&m.replace(),m.findNext()},"Shift-Return":function(m){m.activeInput==m.replaceInput&&m.replace(),m.findPrev()},"Alt-Return":function(m){m.activeInput==m.replaceInput&&m.replaceAll(),m.findAll()},Tab:function(m){(m.activeInput==m.replaceInput?m.searchInput:m.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(m){m.regExpOption.checked=!m.regExpOption.checked,m.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(m){m.caseSensitiveOption.checked=!m.caseSensitiveOption.checked,m.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(m){m.wholeWordOption.checked=!m.wholeWordOption.checked,m.$syncOptions()}},{name:"toggleReplace",exec:function(m){m.replaceOption.checked=!m.replaceOption.checked,m.$syncOptions()}},{name:"searchInSelection",exec:function(m){m.searchOption.checked=!m.searchRange,m.setSearchRange(m.searchOption.checked&&m.editor.getSelectionRange()),m.$syncOptions()}}]);var u=new p([{bindKey:"Esc",name:"closeSearchBar",exec:function(m){m.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,r.SearchBox=l,r.Search=function(m,v){var b=m.searchBox||new l(m);b.show(m.session.getTextRange(),v)}}),function(){ace.require(["ace/ext/searchbox"],function(t){n&&(n.exports=t)})}()}(Zf)),Zf.exports}Lb();var Ob=Object.defineProperty,Db=(n,e,t)=>e in n?Ob(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,jr=(n,e,t)=>Db(n,typeof e!="symbol"?e+"":e,t);function Jf(n,e){return function(){return n.apply(e,arguments)}}const{toString:Nb}=Object.prototype,{getPrototypeOf:Bc}=Object,Wa=(n=>e=>{const t=Nb.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=n=>(n=n.toLowerCase(),e=>Wa(e)===n),Pa=n=>e=>typeof e===n,{isArray:Ho}=Array,Ts=Pa("undefined");function Fb(n){return n!==null&&!Ts(n)&&n.constructor!==null&&!Ts(n.constructor)&&lr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ep=Rr("ArrayBuffer");function Wb(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ep(n.buffer),e}const Pb=Pa("string"),lr=Pa("function"),tp=Pa("number"),Ha=n=>n!==null&&typeof n=="object",Hb=n=>n===!0||n===!1,za=n=>{if(Wa(n)!=="object")return!1;const e=Bc(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},zb=Rr("Date"),Bb=Rr("File"),jb=Rr("Blob"),Ub=Rr("FileList"),Vb=n=>Ha(n)&&lr(n.pipe),qb=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||lr(n.append)&&((e=Wa(n))==="formdata"||e==="object"&&lr(n.toString)&&n.toString()==="[object FormData]"))},Gb=Rr("URLSearchParams"),[Yb,Kb,Qb,Zb]=["ReadableStream","Request","Response","Headers"].map(Rr),Xb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Is(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,d;if(typeof n!="object"&&(n=[n]),Ho(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{const f=t?Object.getOwnPropertyNames(n):Object.keys(n),y=f.length;let w;for(r=0;r<y;r++)w=f[r],e.call(null,n[w],w,n)}}function np(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rp=n=>!Ts(n)&&n!==io;function jc(){const{caseless:n}=rp(this)&&this||{},e={},t=(r,d)=>{const f=n&&np(e,d)||d;za(e[f])&&za(r)?e[f]=jc(e[f],r):za(r)?e[f]=jc({},r):Ho(r)?e[f]=r.slice():e[f]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&Is(arguments[r],t);return e}const Jb=(n,e,t,{allOwnKeys:r}={})=>(Is(e,(d,f)=>{t&&lr(d)?n[f]=Jf(d,t):n[f]=d},{allOwnKeys:r}),n),ex=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),tx=(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)},nx=(n,e,t,r)=>{let d,f,y;const w={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),f=d.length;f-- >0;)y=d[f],(!r||r(y,n,e))&&!w[y]&&(e[y]=n[y],w[y]=!0);n=t!==!1&&Bc(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},rx=(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},ix=n=>{if(!n)return null;if(Ho(n))return n;let e=n.length;if(!tp(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},ox=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Bc(Uint8Array)),sx=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},ax=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},lx=Rr("HTMLFormElement"),cx=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),ip=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),ux=Rr("RegExp"),op=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Is(t,(d,f)=>{let y;(y=e(d,f,n))!==!1&&(r[f]=y||d)}),Object.defineProperties(n,r)},hx=n=>{op(n,(e,t)=>{if(lr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(lr(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+"'")})}})},dx=(n,e)=>{const t={},r=d=>{d.forEach(f=>{t[f]=!0})};return Ho(n)?r(n):r(String(n).split(e)),t},fx=()=>{},px=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Uc="abcdefghijklmnopqrstuvwxyz",sp="0123456789",ap={DIGIT:sp,ALPHA:Uc,ALPHA_DIGIT:Uc+Uc.toUpperCase()+sp},gx=(n=16,e=ap.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function mx(n){return!!(n&&lr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const yx=n=>{const e=new Array(10),t=(r,d)=>{if(Ha(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const f=Ho(r)?[]:{};return Is(r,(y,w)=>{const h=t(y,d+1);!Ts(h)&&(f[w]=h)}),e[d]=void 0,f}}return r};return t(n,0)},vx=Rr("AsyncFunction"),wx=n=>n&&(Ha(n)||lr(n))&&lr(n.then)&&lr(n.catch),lp=((n,e)=>n?setImmediate:e?((t,r)=>(io.addEventListener("message",({source:d,data:f})=>{d===io&&f===t&&r.length&&r.shift()()},!1),d=>{r.push(d),io.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",lr(io.postMessage)),bx=typeof queueMicrotask<"u"?queueMicrotask.bind(io):typeof process<"u"&&process.nextTick||lp,ue={isArray:Ho,isArrayBuffer:ep,isBuffer:Fb,isFormData:qb,isArrayBufferView:Wb,isString:Pb,isNumber:tp,isBoolean:Hb,isObject:Ha,isPlainObject:za,isReadableStream:Yb,isRequest:Kb,isResponse:Qb,isHeaders:Zb,isUndefined:Ts,isDate:zb,isFile:Bb,isBlob:jb,isRegExp:ux,isFunction:lr,isStream:Vb,isURLSearchParams:Gb,isTypedArray:ox,isFileList:Ub,forEach:Is,merge:jc,extend:Jb,trim:Xb,stripBOM:ex,inherits:tx,toFlatObject:nx,kindOf:Wa,kindOfTest:Rr,endsWith:rx,toArray:ix,forEachEntry:sx,matchAll:ax,isHTMLForm:lx,hasOwnProperty:ip,hasOwnProp:ip,reduceDescriptors:op,freezeMethods:hx,toObjectSet:dx,toCamelCase:cx,noop:fx,toFiniteNumber:px,findKey:np,global:io,isContextDefined:rp,ALPHABET:ap,generateString:gx,isSpecCompliantForm:mx,toJSONObject:yx,isAsyncFn:vx,isThenable:wx,setImmediate:lp,asap:bx};function tt(n,e,t,r,d){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),d&&(this.response=d,this.status=d.status?d.status:null)}ue.inherits(tt,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 cp=tt.prototype,up={};["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=>{up[n]={value:n}}),Object.defineProperties(tt,up),Object.defineProperty(cp,"isAxiosError",{value:!0}),tt.from=(n,e,t,r,d,f)=>{const y=Object.create(cp);return ue.toFlatObject(n,y,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(y,n.message,e,t,r,d),y.cause=n,y.name=n.name,f&&Object.assign(y,f),y};const xx=null;function Vc(n){return ue.isPlainObject(n)||ue.isArray(n)}function hp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function dp(n,e,t){return n?n.concat(e).map(function(r,d){return r=hp(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function Ax(n){return ue.isArray(n)&&!n.some(Vc)}const Cx=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Ba(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,d=t.visitor||p,f=t.dots,y=t.indexes,w=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(d))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!w&&ue.isBlob(l))throw new tt("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 p(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Ax(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(m=ue.toArray(l)))return o=hp(o),m.forEach(function(v,b){!(ue.isUndefined(v)||v===null)&&e.append(y===!0?dp([o],b,f):y===null?o:o+"[]",h(v))}),!1}return Vc(l)?!0:(e.append(dp(u,o,f),h(l)),!1)}const s=[],c=Object.assign(Cx,{defaultVisitor:p,convertValue:h,isVisitable:Vc});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(u,m){(!(ue.isUndefined(u)||u===null)&&d.call(e,u,ue.isString(m)?m.trim():m,o,c))===!0&&a(u,o?o.concat(m):[m])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),e}function fp(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&&Ba(n,this,e)}const pp=qc.prototype;pp.append=function(n,e){this._pairs.push([n,e])},pp.toString=function(n){const e=n?function(t){return n.call(this,t,fp)}:fp;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function kx(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gp(n,e,t){if(!e)return n;const r=t&&t.encode||kx;ue.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let f;if(d?f=d(e,t):f=ue.isURLSearchParams(e)?e.toString():new qc(e,t).toString(r),f){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class mp{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 yp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_x=typeof URLSearchParams<"u"?URLSearchParams:qc,Sx=typeof FormData<"u"?FormData:null,$x=typeof Blob<"u"?Blob:null,Tx={isBrowser:!0,classes:{URLSearchParams:_x,FormData:Sx,Blob:$x},protocols:["http","https","file","blob","url","data"]},Gc=typeof window<"u"&&typeof document<"u",Yc=typeof navigator=="object"&&navigator||void 0,Ix=Gc&&(!Yc||["ReactNative","NativeScript","NS"].indexOf(Yc.product)<0),Ex=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rx=Gc&&window.location.href||"http://localhost",Mx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gc,hasStandardBrowserEnv:Ix,hasStandardBrowserWebWorkerEnv:Ex,navigator:Yc,origin:Rx},Symbol.toStringTag,{value:"Module"})),On={...Mx,...Tx};function Lx(n,e){return Ba(n,new On.classes.URLSearchParams,Object.assign({visitor:function(t,r,d,f){return On.isNode&&ue.isBuffer(t)?(this.append(r,t.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},e))}function Ox(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Dx(n){const e={},t=Object.keys(n);let r;const d=t.length;let f;for(r=0;r<d;r++)f=t[r],e[f]=n[f];return e}function vp(n){function e(t,r,d,f){let y=t[f++];if(y==="__proto__")return!0;const w=Number.isFinite(+y),h=f>=t.length;return y=!y&&ue.isArray(d)?d.length:y,h?(ue.hasOwnProp(d,y)?d[y]=[d[y],r]:d[y]=r,!w):((!d[y]||!ue.isObject(d[y]))&&(d[y]=[]),e(t,r,d[y],f)&&ue.isArray(d[y])&&(d[y]=Dx(d[y])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const t={};return ue.forEachEntry(n,(r,d)=>{e(Ox(r),d,t,0)}),t}return null}function Nx(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 Es={transitional:yp,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=ue.isObject(n);if(d&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(vp(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 f;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Lx(n,this.formSerializer).toString();if((f=ue.isFileList(n))||t.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ba(f?{"files[]":n}:n,y&&new y,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),Nx(n)):n}],transformResponse:[function(n){const e=this.transitional||Es.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 d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(f){if(d)throw f.name==="SyntaxError"?tt.from(f,tt.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:On.classes.FormData,Blob:On.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=>{Es.headers[n]={}});const Fx=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"]),Wx=n=>{const e={};let t,r,d;return n&&n.split(`
|
1376
|
+
`).forEach(function(f){d=f.indexOf(":"),t=f.substring(0,d).trim().toLowerCase(),r=f.substring(d+1).trim(),!(!t||e[t]&&Fx[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},wp=Symbol("internals");function Rs(n){return n&&String(n).trim().toLowerCase()}function ja(n){return n===!1||n==null?n:ue.isArray(n)?n.map(ja):String(n)}function Px(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 Hx=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Kc(n,e,t,r,d){if(ue.isFunction(r))return r.call(this,e,t);if(d&&(e=t),!!ue.isString(e)){if(ue.isString(r))return e.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(e)}}function zx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Bx(n,e){const t=ue.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(d,f,y){return this[r].call(this,e,d,f,y)},configurable:!0})})}let Xn=class{constructor(e){e&&this.set(e)}set(e,t,r){const d=this;function f(w,h,p){const s=Rs(h);if(!s)throw new Error("header name must be a non-empty string");const c=ue.findKey(d,s);(!c||d[c]===void 0||p===!0||p===void 0&&d[c]!==!1)&&(d[c||h]=ja(w))}const y=(w,h)=>ue.forEach(w,(p,s)=>f(p,s,h));if(ue.isPlainObject(e)||e instanceof this.constructor)y(e,t);else if(ue.isString(e)&&(e=e.trim())&&!Hx(e))y(Wx(e),t);else if(ue.isHeaders(e))for(const[w,h]of e.entries())f(h,w,r);else e!=null&&f(t,e,r);return this}get(e,t){if(e=Rs(e),e){const r=ue.findKey(this,e);if(r){const d=this[r];if(!t)return d;if(t===!0)return Px(d);if(ue.isFunction(t))return t.call(this,d,r);if(ue.isRegExp(t))return t.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Rs(e),e){const r=ue.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Kc(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let d=!1;function f(y){if(y=Rs(y),y){const w=ue.findKey(r,y);w&&(!t||Kc(r,r[w],w,t))&&(delete r[w],d=!0)}}return ue.isArray(e)?e.forEach(f):f(e),d}clear(e){const t=Object.keys(this);let r=t.length,d=!1;for(;r--;){const f=t[r];(!e||Kc(this,this[f],f,e,!0))&&(delete this[f],d=!0)}return d}normalize(e){const t=this,r={};return ue.forEach(this,(d,f)=>{const y=ue.findKey(r,f);if(y){t[y]=ja(d),delete t[f];return}const w=e?zx(f):String(f).trim();w!==f&&delete t[f],t[w]=ja(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ue.forEach(this,(r,d)=>{r!=null&&r!==!1&&(t[d]=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(d=>r.set(d)),r}static accessor(e){const t=(this[wp]=this[wp]={accessors:{}}).accessors,r=this.prototype;function d(f){const y=Rs(f);t[y]||(Bx(r,f),t[y]=!0)}return ue.isArray(e)?e.forEach(d):d(e),this}};Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Xn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ue.freezeMethods(Xn);function Qc(n,e){const t=this||Es,r=e||t,d=Xn.from(r.headers);let f=r.data;return ue.forEach(n,function(y){f=y.call(t,f,d.normalize(),e?e.status:void 0)}),d.normalize(),f}function bp(n){return!!(n&&n.__CANCEL__)}function zo(n,e,t){tt.call(this,n??"canceled",tt.ERR_CANCELED,e,t),this.name="CanceledError"}ue.inherits(zo,tt,{__CANCEL__:!0});function xp(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new tt("Request failed with status code "+t.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function jx(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Ux(n,e){n=n||10;const t=new Array(n),r=new Array(n);let d=0,f=0,y;return e=e!==void 0?e:1e3,function(w){const h=Date.now(),p=r[f];y||(y=h),t[d]=w,r[d]=h;let s=f,c=0;for(;s!==d;)c+=t[s++],s=s%n;if(d=(d+1)%n,d===f&&(f=(f+1)%n),h-y<e)return;const a=p&&h-p;return a?Math.round(c*1e3/a):void 0}}function Vx(n,e){let t=0,r=1e3/e,d,f;const y=(w,h=Date.now())=>{t=h,d=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),p=h-t;p>=r?y(w,h):(d=w,f||(f=setTimeout(()=>{f=null,y(d)},r-p)))},()=>d&&y(d)]}const Ua=(n,e,t=3)=>{let r=0;const d=Ux(50,250);return Vx(f=>{const y=f.loaded,w=f.lengthComputable?f.total:void 0,h=y-r,p=d(h),s=y<=w;r=y;const c={loaded:y,total:w,progress:w?y/w:void 0,bytes:h,rate:p||void 0,estimated:p&&w&&s?(w-y)/p:void 0,event:f,lengthComputable:w!=null,[e?"download":"upload"]:!0};n(c)},t)},Ap=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Cp=n=>(...e)=>ue.asap(()=>n(...e)),qx=On.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,On.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(On.origin),On.navigator&&/(msie|trident)/i.test(On.navigator.userAgent)):()=>!0,Gx=On.hasStandardBrowserEnv?{write(n,e,t,r,d,f){const y=[n+"="+encodeURIComponent(e)];ue.isNumber(t)&&y.push("expires="+new Date(t).toGMTString()),ue.isString(r)&&y.push("path="+r),ue.isString(d)&&y.push("domain="+d),f===!0&&y.push("secure"),document.cookie=y.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 Yx(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Kx(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function kp(n,e){return n&&!Yx(e)?Kx(n,e):e}const _p=n=>n instanceof Xn?{...n}:n;function oo(n,e){e=e||{};const t={};function r(p,s,c,a){return ue.isPlainObject(p)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},p,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function d(p,s,c,a){if(ue.isUndefined(s)){if(!ue.isUndefined(p))return r(void 0,p,c,a)}else return r(p,s,c,a)}function f(p,s){if(!ue.isUndefined(s))return r(void 0,s)}function y(p,s){if(ue.isUndefined(s)){if(!ue.isUndefined(p))return r(void 0,p)}else return r(void 0,s)}function w(p,s,c){if(c in e)return r(p,s);if(c in n)return r(void 0,p)}const h={url:f,method:f,data:f,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:w,headers:(p,s,c)=>d(_p(p),_p(s),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,e)),function(p){const s=h[p]||d,c=s(n[p],e[p],p);ue.isUndefined(c)&&s!==w||(t[p]=c)}),t}const Sp=n=>{const e=oo({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:f,headers:y,auth:w}=e;e.headers=y=Xn.from(y),e.url=gp(kp(e.baseURL,e.url),n.params,n.paramsSerializer),w&&y.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(t)){if(On.hasStandardBrowserEnv||On.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[p,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...s].join("; "))}}if(On.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(e)),r||r!==!1&&qx(e.url))){const p=d&&f&&Gx.read(f);p&&y.set(d,p)}return e},Qx=typeof XMLHttpRequest<"u",Zx=Qx&&function(n){return new Promise(function(e,t){const r=Sp(n);let d=r.data;const f=Xn.from(r.headers).normalize();let{responseType:y,onUploadProgress:w,onDownloadProgress:h}=r,p,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const b=Xn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};xp(function($){e($),o()},function($){t($),o()},R),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(t(new tt("Request aborted",tt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new tt("Network Error",tt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||yp;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),t(new tt(b,R.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,n,u)),u=null},d===void 0&&f.setContentType(null),"setRequestHeader"in u&&ue.forEach(f.toJSON(),function(b,R){u.setRequestHeader(R,b)}),ue.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=Ua(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=Ua(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(p=b=>{u&&(t(!b||b.type?new zo(null,n,u):b),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const v=jx(r.url);if(v&&On.protocols.indexOf(v)===-1){t(new tt("Unsupported protocol "+v+":",tt.ERR_BAD_REQUEST,n));return}u.send(d||null)})},Xx=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,d;const f=function(p){if(!d){d=!0,w();const s=p instanceof Error?p:this.reason;r.abort(s instanceof tt?s:new zo(s instanceof Error?s.message:s))}};let y=e&&setTimeout(()=>{y=null,f(new tt(`timeout ${e} of ms exceeded`,tt.ETIMEDOUT))},e);const w=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(f):p.removeEventListener("abort",f)}),n=null)};n.forEach(p=>p.addEventListener("abort",f));const{signal:h}=r;return h.unsubscribe=()=>ue.asap(w),h}},Jx=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,d;for(;r<t;)d=r+e,yield n.slice(r,d),r=d},e1=async function*(n,e){for await(const t of t1(n))yield*Jx(t,e)},t1=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 d=e1(n,e);let f=0,y,w=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:s}=await d.next();if(p){w(),h.close();return}let c=s.byteLength;if(t){let a=f+=c;t(a)}h.enqueue(new Uint8Array(s))}catch(p){throw w(p),p}},cancel(h){return w(h),d.return()}},{highWaterMark:2})},Va=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tp=Va&&typeof ReadableStream=="function",n1=Va&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Ip=(n,...e)=>{try{return!!n(...e)}catch{return!1}},r1=Tp&&Ip(()=>{let n=!1;const e=new Request(On.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Ep=64*1024,Zc=Tp&&Ip(()=>ue.isReadableStream(new Response("").body)),qa={stream:Zc&&(n=>n.body)};Va&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!qa[e]&&(qa[e]=ue.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new tt(`Response type '${e}' is not supported`,tt.ERR_NOT_SUPPORT,r)})})})(new Response);const i1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(On.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 n1(n)).byteLength},o1=async(n,e)=>ue.toFiniteNumber(n.getContentLength())??i1(e),s1=Va&&(async n=>{let{url:e,method:t,data:r,signal:d,cancelToken:f,timeout:y,onDownloadProgress:w,onUploadProgress:h,responseType:p,headers:s,withCredentials:c="same-origin",fetchOptions:a}=Sp(n);p=p?(p+"").toLowerCase():"text";let l=Xx([d,f&&f.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&r1&&t!=="get"&&t!=="head"&&(m=await o1(s,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),x;if(ue.isFormData(r)&&(x=C.headers.get("content-type"))&&s.setContentType(x),C.body){const[T,E]=Ap(m,Ua(Cp(h)));r=$p(C.body,Ep,T,E)}}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 b=await fetch(o);const R=Zc&&(p==="stream"||p==="response");if(Zc&&(w||R&&u)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=b[L]});const x=ue.toFiniteNumber(b.headers.get("content-length")),[T,E]=w&&Ap(x,Ua(Cp(w),!0))||[];b=new Response($p(b.body,Ep,T,()=>{E&&E(),u&&u()}),C)}p=p||"text";let $=await qa[ue.findKey(qa,p)||"text"](b,n);return!R&&u&&u(),await new Promise((C,x)=>{xp(C,x,{data:$,headers:Xn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(v){throw u&&u(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,n,o),{cause:v.cause||v}):tt.from(v,v&&v.code,n,o)}}),Xc={http:xx,xhr:Zx,fetch:s1};ue.forEach(Xc,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Rp=n=>`- ${n}`,a1=n=>ue.isFunction(n)||n===null||n===!1,Mp={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:e}=n;let t,r;const d={};for(let f=0;f<e;f++){t=n[f];let y;if(r=t,!a1(t)&&(r=Xc[(y=String(t)).toLowerCase()],r===void 0))throw new tt(`Unknown adapter '${y}'`);if(r)break;d[y||"#"+f]=r}if(!r){const f=Object.entries(d).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=e?f.length>1?`since :
|
1378
|
+
`+f.map(Rp).join(`
|
1379
|
+
`):" "+Rp(f[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:Xc};function Jc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new zo(null,n)}function Lp(n){return Jc(n),n.headers=Xn.from(n.headers),n.data=Qc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Mp.getAdapter(n.adapter||Es.adapter)(n).then(function(e){return Jc(n),e.data=Qc.call(n,n.transformResponse,e),e.headers=Xn.from(e.headers),e},function(e){return bp(e)||(Jc(n),e&&e.response&&(e.response.data=Qc.call(n,n.transformResponse,e.response),e.response.headers=Xn.from(e.response.headers))),Promise.reject(e)})}const Op="1.7.9",Ga={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ga[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Dp={};Ga.transitional=function(n,e,t){function r(d,f){return"[Axios v"+Op+"] Transitional option '"+d+"'"+f+(t?". "+t:"")}return(d,f,y)=>{if(n===!1)throw new tt(r(f," has been removed"+(e?" in "+e:"")),tt.ERR_DEPRECATED);return e&&!Dp[f]&&(Dp[f]=!0,console.warn(r(f," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,f,y):!0}},Ga.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function l1(n,e,t){if(typeof n!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const f=r[d],y=e[f];if(y){const w=n[f],h=w===void 0||y(w,f,n);if(h!==!0)throw new tt("option "+f+" must be "+h,tt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new tt("Unknown option "+f,tt.ERR_BAD_OPTION)}}const Ya={assertOptions:l1,validators:Ga},Ur=Ya.validators;let so=class{constructor(n){this.defaults=n,this.interceptors={request:new mp,response:new mp}}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 d=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?d&&!String(t.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
1380
|
+
`+d):t.stack=d}catch{}}throw t}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=oo(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:d}=e;t!==void 0&&Ya.assertOptions(t,{silentJSONParsing:Ur.transitional(Ur.boolean),forcedJSONParsing:Ur.transitional(Ur.boolean),clarifyTimeoutError:Ur.transitional(Ur.boolean)},!1),r!=null&&(ue.isFunction(r)?e.paramsSerializer={serialize:r}:Ya.assertOptions(r,{encode:Ur.function,serialize:Ur.function},!0)),Ya.assertOptions(e,{baseUrl:Ur.spelling("baseURL"),withXsrfToken:Ur.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let f=d&&ue.merge(d.common,d[e.method]);d&&ue.forEach(["delete","get","head","post","put","patch","common"],l=>{delete d[l]}),e.headers=Xn.concat(f,d);const y=[];let w=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(e)===!1||(w=w&&l.synchronous,y.unshift(l.fulfilled,l.rejected))});const h=[];this.interceptors.response.forEach(function(l){h.push(l.fulfilled,l.rejected)});let p,s=0,c;if(!w){const l=[Lp.bind(this),void 0];for(l.unshift.apply(l,y),l.push.apply(l,h),c=l.length,p=Promise.resolve(e);s<c;)p=p.then(l[s++],l[s++]);return p}c=y.length;let a=e;for(s=0;s<c;){const l=y[s++],o=y[s++];try{a=l(a)}catch(u){o.call(this,u);break}}try{p=Lp.call(this,a)}catch(l){return Promise.reject(l)}for(s=0,c=h.length;s<c;)p=p.then(h[s++],h[s++]);return p}getUri(n){n=oo(this.defaults,n);const e=kp(n.baseURL,n.url);return gp(e,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){so.prototype[n]=function(e,t){return this.request(oo(t||{},{method:n,url:e,data:(t||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,f){return this.request(oo(f||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}so.prototype[n]=e(),so.prototype[n+"Form"]=e(!0)});let c1=class g0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let f=r._listeners.length;for(;f-- >0;)r._listeners[f](d);r._listeners=null}),this.promise.then=d=>{let f;const y=new Promise(w=>{r.subscribe(w),f=w}).then(d);return y.cancel=function(){r.unsubscribe(f)},y},e(function(d,f,y){r.reason||(r.reason=new zo(d,f,y),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 g0(function(t){e=t}),cancel:e}}};function u1(n){return function(e){return n.apply(null,e)}}function h1(n){return ue.isObject(n)&&n.isAxiosError===!0}const eu={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(eu).forEach(([n,e])=>{eu[e]=n});function Np(n){const e=new so(n),t=Jf(so.prototype.request,e);return ue.extend(t,so.prototype,e,{allOwnKeys:!0}),ue.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Np(oo(n,r))},t}const sn=Np(Es);sn.Axios=so,sn.CanceledError=zo,sn.CancelToken=c1,sn.isCancel=bp,sn.VERSION=Op,sn.toFormData=Ba,sn.AxiosError=tt,sn.Cancel=sn.CanceledError,sn.all=function(n){return Promise.all(n)},sn.spread=u1,sn.isAxiosError=h1,sn.mergeConfig=oo,sn.AxiosHeaders=Xn,sn.formToJSON=n=>vp(ue.isHTMLForm(n)?new FormData(n):n),sn.getAdapter=Mp.getAdapter,sn.HttpStatusCode=eu,sn.default=sn;const{Axios:j2,AxiosError:U2,CanceledError:V2,isCancel:q2,CancelToken:G2,VERSION:Y2,all:K2,Cancel:Q2,isAxiosError:Z2,spread:X2,toFormData:J2,AxiosHeaders:eD,HttpStatusCode:tD,formToJSON:nD,getAdapter:rD,mergeConfig:iD}=sn,tu=sn.create({baseURL:location.origin,timeout:6e4,params:{}});tu.interceptors.response.use(n=>n,n=>{var e,t,r,d,f,y,w,h,p,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} `),(f=(d=n.response)==null?void 0:d.data)!=null&&f.message?a+=`${n.response.data.message}`:(w=(y=n.response)==null?void 0:y.data)!=null&&w.exception?a+=`${n.response.data.exception}`:(s=(p=(h=n.response)==null?void 0:h.data)==null?void 0:p.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 Ka=async function(n,e,{data:t,params:r={},headers:d,noAuth:f=!1,noScope:y=!1,onUploadProgress:w=!1}={}){if(!f){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}d.Authorization=localStorage.openc3Token}return d.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),tu({method:n,url:e,data:t,params:r,headers:d,onUploadProgress:w})},nu={Accept:"application/json"},Fp={...nu,"Content-Type":"application/json"},Vr=dn("E",{get:function(n,{params:e,headers:t=nu,noScope:r,noAuth:d,onUploadProgress:f}={}){return Ka("get",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:f})},put:function(n,{data:e,params:t,headers:r=Fp,noScope:d,noAuth:f,onUploadProgress:y}={}){return Ka("put",n,{data:e,params:t,headers:r,noScope:d,noAuth:f,onUploadProgress:y})},post:function(n,{data:e,params:t,headers:r=Fp,noScope:d,noAuth:f,onUploadProgress:y}={}){return Ka("post",n,{data:e,params:t,headers:r,noScope:d,noAuth:f,onUploadProgress:y})},delete:function(n,{params:e,headers:t=nu,noScope:r,noAuth:d,onUploadProgress:f}={}){return Ka("delete",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:f})}});let Qa=()=>({emit(n,...e){for(let t=this.events[n]||[],r=0,d=t.length;r<d;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(d=>e!==d)}}});class Ms extends Error{constructor(e,t){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=t,this.name="ReasonError"}}class ru extends Ms{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class d1 extends Ms{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Mr extends Ms{constructor(e,t){t?super(e,t):super("Disconnected",e),this.name="DisconnectedError"}}class f1 extends Mr{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function Wp(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 p1{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:d})=>(t[r]=d,t),{})}}const ao=Symbol("state");class Pp{constructor(e={}){this.emitter=Qa(),this.params=Object.freeze(e),this.presence=new p1(this),this.initialConnect=!0,this[ao]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Wp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[ao]}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[ao]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[ao]="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[ao]="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[ao]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[ao]="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,(...d)=>{r(),t(...d)});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(d=>d()),e()})),r.push(this.on("close",d=>{r.forEach(f=>f()),t(d||new Ms("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class g1{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(f=>{t=f}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),t(r)},canceled:!1,acquired:!1},d=this._pendingTop;return this._pendings.push(r),d&&await d.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 m1{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 y1{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new m1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:t,unsubscribe:r}){let d=this._subscriptions[e]=new g1(e);return d.remoteId=this._localToRemote[e],d.subscriber=t,d.unsubscriber=r,d.gvl=this.glv,d}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 v1{constructor(e={}){this.subscriptions=new y1(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 d=this._remoteToLocal[e];if(!d){this._pendingMessages.push([e,t,r]);return}let f=this.subscriptions.get(d);f&&f.channels.forEach(y=>{y.receive(t,r)})}notify(e,t,r){let d=this._remoteToLocal[e];if(!d)return;let f=this.subscriptions.get(d);f&&f.channels.forEach(y=>y.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 Hp={debug:0,info:1,warn:2,error:3};class zp{constructor(e){this.level=e||"warn"}log(e,t,r){Hp[e]<Hp[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 Ls extends zp{writeLogEntry(){}}class w1{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let b1=0;class Bp{constructor(e={}){let{logger:t}=e;this.logger=t||new Ls,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 d=Wp(r);if(this.pendingUnsubscriptions[d]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,d),new Promise(w=>{setTimeout(()=>{w(this.subscribe(e,t))},y)})}if(this.pendingSubscriptions[d])return this.logger.warn("subscription is already pending, skipping",d),Promise.reject(Error("Already subscribing"));let f=this.subscribeRetryInterval;return new Promise((y,w)=>{let h=++b1;this.pendingSubscriptions[d]={resolve:y,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(d)),this.maybeRetrySubscribe(h,d,f)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,t,r){setTimeout(()=>{let d=this.pendingSubscriptions[t];d&&d.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 d=this.pendingSubscriptions[t];d&&d.id===e&&(delete this.pendingSubscriptions[t],d.reject(new d1(`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:d,reason:f,reconnect:y}=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 Mr(f);this.reset(w),y===!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 ru)):this.logger.error("subscription not found",{type:t,identifier:r})}if(d)return{identifier:r,message:d};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 jp=()=>Date.now()/1e3|0;class x1 extends Bp{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=jp()),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:d}=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=jp()),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 f=e.restored_ids||Object.keys(this.subscriptionStreams);for(let y of f)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(f)}return this.cable.connected(this.sessionId)}if(t==="presence"){let f=d.type;if(f==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(d))}else if(f==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:t,identifier:r,message:d}}if(d){let f=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:d,meta:f}}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 d=this.presenceInfo[e];return d&&(t.presence=d),t}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let t={},r=!1;if(this.subscriptionStreams[e])for(let d of this.subscriptionStreams[e]){let f=this.streamsPositions[d];f&&(r=!0,t[d]=f)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:t}}trackStreamPosition(e,t,r,d){if(!(!t||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(t),this.streamsPositions[t]={epoch:r,offset:d},{stream:t,epoch:r,offset:d}}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,d)=>{this.pendingPresence[e]={resolve:r,reject:d},this.cable.send({command:"presence",identifier:e,data:t})})}}class A1 extends Ms{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class iu extends Pp{constructor(e,t){super(t),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}jr(iu,"identifier","__ghost__");const C1="$pubsub";class ou extends Pp{async perform(e,t){if(e.startsWith("$"))return super.perform(e,t);throw Error("not implemented")}}jr(ou,"identifier",C1);const lo=Symbol("state");let k1=class{constructor({transport:n,protocol:e,encoder:t,logger:r,lazy:d,hubOptions:f,performFailures:y,transportConfigurator:w}){this.emitter=Qa(),this.transport=n,this.encoder=t,this.logger=r||new Ls,this.protocol=e,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new v1(f||{}),this[lo]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,d===!1&&this.connect().catch(()=>{})}get state(){return this[lo]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[lo]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(t){this.handleClose(t)}return e}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[lo]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new Mr("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[lo]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Mr("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 Mr(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[lo]="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 Mr?n:new Mr(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[lo]="closed";let t=e||new Mr("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:d,message:f,meta:y}=t;r?this.hub.notify(d,r,f):this.hub.transmit(d,f,y)}}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 ou({stream_name:n});return this.subscribe(e)}streamFromSigned(n){let e=new ou({signed_stream_name:n});return this.subscribe(e)}subscribeTo(n,e){let t,r;return typeof n=="string"&&(r=n,n=iu),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 d=await n.acquire("subscribed");if(d.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),d.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),d.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),d.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),d.release();return}let f={identifier:e,params:t};this.logger.debug("subscribing",f);try{let y=await this.protocol.subscribe(e,t);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...f,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof ru&&this.logger.warn("rejected",f),y instanceof Mr){this.logger.debug("disconnected during subscription; will retry on connect",f),d.release();return}this.logger.error("failed to subscribe",{error:y,...f})}n.close(y),this.hub.unsubscribe(r)}d.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(d){d&&(d instanceof Mr?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:d}):this.logger.error("unsubscribe failed",{id:e,error:d}))}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 A1;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 d=r.remoteId,f={id:d,action:e,payload:t};this.logger.debug("perform",f);try{let y=await this.protocol.perform(d,e,t);return y&&this.logger.debug("perform result",{message:y,request:f}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:f}),y}}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(d=>d()),e(r)})),t.push(this.on("disconnect",r=>{t.forEach(d=>d()),e(r)}))}),this._pendingConnect)}};const _1={maxMissingPings:2,maxReconnectAttempts:1/0},Bo=()=>Date.now(),Up=(n,e)=>{e=e||{};let{backoffRate:t,jitterRatio:r,maxInterval:d}=e;return t=t||2,r===void 0&&(r=.5),f=>{let y=n*t**f,w=y*t,h=y+(w-y)*Math.random(),p=2*(Math.random()-.5)*r;return h=h*(1+p),d&&d<h&&(h=d),h}};let Vp=class{constructor({pingInterval:n,...e}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(e=Object.assign({},_1,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 Ls,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Bo()}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=Bo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Bo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Bo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Bo()})),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=Bo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new f1))}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 S1{constructor(e,t={}){this.transports=e,this.transport=null,this.emitter=Qa(),this.unbind=[],this.logger=t.logger||new Ls}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)})}setToken(e,t){this.transports.forEach(r=>{r.setToken(e,t)})}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});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 $1{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=Qa();let{format:d,subprotocol:f,authStrategy:y}=t;this.format=d||"text",this.connectionOptions=t.websocketOptions,this.authStrategy=y||"param",this.authProtocol="",this.subprotocol=f}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,r)=>{let d=[];d.push(this.once("open",()=>{d.forEach(f=>f()),t()})),d.push(this.once("close",()=>{d.forEach(f=>f()),r(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,t){let r=new URL(this.url);r.searchParams.set(e,t);let d=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(d)}setToken(e,t="jid"){if(this.authStrategy==="param")this.setParam(t,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${t}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(d=>d.toLowerCase()===r)||r,this.connectionOptions.headers[r]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}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,(...d)=>{r(),t(...d)});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 qp={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function T1(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({},qp,e);let{protocol:t,websocketImplementation:r,websocketFormat:d,websocketOptions:f,websocketAuthStrategy:y,fallbacks:w,logLevel:h,logger:p,transport:s,encoder:c,lazy:a,monitor:l,pingInterval:o,reconnectStrategy:u,maxMissingPings:m,maxReconnectAttempts:v,subprotocol:b,tokenRefresher:R,historyTimestamp:$,protocolOptions:C,concurrentSubscribes:x,performFailures:T,transportConfigurator:E,auth:L}=e;if(p=p||new Ls(h),typeof t=="string"){b=b||t;let _=t.substring(0,t.lastIndexOf("-")),A=t.substring(t.lastIndexOf("-")+1);if(C=C||{},_==="actioncable-v1")t=new Bp({logger:p,...C});else if(_==="actioncable-v1-ext")t=new x1({logger:p,historyTimestamp:$,...C});else throw Error(`Protocol is not supported yet: ${t}`);if(A==="json")c=c||new w1,d=d||"text";else if(A==="msgpack"){if(d="binary",!c)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(A==="protobuf"){if(d=d||"binary",!c)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");s=s||new $1(n,{websocketImplementation:r,websocketOptions:f,subprotocol:b,authStrategy:y,format:d}),w&&(s=new S1([s,...w],{logger:p})),L&&L.token&&s.setToken(L.token,L.param||"jid"),u=u||Up(o),l!==!1&&(l=l||new Vp({pingInterval:o,reconnectStrategy:u,maxMissingPings:m,maxReconnectAttempts:v,logger:p}));let I={concurrentSubscribes:x},N=new k1({protocol:t,transport:s,encoder:c,logger:p,lazy:a,hubOptions:I,performFailures:T,transportConfigurator:E});return l&&(l.watch(N),N.monitor=l),R&&I1(N,async()=>{try{await R(s)}catch(_){return p.error("Failed to refresh authentication token: "+_),!1}return N.connect().catch(()=>{}),!0}),N}function I1(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 E1{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 R1 extends iu{constructor(e,t,r){super(e,t),this.subscription=new E1(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",d=>this.subscription.notify("received",d)),this.on("close",d=>{d&&d instanceof ru?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class M1{constructor(e){this.cable=e}create(e,t){let r,d;typeof e=="object"?(r=e.channel,delete e.channel,d=e):(r=e,d={});let f=new R1(r,d,t);return f.subscription.notify("initialized"),this.cable.subscribe(f),f.subscription}findAll(e){return this.cable.hub.channels.filter(t=>t.identifier===e).map(t=>t.subscription)}}class L1{constructor(e){this.cable=e,this.subscriptions=new M1(e)}}class O1 extends zp{writeLogEntry(e,t,r){r?console[e](t,r):console[e](t)}}class D1 extends Vp{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=d=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:d})},r=()=>this.disconnect(new Mr("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 N1=["cable","action-cable"],F1="/cable",Za=(n,e)=>{for(let t of N1){let r=n.head.querySelector(`meta[name='${t}-${e}']`);if(r)return r.getAttribute("content")}},Gp=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,W1=()=>{if(typeof document<"u"&&document.head){let n=Za(document,"url");if(n)return Gp(n)}return Gp(F1)},P1=()=>{if(typeof document<"u"&&document.head){let n=Za(document,"history-timestamp");if(n)return n|0}},H1=()=>{if(typeof document<"u"&&document.head)return Za(document,"token")},z1=()=>{if(typeof document<"u"&&document.head)return Za(document,"token-param")};function B1(n,e){typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),n=n||W1(),e=e||{},e.historyTimestamp||(e.historyTimestamp=P1());let t=H1();if(t){let p=z1();e.auth=Object.assign({token:t,param:p},e.auth||{})}e=Object.assign({},qp,e);let{logLevel:r,logger:d,pingInterval:f,reconnectStrategy:y,maxMissingPings:w,maxReconnectAttempts:h}=e;return d=e.logger=e.logger||new O1(r),y=e.reconnectStrategy=e.reconnectStrategy||Up(f),e.monitor!==!1&&(e.monitor=e.monitor||new D1({pingInterval:f,reconnectStrategy:y,maxMissingPings:w,maxReconnectAttempts:h,logger:d})),T1(n,e)}function j1(n,e){let t=B1(n,e);return new L1(t)}class U1{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={},d={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(f=>{if(f&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=j1(y)}return this._cable.subscriptions.create({channel:e,...d},r)})}recordPing(){}}dn("R",U1);class su{constructor(e,t,r="",d=""){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=d}}dn("w",su);class V1{constructor(){jr(this,"keyword",null),jr(this,"parameters",[]),jr(this,"filename",""),jr(this,"line",""),jr(this,"lineNumber",0),jr(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,t,r=""){for(let d=1;d<=e;d++)if(this.parameters[d-1]===void 0)throw new su(this,`Not enough parameters for ${this.keyword}.`,r,this.url);if(t&&this.parameters[t]!==void 0)throw new su(this,`Too many parameters for ${this.keyword}.`,r,this.url)}remove_quotes(e){if(e.length<2)return e;let t=e.charAt(0);if(t!=='"'&&t!=="'")return e;let r=e.charAt(e.length-1);return t!==r?e:e.substring(1,e.length-1)}scan_string(e,t){if(!t.global)throw"rx must have 'global' flag set";let r=[];return e.replace(t,function(d){return r.push(d),d}),r}parse_string(e,t,r,d,f){let y=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let w=e.split(`
|
1381
|
+
`),h=w.length;for(let p=0;p<h;p++){this.lineNumber=p+1;let s=w[p].trim();if(s.length===0)continue;if(y===!0){if(s[0]==="#")continue;s=s.substring(1,s.length)}let c=s.charAt(s.length-1),a=!1;switch(c){case"+":a=!0;case"\\":let v=s.substring(0,s.length-1).trim();this.line+=v.substring(0,v.length-1),a&&(this.line+=`
|
1382
|
+
`),y=!0;continue;case"&":this.line+=s.substring(0,s.length-1);continue;default:this.line+=s}y=!1;let l=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,o=this.scan_string(this.line,l),u="";if(o.length>0&&(u=u+o[0]),u.length===0||u.charAt(0)==="#"?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],this.keyword===null){r&&f(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=o.length;if(m>1)for(let v=1;v<m;v++){let b=o[v];if(b.length>0&&b.charAt(0)==="#")break;d?this.parameters.push(this.remove_quotes(b)):this.parameters.push(b)}f(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}function au(n){return q1.test(n)}const q1=/^-?[0-9]+$/;function Yp(n){return G1.test(n)}const G1=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Kp(n,e){const t=Number.parseFloat(n),r=String(t),d=Qp(n),f=Qp(r);return!!(d===f||(e==null?void 0:e.approx)===!0&&!au(n)&&f.length>=14&&d.startsWith(f.substring(0,14)))}let Os=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function Y1(n){if(Kp(n,{approx:!1}))return;if(au(n))return Os.truncate_integer;const e=Number.parseFloat(n);return Number.isFinite(e)?e===0?Os.underflow:Os.truncate_float:Os.overflow}function Qp(n){return n.replace(K1,"").replace(Z1,"").replace(X1,"").replace(Q1,"")}const K1=/[eE][+-]?\d+$/,Q1=/^-?(0*)?/,Z1=/\./,X1=/0+$/;class J1{constructor(e){if(jr(this,"isLosslessNumber",!0),!Yp(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=Y1(this.value);if(e===void 0||e===Os.truncate_float)return Number.parseFloat(this.value);if(au(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function eA(n){return n&&typeof n=="object"&&n.isLosslessNumber===!0||!1}function tA(n){return new J1(n)}function nA(n,e){return lu({"":n},"",n,e)}function lu(n,e,t,r){return Array.isArray(t)?r.call(n,e,iA(t,r)):t&&typeof t=="object"&&!eA(t)?r.call(n,e,rA(t,r)):r.call(n,e,t)}function rA(n,e){for(const t of Object.keys(n)){const r=lu(n,t,n[t],e);r!==void 0?n[t]=r:delete n[t]}return n}function iA(n,e){for(let t=0;t<n.length;t++)n[t]=lu(n,String(t),n[t],e);return n}function oA(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tA,r=0;const d=w();return o(d),m(),e?nA(d,e):d;function f(){if(n.charCodeAt(r)===hA){r++,p();const k={};let M=!0;for(;r<n.length&&n.charCodeAt(r)!==Xp;){M?M=!1:(a(),p());const O=r,F=s();if(F===void 0){R();return}p(),l();const P=w();if(P===void 0){L();return}Object.prototype.hasOwnProperty.call(k,F)&&!cu(P,k[F])&&$(F,O+1),k[F]=P}return n.charCodeAt(r)!==Xp&&C(),r++,k}}function y(){if(n.charCodeAt(r)===dA){r++,p();const k=[];let M=!0;for(;r<n.length&&n.charCodeAt(r)!==Jp;){M?M=!1:a();const O=w();u(O),k.push(O)}return n.charCodeAt(r)!==Jp&&x(),r++,k}}function w(){p();const k=s()??c()??f()??y()??h("true",!0)??h("false",!1)??h("null",null);return p(),k}function h(k,M){if(n.slice(r,r+k.length)===k)return r+=k.length,M}function p(){for(;sA(n.charCodeAt(r));)r++}function s(){if(n.charCodeAt(r)===uu){r++;let k="";for(;r<n.length&&n.charCodeAt(r)!==uu;){if(n.charCodeAt(r)===uA){const M=n[r+1],O=cA[M];O!==void 0?(k+=O,r++):M==="u"?Xa(n.charCodeAt(r+2))&&Xa(n.charCodeAt(r+3))&&Xa(n.charCodeAt(r+4))&&Xa(n.charCodeAt(r+5))?(k+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):I(r):E(r)}else lA(n.charCodeAt(r))?k+=n[r]:T(n[r]);r++}return b(),r++,k}}function c(){const k=r;if(n.charCodeAt(r)===eg&&(r++,v(k)),n.charCodeAt(r)===hu)r++;else if(aA(n.charCodeAt(r)))for(r++;Ja(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===bA)for(r++,v(k);Ja(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===_A||n.charCodeAt(r)===kA)for(r++,(n.charCodeAt(r)===eg||n.charCodeAt(r)===yA)&&r++,v(k);Ja(n.charCodeAt(r));)r++;if(r>k)return t(n.slice(k,r))}function a(){if(n.charCodeAt(r)!==wA)throw new SyntaxError(`Comma ',' expected after value ${A()}`);r++}function l(){if(n.charCodeAt(r)!==xA)throw new SyntaxError(`Colon ':' expected after property name ${A()}`);r++}function o(k){if(k===void 0)throw new SyntaxError(`JSON value expected ${A()}`)}function u(k){if(k===void 0)throw new SyntaxError(`Array item expected ${A()}`)}function m(){if(r<n.length)throw new SyntaxError(`Expected end of input ${A()}`)}function v(k){if(!Ja(n.charCodeAt(r))){const M=n.slice(k,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${A()}`)}}function b(){if(n.charCodeAt(r)!==uu)throw new SyntaxError(`End of string '"' expected ${A()}`)}function R(){throw new SyntaxError(`Quoted object key expected ${A()}`)}function $(k,M){throw new SyntaxError(`Duplicate key '${k}' encountered at position ${M}`)}function C(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${A()}`)}function x(){throw new SyntaxError(`Array item or end of array ']' expected ${A()}`)}function T(k){throw new SyntaxError(`Invalid character '${k}' ${N()}`)}function E(k){const M=n.slice(k,k+2);throw new SyntaxError(`Invalid escape character '${M}' ${N()}`)}function L(){throw new SyntaxError(`Object value expected after ':' ${N()}`)}function I(k){const M=n.slice(k,k+6);throw new SyntaxError(`Invalid unicode character '${M}' ${N()}`)}function N(){return`at position ${r}`}function _(){return r<n.length?`but got '${n[r]}'`:"but reached end of input"}function A(){return`${_()} ${N()}`}}function sA(n){return n===fA||n===pA||n===gA||n===mA}function Xa(n){return n>=hu&&n<=du||n>=AA&&n<=SA||n>=CA&&n<=$A}function Ja(n){return n>=hu&&n<=du}function aA(n){return n>=vA&&n<=du}function lA(n){return n>=32&&n<=1114111}function cu(n,e){return n===e?!0:Array.isArray(n)&&Array.isArray(e)?n.length===e.length&&n.every((t,r)=>cu(t,e[r])):Zp(n)&&Zp(e)?[...new Set([...Object.keys(n),...Object.keys(e)])].every(t=>cu(n[t],e[t])):!1}function Zp(n){return typeof n=="object"&&n!==null}const cA={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
1383
|
+
`,r:"\r",t:" "},uA=92,hA=123,Xp=125,dA=91,Jp=93,fA=32,pA=10,gA=9,mA=13,uu=34,yA=43,eg=45,hu=48,vA=49,du=57,wA=44,bA=46,xA=58,AA=65,CA=97,kA=69,_A=101,SA=70,$A=102;function tg(n,e,t,r){return d(n);function d(h,p){if(Array.isArray(r)){const s=r.find(c=>c.test(h));if(s){const c=s.stringify(h);if(typeof c!="string"||!Yp(c))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${c})`);return c}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return f(h);if(h&&typeof h=="object")return y(h)}function f(h,p){if(h.length===0)return"[]";let s="[";for(let c=0;c<h.length;c++){const a=h[c];typeof a<"u"&&typeof a!="function"?s+=d(a):s+="null",c<h.length-1&&(s+=",")}return s+="]",s}function y(h,p){if(typeof h.toJSON=="function")return tg(h.toJSON(),e,t,void 0);const s=Array.isArray(e)?e.map(String):Object.keys(h);if(s.length===0)return"{}";let c=!0,a="{";for(const l of s){const o=h[l];if(w(l,o)){c?c=!1:a+=",";const u=JSON.stringify(l);a+=`${u}:`,a+=d(o)}}return a+="}",a}function w(h,p){return typeof p<"u"&&typeof p!="function"&&typeof p!="symbol"}}function TA(n){return Kp(n)?parseFloat(n):BigInt(n)}class fu{constructor(){jr(this,"id",1)}async exec(e,t,r={},d={},f=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,d.manual=!0,(await tu.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",...d},timeout:f,transformRequest:[(y,w)=>tg(y)],transformResponse:[y=>oA(y,void 0,TA)]})).data.result}catch(y){let w=new Error;throw y.response?(w.name=y.response.data.error.data.class,w.message=y.response.data.error.data.message,w.object=y.response.data.error):y.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,d=30){const f=await this.exec("get_tlm_packet",[e,t],{type:r,stale_time:d});if(f!=null){let y=f.length,w=null;for(let h=0;h<y;h++)w=this.decode_openc3_type(f[h][1]),w!==null&&(f[h][1]=w)}return f}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 d={stale_time:t};r!==null&&(d.cache_timeout=r);const f=await this.exec("get_tlm_values",[e],d,{},1e4);let y=f[0].length,w=null;for(let h=0;h<y;h++)w=this.decode_openc3_type(f[0][h]),w!==null&&(f[0][h]=w);return f}get_limits(e,t,r){return this.exec("get_limits",[e,t,r])}async tlm(e,t,r,d="CONVERTED"){let f=null;if(t===void 0)f=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))f=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 f=await this.exec("tlm",[e,t,r],{type:d});let y=this.decode_openc3_type(f);return y!==null&&(f=y),f}async inject_tlm(e,t,r=null,d="CONVERTED"){await this.exec("inject_tlm",[e,t,r],{type:d})}set_tlm(e,t,r,d){return this.exec("set_tlm",[e,t,r],{type:d})}override_tlm(e,t,r,d){return this.exec("override_tlm",[e,t,r],{type:d})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,r,d){return this.exec("normalize_tlm",[e,t,r],{type:d})}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,d="CONVERTED"){return this.exec("get_cmd_value",[e,t,r,d])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,r,d,f){let y=null;for(let w in d)Object.prototype.hasOwnProperty.call(d,w)&&(y=this.encode_openc3_type(d[w]),y!==null&&(d[w]=y));return this.exec(e,[t,r,d],{},f)}get_cmd_hazardous(e,t,r,d={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},d):this._cmd("get_cmd_hazardous",e,t,r,d)}cmd(e,t,r,d={}){return t===void 0?this.exec("cmd",e,{},d):this._cmd("cmd",e,t,r,d)}cmd_no_range_check(e,t,r,d={}){return t===void 0?this.exec("cmd_no_range_check",e,{},d):this._cmd("cmd_no_range_check",e,t,r,d)}cmd_raw(e,t,r,d={}){return t===void 0?this.exec("cmd_raw",e,{},d):this._cmd("cmd_raw",e,t,r,d)}cmd_raw_no_range_check(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,{},d):this._cmd("cmd_raw_no_range_check",e,t,r,d)}cmd_no_hazardous_check(e,t,r,d={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,{},d):this._cmd("cmd_no_hazardous_check",e,t,r,d)}cmd_no_checks(e,t,r,d={}){return t===void 0?this.exec("cmd_no_checks",e,{},d):this._cmd("cmd_no_checks",e,t,r,d)}cmd_raw_no_hazardous_check(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},d):this._cmd("cmd_raw_no_hazardous_check",e,t,r,d)}cmd_raw_no_checks(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_checks",e,{},d):this._cmd("cmd_raw_no_checks",e,t,r,d)}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),d=new Uint8Array(r);return Array.from(d).map(f=>f.toString(16).padStart(2,"0")).join("")}}}dn("O",fu);var el={exports:{}};/**
|
1384
|
+
* @license
|
1385
|
+
* Lodash <https://lodash.com/>
|
1386
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1387
|
+
* Released under MIT license <https://lodash.com/license>
|
1388
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1389
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1390
|
+
*/var IA=el.exports,ng;function EA(){return ng||(ng=1,function(n,e){(function(){var t,r="4.17.21",d=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,s="__lodash_placeholder__",c=1,a=2,l=4,o=1,u=2,m=1,v=2,b=4,R=8,$=16,C=32,x=64,T=128,E=256,L=512,I=30,N="...",_=800,A=16,k=1,M=2,O=3,F=1/0,P=9007199254740991,j=17976931348623157e292,V=NaN,q=4294967295,J=q-1,G=q>>>1,Z=[["ary",T],["bind",m],["bindKey",v],["curry",R],["curryRight",$],["flip",L],["partial",C],["partialRight",x],["rearg",E]],re="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",ye="[object Boolean]",we="[object Date]",pe="[object DOMException]",ke="[object Error]",at="[object Function]",Pt="[object GeneratorFunction]",dt="[object Map]",gt="[object Number]",cn="[object Null]",Dt="[object Object]",Kt="[object Promise]",Qr="[object Proxy]",Cn="[object RegExp]",en="[object Set]",We="[object String]",ze="[object Symbol]",tn="[object Undefined]",je="[object WeakMap]",ce="[object WeakSet]",Te="[object ArrayBuffer]",Me="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",ft="[object Int8Array]",pt="[object Int16Array]",ct="[object Int32Array]",ut="[object Uint8Array]",rt="[object Uint8ClampedArray]",jt="[object Uint16Array]",Wn="[object Uint32Array]",di=/\b__p \+= '';/g,er=/\b(__p \+=) '' \+/g,Ks=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qs=/&(?:amp|lt|gt|quot|#39);/g,Ml=/[&<>"']/g,Jh=RegExp(Qs.source),ed=RegExp(Ml.source),td=/<%-([\s\S]+?)%>/g,nd=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,Zr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xr=/[\\^$.*+?()[\]{}|]/g,Li=RegExp(Xr.source),Pn=/^\s+/,Oi=/\s/,Di=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ll=/\{\n\/\* \[wrapped with (.+)\] \*/,Ol=/,? & /,rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,id=/[()=,{}\[\]\/\s]/,pi=/\\(\\)?/g,od=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ni=/\w*$/,Dl=/^[-+]0x[0-9a-f]+$/i,Jr=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,mn=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,rs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hn=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,bo="\\ud800-\\udfff",Zs="\\u0300-\\u036f",is="\\ufe20-\\ufe2f",Fi="\\u20d0-\\u20ff",os=Zs+is+Fi,ss="\\u2700-\\u27bf",as="a-z\\xdf-\\xf6\\xf8-\\xff",Xs="\\xac\\xb1\\xd7\\xf7",Js="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ea="\\u2000-\\u206f",ta=" \\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",xr="A-Z\\xc0-\\xd6\\xd8-\\xde",na="\\ufe0e\\ufe0f",ra=Xs+Js+ea+ta,xo="['’]",Nl="["+bo+"]",Fl="["+ra+"]",ls="["+os+"]",Wl="\\d+",Pl="["+ss+"]",ia="["+as+"]",Hl="[^"+bo+ra+Wl+ss+as+xr+"]",cs="\\ud83c[\\udffb-\\udfff]",oa="(?:"+ls+"|"+cs+")",Ao="[^"+bo+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",sa="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+xr+"]",zl="\\u200d",Bl="(?:"+ia+"|"+Hl+")",sd="(?:"+ei+"|"+Hl+")",gi="(?:"+xo+"(?:d|ll|m|re|s|t|ve))?",Co="(?:"+xo+"(?:D|LL|M|RE|S|T|VE))?",us=oa+"?",Pi="["+na+"]?",ad="(?:"+zl+"(?:"+[Ao,Wi,sa].join("|")+")"+Pi+us+")*",Hi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ld="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",aa=Pi+us+ad,la="(?:"+[Pl,Wi,sa].join("|")+")"+aa,ca="(?:"+[Ao+ls+"?",ls,Wi,sa,Nl].join("|")+")",ua=RegExp(xo,"g"),zi=RegExp(ls,"g"),ti=RegExp(cs+"(?="+cs+")|"+ca+aa,"g"),jl=RegExp([ei+"?"+ia+"+"+gi+"(?="+[Fl,ei,"$"].join("|")+")",sd+"+"+Co+"(?="+[Fl,ei+Bl,"$"].join("|")+")",ei+"?"+Bl+"+"+gi,ei+"+"+Co,ld,Hi,Wl,la].join("|"),"g"),Ul=RegExp("["+zl+bo+os+na+"]"),Bi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ji=["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"],Vl=-1,Mt={};Mt[qe]=Mt[Ye]=Mt[ft]=Mt[pt]=Mt[ct]=Mt[ut]=Mt[rt]=Mt[jt]=Mt[Wn]=!0,Mt[re]=Mt[X]=Mt[Te]=Mt[ye]=Mt[Me]=Mt[we]=Mt[ke]=Mt[at]=Mt[dt]=Mt[gt]=Mt[Dt]=Mt[Cn]=Mt[en]=Mt[We]=Mt[je]=!1;var He={};He[re]=He[X]=He[Te]=He[Me]=He[ye]=He[we]=He[qe]=He[Ye]=He[ft]=He[pt]=He[ct]=He[dt]=He[gt]=He[Dt]=He[Cn]=He[en]=He[We]=He[ze]=He[ut]=He[rt]=He[jt]=He[Wn]=!0,He[ke]=He[at]=He[je]=!1;var Ht={À:"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"},ni={"&":"&","<":"<",">":">",'"':""","'":"'"},_n={"&":"&","<":"<",">":">",""":'"',"'":"'"},vn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wn=parseFloat,Nt=parseInt,mi=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,hs=typeof self=="object"&&self&&self.Object===Object&&self,Sn=mi||hs||Function("return this")(),Ar=e&&!e.nodeType&&e,Rn=Ar&&!0&&n&&!n.nodeType&&n,ql=Rn&&Rn.exports===Ar,ha=ql&&mi.process,tr=function(){try{var ne=Rn&&Rn.require&&Rn.require("util").types;return ne||ha&&ha.binding&&ha.binding("util")}catch{}}(),Gl=tr&&tr.isArrayBuffer,Cr=tr&&tr.isDate,Nr=tr&&tr.isMap,ri=tr&&tr.isRegExp,yi=tr&&tr.isSet,Yl=tr&&tr.isTypedArray;function Vt(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 cd(ne,le,se,_e){for(var Fe=-1,Qe=ne==null?0:ne.length;++Fe<Qe;){var $t=ne[Fe];le(_e,$t,se($t),ne)}return _e}function Gn(ne,le){for(var se=-1,_e=ne==null?0:ne.length;++se<_e&&le(ne[se],se,ne)!==!1;);return ne}function Kl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Ui(ne,le){for(var se=-1,_e=ne==null?0:ne.length;++se<_e;)if(!le(ne[se],se,ne))return!1;return!0}function nr(ne,le){for(var se=-1,_e=ne==null?0:ne.length,Fe=0,Qe=[];++se<_e;){var $t=ne[se];le($t,se,ne)&&(Qe[Fe++]=$t)}return Qe}function ds(ne,le){var se=ne==null?0:ne.length;return!!se&&vi(ne,le,0)>-1}function ko(ne,le,se){for(var _e=-1,Fe=ne==null?0:ne.length;++_e<Fe;)if(se(le,ne[_e]))return!0;return!1}function zt(ne,le){for(var se=-1,_e=ne==null?0:ne.length,Fe=Array(_e);++se<_e;)Fe[se]=le(ne[se],se,ne);return Fe}function zn(ne,le){for(var se=-1,_e=le.length,Fe=ne.length;++se<_e;)ne[Fe+se]=le[se];return ne}function kr(ne,le,se,_e){var Fe=-1,Qe=ne==null?0:ne.length;for(_e&&Qe&&(se=ne[++Fe]);++Fe<Qe;)se=le(se,ne[Fe],Fe,ne);return se}function _o(ne,le,se,_e){var Fe=ne==null?0:ne.length;for(_e&&Fe&&(se=ne[--Fe]);Fe--;)se=le(se,ne[Fe],Fe,ne);return se}function fs(ne,le){for(var se=-1,_e=ne==null?0:ne.length;++se<_e;)if(le(ne[se],se,ne))return!0;return!1}var da=ya("length");function fa(ne){return ne.split("")}function ps(ne){return ne.match(rd)||[]}function pa(ne,le,se){var _e;return se(ne,function(Fe,Qe,$t){if(le(Fe,Qe,$t))return _e=Qe,!1}),_e}function So(ne,le,se,_e){for(var Fe=ne.length,Qe=se+(_e?1:-1);_e?Qe--:++Qe<Fe;)if(le(ne[Qe],Qe,ne))return Qe;return-1}function vi(ne,le,se){return le===le?Ke(ne,le,se):So(ne,ga,se)}function Ql(ne,le,se,_e){for(var Fe=se-1,Qe=ne.length;++Fe<Qe;)if(_e(ne[Fe],le))return Fe;return-1}function ga(ne){return ne!==ne}function ma(ne,le){var se=ne==null?0:ne.length;return se?qi(ne,le)/se:V}function ya(ne){return function(le){return le==null?t:le[ne]}}function gs(ne){return function(le){return ne==null?t:ne[le]}}function va(ne,le,se,_e,Fe){return Fe(ne,function(Qe,$t,Xe){se=_e?(_e=!1,Qe):le(se,Qe,$t,Xe)}),se}function Vi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function qi(ne,le){for(var se,_e=-1,Fe=ne.length;++_e<Fe;){var Qe=le(ne[_e]);Qe!==t&&(se=se===t?Qe:se+Qe)}return se}function nn(ne,le){for(var se=-1,_e=Array(ne);++se<ne;)_e[se]=le(se);return _e}function Zl(ne,le){return zt(le,function(se){return[se,ne[se]]})}function Qt(ne){return ne&&ne.slice(0,Ze(ne)+1).replace(Pn,"")}function Bn(ne){return function(le){return ne(le)}}function $o(ne,le){return zt(le,function(se){return ne[se]})}function Fr(ne,le){return ne.has(le)}function Xl(ne,le){for(var se=-1,_e=ne.length;++se<_e&&vi(le,ne[se],0)>-1;);return se}function Jl(ne,le){for(var se=ne.length;se--&&vi(le,ne[se],0)>-1;);return se}function wa(ne,le){for(var se=ne.length,_e=0;se--;)ne[se]===le&&++_e;return _e}var W=gs(Ht),z=gs(ni);function Y(ne){return"\\"+vn[ne]}function K(ne,le){return ne==null?t:ne[le]}function te(ne){return Ul.test(ne)}function oe(ne){return Bi.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function be(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(_e,Fe){se[++le]=[Fe,_e]}),se}function Ae(ne,le){return function(se){return ne(le(se))}}function Ce(ne,le){for(var se=-1,_e=ne.length,Fe=0,Qe=[];++se<_e;){var $t=ne[se];($t===le||$t===s)&&(ne[se]=s,Qe[Fe++]=se)}return Qe}function Se(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(_e){se[++le]=_e}),se}function Ee(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(_e){se[++le]=[_e,_e]}),se}function Ke(ne,le,se){for(var _e=se-1,Fe=ne.length;++_e<Fe;)if(ne[_e]===le)return _e;return-1}function Et(ne,le,se){for(var _e=se+1;_e--;)if(ne[_e]===le)return _e;return _e}function it(ne){return te(ne)?St(ne):da(ne)}function Ge(ne){return te(ne)?Zt(ne):fa(ne)}function Ze(ne){for(var le=ne.length;le--&&Oi.test(ne.charAt(le)););return le}var Le=gs(_n);function St(ne){for(var le=ti.lastIndex=0;ti.test(ne);)++le;return le}function Zt(ne){return ne.match(ti)||[]}function qt(ne){return ne.match(jl)||[]}var Ft=function ne(le){le=le==null?Sn:Wt.defaults(Sn.Object(),le,Wt.pick(Sn,ji));var se=le.Array,_e=le.Date,Fe=le.Error,Qe=le.Function,$t=le.Math,Xe=le.Object,$n=le.RegExp,Yn=le.String,Tn=le.TypeError,fr=se.prototype,rr=Qe.prototype,ms=Xe.prototype,ec=le["__core-js_shared__"],tc=rr.toString,Rt=ms.hasOwnProperty,DI=0,Sv=function(){var i=/[^.]+$/.exec(ec&&ec.keys&&ec.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),nc=ms.toString,NI=tc.call(Xe),FI=Sn._,WI=$n("^"+tc.call(Rt).replace(Xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rc=ql?le.Buffer:t,Gi=le.Symbol,ic=le.Uint8Array,$v=rc?rc.allocUnsafe:t,oc=Ae(Xe.getPrototypeOf,Xe),Tv=Xe.create,Iv=ms.propertyIsEnumerable,sc=fr.splice,Ev=Gi?Gi.isConcatSpreadable:t,ba=Gi?Gi.iterator:t,To=Gi?Gi.toStringTag:t,ac=function(){try{var i=Lo(Xe,"defineProperty");return i({},"",{}),i}catch{}}(),PI=le.clearTimeout!==Sn.clearTimeout&&le.clearTimeout,HI=_e&&_e.now!==Sn.Date.now&&_e.now,zI=le.setTimeout!==Sn.setTimeout&&le.setTimeout,lc=$t.ceil,cc=$t.floor,ud=Xe.getOwnPropertySymbols,BI=rc?rc.isBuffer:t,Rv=le.isFinite,jI=fr.join,UI=Ae(Xe.keys,Xe),In=$t.max,jn=$t.min,VI=_e.now,qI=le.parseInt,Mv=$t.random,GI=fr.reverse,hd=Lo(le,"DataView"),xa=Lo(le,"Map"),dd=Lo(le,"Promise"),ys=Lo(le,"Set"),Aa=Lo(le,"WeakMap"),Ca=Lo(Xe,"create"),uc=Aa&&new Aa,vs={},YI=Oo(hd),KI=Oo(xa),QI=Oo(dd),ZI=Oo(ys),XI=Oo(Aa),hc=Gi?Gi.prototype:t,ka=hc?hc.valueOf:t,Lv=hc?hc.toString:t;function B(i){if(rn(i)&&!Je(i)&&!(i instanceof vt)){if(i instanceof _r)return i;if(Rt.call(i,"__wrapped__"))return Ow(i)}return new _r(i)}var ws=function(){function i(){}return function(g){if(!Xt(g))return{};if(Tv)return Tv(g);i.prototype=g;var S=new i;return i.prototype=t,S}}();function dc(){}function _r(i,g){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=t}B.templateSettings={escape:td,evaluate:nd,interpolate:Pe,variable:"",imports:{_:B}},B.prototype=dc.prototype,B.prototype.constructor=B,_r.prototype=ws(dc.prototype),_r.prototype.constructor=_r;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function JI(){var i=new vt(this.__wrapped__);return i.__actions__=ir(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ir(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ir(this.__views__),i}function eE(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function tE(){var i=this.__wrapped__.value(),g=this.__dir__,S=Je(i),D=g<0,H=S?i.length:0,U=fR(0,H,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ve=ge.length,$e=0,Oe=jn(ie,this.__takeCount__);if(!S||!D&&H==ie&&Oe==ie)return rw(i,this.__actions__);var Ue=[];e:for(;ie--&&$e<Oe;){fe+=g;for(var lt=-1,Ve=i[fe];++lt<ve;){var mt=ge[lt],wt=mt.iteratee,mr=mt.type,Zn=wt(Ve);if(mr==M)Ve=Zn;else if(!Zn){if(mr==k)continue e;break e}}Ue[$e++]=Ve}return Ue}vt.prototype=ws(dc.prototype),vt.prototype.constructor=vt;function Io(i){var g=-1,S=i==null?0:i.length;for(this.clear();++g<S;){var D=i[g];this.set(D[0],D[1])}}function nE(){this.__data__=Ca?Ca(null):{},this.size=0}function rE(i){var g=this.has(i)&&delete this.__data__[i];return this.size-=g?1:0,g}function iE(i){var g=this.__data__;if(Ca){var S=g[i];return S===h?t:S}return Rt.call(g,i)?g[i]:t}function oE(i){var g=this.__data__;return Ca?g[i]!==t:Rt.call(g,i)}function sE(i,g){var S=this.__data__;return this.size+=this.has(i)?0:1,S[i]=Ca&&g===t?h:g,this}Io.prototype.clear=nE,Io.prototype.delete=rE,Io.prototype.get=iE,Io.prototype.has=oE,Io.prototype.set=sE;function wi(i){var g=-1,S=i==null?0:i.length;for(this.clear();++g<S;){var D=i[g];this.set(D[0],D[1])}}function aE(){this.__data__=[],this.size=0}function lE(i){var g=this.__data__,S=fc(g,i);if(S<0)return!1;var D=g.length-1;return S==D?g.pop():sc.call(g,S,1),--this.size,!0}function cE(i){var g=this.__data__,S=fc(g,i);return S<0?t:g[S][1]}function uE(i){return fc(this.__data__,i)>-1}function hE(i,g){var S=this.__data__,D=fc(S,i);return D<0?(++this.size,S.push([i,g])):S[D][1]=g,this}wi.prototype.clear=aE,wi.prototype.delete=lE,wi.prototype.get=cE,wi.prototype.has=uE,wi.prototype.set=hE;function bi(i){var g=-1,S=i==null?0:i.length;for(this.clear();++g<S;){var D=i[g];this.set(D[0],D[1])}}function dE(){this.size=0,this.__data__={hash:new Io,map:new(xa||wi),string:new Io}}function fE(i){var g=_c(this,i).delete(i);return this.size-=g?1:0,g}function pE(i){return _c(this,i).get(i)}function gE(i){return _c(this,i).has(i)}function mE(i,g){var S=_c(this,i),D=S.size;return S.set(i,g),this.size+=S.size==D?0:1,this}bi.prototype.clear=dE,bi.prototype.delete=fE,bi.prototype.get=pE,bi.prototype.has=gE,bi.prototype.set=mE;function Eo(i){var g=-1,S=i==null?0:i.length;for(this.__data__=new bi;++g<S;)this.add(i[g])}function yE(i){return this.__data__.set(i,h),this}function vE(i){return this.__data__.has(i)}Eo.prototype.add=Eo.prototype.push=yE,Eo.prototype.has=vE;function Wr(i){var g=this.__data__=new wi(i);this.size=g.size}function wE(){this.__data__=new wi,this.size=0}function bE(i){var g=this.__data__,S=g.delete(i);return this.size=g.size,S}function xE(i){return this.__data__.get(i)}function AE(i){return this.__data__.has(i)}function CE(i,g){var S=this.__data__;if(S instanceof wi){var D=S.__data__;if(!xa||D.length<d-1)return D.push([i,g]),this.size=++S.size,this;S=this.__data__=new bi(D)}return S.set(i,g),this.size=S.size,this}Wr.prototype.clear=wE,Wr.prototype.delete=bE,Wr.prototype.get=xE,Wr.prototype.has=AE,Wr.prototype.set=CE;function Ov(i,g){var S=Je(i),D=!S&&Do(i),H=!S&&!D&&Xi(i),U=!S&&!D&&!H&&Cs(i),Q=S||D||H||U,ee=Q?nn(i.length,Yn):[],ie=ee.length;for(var fe in i)(g||Rt.call(i,fe))&&!(Q&&(fe=="length"||H&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||ki(fe,ie)))&&ee.push(fe);return ee}function Dv(i){var g=i.length;return g?i[Cd(0,g-1)]:t}function kE(i,g){return Sc(ir(i),Ro(g,0,i.length))}function _E(i){return Sc(ir(i))}function fd(i,g,S){(S!==t&&!Pr(i[g],S)||S===t&&!(g in i))&&xi(i,g,S)}function _a(i,g,S){var D=i[g];(!(Rt.call(i,g)&&Pr(D,S))||S===t&&!(g in i))&&xi(i,g,S)}function fc(i,g){for(var S=i.length;S--;)if(Pr(i[S][0],g))return S;return-1}function SE(i,g,S,D){return Yi(i,function(H,U,Q){g(D,H,S(H),Q)}),D}function Nv(i,g){return i&&oi(g,Mn(g),i)}function $E(i,g){return i&&oi(g,sr(g),i)}function xi(i,g,S){g=="__proto__"&&ac?ac(i,g,{configurable:!0,enumerable:!0,value:S,writable:!0}):i[g]=S}function pd(i,g){for(var S=-1,D=g.length,H=se(D),U=i==null;++S<D;)H[S]=U?t:Yd(i,g[S]);return H}function Ro(i,g,S){return i===i&&(S!==t&&(i=i<=S?i:S),g!==t&&(i=i>=g?i:g)),i}function Sr(i,g,S,D,H,U){var Q,ee=g&c,ie=g&a,fe=g&l;if(S&&(Q=H?S(i,D,H,U):S(i)),Q!==t)return Q;if(!Xt(i))return i;var ge=Je(i);if(ge){if(Q=gR(i),!ee)return ir(i,Q)}else{var ve=Un(i),$e=ve==at||ve==Pt;if(Xi(i))return sw(i,ee);if(ve==Dt||ve==re||$e&&!H){if(Q=ie||$e?{}:_w(i),!ee)return ie?iR(i,$E(Q,i)):rR(i,Nv(Q,i))}else{if(!He[ve])return H?i:{};Q=mR(i,ve,ee)}}U||(U=new Wr);var Oe=U.get(i);if(Oe)return Oe;U.set(i,Q),e0(i)?i.forEach(function(Ve){Q.add(Sr(Ve,g,S,Ve,i,U))}):Xw(i)&&i.forEach(function(Ve,mt){Q.set(mt,Sr(Ve,g,S,mt,i,U))});var Ue=fe?ie?Od:Ld:ie?sr:Mn,lt=ge?t:Ue(i);return Gn(lt||i,function(Ve,mt){lt&&(mt=Ve,Ve=i[mt]),_a(Q,mt,Sr(Ve,g,S,mt,i,U))}),Q}function TE(i){var g=Mn(i);return function(S){return Fv(S,i,g)}}function Fv(i,g,S){var D=S.length;if(i==null)return!D;for(i=Xe(i);D--;){var H=S[D],U=g[H],Q=i[H];if(Q===t&&!(H in i)||!U(Q))return!1}return!0}function Wv(i,g,S){if(typeof i!="function")throw new Tn(y);return Ma(function(){i.apply(t,S)},g)}function Sa(i,g,S,D){var H=-1,U=ds,Q=!0,ee=i.length,ie=[],fe=g.length;if(!ee)return ie;S&&(g=zt(g,Bn(S))),D?(U=ko,Q=!1):g.length>=d&&(U=Fr,Q=!1,g=new Eo(g));e:for(;++H<ee;){var ge=i[H],ve=S==null?ge:S(ge);if(ge=D||ge!==0?ge:0,Q&&ve===ve){for(var $e=fe;$e--;)if(g[$e]===ve)continue e;ie.push(ge)}else U(g,ve,D)||ie.push(ge)}return ie}var Yi=hw(ii),Pv=hw(md,!0);function IE(i,g){var S=!0;return Yi(i,function(D,H,U){return S=!!g(D,H,U),S}),S}function pc(i,g,S){for(var D=-1,H=i.length;++D<H;){var U=i[D],Q=g(U);if(Q!=null&&(ee===t?Q===Q&&!gr(Q):S(Q,ee)))var ee=Q,ie=U}return ie}function EE(i,g,S,D){var H=i.length;for(S=st(S),S<0&&(S=-S>H?0:H+S),D=D===t||D>H?H:st(D),D<0&&(D+=H),D=S>D?0:n0(D);S<D;)i[S++]=g;return i}function Hv(i,g){var S=[];return Yi(i,function(D,H,U){g(D,H,U)&&S.push(D)}),S}function Ln(i,g,S,D,H){var U=-1,Q=i.length;for(S||(S=vR),H||(H=[]);++U<Q;){var ee=i[U];g>0&&S(ee)?g>1?Ln(ee,g-1,S,D,H):zn(H,ee):D||(H[H.length]=ee)}return H}var gd=dw(),zv=dw(!0);function ii(i,g){return i&&gd(i,g,Mn)}function md(i,g){return i&&zv(i,g,Mn)}function gc(i,g){return nr(g,function(S){return _i(i[S])})}function Mo(i,g){g=Qi(g,i);for(var S=0,D=g.length;i!=null&&S<D;)i=i[si(g[S++])];return S&&S==D?i:t}function Bv(i,g,S){var D=g(i);return Je(i)?D:zn(D,S(i))}function Kn(i){return i==null?i===t?tn:cn:To&&To in Xe(i)?dR(i):_R(i)}function yd(i,g){return i>g}function RE(i,g){return i!=null&&Rt.call(i,g)}function ME(i,g){return i!=null&&g in Xe(i)}function LE(i,g,S){return i>=jn(g,S)&&i<In(g,S)}function vd(i,g,S){for(var D=S?ko:ds,H=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&g&&(ge=zt(ge,Bn(g))),ie=jn(ge.length,ie),ee[Q]=!S&&(g||H>=120&&ge.length>=120)?new Eo(Q&&ge):t}ge=i[0];var ve=-1,$e=ee[0];e:for(;++ve<H&&fe.length<ie;){var Oe=ge[ve],Ue=g?g(Oe):Oe;if(Oe=S||Oe!==0?Oe:0,!($e?Fr($e,Ue):D(fe,Ue,S))){for(Q=U;--Q;){var lt=ee[Q];if(!(lt?Fr(lt,Ue):D(i[Q],Ue,S)))continue e}$e&&$e.push(Ue),fe.push(Oe)}}return fe}function OE(i,g,S,D){return ii(i,function(H,U,Q){g(D,S(H),U,Q)}),D}function $a(i,g,S){g=Qi(g,i),i=Iw(i,g);var D=i==null?i:i[si(Tr(g))];return D==null?t:Vt(D,i,S)}function jv(i){return rn(i)&&Kn(i)==re}function DE(i){return rn(i)&&Kn(i)==Te}function NE(i){return rn(i)&&Kn(i)==we}function Ta(i,g,S,D,H){return i===g?!0:i==null||g==null||!rn(i)&&!rn(g)?i!==i&&g!==g:FE(i,g,S,D,Ta,H)}function FE(i,g,S,D,H,U){var Q=Je(i),ee=Je(g),ie=Q?X:Un(i),fe=ee?X:Un(g);ie=ie==re?Dt:ie,fe=fe==re?Dt:fe;var ge=ie==Dt,ve=fe==Dt,$e=ie==fe;if($e&&Xi(i)){if(!Xi(g))return!1;Q=!0,ge=!1}if($e&&!ge)return U||(U=new Wr),Q||Cs(i)?Aw(i,g,S,D,H,U):uR(i,g,ie,S,D,H,U);if(!(S&o)){var Oe=ge&&Rt.call(i,"__wrapped__"),Ue=ve&&Rt.call(g,"__wrapped__");if(Oe||Ue){var lt=Oe?i.value():i,Ve=Ue?g.value():g;return U||(U=new Wr),H(lt,Ve,S,D,U)}}return $e?(U||(U=new Wr),hR(i,g,S,D,H,U)):!1}function WE(i){return rn(i)&&Un(i)==dt}function wd(i,g,S,D){var H=S.length,U=H,Q=!D;if(i==null)return!U;for(i=Xe(i);H--;){var ee=S[H];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++H<U;){ee=S[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 ve=new Wr;if(D)var $e=D(fe,ge,ie,i,g,ve);if(!($e===t?Ta(ge,fe,o|u,D,ve):$e))return!1}}return!0}function Uv(i){if(!Xt(i)||bR(i))return!1;var g=_i(i)?WI:kn;return g.test(Oo(i))}function PE(i){return rn(i)&&Kn(i)==Cn}function HE(i){return rn(i)&&Un(i)==en}function zE(i){return rn(i)&&Mc(i.length)&&!!Mt[Kn(i)]}function Vv(i){return typeof i=="function"?i:i==null?ar:typeof i=="object"?Je(i)?Yv(i[0],i[1]):Gv(i):f0(i)}function bd(i){if(!Ra(i))return UI(i);var g=[];for(var S in Xe(i))Rt.call(i,S)&&S!="constructor"&&g.push(S);return g}function BE(i){if(!Xt(i))return kR(i);var g=Ra(i),S=[];for(var D in i)D=="constructor"&&(g||!Rt.call(i,D))||S.push(D);return S}function xd(i,g){return i<g}function qv(i,g){var S=-1,D=or(i)?se(i.length):[];return Yi(i,function(H,U,Q){D[++S]=g(H,U,Q)}),D}function Gv(i){var g=Nd(i);return g.length==1&&g[0][2]?$w(g[0][0],g[0][1]):function(S){return S===i||wd(S,i,g)}}function Yv(i,g){return Wd(i)&&Sw(g)?$w(si(i),g):function(S){var D=Yd(S,i);return D===t&&D===g?Kd(S,i):Ta(g,D,o|u)}}function mc(i,g,S,D,H){i!==g&&gd(g,function(U,Q){if(H||(H=new Wr),Xt(U))jE(i,g,Q,S,mc,D,H);else{var ee=D?D(Hd(i,Q),U,Q+"",i,g,H):t;ee===t&&(ee=U),fd(i,Q,ee)}},sr)}function jE(i,g,S,D,H,U,Q){var ee=Hd(i,S),ie=Hd(g,S),fe=Q.get(ie);if(fe){fd(i,S,fe);return}var ge=U?U(ee,ie,S+"",i,g,Q):t,ve=ge===t;if(ve){var $e=Je(ie),Oe=!$e&&Xi(ie),Ue=!$e&&!Oe&&Cs(ie);ge=ie,$e||Oe||Ue?Je(ee)?ge=ee:un(ee)?ge=ir(ee):Oe?(ve=!1,ge=sw(ie,!0)):Ue?(ve=!1,ge=aw(ie,!0)):ge=[]:La(ie)||Do(ie)?(ge=ee,Do(ee)?ge=r0(ee):(!Xt(ee)||_i(ee))&&(ge=_w(ie))):ve=!1}ve&&(Q.set(ie,ge),H(ge,ie,D,U,Q),Q.delete(ie)),fd(i,S,ge)}function Kv(i,g){var S=i.length;if(S)return g+=g<0?S:0,ki(g,S)?i[g]:t}function Qv(i,g,S){g.length?g=zt(g,function(U){return Je(U)?function(Q){return Mo(Q,U.length===1?U[0]:U)}:U}):g=[ar];var D=-1;g=zt(g,Bn(Be()));var H=qv(i,function(U,Q,ee){var ie=zt(g,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return Vi(H,function(U,Q){return nR(U,Q,S)})}function UE(i,g){return Zv(i,g,function(S,D){return Kd(i,D)})}function Zv(i,g,S){for(var D=-1,H=g.length,U={};++D<H;){var Q=g[D],ee=Mo(i,Q);S(ee,Q)&&Ia(U,Qi(Q,i),ee)}return U}function VE(i){return function(g){return Mo(g,i)}}function Ad(i,g,S,D){var H=D?Ql:vi,U=-1,Q=g.length,ee=i;for(i===g&&(g=ir(g)),S&&(ee=zt(i,Bn(S)));++U<Q;)for(var ie=0,fe=g[U],ge=S?S(fe):fe;(ie=H(ee,ge,ie,D))>-1;)ee!==i&&sc.call(ee,ie,1),sc.call(i,ie,1);return i}function Xv(i,g){for(var S=i?g.length:0,D=S-1;S--;){var H=g[S];if(S==D||H!==U){var U=H;ki(H)?sc.call(i,H,1):Sd(i,H)}}return i}function Cd(i,g){return i+cc(Mv()*(g-i+1))}function qE(i,g,S,D){for(var H=-1,U=In(lc((g-i)/(S||1)),0),Q=se(U);U--;)Q[D?U:++H]=i,i+=S;return Q}function kd(i,g){var S="";if(!i||g<1||g>P)return S;do g%2&&(S+=i),g=cc(g/2),g&&(i+=i);while(g);return S}function ht(i,g){return zd(Tw(i,g,ar),i+"")}function GE(i){return Dv(ks(i))}function YE(i,g){var S=ks(i);return Sc(S,Ro(g,0,S.length))}function Ia(i,g,S,D){if(!Xt(i))return i;g=Qi(g,i);for(var H=-1,U=g.length,Q=U-1,ee=i;ee!=null&&++H<U;){var ie=si(g[H]),fe=S;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=Xt(ge)?ge:ki(g[H+1])?[]:{})}_a(ee,ie,fe),ee=ee[ie]}return i}var Jv=uc?function(i,g){return uc.set(i,g),i}:ar,KE=ac?function(i,g){return ac(i,"toString",{configurable:!0,enumerable:!1,value:Zd(g),writable:!0})}:ar;function QE(i){return Sc(ks(i))}function $r(i,g,S){var D=-1,H=i.length;g<0&&(g=-g>H?0:H+g),S=S>H?H:S,S<0&&(S+=H),H=g>S?0:S-g>>>0,g>>>=0;for(var U=se(H);++D<H;)U[D]=i[D+g];return U}function ZE(i,g){var S;return Yi(i,function(D,H,U){return S=g(D,H,U),!S}),!!S}function yc(i,g,S){var D=0,H=i==null?D:i.length;if(typeof g=="number"&&g===g&&H<=G){for(;D<H;){var U=D+H>>>1,Q=i[U];Q!==null&&!gr(Q)&&(S?Q<=g:Q<g)?D=U+1:H=U}return H}return _d(i,g,ar,S)}function _d(i,g,S,D){var H=0,U=i==null?0:i.length;if(U===0)return 0;g=S(g);for(var Q=g!==g,ee=g===null,ie=gr(g),fe=g===t;H<U;){var ge=cc((H+U)/2),ve=S(i[ge]),$e=ve!==t,Oe=ve===null,Ue=ve===ve,lt=gr(ve);if(Q)var Ve=D||Ue;else fe?Ve=Ue&&(D||$e):ee?Ve=Ue&&$e&&(D||!Oe):ie?Ve=Ue&&$e&&!Oe&&(D||!lt):Oe||lt?Ve=!1:Ve=D?ve<=g:ve<g;Ve?H=ge+1:U=ge}return jn(U,J)}function ew(i,g){for(var S=-1,D=i.length,H=0,U=[];++S<D;){var Q=i[S],ee=g?g(Q):Q;if(!S||!Pr(ee,ie)){var ie=ee;U[H++]=Q===0?0:Q}}return U}function tw(i){return typeof i=="number"?i:gr(i)?V:+i}function pr(i){if(typeof i=="string")return i;if(Je(i))return zt(i,pr)+"";if(gr(i))return Lv?Lv.call(i):"";var g=i+"";return g=="0"&&1/i==-1/0?"-0":g}function Ki(i,g,S){var D=-1,H=ds,U=i.length,Q=!0,ee=[],ie=ee;if(S)Q=!1,H=ko;else if(U>=d){var fe=g?null:lR(i);if(fe)return Se(fe);Q=!1,H=Fr,ie=new Eo}else ie=g?[]:ee;e:for(;++D<U;){var ge=i[D],ve=g?g(ge):ge;if(ge=S||ge!==0?ge:0,Q&&ve===ve){for(var $e=ie.length;$e--;)if(ie[$e]===ve)continue e;g&&ie.push(ve),ee.push(ge)}else H(ie,ve,S)||(ie!==ee&&ie.push(ve),ee.push(ge))}return ee}function Sd(i,g){return g=Qi(g,i),i=Iw(i,g),i==null||delete i[si(Tr(g))]}function nw(i,g,S,D){return Ia(i,g,S(Mo(i,g)),D)}function vc(i,g,S,D){for(var H=i.length,U=D?H:-1;(D?U--:++U<H)&&g(i[U],U,i););return S?$r(i,D?0:U,D?U+1:H):$r(i,D?U+1:0,D?H:U)}function rw(i,g){var S=i;return S instanceof vt&&(S=S.value()),kr(g,function(D,H){return H.func.apply(H.thisArg,zn([D],H.args))},S)}function $d(i,g,S){var D=i.length;if(D<2)return D?Ki(i[0]):[];for(var H=-1,U=se(D);++H<D;)for(var Q=i[H],ee=-1;++ee<D;)ee!=H&&(U[H]=Sa(U[H]||Q,i[ee],g,S));return Ki(Ln(U,1),g,S)}function iw(i,g,S){for(var D=-1,H=i.length,U=g.length,Q={};++D<H;){var ee=D<U?g[D]:t;S(Q,i[D],ee)}return Q}function Td(i){return un(i)?i:[]}function Id(i){return typeof i=="function"?i:ar}function Qi(i,g){return Je(i)?i:Wd(i,g)?[i]:Lw(Tt(i))}var XE=ht;function Zi(i,g,S){var D=i.length;return S=S===t?D:S,!g&&S>=D?i:$r(i,g,S)}var ow=PI||function(i){return Sn.clearTimeout(i)};function sw(i,g){if(g)return i.slice();var S=i.length,D=$v?$v(S):new i.constructor(S);return i.copy(D),D}function Ed(i){var g=new i.constructor(i.byteLength);return new ic(g).set(new ic(i)),g}function JE(i,g){var S=g?Ed(i.buffer):i.buffer;return new i.constructor(S,i.byteOffset,i.byteLength)}function eR(i){var g=new i.constructor(i.source,Ni.exec(i));return g.lastIndex=i.lastIndex,g}function tR(i){return ka?Xe(ka.call(i)):{}}function aw(i,g){var S=g?Ed(i.buffer):i.buffer;return new i.constructor(S,i.byteOffset,i.length)}function lw(i,g){if(i!==g){var S=i!==t,D=i===null,H=i===i,U=gr(i),Q=g!==t,ee=g===null,ie=g===g,fe=gr(g);if(!ee&&!fe&&!U&&i>g||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!S&&ie||!H)return 1;if(!D&&!U&&!fe&&i<g||fe&&S&&H&&!D&&!U||ee&&S&&H||!Q&&H||!ie)return-1}return 0}function nR(i,g,S){for(var D=-1,H=i.criteria,U=g.criteria,Q=H.length,ee=S.length;++D<Q;){var ie=lw(H[D],U[D]);if(ie){if(D>=ee)return ie;var fe=S[D];return ie*(fe=="desc"?-1:1)}}return i.index-g.index}function cw(i,g,S,D){for(var H=-1,U=i.length,Q=S.length,ee=-1,ie=g.length,fe=In(U-Q,0),ge=se(ie+fe),ve=!D;++ee<ie;)ge[ee]=g[ee];for(;++H<Q;)(ve||H<U)&&(ge[S[H]]=i[H]);for(;fe--;)ge[ee++]=i[H++];return ge}function uw(i,g,S,D){for(var H=-1,U=i.length,Q=-1,ee=S.length,ie=-1,fe=g.length,ge=In(U-ee,0),ve=se(ge+fe),$e=!D;++H<ge;)ve[H]=i[H];for(var Oe=H;++ie<fe;)ve[Oe+ie]=g[ie];for(;++Q<ee;)($e||H<U)&&(ve[Oe+S[Q]]=i[H++]);return ve}function ir(i,g){var S=-1,D=i.length;for(g||(g=se(D));++S<D;)g[S]=i[S];return g}function oi(i,g,S,D){var H=!S;S||(S={});for(var U=-1,Q=g.length;++U<Q;){var ee=g[U],ie=D?D(S[ee],i[ee],ee,S,i):t;ie===t&&(ie=i[ee]),H?xi(S,ee,ie):_a(S,ee,ie)}return S}function rR(i,g){return oi(i,Fd(i),g)}function iR(i,g){return oi(i,Cw(i),g)}function wc(i,g){return function(S,D){var H=Je(S)?cd:SE,U=g?g():{};return H(S,i,Be(D,2),U)}}function bs(i){return ht(function(g,S){var D=-1,H=S.length,U=H>1?S[H-1]:t,Q=H>2?S[2]:t;for(U=i.length>3&&typeof U=="function"?(H--,U):t,Q&&Qn(S[0],S[1],Q)&&(U=H<3?t:U,H=1),g=Xe(g);++D<H;){var ee=S[D];ee&&i(g,ee,D,U)}return g})}function hw(i,g){return function(S,D){if(S==null)return S;if(!or(S))return i(S,D);for(var H=S.length,U=g?H:-1,Q=Xe(S);(g?U--:++U<H)&&D(Q[U],U,Q)!==!1;);return S}}function dw(i){return function(g,S,D){for(var H=-1,U=Xe(g),Q=D(g),ee=Q.length;ee--;){var ie=Q[i?ee:++H];if(S(U[ie],ie,U)===!1)break}return g}}function oR(i,g,S){var D=g&m,H=Ea(i);function U(){var Q=this&&this!==Sn&&this instanceof U?H:i;return Q.apply(D?S:this,arguments)}return U}function fw(i){return function(g){g=Tt(g);var S=te(g)?Ge(g):t,D=S?S[0]:g.charAt(0),H=S?Zi(S,1).join(""):g.slice(1);return D[i]()+H}}function xs(i){return function(g){return kr(h0(u0(g).replace(ua,"")),i,"")}}function Ea(i){return function(){var g=arguments;switch(g.length){case 0:return new i;case 1:return new i(g[0]);case 2:return new i(g[0],g[1]);case 3:return new i(g[0],g[1],g[2]);case 4:return new i(g[0],g[1],g[2],g[3]);case 5:return new i(g[0],g[1],g[2],g[3],g[4]);case 6:return new i(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new i(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var S=ws(i.prototype),D=i.apply(S,g);return Xt(D)?D:S}}function sR(i,g,S){var D=Ea(i);function H(){for(var U=arguments.length,Q=se(U),ee=U,ie=As(H);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:Ce(Q,ie);if(U-=fe.length,U<S)return vw(i,g,bc,H.placeholder,t,Q,fe,t,t,S-U);var ge=this&&this!==Sn&&this instanceof H?D:i;return Vt(ge,this,Q)}return H}function pw(i){return function(g,S,D){var H=Xe(g);if(!or(g)){var U=Be(S,3);g=Mn(g),S=function(ee){return U(H[ee],ee,H)}}var Q=i(g,S,D);return Q>-1?H[U?g[Q]:Q]:t}}function gw(i){return Ci(function(g){var S=g.length,D=S,H=_r.prototype.thru;for(i&&g.reverse();D--;){var U=g[D];if(typeof U!="function")throw new Tn(y);if(H&&!Q&&kc(U)=="wrapper")var Q=new _r([],!0)}for(D=Q?D:S;++D<S;){U=g[D];var ee=kc(U),ie=ee=="wrapper"?Dd(U):t;ie&&Pd(ie[0])&&ie[1]==(T|R|C|E)&&!ie[4].length&&ie[9]==1?Q=Q[kc(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Pd(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&Je(ge))return Q.plant(ge).value();for(var ve=0,$e=S?g[ve].apply(this,fe):ge;++ve<S;)$e=g[ve].call(this,$e);return $e}})}function bc(i,g,S,D,H,U,Q,ee,ie,fe){var ge=g&T,ve=g&m,$e=g&v,Oe=g&(R|$),Ue=g&L,lt=$e?t:Ea(i);function Ve(){for(var mt=arguments.length,wt=se(mt),mr=mt;mr--;)wt[mr]=arguments[mr];if(Oe)var Zn=As(Ve),yr=wa(wt,Zn);if(D&&(wt=cw(wt,D,H,Oe)),U&&(wt=uw(wt,U,Q,Oe)),mt-=yr,Oe&&mt<fe){var hn=Ce(wt,Zn);return vw(i,g,bc,Ve.placeholder,S,wt,hn,ee,ie,fe-mt)}var Hr=ve?S:this,$i=$e?Hr[i]:i;return mt=wt.length,ee?wt=SR(wt,ee):Ue&&mt>1&&wt.reverse(),ge&&ie<mt&&(wt.length=ie),this&&this!==Sn&&this instanceof Ve&&($i=lt||Ea($i)),$i.apply(Hr,wt)}return Ve}function mw(i,g){return function(S,D){return OE(S,i,g(D),{})}}function xc(i,g){return function(S,D){var H;if(S===t&&D===t)return g;if(S!==t&&(H=S),D!==t){if(H===t)return D;typeof S=="string"||typeof D=="string"?(S=pr(S),D=pr(D)):(S=tw(S),D=tw(D)),H=i(S,D)}return H}}function Rd(i){return Ci(function(g){return g=zt(g,Bn(Be())),ht(function(S){var D=this;return i(g,function(H){return Vt(H,D,S)})})})}function Ac(i,g){g=g===t?" ":pr(g);var S=g.length;if(S<2)return S?kd(g,i):g;var D=kd(g,lc(i/it(g)));return te(g)?Zi(Ge(D),0,i).join(""):D.slice(0,i)}function aR(i,g,S,D){var H=g&m,U=Ea(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ve=se(ge+ie),$e=this&&this!==Sn&&this instanceof Q?U:i;++fe<ge;)ve[fe]=D[fe];for(;ie--;)ve[fe++]=arguments[++ee];return Vt($e,H?S:this,ve)}return Q}function yw(i){return function(g,S,D){return D&&typeof D!="number"&&Qn(g,S,D)&&(S=D=t),g=Si(g),S===t?(S=g,g=0):S=Si(S),D=D===t?g<S?1:-1:Si(D),qE(g,S,D,i)}}function Cc(i){return function(g,S){return typeof g=="string"&&typeof S=="string"||(g=Ir(g),S=Ir(S)),i(g,S)}}function vw(i,g,S,D,H,U,Q,ee,ie,fe){var ge=g&R,ve=ge?Q:t,$e=ge?t:Q,Oe=ge?U:t,Ue=ge?t:U;g|=ge?C:x,g&=~(ge?x:C),g&b||(g&=-4);var lt=[i,g,H,Oe,ve,Ue,$e,ee,ie,fe],Ve=S.apply(t,lt);return Pd(i)&&Ew(Ve,lt),Ve.placeholder=D,Rw(Ve,i,g)}function Md(i){var g=$t[i];return function(S,D){if(S=Ir(S),D=D==null?0:jn(st(D),292),D&&Rv(S)){var H=(Tt(S)+"e").split("e"),U=g(H[0]+"e"+(+H[1]+D));return H=(Tt(U)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return g(S)}}var lR=ys&&1/Se(new ys([,-0]))[1]==F?function(i){return new ys(i)}:ef;function ww(i){return function(g){var S=Un(g);return S==dt?be(g):S==en?Ee(g):Zl(g,i(g))}}function Ai(i,g,S,D,H,U,Q,ee){var ie=g&v;if(!ie&&typeof i!="function")throw new Tn(y);var fe=D?D.length:0;if(fe||(g&=-97,D=H=t),Q=Q===t?Q:In(st(Q),0),ee=ee===t?ee:st(ee),fe-=H?H.length:0,g&x){var ge=D,ve=H;D=H=t}var $e=ie?t:Dd(i),Oe=[i,g,S,D,H,ge,ve,U,Q,ee];if($e&&CR(Oe,$e),i=Oe[0],g=Oe[1],S=Oe[2],D=Oe[3],H=Oe[4],ee=Oe[9]=Oe[9]===t?ie?0:i.length:In(Oe[9]-fe,0),!ee&&g&(R|$)&&(g&=-25),!g||g==m)var Ue=oR(i,g,S);else g==R||g==$?Ue=sR(i,g,ee):(g==C||g==(m|C))&&!H.length?Ue=aR(i,g,S,D):Ue=bc.apply(t,Oe);var lt=$e?Jv:Ew;return Rw(lt(Ue,Oe),i,g)}function bw(i,g,S,D){return i===t||Pr(i,ms[S])&&!Rt.call(D,S)?g:i}function xw(i,g,S,D,H,U){return Xt(i)&&Xt(g)&&(U.set(g,i),mc(i,g,t,xw,U),U.delete(g)),i}function cR(i){return La(i)?t:i}function Aw(i,g,S,D,H,U){var Q=S&o,ee=i.length,ie=g.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(g);if(fe&&ge)return fe==g&&ge==i;var ve=-1,$e=!0,Oe=S&u?new Eo:t;for(U.set(i,g),U.set(g,i);++ve<ee;){var Ue=i[ve],lt=g[ve];if(D)var Ve=Q?D(lt,Ue,ve,g,i,U):D(Ue,lt,ve,i,g,U);if(Ve!==t){if(Ve)continue;$e=!1;break}if(Oe){if(!fs(g,function(mt,wt){if(!Fr(Oe,wt)&&(Ue===mt||H(Ue,mt,S,D,U)))return Oe.push(wt)})){$e=!1;break}}else if(!(Ue===lt||H(Ue,lt,S,D,U))){$e=!1;break}}return U.delete(i),U.delete(g),$e}function uR(i,g,S,D,H,U,Q){switch(S){case Me:if(i.byteLength!=g.byteLength||i.byteOffset!=g.byteOffset)return!1;i=i.buffer,g=g.buffer;case Te:return!(i.byteLength!=g.byteLength||!U(new ic(i),new ic(g)));case ye:case we:case gt:return Pr(+i,+g);case ke:return i.name==g.name&&i.message==g.message;case Cn:case We:return i==g+"";case dt:var ee=be;case en:var ie=D&o;if(ee||(ee=Se),i.size!=g.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==g;D|=u,Q.set(i,g);var ge=Aw(ee(i),ee(g),D,H,U,Q);return Q.delete(i),ge;case ze:if(ka)return ka.call(i)==ka.call(g)}return!1}function hR(i,g,S,D,H,U){var Q=S&o,ee=Ld(i),ie=ee.length,fe=Ld(g),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ve=ie;ve--;){var $e=ee[ve];if(!(Q?$e in g:Rt.call(g,$e)))return!1}var Oe=U.get(i),Ue=U.get(g);if(Oe&&Ue)return Oe==g&&Ue==i;var lt=!0;U.set(i,g),U.set(g,i);for(var Ve=Q;++ve<ie;){$e=ee[ve];var mt=i[$e],wt=g[$e];if(D)var mr=Q?D(wt,mt,$e,g,i,U):D(mt,wt,$e,i,g,U);if(!(mr===t?mt===wt||H(mt,wt,S,D,U):mr)){lt=!1;break}Ve||(Ve=$e=="constructor")}if(lt&&!Ve){var Zn=i.constructor,yr=g.constructor;Zn!=yr&&"constructor"in i&&"constructor"in g&&!(typeof Zn=="function"&&Zn instanceof Zn&&typeof yr=="function"&&yr instanceof yr)&&(lt=!1)}return U.delete(i),U.delete(g),lt}function Ci(i){return zd(Tw(i,t,Fw),i+"")}function Ld(i){return Bv(i,Mn,Fd)}function Od(i){return Bv(i,sr,Cw)}var Dd=uc?function(i){return uc.get(i)}:ef;function kc(i){for(var g=i.name+"",S=vs[g],D=Rt.call(vs,g)?S.length:0;D--;){var H=S[D],U=H.func;if(U==null||U==i)return H.name}return g}function As(i){var g=Rt.call(B,"placeholder")?B:i;return g.placeholder}function Be(){var i=B.iteratee||Xd;return i=i===Xd?Vv:i,arguments.length?i(arguments[0],arguments[1]):i}function _c(i,g){var S=i.__data__;return wR(g)?S[typeof g=="string"?"string":"hash"]:S.map}function Nd(i){for(var g=Mn(i),S=g.length;S--;){var D=g[S],H=i[D];g[S]=[D,H,Sw(H)]}return g}function Lo(i,g){var S=K(i,g);return Uv(S)?S:t}function dR(i){var g=Rt.call(i,To),S=i[To];try{i[To]=t;var D=!0}catch{}var H=nc.call(i);return D&&(g?i[To]=S:delete i[To]),H}var Fd=ud?function(i){return i==null?[]:(i=Xe(i),nr(ud(i),function(g){return Iv.call(i,g)}))}:tf,Cw=ud?function(i){for(var g=[];i;)zn(g,Fd(i)),i=oc(i);return g}:tf,Un=Kn;(hd&&Un(new hd(new ArrayBuffer(1)))!=Me||xa&&Un(new xa)!=dt||dd&&Un(dd.resolve())!=Kt||ys&&Un(new ys)!=en||Aa&&Un(new Aa)!=je)&&(Un=function(i){var g=Kn(i),S=g==Dt?i.constructor:t,D=S?Oo(S):"";if(D)switch(D){case YI:return Me;case KI:return dt;case QI:return Kt;case ZI:return en;case XI:return je}return g});function fR(i,g,S){for(var D=-1,H=S.length;++D<H;){var U=S[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":g-=Q;break;case"take":g=jn(g,i+Q);break;case"takeRight":i=In(i,g-Q);break}}return{start:i,end:g}}function pR(i){var g=i.match(Ll);return g?g[1].split(Ol):[]}function kw(i,g,S){g=Qi(g,i);for(var D=-1,H=g.length,U=!1;++D<H;){var Q=si(g[D]);if(!(U=i!=null&&S(i,Q)))break;i=i[Q]}return U||++D!=H?U:(H=i==null?0:i.length,!!H&&Mc(H)&&ki(Q,H)&&(Je(i)||Do(i)))}function gR(i){var g=i.length,S=new i.constructor(g);return g&&typeof i[0]=="string"&&Rt.call(i,"index")&&(S.index=i.index,S.input=i.input),S}function _w(i){return typeof i.constructor=="function"&&!Ra(i)?ws(oc(i)):{}}function mR(i,g,S){var D=i.constructor;switch(g){case Te:return Ed(i);case ye:case we:return new D(+i);case Me:return JE(i,S);case qe:case Ye:case ft:case pt:case ct:case ut:case rt:case jt:case Wn:return aw(i,S);case dt:return new D;case gt:case We:return new D(i);case Cn:return eR(i);case en:return new D;case ze:return tR(i)}}function yR(i,g){var S=g.length;if(!S)return i;var D=S-1;return g[D]=(S>1?"& ":"")+g[D],g=g.join(S>2?", ":" "),i.replace(Di,`{
|
1391
|
+
/* [wrapped with `+g+`] */
|
1392
|
+
`)}function vR(i){return Je(i)||Do(i)||!!(Ev&&i&&i[Ev])}function ki(i,g){var S=typeof i;return g=g??P,!!g&&(S=="number"||S!="symbol"&&yn.test(i))&&i>-1&&i%1==0&&i<g}function Qn(i,g,S){if(!Xt(S))return!1;var D=typeof g;return(D=="number"?or(S)&&ki(g,S.length):D=="string"&&g in S)?Pr(S[g],i):!1}function Wd(i,g){if(Je(i))return!1;var S=typeof i;return S=="number"||S=="symbol"||S=="boolean"||i==null||gr(i)?!0:En.test(i)||!fi.test(i)||g!=null&&i in Xe(g)}function wR(i){var g=typeof i;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?i!=="__proto__":i===null}function Pd(i){var g=kc(i),S=B[g];if(typeof S!="function"||!(g in vt.prototype))return!1;if(i===S)return!0;var D=Dd(S);return!!D&&i===D[0]}function bR(i){return!!Sv&&Sv in i}var xR=ec?_i:nf;function Ra(i){var g=i&&i.constructor,S=typeof g=="function"&&g.prototype||ms;return i===S}function Sw(i){return i===i&&!Xt(i)}function $w(i,g){return function(S){return S==null?!1:S[i]===g&&(g!==t||i in Xe(S))}}function AR(i){var g=Ec(i,function(D){return S.size===p&&S.clear(),D}),S=g.cache;return g}function CR(i,g){var S=i[1],D=g[1],H=S|D,U=H<(m|v|T),Q=D==T&&S==R||D==T&&S==E&&i[7].length<=g[8]||D==(T|E)&&g[7].length<=g[8]&&S==R;if(!(U||Q))return i;D&m&&(i[2]=g[2],H|=S&m?0:b);var ee=g[3];if(ee){var ie=i[3];i[3]=ie?cw(ie,ee,g[4]):ee,i[4]=ie?Ce(i[3],s):g[4]}return ee=g[5],ee&&(ie=i[5],i[5]=ie?uw(ie,ee,g[6]):ee,i[6]=ie?Ce(i[5],s):g[6]),ee=g[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?g[8]:jn(i[8],g[8])),i[9]==null&&(i[9]=g[9]),i[0]=g[0],i[1]=H,i}function kR(i){var g=[];if(i!=null)for(var S in Xe(i))g.push(S);return g}function _R(i){return nc.call(i)}function Tw(i,g,S){return g=In(g===t?i.length-1:g,0),function(){for(var D=arguments,H=-1,U=In(D.length-g,0),Q=se(U);++H<U;)Q[H]=D[g+H];H=-1;for(var ee=se(g+1);++H<g;)ee[H]=D[H];return ee[g]=S(Q),Vt(i,this,ee)}}function Iw(i,g){return g.length<2?i:Mo(i,$r(g,0,-1))}function SR(i,g){for(var S=i.length,D=jn(g.length,S),H=ir(i);D--;){var U=g[D];i[D]=ki(U,S)?H[U]:t}return i}function Hd(i,g){if(!(g==="constructor"&&typeof i[g]=="function")&&g!="__proto__")return i[g]}var Ew=Mw(Jv),Ma=zI||function(i,g){return Sn.setTimeout(i,g)},zd=Mw(KE);function Rw(i,g,S){var D=g+"";return zd(i,yR(D,$R(pR(D),S)))}function Mw(i){var g=0,S=0;return function(){var D=VI(),H=A-(D-S);if(S=D,H>0){if(++g>=_)return arguments[0]}else g=0;return i.apply(t,arguments)}}function Sc(i,g){var S=-1,D=i.length,H=D-1;for(g=g===t?D:g;++S<g;){var U=Cd(S,H),Q=i[U];i[U]=i[S],i[S]=Q}return i.length=g,i}var Lw=AR(function(i){var g=[];return i.charCodeAt(0)===46&&g.push(""),i.replace(Zr,function(S,D,H,U){g.push(H?U.replace(pi,"$1"):D||S)}),g});function si(i){if(typeof i=="string"||gr(i))return i;var g=i+"";return g=="0"&&1/i==-1/0?"-0":g}function Oo(i){if(i!=null){try{return tc.call(i)}catch{}try{return i+""}catch{}}return""}function $R(i,g){return Gn(Z,function(S){var D="_."+S[0];g&S[1]&&!ds(i,D)&&i.push(D)}),i.sort()}function Ow(i){if(i instanceof vt)return i.clone();var g=new _r(i.__wrapped__,i.__chain__);return g.__actions__=ir(i.__actions__),g.__index__=i.__index__,g.__values__=i.__values__,g}function TR(i,g,S){(S?Qn(i,g,S):g===t)?g=1:g=In(st(g),0);var D=i==null?0:i.length;if(!D||g<1)return[];for(var H=0,U=0,Q=se(lc(D/g));H<D;)Q[U++]=$r(i,H,H+=g);return Q}function IR(i){for(var g=-1,S=i==null?0:i.length,D=0,H=[];++g<S;){var U=i[g];U&&(H[D++]=U)}return H}function ER(){var i=arguments.length;if(!i)return[];for(var g=se(i-1),S=arguments[0],D=i;D--;)g[D-1]=arguments[D];return zn(Je(S)?ir(S):[S],Ln(g,1))}var RR=ht(function(i,g){return un(i)?Sa(i,Ln(g,1,un,!0)):[]}),MR=ht(function(i,g){var S=Tr(g);return un(S)&&(S=t),un(i)?Sa(i,Ln(g,1,un,!0),Be(S,2)):[]}),LR=ht(function(i,g){var S=Tr(g);return un(S)&&(S=t),un(i)?Sa(i,Ln(g,1,un,!0),t,S):[]});function OR(i,g,S){var D=i==null?0:i.length;return D?(g=S||g===t?1:st(g),$r(i,g<0?0:g,D)):[]}function DR(i,g,S){var D=i==null?0:i.length;return D?(g=S||g===t?1:st(g),g=D-g,$r(i,0,g<0?0:g)):[]}function NR(i,g){return i&&i.length?vc(i,Be(g,3),!0,!0):[]}function FR(i,g){return i&&i.length?vc(i,Be(g,3),!0):[]}function WR(i,g,S,D){var H=i==null?0:i.length;return H?(S&&typeof S!="number"&&Qn(i,g,S)&&(S=0,D=H),EE(i,g,S,D)):[]}function Dw(i,g,S){var D=i==null?0:i.length;if(!D)return-1;var H=S==null?0:st(S);return H<0&&(H=In(D+H,0)),So(i,Be(g,3),H)}function Nw(i,g,S){var D=i==null?0:i.length;if(!D)return-1;var H=D-1;return S!==t&&(H=st(S),H=S<0?In(D+H,0):jn(H,D-1)),So(i,Be(g,3),H,!0)}function Fw(i){var g=i==null?0:i.length;return g?Ln(i,1):[]}function PR(i){var g=i==null?0:i.length;return g?Ln(i,F):[]}function HR(i,g){var S=i==null?0:i.length;return S?(g=g===t?1:st(g),Ln(i,g)):[]}function zR(i){for(var g=-1,S=i==null?0:i.length,D={};++g<S;){var H=i[g];D[H[0]]=H[1]}return D}function Ww(i){return i&&i.length?i[0]:t}function BR(i,g,S){var D=i==null?0:i.length;if(!D)return-1;var H=S==null?0:st(S);return H<0&&(H=In(D+H,0)),vi(i,g,H)}function jR(i){var g=i==null?0:i.length;return g?$r(i,0,-1):[]}var UR=ht(function(i){var g=zt(i,Td);return g.length&&g[0]===i[0]?vd(g):[]}),VR=ht(function(i){var g=Tr(i),S=zt(i,Td);return g===Tr(S)?g=t:S.pop(),S.length&&S[0]===i[0]?vd(S,Be(g,2)):[]}),qR=ht(function(i){var g=Tr(i),S=zt(i,Td);return g=typeof g=="function"?g:t,g&&S.pop(),S.length&&S[0]===i[0]?vd(S,t,g):[]});function GR(i,g){return i==null?"":jI.call(i,g)}function Tr(i){var g=i==null?0:i.length;return g?i[g-1]:t}function YR(i,g,S){var D=i==null?0:i.length;if(!D)return-1;var H=D;return S!==t&&(H=st(S),H=H<0?In(D+H,0):jn(H,D-1)),g===g?Et(i,g,H):So(i,ga,H,!0)}function KR(i,g){return i&&i.length?Kv(i,st(g)):t}var QR=ht(Pw);function Pw(i,g){return i&&i.length&&g&&g.length?Ad(i,g):i}function ZR(i,g,S){return i&&i.length&&g&&g.length?Ad(i,g,Be(S,2)):i}function XR(i,g,S){return i&&i.length&&g&&g.length?Ad(i,g,t,S):i}var JR=Ci(function(i,g){var S=i==null?0:i.length,D=pd(i,g);return Xv(i,zt(g,function(H){return ki(H,S)?+H:H}).sort(lw)),D});function eM(i,g){var S=[];if(!(i&&i.length))return S;var D=-1,H=[],U=i.length;for(g=Be(g,3);++D<U;){var Q=i[D];g(Q,D,i)&&(S.push(Q),H.push(D))}return Xv(i,H),S}function Bd(i){return i==null?i:GI.call(i)}function tM(i,g,S){var D=i==null?0:i.length;return D?(S&&typeof S!="number"&&Qn(i,g,S)?(g=0,S=D):(g=g==null?0:st(g),S=S===t?D:st(S)),$r(i,g,S)):[]}function nM(i,g){return yc(i,g)}function rM(i,g,S){return _d(i,g,Be(S,2))}function iM(i,g){var S=i==null?0:i.length;if(S){var D=yc(i,g);if(D<S&&Pr(i[D],g))return D}return-1}function oM(i,g){return yc(i,g,!0)}function sM(i,g,S){return _d(i,g,Be(S,2),!0)}function aM(i,g){var S=i==null?0:i.length;if(S){var D=yc(i,g,!0)-1;if(Pr(i[D],g))return D}return-1}function lM(i){return i&&i.length?ew(i):[]}function cM(i,g){return i&&i.length?ew(i,Be(g,2)):[]}function uM(i){var g=i==null?0:i.length;return g?$r(i,1,g):[]}function hM(i,g,S){return i&&i.length?(g=S||g===t?1:st(g),$r(i,0,g<0?0:g)):[]}function dM(i,g,S){var D=i==null?0:i.length;return D?(g=S||g===t?1:st(g),g=D-g,$r(i,g<0?0:g,D)):[]}function fM(i,g){return i&&i.length?vc(i,Be(g,3),!1,!0):[]}function pM(i,g){return i&&i.length?vc(i,Be(g,3)):[]}var gM=ht(function(i){return Ki(Ln(i,1,un,!0))}),mM=ht(function(i){var g=Tr(i);return un(g)&&(g=t),Ki(Ln(i,1,un,!0),Be(g,2))}),yM=ht(function(i){var g=Tr(i);return g=typeof g=="function"?g:t,Ki(Ln(i,1,un,!0),t,g)});function vM(i){return i&&i.length?Ki(i):[]}function wM(i,g){return i&&i.length?Ki(i,Be(g,2)):[]}function bM(i,g){return g=typeof g=="function"?g:t,i&&i.length?Ki(i,t,g):[]}function jd(i){if(!(i&&i.length))return[];var g=0;return i=nr(i,function(S){if(un(S))return g=In(S.length,g),!0}),nn(g,function(S){return zt(i,ya(S))})}function Hw(i,g){if(!(i&&i.length))return[];var S=jd(i);return g==null?S:zt(S,function(D){return Vt(g,t,D)})}var xM=ht(function(i,g){return un(i)?Sa(i,g):[]}),AM=ht(function(i){return $d(nr(i,un))}),CM=ht(function(i){var g=Tr(i);return un(g)&&(g=t),$d(nr(i,un),Be(g,2))}),kM=ht(function(i){var g=Tr(i);return g=typeof g=="function"?g:t,$d(nr(i,un),t,g)}),_M=ht(jd);function SM(i,g){return iw(i||[],g||[],_a)}function $M(i,g){return iw(i||[],g||[],Ia)}var TM=ht(function(i){var g=i.length,S=g>1?i[g-1]:t;return S=typeof S=="function"?(i.pop(),S):t,Hw(i,S)});function zw(i){var g=B(i);return g.__chain__=!0,g}function IM(i,g){return g(i),i}function $c(i,g){return g(i)}var EM=Ci(function(i){var g=i.length,S=g?i[0]:0,D=this.__wrapped__,H=function(U){return pd(U,i)};return g>1||this.__actions__.length||!(D instanceof vt)||!ki(S)?this.thru(H):(D=D.slice(S,+S+(g?1:0)),D.__actions__.push({func:$c,args:[H],thisArg:t}),new _r(D,this.__chain__).thru(function(U){return g&&!U.length&&U.push(t),U}))});function RM(){return zw(this)}function MM(){return new _r(this.value(),this.__chain__)}function LM(){this.__values__===t&&(this.__values__=t0(this.value()));var i=this.__index__>=this.__values__.length,g=i?t:this.__values__[this.__index__++];return{done:i,value:g}}function OM(){return this}function DM(i){for(var g,S=this;S instanceof dc;){var D=Ow(S);D.__index__=0,D.__values__=t,g?H.__wrapped__=D:g=D;var H=D;S=S.__wrapped__}return H.__wrapped__=i,g}function NM(){var i=this.__wrapped__;if(i instanceof vt){var g=i;return this.__actions__.length&&(g=new vt(this)),g=g.reverse(),g.__actions__.push({func:$c,args:[Bd],thisArg:t}),new _r(g,this.__chain__)}return this.thru(Bd)}function FM(){return rw(this.__wrapped__,this.__actions__)}var WM=wc(function(i,g,S){Rt.call(i,S)?++i[S]:xi(i,S,1)});function PM(i,g,S){var D=Je(i)?Ui:IE;return S&&Qn(i,g,S)&&(g=t),D(i,Be(g,3))}function HM(i,g){var S=Je(i)?nr:Hv;return S(i,Be(g,3))}var zM=pw(Dw),BM=pw(Nw);function jM(i,g){return Ln(Tc(i,g),1)}function UM(i,g){return Ln(Tc(i,g),F)}function VM(i,g,S){return S=S===t?1:st(S),Ln(Tc(i,g),S)}function Bw(i,g){var S=Je(i)?Gn:Yi;return S(i,Be(g,3))}function jw(i,g){var S=Je(i)?Kl:Pv;return S(i,Be(g,3))}var qM=wc(function(i,g,S){Rt.call(i,S)?i[S].push(g):xi(i,S,[g])});function GM(i,g,S,D){i=or(i)?i:ks(i),S=S&&!D?st(S):0;var H=i.length;return S<0&&(S=In(H+S,0)),Lc(i)?S<=H&&i.indexOf(g,S)>-1:!!H&&vi(i,g,S)>-1}var YM=ht(function(i,g,S){var D=-1,H=typeof g=="function",U=or(i)?se(i.length):[];return Yi(i,function(Q){U[++D]=H?Vt(g,Q,S):$a(Q,g,S)}),U}),KM=wc(function(i,g,S){xi(i,S,g)});function Tc(i,g){var S=Je(i)?zt:qv;return S(i,Be(g,3))}function QM(i,g,S,D){return i==null?[]:(Je(g)||(g=g==null?[]:[g]),S=D?t:S,Je(S)||(S=S==null?[]:[S]),Qv(i,g,S))}var ZM=wc(function(i,g,S){i[S?0:1].push(g)},function(){return[[],[]]});function XM(i,g,S){var D=Je(i)?kr:va,H=arguments.length<3;return D(i,Be(g,4),S,H,Yi)}function JM(i,g,S){var D=Je(i)?_o:va,H=arguments.length<3;return D(i,Be(g,4),S,H,Pv)}function eL(i,g){var S=Je(i)?nr:Hv;return S(i,Rc(Be(g,3)))}function tL(i){var g=Je(i)?Dv:GE;return g(i)}function nL(i,g,S){(S?Qn(i,g,S):g===t)?g=1:g=st(g);var D=Je(i)?kE:YE;return D(i,g)}function rL(i){var g=Je(i)?_E:QE;return g(i)}function iL(i){if(i==null)return 0;if(or(i))return Lc(i)?it(i):i.length;var g=Un(i);return g==dt||g==en?i.size:bd(i).length}function oL(i,g,S){var D=Je(i)?fs:ZE;return S&&Qn(i,g,S)&&(g=t),D(i,Be(g,3))}var sL=ht(function(i,g){if(i==null)return[];var S=g.length;return S>1&&Qn(i,g[0],g[1])?g=[]:S>2&&Qn(g[0],g[1],g[2])&&(g=[g[0]]),Qv(i,Ln(g,1),[])}),Ic=HI||function(){return Sn.Date.now()};function aL(i,g){if(typeof g!="function")throw new Tn(y);return i=st(i),function(){if(--i<1)return g.apply(this,arguments)}}function Uw(i,g,S){return g=S?t:g,g=i&&g==null?i.length:g,Ai(i,T,t,t,t,t,g)}function Vw(i,g){var S;if(typeof g!="function")throw new Tn(y);return i=st(i),function(){return--i>0&&(S=g.apply(this,arguments)),i<=1&&(g=t),S}}var Ud=ht(function(i,g,S){var D=m;if(S.length){var H=Ce(S,As(Ud));D|=C}return Ai(i,D,g,S,H)}),qw=ht(function(i,g,S){var D=m|v;if(S.length){var H=Ce(S,As(qw));D|=C}return Ai(g,D,i,S,H)});function Gw(i,g,S){g=S?t:g;var D=Ai(i,R,t,t,t,t,t,g);return D.placeholder=Gw.placeholder,D}function Yw(i,g,S){g=S?t:g;var D=Ai(i,$,t,t,t,t,t,g);return D.placeholder=Yw.placeholder,D}function Kw(i,g,S){var D,H,U,Q,ee,ie,fe=0,ge=!1,ve=!1,$e=!0;if(typeof i!="function")throw new Tn(y);g=Ir(g)||0,Xt(S)&&(ge=!!S.leading,ve="maxWait"in S,U=ve?In(Ir(S.maxWait)||0,g):U,$e="trailing"in S?!!S.trailing:$e);function Oe(hn){var Hr=D,$i=H;return D=H=t,fe=hn,Q=i.apply($i,Hr),Q}function Ue(hn){return fe=hn,ee=Ma(mt,g),ge?Oe(hn):Q}function lt(hn){var Hr=hn-ie,$i=hn-fe,p0=g-Hr;return ve?jn(p0,U-$i):p0}function Ve(hn){var Hr=hn-ie,$i=hn-fe;return ie===t||Hr>=g||Hr<0||ve&&$i>=U}function mt(){var hn=Ic();if(Ve(hn))return wt(hn);ee=Ma(mt,lt(hn))}function wt(hn){return ee=t,$e&&D?Oe(hn):(D=H=t,Q)}function mr(){ee!==t&&ow(ee),fe=0,D=ie=H=ee=t}function Zn(){return ee===t?Q:wt(Ic())}function yr(){var hn=Ic(),Hr=Ve(hn);if(D=arguments,H=this,ie=hn,Hr){if(ee===t)return Ue(ie);if(ve)return ow(ee),ee=Ma(mt,g),Oe(ie)}return ee===t&&(ee=Ma(mt,g)),Q}return yr.cancel=mr,yr.flush=Zn,yr}var lL=ht(function(i,g){return Wv(i,1,g)}),cL=ht(function(i,g,S){return Wv(i,Ir(g)||0,S)});function uL(i){return Ai(i,L)}function Ec(i,g){if(typeof i!="function"||g!=null&&typeof g!="function")throw new Tn(y);var S=function(){var D=arguments,H=g?g.apply(this,D):D[0],U=S.cache;if(U.has(H))return U.get(H);var Q=i.apply(this,D);return S.cache=U.set(H,Q)||U,Q};return S.cache=new(Ec.Cache||bi),S}Ec.Cache=bi;function Rc(i){if(typeof i!="function")throw new Tn(y);return function(){var g=arguments;switch(g.length){case 0:return!i.call(this);case 1:return!i.call(this,g[0]);case 2:return!i.call(this,g[0],g[1]);case 3:return!i.call(this,g[0],g[1],g[2])}return!i.apply(this,g)}}function hL(i){return Vw(2,i)}var dL=XE(function(i,g){g=g.length==1&&Je(g[0])?zt(g[0],Bn(Be())):zt(Ln(g,1),Bn(Be()));var S=g.length;return ht(function(D){for(var H=-1,U=jn(D.length,S);++H<U;)D[H]=g[H].call(this,D[H]);return Vt(i,this,D)})}),Vd=ht(function(i,g){var S=Ce(g,As(Vd));return Ai(i,C,t,g,S)}),Qw=ht(function(i,g){var S=Ce(g,As(Qw));return Ai(i,x,t,g,S)}),fL=Ci(function(i,g){return Ai(i,E,t,t,t,g)});function pL(i,g){if(typeof i!="function")throw new Tn(y);return g=g===t?g:st(g),ht(i,g)}function gL(i,g){if(typeof i!="function")throw new Tn(y);return g=g==null?0:In(st(g),0),ht(function(S){var D=S[g],H=Zi(S,0,g);return D&&zn(H,D),Vt(i,this,H)})}function mL(i,g,S){var D=!0,H=!0;if(typeof i!="function")throw new Tn(y);return Xt(S)&&(D="leading"in S?!!S.leading:D,H="trailing"in S?!!S.trailing:H),Kw(i,g,{leading:D,maxWait:g,trailing:H})}function yL(i){return Uw(i,1)}function vL(i,g){return Vd(Id(g),i)}function wL(){if(!arguments.length)return[];var i=arguments[0];return Je(i)?i:[i]}function bL(i){return Sr(i,l)}function xL(i,g){return g=typeof g=="function"?g:t,Sr(i,l,g)}function AL(i){return Sr(i,c|l)}function CL(i,g){return g=typeof g=="function"?g:t,Sr(i,c|l,g)}function kL(i,g){return g==null||Fv(i,g,Mn(g))}function Pr(i,g){return i===g||i!==i&&g!==g}var _L=Cc(yd),SL=Cc(function(i,g){return i>=g}),Do=jv(function(){return arguments}())?jv:function(i){return rn(i)&&Rt.call(i,"callee")&&!Iv.call(i,"callee")},Je=se.isArray,$L=Gl?Bn(Gl):DE;function or(i){return i!=null&&Mc(i.length)&&!_i(i)}function un(i){return rn(i)&&or(i)}function TL(i){return i===!0||i===!1||rn(i)&&Kn(i)==ye}var Xi=BI||nf,IL=Cr?Bn(Cr):NE;function EL(i){return rn(i)&&i.nodeType===1&&!La(i)}function RL(i){if(i==null)return!0;if(or(i)&&(Je(i)||typeof i=="string"||typeof i.splice=="function"||Xi(i)||Cs(i)||Do(i)))return!i.length;var g=Un(i);if(g==dt||g==en)return!i.size;if(Ra(i))return!bd(i).length;for(var S in i)if(Rt.call(i,S))return!1;return!0}function ML(i,g){return Ta(i,g)}function LL(i,g,S){S=typeof S=="function"?S:t;var D=S?S(i,g):t;return D===t?Ta(i,g,t,S):!!D}function qd(i){if(!rn(i))return!1;var g=Kn(i);return g==ke||g==pe||typeof i.message=="string"&&typeof i.name=="string"&&!La(i)}function OL(i){return typeof i=="number"&&Rv(i)}function _i(i){if(!Xt(i))return!1;var g=Kn(i);return g==at||g==Pt||g==ae||g==Qr}function Zw(i){return typeof i=="number"&&i==st(i)}function Mc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=P}function Xt(i){var g=typeof i;return i!=null&&(g=="object"||g=="function")}function rn(i){return i!=null&&typeof i=="object"}var Xw=Nr?Bn(Nr):WE;function DL(i,g){return i===g||wd(i,g,Nd(g))}function NL(i,g,S){return S=typeof S=="function"?S:t,wd(i,g,Nd(g),S)}function FL(i){return Jw(i)&&i!=+i}function WL(i){if(xR(i))throw new Fe(f);return Uv(i)}function PL(i){return i===null}function HL(i){return i==null}function Jw(i){return typeof i=="number"||rn(i)&&Kn(i)==gt}function La(i){if(!rn(i)||Kn(i)!=Dt)return!1;var g=oc(i);if(g===null)return!0;var S=Rt.call(g,"constructor")&&g.constructor;return typeof S=="function"&&S instanceof S&&tc.call(S)==NI}var Gd=ri?Bn(ri):PE;function zL(i){return Zw(i)&&i>=-9007199254740991&&i<=P}var e0=yi?Bn(yi):HE;function Lc(i){return typeof i=="string"||!Je(i)&&rn(i)&&Kn(i)==We}function gr(i){return typeof i=="symbol"||rn(i)&&Kn(i)==ze}var Cs=Yl?Bn(Yl):zE;function BL(i){return i===t}function jL(i){return rn(i)&&Un(i)==je}function UL(i){return rn(i)&&Kn(i)==ce}var VL=Cc(xd),qL=Cc(function(i,g){return i<=g});function t0(i){if(!i)return[];if(or(i))return Lc(i)?Ge(i):ir(i);if(ba&&i[ba])return de(i[ba]());var g=Un(i),S=g==dt?be:g==en?Se:ks;return S(i)}function Si(i){if(!i)return i===0?i:0;if(i=Ir(i),i===F||i===-1/0){var g=i<0?-1:1;return g*j}return i===i?i:0}function st(i){var g=Si(i),S=g%1;return g===g?S?g-S:g:0}function n0(i){return i?Ro(st(i),0,q):0}function Ir(i){if(typeof i=="number")return i;if(gr(i))return V;if(Xt(i)){var g=typeof i.valueOf=="function"?i.valueOf():i;i=Xt(g)?g+"":g}if(typeof i!="string")return i===0?i:+i;i=Qt(i);var S=Jr.test(i);return S||mn.test(i)?Nt(i.slice(2),S?2:8):Dl.test(i)?V:+i}function r0(i){return oi(i,sr(i))}function GL(i){return i?Ro(st(i),-9007199254740991,P):i===0?i:0}function Tt(i){return i==null?"":pr(i)}var YL=bs(function(i,g){if(Ra(g)||or(g)){oi(g,Mn(g),i);return}for(var S in g)Rt.call(g,S)&&_a(i,S,g[S])}),i0=bs(function(i,g){oi(g,sr(g),i)}),Oc=bs(function(i,g,S,D){oi(g,sr(g),i,D)}),KL=bs(function(i,g,S,D){oi(g,Mn(g),i,D)}),QL=Ci(pd);function ZL(i,g){var S=ws(i);return g==null?S:Nv(S,g)}var XL=ht(function(i,g){i=Xe(i);var S=-1,D=g.length,H=D>2?g[2]:t;for(H&&Qn(g[0],g[1],H)&&(D=1);++S<D;)for(var U=g[S],Q=sr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===t||Pr(ge,ms[fe])&&!Rt.call(i,fe))&&(i[fe]=U[fe])}return i}),JL=ht(function(i){return i.push(t,xw),Vt(o0,t,i)});function eO(i,g){return pa(i,Be(g,3),ii)}function tO(i,g){return pa(i,Be(g,3),md)}function nO(i,g){return i==null?i:gd(i,Be(g,3),sr)}function rO(i,g){return i==null?i:zv(i,Be(g,3),sr)}function iO(i,g){return i&&ii(i,Be(g,3))}function oO(i,g){return i&&md(i,Be(g,3))}function sO(i){return i==null?[]:gc(i,Mn(i))}function aO(i){return i==null?[]:gc(i,sr(i))}function Yd(i,g,S){var D=i==null?t:Mo(i,g);return D===t?S:D}function lO(i,g){return i!=null&&kw(i,g,RE)}function Kd(i,g){return i!=null&&kw(i,g,ME)}var cO=mw(function(i,g,S){g!=null&&typeof g.toString!="function"&&(g=nc.call(g)),i[g]=S},Zd(ar)),uO=mw(function(i,g,S){g!=null&&typeof g.toString!="function"&&(g=nc.call(g)),Rt.call(i,g)?i[g].push(S):i[g]=[S]},Be),hO=ht($a);function Mn(i){return or(i)?Ov(i):bd(i)}function sr(i){return or(i)?Ov(i,!0):BE(i)}function dO(i,g){var S={};return g=Be(g,3),ii(i,function(D,H,U){xi(S,g(D,H,U),D)}),S}function fO(i,g){var S={};return g=Be(g,3),ii(i,function(D,H,U){xi(S,H,g(D,H,U))}),S}var pO=bs(function(i,g,S){mc(i,g,S)}),o0=bs(function(i,g,S,D){mc(i,g,S,D)}),gO=Ci(function(i,g){var S={};if(i==null)return S;var D=!1;g=zt(g,function(U){return U=Qi(U,i),D||(D=U.length>1),U}),oi(i,Od(i),S),D&&(S=Sr(S,c|a|l,cR));for(var H=g.length;H--;)Sd(S,g[H]);return S});function mO(i,g){return s0(i,Rc(Be(g)))}var yO=Ci(function(i,g){return i==null?{}:UE(i,g)});function s0(i,g){if(i==null)return{};var S=zt(Od(i),function(D){return[D]});return g=Be(g),Zv(i,S,function(D,H){return g(D,H[0])})}function vO(i,g,S){g=Qi(g,i);var D=-1,H=g.length;for(H||(H=1,i=t);++D<H;){var U=i==null?t:i[si(g[D])];U===t&&(D=H,U=S),i=_i(U)?U.call(i):U}return i}function wO(i,g,S){return i==null?i:Ia(i,g,S)}function bO(i,g,S,D){return D=typeof D=="function"?D:t,i==null?i:Ia(i,g,S,D)}var a0=ww(Mn),l0=ww(sr);function xO(i,g,S){var D=Je(i),H=D||Xi(i)||Cs(i);if(g=Be(g,4),S==null){var U=i&&i.constructor;H?S=D?new U:[]:Xt(i)?S=_i(U)?ws(oc(i)):{}:S={}}return(H?Gn:ii)(i,function(Q,ee,ie){return g(S,Q,ee,ie)}),S}function AO(i,g){return i==null?!0:Sd(i,g)}function CO(i,g,S){return i==null?i:nw(i,g,Id(S))}function kO(i,g,S,D){return D=typeof D=="function"?D:t,i==null?i:nw(i,g,Id(S),D)}function ks(i){return i==null?[]:$o(i,Mn(i))}function _O(i){return i==null?[]:$o(i,sr(i))}function SO(i,g,S){return S===t&&(S=g,g=t),S!==t&&(S=Ir(S),S=S===S?S:0),g!==t&&(g=Ir(g),g=g===g?g:0),Ro(Ir(i),g,S)}function $O(i,g,S){return g=Si(g),S===t?(S=g,g=0):S=Si(S),i=Ir(i),LE(i,g,S)}function TO(i,g,S){if(S&&typeof S!="boolean"&&Qn(i,g,S)&&(g=S=t),S===t&&(typeof g=="boolean"?(S=g,g=t):typeof i=="boolean"&&(S=i,i=t)),i===t&&g===t?(i=0,g=1):(i=Si(i),g===t?(g=i,i=0):g=Si(g)),i>g){var D=i;i=g,g=D}if(S||i%1||g%1){var H=Mv();return jn(i+H*(g-i+wn("1e-"+((H+"").length-1))),g)}return Cd(i,g)}var IO=xs(function(i,g,S){return g=g.toLowerCase(),i+(S?c0(g):g)});function c0(i){return Qd(Tt(i).toLowerCase())}function u0(i){return i=Tt(i),i&&i.replace(rs,W).replace(zi,"")}function EO(i,g,S){i=Tt(i),g=pr(g);var D=i.length;S=S===t?D:Ro(st(S),0,D);var H=S;return S-=g.length,S>=0&&i.slice(S,H)==g}function RO(i){return i=Tt(i),i&&ed.test(i)?i.replace(Ml,z):i}function MO(i){return i=Tt(i),i&&Li.test(i)?i.replace(Xr,"\\$&"):i}var LO=xs(function(i,g,S){return i+(S?"-":"")+g.toLowerCase()}),OO=xs(function(i,g,S){return i+(S?" ":"")+g.toLowerCase()}),DO=fw("toLowerCase");function NO(i,g,S){i=Tt(i),g=st(g);var D=g?it(i):0;if(!g||D>=g)return i;var H=(g-D)/2;return Ac(cc(H),S)+i+Ac(lc(H),S)}function FO(i,g,S){i=Tt(i),g=st(g);var D=g?it(i):0;return g&&D<g?i+Ac(g-D,S):i}function WO(i,g,S){i=Tt(i),g=st(g);var D=g?it(i):0;return g&&D<g?Ac(g-D,S)+i:i}function PO(i,g,S){return S||g==null?g=0:g&&(g=+g),qI(Tt(i).replace(Pn,""),g||0)}function HO(i,g,S){return(S?Qn(i,g,S):g===t)?g=1:g=st(g),kd(Tt(i),g)}function zO(){var i=arguments,g=Tt(i[0]);return i.length<3?g:g.replace(i[1],i[2])}var BO=xs(function(i,g,S){return i+(S?"_":"")+g.toLowerCase()});function jO(i,g,S){return S&&typeof S!="number"&&Qn(i,g,S)&&(g=S=t),S=S===t?q:S>>>0,S?(i=Tt(i),i&&(typeof g=="string"||g!=null&&!Gd(g))&&(g=pr(g),!g&&te(i))?Zi(Ge(i),0,S):i.split(g,S)):[]}var UO=xs(function(i,g,S){return i+(S?" ":"")+Qd(g)});function VO(i,g,S){return i=Tt(i),S=S==null?0:Ro(st(S),0,i.length),g=pr(g),i.slice(S,S+g.length)==g}function qO(i,g,S){var D=B.templateSettings;S&&Qn(i,g,S)&&(g=t),i=Tt(i),g=Oc({},g,D,bw);var H=Oc({},g.imports,D.imports,bw),U=Mn(H),Q=$o(H,U),ee,ie,fe=0,ge=g.interpolate||Hn,ve="__p += '",$e=$n((g.escape||Hn).source+"|"+ge.source+"|"+(ge===Pe?od:Hn).source+"|"+(g.evaluate||Hn).source+"|$","g"),Oe="//# sourceURL="+(Rt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vl+"]")+`
|
1393
|
+
`;i.replace($e,function(Ve,mt,wt,mr,Zn,yr){return wt||(wt=mr),ve+=i.slice(fe,yr).replace(wo,Y),mt&&(ee=!0,ve+=`' +
|
1394
|
+
__e(`+mt+`) +
|
1395
|
+
'`),Zn&&(ie=!0,ve+=`';
|
1396
|
+
`+Zn+`;
|
1397
|
+
__p += '`),wt&&(ve+=`' +
|
1398
|
+
((__t = (`+wt+`)) == null ? '' : __t) +
|
1399
|
+
'`),fe=yr+Ve.length,Ve}),ve+=`';
|
1400
|
+
`;var Ue=Rt.call(g,"variable")&&g.variable;if(!Ue)ve=`with (obj) {
|
1401
|
+
`+ve+`
|
1402
|
+
}
|
1403
|
+
`;else if(id.test(Ue))throw new Fe(w);ve=(ie?ve.replace(di,""):ve).replace(er,"$1").replace(Ks,"$1;"),ve="function("+(Ue||"obj")+`) {
|
1404
|
+
`+(Ue?"":`obj || (obj = {});
|
1405
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
1406
|
+
function print() { __p += __j.call(arguments, '') }
|
1407
|
+
`:`;
|
1408
|
+
`)+ve+`return __p
|
1409
|
+
}`;var lt=d0(function(){return Qe(U,Oe+"return "+ve).apply(t,Q)});if(lt.source=ve,qd(lt))throw lt;return lt}function GO(i){return Tt(i).toLowerCase()}function YO(i){return Tt(i).toUpperCase()}function KO(i,g,S){if(i=Tt(i),i&&(S||g===t))return Qt(i);if(!i||!(g=pr(g)))return i;var D=Ge(i),H=Ge(g),U=Xl(D,H),Q=Jl(D,H)+1;return Zi(D,U,Q).join("")}function QO(i,g,S){if(i=Tt(i),i&&(S||g===t))return i.slice(0,Ze(i)+1);if(!i||!(g=pr(g)))return i;var D=Ge(i),H=Jl(D,Ge(g))+1;return Zi(D,0,H).join("")}function ZO(i,g,S){if(i=Tt(i),i&&(S||g===t))return i.replace(Pn,"");if(!i||!(g=pr(g)))return i;var D=Ge(i),H=Xl(D,Ge(g));return Zi(D,H).join("")}function XO(i,g){var S=I,D=N;if(Xt(g)){var H="separator"in g?g.separator:H;S="length"in g?st(g.length):S,D="omission"in g?pr(g.omission):D}i=Tt(i);var U=i.length;if(te(i)){var Q=Ge(i);U=Q.length}if(S>=U)return i;var ee=S-it(D);if(ee<1)return D;var ie=Q?Zi(Q,0,ee).join(""):i.slice(0,ee);if(H===t)return ie+D;if(Q&&(ee+=ie.length-ee),Gd(H)){if(i.slice(ee).search(H)){var fe,ge=ie;for(H.global||(H=$n(H.source,Tt(Ni.exec(H))+"g")),H.lastIndex=0;fe=H.exec(ge);)var ve=fe.index;ie=ie.slice(0,ve===t?ee:ve)}}else if(i.indexOf(pr(H),ee)!=ee){var $e=ie.lastIndexOf(H);$e>-1&&(ie=ie.slice(0,$e))}return ie+D}function JO(i){return i=Tt(i),i&&Jh.test(i)?i.replace(Qs,Le):i}var e2=xs(function(i,g,S){return i+(S?" ":"")+g.toUpperCase()}),Qd=fw("toUpperCase");function h0(i,g,S){return i=Tt(i),g=S?t:g,g===t?oe(i)?qt(i):ps(i):i.match(g)||[]}var d0=ht(function(i,g){try{return Vt(i,t,g)}catch(S){return qd(S)?S:new Fe(S)}}),t2=Ci(function(i,g){return Gn(g,function(S){S=si(S),xi(i,S,Ud(i[S],i))}),i});function n2(i){var g=i==null?0:i.length,S=Be();return i=g?zt(i,function(D){if(typeof D[1]!="function")throw new Tn(y);return[S(D[0]),D[1]]}):[],ht(function(D){for(var H=-1;++H<g;){var U=i[H];if(Vt(U[0],this,D))return Vt(U[1],this,D)}})}function r2(i){return TE(Sr(i,c))}function Zd(i){return function(){return i}}function i2(i,g){return i==null||i!==i?g:i}var o2=gw(),s2=gw(!0);function ar(i){return i}function Xd(i){return Vv(typeof i=="function"?i:Sr(i,c))}function a2(i){return Gv(Sr(i,c))}function l2(i,g){return Yv(i,Sr(g,c))}var c2=ht(function(i,g){return function(S){return $a(S,i,g)}}),u2=ht(function(i,g){return function(S){return $a(i,S,g)}});function Jd(i,g,S){var D=Mn(g),H=gc(g,D);S==null&&!(Xt(g)&&(H.length||!D.length))&&(S=g,g=i,i=this,H=gc(g,Mn(g)));var U=!(Xt(S)&&"chain"in S)||!!S.chain,Q=_i(i);return Gn(H,function(ee){var ie=g[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ve=ge.__actions__=ir(this.__actions__);return ve.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,zn([this.value()],arguments))})}),i}function h2(){return Sn._===this&&(Sn._=FI),this}function ef(){}function d2(i){return i=st(i),ht(function(g){return Kv(g,i)})}var f2=Rd(zt),p2=Rd(Ui),g2=Rd(fs);function f0(i){return Wd(i)?ya(si(i)):VE(i)}function m2(i){return function(g){return i==null?t:Mo(i,g)}}var y2=yw(),v2=yw(!0);function tf(){return[]}function nf(){return!1}function w2(){return{}}function b2(){return""}function x2(){return!0}function A2(i,g){if(i=st(i),i<1||i>P)return[];var S=q,D=jn(i,q);g=Be(g),i-=q;for(var H=nn(D,g);++S<i;)g(S);return H}function C2(i){return Je(i)?zt(i,si):gr(i)?[i]:ir(Lw(Tt(i)))}function k2(i){var g=++DI;return Tt(i)+g}var _2=xc(function(i,g){return i+g},0),S2=Md("ceil"),$2=xc(function(i,g){return i/g},1),T2=Md("floor");function I2(i){return i&&i.length?pc(i,ar,yd):t}function E2(i,g){return i&&i.length?pc(i,Be(g,2),yd):t}function R2(i){return ma(i,ar)}function M2(i,g){return ma(i,Be(g,2))}function L2(i){return i&&i.length?pc(i,ar,xd):t}function O2(i,g){return i&&i.length?pc(i,Be(g,2),xd):t}var D2=xc(function(i,g){return i*g},1),N2=Md("round"),F2=xc(function(i,g){return i-g},0);function W2(i){return i&&i.length?qi(i,ar):0}function P2(i,g){return i&&i.length?qi(i,Be(g,2)):0}return B.after=aL,B.ary=Uw,B.assign=YL,B.assignIn=i0,B.assignInWith=Oc,B.assignWith=KL,B.at=QL,B.before=Vw,B.bind=Ud,B.bindAll=t2,B.bindKey=qw,B.castArray=wL,B.chain=zw,B.chunk=TR,B.compact=IR,B.concat=ER,B.cond=n2,B.conforms=r2,B.constant=Zd,B.countBy=WM,B.create=ZL,B.curry=Gw,B.curryRight=Yw,B.debounce=Kw,B.defaults=XL,B.defaultsDeep=JL,B.defer=lL,B.delay=cL,B.difference=RR,B.differenceBy=MR,B.differenceWith=LR,B.drop=OR,B.dropRight=DR,B.dropRightWhile=NR,B.dropWhile=FR,B.fill=WR,B.filter=HM,B.flatMap=jM,B.flatMapDeep=UM,B.flatMapDepth=VM,B.flatten=Fw,B.flattenDeep=PR,B.flattenDepth=HR,B.flip=uL,B.flow=o2,B.flowRight=s2,B.fromPairs=zR,B.functions=sO,B.functionsIn=aO,B.groupBy=qM,B.initial=jR,B.intersection=UR,B.intersectionBy=VR,B.intersectionWith=qR,B.invert=cO,B.invertBy=uO,B.invokeMap=YM,B.iteratee=Xd,B.keyBy=KM,B.keys=Mn,B.keysIn=sr,B.map=Tc,B.mapKeys=dO,B.mapValues=fO,B.matches=a2,B.matchesProperty=l2,B.memoize=Ec,B.merge=pO,B.mergeWith=o0,B.method=c2,B.methodOf=u2,B.mixin=Jd,B.negate=Rc,B.nthArg=d2,B.omit=gO,B.omitBy=mO,B.once=hL,B.orderBy=QM,B.over=f2,B.overArgs=dL,B.overEvery=p2,B.overSome=g2,B.partial=Vd,B.partialRight=Qw,B.partition=ZM,B.pick=yO,B.pickBy=s0,B.property=f0,B.propertyOf=m2,B.pull=QR,B.pullAll=Pw,B.pullAllBy=ZR,B.pullAllWith=XR,B.pullAt=JR,B.range=y2,B.rangeRight=v2,B.rearg=fL,B.reject=eL,B.remove=eM,B.rest=pL,B.reverse=Bd,B.sampleSize=nL,B.set=wO,B.setWith=bO,B.shuffle=rL,B.slice=tM,B.sortBy=sL,B.sortedUniq=lM,B.sortedUniqBy=cM,B.split=jO,B.spread=gL,B.tail=uM,B.take=hM,B.takeRight=dM,B.takeRightWhile=fM,B.takeWhile=pM,B.tap=IM,B.throttle=mL,B.thru=$c,B.toArray=t0,B.toPairs=a0,B.toPairsIn=l0,B.toPath=C2,B.toPlainObject=r0,B.transform=xO,B.unary=yL,B.union=gM,B.unionBy=mM,B.unionWith=yM,B.uniq=vM,B.uniqBy=wM,B.uniqWith=bM,B.unset=AO,B.unzip=jd,B.unzipWith=Hw,B.update=CO,B.updateWith=kO,B.values=ks,B.valuesIn=_O,B.without=xM,B.words=h0,B.wrap=vL,B.xor=AM,B.xorBy=CM,B.xorWith=kM,B.zip=_M,B.zipObject=SM,B.zipObjectDeep=$M,B.zipWith=TM,B.entries=a0,B.entriesIn=l0,B.extend=i0,B.extendWith=Oc,Jd(B,B),B.add=_2,B.attempt=d0,B.camelCase=IO,B.capitalize=c0,B.ceil=S2,B.clamp=SO,B.clone=bL,B.cloneDeep=AL,B.cloneDeepWith=CL,B.cloneWith=xL,B.conformsTo=kL,B.deburr=u0,B.defaultTo=i2,B.divide=$2,B.endsWith=EO,B.eq=Pr,B.escape=RO,B.escapeRegExp=MO,B.every=PM,B.find=zM,B.findIndex=Dw,B.findKey=eO,B.findLast=BM,B.findLastIndex=Nw,B.findLastKey=tO,B.floor=T2,B.forEach=Bw,B.forEachRight=jw,B.forIn=nO,B.forInRight=rO,B.forOwn=iO,B.forOwnRight=oO,B.get=Yd,B.gt=_L,B.gte=SL,B.has=lO,B.hasIn=Kd,B.head=Ww,B.identity=ar,B.includes=GM,B.indexOf=BR,B.inRange=$O,B.invoke=hO,B.isArguments=Do,B.isArray=Je,B.isArrayBuffer=$L,B.isArrayLike=or,B.isArrayLikeObject=un,B.isBoolean=TL,B.isBuffer=Xi,B.isDate=IL,B.isElement=EL,B.isEmpty=RL,B.isEqual=ML,B.isEqualWith=LL,B.isError=qd,B.isFinite=OL,B.isFunction=_i,B.isInteger=Zw,B.isLength=Mc,B.isMap=Xw,B.isMatch=DL,B.isMatchWith=NL,B.isNaN=FL,B.isNative=WL,B.isNil=HL,B.isNull=PL,B.isNumber=Jw,B.isObject=Xt,B.isObjectLike=rn,B.isPlainObject=La,B.isRegExp=Gd,B.isSafeInteger=zL,B.isSet=e0,B.isString=Lc,B.isSymbol=gr,B.isTypedArray=Cs,B.isUndefined=BL,B.isWeakMap=jL,B.isWeakSet=UL,B.join=GR,B.kebabCase=LO,B.last=Tr,B.lastIndexOf=YR,B.lowerCase=OO,B.lowerFirst=DO,B.lt=VL,B.lte=qL,B.max=I2,B.maxBy=E2,B.mean=R2,B.meanBy=M2,B.min=L2,B.minBy=O2,B.stubArray=tf,B.stubFalse=nf,B.stubObject=w2,B.stubString=b2,B.stubTrue=x2,B.multiply=D2,B.nth=KR,B.noConflict=h2,B.noop=ef,B.now=Ic,B.pad=NO,B.padEnd=FO,B.padStart=WO,B.parseInt=PO,B.random=TO,B.reduce=XM,B.reduceRight=JM,B.repeat=HO,B.replace=zO,B.result=vO,B.round=N2,B.runInContext=ne,B.sample=tL,B.size=iL,B.snakeCase=BO,B.some=oL,B.sortedIndex=nM,B.sortedIndexBy=rM,B.sortedIndexOf=iM,B.sortedLastIndex=oM,B.sortedLastIndexBy=sM,B.sortedLastIndexOf=aM,B.startCase=UO,B.startsWith=VO,B.subtract=F2,B.sum=W2,B.sumBy=P2,B.template=qO,B.times=A2,B.toFinite=Si,B.toInteger=st,B.toLength=n0,B.toLower=GO,B.toNumber=Ir,B.toSafeInteger=GL,B.toString=Tt,B.toUpper=YO,B.trim=KO,B.trimEnd=QO,B.trimStart=ZO,B.truncate=XO,B.unescape=JO,B.uniqueId=k2,B.upperCase=e2,B.upperFirst=Qd,B.each=Bw,B.eachRight=jw,B.first=Ww,Jd(B,function(){var i={};return ii(B,function(g,S){Rt.call(B.prototype,S)||(i[S]=g)}),i}(),{chain:!1}),B.VERSION=r,Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){B[i].placeholder=B}),Gn(["drop","take"],function(i,g){vt.prototype[i]=function(S){S=S===t?1:In(st(S),0);var D=this.__filtered__&&!g?new vt(this):this.clone();return D.__filtered__?D.__takeCount__=jn(S,D.__takeCount__):D.__views__.push({size:jn(S,q),type:i+(D.__dir__<0?"Right":"")}),D},vt.prototype[i+"Right"]=function(S){return this.reverse()[i](S).reverse()}}),Gn(["filter","map","takeWhile"],function(i,g){var S=g+1,D=S==k||S==O;vt.prototype[i]=function(H){var U=this.clone();return U.__iteratees__.push({iteratee:Be(H,3),type:S}),U.__filtered__=U.__filtered__||D,U}}),Gn(["head","last"],function(i,g){var S="take"+(g?"Right":"");vt.prototype[i]=function(){return this[S](1).value()[0]}}),Gn(["initial","tail"],function(i,g){var S="drop"+(g?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[S](1)}}),vt.prototype.compact=function(){return this.filter(ar)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=ht(function(i,g){return typeof i=="function"?new vt(this):this.map(function(S){return $a(S,i,g)})}),vt.prototype.reject=function(i){return this.filter(Rc(Be(i)))},vt.prototype.slice=function(i,g){i=st(i);var S=this;return S.__filtered__&&(i>0||g<0)?new vt(S):(i<0?S=S.takeRight(-i):i&&(S=S.drop(i)),g!==t&&(g=st(g),S=g<0?S.dropRight(-g):S.take(g-i)),S)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(q)},ii(vt.prototype,function(i,g){var S=/^(?:filter|find|map|reject)|While$/.test(g),D=/^(?:head|last)$/.test(g),H=B[D?"take"+(g=="last"?"Right":""):g],U=D||/^find/.test(g);H&&(B.prototype[g]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof vt,fe=ee[0],ge=ie||Je(Q),ve=function(mt){var wt=H.apply(B,zn([mt],ee));return D&&$e?wt[0]:wt};ge&&S&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var $e=this.__chain__,Oe=!!this.__actions__.length,Ue=U&&!$e,lt=ie&&!Oe;if(!U&&ge){Q=lt?Q:new vt(this);var Ve=i.apply(Q,ee);return Ve.__actions__.push({func:$c,args:[ve],thisArg:t}),new _r(Ve,$e)}return Ue&<?i.apply(this,ee):(Ve=this.thru(ve),Ue?D?Ve.value()[0]:Ve.value():Ve)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(i){var g=fr[i],S=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);B.prototype[i]=function(){var H=arguments;if(D&&!this.__chain__){var U=this.value();return g.apply(Je(U)?U:[],H)}return this[S](function(Q){return g.apply(Je(Q)?Q:[],H)})}}),ii(vt.prototype,function(i,g){var S=B[g];if(S){var D=S.name+"";Rt.call(vs,D)||(vs[D]=[]),vs[D].push({name:g,func:S})}}),vs[bc(t,v).name]=[{name:"wrapper",func:t}],vt.prototype.clone=JI,vt.prototype.reverse=eE,vt.prototype.value=tE,B.prototype.at=EM,B.prototype.chain=RM,B.prototype.commit=MM,B.prototype.next=LM,B.prototype.plant=DM,B.prototype.reverse=NM,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=FM,B.prototype.first=B.prototype.head,ba&&(B.prototype[ba]=OM),B},Wt=Ft();Rn?((Rn.exports=Wt)._=Wt,Ar._=Wt):Sn._=Wt}).call(IA)}(el,el.exports)),el.exports}var rg=EA();dn("T",Na(rg)).debounce(function(){this.rebuildDisplayText()},300);var ig={exports:{}},og;function RA(){return og||(og=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n&&(n.exports=t)})})()}(ig)),ig.exports}RA();const MA=!0,bn="u-",LA="uplot",OA=bn+"hz",DA=bn+"vt",NA=bn+"title",FA=bn+"wrap",WA=bn+"under",PA=bn+"over",HA=bn+"axis",co=bn+"off",zA=bn+"select",BA=bn+"cursor-x",jA=bn+"cursor-y",UA=bn+"cursor-pt",VA=bn+"legend",qA=bn+"live",GA=bn+"inline",YA=bn+"series",KA=bn+"marker",sg=bn+"label",QA=bn+"value",Ds="width",Ns="height",Fs="top",ag="bottom",jo="left",pu="right",gu="#000",lg=gu+"0",cg="mousemove",ug="mousedown",mu="mouseup",hg="mouseenter",dg="mouseleave",fg="dblclick",ZA="resize",XA="scroll",pg="change",tl="dppxchange",yu="--",Uo=typeof window<"u",vu=Uo?document:null,Vo=Uo?window:null,JA=Uo?navigator:null;let Ct,nl;function wu(){let n=devicePixelRatio;Ct!=n&&(Ct=n,nl&&Au(pg,nl,wu),nl=matchMedia(`(min-resolution: ${Ct-.001}dppx) and (max-resolution: ${Ct+.001}dppx)`),uo(pg,nl,wu),Vo.dispatchEvent(new CustomEvent(tl)))}function cr(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function bu(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function Bt(n,e,t){n.style[e]=t+"px"}function Lr(n,e,t,r){let d=vu.createElement(n);return e!=null&&cr(d,e),t!=null&&t.insertBefore(d,r),d}function vr(n,e){return Lr("div",n,e)}const gg=new WeakMap;function qr(n,e,t,r,d){let f="translate("+e+"px,"+t+"px)",y=gg.get(n);f!=y&&(n.style.transform=f,gg.set(n,f),e<0||t<0||e>r||t>d?cr(n,co):bu(n,co))}const mg=new WeakMap;function yg(n,e,t){let r=e+t,d=mg.get(n);r!=d&&(mg.set(n,r),n.style.background=e,n.style.borderColor=t)}const vg=new WeakMap;function wg(n,e,t,r){let d=e+""+t,f=vg.get(n);d!=f&&(vg.set(n,d),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 xu={passive:!0},eC={...xu,capture:!0};function uo(n,e,t,r){e.addEventListener(n,t,r?eC:xu)}function Au(n,e,t,r){e.removeEventListener(n,t,xu)}Uo&&wu();function Or(n,e,t,r){let d;t=t||0,r=r||e.length-1;let f=r<=2147483647;for(;r-t>1;)d=f?t+r>>1:hr((t+r)/2),e[d]<n?t=d:r=d;return n-e[t]<=e[r]-n?t:r}function qo(n,e,t,r){for(let d=r==1?e:t;d>=e&&d<=t;d+=r)if(n[d]!=null)return d;return-1}function tC(n,e,t,r){let d=Gt,f=-1/0;if(r==1)d=n[e],f=n[t];else if(r==-1)d=n[t],f=n[e];else for(let y=e;y<=t;y++){let w=n[y];w!=null&&(w<d&&(d=w),w>f&&(f=w))}return[d,f]}function nC(n,e,t){let r=Gt,d=-1/0;for(let f=e;f<=t;f++){let y=n[f];y!=null&&y>0&&(y<r&&(r=y),y>d&&(d=y))}return[r,d]}function rl(n,e,t,r){let d=Ag(n),f=Ag(e);n==e&&(d==-1?(n*=t,e/=t):(n/=t,e*=t));let y=t==10?ui:Cg,w=d==1?hr:wr,h=f==1?wr:hr,p=w(y(xn(n))),s=h(y(xn(e))),c=Go(t,p),a=Go(t,s);return t==10&&(p<0&&(c=Ot(c,-p)),s<0&&(a=Ot(a,-s))),r||t==2?(n=c*d,e=a*f):(n=Ig(n,c),e=sl(e,a)),[n,e]}function Cu(n,e,t,r){let d=rl(n,e,t,r);return n==0&&(d[0]=0),e==0&&(d[1]=0),d}const ku=.1,bg={mode:3,pad:ku},Ws={pad:0,soft:null,mode:0},rC={min:Ws,max:Ws};function il(n,e,t,r){return al(t)?xg(n,e,t):(Ws.pad=t,Ws.soft=r?0:null,Ws.mode=r?3:0,xg(n,e,rC))}function xt(n,e){return n??e}function iC(n,e,t){for(e=xt(e,0),t=xt(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function xg(n,e,t){let r=t.min,d=t.max,f=xt(r.pad,0),y=xt(d.pad,0),w=xt(r.hard,-1/0),h=xt(d.hard,Gt),p=xt(r.soft,Gt),s=xt(d.soft,-1/0),c=xt(r.mode,0),a=xt(d.mode,0),l=e-n,o=ui(l),u=Dn(xn(n),xn(e)),m=ui(u),v=xn(m-o);(l<1e-24||v>10)&&(l=0,(n==0||e==0)&&(l=1e-24,c==2&&p!=Gt&&(f=0),a==2&&s!=-1/0&&(y=0)));let b=l||u||1e3,R=ui(b),$=Go(10,hr(R)),C=b*(l==0?n==0?.1:1:f),x=Ot(Ig(n-C,$/10),24),T=n>=p&&(c==1||c==3&&x<=p||c==2&&x>=p)?p:Gt,E=Dn(w,x<T&&n>=T?T:br(T,x)),L=b*(l==0?e==0?.1:1:y),I=Ot(sl(e+L,$/10),24),N=e<=s&&(a==1||a==3&&I>=s||a==2&&I<=s)?s:-1/0,_=br(h,I>N&&e<=N?N:Dn(N,I));return E==_&&E==0&&(_=100),[E,_]}const oC=new Intl.NumberFormat(Uo?JA.language:"en-US"),_u=n=>oC.format(n),ur=Math,ol=ur.PI,xn=ur.abs,hr=ur.floor,An=ur.round,wr=ur.ceil,br=ur.min,Dn=ur.max,Go=ur.pow,Ag=ur.sign,ui=ur.log10,Cg=ur.log2,sC=(n,e=1)=>ur.sinh(n)*e,Su=(n,e=1)=>ur.asinh(n/e),Gt=1/0;function kg(n){return(ui((n^n>>31)-(n>>31))|0)+1}function $u(n,e,t){return br(Dn(n,e),t)}function yt(n){return typeof n=="function"?n:()=>n}const aC=()=>{},_g=n=>n,Sg=(n,e)=>e,lC=n=>null,$g=n=>!0,Tg=(n,e)=>n==e,cC=/\.\d*?(?=9{6,}|0{6,})/gm,ho=n=>{if(Rg(n)||Ri.has(n))return n;const e=`${n}`,t=e.match(cC);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[d,f]=e.split("e");return+`${ho(d)}e${f}`}return Ot(n,r)};function fo(n,e){return ho(Ot(ho(n/e))*e)}function sl(n,e){return ho(wr(ho(n/e))*e)}function Ig(n,e){return ho(hr(ho(n/e))*e)}function Ot(n,e=0){if(Rg(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return An(r)/t}const Ri=new Map;function Eg(n){return((""+n).split(".")[1]||"").length}function Ps(n,e,t,r){let d=[],f=r.map(Eg);for(let y=e;y<t;y++){let w=xn(y),h=Ot(Go(n,y),w);for(let p=0;p<r.length;p++){let s=n==10?+`${r[p]}e${y}`:r[p]*h,c=(y>=0?0:w)+(y>=f[p]?0:f[p]),a=n==10?s:Ot(s,c);d.push(a),Ri.set(a,c)}}return d}const Hs={},Tu=[],Yo=[null,null],Mi=Array.isArray,Rg=Number.isInteger,uC=n=>n===void 0;function Mg(n){return typeof n=="string"}function al(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function hC(n){return n!=null&&typeof n=="object"}const dC=Object.getPrototypeOf(Uint8Array),Lg="__proto__";function Ko(n,e=al){let t;if(Mi(n)){let r=n.find(d=>d!=null);if(Mi(r)||e(r)){t=Array(n.length);for(let d=0;d<n.length;d++)t[d]=Ko(n[d],e)}else t=n.slice()}else if(n instanceof dC)t=n.slice();else if(e(n)){t={};for(let r in n)r!=Lg&&(t[r]=Ko(n[r],e))}else t=n;return t}function pn(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let d in r)d!=Lg&&(al(n[d])?pn(n[d],Ko(r[d])):n[d]=Ko(r[d]))}return n}const fC=0,pC=1,gC=2;function mC(n,e,t){for(let r=0,d,f=-1;r<e.length;r++){let y=e[r];if(y>f){for(d=y-1;d>=0&&n[d]==null;)n[d--]=null;for(d=y+1;d<t&&n[d]==null;)n[f=d++]=null}}}function yC(n,e){if(bC(n)){let y=n[0].slice();for(let w=1;w<n.length;w++)y.push(...n[w].slice(1));return xC(y[0])||(y=wC(y)),y}let t=new Set;for(let y=0;y<n.length;y++){let w=n[y][0],h=w.length;for(let p=0;p<h;p++)t.add(w[p])}let r=[Array.from(t).sort((y,w)=>y-w)],d=r[0].length,f=new Map;for(let y=0;y<d;y++)f.set(r[0][y],y);for(let y=0;y<n.length;y++){let w=n[y],h=w[0];for(let p=1;p<w.length;p++){let s=w[p],c=Array(d).fill(void 0),a=e?e[y][p]:pC,l=[];for(let o=0;o<s.length;o++){let u=s[o],m=f.get(h[o]);u===null?a!=fC&&(c[m]=u,a==gC&&l.push(m)):c[m]=u}mC(c,l,d),r.push(c)}}return r}const vC=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function wC(n){let e=n[0],t=e.length,r=Array(t);for(let f=0;f<r.length;f++)r[f]=f;r.sort((f,y)=>e[f]-e[y]);let d=[];for(let f=0;f<n.length;f++){let y=n[f],w=Array(t);for(let h=0;h<t;h++)w[h]=y[r[h]];d.push(w)}return d}function bC(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let d=n[r][0];if(d.length!=t)return!1;if(d!=e){for(let f=0;f<t;f++)if(d[f]!=e[f])return!1}}return!0}function xC(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,d=t-1;for(;r<=d&&n[r]==null;)r++;for(;d>=r&&n[d]==null;)d--;if(d<=r)return!0;const f=Dn(1,hr((d-r+1)/e));for(let y=n[r],w=r+f;w<=d;w+=f){const h=n[w];if(h!=null){if(h<=y)return!1;y=h}}return!0}const Og=["January","February","March","April","May","June","July","August","September","October","November","December"],Dg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ng(n){return n.slice(0,3)}const AC=Dg.map(Ng),CC=Og.map(Ng),kC={MMMM:Og,MMM:CC,WWWW:Dg,WWW:AC};function zs(n){return(n<10?"0":"")+n}function _C(n){return(n<10?"00":n<100?"0":"")+n}const SC={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=>zs(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>zs(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>zs(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=>zs(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>zs(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>_C(n.getMilliseconds())};function Iu(n,e){e=e||kC;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,d;for(;d=r.exec(n);)t.push(d[0][0]=="{"?SC[d[1]]:d[0]);return f=>{let y="";for(let w=0;w<t.length;w++)y+=typeof t[w]=="string"?t[w]:t[w](f,e);return y}}const $C=new Intl.DateTimeFormat().resolvedOptions().timeZone;function TC(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==$C?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const Fg=n=>n%1==0,ll=[1,2,2.5,5],IC=Ps(10,-32,0,ll),Wg=Ps(10,0,32,ll),EC=Wg.filter(Fg),po=IC.concat(Wg),Eu=`
|
1410
|
+
`,Pg="{YYYY}",Hg=Eu+Pg,zg="{M}/{D}",Bs=Eu+zg,cl=Bs+"/{YY}",Bg="{aa}",RC="{h}:{mm}",Qo=RC+Bg,jg=Eu+Qo,Ug=":{ss}",_t=null;function Vg(n){let e=n*1e3,t=e*60,r=t*60,d=r*24,f=d*30,y=d*365,w=(n==1?Ps(10,0,3,ll).filter(Fg):Ps(10,-3,0,ll)).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,d,d*2,d*3,d*4,d*5,d*6,d*7,d*8,d*9,d*10,d*15,f,f*2,f*3,f*4,f*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,Pg,_t,_t,_t,_t,_t,_t,1],[d*28,"{MMM}",Hg,_t,_t,_t,_t,_t,1],[d,zg,Hg,_t,_t,_t,_t,_t,1],[r,"{h}"+Bg,cl,_t,Bs,_t,_t,_t,1],[t,Qo,cl,_t,Bs,_t,_t,_t,1],[e,Ug,cl+" "+Qo,_t,Bs+" "+Qo,_t,jg,_t,1],[n,Ug+".{fff}",cl+" "+Qo,_t,Bs+" "+Qo,_t,jg,_t,1]];function p(s){return(c,a,l,o,u,m)=>{let v=[],b=u>=y,R=u>=f&&u<y,$=s(l),C=Ot($*n,3),x=Ru($.getFullYear(),b?0:$.getMonth(),R||b?1:$.getDate()),T=Ot(x*n,3);if(R||b){let E=R?u/f:0,L=b?u/y:0,I=C==T?C:Ot(Ru(x.getFullYear()+L,x.getMonth()+E,1)*n,3),N=new Date(An(I/n)),_=N.getFullYear(),A=N.getMonth();for(let k=0;I<=o;k++){let M=Ru(_+L*k,A+E*k,1),O=M-s(Ot(M*n,3));I=Ot((+M+O)*n,3),I<=o&&v.push(I)}}else{let E=u>=d?d:u,L=hr(l)-hr(C),I=T+L+sl(C-T,E);v.push(I);let N=s(I),_=N.getHours()+N.getMinutes()/t+N.getSeconds()/r,A=u/r,k=c.axes[a]._space,M=m/k;for(;I=Ot(I+u,n==1?0:3),!(I>o);)if(A>1){let O=hr(Ot(_+A,6))%24,F=s(I).getHours()-O;F>1&&(F=-1),I-=F*r,_=(_+A)%24;let P=v[v.length-1];Ot((I-P)/u,3)*M>=.7&&v.push(I)}else v.push(I)}return v}}return[w,h,p]}const[MC,LC,OC]=Vg(1),[DC,NC,FC]=Vg(.001);Ps(2,-53,53,[1]);function qg(n,e){return n.map(t=>t.map((r,d)=>d==0||d==8||r==null?r:e(d==1||t[8]==0?r:t[1]+r)))}function Gg(n,e){return(t,r,d,f,y)=>{let w=e.find(o=>y>=o[0])||e[e.length-1],h,p,s,c,a,l;return r.map(o=>{let u=n(o),m=u.getFullYear(),v=u.getMonth(),b=u.getDate(),R=u.getHours(),$=u.getMinutes(),C=u.getSeconds(),x=m!=h&&w[2]||v!=p&&w[3]||b!=s&&w[4]||R!=c&&w[5]||$!=a&&w[6]||C!=l&&w[7]||w[1];return h=m,p=v,s=b,c=R,a=$,l=C,x(u)})}}function WC(n,e){let t=Iu(e);return(r,d,f,y,w)=>d.map(h=>t(n(h)))}function Ru(n,e,t){return new Date(n,e,t)}function Yg(n,e){return e(n)}const PC="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Kg(n,e){return(t,r,d,f)=>f==null?yu:e(n(r))}function HC(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function zC(n,e){return n.series[e].fill(n,e)}const BC={show:!0,live:!0,isolate:!1,mount:aC,markers:{show:!0,width:2,stroke:HC,fill:zC,dash:"solid"},idx:null,idxs:null,values:[]};function jC(n,e){let t=n.cursor.points,r=vr(),d=t.size(n,e);Bt(r,Ds,d),Bt(r,Ns,d);let f=d/-2;Bt(r,"marginLeft",f),Bt(r,"marginTop",f);let y=t.width(n,e,d);return y&&Bt(r,"borderWidth",y),r}function UC(n,e){let t=n.series[e].points;return t._fill||t._stroke}function VC(n,e){let t=n.series[e].points;return t._stroke||t._fill}function qC(n,e){return n.series[e].points.size}const Mu=[0,0];function GC(n,e,t){return Mu[0]=e,Mu[1]=t,Mu}function ul(n,e,t,r=!0){return d=>{d.button==0&&(!r||d.target==e)&&t(d)}}function Lu(n,e,t,r=!0){return d=>{(!r||d.target==e)&&t(d)}}const YC={show:!0,x:!0,y:!0,lock:!1,move:GC,points:{one:!1,show:jC,size:qC,width:0,stroke:VC,fill:UC},bind:{mousedown:ul,mouseup:ul,click:ul,dblclick:ul,mousemove:Lu,mouseleave:Lu,mouseenter:Lu},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,d)=>r-d,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Qg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ou=pn({},Qg,{filter:Sg}),Zg=pn({},Ou,{size:10}),Xg=pn({},Qg,{show:!1}),Du='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"',Jg="bold "+Du,em=1.5,tm={show:!0,scale:"x",stroke:gu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Jg,side:2,grid:Ou,ticks:Zg,border:Xg,font:Du,lineGap:em,rotate:0},KC="Value",QC="Time",nm={show:!0,scale:"x",auto:!1,sorted:1,min:Gt,max:-1/0,idxs:[]};function ZC(n,e,t,r,d){return e.map(f=>f==null?"":_u(f))}function XC(n,e,t,r,d,f,y){let w=[],h=Ri.get(d)||0;t=y?t:Ot(sl(t,d),h);for(let p=t;p<=r;p=Ot(p+d,h))w.push(Object.is(p,-0)?0:p);return w}function Nu(n,e,t,r,d,f,y){const w=[],h=n.scales[n.axes[e].scale].log,p=h==10?ui:Cg,s=hr(p(t));d=Go(h,s),h==10&&(d=po[Or(d,po)]);let c=t,a=d*h;h==10&&(a=po[Or(a,po)]);do w.push(c),c=c+d,h==10&&!Ri.has(c)&&(c=Ot(c,Ri.get(d))),c>=a&&(d=c,a=d*h,h==10&&(a=po[Or(a,po)]));while(c<=r);return w}function JC(n,e,t,r,d,f,y){let w=n.scales[n.axes[e].scale].asinh,h=r>w?Nu(n,e,Dn(w,t),r,d):[w],p=r>=0&&t<=0?[0]:[];return(t<-w?Nu(n,e,Dn(w,-r),-t,d):[w]).reverse().map(s=>-s).concat(p,h)}const rm=/./,ek=/[12357]/,tk=/[125]/,im=/1/,Fu=(n,e,t,r)=>n.map((d,f)=>e==4&&d==0||f%r==0&&t.test(d.toExponential()[d<0?1:0])?d:null);function nk(n,e,t,r,d){let f=n.axes[t],y=f.scale,w=n.scales[y],h=n.valToPos,p=f._space,s=h(10,y),c=h(9,y)-s>=p?rm:h(7,y)-s>=p?ek:h(5,y)-s>=p?tk:im;if(c==im){let a=xn(h(1,y)-s);if(a<p)return Fu(e.slice().reverse(),w.distr,c,wr(p/a)).reverse()}return Fu(e,w.distr,c,1)}function rk(n,e,t,r,d){let f=n.axes[t],y=f.scale,w=f._space,h=n.valToPos,p=xn(h(1,y)-h(2,y));return p<w?Fu(e.slice().reverse(),3,rm,wr(w/p)).reverse():e}function ik(n,e,t,r){return r==null?yu:e==null?"":_u(e)}const om={show:!0,scale:"y",stroke:gu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Jg,side:3,grid:Ou,ticks:Zg,border:Xg,font:Du,lineGap:em,rotate:0};function ok(n,e){let t=3+(n||1)*2;return Ot(t*e,3)}function sk(n,e){let{scale:t,idxs:r}=n.series[0],d=n._data[0],f=n.valToPos(d[r[0]],t,!0),y=n.valToPos(d[r[1]],t,!0),w=xn(y-f),h=n.series[e],p=w/(h.points.space*Ct);return r[1]-r[0]<=p}const sm={scale:null,auto:!0,sorted:0,min:Gt,max:-1/0},am=(n,e,t,r,d)=>d,lm={show:!0,auto:!0,sorted:0,gaps:am,alpha:1,facets:[pn({},sm,{scale:"x"}),pn({},sm,{scale:"y"})]},cm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:am,alpha:1,points:{show:sk,filter:null},values:null,min:Gt,max:-1/0,idxs:[],path:null,clip:null};function ak(n,e,t,r,d){return t/10}const um={time:MA,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},lk=pn({},um,{time:!1,ori:1}),hm={};function dm(n,e){let t=hm[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(d=>d!=r)},pub(r,d,f,y,w,h,p){for(let s=0;s<t.plots.length;s++)t.plots[s]!=d&&t.plots[s].pub(r,d,f,y,w,h,p)}},n!=null&&(hm[n]=t)),t}const Zo=1,Wu=2;function go(n,e,t){const r=n.mode,d=n.series[e],f=r==2?n._data[e]:n._data,y=n.scales,w=n.bbox;let h=f[0],p=r==2?f[1]:f[e],s=r==2?y[d.facets[0].scale]:y[n.series[0].scale],c=r==2?y[d.facets[1].scale]:y[d.scale],a=w.left,l=w.top,o=w.width,u=w.height,m=n.valToPosH,v=n.valToPosV;return s.ori==0?t(d,h,p,s,c,m,v,a,l,o,u,dl,Xo,pl,gm,ym):t(d,h,p,s,c,v,m,l,a,u,o,fl,Jo,zu,mm,vm)}function Pu(n,e){let t=0,r=0,d=xt(n.bands,Tu);for(let f=0;f<d.length;f++){let y=d[f];y.series[0]==e?t=y.dir:y.series[1]==e&&(y.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function ck(n,e,t,r,d){let f=n.mode,y=n.series[e],w=f==2?y.facets[1].scale:y.scale,h=n.scales[w];return d==-1?h.min:d==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function hi(n,e,t,r,d,f){return go(n,e,(y,w,h,p,s,c,a,l,o,u,m)=>{let v=y.pxRound;const b=p.dir*(p.ori==0?1:-1),R=p.ori==0?Xo:Jo;let $,C;b==1?($=t,C=r):($=r,C=t);let x=v(c(w[$],p,u,l)),T=v(a(h[$],s,m,o)),E=v(c(w[C],p,u,l)),L=v(a(f==1?s.max:s.min,s,m,o)),I=new Path2D(d);return R(I,E,L),R(I,x,L),R(I,x,T),I})}function hl(n,e,t,r,d,f){let y=null;if(n.length>0){y=new Path2D;const w=e==0?pl:zu;let h=t;for(let c=0;c<n.length;c++){let a=n[c];if(a[1]>a[0]){let l=a[0]-h;l>0&&w(y,h,r,l,r+f),h=a[1]}}let p=t+d-h,s=10;p>0&&w(y,h,r-s/2,p,r+f+s)}return y}function uk(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function Hu(n,e,t,r,d,f,y){let w=[],h=n.length;for(let p=d==1?t:r;p>=t&&p<=r;p+=d)if(e[p]===null){let s=p,c=p;if(d==1)for(;++p<=r&&e[p]===null;)c=p;else for(;--p>=t&&e[p]===null;)c=p;let a=f(n[s]),l=c==s?a:f(n[c]),o=s-d;a=y<=0&&o>=0&&o<h?f(n[o]):a;let u=c+d;l=y>=0&&u>=0&&u<h?f(n[u]):l,l>=a&&w.push([a,l])}return w}function fm(n){return n==0?_g:n==1?An:e=>fo(e,n)}function pm(n){let e=n==0?dl:fl,t=n==0?(d,f,y,w,h,p)=>{d.arcTo(f,y,w,h,p)}:(d,f,y,w,h,p)=>{d.arcTo(y,f,h,w,p)},r=n==0?(d,f,y,w,h)=>{d.rect(f,y,w,h)}:(d,f,y,w,h)=>{d.rect(y,f,h,w)};return(d,f,y,w,h,p=0,s=0)=>{p==0&&s==0?r(d,f,y,w,h):(p=br(p,w/2,h/2),s=br(s,w/2,h/2),e(d,f+p,y),t(d,f+w,y,f+w,y+h,p),t(d,f+w,y+h,f,y+h,s),t(d,f,y+h,f,y,s),t(d,f,y,f+w,y,p),d.closePath())}}const dl=(n,e,t)=>{n.moveTo(e,t)},fl=(n,e,t)=>{n.moveTo(t,e)},Xo=(n,e,t)=>{n.lineTo(e,t)},Jo=(n,e,t)=>{n.lineTo(t,e)},pl=pm(0),zu=pm(1),gm=(n,e,t,r,d,f)=>{n.arc(e,t,r,d,f)},mm=(n,e,t,r,d,f)=>{n.arc(t,e,r,d,f)},ym=(n,e,t,r,d,f,y)=>{n.bezierCurveTo(e,t,r,d,f,y)},vm=(n,e,t,r,d,f,y)=>{n.bezierCurveTo(t,e,d,r,y,f)};function wm(n){return(e,t,r,d,f)=>go(e,t,(y,w,h,p,s,c,a,l,o,u,m)=>{let{pxRound:v,points:b}=y,R,$;p.ori==0?(R=dl,$=gm):(R=fl,$=mm);const C=Ot(b.width*Ct,3);let x=(b.size-b.width)/2*Ct,T=Ot(x*2,3),E=new Path2D,L=new Path2D,{left:I,top:N,width:_,height:A}=e.bbox;pl(L,I-T,N-T,_+T*2,A+T*2);const k=M=>{if(h[M]!=null){let O=v(c(w[M],p,u,l)),F=v(a(h[M],s,m,o));R(E,O+x,F),$(E,O,F,x,0,ol*2)}};if(f)f.forEach(k);else for(let M=r;M<=d;M++)k(M);return{stroke:C>0?E:null,fill:E,clip:L,flags:Zo|Wu}})}function bm(n){return(e,t,r,d,f,y)=>{r!=d&&(f!=r&&y!=r&&n(e,t,r),f!=d&&y!=d&&n(e,t,d),n(e,t,y))}}const hk=bm(Xo),dk=bm(Jo);function xm(n){const e=xt(n==null?void 0:n.alignGaps,0);return(t,r,d,f)=>go(t,r,(y,w,h,p,s,c,a,l,o,u,m)=>{let v=y.pxRound,b=J=>v(c(J,p,u,l)),R=J=>v(a(J,s,m,o)),$,C;p.ori==0?($=Xo,C=hk):($=Jo,C=dk);const x=p.dir*(p.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Zo},E=T.stroke;let L=Gt,I=-1/0,N,_,A,k=b(w[x==1?d:f]),M=qo(h,d,f,1*x),O=qo(h,d,f,-1*x),F=b(w[M]),P=b(w[O]),j=!1;for(let J=x==1?d:f;J>=d&&J<=f;J+=x){let G=b(w[J]),Z=h[J];G==k?Z!=null?(_=R(Z),L==Gt&&($(E,G,_),N=_),L=br(_,L),I=Dn(_,I)):Z===null&&(j=!0):(L!=Gt&&(C(E,k,L,I,N,_),A=k),Z!=null?(_=R(Z),$(E,G,_),L=I=N=_):(L=Gt,I=-1/0,Z===null&&(j=!0)),k=G)}L!=Gt&&L!=I&&A!=k&&C(E,k,L,I,N,_);let[V,q]=Pu(t,r);if(y.fill!=null||V!=0){let J=T.fill=new Path2D(E),G=y.fillTo(t,r,y.min,y.max,V),Z=R(G);$(J,P,Z),$(J,F,Z)}if(!y.spanGaps){let J=[];j&&J.push(...Hu(w,h,d,f,x,b,e)),T.gaps=J=y.gaps(t,r,d,f,J),T.clip=hl(J,p.ori,l,o,u,m)}return q!=0&&(T.band=q==2?[hi(t,r,d,f,E,-1),hi(t,r,d,f,E,1)]:hi(t,r,d,f,E,q)),T})}function fk(n){const e=xt(n.align,1),t=xt(n.ascDesc,!1),r=xt(n.alignGaps,0),d=xt(n.extend,!1);return(f,y,w,h)=>go(f,y,(p,s,c,a,l,o,u,m,v,b,R)=>{let $=p.pxRound,{left:C,width:x}=f.bbox,T=V=>$(o(V,a,b,m)),E=V=>$(u(V,l,R,v)),L=a.ori==0?Xo:Jo;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Zo},N=I.stroke,_=a.dir*(a.ori==0?1:-1);w=qo(c,w,h,1),h=qo(c,w,h,-1);let A=E(c[_==1?w:h]),k=T(s[_==1?w:h]),M=k,O=k;d&&e==-1&&(O=C,L(N,O,A)),L(N,k,A);for(let V=_==1?w:h;V>=w&&V<=h;V+=_){let q=c[V];if(q==null)continue;let J=T(s[V]),G=E(q);e==1?L(N,J,A):L(N,M,G),L(N,J,G),A=G,M=J}let F=M;d&&e==1&&(F=C+x,L(N,F,A));let[P,j]=Pu(f,y);if(p.fill!=null||P!=0){let V=I.fill=new Path2D(N),q=p.fillTo(f,y,p.min,p.max,P),J=E(q);L(V,F,J),L(V,O,J)}if(!p.spanGaps){let V=[];V.push(...Hu(s,c,w,h,_,T,r));let q=p.width*Ct/2,J=t||e==1?q:-q,G=t||e==-1?-q:q;V.forEach(Z=>{Z[0]+=J,Z[1]+=G}),I.gaps=V=p.gaps(f,y,w,h,V),I.clip=hl(V,a.ori,m,v,b,R)}return j!=0&&(I.band=j==2?[hi(f,y,w,h,N,-1),hi(f,y,w,h,N,1)]:hi(f,y,w,h,N,j)),I})}function Am(n,e,t,r,d,f,y=Gt){if(n.length>1){let w=null;for(let h=0,p=1/0;h<n.length;h++)if(e[h]!==void 0){if(w!=null){let s=xn(n[h]-n[w]);s<p&&(p=s,y=xn(t(n[h],r,d,f)-t(n[w],r,d,f)))}w=h}}return y}function pk(n){n=n||Hs;const e=xt(n.size,[.6,Gt,1]),t=n.align||0,r=n.gap||0;let d=n.radius;d=d==null?[0,0]:typeof d=="number"?[d,0]:d;const f=yt(d),y=1-e[0],w=xt(e[1],Gt),h=xt(e[2],1),p=xt(n.disp,Hs),s=xt(n.each,l=>{}),{fill:c,stroke:a}=p;return(l,o,u,m)=>go(l,o,(v,b,R,$,C,x,T,E,L,I,N)=>{let _=v.pxRound,A=t,k=r*Ct,M=w*Ct,O=h*Ct,F,P;$.ori==0?[F,P]=f(l,o):[P,F]=f(l,o);const j=$.dir*($.ori==0?1:-1);let V=$.ori==0?pl:zu,q=$.ori==0?s:(je,ce,Te,Me,qe,Ye,ft)=>{s(je,ce,Te,qe,Me,ft,Ye)},J=xt(l.bands,Tu).find(je=>je.series[0]==o),G=J!=null?J.dir:0,Z=v.fillTo(l,o,v.min,v.max,G),re=_(T(Z,C,N,L)),X,ae,ye,we=I,pe=_(v.width*Ct),ke=!1,at=null,Pt=null,dt=null,gt=null;c!=null&&(pe==0||a!=null)&&(ke=!0,at=c.values(l,o,u,m),Pt=new Map,new Set(at).forEach(je=>{je!=null&&Pt.set(je,new Path2D)}),pe>0&&(dt=a.values(l,o,u,m),gt=new Map,new Set(dt).forEach(je=>{je!=null&>.set(je,new Path2D)})));let{x0:cn,size:Dt}=p;if(cn!=null&&Dt!=null){A=1,b=cn.values(l,o,u,m),cn.unit==2&&(b=b.map(ce=>l.posToVal(E+ce*I,$.key,!0)));let je=Dt.values(l,o,u,m);Dt.unit==2?ae=je[0]*I:ae=x(je[0],$,I,E)-x(0,$,I,E),we=Am(b,R,x,$,I,E,we),ye=we-ae+k}else we=Am(b,R,x,$,I,E,we),ye=we*y+k,ae=we-ye;ye<1&&(ye=0),pe>=ae/2&&(pe=0),ye<5&&(_=_g);let Kt=ye>0,Qr=we-ye-(Kt?pe:0);ae=_($u(Qr,O,M)),X=(A==0?ae/2:A==j?0:ae)-A*j*((A==0?k/2:0)+(Kt?pe/2:0));const Cn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},en=ke?null:new Path2D;let We=null;if(J!=null)We=l.data[J.series[1]];else{let{y0:je,y1:ce}=p;je!=null&&ce!=null&&(R=ce.values(l,o,u,m),We=je.values(l,o,u,m))}let ze=F*ae,tn=P*ae;for(let je=j==1?u:m;je>=u&&je<=m;je+=j){let ce=R[je];if(ce==null)continue;if(We!=null){let ut=We[je]??0;if(ce-ut==0)continue;re=T(ut,C,N,L)}let Te=$.distr!=2||p!=null?b[je]:je,Me=x(Te,$,I,E),qe=T(xt(ce,Z),C,N,L),Ye=_(Me-X),ft=_(Dn(qe,re)),pt=_(br(qe,re)),ct=ft-pt;if(ce!=null){let ut=ce<0?tn:ze,rt=ce<0?ze:tn;ke?(pe>0&&dt[je]!=null&&V(gt.get(dt[je]),Ye,pt+hr(pe/2),ae,Dn(0,ct-pe),ut,rt),at[je]!=null&&V(Pt.get(at[je]),Ye,pt+hr(pe/2),ae,Dn(0,ct-pe),ut,rt)):V(en,Ye,pt+hr(pe/2),ae,Dn(0,ct-pe),ut,rt),q(l,o,je,Ye-pe/2,pt,ae+pe,ct)}}return pe>0?Cn.stroke=ke?gt:en:ke||(Cn._fill=v.width==0?v._fill:v._stroke??v._fill,Cn.width=0),Cn.fill=ke?Pt:en,Cn})}function gk(n,e){const t=xt(e==null?void 0:e.alignGaps,0);return(r,d,f,y)=>go(r,d,(w,h,p,s,c,a,l,o,u,m,v)=>{let b=w.pxRound,R=F=>b(a(F,s,m,o)),$=F=>b(l(F,c,v,u)),C,x,T;s.ori==0?(C=dl,T=Xo,x=ym):(C=fl,T=Jo,x=vm);const E=s.dir*(s.ori==0?1:-1);f=qo(p,f,y,1),y=qo(p,f,y,-1);let L=R(h[E==1?f:y]),I=L,N=[],_=[];for(let F=E==1?f:y;F>=f&&F<=y;F+=E)if(p[F]!=null){let P=h[F],j=R(P);N.push(I=j),_.push($(p[F]))}const A={stroke:n(N,_,C,T,x,b),fill:null,clip:null,band:null,gaps:null,flags:Zo},k=A.stroke;let[M,O]=Pu(r,d);if(w.fill!=null||M!=0){let F=A.fill=new Path2D(k),P=w.fillTo(r,d,w.min,w.max,M),j=$(P);T(F,I,j),T(F,L,j)}if(!w.spanGaps){let F=[];F.push(...Hu(h,p,f,y,E,R,t)),A.gaps=F=w.gaps(r,d,f,y,F),A.clip=hl(F,s.ori,o,u,m,v)}return O!=0&&(A.band=O==2?[hi(r,d,f,y,k,-1),hi(r,d,f,y,k,1)]:hi(r,d,f,y,k,O)),A})}function mk(n){return gk(yk,n)}function yk(n,e,t,r,d,f){const y=n.length;if(y<2)return null;const w=new Path2D;if(t(w,n[0],e[0]),y==2)r(w,n[1],e[1]);else{let h=Array(y),p=Array(y-1),s=Array(y-1),c=Array(y-1);for(let a=0;a<y-1;a++)s[a]=e[a+1]-e[a],c[a]=n[a+1]-n[a],p[a]=s[a]/c[a];h[0]=p[0];for(let a=1;a<y-1;a++)p[a]===0||p[a-1]===0||p[a-1]>0!=p[a]>0?h[a]=0:(h[a]=3*(c[a-1]+c[a])/((2*c[a]+c[a-1])/p[a-1]+(c[a]+2*c[a-1])/p[a]),isFinite(h[a])||(h[a]=0));h[y-1]=p[y-2];for(let a=0;a<y-1;a++)d(w,n[a]+c[a]/3,e[a]+h[a]*c[a]/3,n[a+1]-c[a]/3,e[a+1]-h[a+1]*c[a]/3,n[a+1],e[a+1])}return w}const Bu=new Set;function Cm(){for(let n of Bu)n.syncRect(!0)}Uo&&(uo(ZA,Vo,Cm),uo(XA,Vo,Cm,!0),uo(tl,Vo,()=>{Nn.pxRatio=Ct}));const vk=xm(),wk=wm();function km(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((d,f)=>ju(d,f,e,t))}function bk(n,e){return n.map((t,r)=>r==0?{}:pn({},e,t))}function ju(n,e,t,r){return pn({},e==0?t:r,n)}function _m(n,e,t){return e==null?Yo:[e,t]}const xk=_m;function Ak(n,e,t){return e==null?Yo:il(e,t,ku,!0)}function Sm(n,e,t,r){return e==null?Yo:rl(e,t,n.scales[r].log,!1)}const Ck=Sm;function $m(n,e,t,r){return e==null?Yo:Cu(e,t,n.scales[r].log,!1)}const kk=$m;function _k(n,e,t,r,d){let f=Dn(kg(n),kg(e)),y=e-n,w=Or(d/r*y,t);do{let h=t[w],p=r*h/y;if(p>=d&&f+(h<5?Ri.get(h):0)<=17)return[h,p]}while(++w<t.length);return[0,0]}function Tm(n){let e,t;return n=n.replace(/(\d+)px/,(r,d)=>(e=An((t=+d)*Ct))+"px"),[n,e,t]}function Sk(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=Ot(e[2]*Ct,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Nn(n,e,t){const r={mode:xt(n.mode,1)},d=r.mode;function f(W,z){return((z.distr==3?ui(W>0?W:z.clamp(r,W,z.min,z.max,z.key)):z.distr==4?Su(W,z.asinh):z.distr==100?z.fwd(W):W)-z._min)/(z._max-z._min)}function y(W,z,Y,K){let te=f(W,z);return K+Y*(z.dir==-1?1-te:te)}function w(W,z,Y,K){let te=f(W,z);return K+Y*(z.dir==-1?te:1-te)}function h(W,z,Y,K){return z.ori==0?y(W,z,Y,K):w(W,z,Y,K)}r.valToPosH=y,r.valToPosV=w;let p=!1;r.status=0;const s=r.root=vr(LA);if(n.id!=null&&(s.id=n.id),cr(s,n.class),n.title){let W=vr(NA,s);W.textContent=n.title}const c=Lr("canvas"),a=r.ctx=c.getContext("2d"),l=vr(FA,s);uo("click",l,W=>{W.target===u&&(He!=Bi||Ht!=ji)&&_n.click(r,W)},!0);const o=r.under=vr(WA,l);l.appendChild(c);const u=r.over=vr(PA,l);n=Ko(n);const m=+xt(n.pxAlign,1),v=fm(m);(n.plugins||[]).forEach(W=>{W.opts&&(n=W.opts(r,n)||n)});const b=n.ms||.001,R=r.series=d==1?km(n.series||[],nm,cm,!1):bk(n.series||[null],lm),$=r.axes=km(n.axes||[],tm,om,!0),C=r.scales={},x=r.bands=n.bands||[];x.forEach(W=>{W.fill=yt(W.fill||null),W.dir=xt(W.dir,-1)});const T=d==2?R[1].facets[0].scale:R[0].scale,E={axes:sd,series:Wl},L=(n.drawOrder||["axes","series"]).map(W=>E[W]);function I(W){let z=C[W];if(z==null){let Y=(n.scales||Hs)[W]||Hs;if(Y.from!=null)I(Y.from),C[W]=pn({},C[Y.from],Y,{key:W});else{z=C[W]=pn({},W==T?um:lk,Y),z.key=W;let K=z.time,te=z.range,oe=Mi(te);if((W!=T||d==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?bg:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?bg:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&al(te))){let de=te;te=(be,Ae,Ce)=>Ae==null?Yo:il(Ae,Ce,de)}z.range=yt(te||(K?xk:W==T?z.distr==3?Ck:z.distr==4?kk:_m:z.distr==3?Sm:z.distr==4?$m:Ak)),z.auto=yt(oe?!1:z.auto),z.clamp=yt(z.clamp||ak),z._min=z._max=null}}}I("x"),I("y"),d==1&&R.forEach(W=>{I(W.scale)}),$.forEach(W=>{I(W.scale)});for(let W in n.scales)I(W);const N=C[T],_=N.distr;let A,k;N.ori==0?(cr(s,OA),A=y,k=w):(cr(s,DA),A=w,k=y);const M={};for(let W in C){let z=C[W];(z.min!=null||z.max!=null)&&(M[W]={min:z.min,max:z.max},z.min=z.max=null)}const O=n.tzDate||(W=>new Date(An(W/b))),F=n.fmtDate||Iu,P=b==1?OC(O):FC(O),j=Gg(O,qg(b==1?LC:NC,F)),V=Kg(O,Yg(PC,F)),q=[],J=r.legend=pn({},BC,n.legend),G=J.show,Z=J.markers;J.idxs=q,Z.width=yt(Z.width),Z.dash=yt(Z.dash),Z.stroke=yt(Z.stroke),Z.fill=yt(Z.fill);let re,X,ae,ye=[],we=[],pe,ke=!1,at={};if(J.live){const W=R[1]?R[1].values:null;ke=W!=null,pe=ke?W(r,1,0):{_:0};for(let z in pe)at[z]=yu}if(G)if(re=Lr("table",VA,s),ae=Lr("tbody",null,re),J.mount(r,re),ke){X=Lr("thead",null,re,ae);let W=Lr("tr",null,X);Lr("th",null,W);for(var Pt in pe)Lr("th",sg,W).textContent=Pt}else cr(re,GA),J.live&&cr(re,qA);const dt={show:!0},gt={show:!1};function cn(W,z){if(z==0&&(ke||!J.live||d==2))return Yo;let Y=[],K=Lr("tr",YA,ae,ae.childNodes[z]);cr(K,W.class),W.show||cr(K,co);let te=Lr("th",null,K);if(Z.show){let be=vr(KA,te);if(z>0){let Ae=Z.width(r,z);Ae&&(be.style.border=Ae+"px "+Z.dash(r,z)+" "+Z.stroke(r,z)),be.style.background=Z.fill(r,z)}}let oe=vr(sg,te);oe.textContent=W.label,z>0&&(Z.show||(oe.style.color=W.width>0?Z.stroke(r,z):Z.fill(r,z)),Kt("click",te,be=>{if(Pe._lock)return;fi(be);let Ae=R.indexOf(W);if((be.ctrlKey||be.metaKey)!=J.isolate){let Ce=R.some((Se,Ee)=>Ee>0&&Ee!=Ae&&Se.show);R.forEach((Se,Ee)=>{Ee>0&&Rn(Ee,Ce?Ee==Ae?dt:gt:dt,!0,Qt.setSeries)})}else Rn(Ae,{show:!W.show},!0,Qt.setSeries)},!1),Xr&&Kt(hg,te,be=>{Pe._lock||(fi(be),Rn(R.indexOf(W),yi,!0,Qt.setSeries))},!1));for(var de in pe){let be=Lr("td",QA,K);be.textContent="--",Y.push(be)}return[K,Y]}const Dt=new Map;function Kt(W,z,Y,K=!0){const te=Dt.get(z)||{},oe=Pe.bind[W](r,z,Y,K);oe&&(uo(W,z,te[W]=oe),Dt.set(z,te))}function Qr(W,z,Y){const K=Dt.get(z)||{};for(let te in K)(W==null||te==W)&&(Au(te,z,K[te]),delete K[te]);W==null&&Dt.delete(z)}let Cn=0,en=0,We=0,ze=0,tn=0,je=0,ce=tn,Te=je,Me=We,qe=ze,Ye=0,ft=0,pt=0,ct=0;r.bbox={};let ut=!1,rt=!1,jt=!1,Wn=!1,di=!1,er=!1;function Ks(W,z,Y){(Y||W!=r.width||z!=r.height)&&Qs(W,z),gi(!1),jt=!0,rt=!0,Hi()}function Qs(W,z){r.width=Cn=We=W,r.height=en=ze=z,tn=je=0,td(),nd();let Y=r.bbox;Ye=Y.left=fo(tn*Ct,.5),ft=Y.top=fo(je*Ct,.5),pt=Y.width=fo(We*Ct,.5),ct=Y.height=fo(ze*Ct,.5)}const Ml=3;function Jh(){let W=!1,z=0;for(;!W;){z++;let Y=zl(z),K=Bl(z);W=z==Ml||Y&&K,W||(Qs(r.width,r.height),rt=!0)}}function ed({width:W,height:z}){Ks(W,z)}r.setSize=ed;function td(){let W=!1,z=!1,Y=!1,K=!1;$.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:be}=te,Ae=de%2,Ce=te.label!=null?te.labelSize:0,Se=be+Ce;Se>0&&(Ae?(We-=Se,de==3?(tn+=Se,K=!0):Y=!0):(ze-=Se,de==0?(je+=Se,W=!0):z=!0))}}),pi[0]=W,pi[1]=Y,pi[2]=z,pi[3]=K,We-=Jr[1]+Jr[3],tn+=Jr[3],ze-=Jr[2]+Jr[0],je+=Jr[0]}function nd(){let W=tn+We,z=je+ze,Y=tn,K=je;function te(oe,de){switch(oe){case 1:return W+=de,W-de;case 2:return z+=de,z-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}$.forEach((oe,de)=>{if(oe.show&&oe._show){let be=oe.side;oe._pos=te(be,oe._size),oe.label!=null&&(oe._lpos=te(be,oe.labelSize))}})}const Pe=r.cursor=pn({},YC,{drag:{y:d==2}},n.cursor);if(Pe.dataIdx==null){let W=Pe.hover,z=W.skip=new Set(W.skip??[]);z.add(void 0);let Y=W.prox=yt(W.prox),K=W.bias??(W.bias=0);Pe.dataIdx=(te,oe,de,be)=>{if(oe==0)return de;let Ae=de,Ce=Y(te,oe,de,be)??Gt,Se=Ce>=0&&Ce<Gt,Ee=N.ori==0?We:ze,Ke=Pe.left,Et=e[0],it=e[oe];if(z.has(it[de])){Ae=null;let Ge=null,Ze=null,Le;if(K==0||K==-1)for(Le=de;Ge==null&&Le-- >0;)z.has(it[Le])||(Ge=Le);if(K==0||K==1)for(Le=de;Ze==null&&Le++<it.length;)z.has(it[Le])||(Ze=Le);if(Ge!=null||Ze!=null)if(Se){let St=Ge==null?-1/0:A(Et[Ge],N,Ee,0),Zt=Ze==null?1/0:A(Et[Ze],N,Ee,0),qt=Ke-St,Ft=Zt-Ke;qt<=Ft?qt<=Ce&&(Ae=Ge):Ft<=Ce&&(Ae=Ze)}else Ae=Ze==null?Ge:Ge==null?Ze:de-Ge<=Ze-de?Ge:Ze}else Se&&xn(Ke-A(Et[de],N,Ee,0))>Ce&&(Ae=null);return Ae}}const fi=W=>{Pe.event=W};Pe.idxs=q,Pe._lock=!1;let En=Pe.points;En.show=yt(En.show),En.size=yt(En.size),En.stroke=yt(En.stroke),En.width=yt(En.width),En.fill=yt(En.fill);const Zr=r.focus=pn({},n.focus||{alpha:.3},Pe.focus),Xr=Zr.prox>=0,Li=Xr&&En.one;let Pn=[],Oi=[],Di=[];function Ll(W,z){let Y=En.show(r,z);if(Y)return cr(Y,UA),cr(Y,W.class),qr(Y,-10,-10,We,ze),u.insertBefore(Y,Pn[z]),Y}function Ol(W,z){if(d==1||z>0){let Y=d==1&&C[W.scale].time,K=W.value;W.value=Y?Mg(K)?Kg(O,Yg(K,F)):K||V:K||ik,W.label=W.label||(Y?QC:KC)}if(Li||z>0){W.width=W.width==null?1:W.width,W.paths=W.paths||vk||lC,W.fillTo=yt(W.fillTo||ck),W.pxAlign=+xt(W.pxAlign,m),W.pxRound=fm(W.pxAlign),W.stroke=yt(W.stroke||null),W.fill=yt(W.fill||null),W._stroke=W._fill=W._paths=W._focus=null;let Y=ok(Dn(1,W.width),1),K=W.points=pn({},{size:Y,width:Dn(1,Y*.2),stroke:W.stroke,space:Y*2,paths:wk,_stroke:null,_fill:null},W.points);K.show=yt(K.show),K.filter=yt(K.filter),K.fill=yt(K.fill),K.stroke=yt(K.stroke),K.paths=yt(K.paths),K.pxAlign=W.pxAlign}if(G){let Y=cn(W,z);ye.splice(z,0,Y[0]),we.splice(z,0,Y[1]),J.values.push(null)}if(Pe.show){q.splice(z,0,null);let Y=null;Li?z==0&&(Y=Ll(W,z)):z>0&&(Y=Ll(W,z)),Pn.splice(z,0,Y),Oi.splice(z,0,0),Di.splice(z,0,0)}nn("addSeries",z)}function rd(W,z){z=z??R.length,W=d==1?ju(W,z,nm,cm):ju(W,z,{},lm),R.splice(z,0,W),Ol(R[z],z)}r.addSeries=rd;function id(W){if(R.splice(W,1),G){J.values.splice(W,1),we.splice(W,1);let z=ye.splice(W,1)[0];Qr(null,z.firstChild),z.remove()}Pe.show&&(q.splice(W,1),Pn.splice(W,1)[0].remove(),Oi.splice(W,1),Di.splice(W,1)),nn("delSeries",W)}r.delSeries=id;const pi=[!1,!1,!1,!1];function od(W,z){if(W._show=W.show,W.show){let Y=W.side%2,K=C[W.scale];K==null&&(W.scale=Y?R[1].scale:T,K=C[W.scale]);let te=K.time;W.size=yt(W.size),W.space=yt(W.space),W.rotate=yt(W.rotate),Mi(W.incrs)&&W.incrs.forEach(de=>{!Ri.has(de)&&Ri.set(de,Eg(de))}),W.incrs=yt(W.incrs||(K.distr==2?EC:te?b==1?MC:DC:po)),W.splits=yt(W.splits||(te&&K.distr==1?P:K.distr==3?Nu:K.distr==4?JC:XC)),W.stroke=yt(W.stroke),W.grid.stroke=yt(W.grid.stroke),W.ticks.stroke=yt(W.ticks.stroke),W.border.stroke=yt(W.border.stroke);let oe=W.values;W.values=Mi(oe)&&!Mi(oe[0])?yt(oe):te?Mi(oe)?Gg(O,qg(oe,F)):Mg(oe)?WC(O,oe):oe||j:oe||ZC,W.filter=yt(W.filter||(K.distr>=3&&K.log==10?nk:K.distr==3&&K.log==2?rk:Sg)),W.font=Tm(W.font),W.labelFont=Tm(W.labelFont),W._size=W.size(r,null,z,0),W._space=W._rotate=W._incrs=W._found=W._splits=W._values=null,W._size>0&&(pi[z]=!0,W._el=vr(HA,l))}}function Ni(W,z,Y,K){let[te,oe,de,be]=Y,Ae=z%2,Ce=0;return Ae==0&&(be||oe)&&(Ce=z==0&&!te||z==2&&!de?An(tm.size/3):0),Ae==1&&(te||de)&&(Ce=z==1&&!oe||z==3&&!be?An(om.size/2):0),Ce}const Dl=r.padding=(n.padding||[Ni,Ni,Ni,Ni]).map(W=>yt(xt(W,Ni))),Jr=r._padding=Dl.map((W,z)=>W(r,z,pi,0));let kn,mn=null,yn=null;const rs=d==1?R[0].idxs:null;let Hn=null,wo=!1;function bo(W,z){if(e=W??[],r.data=r._data=e,d==2){kn=0;for(let Y=1;Y<R.length;Y++)kn+=e[Y][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Hn=e[0],kn=Hn.length;let Y=e;if(_==2){Y=e.slice();let K=Y[0]=Array(kn);for(let te=0;te<kn;te++)K[te]=te}r._data=e=Y}if(gi(!0),nn("setData"),_==2&&(jt=!0),z!==!1){let Y=N;Y.auto(r,wo)?Zs():Ar(T,Y.min,Y.max),Wn=Wn||Pe.left>=0,er=!0,Hi()}}r.setData=bo;function Zs(){wo=!0;let W,z;d==1&&(kn>0?(mn=rs[0]=0,yn=rs[1]=kn-1,W=e[0][mn],z=e[0][yn],_==2?(W=mn,z=yn):W==z&&(_==3?[W,z]=rl(W,W,N.log,!1):_==4?[W,z]=Cu(W,W,N.log,!1):N.time?z=W+An(86400/b):[W,z]=il(W,z,ku,!0))):(mn=rs[0]=W=null,yn=rs[1]=z=null)),Ar(T,W,z)}let is,Fi,os,ss,as,Xs,Js,ea,ta,xr;function na(W,z,Y,K,te,oe){W??(W=lg),Y??(Y=Tu),K??(K="butt"),te??(te=lg),oe??(oe="round"),W!=is&&(a.strokeStyle=is=W),te!=Fi&&(a.fillStyle=Fi=te),z!=os&&(a.lineWidth=os=z),oe!=as&&(a.lineJoin=as=oe),K!=Xs&&(a.lineCap=Xs=K),Y!=ss&&a.setLineDash(ss=Y)}function ra(W,z,Y,K){z!=Fi&&(a.fillStyle=Fi=z),W!=Js&&(a.font=Js=W),Y!=ea&&(a.textAlign=ea=Y),K!=ta&&(a.textBaseline=ta=K)}function xo(W,z,Y,K,te=0){if(K.length>0&&W.auto(r,wo)&&(z==null||z.min==null)){let oe=xt(mn,0),de=xt(yn,K.length-1),be=Y.min==null?W.distr==3?nC(K,oe,de):tC(K,oe,de,te):[Y.min,Y.max];W.min=br(W.min,Y.min=be[0]),W.max=Dn(W.max,Y.max=be[1])}}const Nl={min:null,max:null};function Fl(){for(let K in C){let te=C[K];M[K]==null&&(te.min==null||M[T]!=null&&te.auto(r,wo))&&(M[K]=Nl)}for(let K in C){let te=C[K];M[K]==null&&te.from!=null&&M[te.from]!=null&&(M[K]=Nl)}M[T]!=null&&gi(!0);let W={};for(let K in M){let te=M[K];if(te!=null){let oe=W[K]=Ko(C[K],hC);if(te.min!=null)pn(oe,te);else if(K!=T||d==2)if(kn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=Gt,oe.max=-1/0}}if(kn>0){R.forEach((K,te)=>{if(d==1){let oe=K.scale,de=M[oe];if(de==null)return;let be=W[oe];if(te==0){let Ae=be.range(r,be.min,be.max,oe);be.min=Ae[0],be.max=Ae[1],mn=Or(be.min,e[0]),yn=Or(be.max,e[0]),yn-mn>1&&(e[0][mn]<be.min&&mn++,e[0][yn]>be.max&&yn--),K.min=Hn[mn],K.max=Hn[yn]}else K.show&&K.auto&&xo(be,de,K,e[te],K.sorted);K.idxs[0]=mn,K.idxs[1]=yn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,be=oe.scale,Ae=de.scale,[Ce,Se]=e[te],Ee=W[be],Ke=W[Ae];Ee!=null&&xo(Ee,M[be],oe,Ce,oe.sorted),Ke!=null&&xo(Ke,M[Ae],de,Se,de.sorted),K.min=de.min,K.max=de.max}});for(let K in W){let te=W[K],oe=M[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==Gt?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in W){let te=W[K];if(te.from!=null){let oe=W[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let z={},Y=!1;for(let K in W){let te=W[K],oe=C[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?ui(oe.min):de==4?Su(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?ui(oe.max):de==4?Su(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,z[K]=Y=!0}}if(Y){R.forEach((K,te)=>{d==2?te>0&&z.y&&(K._paths=null):z[K.scale]&&(K._paths=null)});for(let K in z)jt=!0,nn("setScale",K);Pe.show&&Pe.left>=0&&(Wn=er=!0)}for(let K in M)M[K]=null}function ls(W){let z=$u(mn-1,0,kn-1),Y=$u(yn+1,0,kn-1);for(;W[z]==null&&z>0;)z--;for(;W[Y]==null&&Y<kn-1;)Y++;return[z,Y]}function Wl(){kn>0&&(R.forEach((W,z)=>{if(z>0&&W.show&&(Pl(z,!1),Pl(z,!0),W._paths==null)){xr!=W.alpha&&(a.globalAlpha=xr=W.alpha);let Y=d==2?[0,e[z][0].length-1]:ls(e[z]);W._paths=W.paths(r,z,Y[0],Y[1]),xr!=1&&(a.globalAlpha=xr=1)}}),R.forEach((W,z)=>{if(z>0&&W.show){xr!=W.alpha&&(a.globalAlpha=xr=W.alpha),W._paths!=null&&ia(z,!1);{let Y=W._paths!=null?W._paths.gaps:null,K=W.points.show(r,z,mn,yn,Y),te=W.points.filter(r,z,K,Y);(K||te)&&(W.points._paths=W.points.paths(r,z,mn,yn,te),ia(z,!0))}xr!=1&&(a.globalAlpha=xr=1),nn("drawSeries",z)}}))}function Pl(W,z){let Y=z?R[W].points:R[W];Y._stroke=Y.stroke(r,W),Y._fill=Y.fill(r,W)}function ia(W,z){let Y=z?R[W].points:R[W],{stroke:K,fill:te,clip:oe,flags:de,_stroke:be=Y._stroke,_fill:Ae=Y._fill,_width:Ce=Y.width}=Y._paths;Ce=Ot(Ce*Ct,3);let Se=null,Ee=Ce%2/2;z&&Ae==null&&(Ae=Ce>0?"#fff":be);let Ke=Y.pxAlign==1&&Ee>0;if(Ke&&a.translate(Ee,Ee),!z){let Et=Ye-Ce/2,it=ft-Ce/2,Ge=pt+Ce,Ze=ct+Ce;Se=new Path2D,Se.rect(Et,it,Ge,Ze)}z?oa(be,Ce,Y.dash,Y.cap,Ae,K,te,de,oe):Hl(W,be,Ce,Y.dash,Y.cap,Ae,K,te,de,Se,oe),Ke&&a.translate(-Ee,-Ee)}function Hl(W,z,Y,K,te,oe,de,be,Ae,Ce,Se){let Ee=!1;Ae!=0&&x.forEach((Ke,Et)=>{if(Ke.series[0]==W){let it=R[Ke.series[1]],Ge=e[Ke.series[1]],Ze=(it._paths||Hs).band;Mi(Ze)&&(Ze=Ke.dir==1?Ze[0]:Ze[1]);let Le,St=null;it.show&&Ze&&iC(Ge,mn,yn)?(St=Ke.fill(r,Et)||oe,Le=it._paths.clip):Ze=null,oa(z,Y,K,te,St,de,be,Ae,Ce,Se,Le,Ze),Ee=!0}}),Ee||oa(z,Y,K,te,oe,de,be,Ae,Ce,Se)}const cs=Zo|Wu;function oa(W,z,Y,K,te,oe,de,be,Ae,Ce,Se,Ee){na(W,z,Y,K,te),(Ae||Ce||Ee)&&(a.save(),Ae&&a.clip(Ae),Ce&&a.clip(Ce)),Ee?(be&cs)==cs?(a.clip(Ee),Se&&a.clip(Se),Wi(te,de),Ao(W,oe,z)):be&Wu?(Wi(te,de),a.clip(Ee),Ao(W,oe,z)):be&Zo&&(a.save(),a.clip(Ee),Se&&a.clip(Se),Wi(te,de),a.restore(),Ao(W,oe,z)):(Wi(te,de),Ao(W,oe,z)),(Ae||Ce||Ee)&&a.restore()}function Ao(W,z,Y){Y>0&&(z instanceof Map?z.forEach((K,te)=>{a.strokeStyle=is=te,a.stroke(K)}):z!=null&&W&&a.stroke(z))}function Wi(W,z){z instanceof Map?z.forEach((Y,K)=>{a.fillStyle=Fi=K,a.fill(Y)}):z!=null&&W&&a.fill(z)}function sa(W,z,Y,K){let te=$[W],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,W,z,Y,K),be=te._incrs=te.incrs(r,W,z,Y,K,de);oe=_k(z,Y,be,K,de)}return te._found=oe}function ei(W,z,Y,K,te,oe,de,be,Ae,Ce){let Se=de%2/2;m==1&&a.translate(Se,Se),na(be,de,Ae,Ce,be),a.beginPath();let Ee,Ke,Et,it,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,it=Ge):(Ee=te,Et=Ge);for(let Ze=0;Ze<W.length;Ze++)z[Ze]!=null&&(Y==0?Ee=Et=W[Ze]:Ke=it=W[Ze],a.moveTo(Ee,Ke),a.lineTo(Et,it));a.stroke(),m==1&&a.translate(-Se,-Se)}function zl(W){let z=!0;return $.forEach((Y,K)=>{if(!Y.show)return;let te=C[Y.scale];if(te.min==null){Y._show&&(z=!1,Y._show=!1,gi(!1));return}else Y._show||(z=!1,Y._show=!0,gi(!1));let oe=Y.side,de=oe%2,{min:be,max:Ae}=te,[Ce,Se]=sa(K,be,Ae,de==0?We:ze);if(Se==0)return;let Ee=te.distr==2,Ke=Y._splits=Y.splits(r,K,be,Ae,Ce,Se,Ee),Et=te.distr==2?Ke.map(Le=>Hn[Le]):Ke,it=te.distr==2?Hn[Ke[1]]-Hn[Ke[0]]:Ce,Ge=Y._values=Y.values(r,Y.filter(r,Et,K,Se,it),K,Se,it);Y._rotate=oe==2?Y.rotate(r,Ge,K,Se):0;let Ze=Y._size;Y._size=wr(Y.size(r,Ge,K,W)),Ze!=null&&Y._size!=Ze&&(z=!1)}),z}function Bl(W){let z=!0;return Dl.forEach((Y,K)=>{let te=Y(r,K,pi,W);te!=Jr[K]&&(z=!1),Jr[K]=te}),z}function sd(){for(let W=0;W<$.length;W++){let z=$[W];if(!z.show||!z._show)continue;let Y=z.side,K=Y%2,te,oe,de=z.stroke(r,W),be=Y==0||Y==3?-1:1;if(z.label){let $n=z.labelGap*be,Yn=An((z._lpos+$n)*Ct);ra(z.labelFont[0],de,"center",Y==2?Fs:ag),a.save(),K==1?(te=oe=0,a.translate(Yn,An(ft+ct/2)),a.rotate((Y==3?-ol:ol)/2)):(te=An(Ye+pt/2),oe=Yn),a.fillText(z.label,te,oe),a.restore()}let[Ae,Ce]=z._found;if(Ce==0)continue;let Se=C[z.scale],Ee=K==0?pt:ct,Ke=K==0?Ye:ft,Et=An(z.gap*Ct),it=z._splits,Ge=Se.distr==2?it.map($n=>Hn[$n]):it,Ze=Se.distr==2?Hn[it[1]]-Hn[it[0]]:Ae,Le=z.ticks,St=z.border,Zt=Le.show?An(Le.size*Ct):0,qt=z._rotate*-ol/180,Ft=v(z._pos*Ct),Wt=(Zt+Et)*be,ne=Ft+Wt;oe=K==0?ne:0,te=K==1?ne:0;let le=z.font[0],se=z.align==1?jo:z.align==2?pu:qt>0?jo:qt<0?pu:K==0?"center":Y==3?pu:jo,_e=qt||K==1?"middle":Y==2?Fs:ag;ra(le,de,se,_e);let Fe=z.font[1]*z.lineGap,Qe=it.map($n=>v(h($n,Se,Ee,Ke))),$t=z._values;for(let $n=0;$n<$t.length;$n++){let Yn=$t[$n];if(Yn!=null){K==0?te=Qe[$n]:oe=Qe[$n],Yn=""+Yn;let Tn=Yn.indexOf(`
|
1411
|
+
`)==-1?[Yn]:Yn.split(/\n/gm);for(let fr=0;fr<Tn.length;fr++){let rr=Tn[fr];qt?(a.save(),a.translate(te,oe+fr*Fe),a.rotate(qt),a.fillText(rr,0,0),a.restore()):a.fillText(rr,te,oe+fr*Fe)}}}Le.show&&ei(Qe,Le.filter(r,Ge,W,Ce,Ze),K,Y,Ft,Zt,Ot(Le.width*Ct,3),Le.stroke(r,W),Le.dash,Le.cap);let Xe=z.grid;Xe.show&&ei(Qe,Xe.filter(r,Ge,W,Ce,Ze),K,K==0?2:1,K==0?ft:Ye,K==0?ct:pt,Ot(Xe.width*Ct,3),Xe.stroke(r,W),Xe.dash,Xe.cap),St.show&&ei([Ft],[1],K==0?1:0,K==0?1:2,K==1?ft:Ye,K==1?ct:pt,Ot(St.width*Ct,3),St.stroke(r,W),St.dash,St.cap)}nn("drawAxes")}function gi(W){R.forEach((z,Y)=>{Y>0&&(z._paths=null,W&&(d==1?(z.min=null,z.max=null):z.facets.forEach(K=>{K.min=null,K.max=null})))})}let Co=!1,us=!1,Pi=[];function ad(){us=!1;for(let W=0;W<Pi.length;W++)nn(...Pi[W]);Pi.length=0}function Hi(){Co||(vC(aa),Co=!0)}function ld(W,z=!1){Co=!0,us=z,W(r),aa(),z&&Pi.length>0&&queueMicrotask(ad)}r.batch=ld;function aa(){if(ut&&(Fl(),ut=!1),jt&&(Jh(),jt=!1),rt){if(Bt(o,jo,tn),Bt(o,Fs,je),Bt(o,Ds,We),Bt(o,Ns,ze),Bt(u,jo,tn),Bt(u,Fs,je),Bt(u,Ds,We),Bt(u,Ns,ze),Bt(l,Ds,Cn),Bt(l,Ns,en),c.width=An(Cn*Ct),c.height=An(en*Ct),$.forEach(({_el:W,_show:z,_size:Y,_pos:K,side:te})=>{if(W!=null)if(z){let oe=te===3||te===0?Y:0,de=te%2==1;Bt(W,de?"left":"top",K-oe),Bt(W,de?"width":"height",Y),Bt(W,de?"top":"left",de?je:tn),Bt(W,de?"height":"width",de?ze:We),bu(W,co)}else cr(W,co)}),is=Fi=os=as=Xs=Js=ea=ta=ss=null,xr=1,_o(!0),tn!=ce||je!=Te||We!=Me||ze!=qe){gi(!1);let W=We/Me,z=ze/qe;if(Pe.show&&!Wn&&Pe.left>=0){Pe.left*=W,Pe.top*=z,zi&&qr(zi,An(Pe.left),0,We,ze),ti&&qr(ti,0,An(Pe.top),We,ze);for(let Y=0;Y<Pn.length;Y++){let K=Pn[Y];K!=null&&(Oi[Y]*=W,Di[Y]*=z,qr(K,wr(Oi[Y]),wr(Di[Y]),We,ze))}}if(Nt.show&&!di&&Nt.left>=0&&Nt.width>0){Nt.left*=W,Nt.width*=W,Nt.top*=z,Nt.height*=z;for(let Y in fa)Bt(mi,Y,Nt[Y])}ce=tn,Te=je,Me=We,qe=ze}nn("setSize"),rt=!1}Cn>0&&en>0&&(a.clearRect(0,0,c.width,c.height),nn("drawClear"),L.forEach(W=>W()),nn("draw")),Nt.show&&di&&(hs(Nt),di=!1),Pe.show&&Wn&&(zn(null,!0,!1),Wn=!1),J.show&&J.live&&er&&(ko(),er=!1),p||(p=!0,r.status=1,nn("ready")),wo=!1,Co=!1}r.redraw=(W,z)=>{jt=z||!1,W!==!1?Ar(T,N.min,N.max):Hi()};function la(W,z){let Y=C[W];if(Y.from==null){if(kn==0){let K=Y.range(r,z.min,z.max,W);z.min=K[0],z.max=K[1]}if(z.min>z.max){let K=z.min;z.min=z.max,z.max=K}if(kn>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;W==T&&Y.distr==2&&kn>0&&(z.min=Or(z.min,e[0]),z.max=Or(z.max,e[0]),z.min==z.max&&z.max++),M[W]=z,ut=!0,Hi()}}r.setScale=la;let ca,ua,zi,ti,jl,Ul,Bi,ji,Vl,Mt,He,Ht,ni=!1;const _n=Pe.drag;let vn=_n.x,wn=_n.y;Pe.show&&(Pe.x&&(ca=vr(BA,u)),Pe.y&&(ua=vr(jA,u)),N.ori==0?(zi=ca,ti=ua):(zi=ua,ti=ca),He=Pe.left,Ht=Pe.top);const Nt=r.select=pn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),mi=Nt.show?vr(zA,Nt.over?u:o):null;function hs(W,z){if(Nt.show){for(let Y in W)Nt[Y]=W[Y],Y in fa&&Bt(mi,Y,W[Y]);z!==!1&&nn("setSelect")}}r.setSelect=hs;function Sn(W,z){let Y=R[W],K=G?ye[W]:null;if(Y.show)K&&bu(K,co);else{K&&cr(K,co);let te=Li?Pn[0]:Pn[W];qr(te,-10,-10,We,ze)}}function Ar(W,z,Y){la(W,{min:z,max:Y})}function Rn(W,z,Y,K){z.focus!=null&&Yl(W),z.show!=null&&R.forEach((te,oe)=>{oe>0&&(W==oe||W==null)&&(te.show=z.show,Sn(oe,z.show),d==2?(Ar(te.facets[0].scale,null,null),Ar(te.facets[1].scale,null,null)):Ar(te.scale,null,null),Hi())}),Y!==!1&&nn("setSeries",W,z),K&&Fr("setSeries",r,W,z)}r.setSeries=Rn;function ql(W,z){pn(x[W],z)}function ha(W,z){W.fill=yt(W.fill||null),W.dir=xt(W.dir,-1),z=z??x.length,x.splice(z,0,W)}function tr(W){W==null?x.length=0:x.splice(W,1)}r.addBand=ha,r.setBand=ql,r.delBand=tr;function Gl(W,z){R[W].alpha=z,Pe.show&&Pn[W]&&(Pn[W].style.opacity=z),G&&ye[W]&&(ye[W].style.opacity=z)}let Cr,Nr,ri;const yi={focus:!0};function Yl(W){if(W!=ri){let z=W==null,Y=Zr.alpha!=1;R.forEach((K,te)=>{if(d==1||te>0){let oe=z||te==0||te==W;K._focus=z?null:oe,Y&&Gl(te,oe?1:Zr.alpha)}}),ri=W,Y&&Hi()}}G&&Xr&&Kt(dg,re,W=>{Pe._lock||(fi(W),ri!=null&&Rn(null,yi,!0,Qt.setSeries))});function Vt(W,z,Y){let K=C[z];Y&&(W=W/Ct-(K.ori==1?je:tn));let te=We;K.ori==1&&(te=ze,W=te-W),K.dir==-1&&(W=te-W);let oe=K._min,de=K._max,be=W/te,Ae=oe+(de-oe)*be,Ce=K.distr;return Ce==3?Go(10,Ae):Ce==4?sC(Ae,K.asinh):Ce==100?K.bwd(Ae):Ae}function cd(W,z){let Y=Vt(W,T,z);return Or(Y,e[0],mn,yn)}r.valToIdx=W=>Or(W,e[0]),r.posToIdx=cd,r.posToVal=Vt,r.valToPos=(W,z,Y)=>C[z].ori==0?y(W,C[z],Y?pt:We,Y?Ye:0):w(W,C[z],Y?ct:ze,Y?ft:0),r.setCursor=(W,z,Y)=>{He=W.left,Ht=W.top,zn(null,z,Y)};function Gn(W,z){Bt(mi,jo,Nt.left=W),Bt(mi,Ds,Nt.width=z)}function Kl(W,z){Bt(mi,Fs,Nt.top=W),Bt(mi,Ns,Nt.height=z)}let Ui=N.ori==0?Gn:Kl,nr=N.ori==1?Gn:Kl;function ds(){if(G&&J.live)for(let W=d==2?1:0;W<R.length;W++){if(W==0&&ke)continue;let z=J.values[W],Y=0;for(let K in z)we[W][Y++].firstChild.nodeValue=z[K]}}function ko(W,z){if(W!=null&&(W.idxs?W.idxs.forEach((Y,K)=>{q[K]=Y}):uC(W.idx)||q.fill(W.idx),J.idx=q[0]),G&&J.live){for(let Y=0;Y<R.length;Y++)(Y>0||d==1&&!ke)&&zt(Y,q[Y]);ds()}er=!1,z!==!1&&nn("setLegend")}r.setLegend=ko;function zt(W,z){let Y=R[W],K=W==0&&_==2?Hn:e[W],te;ke?te=Y.values(r,W,z)??at:(te=Y.value(r,z==null?null:K[z],W,z),te=te==null?at:{_:te}),J.values[W]=te}function zn(W,z,Y){Vl=He,Mt=Ht,[He,Ht]=Pe.move(r,He,Ht),Pe.left=He,Pe.top=Ht,Pe.show&&(zi&&qr(zi,An(He),0,We,ze),ti&&qr(ti,0,An(Ht),We,ze));let K,te=mn>yn;Cr=Gt,Nr=null;let oe=N.ori==0?We:ze,de=N.ori==1?We:ze;if(He<0||kn==0||te){K=Pe.idx=null;for(let be=0;be<R.length;be++){let Ae=Pn[be];Ae!=null&&qr(Ae,-10,-10,We,ze)}Xr&&Rn(null,yi,!0,W==null&&Qt.setSeries),J.live&&(q.fill(K),er=!0)}else{let be,Ae,Ce;d==1&&(be=N.ori==0?He:Ht,Ae=Vt(be,T),K=Pe.idx=Or(Ae,e[0],mn,yn),Ce=A(e[0][K],N,oe,0));let Se=-10,Ee=-10,Ke=0,Et=0,it=!0,Ge="",Ze="";for(let Le=d==2?1:0;Le<R.length;Le++){let St=R[Le],Zt=q[Le],qt=Zt==null?null:d==1?e[Le][Zt]:e[Le][1][Zt],Ft=Pe.dataIdx(r,Le,K,Ae),Wt=Ft==null?null:d==1?e[Le][Ft]:e[Le][1][Ft];er=er||Wt!=qt||Ft!=Zt,q[Le]=Ft;let ne=Ft==K?Ce:A(d==1?e[0][Ft]:e[Le][0][Ft],N,oe,0);if(Le>0&&St.show){let le=Wt==null?-10:k(Wt,d==1?C[St.scale]:C[St.facets[1].scale],de,0);if(Xr&&Wt!=null){let se=N.ori==1?He:Ht,_e=xn(Zr.dist(r,Le,Ft,le,se));if(_e<Cr){let Fe=Zr.bias;if(Fe!=0){let Qe=Vt(se,St.scale),$t=Wt>=0?1:-1,Xe=Qe>=0?1:-1;Xe==$t&&(Xe==1?Fe==1?Wt>=Qe:Wt<=Qe:Fe==1?Wt<=Qe:Wt>=Qe)&&(Cr=_e,Nr=Le)}else Cr=_e,Nr=Le}}if(er||Li){let se,_e;N.ori==0?(se=ne,_e=le):(se=le,_e=ne);let Fe,Qe,$t,Xe,$n,Yn,Tn=!0,fr=En.bbox;if(fr!=null){Tn=!1;let rr=fr(r,Le);$t=rr.left,Xe=rr.top,Fe=rr.width,Qe=rr.height}else $t=se,Xe=_e,Fe=Qe=En.size(r,Le);if(Yn=En.fill(r,Le),$n=En.stroke(r,Le),Li)Le==Nr&&Cr<=Zr.prox&&(Se=$t,Ee=Xe,Ke=Fe,Et=Qe,it=Tn,Ge=Yn,Ze=$n);else{let rr=Pn[Le];rr!=null&&(Oi[Le]=$t,Di[Le]=Xe,wg(rr,Fe,Qe,Tn),yg(rr,Yn,$n),qr(rr,wr($t),wr(Xe),We,ze))}}}}if(Li){let Le=Zr.prox,St=ri==null?Cr<=Le:Cr>Le||Nr!=ri;if(er||St){let Zt=Pn[0];Oi[0]=Se,Di[0]=Ee,wg(Zt,Ke,Et,it),yg(Zt,Ge,Ze),qr(Zt,wr(Se),wr(Ee),We,ze)}}}if(Nt.show&&ni)if(W!=null){let[be,Ae]=Qt.scales,[Ce,Se]=Qt.match,[Ee,Ke]=W.cursor.sync.scales,Et=W.cursor.drag;if(vn=Et._x,wn=Et._y,vn||wn){let{left:it,top:Ge,width:Ze,height:Le}=W.select,St=W.scales[Ee].ori,Zt=W.posToVal,qt,Ft,Wt,ne,le,se=be!=null&&Ce(be,Ee),_e=Ae!=null&&Se(Ae,Ke);se&&vn?(St==0?(qt=it,Ft=Ze):(qt=Ge,Ft=Le),Wt=C[be],ne=A(Zt(qt,Ee),Wt,oe,0),le=A(Zt(qt+Ft,Ee),Wt,oe,0),Ui(br(ne,le),xn(le-ne))):Ui(0,oe),_e&&wn?(St==1?(qt=it,Ft=Ze):(qt=Ge,Ft=Le),Wt=C[Ae],ne=k(Zt(qt,Ke),Wt,de,0),le=k(Zt(qt+Ft,Ke),Wt,de,0),nr(br(ne,le),xn(le-ne))):nr(0,de)}else ps()}else{let be=xn(Vl-jl),Ae=xn(Mt-Ul);if(N.ori==1){let Ke=be;be=Ae,Ae=Ke}vn=_n.x&&be>=_n.dist,wn=_n.y&&Ae>=_n.dist;let Ce=_n.uni;Ce!=null?vn&&wn&&(vn=be>=Ce,wn=Ae>=Ce,!vn&&!wn&&(Ae>be?wn=!0:vn=!0)):_n.x&&_n.y&&(vn||wn)&&(vn=wn=!0);let Se,Ee;vn&&(N.ori==0?(Se=Bi,Ee=He):(Se=ji,Ee=Ht),Ui(br(Se,Ee),xn(Ee-Se)),wn||nr(0,de)),wn&&(N.ori==1?(Se=Bi,Ee=He):(Se=ji,Ee=Ht),nr(br(Se,Ee),xn(Ee-Se)),vn||Ui(0,oe)),!vn&&!wn&&(Ui(0,0),nr(0,0))}if(_n._x=vn,_n._y=wn,W==null){if(Y){if(Bn!=null){let[be,Ae]=Qt.scales;Qt.values[0]=be!=null?Vt(N.ori==0?He:Ht,be):null,Qt.values[1]=Ae!=null?Vt(N.ori==1?He:Ht,Ae):null}Fr(cg,r,He,Ht,We,ze,K)}if(Xr){let be=Y&&Qt.setSeries,Ae=Zr.prox;ri==null?Cr<=Ae&&Rn(Nr,yi,!0,be):Cr>Ae?Rn(null,yi,!0,be):Nr!=ri&&Rn(Nr,yi,!0,be)}}er&&(J.idx=K,ko()),z!==!1&&nn("setCursor")}let kr=null;Object.defineProperty(r,"rect",{get(){return kr==null&&_o(!1),kr}});function _o(W=!1){W?kr=null:(kr=u.getBoundingClientRect(),nn("syncRect",kr))}function fs(W,z,Y,K,te,oe,de){Pe._lock||ni&&W!=null&&W.movementX==0&&W.movementY==0||(da(W,z,Y,K,te,oe,de,!1,W!=null),W!=null?zn(null,!0,!0):zn(z,!0,!1))}function da(W,z,Y,K,te,oe,de,be,Ae){if(kr==null&&_o(!1),fi(W),W!=null)Y=W.clientX-kr.left,K=W.clientY-kr.top;else{if(Y<0||K<0){He=-10,Ht=-10;return}let[Ce,Se]=Qt.scales,Ee=z.cursor.sync,[Ke,Et]=Ee.values,[it,Ge]=Ee.scales,[Ze,Le]=Qt.match,St=z.axes[0].side%2==1,Zt=N.ori==0?We:ze,qt=N.ori==1?We:ze,Ft=St?oe:te,Wt=St?te:oe,ne=St?K:Y,le=St?Y:K;if(it!=null?Y=Ze(Ce,it)?h(Ke,C[Ce],Zt,0):-10:Y=Zt*(ne/Ft),Ge!=null?K=Le(Se,Ge)?h(Et,C[Se],qt,0):-10:K=qt*(le/Wt),N.ori==1){let se=Y;Y=K,K=se}}Ae&&((Y<=1||Y>=We-1)&&(Y=fo(Y,We)),(K<=1||K>=ze-1)&&(K=fo(K,ze))),be?(jl=Y,Ul=K,[Bi,ji]=Pe.move(r,Y,K)):(He=Y,Ht=K)}const fa={width:0,height:0,left:0,top:0};function ps(){hs(fa,!1)}let pa,So,vi,Ql;function ga(W,z,Y,K,te,oe,de){ni=!0,vn=wn=_n._x=_n._y=!1,da(W,z,Y,K,te,oe,de,!0,!1),W!=null&&(Kt(mu,vu,ma,!1),Fr(ug,r,Bi,ji,We,ze,null));let{left:be,top:Ae,width:Ce,height:Se}=Nt;pa=be,So=Ae,vi=Ce,Ql=Se,ps()}function ma(W,z,Y,K,te,oe,de){ni=_n._x=_n._y=!1,da(W,z,Y,K,te,oe,de,!1,!0);let{left:be,top:Ae,width:Ce,height:Se}=Nt,Ee=Ce>0||Se>0,Ke=pa!=be||So!=Ae||vi!=Ce||Ql!=Se;if(Ee&&Ke&&hs(Nt),_n.setScale&&Ee&&Ke){let Et=be,it=Ce,Ge=Ae,Ze=Se;if(N.ori==1&&(Et=Ae,it=Se,Ge=be,Ze=Ce),vn&&Ar(T,Vt(Et,T),Vt(Et+it,T)),wn)for(let Le in C){let St=C[Le];Le!=T&&St.from==null&&St.min!=Gt&&Ar(Le,Vt(Ge+Ze,Le),Vt(Ge,Le))}ps()}else Pe.lock&&(Pe._lock=!Pe._lock,zn(null,!0,!1));W!=null&&(Qr(mu,vu),Fr(mu,r,He,Ht,We,ze,null))}function ya(W,z,Y,K,te,oe,de){if(Pe._lock)return;fi(W);let be=ni;if(ni){let Ae=!0,Ce=!0,Se=10,Ee,Ke;N.ori==0?(Ee=vn,Ke=wn):(Ee=wn,Ke=vn),Ee&&Ke&&(Ae=He<=Se||He>=We-Se,Ce=Ht<=Se||Ht>=ze-Se),Ee&&Ae&&(He=He<Bi?0:We),Ke&&Ce&&(Ht=Ht<ji?0:ze),zn(null,!0,!0),ni=!1}He=-10,Ht=-10,zn(null,!0,!0),be&&(ni=be)}function gs(W,z,Y,K,te,oe,de){Pe._lock||(fi(W),Zs(),ps(),W!=null&&Fr(fg,r,He,Ht,We,ze,null))}function va(){$.forEach(Sk),Ks(r.width,r.height,!0)}uo(tl,Vo,va);const Vi={};Vi.mousedown=ga,Vi.mousemove=fs,Vi.mouseup=ma,Vi.dblclick=gs,Vi.setSeries=(W,z,Y,K)=>{let te=Qt.match[2];Y=te(r,z,Y),Y!=-1&&Rn(Y,K,!0,!1)},Pe.show&&(Kt(ug,u,ga),Kt(cg,u,fs),Kt(hg,u,W=>{fi(W),_o(!1)}),Kt(dg,u,ya),Kt(fg,u,gs),Bu.add(r),r.syncRect=_o);const qi=r.hooks=n.hooks||{};function nn(W,z,Y){us?Pi.push([W,z,Y]):W in qi&&qi[W].forEach(K=>{K.call(null,r,z,Y)})}(n.plugins||[]).forEach(W=>{for(let z in W.hooks)qi[z]=(qi[z]||[]).concat(W.hooks[z])});const Zl=(W,z,Y)=>Y,Qt=pn({key:null,setSeries:!1,filters:{pub:$g,sub:$g},scales:[T,R[1]?R[1].scale:null],match:[Tg,Tg,Zl],values:[null,null]},Pe.sync);Qt.match.length==2&&Qt.match.push(Zl),Pe.sync=Qt;const Bn=Qt.key,$o=dm(Bn);function Fr(W,z,Y,K,te,oe,de){Qt.filters.pub(W,z,Y,K,te,oe,de)&&$o.pub(W,z,Y,K,te,oe,de)}$o.sub(r);function Xl(W,z,Y,K,te,oe,de){Qt.filters.sub(W,z,Y,K,te,oe,de)&&Vi[W](null,z,Y,K,te,oe,de)}r.pub=Xl;function Jl(){$o.unsub(r),Bu.delete(r),Dt.clear(),Au(tl,Vo,va),s.remove(),re==null||re.remove(),nn("destroy")}r.destroy=Jl;function wa(){nn("init",n,e),bo(e||n.data,!1),M[T]?la(T,M[T]):Zs(),di=Nt.show&&(Nt.width>0||Nt.height>0),Wn=er=!0,Ks(n.width,n.height)}return R.forEach(Ol),$.forEach(od),t?t instanceof HTMLElement?(t.appendChild(s),wa()):t(r,wa):wa(),r}Nn.assign=pn,Nn.fmtNum=_u,Nn.rangeNum=il,Nn.rangeLog=rl,Nn.rangeAsinh=Cu,Nn.orient=go,Nn.pxRatio=Ct,Nn.join=yC,Nn.fmtDate=Iu,Nn.tzDate=TC,Nn.sync=dm;{Nn.addGap=uk,Nn.clipGaps=hl;let n=Nn.paths={points:wm};n.linear=xm,n.stepped=fk,n.bars=pk,n.spline=mk}var Im,Em;function $k(){return Em||(Em=1,Im=function(n,e,t,r,d){var f,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(d===void 0)d=n.length-1;else if(d=d|0,d<r||d>=n.length)throw new RangeError("invalid upper bound");for(;r<=d;)if(f=r+(d-r>>>1),y=+t(n[f],e,f,n),y<0)r=f+1;else if(y>0)d=f-1;else return f;return~r}),Im}var Tk=$k();const sD=dn("N",Na(Tk));var Uu,Rm;function Ik(){if(Rm)return Uu;Rm=1;function n(e,t,r){var d=-1,f=e.length;t<0&&(t=-t>f?0:f+t),r=r>f?f:r,r<0&&(r+=f),f=t>r?0:r-t>>>0,t>>>=0;for(var y=Array(f);++d<f;)y[d]=e[d+t];return y}return Uu=n,Uu}var Vu,Mm;function Ek(){if(Mm)return Vu;Mm=1;var n=Ik();function e(t,r,d){var f=t.length;return d=d===void 0?f:d,!r&&d>=f?t:n(t,r,d)}return Vu=e,Vu}var qu,Lm;function Om(){if(Lm)return qu;Lm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,f="\\ufe0e\\ufe0f",y="\\u200d",w=RegExp("["+y+n+d+f+"]");function h(p){return w.test(p)}return qu=h,qu}var Gu,Dm;function Rk(){if(Dm)return Gu;Dm=1;function n(e){return e.split("")}return Gu=n,Gu}var Yu,Nm;function Mk(){if(Nm)return Yu;Nm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,f="\\ufe0e\\ufe0f",y="["+n+"]",w="["+d+"]",h="\\ud83c[\\udffb-\\udfff]",p="(?:"+w+"|"+h+")",s="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=p+"?",u="["+f+"]?",m="(?:"+l+"(?:"+[s,c,a].join("|")+")"+u+o+")*",v=u+o+m,b="(?:"+[s+w+"?",w,c,a,y].join("|")+")",R=RegExp(h+"(?="+h+")|"+b+v,"g");function $(C){return C.match(R)||[]}return Yu=$,Yu}var Ku,Fm;function Lk(){if(Fm)return Ku;Fm=1;var n=Rk(),e=Om(),t=Mk();function r(d){return e(d)?t(d):n(d)}return Ku=r,Ku}var Qu,Wm;function Ok(){if(Wm)return Qu;Wm=1;var n=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei;return Qu=n,Qu}var Zu,Pm;function Dk(){if(Pm)return Zu;Pm=1;var n=Ok(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Zu=t,Zu}var Xu,Hm;function Ju(){if(Hm)return Xu;Hm=1;var n=Dk(),e=n.Symbol;return Xu=e,Xu}var eh,zm;function Nk(){if(zm)return eh;zm=1;function n(e,t){for(var r=-1,d=e==null?0:e.length,f=Array(d);++r<d;)f[r]=t(e[r],r,e);return f}return eh=n,eh}var th,Bm;function Fk(){if(Bm)return th;Bm=1;var n=Array.isArray;return th=n,th}var nh,jm;function Wk(){if(jm)return nh;jm=1;var n=Ju(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,d=n?n.toStringTag:void 0;function f(y){var w=t.call(y,d),h=y[d];try{y[d]=void 0;var p=!0}catch{}var s=r.call(y);return p&&(w?y[d]=h:delete y[d]),s}return nh=f,nh}var rh,Um;function Pk(){if(Um)return rh;Um=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return rh=t,rh}var ih,Vm;function Hk(){if(Vm)return ih;Vm=1;var n=Ju(),e=Wk(),t=Pk(),r="[object Null]",d="[object Undefined]",f=n?n.toStringTag:void 0;function y(w){return w==null?w===void 0?d:r:f&&f in Object(w)?e(w):t(w)}return ih=y,ih}var oh,qm;function zk(){if(qm)return oh;qm=1;function n(e){return e!=null&&typeof e=="object"}return oh=n,oh}var sh,Gm;function Bk(){if(Gm)return sh;Gm=1;var n=Hk(),e=zk(),t="[object Symbol]";function r(d){return typeof d=="symbol"||e(d)&&n(d)==t}return sh=r,sh}var ah,Ym;function jk(){if(Ym)return ah;Ym=1;var n=Ju(),e=Nk(),t=Fk(),r=Bk(),d=n?n.prototype:void 0,f=d?d.toString:void 0;function y(w){if(typeof w=="string")return w;if(t(w))return e(w,y)+"";if(r(w))return f?f.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return ah=y,ah}var lh,Km;function gl(){if(Km)return lh;Km=1;var n=jk();function e(t){return t==null?"":n(t)}return lh=e,lh}var ch,Qm;function Uk(){if(Qm)return ch;Qm=1;var n=Ek(),e=Om(),t=Lk(),r=gl();function d(f){return function(y){y=r(y);var w=e(y)?t(y):void 0,h=w?w[0]:y.charAt(0),p=w?n(w,1).join(""):y.slice(1);return h[f]()+p}}return ch=d,ch}var uh,Zm;function Xm(){if(Zm)return uh;Zm=1;var n=Uk(),e=n("toUpperCase");return uh=e,uh}var Vk=Xm();const qk=Na(Vk);var hh,Jm;function Gk(){if(Jm)return hh;Jm=1;var n=gl(),e=Xm();function t(r){return e(n(r).toLowerCase())}return hh=t,hh}var dh,ey;function Yk(){if(ey)return dh;ey=1;function n(e,t,r,d){var f=-1,y=e==null?0:e.length;for(d&&y&&(r=e[++f]);++f<y;)r=t(r,e[f],f,e);return r}return dh=n,dh}var fh,ty;function Kk(){if(ty)return fh;ty=1;function n(e){return function(t){return e==null?void 0:e[t]}}return fh=n,fh}var ph,ny;function Qk(){if(ny)return ph;ny=1;var n=Kk(),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 ph=t,ph}var gh,ry;function Zk(){if(ry)return gh;ry=1;var n=Qk(),e=gl(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",d="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",y=r+d+f,w="["+y+"]",h=RegExp(w,"g");function p(s){return s=e(s),s&&s.replace(t,n).replace(h,"")}return gh=p,gh}var mh,iy;function Xk(){if(iy)return mh;iy=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return mh=e,mh}var yh,oy;function Jk(){if(oy)return yh;oy=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 yh=e,yh}var vh,sy;function e_(){if(sy)return vh;sy=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,f="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\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+h+p+s,o="['’]",u="["+l+"]",m="["+d+"]",v="\\d+",b="["+f+"]",R="["+y+"]",$="[^"+n+l+v+f+y+c+"]",C="\\ud83c[\\udffb-\\udfff]",x="(?:"+m+"|"+C+")",T="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+c+"]",N="\\u200d",_="(?:"+R+"|"+$+")",A="(?:"+I+"|"+$+")",k="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",F="["+a+"]?",P="(?:"+N+"(?:"+[T,E,L].join("|")+")"+F+O+")*",j="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+P,J="(?:"+[b,E,L].join("|")+")"+q,G=RegExp([I+"?"+R+"+"+k+"(?="+[u,I,"$"].join("|")+")",A+"+"+M+"(?="+[u,I+_,"$"].join("|")+")",I+"?"+_+"+"+k,I+"+"+M,V,j,v,J].join("|"),"g");function Z(re){return re.match(G)||[]}return vh=Z,vh}var wh,ay;function t_(){if(ay)return wh;ay=1;var n=Xk(),e=Jk(),t=gl(),r=e_();function d(f,y,w){return f=t(f),y=w?void 0:y,y===void 0?e(f)?r(f):n(f):f.match(y)||[]}return wh=d,wh}var bh,ly;function n_(){if(ly)return bh;ly=1;var n=Yk(),e=Zk(),t=t_(),r="['’]",d=RegExp(r,"g");function f(y){return function(w){return n(t(e(w).replace(d,"")),y,"")}}return bh=f,bh}var xh,cy;function r_(){if(cy)return xh;cy=1;var n=Gk(),e=n_(),t=e(function(r,d,f){return d=d.toLowerCase(),r+(f?n(d):d)});return xh=t,xh}var i_=r_();const o_=Na(i_),s_=Object.assign({"./ArrayWidget.vue":()=>Ne(()=>De.import("./ArrayWidget-BxEO5hEG-ead7c1c7c94d72a01f25.js"),void 0),"./ArrayplotWidget.vue":()=>Ne(()=>De.import("./ArrayplotWidget-B_VPoV4v-806e26259e495e4a7e7f.js"),void 0),"./BlockWidget.vue":()=>Ne(()=>De.import("./BlockWidget-CuefOin6-2e7dfeafb154b642df3c.js"),void 0),"./ButtonWidget.vue":()=>Ne(()=>De.import("./ButtonWidget-B6HM0Doo-d005273b23873ae26eda.js"),void 0),"./CanvasWidget.vue":()=>Ne(()=>De.import("./CanvasWidget-DZQGG-yQ-894924fb59718fc23d06.js"),void 0),"./CanvasdotWidget.vue":()=>Ne(()=>De.import("./CanvasdotWidget-6wuCSnw_-a6ca7bc18f60fce7719f.js"),void 0),"./CanvasimageWidget.vue":()=>Ne(()=>De.import("./CanvasimageWidget-mhcPpAuN-1a1f851a9a41fcf6c733.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ne(()=>De.import("./CanvasimagevalueWidget-Cx-dH8Gc-12a4c60baf07c5b8e6ee.js"),void 0),"./CanvaslabelWidget.vue":()=>Ne(()=>De.import("./CanvaslabelWidget-CQZCeohU-e980c378d26286583638.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ne(()=>De.import("./CanvaslabelvalueWidget-CwmYDCjr-ae8bba1e091b4f2f5511.js"),void 0),"./CanvaslineWidget.vue":()=>Ne(()=>De.import("./CanvaslineWidget-nTP3fJB4-971cf3abdbc73dd73ed3.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ne(()=>De.import("./CanvaslinevalueWidget-C3sJnjLQ-bbb3d3bebbb53d2f37f1.js"),void 0),"./CheckbuttonWidget.vue":()=>Ne(()=>De.import("./CheckbuttonWidget-5-8YDsQL-c48610df9e187296d930.js"),void 0),"./ComboboxWidget.vue":()=>Ne(()=>De.import("./ComboboxWidget-DzBL8h9f-c587623a19945e52745d.js"),void 0),"./DateWidget.vue":()=>Ne(()=>De.import("./DateWidget-CW7Od7lB-4108a1baf9b43aa4dfbe.js"),void 0),"./DynamicWidget.vue":()=>Ne(()=>De.import("./DynamicWidget-gFSYxzvT-33d561dfbdea13148312.js"),void 0),"./FormatvalueWidget.vue":()=>Ne(()=>De.import("./FormatvalueWidget-CGpnTqVH-9c3e7456e9d1c37af3f7.js"),void 0),"./HorizontalWidget.vue":()=>Ne(()=>De.import("./HorizontalWidget-D31NRWy5-e888b42c390818542848.js"),void 0),"./HorizontalboxWidget.vue":()=>Ne(()=>De.import("./HorizontalboxWidget-Br8dSVHD-4cfbf1eb02b3f84138dc.js"),void 0),"./HorizontallineWidget.vue":()=>Ne(()=>De.import("./HorizontallineWidget-CbxREBYI-75dec7e530974c61a1e5.js"),void 0),"./IframeWidget.vue":()=>Ne(()=>De.import("./IframeWidget-Ctj8OIcG-3d019032b58dfdefd7d0.js"),void 0),"./ImageviewerWidget.vue":()=>Ne(()=>De.import("./ImageviewerWidget-XrsqxmLo-f64a89cc33d47fd955bd.js"),void 0),"./LabelWidget.vue":()=>Ne(()=>De.import("./LabelWidget-t7I87dp7-1315eaa811930b2233e6.js"),void 0),"./LabelledWidget.vue":()=>Ne(()=>De.import("./LabelledWidget-C7TDf92M-724ad7815bc212f67e35.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ne(()=>De.import("./LabelprogressbarWidget-wwLURt1u-a432c9a5b474cf5b6e7c.js"),void 0),"./LabelsparklineWidget.vue":()=>Ne(()=>De.import("./LabelsparklineWidget-B3awLUyP-e4a0816a04321e38df49.js"),void 0),"./LabelvalueWidget.vue":()=>Ne(()=>De.import("./LabelvalueWidget-Zx_yHCtl-4c0c4e0ac8ae39bed5d8.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ne(()=>De.import("./LabelvaluedescWidget-BBSBh4vI-f984876107c06543c3fb.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitsbarWidget-CZueHYWG-f6cf6c917f8c67a6eba5.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitscolumnWidget-BTvzyQMq-2cdc4af80e2a87e9dd3c.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ne(()=>De.import("./LabelvaluerangebarWidget-BhYTBgDq-6c2e0fda9184e2208746.js"),void 0),"./LedWidget.vue":()=>Ne(()=>De.import("./LedWidget-CxJjJBBS-e3af37bbf00cede52525.js"),void 0),"./LimitsbarWidget.vue":()=>Ne(()=>De.import("./LimitsbarWidget-Djui0IpK-f2c539db7a9ad3b89fb8.js"),void 0),"./LimitscolorWidget.vue":()=>Ne(()=>De.import("./LimitscolorWidget-DdmvKzmx-40498c140bc11d03e41d.js"),void 0),"./LimitscolumnWidget.vue":()=>Ne(()=>De.import("./LimitscolumnWidget-Cc19IEjq-ad17693f30efe09b8fa1.js"),void 0),"./LinegraphWidget.vue":()=>Ne(()=>De.import("./LinegraphWidget-BtieJxeL-42b1ce28200be8efef14.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ne(()=>De.import("./MatrixbycolumnsWidget-DnExVRF8-14726b7f439cc0f5a4e8.js"),void 0),"./ProgressbarWidget.vue":()=>Ne(()=>De.import("./ProgressbarWidget-DIfqhHRE-7b0c17e686f27b32e7a2.js"),void 0),"./RadiobuttonWidget.vue":()=>Ne(()=>De.import("./RadiobuttonWidget-QzIkNP7m-67844f83fea794baf396.js"),void 0),"./RadiogroupWidget.vue":()=>Ne(()=>De.import("./RadiogroupWidget-Ci9sCX39-adf16959ef5dea69675d.js"),void 0),"./RangebarWidget.vue":()=>Ne(()=>De.import("./RangebarWidget-CN0YuHqy-e42497ee9496c3b154c6.js"),void 0),"./RollupWidget.vue":()=>Ne(()=>De.import("./RollupWidget-y4jBtJB2-b365d016bbec0e14bf6f.js"),void 0),"./ScrollwindowWidget.vue":()=>Ne(()=>De.import("./ScrollwindowWidget-CBzYk4Y3-8ba1e2df0c774f559d80.js"),void 0),"./SignalWidget.vue":()=>Ne(()=>De.import("./SignalWidget-DQ5Uc2uV-bec676f52a80f693ffb0.js"),void 0),"./SpacerWidget.vue":()=>Ne(()=>De.import("./SpacerWidget-6rsc_dSM-35b1c7d8fde745bcec57.js"),void 0),"./SparklineWidget.vue":()=>Ne(()=>De.import("./SparklineWidget-CZtvu2ss-5f6d3fbeb1363f8c025e.js"),void 0),"./TabbookWidget.vue":()=>Ne(()=>De.import("./TabbookWidget-DNALU0jl-fa9b45c7d1d46bd0da6d.js"),void 0),"./TextboxWidget.vue":()=>Ne(()=>De.import("./TextboxWidget-5hqPj74D-c06475767d41689a2ed0.js"),void 0),"./TextfieldWidget.vue":()=>Ne(()=>De.import("./TextfieldWidget-Df0ANSiU-17e3086885e55a815dd5.js"),void 0),"./TimeWidget.vue":()=>Ne(()=>De.import("./TimeWidget-C6XQMUG2-12aaccac719f15c27589.js"),void 0),"./TitleWidget.vue":()=>Ne(()=>De.import("./TitleWidget-B9SPUlbW-de561684727a4e247b6f.js"),void 0),"./ValueWidget.vue":()=>Ne(()=>De.import("./ValueWidget-D4RrYVEK-4dee1ed5cb87c7c544af.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ne(()=>De.import("./ValuelimitsbarWidget-Bc9_Vj_f-6acbb385894e7b8a4799.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ne(()=>De.import("./ValuelimitscolumnWidget-DHKIL7sf-837bdd9ac2eecfd6b717.js"),void 0),"./ValuerangebarWidget.vue":()=>Ne(()=>De.import("./ValuerangebarWidget-CecQRIok-9315e926a735f48db354.js"),void 0),"./VerticalWidget.vue":()=>Ne(()=>De.import("./VerticalWidget-D8jUFxjS-af081d2ee73b78acdc7d.js"),void 0),"./VerticalboxWidget.vue":()=>Ne(()=>De.import("./VerticalboxWidget-B4eGUSYH-442cfd2d4b32e7b4536b.js"),void 0)}),a_=Object.entries(s_).reduce((n,[e,t])=>{e=e.split("/").pop();const r=qk(o_(e.replace(/\.\w+$/,"")));return{...n,[r]:rf(t)}},{}),l_=dn("F",{components:a_});function uy(n,e){return function(){return n.apply(e,arguments)}}const{toString:c_}=Object.prototype,{getPrototypeOf:Ah}=Object,ml=(n=>e=>{const t=c_.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=n=>(n=n.toLowerCase(),e=>ml(e)===n),yl=n=>e=>typeof e===n,{isArray:es}=Array,js=yl("undefined");function u_(n){return n!==null&&!js(n)&&n.constructor!==null&&!js(n.constructor)&&dr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const hy=Dr("ArrayBuffer");function h_(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&hy(n.buffer),e}const d_=yl("string"),dr=yl("function"),dy=yl("number"),vl=n=>n!==null&&typeof n=="object",f_=n=>n===!0||n===!1,wl=n=>{if(ml(n)!=="object")return!1;const e=Ah(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},p_=Dr("Date"),g_=Dr("File"),m_=Dr("Blob"),y_=Dr("FileList"),v_=n=>vl(n)&&dr(n.pipe),w_=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||dr(n.append)&&((e=ml(n))==="formdata"||e==="object"&&dr(n.toString)&&n.toString()==="[object FormData]"))},b_=Dr("URLSearchParams"),[x_,A_,C_,k_]=["ReadableStream","Request","Response","Headers"].map(Dr),__=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Us(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,d;if(typeof n!="object"&&(n=[n]),es(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{const f=t?Object.getOwnPropertyNames(n):Object.keys(n),y=f.length;let w;for(r=0;r<y;r++)w=f[r],e.call(null,n[w],w,n)}}function fy(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,py=n=>!js(n)&&n!==mo;function Ch(){const{caseless:n}=py(this)&&this||{},e={},t=(r,d)=>{const f=n&&fy(e,d)||d;wl(e[f])&&wl(r)?e[f]=Ch(e[f],r):wl(r)?e[f]=Ch({},r):es(r)?e[f]=r.slice():e[f]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&Us(arguments[r],t);return e}const S_=(n,e,t,{allOwnKeys:r}={})=>(Us(e,(d,f)=>{t&&dr(d)?n[f]=uy(d,t):n[f]=d},{allOwnKeys:r}),n),$_=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)},I_=(n,e,t,r)=>{let d,f,y;const w={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),f=d.length;f-- >0;)y=d[f],(!r||r(y,n,e))&&!w[y]&&(e[y]=n[y],w[y]=!0);n=t!==!1&&Ah(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},E_=(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},R_=n=>{if(!n)return null;if(es(n))return n;let e=n.length;if(!dy(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},M_=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Ah(Uint8Array)),L_=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},O_=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},D_=Dr("HTMLFormElement"),N_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),gy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),F_=Dr("RegExp"),my=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Us(t,(d,f)=>{let y;(y=e(d,f,n))!==!1&&(r[f]=y||d)}),Object.defineProperties(n,r)},W_=n=>{my(n,(e,t)=>{if(dr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(dr(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+"'")})}})},P_=(n,e)=>{const t={},r=d=>{d.forEach(f=>{t[f]=!0})};return es(n)?r(n):r(String(n).split(e)),t},H_=()=>{},z_=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,kh="abcdefghijklmnopqrstuvwxyz",yy="0123456789",vy={DIGIT:yy,ALPHA:kh,ALPHA_DIGIT:kh+kh.toUpperCase()+yy},B_=(n=16,e=vy.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function j_(n){return!!(n&&dr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const U_=n=>{const e=new Array(10),t=(r,d)=>{if(vl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const f=es(r)?[]:{};return Us(r,(y,w)=>{const h=t(y,d+1);!js(h)&&(f[w]=h)}),e[d]=void 0,f}}return r};return t(n,0)},V_=Dr("AsyncFunction"),q_=n=>n&&(vl(n)||dr(n))&&dr(n.then)&&dr(n.catch),wy=((n,e)=>n?setImmediate:e?((t,r)=>(mo.addEventListener("message",({source:d,data:f})=>{d===mo&&f===t&&r.length&&r.shift()()},!1),d=>{r.push(d),mo.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",dr(mo.postMessage)),G_=typeof queueMicrotask<"u"?queueMicrotask.bind(mo):typeof process<"u"&&process.nextTick||wy,he={isArray:es,isArrayBuffer:hy,isBuffer:u_,isFormData:w_,isArrayBufferView:h_,isString:d_,isNumber:dy,isBoolean:f_,isObject:vl,isPlainObject:wl,isReadableStream:x_,isRequest:A_,isResponse:C_,isHeaders:k_,isUndefined:js,isDate:p_,isFile:g_,isBlob:m_,isRegExp:F_,isFunction:dr,isStream:v_,isURLSearchParams:b_,isTypedArray:M_,isFileList:y_,forEach:Us,merge:Ch,extend:S_,trim:__,stripBOM:$_,inherits:T_,toFlatObject:I_,kindOf:ml,kindOfTest:Dr,endsWith:E_,toArray:R_,forEachEntry:L_,matchAll:O_,isHTMLForm:D_,hasOwnProperty:gy,hasOwnProp:gy,reduceDescriptors:my,freezeMethods:W_,toObjectSet:P_,toCamelCase:N_,noop:H_,toFiniteNumber:z_,findKey:fy,global:mo,isContextDefined:py,ALPHABET:vy,generateString:B_,isSpecCompliantForm:j_,toJSONObject:U_,isAsyncFn:V_,isThenable:q_,setImmediate:wy,asap:G_};function nt(n,e,t,r,d){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),d&&(this.response=d,this.status=d.status?d.status:null)}he.inherits(nt,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 by=nt.prototype,xy={};["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=>{xy[n]={value:n}}),Object.defineProperties(nt,xy),Object.defineProperty(by,"isAxiosError",{value:!0}),nt.from=(n,e,t,r,d,f)=>{const y=Object.create(by);return he.toFlatObject(n,y,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),nt.call(y,n.message,e,t,r,d),y.cause=n,y.name=n.name,f&&Object.assign(y,f),y};const Y_=null;function _h(n){return he.isPlainObject(n)||he.isArray(n)}function Ay(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Cy(n,e,t){return n?n.concat(e).map(function(r,d){return r=Ay(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function K_(n){return he.isArray(n)&&!n.some(_h)}const Q_=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function bl(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,d=t.visitor||p,f=t.dots,y=t.indexes,w=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(d))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!w&&he.isBlob(l))throw new nt("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 p(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&K_(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(m=he.toArray(l)))return o=Ay(o),m.forEach(function(v,b){!(he.isUndefined(v)||v===null)&&e.append(y===!0?Cy([o],b,f):y===null?o:o+"[]",h(v))}),!1}return _h(l)?!0:(e.append(Cy(u,o,f),h(l)),!1)}const s=[],c=Object.assign(Q_,{defaultVisitor:p,convertValue:h,isVisitable:_h});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(u,m){(!(he.isUndefined(u)||u===null)&&d.call(e,u,he.isString(m)?m.trim():m,o,c))===!0&&a(u,o?o.concat(m):[m])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),e}function ky(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Sh(n,e){this._pairs=[],n&&bl(n,this,e)}const _y=Sh.prototype;_y.append=function(n,e){this._pairs.push([n,e])},_y.toString=function(n){const e=n?function(t){return n.call(this,t,ky)}:ky;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function Z_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sy(n,e,t){if(!e)return n;const r=t&&t.encode||Z_;he.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let f;if(d?f=d(e,t):f=he.isURLSearchParams(e)?e.toString():new Sh(e,t).toString(r),f){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}let $y=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 Ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X_=typeof URLSearchParams<"u"?URLSearchParams:Sh,J_=typeof FormData<"u"?FormData:null,eS=typeof Blob<"u"?Blob:null,tS={isBrowser:!0,classes:{URLSearchParams:X_,FormData:J_,Blob:eS},protocols:["http","https","file","blob","url","data"]},$h=typeof window<"u"&&typeof document<"u",Th=typeof navigator=="object"&&navigator||void 0,nS=$h&&(!Th||["ReactNative","NativeScript","NS"].indexOf(Th.product)<0),rS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",iS=$h&&window.location.href||"http://localhost",oS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$h,hasStandardBrowserEnv:nS,hasStandardBrowserWebWorkerEnv:rS,navigator:Th,origin:iS},Symbol.toStringTag,{value:"Module"})),Fn={...oS,...tS};function sS(n,e){return bl(n,new Fn.classes.URLSearchParams,Object.assign({visitor:function(t,r,d,f){return Fn.isNode&&he.isBuffer(t)?(this.append(r,t.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},e))}function aS(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function lS(n){const e={},t=Object.keys(n);let r;const d=t.length;let f;for(r=0;r<d;r++)f=t[r],e[f]=n[f];return e}function Iy(n){function e(t,r,d,f){let y=t[f++];if(y==="__proto__")return!0;const w=Number.isFinite(+y),h=f>=t.length;return y=!y&&he.isArray(d)?d.length:y,h?(he.hasOwnProp(d,y)?d[y]=[d[y],r]:d[y]=r,!w):((!d[y]||!he.isObject(d[y]))&&(d[y]=[]),e(t,r,d[y],f)&&he.isArray(d[y])&&(d[y]=lS(d[y])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const t={};return he.forEachEntry(n,(r,d)=>{e(aS(r),d,t,0)}),t}return null}function cS(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 Vs={transitional:Ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=he.isObject(n);if(d&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(Iy(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 f;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return sS(n,this.formSerializer).toString();if((f=he.isFileList(n))||t.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return bl(f?{"files[]":n}:n,y&&new y,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),cS(n)):n}],transformResponse:[function(n){const e=this.transitional||Vs.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 d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(f){if(d)throw f.name==="SyntaxError"?nt.from(f,nt.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.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=>{Vs.headers[n]={}});const uS=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"]),hS=n=>{const e={};let t,r,d;return n&&n.split(`
|
1412
|
+
`).forEach(function(f){d=f.indexOf(":"),t=f.substring(0,d).trim().toLowerCase(),r=f.substring(d+1).trim(),!(!t||e[t]&&uS[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Ey=Symbol("internals");function qs(n){return n&&String(n).trim().toLowerCase()}function xl(n){return n===!1||n==null?n:he.isArray(n)?n.map(xl):String(n)}function dS(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 fS=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ih(n,e,t,r,d){if(he.isFunction(r))return r.call(this,e,t);if(d&&(e=t),!!he.isString(e)){if(he.isString(r))return e.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(e)}}function pS(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function gS(n,e){const t=he.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(d,f,y){return this[r].call(this,e,d,f,y)},configurable:!0})})}let Jn=class{constructor(e){e&&this.set(e)}set(e,t,r){const d=this;function f(w,h,p){const s=qs(h);if(!s)throw new Error("header name must be a non-empty string");const c=he.findKey(d,s);(!c||d[c]===void 0||p===!0||p===void 0&&d[c]!==!1)&&(d[c||h]=xl(w))}const y=(w,h)=>he.forEach(w,(p,s)=>f(p,s,h));if(he.isPlainObject(e)||e instanceof this.constructor)y(e,t);else if(he.isString(e)&&(e=e.trim())&&!fS(e))y(hS(e),t);else if(he.isHeaders(e))for(const[w,h]of e.entries())f(h,w,r);else e!=null&&f(t,e,r);return this}get(e,t){if(e=qs(e),e){const r=he.findKey(this,e);if(r){const d=this[r];if(!t)return d;if(t===!0)return dS(d);if(he.isFunction(t))return t.call(this,d,r);if(he.isRegExp(t))return t.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qs(e),e){const r=he.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Ih(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let d=!1;function f(y){if(y=qs(y),y){const w=he.findKey(r,y);w&&(!t||Ih(r,r[w],w,t))&&(delete r[w],d=!0)}}return he.isArray(e)?e.forEach(f):f(e),d}clear(e){const t=Object.keys(this);let r=t.length,d=!1;for(;r--;){const f=t[r];(!e||Ih(this,this[f],f,e,!0))&&(delete this[f],d=!0)}return d}normalize(e){const t=this,r={};return he.forEach(this,(d,f)=>{const y=he.findKey(r,f);if(y){t[y]=xl(d),delete t[f];return}const w=e?pS(f):String(f).trim();w!==f&&delete t[f],t[w]=xl(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(r,d)=>{r!=null&&r!==!1&&(t[d]=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(`
|
1413
|
+
`)}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(d=>r.set(d)),r}static accessor(e){const t=(this[Ey]=this[Ey]={accessors:{}}).accessors,r=this.prototype;function d(f){const y=qs(f);t[y]||(gS(r,f),t[y]=!0)}return he.isArray(e)?e.forEach(d):d(e),this}};Jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Jn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),he.freezeMethods(Jn);function Eh(n,e){const t=this||Vs,r=e||t,d=Jn.from(r.headers);let f=r.data;return he.forEach(n,function(y){f=y.call(t,f,d.normalize(),e?e.status:void 0)}),d.normalize(),f}function Ry(n){return!!(n&&n.__CANCEL__)}function ts(n,e,t){nt.call(this,n??"canceled",nt.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits(ts,nt,{__CANCEL__:!0});function My(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new nt("Request failed with status code "+t.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function mS(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function yS(n,e){n=n||10;const t=new Array(n),r=new Array(n);let d=0,f=0,y;return e=e!==void 0?e:1e3,function(w){const h=Date.now(),p=r[f];y||(y=h),t[d]=w,r[d]=h;let s=f,c=0;for(;s!==d;)c+=t[s++],s=s%n;if(d=(d+1)%n,d===f&&(f=(f+1)%n),h-y<e)return;const a=p&&h-p;return a?Math.round(c*1e3/a):void 0}}function vS(n,e){let t=0,r=1e3/e,d,f;const y=(w,h=Date.now())=>{t=h,d=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),p=h-t;p>=r?y(w,h):(d=w,f||(f=setTimeout(()=>{f=null,y(d)},r-p)))},()=>d&&y(d)]}const Al=(n,e,t=3)=>{let r=0;const d=yS(50,250);return vS(f=>{const y=f.loaded,w=f.lengthComputable?f.total:void 0,h=y-r,p=d(h),s=y<=w;r=y;const c={loaded:y,total:w,progress:w?y/w:void 0,bytes:h,rate:p||void 0,estimated:p&&w&&s?(w-y)/p:void 0,event:f,lengthComputable:w!=null,[e?"download":"upload"]:!0};n(c)},t)},Ly=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Oy=n=>(...e)=>he.asap(()=>n(...e)),wS=Fn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Fn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Fn.origin),Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent)):()=>!0,bS=Fn.hasStandardBrowserEnv?{write(n,e,t,r,d,f){const y=[n+"="+encodeURIComponent(e)];he.isNumber(t)&&y.push("expires="+new Date(t).toGMTString()),he.isString(r)&&y.push("path="+r),he.isString(d)&&y.push("domain="+d),f===!0&&y.push("secure"),document.cookie=y.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 xS(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function AS(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Dy(n,e){return n&&!xS(e)?AS(n,e):e}const Ny=n=>n instanceof Jn?{...n}:n;function yo(n,e){e=e||{};const t={};function r(p,s,c,a){return he.isPlainObject(p)&&he.isPlainObject(s)?he.merge.call({caseless:a},p,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function d(p,s,c,a){if(he.isUndefined(s)){if(!he.isUndefined(p))return r(void 0,p,c,a)}else return r(p,s,c,a)}function f(p,s){if(!he.isUndefined(s))return r(void 0,s)}function y(p,s){if(he.isUndefined(s)){if(!he.isUndefined(p))return r(void 0,p)}else return r(void 0,s)}function w(p,s,c){if(c in e)return r(p,s);if(c in n)return r(void 0,p)}const h={url:f,method:f,data:f,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:w,headers:(p,s,c)=>d(Ny(p),Ny(s),c,!0)};return he.forEach(Object.keys(Object.assign({},n,e)),function(p){const s=h[p]||d,c=s(n[p],e[p],p);he.isUndefined(c)&&s!==w||(t[p]=c)}),t}const Fy=n=>{const e=yo({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:f,headers:y,auth:w}=e;e.headers=y=Jn.from(y),e.url=Sy(Dy(e.baseURL,e.url),n.params,n.paramsSerializer),w&&y.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(t)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[p,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...s].join("; "))}}if(Fn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(e)),r||r!==!1&&wS(e.url))){const p=d&&f&&bS.read(f);p&&y.set(d,p)}return e},CS=typeof XMLHttpRequest<"u",kS=CS&&function(n){return new Promise(function(e,t){const r=Fy(n);let d=r.data;const f=Jn.from(r.headers).normalize();let{responseType:y,onUploadProgress:w,onDownloadProgress:h}=r,p,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const b=Jn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};My(function($){e($),o()},function($){t($),o()},R),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(t(new nt("Request aborted",nt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new nt("Network Error",nt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||Ty;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),t(new nt(b,R.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,n,u)),u=null},d===void 0&&f.setContentType(null),"setRequestHeader"in u&&he.forEach(f.toJSON(),function(b,R){u.setRequestHeader(R,b)}),he.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=Al(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=Al(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(p=b=>{u&&(t(!b||b.type?new ts(null,n,u):b),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const v=mS(r.url);if(v&&Fn.protocols.indexOf(v)===-1){t(new nt("Unsupported protocol "+v+":",nt.ERR_BAD_REQUEST,n));return}u.send(d||null)})},_S=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,d;const f=function(p){if(!d){d=!0,w();const s=p instanceof Error?p:this.reason;r.abort(s instanceof nt?s:new ts(s instanceof Error?s.message:s))}};let y=e&&setTimeout(()=>{y=null,f(new nt(`timeout ${e} of ms exceeded`,nt.ETIMEDOUT))},e);const w=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(f):p.removeEventListener("abort",f)}),n=null)};n.forEach(p=>p.addEventListener("abort",f));const{signal:h}=r;return h.unsubscribe=()=>he.asap(w),h}},SS=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,d;for(;r<t;)d=r+e,yield n.slice(r,d),r=d},$S=async function*(n,e){for await(const t of TS(n))yield*SS(t,e)},TS=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()}},Wy=(n,e,t,r)=>{const d=$S(n,e);let f=0,y,w=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:s}=await d.next();if(p){w(),h.close();return}let c=s.byteLength;if(t){let a=f+=c;t(a)}h.enqueue(new Uint8Array(s))}catch(p){throw w(p),p}},cancel(h){return w(h),d.return()}},{highWaterMark:2})},Cl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Py=Cl&&typeof ReadableStream=="function",IS=Cl&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Hy=(n,...e)=>{try{return!!n(...e)}catch{return!1}},ES=Py&&Hy(()=>{let n=!1;const e=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),zy=64*1024,Rh=Py&&Hy(()=>he.isReadableStream(new Response("").body)),kl={stream:Rh&&(n=>n.body)};Cl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kl[e]&&(kl[e]=he.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new nt(`Response type '${e}' is not supported`,nt.ERR_NOT_SUPPORT,r)})})})(new Response);const RS=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Fn.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 IS(n)).byteLength},MS=async(n,e)=>he.toFiniteNumber(n.getContentLength())??RS(e),LS=Cl&&(async n=>{let{url:e,method:t,data:r,signal:d,cancelToken:f,timeout:y,onDownloadProgress:w,onUploadProgress:h,responseType:p,headers:s,withCredentials:c="same-origin",fetchOptions:a}=Fy(n);p=p?(p+"").toLowerCase():"text";let l=_S([d,f&&f.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&ES&&t!=="get"&&t!=="head"&&(m=await MS(s,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),x;if(he.isFormData(r)&&(x=C.headers.get("content-type"))&&s.setContentType(x),C.body){const[T,E]=Ly(m,Al(Oy(h)));r=Wy(C.body,zy,T,E)}}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 b=await fetch(o);const R=Rh&&(p==="stream"||p==="response");if(Rh&&(w||R&&u)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=b[L]});const x=he.toFiniteNumber(b.headers.get("content-length")),[T,E]=w&&Ly(x,Al(Oy(w),!0))||[];b=new Response(Wy(b.body,zy,T,()=>{E&&E(),u&&u()}),C)}p=p||"text";let $=await kl[he.findKey(kl,p)||"text"](b,n);return!R&&u&&u(),await new Promise((C,x)=>{My(C,x,{data:$,headers:Jn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(v){throw u&&u(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,n,o),{cause:v.cause||v}):nt.from(v,v&&v.code,n,o)}}),Mh={http:Y_,xhr:kS,fetch:LS};he.forEach(Mh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const By=n=>`- ${n}`,OS=n=>he.isFunction(n)||n===null||n===!1,jy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:e}=n;let t,r;const d={};for(let f=0;f<e;f++){t=n[f];let y;if(r=t,!OS(t)&&(r=Mh[(y=String(t)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${y}'`);if(r)break;d[y||"#"+f]=r}if(!r){const f=Object.entries(d).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=e?f.length>1?`since :
|
1414
|
+
`+f.map(By).join(`
|
1415
|
+
`):" "+By(f[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:Mh};function Lh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ts(null,n)}function Uy(n){return Lh(n),n.headers=Jn.from(n.headers),n.data=Eh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),jy.getAdapter(n.adapter||Vs.adapter)(n).then(function(e){return Lh(n),e.data=Eh.call(n,n.transformResponse,e),e.headers=Jn.from(e.headers),e},function(e){return Ry(e)||(Lh(n),e&&e.response&&(e.response.data=Eh.call(n,n.transformResponse,e.response),e.response.headers=Jn.from(e.response.headers))),Promise.reject(e)})}const Vy="1.7.9",_l={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{_l[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const qy={};_l.transitional=function(n,e,t){function r(d,f){return"[Axios v"+Vy+"] Transitional option '"+d+"'"+f+(t?". "+t:"")}return(d,f,y)=>{if(n===!1)throw new nt(r(f," has been removed"+(e?" in "+e:"")),nt.ERR_DEPRECATED);return e&&!qy[f]&&(qy[f]=!0,console.warn(r(f," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,f,y):!0}},_l.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function DS(n,e,t){if(typeof n!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const f=r[d],y=e[f];if(y){const w=n[f],h=w===void 0||y(w,f,n);if(h!==!0)throw new nt("option "+f+" must be "+h,nt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new nt("Unknown option "+f,nt.ERR_BAD_OPTION)}}const Sl={assertOptions:DS,validators:_l},Gr=Sl.validators;let vo=class{constructor(e){this.defaults=e,this.interceptors={request:new $y,response:new $y}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const f=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?f&&!String(r.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1416
|
+
`+f):r.stack=f}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=yo(this.defaults,t);const{transitional:r,paramsSerializer:d,headers:f}=t;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),d!=null&&(he.isFunction(d)?t.paramsSerializer={serialize:d}:Sl.assertOptions(d,{encode:Gr.function,serialize:Gr.function},!0)),Sl.assertOptions(t,{baseUrl:Gr.spelling("baseURL"),withXsrfToken:Gr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let y=f&&he.merge(f.common,f[t.method]);f&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),t.headers=Jn.concat(y,f);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const p=[];this.interceptors.response.forEach(function(o){p.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[Uy.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,p),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++],u=w[c++];try{l=o(l)}catch(m){u.call(this,m);break}}try{s=Uy.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=p.length;c<a;)s=s.then(p[c++],p[c++]);return s}getUri(e){e=yo(this.defaults,e);const t=Dy(e.baseURL,e.url);return Sy(t,e.params,e.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){vo.prototype[n]=function(e,t){return this.request(yo(t||{},{method:n,url:e,data:(t||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,f){return this.request(yo(f||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}vo.prototype[n]=e(),vo.prototype[n+"Form"]=e(!0)});let NS=class m0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let f=r._listeners.length;for(;f-- >0;)r._listeners[f](d);r._listeners=null}),this.promise.then=d=>{let f;const y=new Promise(w=>{r.subscribe(w),f=w}).then(d);return y.cancel=function(){r.unsubscribe(f)},y},e(function(d,f,y){r.reason||(r.reason=new ts(d,f,y),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 m0(function(t){e=t}),cancel:e}}};function FS(n){return function(e){return n.apply(null,e)}}function WS(n){return he.isObject(n)&&n.isAxiosError===!0}const Oh={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(Oh).forEach(([n,e])=>{Oh[e]=n});function Gy(n){const e=new vo(n),t=uy(vo.prototype.request,e);return he.extend(t,vo.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Gy(yo(n,r))},t}const gn=dn("b",Gy(Vs));gn.Axios=vo,gn.CanceledError=ts,gn.CancelToken=NS,gn.isCancel=Ry,gn.VERSION=Vy,gn.toFormData=bl,gn.AxiosError=nt,gn.Cancel=gn.CanceledError,gn.all=function(n){return Promise.all(n)},gn.spread=FS,gn.isAxiosError=WS,gn.mergeConfig=yo,gn.AxiosHeaders=Jn,gn.formToJSON=n=>Iy(he.isHTMLForm(n)?new FormData(n):n),gn.getAdapter=jy.getAdapter,gn.HttpStatusCode=Oh,gn.default=gn;const{Axios:aD,AxiosError:lD,CanceledError:cD,isCancel:uD,CancelToken:hD,VERSION:dD,all:fD,Cancel:pD,isAxiosError:gD,spread:mD,toFormData:yD,AxiosHeaders:vD,HttpStatusCode:wD,formToJSON:bD,getAdapter:xD,mergeConfig:AD}=gn,PS=dn("t",function(n){if(n&&n.includes(".")){let e=n.split(".").pop();if(e==="py")return"mdi-language-python";if(e==="rb")return"mdi-language-ruby";if(e==="js")return"mdi-language-javascript";if(e==="csv")return"mdi-file-delimited";if(e==="txt")return"mdi-file-document";if(e==="png"||e==="gif"||e==="jpg")return"mdi-file-image"}return"mdi-file"});function Yy(){return Object.assign({},Fo())}function HS(n,e,t){const r=Ut(n,void 0);return r.setTime(r.getTime()+e*Oa),r}function zS(n,e){const t=()=>fn(void 0,NaN),r=VS(n);let d;if(r.date){const h=qS(r.date,2);d=GS(h.restDateString,h.year)}if(!d||isNaN(+d))return t();const f=+d;let y=0,w;if(r.time&&(y=YS(r.time),isNaN(y)))return t();if(r.timezone){if(w=KS(r.timezone),isNaN(w))return t()}else{const h=new Date(f+y),p=Ut(0,void 0);return p.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),p.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),p}return Ut(f+y+w,void 0)}const $l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},BS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,US=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VS(n){const e={},t=n.split($l.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],$l.timeZoneDelimiter.test(e.date)&&(e.date=n.split($l.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const d=$l.timezone.exec(r);d?(e.time=r.replace(d[1],""),e.timezone=d[1]):e.time=r}return e}function qS(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 d=r[1]?parseInt(r[1]):null,f=r[2]?parseInt(r[2]):null;return{year:f===null?d:f*100,restDateString:n.slice((r[1]||r[2]).length)}}function GS(n,e){if(e===null)return new Date(NaN);const t=n.match(BS);if(!t)return new Date(NaN);const r=!!t[4],d=Gs(t[1]),f=Gs(t[2])-1,y=Gs(t[3]),w=Gs(t[4]),h=Gs(t[5])-1;if(r)return e$(e,w,h)?QS(e,w,h):new Date(NaN);{const p=new Date(0);return!XS(e,f,y)||!JS(e,d)?new Date(NaN):(p.setUTCFullYear(e,f,Math.max(d,y)),p)}}function Gs(n){return n?parseInt(n):1}function YS(n){const e=n.match(jS);if(!e)return NaN;const t=Dh(e[1]),r=Dh(e[2]),d=Dh(e[3]);return t$(t,r,d)?t*Fc+r*Oa+d*1e3:NaN}function Dh(n){return n&&parseFloat(n.replace(",","."))||0}function KS(n){if(n==="Z")return 0;const e=n.match(US);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),d=e[3]&&parseInt(e[3])||0;return n$(r,d)?t*(r*Fc+d*Oa):NaN}function QS(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,f=(e-1)*7+t+1-d;return r.setUTCDate(r.getUTCDate()+f),r}const ZS=[31,null,31,30,31,30,31,31,30,31,30,31];function Ky(n){return n%400===0||n%4===0&&n%100!==0}function XS(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(ZS[e]||(Ky(n)?29:28))}function JS(n,e){return e>=1&&e<=(Ky(n)?366:365)}function e$(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function t$(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function n$(n,e){return e>=0&&e<=59}function r$(n,e,t){return HS(n,-e)}function Qy(n,e,t){const r=Yy(),d=s$(n,t.timeZone,t.locale??r.locale);return"formatToParts"in d?i$(d,e):o$(d,e)}function i$(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 o$(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function s$(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function a$(n,e){const t=d$(e);return"formatToParts"in t?c$(t,n):u$(t,n)}const l$={year:0,month:1,day:2,hour:3,minute:4,second:5};function c$(n,e){try{const t=n.formatToParts(e),r=[];for(let d=0;d<t.length;d++){const f=l$[t[d].type];f!==void 0&&(r[f]=parseInt(t[d].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function u$(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 Nh={},Zy=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")),h$=Zy==="06/25/2014, 00:00:00"||Zy==="06/25/2014 00:00:00";function d$(n){return Nh[n]||(Nh[n]=h$?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"})),Nh[n]}function Xy(n,e,t,r,d,f,y){const w=new Date(0);return w.setUTCFullYear(n,e,t),w.setUTCHours(r,d,f,y),w}const Jy=36e5,f$=6e4,Fh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Wh(n,e,t){if(!n)return 0;let r=Fh.timezoneZ.exec(n);if(r)return 0;let d,f;if(r=Fh.timezoneHH.exec(n),r)return d=parseInt(r[1],10),ev(d)?-(d*Jy):NaN;if(r=Fh.timezoneHHMM.exec(n),r){d=parseInt(r[2],10);const y=parseInt(r[3],10);return ev(d,y)?(f=Math.abs(d)*Jy+y*f$,r[1]==="+"?-f:f):NaN}if(m$(n)){e=new Date(e||Date.now());const y=t?e:p$(e),w=Ph(y,n);return-(t?w:g$(e,w,n))}return NaN}function p$(n){return Xy(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Ph(n,e){const t=a$(n,e),r=Xy(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let d=n.getTime();const f=d%1e3;return d-=f>=0?f:1e3+f,r-d}function g$(n,e,t){let r=n.getTime()-e;const d=Ph(new Date(r),t);if(e===d)return e;r-=d-e;const f=Ph(new Date(r),t);return d===f?d:Math.max(d,f)}function ev(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const tv={};function m$(n){if(tv[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),tv[n]=!0,!0}catch{return!1}}const y$=60*1e3,v$={X:function(n,e,t){const r=Hh(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return nv(r);case"XXXX":case"XX":return ns(r);case"XXXXX":case"XXX":default:return ns(r,":")}},x:function(n,e,t){const r=Hh(t.timeZone,n);switch(e){case"x":return nv(r);case"xxxx":case"xx":return ns(r);case"xxxxx":case"xxx":default:return ns(r,":")}},O:function(n,e,t){const r=Hh(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+w$(r,":");case"OOOO":default:return"GMT"+ns(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return Qy("short",n,t);case"zzzz":default:return Qy("long",n,t)}}};function Hh(n,e){const t=n?Wh(n,e,!0)/y$:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Tl(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function ns(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Tl(Math.floor(r/60),2),f=Tl(Math.floor(r%60),2);return t+d+e+f}function nv(n,e){return n%60===0?(n>0?"-":"+")+Tl(Math.abs(n)/60,2):ns(n,e)}function w$(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.floor(r/60),f=r%60;return f===0?t+String(d):t+String(d)+e+Tl(f,2)}function rv(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 b$=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,zh=36e5,iv=6e4,x$=2,qn={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:b$};function ov(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?x$: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=A$(n),{year:d,restDateString:f}=C$(r.date,t),y=k$(f,d);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const w=y.getTime();let h=0,p;if(r.time&&(h=_$(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||e.timeZone){if(p=Wh(r.timeZone||e.timeZone,new Date(w+h)),isNaN(p))return new Date(NaN)}else p=rv(new Date(w+h)),p=rv(new Date(w+h+p));return new Date(w+h+p)}else return new Date(NaN)}function A$(n){const e={};let t=qn.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=qn.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const d=qn.timeZone.exec(r);d?(e.time=r.replace(d[1],""),e.timeZone=d[1].trim()):e.time=r}return e}function C$(n,e){if(n){const t=qn.YYY[e],r=qn.YYYYY[e];let d=qn.YYYY.exec(n)||r.exec(n);if(d){const f=d[1];return{year:parseInt(f,10),restDateString:n.slice(f.length)}}if(d=qn.YY.exec(n)||t.exec(n),d){const f=d[1];return{year:parseInt(f,10)*100,restDateString:n.slice(f.length)}}}return{year:null}}function k$(n,e){if(e===null)return null;let t,r,d;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let f=qn.MM.exec(n);if(f)return t=new Date(0),r=parseInt(f[1],10)-1,lv(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(f=qn.DDD.exec(n),f){t=new Date(0);const y=parseInt(f[1],10);return T$(e,y)?(t.setUTCFullYear(e,0,y),t):new Date(NaN)}if(f=qn.MMDD.exec(n),f){t=new Date(0),r=parseInt(f[1],10)-1;const y=parseInt(f[2],10);return lv(e,r,y)?(t.setUTCFullYear(e,r,y),t):new Date(NaN)}if(f=qn.Www.exec(n),f)return d=parseInt(f[1],10)-1,cv(d)?sv(e,d):new Date(NaN);if(f=qn.WwwD.exec(n),f){d=parseInt(f[1],10)-1;const y=parseInt(f[2],10)-1;return cv(d,y)?sv(e,d,y):new Date(NaN)}return null}function _$(n){let e,t,r=qn.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Bh(e)?e%24*zh:NaN;if(r=qn.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Bh(e,t)?e%24*zh+t*iv:NaN;if(r=qn.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const d=parseFloat(r[3].replace(",","."));return Bh(e,t,d)?e%24*zh+t*iv+d*1e3:NaN}return null}function sv(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,f=e*7+t+1-d;return r.setUTCDate(r.getUTCDate()+f),r}const S$=[31,28,31,30,31,30,31,31,30,31,30,31],$$=[31,29,31,30,31,30,31,31,30,31,30,31];function av(n){return n%400===0||n%4===0&&n%100!==0}function lv(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=av(n);if(r&&t>$$[e]||!r&&t>S$[e])return!1}return!0}function T$(n,e){if(e<1)return!1;const t=av(n);return!(t&&e>366||!t&&e>365)}function cv(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Bh(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const I$=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function E$(n,e,t={}){e=String(e);const r=e.match(I$);if(r){const d=ov(t.originalDate||n,t);e=r.reduce(function(f,y){if(y[0]==="'")return f;const w=f.indexOf(y),h=f[w-1]==="'",p=f.replace(y,"'"+v$[y[0]](d,y,t)+"'");return h?p.substring(0,w-1)+p.substring(w+1):p},e)}return ro(n,e,t)}function R$(n,e,t){n=ov(n,t);const r=Wh(e,n,!0),d=new Date(n.getTime()-r),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}function jh(n,e,t,r){return r={...r,timeZone:e,originalDate:n},E$(R$(n,e,{timeZone:r.timeZone}),t,r)}const Uh="yyyy-MM-dd",uv="HH:mm:ss.SSS",M$="HH:mm:ss",Il=`${Uh} ${uv}`,CD=dn("P",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return ro(!e||e==="local"?r$(n,n.getTimezoneOffset()):n,Il)},formatDateTime(n,e){return!e||e==="local"?ro(n,Il):jh(n,e,Il)},formatDate:function(n,e){return!e||e==="local"?ro(n,Uh):jh(n,this.timeZone,Uh)},formatTime:function(n,e,t=uv){return!e||e==="local"?ro(n,t):jh(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,M$)},formatTimestamp(n,e){return this.formatDateTime(zS(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 L$=Object.defineProperty,O$=(n,e,t)=>e in n?L$(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Re=(n,e,t)=>O$(n,typeof e!="symbol"?e+"":e,t);function Vh(n,e,t){const r=Ut(n,t==null?void 0:t.in);return isNaN(e)?fn((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function D$(n,e){const t=Ut(n,void 0).getDay();return t===0?7:t}function N$(n,e){const t=F$(e)?new e(0):fn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function F$(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const W$=10;class hv{constructor(){Re(this,"subPriority",0)}validate(e,t){return!0}}let P$=class extends hv{constructor(e,t,r,d,f){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=d,f&&(this.subPriority=f)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},H$=class extends hv{constructor(e,t){super(),Re(this,"priority",W$),Re(this,"subPriority",-1),this.context=e||(r=>fn(t,r))}set(e,t){return t.timestampIsSet?e:fn(e,N$(e,this.context))}};class kt{run(e,t,r,d){const f=this.parse(e,t,r,d);return f?{setter:new P$(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(e,t,r){return!0}}let z$=class extends kt{constructor(){super(...arguments),Re(this,"priority",140),Re(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 an={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}/},Yr={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 ln(n,e){return n&&{value:e(n.value),rest:n.rest}}function Yt(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Kr(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,d=t[2]?parseInt(t[2],10):0,f=t[3]?parseInt(t[3],10):0,y=t[5]?parseInt(t[5],10):0;return{value:r*(d*Fc+f*Oa+y*T0),rest:e.slice(t[0].length)}}function dv(n){return Yt(an.anyDigitsSigned,n)}function Jt(n,e){switch(n){case 1:return Yt(an.singleDigit,e);case 2:return Yt(an.twoDigits,e);case 3:return Yt(an.threeDigits,e);case 4:return Yt(an.fourDigits,e);default:return Yt(new RegExp("^\\d{1,"+n+"}"),e)}}function fv(n,e){switch(n){case 1:return Yt(an.singleDigitSigned,e);case 2:return Yt(an.twoDigitsSigned,e);case 3:return Yt(an.threeDigitsSigned,e);case 4:return Yt(an.fourDigitsSigned,e);default:return Yt(new RegExp("^-?\\d{1,"+n+"}"),e)}}function qh(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 pv(n,e){const t=e>0,r=t?e:1-e;let d;if(r<=50)d=n||100;else{const f=r+50,y=Math.trunc(f/100)*100,w=n>=f%100;d=n+y-(w?100:0)}return t?d:1-d}function gv(n){return n%400===0||n%4===0&&n%100!==0}let B$=class extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const d=f=>({year:f,isTwoDigitYear:t==="yy"});switch(t){case"y":return ln(Jt(4,e),d);case"yo":return ln(r.ordinalNumber(e,{unit:"year"}),d);default:return ln(Jt(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const d=e.getFullYear();if(r.isTwoDigitYear){const y=pv(r.year,d);return e.setFullYear(y,0,1),e.setHours(0,0,0,0),e}const f=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(f,0,1),e.setHours(0,0,0,0),e}},j$=class extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const d=f=>({year:f,isTwoDigitYear:t==="YY"});switch(t){case"Y":return ln(Jt(4,e),d);case"Yo":return ln(r.ordinalNumber(e,{unit:"year"}),d);default:return ln(Jt(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,d){const f=Pc(e,d);if(r.isTwoDigitYear){const w=pv(r.year,f);return e.setFullYear(w,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Ti(e,d)}const y=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(y,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Ti(e,d)}};class U$ extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return fv(t==="R"?4:t.length,e)}set(e,t,r){const d=fn(e,0);return d.setFullYear(r,0,4),d.setHours(0,0,0,0),Wo(d)}}let V$=class extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return fv(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};class q$ extends kt{constructor(){super(...arguments),Re(this,"priority",120),Re(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 Jt(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 G$=class extends kt{constructor(){super(...arguments),Re(this,"priority",120),Re(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 Jt(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}},Y$=class extends kt{constructor(){super(...arguments),Re(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(this,"priority",110)}parse(e,t,r){const d=f=>f-1;switch(t){case"M":return ln(Yt(an.month,e),d);case"MM":return ln(Jt(2,e),d);case"Mo":return ln(r.ordinalNumber(e,{unit:"month"}),d);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}},K$=class extends kt{constructor(){super(...arguments),Re(this,"priority",110),Re(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const d=f=>f-1;switch(t){case"L":return ln(Yt(an.month,e),d);case"LL":return ln(Jt(2,e),d);case"Lo":return ln(r.ordinalNumber(e,{unit:"month"}),d);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 Q$(n,e,t){const r=Ut(n,t==null?void 0:t.in),d=If(r,t)-e;return r.setDate(r.getDate()-d*7),Ut(r,t==null?void 0:t.in)}class Z$ extends kt{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return Yt(an.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Jt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,d){return Ti(Q$(e,r,d),d)}}function X$(n,e,t){const r=Ut(n,void 0),d=Tf(r)-e;return r.setDate(r.getDate()-d*7),r}class J$ extends kt{constructor(){super(...arguments),Re(this,"priority",100),Re(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 Yt(an.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Jt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return Wo(X$(e,r))}}const eT=[31,28,31,30,31,30,31,31,30,31,30,31],tT=[31,29,31,30,31,30,31,31,30,31,30,31];class nT extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subPriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return Yt(an.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Jt(t.length,e)}}validate(e,t){const r=e.getFullYear(),d=gv(r),f=e.getMonth();return d?t>=1&&t<=tT[f]:t>=1&&t<=eT[f]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}class rT extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subpriority",1),Re(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 Yt(an.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Jt(t.length,e)}}validate(e,t){const r=e.getFullYear();return gv(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 Gh(n,e,t){var r,d,f,y;const w=Fo(),h=(t==null?void 0:t.weekStartsOn)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.weekStartsOn)??w.weekStartsOn??((y=(f=w.locale)==null?void 0:f.options)==null?void 0:y.weekStartsOn)??0,p=Ut(n,t==null?void 0:t.in),s=p.getDay(),c=(e%7+7)%7,a=7-h,l=e<0||e>6?e-(s+a)%7:(c+a)%7-(s+a)%7;return Vh(p,l,t)}let iT=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(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,d){return e=Gh(e,r,d),e.setHours(0,0,0,0),e}},oT=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,d){const f=y=>{const w=Math.floor((y-1)/7)*7;return(y+d.weekStartsOn+6)%7+w};switch(t){case"e":case"ee":return ln(Jt(t.length,e),f);case"eo":return ln(r.ordinalNumber(e,{unit:"day"}),f);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,d){return e=Gh(e,r,d),e.setHours(0,0,0,0),e}},sT=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,d){const f=y=>{const w=Math.floor((y-1)/7)*7;return(y+d.weekStartsOn+6)%7+w};switch(t){case"c":case"cc":return ln(Jt(t.length,e),f);case"co":return ln(r.ordinalNumber(e,{unit:"day"}),f);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,d){return e=Gh(e,r,d),e.setHours(0,0,0,0),e}};function aT(n,e,t){const r=Ut(n,void 0),d=D$(r),f=e-d;return Vh(r,f,t)}let lT=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const d=f=>f===0?7:f;switch(t){case"i":case"ii":return Jt(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return ln(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiii":return ln(r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiiii":return ln(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiii":default:return ln(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"}),d)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=aT(e,r),e.setHours(0,0,0,0),e}},cT=class extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(qh(r),0,0,0),e}};class uT extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(qh(r),0,0,0),e}}class hT extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(qh(r),0,0,0),e}}class dT extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return Yt(an.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Jt(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const d=e.getHours()>=12;return d&&r<12?e.setHours(r+12,0,0,0):!d&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}}class fT extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return Yt(an.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Jt(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}}class pT extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return Yt(an.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Jt(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 gT extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return Yt(an.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Jt(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const d=r<=24?r%24:r;return e.setHours(d,0,0,0),e}}let mT=class extends kt{constructor(){super(...arguments),Re(this,"priority",60),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return Yt(an.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Jt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}};class yT extends kt{constructor(){super(...arguments),Re(this,"priority",50),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return Yt(an.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Jt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}}class vT extends kt{constructor(){super(...arguments),Re(this,"priority",30),Re(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=d=>Math.trunc(d*Math.pow(10,-t.length+3));return ln(Jt(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}}class wT extends kt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Kr(Yr.basicOptionalMinutes,e);case"XX":return Kr(Yr.basic,e);case"XXXX":return Kr(Yr.basicOptionalSeconds,e);case"XXXXX":return Kr(Yr.extendedOptionalSeconds,e);case"XXX":default:return Kr(Yr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:fn(e,e.getTime()-Da(e)-r)}}let bT=class extends kt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Kr(Yr.basicOptionalMinutes,e);case"xx":return Kr(Yr.basic,e);case"xxxx":return Kr(Yr.basicOptionalSeconds,e);case"xxxxx":return Kr(Yr.extendedOptionalSeconds,e);case"xxx":default:return Kr(Yr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:fn(e,e.getTime()-Da(e)-r)}};class xT extends kt{constructor(){super(...arguments),Re(this,"priority",40),Re(this,"incompatibleTokens","*")}parse(e){return dv(e)}set(e,t,r){return[fn(e,r*1e3),{timestampIsSet:!0}]}}class AT extends kt{constructor(){super(...arguments),Re(this,"priority",20),Re(this,"incompatibleTokens","*")}parse(e){return dv(e)}set(e,t,r){return[fn(e,r),{timestampIsSet:!0}]}}const CT={G:new z$,y:new B$,Y:new j$,R:new U$,u:new V$,Q:new q$,q:new G$,M:new Y$,L:new K$,w:new Z$,I:new J$,d:new nT,D:new rT,E:new iT,e:new oT,c:new sT,i:new lT,a:new cT,b:new uT,B:new hT,h:new dT,H:new fT,K:new pT,k:new gT,m:new mT,s:new yT,S:new vT,X:new wT,x:new bT,t:new xT,T:new AT},kT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ST=/^'([^]*?)'?$/,$T=/''/g,TT=/\S/,IT=/[a-zA-Z]/;function ET(n,e,t,r){var d,f,y,w;const h=()=>fn(t,NaN),p=Yy(),s=p.locale??$f,c=p.firstWeekContainsDate??((f=(d=p.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,a=p.weekStartsOn??((w=(y=p.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??0;if(!e)return n?h():Ut(t,void 0);const l={firstWeekContainsDate:c,weekStartsOn:a,locale:s},o=[new H$(void 0,t)],u=e.match(_T).map($=>{const C=$[0];if(C in Hc){const x=Hc[C];return x($,s.formatLong)}return $}).join("").match(kT),m=[];for(let $ of u){Nf($)&&zc($,e,n),Df($)&&zc($,e,n);const C=$[0],x=CT[C];if(x){const{incompatibleTokens:T}=x;if(Array.isArray(T)){const L=m.find(I=>T.includes(I.token)||I.token===C);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${$}\` at the same time`)}else if(x.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);m.push({token:C,fullToken:$});const E=x.run(n,$,s.match,l);if(!E)return h();o.push(E.setter),n=E.rest}else{if(C.match(IT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if($==="''"?$="'":C==="'"&&($=RT($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&TT.test(n))return h();const v=o.map($=>$.priority).sort(($,C)=>C-$).filter(($,C,x)=>x.indexOf($)===C).map($=>o.filter(C=>C.priority===$).sort((C,x)=>x.subPriority-C.subPriority)).map($=>$[0]);let b=Ut(t,void 0);if(isNaN(+b))return h();const R={};for(const $ of v){if(!$.validate(b,l))return h();const C=$.set(b,R,l);Array.isArray(C)?(b=C[0],Object.assign(R,C[1])):b=C}return b}function RT(n){return n.match(ST)[1].replace($T,"'")}const MT={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function LT(n,e,t,r,d,f){const y=Ie("rux-icon");return At(),on(y,{size:t.size,icon:t.icon,style:No(f.colorStyle)},null,8,["size","icon","style"])}const OT=ci(MT,[["render",LT],["__scopeId","data-v-9af48e85"]]),DT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",NT={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return DT},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=HT.indexOf(mv[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,d=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*d}px;`,`background-size: ${t}px ${r}px;`,`height: ${d}px;`,`width: ${d}px;`,`padding-top: ${n-1}px;`].join("")}}};function FT(n,e,t,r,d,f){return At(),Er("div",{style:No(f.iconStyle)},null,4)}const WT=ci(NT,[["render",FT]]),mv={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"},Yh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},PT=function(n){const e="#000000",t="#ffffff",r=Yh[mv[n]];if(r){const d=+`0x${r.slice(1,3)}`,f=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((d*299+f*587+y*114)/1e3>128)return e}return t},HT=Object.keys(Yh),zT={astro:{component:n=>_s(OT,{...n})},"astro-status":{component:n=>_s(WT,{...n,status:n.icon})}};class BT{constructor(){Vr.get("/openc3-api/autocomplete/data/screen").then(e=>{this.autocompleteData=e.data}),this.api=new fu}async getCompletions(e,t,r,d,f){var y=t.getLine(r.row),w=y.slice(0,r.column),h=w.trimStart().split(/ (?![^<]*>)/),p=this.autocompleteData;h.length>1&&(p=p.find(v=>v.caption===h[0]));var s={},c=!0;if(p&&p.params){p.params.length==h.length-1&&(c=!1);var a=p.params[h.length-2];if(a["Target name"]){var l=await this.api.get_target_names();p=l.reduce((v,b)=>(v[b]=1,v),{})}else if(a["Packet name"]){var o=h[h.length-2],u=await this.api.get_all_tlm(o);p=u.reduce((v,b)=>(v[b.packet_name]=b.description,v),{})}else if(a["Item name"]){var o=h[h.length-3],m=h[h.length-2],m=await this.api.get_tlm(o,m);p=m.items.reduce((b,R)=>(b[R.name]=R.description,b),{})}else p=a;s=Object.keys(p||{}).map(v=>{var b={value:v+(c?" ":""),command:c&&"startAutocomplete"};return typeof p[v]=="string"&&(b.meta=p[v]),b})}else s=p;f(null,s)}}const jT={props:{modelValue:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null,docsKeyword:"",contextMenu:!1,menuX:0,menuY:0}},computed:{editErrors:function(){if(this.definition===""&&!this.file)return["Input can not be blank."];if(this.errors.length!==0){let n=new Set,e=[];const t=this.errors.toSorted((r,d)=>r.lineNumber-d.lineNumber);for(const r of t){let d=`At ${r.lineNumber}: (${r.line}) ${r.message}.`;r.usage&&(d+=` Usage: ${r.usage}`),e.push(d),n.add(r.message)}return e}return[]},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted:function(){this.editor=Fa.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const n=this.buildScreenMode();this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new BT],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeUnmount(){this.editor.destroy(),this.editor.container.remove()},methods:{showContextMenu:function(n){this.menuX=n.pageX,this.menuY=n.pageY;let e=this.editor.getCursorPosition(),t=this.editor.session.getTokenAt(e.row,e.column);if(t){let r=t.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){let n=Fa.require("ace/lib/oop"),e=Fa.require("ace/mode/text_highlight_rules").TextHighlightRules,t=this.keywords.join("|"),r=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${t})\\b`)}]},this.normalizeRules()};n.inherits(r,e);let d=function(){this.HighlightRules=r},f=Fa.require("ace/mode/text").Mode;return n.inherits(d,f),(function(){this.$id="ace/mode/openc3"}).call(d.prototype),d},downloadScreen:function(){const n=new Blob([this.editor.getValue()],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(n),e.setAttribute("download",`${this.screen.toLowerCase()}.txt`),e.click()},loadFile:function(){const n=new FileReader;n.readAsText(this.file);const e=this;n.onload=function(){e.editor.setValue(n.result),e.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.$emit("delete")})}}},UT={class:"mx-2"},VT={class:"mx-2"},qT=["textContent"];function GT(n,e,t,r,d,f){const y=Ie("v-icon"),w=Ie("v-tooltip"),h=Ie("v-spacer"),p=Ie("v-toolbar"),s=Ie("v-row"),c=Ie("v-btn"),a=Ie("v-file-input"),l=Ie("v-list-item-title"),o=Ie("v-list-item"),u=Ie("v-list"),m=Ie("v-menu"),v=Ie("v-card-text"),b=Ie("v-card"),R=Ie("v-dialog");return At(),on(R,{persistent:"",modelValue:f.show,"onUpdate:modelValue":e[5]||(e[5]=$=>f.show=$),width:"75vw"},{default:xe(()=>[me(b,null,{default:xe(()=>[me(p,{height:"24"},{default:xe(()=>[ot("div",UT,[me(w,{location:"top"},{activator:xe(({props:$})=>[ot("div",zr(Br($)),[me(y,{"data-test":"delete-screen-icon",onClick:f.deleteScreen},{default:xe(()=>e[6]||(e[6]=[bt(" mdi-delete ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[e[7]||(e[7]=ot("span",null," Delete Screen ",-1))]),_:1})]),me(h),ot("span",null," Edit Screen: "+Lt(t.target)+" "+Lt(t.screen),1),me(h),ot("div",VT,[me(w,{location:"top"},{activator:xe(({props:$})=>[ot("div",zr(Br($)),[me(y,{"data-test":"download-screen-icon",onClick:f.downloadScreen},{default:xe(()=>e[8]||(e[8]=[bt(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[e[9]||(e[9]=ot("span",null," Download Screen ",-1))]),_:1})])]),_:1}),me(v,{style:{"max-height":"90vh"}},{default:xe(()=>[me(s,{class:"mt-3"},{default:xe(()=>e[10]||(e[10]=[bt(" Upload a screen file. ")])),_:1}),me(s,{"no-gutters":"",align:"center"},{default:xe(()=>[me(c,{onClick:f.loadFile,disabled:!d.file,color:"primary",class:"mr-3","data-test":"edit-screen-load"},{default:xe(()=>e[11]||(e[11]=[bt(" Load ")])),_:1},8,["onClick","disabled"]),me(a,{modelValue:d.file,"onUpdate:modelValue":e[0]||(e[0]=$=>d.file=$),"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},null,8,["modelValue"])]),_:1}),me(s,{class:"mb-2"},{default:xe(()=>e[12]||(e[12]=[bt(" Edit the screen definition. ")])),_:1}),me(s,{class:"mb-2"},{default:xe(()=>[ot("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=Ji((...$)=>f.showContextMenu&&f.showContextMenu(...$),["prevent"]))},null,544),me(m,{modelValue:d.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=$=>d.contextMenu=$),target:[d.menuX,d.menuY]},{default:xe(()=>[me(u,null,{default:xe(()=>[me(o,{link:""},{default:xe(()=>[me(l,{onClick:f.openDocumentation},{default:xe(()=>[bt(Lt(d.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),me(s,{style:{"max-height":"120px","overflow-y":"auto"}},{default:xe(()=>[(At(!0),Er(sf,null,af(f.editErrors,($,C)=>(At(),Er("div",{key:C},[ot("span",{class:"text-red",textContent:Lt($)},null,8,qT)]))),128))]),_:1}),me(s,{class:"mt-5"},{default:xe(()=>[e[15]||(e[15]=ot("span",null,"Ctrl-space brings up autocomplete. Right click keywords for documentation.",-1)),me(h),me(c,{onClick:e[3]||(e[3]=$=>n.$emit("cancel")),class:"mx-2",variant:"outlined","data-test":"edit-screen-cancel"},{default:xe(()=>e[13]||(e[13]=[bt(" Cancel ")])),_:1}),me(c,{onClick:e[4]||(e[4]=$=>n.$emit("save",n.editor.getValue())),class:"mx-2",color:"primary","data-test":"edit-screen-save"},{default:xe(()=>e[14]||(e[14]=[bt(" Save ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const YT=ci(jT,[["render",GT],["__scopeId","data-v-9c6e250e"]]),KT={props:{modelValue:Boolean},data(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){this.update()},methods:{alertHandler:function(n){this.alert=n.text,this.alertType=n.type,this.showAlert=!0},update:function(){Vr.get("/openc3-api/environment").then(n=>{this.environment=n.data}).catch(n=>{})},addEnvironment:function(){Vr.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then(n=>{`${n.data.name}`,this.update()}).catch(n=>{const e={text:`Failed to add environment variable: ${n}`,type:"error"};this.alertHandler(e)}),this.key="",this.keyValue=""},deleteEnvironment:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.key}=${n.value}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>Vr.delete(`/openc3-api/environment/${n.name}`)).then(e=>{const t={text:`Removed environment variable: ${n.name}`,type:"success"};this.alertHandler(t),this.update()}).catch(e=>{const t={text:`Failed to delete environment: ${e}`,type:"error"};this.alertHandler(t)})}}},QT={class:"pa-3"};function ZT(n,e,t,r,d,f){const y=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-text-field"),p=Ie("v-row"),s=Ie("v-icon"),c=Ie("v-btn"),a=Ie("v-data-table"),l=Ie("v-col"),o=Ie("v-card-text"),u=Ie("v-card"),m=Ie("v-dialog");return At(),on(m,{modelValue:f.show,"onUpdate:modelValue":e[4]||(e[4]=v=>f.show=v),width:"600"},{default:xe(()=>[me(u,null,{default:xe(()=>[ot("form",{onSubmit:e[3]||(e[3]=Ji((...v)=>f.addEnvironment&&f.addEnvironment(...v),["prevent"]))},[me(w,{height:"24"},{default:xe(()=>[me(y),e[5]||(e[5]=ot("span",null,"Global Environment Variables",-1)),me(y)]),_:1}),me(o,null,{default:xe(()=>[ot("div",QT,[me(p,{dense:"",class:"mb-2"},{default:xe(()=>[me(h,{modelValue:d.search,"onUpdate:modelValue":e[0]||(e[0]=v=>d.search=v),label:"search",type:"text","data-test":"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":""},null,8,["modelValue"])]),_:1}),me(a,{"item-key":"name","hide-default-header":"","data-test":"env-table",search:d.search,headers:d.headers,items:d.environment,"items-per-page":5,"items-per-page-options":[5]},{"item.actions":xe(({item:v})=>[me(c,{onClick:b=>f.deleteEnvironment(v),icon:"",class:"mt-1","data-test":"item-delete"},{default:xe(()=>[me(s,null,{default:xe(()=>e[6]||(e[6]=[bt("mdi-delete")])),_:1})]),_:2},1032,["onClick"])]),_:1},8,["search","headers","items"]),me(p,{dense:""},{default:xe(()=>[me(l,null,{default:xe(()=>[me(h,{modelValue:d.key,"onUpdate:modelValue":e[1]||(e[1]=v=>d.key=v),label:"Key","data-test":"env-key"},null,8,["modelValue"])]),_:1}),me(l,null,{default:xe(()=>[me(h,{modelValue:d.keyValue,"onUpdate:modelValue":e[2]||(e[2]=v=>d.keyValue=v),label:"Value","data-test":"env-value"},null,8,["modelValue"])]),_:1})]),_:1}),me(p,{dense:""},{default:xe(()=>[me(c,{onClick:Ji(f.addEnvironment,["prevent"]),block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!d.key||!d.keyValue},{default:xe(()=>e[7]||(e[7]=[bt(" Add ")])),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const kD=dn("q",ci(KT,[["render",ZT]])),XT={props:{type:{type:String,required:!0,validator:function(n){return["open","save"].indexOf(n)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let n=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(n+="be in a target directory and "),n+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
|
1417
|
+
|
1418
|
+
For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,n}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const n="0-9a-zA-Z";let e=`[${`${n}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${n}]+`;return this.requireTargetParentDir&&(e=`\\/?${`(${this.targets.join("|")})`}\\/${e}`),new RegExp(e)}},created(){this.loadFiles(),this.requireTargetParentDir&&Vr.get("/openc3-api/targets").then(n=>{this.targets=n.data,this.targets.push("__TEMP__")})},methods:{calcIcon:function(n){return PS(n)},loadFiles:function(){Vr.get(this.apiUrl).then(n=>{this.items=[],this.id=1;for(let e of n.data)this.filepath=e,this.insertFile(this.items,1,e),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1}).catch(n=>{this.$emit("error",`Failed to connect to OpenC3. ${n}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(n){n.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,n[0]),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(n,e){for(let t of n){if(t.id===e)return t.path;if(t.children){const r=this.findItem(t.children,e);if(r)return r}}return null},exists:function(n,e){let t=!1;for(let r of n){if(r.path===e||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===e)return!0;r.children&&(t=t||this.exists(r.children,e))}return t},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(n=>Vr.delete("/script-api/scripts/temp_files")).then(n=>{this.$emit("clear-temp"),this.loadFiles()}).catch(n=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${n}`})})},openSuccess:function(){this.disableButtons=!0,Vr.get(`${this.apiUrl}/${this.selectedFile}`).then(n=>{const e={name:this.selectedFile,contents:n.data.contents};n.data.suites&&(e.suites=JSON.parse(n.data.suites)),n.data.error&&(e.error=n.data.error),n.data.success&&(e.success=n.data.success);const t=n.data.locked,r=n.data.breakpoints;this.$emit("file",{file:e,locked:t,breakpoints:r}),this.clear()}).catch(n=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${n}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(n=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(n=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,e,t){let r=t.split("/");if(r.length===1){n.push({id:this.id,title:r[0],file:"ruby",path:this.filepath}),this.id++;return}const d=n.findIndex(f=>f.title===r[0]);d===-1?(n.push({id:this.id,title:r[0],children:[],path:this.filepath.split("/").slice(0,e).join("/")}),this.id++,this.insertFile(n[n.length-1].children,e+1,r.slice(1).join("/"))):this.insertFile(n[d].children,e+1,r.slice(1).join("/"))}}},JT={class:"pa-3"};function eI(n,e,t,r,d,f){const y=Ie("v-progress-circular"),w=Ie("v-overlay"),h=Ie("v-spacer"),p=Ie("v-toolbar"),s=Ie("v-row"),c=Ie("v-text-field"),a=Ie("v-icon"),l=Ie("v-btn"),o=Ie("v-treeview"),u=Ie("v-card-text"),m=Ie("v-card"),v=Ie("v-dialog");return At(),on(v,{modelValue:f.show,"onUpdate:modelValue":e[5]||(e[5]=b=>f.show=b),width:"600",scrollable:"",onKeydown:e[6]||(e[6]=of(b=>f.success(),["enter"]))},{default:xe(()=>[me(m,null,{default:xe(()=>[me(w,{"model-value":d.loading},{default:xe(()=>[me(y,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),ot("form",{onSubmit:e[4]||(e[4]=Ji((...b)=>f.success&&f.success(...b),["prevent"]))},[me(p,{height:"24"},{default:xe(()=>[me(h),ot("span",null,Lt(f.title),1),me(h)]),_:1}),me(u,null,{default:xe(()=>[ot("div",JT,[me(s,null,{default:xe(()=>[bt(Lt(f.helpText),1)]),_:1}),me(s,{dense:"",class:"mt-5"},{default:xe(()=>[me(c,{modelValue:d.search,"onUpdate:modelValue":e[0]||(e[0]=b=>d.search=b),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),me(s,{dense:"",class:"mt-2"},{default:xe(()=>[me(o,{modelValue:d.tree,"onUpdate:modelValue":e[1]||(e[1]=b=>d.tree=b),"onUpdate:activated":f.activeFile,density:"compact",activatable:"",ref:"tree",style:{width:"100%","max-height":"60vh",overflow:"auto"},"item-value":"id",items:d.items,search:d.search,"open-on-click":t.type==="open","open-all":!!d.search},{prepend:xe(({item:b,open:R})=>[b.file?(At(),on(a,{key:1},{default:xe(()=>[bt(Lt(f.calcIcon(b.title)),1)]),_:2},1024)):(At(),on(a,{key:0},{default:xe(()=>[bt(Lt(R?"mdi-folder-open":"mdi-folder"),1)]),_:2},1024))]),append:xe(({item:b})=>[b.title==="__TEMP__"?(At(),on(l,{key:0,icon:"",onClick:f.deleteTemp},{default:xe(()=>[me(a,null,{default:xe(()=>e[7]||(e[7]=[bt(" mdi-delete ")])),_:1})]),_:1},8,["onClick"])):Vn("",!0)]),_:1},8,["modelValue","onUpdate:activated","items","search","open-on-click","open-all"])]),_:1}),me(s,{class:"my-2"},{default:xe(()=>[me(c,{modelValue:d.selectedFile,"onUpdate:modelValue":e[2]||(e[2]=b=>d.selectedFile=b),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:t.type==="open"},null,8,["modelValue","disabled"])]),_:1}),me(s,{dense:""},{default:xe(()=>[ai(ot("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},Lt(f.error),513),[[li,f.error]])]),_:1}),me(s,{class:"mt-2"},{default:xe(()=>[me(h),me(l,{onClick:e[3]||(e[3]=b=>f.show=!1),variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:d.disableButtons},{default:xe(()=>e[8]||(e[8]=[bt(" Cancel ")])),_:1},8,["disabled"]),me(l,{onClick:Ji(f.success,["prevent"]),ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:d.disableButtons||!!f.error},{default:xe(()=>[bt(Lt(f.submit),1)]),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const _D=dn("J",ci(XT,[["render",eI]])),yv="single-spa:app-change",tI={data(){return{show:!1}},created(){window.addEventListener(yv,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=vf().length===0},150)},unmounted(){window.removeEventListener(yv,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},nI={class:"mx-1"};function rI(n,e,t,r,d,f){const y=Ie("v-card-title"),w=Ie("v-card-text"),h=Ie("v-card");return d.show?(At(),on(h,{key:0},{default:xe(()=>[me(y,null,{default:xe(()=>e[0]||(e[0]=[bt(" 404 Not Found ")])),_:1}),me(w,{class:"d-flex align-center mt-3"},{default:xe(()=>[e[1]||(e[1]=bt(" The requested URL ")),ot("code",nI,Lt(n.$route.fullPath),1),e[2]||(e[2]=bt(" was not routable. ")),e[3]||(e[3]=ot("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Vn("",!0)}const iI=ci(tI,[["render",rI]]),Kh=20,oI={mixins:[l_],components:{EditScreenDialog:YT},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0},timeZone:{type:String,default:"local"}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0,screenId:rg.uniqueId("openc3-screen_")}},watch:{count:{handler(n,e){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let n=new Set,e="";for(const t of this.errors){if(n.has(t.message))continue;let r=`${t.time}: (${t.type}) ${t.message}
|
1419
|
+
`;e+=r,n.add(t.message)}return e}return null},computedStyle(){var n;let e={};const t=this.width||((n=this.$refs.bar)==null?void 0:n.clientWidth);return this.floated&&(e.position="absolute",e.top=this.top+"px",e.left=this.left+"px",e.width=t+"px"),e}},errorCaptured(n,e,t){return console.log({err:n,vm:e,info:t}),this.errors.length<Kh&&(console.log({errors:this.errors}),n.usage?this.errors.push({type:"usage",message:n.message,usage:n.usage,line:n.line,lineNumber:n.lineNumber,time:new Date().getTime()}):this.errors.push({type:"error",message:n,time:new Date().getTime()}),this.configError=!0),!1},created(){this.api=new fu,this.configParser=new V1,this.parseDefinition(),this.screenKey=Math.floor(Math.random()*1e6)},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},unmounted(){this.updater!=null&&(clearInterval(this.updater),this.updater=null)},methods:{open(n,e){this.$parent.showScreen(n,e)},close(n,e){this.$parent.closeScreenByName(n,e)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let n=this.pollingPeriod*1e3;this.updater&&clearInterval(this.updater),this.updater=setInterval(()=>{this.update()},n)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,(n,e,t,r)=>{if(n)switch(n){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${n} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(e[0]),this.height=parseInt(e[1]),this.pollingPeriod=parseFloat(e[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${n}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${n} <Time (s)>`),this.staleTime=parseInt(e[0]);break;case"SETTING":case"SUBSETTING":(this.currentLayout.widgets[this.currentLayout.widgets.length-1]??this.currentLayout).settings.push(e);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(e);break;default:this.processWidget(n,e,t,r);break}}),typeof this.layoutStack[0]>"u"){let n=[],e=[];for(const t of this.dynamicWidgets)n.push(t.name),e.push(t.lineNumber);this.errors.length<Kh&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${n.join(",")}?`,lineNumber:e.join(","),time:new Date().getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let n=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),e=this.$refs.bar.getBoundingClientRect();this.top=e.top-n.top-5,this.left=e.left-n.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(n){n=n||window.event,n.preventDefault(),this.dragX=n.clientX,this.dragY=n.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(n){n=n||window.event,n.preventDefault();let e=this.dragX-n.clientX,t=this.dragY-n.clientY;this.dragX=n.clientX,this.dragY=n.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-e,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(Math.random()*1e6),this.$nextTick(function(){this.clearErrors(),this.$emit("edit-screen")})},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(n){this.editDialog=!1,this.currentDefinition=n,this.rerender(),this.$nextTick(function(){Vr.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)})},deleteScreen:function(){this.editDialog=!1,Vr.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then(n=>{this.$emit("delete-screen")})},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(n,e,t,r){let d=null;n==="NAMED_WIDGET"&&(this.configParser.verify_num_parameters(2,null,`${n} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),d=e[0].toUpperCase(),n=e[1].toUpperCase(),e=e.slice(2,e.length));const f=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()+"Widget";let y=[];if(y.push(["__SCREEN_ID__",this.screenId]),d!==null&&y.push(["NAMED_WIDGET",d]),n==="VERTICAL"||n==="VERTICALBOX"||n==="HORIZONTAL"||n==="HORIZONTALBOX"||n==="MATRIXBYCOLUMNS"||n==="TABBOOK"||n==="TABITEM"||n==="CANVAS"||n==="RADIOGROUP"||n==="SCROLLWINDOW"){const w={type:f,parameters:e,settings:y,screenValues:this.screenValues,screenTimeZone:this.timeZone,widgets:[]};this.layoutStack.push(w),this.currentLayout.widgets.push(w),this.currentLayout=w}else if(this.$options.components[f])this.currentLayout.widgets.push({type:f,target:this.target,parameters:e,settings:y,screenValues:this.screenValues,screenTimeZone:this.timeZone,line:t,lineNumber:r});else{let w={type:"DynamicWidget",target:this.target,parameters:e,settings:y,screenValues:this.screenValues,screenTimeZone:this.timeZone,name:f,line:t,lineNumber:r};this.currentLayout.widgets.push(w),this.dynamicWidgets.push(w)}},applyGlobalSettings:function(n){n.forEach(e=>{this.globalSettings.forEach(t=>{e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1))}),e.widgets&&this.applyGlobalSettings(e.widgets)})},update:function(){this.screenItems.length!==0&&this.configError===!1&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then(n=>{this.clearErrors(),this.updateValues(n)}).catch(n=>{let e=JSON.stringify(n,null,2);e.includes("no response received")||(this.configError=!0),this.errors.find(t=>t.message===e)||this.errors.length<Kh&&this.errors.push({type:"error",message:e,time:new Date().getTime()})})},updateValues:function(n){this.updateCounter+=1;for(let e=0;e<n.length;e++)n[e].push(this.updateCounter),this.screenValues[this.screenItems[e]]=n[e]},addItem:function(n){this.screenItems.push(n),this.screenValues[n]=[null,null,0]},deleteItem:function(n){let e=this.screenItems.indexOf(n);this.screenItems.splice(e,1)}}},sI={class:"pa-1",style:{position:"relative"},ref:"screen"};function aI(n,e,t,r,d,f){const y=Ie("v-icon"),w=Ie("v-tooltip"),h=Ie("v-spacer"),p=Ie("v-toolbar"),s=Ie("v-overlay"),c=Ie("vertical-widget"),a=Ie("v-expand-transition"),l=Ie("v-card"),o=Ie("edit-screen-dialog"),u=Ie("v-textarea"),m=Ie("v-dialog");return At(),Er("div",{style:No(f.computedStyle),ref:"bar"},[me(l,{"min-height":d.height,"min-width":d.width,style:{cursor:"default"}},{default:xe(()=>[me(p,{height:"24"},{default:xe(()=>[ai(ot("div",null,[me(w,{location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"error-graph-icon",onClick:e[0]||(e[0]=b=>d.errorDialog=!0)},{default:xe(()=>e[7]||(e[7]=[bt(" mdi-alert ")])),_:1})],16)]),default:xe(()=>[e[8]||(e[8]=ot("span",null," Errors ",-1))]),_:1})],512),[[li,d.errors.length!==0]]),me(w,{location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"edit-screen-icon",onClick:f.openEdit},{default:xe(()=>e[9]||(e[9]=[bt(" mdi-pencil ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[e[10]||(e[10]=ot("span",null," Edit Screen ",-1))]),_:1}),t.fixFloated?Vn("",!0):(At(),on(w,{key:0,location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"float-screen-icon",onClick:f.floatScreen},{default:xe(()=>[bt(Lt(d.floated?"mdi-balloon":"mdi-view-grid-outline"),1)]),_:1},8,["onClick"])],16)]),default:xe(()=>[ot("span",null,Lt(d.floated?"Unfloat Screen":"Float Screen"),1)]),_:1})),d.floated?(At(),on(w,{key:1,location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"up-screen-icon",onClick:f.upScreen},{default:xe(()=>e[11]||(e[11]=[bt(" mdi-arrow-up ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[e[12]||(e[12]=ot("span",null," Move Screen Up ",-1))]),_:1})):Vn("",!0),d.floated&&d.zIndex>t.minZ?(At(),on(w,{key:2,location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"down-screen-icon",onClick:f.downScreen},{default:xe(()=>e[13]||(e[13]=[bt(" mdi-arrow-down ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[e[14]||(e[14]=ot("span",null," Move Screen Down ",-1))]),_:1})):Vn("",!0),me(h),ot("span",null,Lt(t.target)+" "+Lt(t.screen),1),me(h),me(w,{location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[ai(me(y,{"data-test":"minimize-screen-icon",onClick:f.minMaxTransition},{default:xe(()=>e[15]||(e[15]=[bt(" mdi-window-minimize ")])),_:1},8,["onClick"]),[[li,d.expand]]),ai(me(y,{"data-test":"maximize-screen-icon",onClick:f.minMaxTransition},{default:xe(()=>e[16]||(e[16]=[bt(" mdi-window-maximize ")])),_:1},8,["onClick"]),[[li,!d.expand]])],16)]),default:xe(()=>[ai(ot("span",null," Minimize Screen ",512),[[li,d.expand]]),ai(ot("span",null," Maximize Screen ",512),[[li,!d.expand]])]),_:1}),t.showClose?(At(),on(w,{key:3,location:"top"},{activator:xe(({props:v})=>[ot("div",zr(Br(v)),[me(y,{"data-test":"close-screen-icon",onClick:e[1]||(e[1]=b=>n.$emit("close-screen"))},{default:xe(()=>e[17]||(e[17]=[bt(" mdi-close-box ")])),_:1})],16)]),default:xe(()=>[e[18]||(e[18]=ot("span",null," Close Screen ",-1))]),_:1})):Vn("",!0)]),_:1}),d.editDialog?Vn("",!0):(At(),on(a,{key:0},{default:xe(()=>[ai(ot("div",sI,[me(s,{style:{"pointer-events":"none"},"model-value":d.errors.length!==0,opacity:"0.8",absolute:"",attach:""},null,8,["model-value"]),(At(),on(c,{key:d.screenKey,widgets:d.layoutStack[0].widgets,"screen-values":d.screenValues,"screen-time-zone":t.timeZone,onAddItem:f.addItem,onDeleteItem:f.deleteItem,onOpen:f.open,onClose:f.close,onCloseAll:f.closeAll},null,8,["widgets","screen-values","screen-time-zone","onAddItem","onDeleteItem","onOpen","onClose","onCloseAll"]))],512),[[li,d.expand]])]),_:1}))]),_:1},8,["min-height","min-width"]),d.editDialog?(At(),on(o,{key:0,modelValue:d.editDialog,"onUpdate:modelValue":e[2]||(e[2]=v=>d.editDialog=v),target:t.target,screen:t.screen,definition:d.currentDefinition,keywords:t.keywords,errors:d.errors,onSave:e[3]||(e[3]=v=>f.saveEdit(v)),onCancel:e[4]||(e[4]=v=>f.cancelEdit()),onDelete:e[5]||(e[5]=v=>f.deleteScreen())},null,8,["modelValue","target","screen","definition","keywords","errors"])):Vn("",!0),me(m,{modelValue:d.errorDialog,"onUpdate:modelValue":e[6]||(e[6]=v=>d.errorDialog=v),width:"60vw"},{default:xe(()=>[me(p,{height:"24"},{default:xe(()=>[me(h),ot("span",null," Screen: "+Lt(t.target)+" "+Lt(t.screen)+" Errors ",1),me(h)]),_:1}),me(l,null,{default:xe(()=>[me(u,{class:"errors",readonly:"",rows:"13","model-value":f.error},null,8,["model-value"])]),_:1})]),_:1},8,["modelValue"])],4)}const SD=dn("e",ci(oI,[["render",aI],["__scopeId","data-v-8975e347"]])),vv=[{path:"/:id?",name:"ScriptRunner",component:()=>Ne(()=>De.import("./ScriptRunner-9cfa2fbbc410498eeb86.js"),void 0)},{path:"/:pathMatch(.)*",name:"NotFound",component:iI}];vv.forEach(Af);const lI=mf({history:yf(),routes:vv}),cI={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"}},uI={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)}}},hI=["innerHTML"],dI={key:2},fI={key:3,class:"validate mt-4"};function pI(n,e,t,r,d,f){const y=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-icon"),p=Ie("v-text-field"),s=Ie("v-card-text"),c=Ie("v-btn"),a=Ie("v-card-actions"),l=Ie("v-card"),o=Ie("v-dialog"),u=Ie("v-app");return At(),on(u,null,{default:xe(()=>[me(o,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=m=>n.show=m),width:"600"},{default:xe(()=>[me(l,null,{default:xe(()=>[me(w,{height:"24"},{default:xe(()=>[me(y),ot("span",null,Lt(n.params.title),1),me(y)]),_:1}),me(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(At(),on(h,{key:0,class:"mr-2"},{default:xe(()=>e[2]||(e[2]=[bt(" mdi-alert ")])),_:1})):Vn("",!0),n.params.html?(At(),Er("span",{key:1,innerHTML:n.params.text},null,8,hI)):(At(),Er("span",dI,Lt(n.params.text),1)),n.params.validateText?(At(),Er("div",fI,[bt(" Enter "+Lt(n.params.validateText)+" to confirm! ",1),me(p,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=m=>n.validationText=m),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Vn("",!0)]),_:1}),me(a,{class:"px-2"},{default:xe(()=>[me(y),n.params.cancelText?(At(),on(c,{key:0,variant:"outlined","data-test":f.dataTestCancel,onClick:f.cancel},{default:xe(()=>[bt(Lt(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Vn("",!0),me(c,{variant:"flat",color:n.params.okClass,"data-test":f.dataTestOk,onClick:f.ok},{default:xe(()=>[bt(Lt(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const gI=ci(uI,[["render",pI],["__scopeId","data-v-581c0293"]]);class mI{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(gI);e.use(Zh);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:d,validateText:f,cancelText:y,html:w}){return this.mount(),new Promise((h,p)=>{this.$root.dialog({title:e,text:t,okText:r,okClass:d,validateText:f,cancelText:y,html:w},h,p)})}confirm(e,{okText:t="Ok",cancelText:r="Cancel",okClass:d="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:d,validateText:null,cancelText:r,html:!1})}alert(e,{okText:t="Ok",html:r=!1,okClass:d="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:d,validateText:null,cancelText:null,html:r})}validate(e,{okText:t="Ok",validateText:r="CONFIRM",cancelText:d="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:f,validateText:r,cancelText:d,html:!1})}}const yI={install(n,e){const t=new mI;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},vI={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`
|
1420
|
+
--toast-bg-color:${Yh[this.toastNotification.level]};
|
1421
|
+
--toast-fg-color:${PT(this.toastNotification.level)};
|
1422
|
+
`},contentStyle:function(){return`
|
1423
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
1424
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
1425
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1426
|
+
`}},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}}},wI={key:0,class:"text-subtitle-1 mr-1 notification-text"},bI={key:1,class:"text-body-2 notification-text"},xI={key:2,class:"text-body-2 notification-text"};function AI(n,e,t,r,d,f){const y=Ie("v-icon"),w=Ie("v-spacer"),h=Ie("v-btn"),p=Ie("v-sheet"),s=Ie("v-slide-y-transition");return At(),on(s,null,{default:xe(()=>[ai(me(p,{style:No(f.toastStyle),class:"toast-notification",onClick:f.expand},{default:xe(()=>[me(y,{class:"mr-1 notification-text"},{default:xe(()=>[bt(Lt(f.toastNotificationIcon),1)]),_:1}),ot("div",{class:"toast-content",style:No(f.contentStyle)},[n.toastNotification.title?(At(),Er("span",wI,Lt(n.toastNotification.title)+": ",1)):Vn("",!0),n.toastNotification.body?(At(),Er("span",bI,Lt(n.toastNotification.body),1)):Vn("",!0),n.toastNotification.message?(At(),Er("span",xI,Lt(n.toastNotification.message),1)):Vn("",!0)],4),me(w),me(h,{variant:"text",onClick:Ji(f.hide,["stop"]),class:"notification-text"},{default:xe(()=>e[0]||(e[0]=[bt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[li,n.showToast]])]),_:1})}const CI=ci(vI,[["render",AI],["__scopeId","data-v-b0459ba8"]]);class kI{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=Nc(CI);e.use(Zh);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:d,level:f,duration:y,type:w="alert",logToConsole:h=!1,saveToHistory:p=!0}){this.mount(),h&&console.log(d?`${f.toUpperCase()} - ${d}`:`${f.toUpperCase()} - ${t}: ${r}`),p&&this.$store.commit("notifyAddHistory",{title:t,body:r,message:d,level:f}),this[e]({title:t,body:r,message:d,level:f,duration:y,type:w})}toast({title:e,body:t,message:r,level:d,duration:f,type:y}){this.$root.toast({title:e,body:t,message:r,level:d,type:y},f)}critical({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"critical",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"serious",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}caution({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"caution",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}WARN(e){this.caution(e)}normal({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"normal",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"standby",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}off({title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w}){this.open({method:"toast",level:"off",title:e,body:t,message:r,type:d,duration:f,logToConsole:y,saveToHistory:w})}}const _I={install(n,e){const t=new kI(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},wv=100,bv=wf({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory:(n,e)=>{n.notifyHistory.length>=wv&&(n.notifyHistory.length=wv-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 xv(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function SI(n,e){const t={};for(const r of e)Object.hasOwn(n,r)&&(t[r]=n[r]);return t}function Av(){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 d in n)r[d]=n[d];for(const d in e){const f=n[d],y=e[d];if(xv(f)&&xv(y)){r[d]=Av(f,y,t);continue}if(t&&Array.isArray(f)&&Array.isArray(y)){r[d]=t(f,y);continue}r[d]=y}return r}function Ys(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ys.cache.has(n))return Ys.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ys.cache.set(n,e),e}Ys.cache=new Map;function $I(n){cf(`Vuetify: ${n}`)}function Cv(n,e){return t=>Object.keys(n).reduce((r,d)=>{const f=typeof n[d]=="object"&&n[d]!=null&&!Array.isArray(n[d])?n[d]:{type:n[d]};return t&&d in t?r[d]={...f,default:t[d]}:r[d]=f,e&&!r[d].source&&(r[d].source=e),r},{})}function kv(n,e){const t=ff();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function TI(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kv("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const Qh=Symbol.for("vuetify:defaults");function _v(){const n=uf(Qh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function II(n,e){var t,r;return typeof((t=n.props)==null?void 0:t[e])<"u"||typeof((r=n.props)==null?void 0:r[Ys(e)])<"u"}function EI(){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]:_v();const r=kv("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const d=Dc(()=>{var h;return(h=t.value)==null?void 0:h[n._as??e]}),f=new Proxy(n,{get(h,p){var s,c,a,l,o,u,m;const v=Reflect.get(h,p);return p==="class"||p==="style"?[(s=d.value)==null?void 0:s[p],v].filter(b=>b!=null):typeof p=="string"&&!II(r.vnode,p)?((c=d.value)==null?void 0:c[p])!==void 0?(a=d.value)==null?void 0:a[p]:((o=(l=t.value)==null?void 0:l.global)==null?void 0:o[p])!==void 0?(m=(u=t.value)==null?void 0:u.global)==null?void 0:m[p]:v:v}}),y=hf();df(()=>{if(d.value){const h=Object.entries(d.value).filter(p=>{let[s]=p;return s.startsWith(s[0].toUpperCase())});y.value=h.length?Object.fromEntries(h):void 0}else y.value=void 0});function w(){const h=TI(Qh,r);pf(Qh,Dc(()=>y.value?Av((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:f,provideSubDefaults:w}}function El(n){if(n._setup=n._setup??n.setup,!n.name)return $I("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Cv(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return SI(t,e)},n.props._as=String,n.setup=function(t,r){const d=_v();if(!d.value)return n._setup(t,r);const{props:f,provideSubDefaults:y}=EI(t,t._as??n.name,d),w=n._setup(f,r);return y(),w}}return n}function RI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?El:lf)(e)}const MI=[String,Function,Object,Array],Rl=Cv({icon:{type:MI},tag:{type:String,required:!0}},"icon");RI()({name:"VComponentIcon",props:Rl(),setup(n,e){let{slots:t}=e;return()=>{const r=n.icon;return me(n.tag,null,{default:()=>{var d;return[n.icon?me(r,null,null):(d=t.default)==null?void 0:d.call(t)]}})}}}),El({name:"VSvgIcon",inheritAttrs:!1,props:Rl(),setup(n,e){let{attrs:t}=e;return()=>me(n.tag,gf(t,{style:null}),{default:()=>[me("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)?me("path",{d:r[0],"fill-opacity":r[1]},null):me("path",{d:r},null)):me("path",{d:n.icon},null)])]})}}),El({name:"VLigatureIcon",props:Rl(),setup(n){return()=>me(n.tag,null,{default:()=>[n.icon]})}});const LI=El({name:"VClassIcon",props:Rl(),setup(n){return()=>me(n.tag,{class:n.icon},null)}}),OI={component:n=>_s(LI,{...n,class:"mdi"})},Zh=bf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:cI}},icons:{defaultSet:"mdi",sets:{mdi:OI,...zT}}}),Xh=w0({createApp:Nc,appOptions:{render(){return _s($0,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(lI),n.use(bv),n.use(Zh),n.use(yI),n.use(_I,{store:bv})}}),$D=dn("d",Xh.bootstrap),TD=dn("m",Xh.mount),ID=dn("u",Xh.unmount)}}});
|