openc3-cosmos-tool-scriptrunner 5.20.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +1 -1
  3. data/tools/scriptrunner/ArrayWidget-BTxChSds-b442fb0c83806f2a7155.js +2 -0
  4. data/tools/scriptrunner/BarColumn-Cdu3OoMa-5759d627d12ac570f7c2.js +1 -0
  5. data/tools/scriptrunner/BlockWidget-PmjzrkXF-66124d27fec936836764.js +2 -0
  6. data/tools/scriptrunner/ButtonWidget-nwDlOBJT-74b0307919435ba34bc0.js +2 -0
  7. data/tools/scriptrunner/CanvasWidget-BL8930eT-27842c7c22b339b98e51.js +1 -0
  8. data/tools/scriptrunner/CanvasdotWidget-VCf1fL-G-3222ffa0793edfcc58b9.js +1 -0
  9. data/tools/scriptrunner/CanvasimageWidget-BIw7Wbf2-da3e74a41067206c20c7.js +1 -0
  10. data/tools/scriptrunner/CanvasimagevalueWidget-CE3Dj5bH-402c7188c011ef3c6974.js +1 -0
  11. data/tools/scriptrunner/CanvaslabelWidget-DWmb356h-45266fb96c5c19e29535.js +1 -0
  12. data/tools/scriptrunner/CanvaslabelvalueWidget-CI3yYwFs-d47df2b589764613f819.js +1 -0
  13. data/tools/scriptrunner/CanvaslineWidget-COeapH3P-99c09c560599b697ce65.js +1 -0
  14. data/tools/scriptrunner/CanvaslinevalueWidget-CI-Bbzfi-1411f381997d7567aa3b.js +1 -0
  15. data/tools/scriptrunner/CheckbuttonWidget-BQhggcZ2-2c444bdd2fdec2093442.js +1 -0
  16. data/tools/scriptrunner/ComboboxWidget-BzsbOv54-625fab6cb3f3fac91459.js +1 -0
  17. data/tools/scriptrunner/CriticalCmdDialog-BjoqcWTu-baf2855f2bf6cdf762fb.js +1 -0
  18. data/tools/scriptrunner/DateWidget-B5R_9rA8-bf0e9b2c2d844495dd04.js +1 -0
  19. data/tools/scriptrunner/DetailsDialog-DLRMqetn-2b3771b90f4044ac6771.js +1 -0
  20. data/tools/scriptrunner/DynamicWidget-m9EliUR2-d64e51887657bfc4d03f.js +1 -0
  21. data/tools/scriptrunner/FormatvalueWidget-DZkRJce8-7421198bc6589347b0a4.js +1 -0
  22. data/tools/scriptrunner/GraphWidget-amwxyH1r-46f252ec6f59cf6dddd0.js +1 -0
  23. data/tools/scriptrunner/HorizontalWidget-CirtfuL8-dc699acf1b526f0a14c4.js +1 -0
  24. data/tools/scriptrunner/HorizontalboxWidget-CyTDt2nl-4e0a6393e5e21e54b369.js +1 -0
  25. data/tools/scriptrunner/HorizontallineWidget-BdlNB951-6bf4113b8d85559b4492.js +1 -0
  26. data/tools/scriptrunner/IframeWidget-DnJmCrCA-f3667cd357ba9a81dcc4.js +1 -0
  27. data/tools/scriptrunner/ImageLoader-CpcR6tPi-c4f247a819912f328147.js +1 -0
  28. data/tools/scriptrunner/ImageviewerWidget-DIkmb_C9-57e0b16d4cc3b0795a4e.js +1 -0
  29. data/tools/scriptrunner/LabelWidget-BDsypYho-82779e87dbb6e157d403.js +1 -0
  30. data/tools/scriptrunner/LabelledWidget-DjturGl5-ac54d7a82f0cf056bf05.js +1 -0
  31. data/tools/scriptrunner/LabelprogressbarWidget-RADJGLj3-ff7bcc6fbf5aed7ad6eb.js +1 -0
  32. data/tools/scriptrunner/LabelsparklineWidget-BlJoICxu-549dff62b17f07fa1a4d.js +1 -0
  33. data/tools/scriptrunner/LabelvalueWidget-DVWJqnlY-4b8678af8e6c3843f1af.js +1 -0
  34. data/tools/scriptrunner/LabelvaluedescWidget-CsUP7J4U-6425f7244247c5e8f75b.js +1 -0
  35. data/tools/scriptrunner/LabelvaluelimitsbarWidget-Blj1QXV8-8cf7ae38507f8066ee5d.js +1 -0
  36. data/tools/scriptrunner/LabelvaluelimitscolumnWidget-CvCo-uCe-9b7a1a45724b4dabdffb.js +1 -0
  37. data/tools/scriptrunner/LabelvaluerangebarWidget-DpcXhlfF-1b6fdabef37a98d952b9.js +1 -0
  38. data/tools/scriptrunner/Layout-C1HoM4Kl-d29c2656e1dc91cbadf0.js +1 -0
  39. data/tools/scriptrunner/LedWidget-B_K2e5tq-677c4976f93116291b06.js +1 -0
  40. data/tools/scriptrunner/LimitsbarWidget-DXbqsi4J-606f0852c745b1d75a71.js +1 -0
  41. data/tools/scriptrunner/LimitscolorWidget-Ckmuw0YX-2b83ce7b7afe3b4b87c2.js +1 -0
  42. data/tools/scriptrunner/LimitscolumnWidget-BfY4su5U-f683680d74b03d48214e.js +1 -0
  43. data/tools/scriptrunner/LinegraphWidget-y-Qy9P0R-c7ed03e2084fae4a0342.js +1 -0
  44. data/tools/scriptrunner/MatrixbycolumnsWidget-BTBColrs-a5637f85840ad0341e64.js +1 -0
  45. data/tools/scriptrunner/ProgressbarWidget-DpA_-vy9-5b5d66bee554250ddd13.js +1 -0
  46. data/tools/scriptrunner/RadiobuttonWidget-BO8zpgwW-5c50d2cff32ebf5ecae0.js +1 -0
  47. data/tools/scriptrunner/RadiogroupWidget-Oy7V4S-V-84b6b69f058ff364a77e.js +1 -0
  48. data/tools/scriptrunner/RangebarWidget-DHS7S3vI-831b1aa9bf7ada4c8982.js +1 -0
  49. data/tools/scriptrunner/RollupWidget-CTk9Kjwr-fee4b52c2d0ac0675fa1.js +1 -0
  50. data/tools/scriptrunner/ScriptRunner-b8a3addf4ef3e33ba3d1.js +96 -0
  51. data/tools/scriptrunner/ScrollwindowWidget-DD0TOW6s-d21f3e99b6007f66c57a.js +1 -0
  52. data/tools/scriptrunner/SignalWidget-CC33KMTW-25a228f34c6e80a7177b.js +1 -0
  53. data/tools/scriptrunner/SpacerWidget-BnJe_Hq6-37bfb1d7ec6d46304caa.js +1 -0
  54. data/tools/scriptrunner/SparklineWidget-DMvMQCPm-4332f55116114aa68aef.js +1 -0
  55. data/tools/scriptrunner/TabbookWidget-B3w0JtWe-a8d257e93d6ef21500c8.js +1 -0
  56. data/tools/scriptrunner/TextboxWidget-D2f0-eol-bb94d6677ee14cd32fcf.js +1 -0
  57. data/tools/scriptrunner/TextfieldWidget-DXSdgqVP-d6bcda166a9140bd23e6.js +1 -0
  58. data/tools/scriptrunner/TimeWidget-DvrRaEMz-a98384f80e069ba5d4bd.js +1 -0
  59. data/tools/scriptrunner/TitleWidget-DqViFQl--df54f3619e4f303b1373.js +1 -0
  60. data/tools/scriptrunner/VWidget-02CG-3Av-9579e154442a96ddbf76.js +1 -0
  61. data/tools/scriptrunner/ValueWidget-KLYY8L8U-96ee5f0706e36c6885e6.js +1 -0
  62. data/tools/scriptrunner/ValuelimitsbarWidget-SR8XNZFB-58ea8b55d6ece94d270a.js +1 -0
  63. data/tools/scriptrunner/ValuelimitscolumnWidget-xYZSp6YZ-906fdefa13c32c7e4d3c.js +1 -0
  64. data/tools/scriptrunner/ValuerangebarWidget-B6M02a9d-f4b7a4b9709d461258c0.js +1 -0
  65. data/tools/scriptrunner/VerticalWidget-z6xUM-ql-6daf5ea34d2f88e2414e.js +1 -0
  66. data/tools/scriptrunner/VerticalboxWidget-3a9cVsW--b38be144237c8662c1fd.js +1 -0
  67. data/tools/scriptrunner/Widget-C4QVI4IH-fe10a78e0f883ba2b0f8.js +1 -0
  68. data/tools/scriptrunner/addMonths-BdRI44Cs-495ddb75f786e4f5c19b.js +1 -0
  69. data/tools/scriptrunner/main-26581a6a2cf6f9faf01c.js +1425 -0
  70. data/tools/scriptrunner/main.js +1 -0
  71. metadata +70 -11
  72. data/tools/scriptrunner/index.html +0 -4
  73. data/tools/scriptrunner/js/272.js +0 -2
  74. data/tools/scriptrunner/js/272.js.map +0 -1
  75. data/tools/scriptrunner/js/705.js +0 -2
  76. data/tools/scriptrunner/js/705.js.map +0 -1
  77. data/tools/scriptrunner/js/729.js +0 -18
  78. data/tools/scriptrunner/js/729.js.map +0 -1
  79. data/tools/scriptrunner/js/app.js +0 -2
  80. data/tools/scriptrunner/js/app.js.map +0 -1
@@ -0,0 +1,1425 @@
1
+ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(dn,De){"use strict";var Te,kt,sn,xe,me,qd,_s,Oo,Li,ot,Jr,xt,Gd,Ot,qn,sr,ar,zi,ji,Yd,Kd,Zd,Qd,Xd,Jd,Ec,ep,tp,Lc,np,ip,rp,op,sp,ap,lp;return{setters:[et=>{Te=et.resolveComponent,kt=et.openBlock,sn=et.createBlock,xe=et.withCtx,me=et.createVNode,qd=et.defineAsyncComponent,_s=et.h,Oo=et.normalizeStyle,Li=et.createElementBlock,ot=et.createElementVNode,Jr=et.withModifiers,xt=et.createTextVNode,Gd=et.withKeys,Ot=et.toDisplayString,qn=et.createCommentVNode,sr=et.withDirectives,ar=et.vShow,zi=et.normalizeProps,ji=et.guardReactiveProps,Yd=et.Fragment,Kd=et.renderList,Zd=et.mergeProps,Qd=et.defineComponent,Xd=et.warn,Jd=et.inject,Ec=et.computed,ep=et.shallowRef,tp=et.watchEffect,Lc=et.createApp,np=et.getCurrentInstance,ip=et.provide},et=>{rp=et.createRouter,op=et.createWebHistory},et=>{sp=et.getMountedApps},et=>{ap=et.createStore},et=>{lp=et.createVuetify}],execute:function(){dn({b:Fn,c:YC,e:fp,l:Vt,p:Tr,y:pn,z:Oh});var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(m){return Object.getOwnPropertyDescriptor(n,m).enumerable})),e.push.apply(e,i)}return e}function eo(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?cp(Object(e),!0).forEach(function(i){Wy(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):cp(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Wy(n,t,e){return(t=function(i){var m=function(p,v){if(to(p)!=="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var h=w.call(p,v||"default");if(to(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(p)}(i,"string");return to(m)==="symbol"?m:String(m)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function to(n){return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,m=String(e),p=m.length,v=-1,w="",h=m.charCodeAt(0);++v<p;)(i=m.charCodeAt(v))!=0?w+=i>=1&&i<=31||i==127||v==0&&i>=48&&i<=57||v==1&&i>=48&&i<=57&&h==45?"\\"+i.toString(16)+" ":v==0&&p==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+m.charAt(v):m.charAt(v):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(et);var Uy={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Vy(n){if(to(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=eo(eo({},Uy),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(to(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:qy.bind(null,t,e),mount:Gy.bind(null,t,e),unmount:Ky.bind(null,t,e),update:Yy.bind(null,t,e)}}function qy(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Gy(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,p){return typeof m.appOptions=="function"?m.appOptions(p):Promise.resolve(eo({},m.appOptions))}(n,e).then(function(m){var p;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(p=document.querySelector(m.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(m.el))}else(p=m.el).id||(p.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(p.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(p=document.getElementById(v))||((p=document.createElement("div")).id=v,document.body.appendChild(p))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",p.appendChild(w)}i.domEl=p,m.render||m.template||!n.rootComponent||(m.render=function(f){return f(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return eo(eo({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(i.vueInstance=n.createApp(m),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return i.root=i.vueInstance.mount(m.el),t[e.name]=i,i.vueInstance});i.root=i.vueInstance.mount(m.el)}else if(i.vueInstance=new n.Vue(m),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return t[e.name]=i,i.vueInstance});return t[e.name]=i,i.vueInstance})})}function Yy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=eo(eo({},n.appOptions.data||{}),e),p=i.root||i.vueInstance;for(var v in m)p[v]=m[v]})}function Ky(n,t,e){return Promise.resolve().then(function(){var i=t[e.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const Zy=dn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Qy={};function Xy(n,t){const e=Te("router-view"),i=Te("v-app");return kt(),sn(i,{id:"innerapp"},{default:xe(()=>[me(e)]),_:1})}const Jy=Zy(Qy,[["render",Xy]]),rI="modulepreload",oI=function(n){return"/"+n},sI={},Ne=function(t,e,i){let m=Promise.resolve();function p(v){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=v,window.dispatchEvent(w),!w.defaultPrevented)throw v}return m.then(v=>{for(const w of v||[])w.status==="rejected"&&p(w.reason);return t().catch(p)})},up=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/scriptrunner/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(up)},lr=dn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Ea=6e4,Rc=36e5,ew=1e3,hp=Symbol.for("constructDateFrom");function pn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&hp in n?n[hp](t):n instanceof Date?new n.constructor(t):new Date(t)}function Vt(n,t){return pn(t||n,n)}let tw={};function Do(){return tw}function Ar(n,t){var e,i,m,p;const v=Do(),w=(t==null?void 0:t.weekStartsOn)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.weekStartsOn)??v.weekStartsOn??((p=(m=v.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,h=Vt(n,t==null?void 0:t.in),f=h.getDay(),s=(f<w?7:0)+f-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function No(n,t){return Ar(n,{...t,weekStartsOn:1})}function dp(n,t){const e=Vt(n,void 0),i=e.getFullYear(),m=pn(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const p=No(m),v=pn(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=No(v);return e.getTime()>=p.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function La(n){const t=Vt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function nw(n,...t){const e=pn.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function pp(n,t){const e=Vt(n,void 0);return e.setHours(0,0,0,0),e}function iw(n,t,e){const[i,m]=nw(void 0,n,t),p=pp(i),v=pp(m),w=+p-La(p),h=+v-La(v);return Math.round((w-h)/864e5)}function rw(n,t){const e=dp(n),i=pn(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),No(i)}function ow(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function fp(n){return!(!ow(n)&&typeof n!="number"||isNaN(+Vt(n)))}function sw(n,t){const e=Vt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const aw={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"}},lw=(n,t,e)=>{let i;const m=aw[n];return typeof m=="string"?i=m:t===1?i=m.one:i=m.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Ic(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const cw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dw={date:Ic({formats:cw,defaultWidth:"full"}),time:Ic({formats:uw,defaultWidth:"full"}),dateTime:Ic({formats:hw,defaultWidth:"full"})},pw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fw=(n,t,e,i)=>pw[n];function ks(n){return(t,e)=>{const i=e!=null&&e.context?String(e.context):"standalone";let m;if(i==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):v;m=n.formattingValues[w]||n.formattingValues[v]}else{const v=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;m=n.values[w]||n.values[v]}const p=n.argumentCallback?n.argumentCallback(t):t;return m[p]}}const gw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vw={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"]},yw={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"]},ww={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"}},bw={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"}},xw=(n,t)=>{const e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},_w={ordinalNumber:xw,era:ks({values:gw,defaultWidth:"wide"}),quarter:ks({values:mw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ks({values:vw,defaultWidth:"wide"}),day:ks({values:yw,defaultWidth:"wide"}),dayPeriod:ks({values:ww,defaultWidth:"wide",formattingValues:bw,defaultFormattingWidth:"wide"})};function $s(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],p=t.match(m);if(!p)return null;const v=p[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?$w(w,c=>c.test(v)):kw(w,c=>c.test(v));let f;f=n.valueCallback?n.valueCallback(h):h,f=e.valueCallback?e.valueCallback(f):f;const s=t.slice(v.length);return{value:f,rest:s}}}function kw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function $w(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Sw(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],p=t.match(n.parsePattern);if(!p)return null;let v=n.valueCallback?n.valueCallback(p[0]):p[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const Cw=/^(\d+)(th|st|nd|rd)?/i,Aw=/\d+/i,Mw={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},Tw={any:[/^b/i,/^(a|c)/i]},Ew={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lw={any:[/1/i,/2/i,/3/i,/4/i]},Rw={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},Iw={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]},Ow={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},Dw={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]},Nw={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},Fw={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}},Pw={ordinalNumber:Sw({matchPattern:Cw,parsePattern:Aw,valueCallback:n=>parseInt(n,10)}),era:$s({matchPatterns:Mw,defaultMatchWidth:"wide",parsePatterns:Tw,defaultParseWidth:"any"}),quarter:$s({matchPatterns:Ew,defaultMatchWidth:"wide",parsePatterns:Lw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:$s({matchPatterns:Rw,defaultMatchWidth:"wide",parsePatterns:Iw,defaultParseWidth:"any"}),day:$s({matchPatterns:Ow,defaultMatchWidth:"wide",parsePatterns:Dw,defaultParseWidth:"any"}),dayPeriod:$s({matchPatterns:Nw,defaultMatchWidth:"any",parsePatterns:Fw,defaultParseWidth:"any"})},gp={code:"en-US",formatDistance:lw,formatLong:dw,formatRelative:fw,localize:_w,match:Pw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hw(n,t){const e=Vt(n,void 0);return iw(e,sw(e))+1}function mp(n,t){const e=Vt(n,void 0),i=+No(e)-+rw(e);return Math.round(i/6048e5)+1}function Oc(n,t){var e,i,m,p;const v=Vt(n,t==null?void 0:t.in),w=v.getFullYear(),h=Do(),f=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(m=h.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=pn((t==null?void 0:t.in)||n,0);s.setFullYear(w+1,0,f),s.setHours(0,0,0,0);const c=Ar(s,t),a=pn((t==null?void 0:t.in)||n,0);a.setFullYear(w,0,f),a.setHours(0,0,0,0);const l=Ar(a,t);return+v>=+c?w+1:+v>=+l?w:w-1}function Bw(n,t){var e,i,m,p;const v=Do(),w=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??v.firstWeekContainsDate??((p=(m=v.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,h=Oc(n,t),f=pn((t==null?void 0:t.in)||n,0);return f.setFullYear(h,0,w),f.setHours(0,0,0,0),Ar(f,t)}function vp(n,t){const e=Vt(n,t==null?void 0:t.in),i=+Ar(e,t)-+Bw(e,t);return Math.round(i/6048e5)+1}function Et(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const Mr={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return Et(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):Et(e+1,2)},d(n,t){return Et(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Et(n.getHours()%12||12,t.length)},H(n,t){return Et(n.getHours(),t.length)},m(n,t){return Et(n.getMinutes(),t.length)},s(n,t){return Et(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return Et(m,t.length)}},Fo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yp={G:function(n,t,e){const i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const i=n.getFullYear(),m=i>0?i:1-i;return e.ordinalNumber(m,{unit:"year"})}return Mr.y(n,t)},Y:function(n,t,e,i){const m=Oc(n,i),p=m>0?m:1-m;if(t==="YY"){const v=p%100;return Et(v,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):Et(p,t.length)},R:function(n,t){const e=dp(n);return Et(e,t.length)},u:function(n,t){const e=n.getFullYear();return Et(e,t.length)},Q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Et(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Et(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){const i=n.getMonth();switch(t){case"M":case"MM":return Mr.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){const i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return Et(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){const m=vp(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):Et(m,t.length)},I:function(n,t,e){const i=mp(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Et(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Mr.d(n,t)},D:function(n,t,e){const i=Hw(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Et(i,t.length)},E:function(n,t,e){const i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){const m=n.getDay(),p=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return Et(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(m,{width:"short",context:"formatting"});case"eeee":default:return e.day(m,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){const m=n.getDay(),p=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return Et(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(m,{width:"narrow",context:"standalone"});case"cccccc":return e.day(m,{width:"short",context:"standalone"});case"cccc":default:return e.day(m,{width:"wide",context:"standalone"})}},i:function(n,t,e){const i=n.getDay(),m=i===0?7:i;switch(t){case"i":return String(m);case"ii":return Et(m,t.length);case"io":return e.ordinalNumber(m,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){const i=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,t,e){const i=n.getHours();let m;switch(i===12?m=Fo.noon:i===0?m=Fo.midnight:m=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(n,t,e){const i=n.getHours();let m;switch(i>=17?m=Fo.evening:i>=12?m=Fo.afternoon:i>=4?m=Fo.morning:m=Fo.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return Mr.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Mr.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Et(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Et(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Mr.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Mr.s(n,t)},S:function(n,t){return Mr.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return bp(i);case"XXXX":case"XX":return no(i);case"XXXXX":case"XXX":default:return no(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return bp(i);case"xxxx":case"xx":return no(i);case"xxxxx":case"xxx":default:return no(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wp(i,":");case"OOOO":default:return"GMT"+no(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wp(i,":");case"zzzz":default:return"GMT"+no(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return Et(i,t.length)},T:function(n,t,e){return Et(+n,t.length)}};function wp(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),p=i%60;return p===0?e+String(m):e+String(m)+t+Et(p,2)}function bp(n,t){return n%60===0?(n>0?"-":"+")+Et(Math.abs(n)/60,2):no(n,t)}function no(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Et(Math.trunc(i/60),2),p=Et(i%60,2);return e+m+t+p}const xp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},_p=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zw=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return xp(n,t);let p;switch(i){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",xp(i,t)).replace("{{time}}",_p(m,t))},Dc={p:_p,P:zw},jw=/^D+$/,Ww=/^Y+$/,Uw=["D","DD","YY","YYYY"];function kp(n){return jw.test(n)}function $p(n){return Ww.test(n)}function Nc(n,t,e){const i=Vw(n,t,e);if(console.warn(i),Uw.includes(n))throw new RangeError(i)}function Vw(n,t,e){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yw=/^'([^]*?)'?$/,Kw=/''/g,Zw=/[a-zA-Z]/;function Tr(n,t,e){var i,m,p,v,w,h,f,s;const c=Do(),a=(e==null?void 0:e.locale)??c.locale??gp,l=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??c.firstWeekContainsDate??((v=(p=c.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((s=(f=c.locale)==null?void 0:f.options)==null?void 0:s.weekStartsOn)??0,u=Vt(n,e==null?void 0:e.in);if(!fp(u))throw new RangeError("Invalid time value");let g=t.match(Gw).map(b=>{const L=b[0];if(L==="p"||L==="P"){const A=Dc[L];return A(b,a.formatLong)}return b}).join("").match(qw).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const L=b[0];if(L==="'")return{isToken:!1,value:Qw(b)};if(yp[L])return{isToken:!0,value:b};if(L.match(Zw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(g=a.localize.preprocessor(u,g));const y={firstWeekContainsDate:l,weekStartsOn:o,locale:a};return g.map(b=>{if(!b.isToken)return b.value;const L=b.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&$p(L)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&kp(L))&&Nc(L,t,String(n));const A=yp[L[0]];return A(u,L,a.localize,y)}).join("")}function Qw(n){const t=n.match(Yw);return t?t[1].replace(Kw,"'"):n}var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Sp={exports:{}},Cp;function Xw(){return Cp||(Cp=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(s,c,a){if(typeof s!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=c),m.modules[s]||(m.payloads[s]=a,m.modules[s]=null)};m.modules={},m.payloads={};var p=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,g=c.length;u<g;++u){var y=h(s,c[u]);if(y==null&&v.original)return;o.push(y)}return a&&a.apply(null,o)||!0}},v=function(s,c){var a=p("",s,c);return a==null&&v.original?v.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=m.modules[c];if(!a){if(a=m.payloads[c],typeof a=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(y,b){return p(c,y,b)},g=a(u,l,o);l=g||o.exports,m.modules[c]=l,delete m.payloads[c]}a=m.modules[c]=l||a}return a};function f(s){var c=i;i[s]||(i[s]={}),c=i[s],(!c.define||!c.define.packaged)&&(m.original=c.define,c.define=m,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(v.original=c.require,c.require=v,c.require.packaged=!0)}f(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function p(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||p(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var f=h.indexOf(v,w);return f!==-1&&f===w}),String.prototype.repeat||p(String.prototype,"repeat",function(v){for(var w="",h=this;v>0;)v&1&&(w+=h),(v>>=1)&&(h+=h);return w}),String.prototype.includes||p(String.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(v),h=1;h<arguments.length;h++){var f=arguments[h];f!=null&&Object.keys(f).forEach(function(s){w[s]=f[s]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||p(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var s=this[f];if(v.call(h,s,f,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var s=this[f];if(v.call(h,s,f,this))return f}}),Array.prototype.includes||p(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,f=arguments[1],s=f>>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]=v,c++;return w}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,i,m){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,i,m){i.deepCopy=function p(v){if(typeof v!="object"||!v)return v;var w;if(Array.isArray(v)){w=[];for(var h=0;h<v.length;h++)w[h]=p(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=p(v[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){i.last=function(w){return w[w.length-1]},i.stringReverse=function(w){return w.split("").reverse().join("")},i.stringRepeat=function(w,h){for(var f="";h>0;)h&1&&(f+=w),(h>>=1)&&(w+=w);return f};var p=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(p,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var f in w)h[f]=w[f];return h},i.copyArray=function(w){for(var h=[],f=0,s=w.length;f<s;f++)w[f]&&typeof w[f]=="object"?h[f]=this.copyObject(w[f]):h[f]=w[f];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},f=0;f<w.length;f++)h[w[f]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var f in w)h[f]=w[f];return h},i.arrayRemove=function(w,h){for(var f=0;f<=w.length;f++)h===w[f]&&w.splice(f,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(w,h){var f=[];return w.replace(h,function(s){f.push({offset:arguments[arguments.length-2],length:s.length})}),f},i.deferredCall=function(w){var h=null,f=function(){h=null,w()},s=function(c){return s.cancel(),h=setTimeout(f,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},i.delayedCall=function(w,h){var f=null,s=function(){f=null,w()},c=function(a){f==null&&(f=setTimeout(s,a||h))};return c.delay=function(a){f&&clearTimeout(f),f=setTimeout(s,a||h)},c.schedule=c,c.call=function(){this.cancel(),w()},c.cancel=function(){f&&clearTimeout(f),f=null},c.isPending=function(){return f},c},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,f){return f&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,i,m){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),w=p.userAgent||"",h=p.appName||"";i.isWin=v=="win",i.isMac=v=="mac",i.isLinux=v=="linux",i.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]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=w.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(w.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,i.isAIR=w.indexOf("AdobeAIR")>=0,i.isAndroid=w.indexOf("Android")>=0,i.isChromeOS=w.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,i,m){var p=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function a(l,o,u){if(typeof l=="string"&&l){var g=document.createTextNode(l);return o&&o.appendChild(g),g}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var y=[],b=0;b<l.length;b++){var L=a(l[b],o,u);L&&y.push(L)}return y}var A=document.createElement(l[0]),k=l[1],x=1;k&&typeof k=="object"&&!Array.isArray(k)&&(x=2);for(var b=x;b<l.length;b++)a(l[b],A,u);return x==2&&Object.keys(k).forEach(function(M){var E=k[M];M==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||M=="value"||M[0]=="$"?A[M]=E:M==="ref"?u&&(u[E]=A):M==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(M,E)}),o&&o.appendChild(A),A},i.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},i.createElement=function(a,l){return document.createElementNS?document.createElementNS(l||v,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,l){var o=l?l.ownerDocument:document;return o.createTextNode(a)},i.createFragment=function(a){var l=a?a.ownerDocument:document;return l.createDocumentFragment()},i.hasCssClass=function(a,l){var o=(a.className+"").split(/\s+/g);return o.indexOf(l)!==-1},i.addCssClass=function(a,l){i.hasCssClass(a,l)||(a.className+=" "+l)},i.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(" ")},i.toggleCssClass=function(a,l){for(var o=a.className.split(/\s+/g),u=!0;;){var g=o.indexOf(l);if(g==-1)break;u=!1,o.splice(g,1)}return u&&o.push(l),a.className=o.join(" "),u},i.setCssClass=function(a,l,o){o?i.addCssClass(a,l):i.removeCssClass(a,l)},i.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}},i.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var w,h=[];i.useStrictCSP=function(a){w=a,a==!1?f():h||(h=[])};function f(){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)f();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 g=u.ownerDocument||u;if(l&&i.hasCssString(l,u))return null;l&&(a+=`
2
+ /*# sourceURL=ace/css/`+l+" */");var y=i.createElement("style");y.appendChild(g.createTextNode(a)),l&&(y.id=l),u==g&&(u=i.getDocumentHead(g)),u.insertBefore(y,u.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(a,l){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(l))},i.scrollbarWidth=function(a){var l=i.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=i.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var g=a&&a.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(o);var y=l.offsetWidth;u.overflow="scroll";var b=l.offsetWidth;return y===b&&(b=o.clientWidth),g.removeChild(o),y-b},i.computedStyle=function(a,l){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,l,o){a[l]!==o&&(a[l]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");i.HI_DPI&&c.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof c.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),c=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,l,o){a.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:i.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(e,i,m){/*
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 p=e("./dom");i.get=function(v,w){var h=new XMLHttpRequest;h.open("GET",v,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},i.loadScript=function(v,w){var h=p.getDocumentHead(),f=document.createElement("script");f.src=v,h.appendChild(f),f.onload=f.onreadystatechange=function(s,c){(c||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,c||w())}},i.qualifyURL=function(v){var w=document.createElement("a");return w.href=v,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,i,m){i.inherits=function(p,v){p.super_=v,p.prototype=Object.create(v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(p,v){for(var w in v)p[w]=v[w];return p},i.implement=function(p,v){i.mixin(p,v)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,i,m){var p={},v=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!s.length&&!c)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=h),f.stopPropagation||(f.stopPropagation=v),f.preventDefault||(f.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](f,this),!f.propagationStopped);a++);if(c&&!f.defaultPrevented)return c(f,this)}},p._signal=function(h,f){var s=(this._eventRegistry||{})[h];if(s){s=s.slice();for(var c=0;c<s.length;c++)s[c](f,this)}},p.once=function(h,f){var s=this;if(this.on(h,function c(){s.off(h,c),f.apply(null,arguments)}),!f)return new Promise(function(c){f=c})},p.setDefaultHandler=function(h,f){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(f);l!=-1&&a.splice(l,1)}s[h]=f},p.removeDefaultHandler=function(h,f){var s=this._defaultHandlers;if(s){var c=s._disabled_[h];if(s[h]==f)c&&this.setDefaultHandler(h,c.pop());else if(c){var a=c.indexOf(f);a!=-1&&c.splice(a,1)}}},p.on=p.addEventListener=function(h,f,s){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(f)==-1&&c[s?"unshift":"push"](f),f},p.off=p.removeListener=p.removeEventListener=function(h,f){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[h];if(s){var c=s.indexOf(f);c!==-1&&s.splice(c,1)}},p.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},i.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,i,m){i.reportError=function(p,v){var w=new Error(p);w.data=v,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,i,m){var p={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","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"};i.defaultEnglishMessages=p}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,i,m){"no use strict";var p=e("./oop"),v=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,f={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var g=this.$options;o=Object.keys(g).filter(function(y){return!g[y].hidden})}return o.forEach(function(y){u[y]=this.getOption(y)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var g=this.$options[o];if(!g)return s('misspelled option "'+o+'"');if(g.forwardTo)return this[g.forwardTo]&&this[g.forwardTo].setOption(o,u);g.handlesSet||(this["$"+o]=u),g&&g.set&&g.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]: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,g,y){return u.$options||(this.$defaultOptions[g]=u.$options={}),Object.keys(y).forEach(function(b){var L=y[b];typeof L=="string"&&(L={forwardTo:L}),L.name||(L.name=b),u.$options[L.name]=L,"initialValue"in L&&(u["$"+L.name]=L.initialValue)}),p.implement(u,f),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(g){var y=u.$options[g];"value"in y&&u.setOption(g,y.value)})},o.prototype.setDefaultValue=function(u,g,y){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][g])break;if(!this.$defaultOptions[u][g])return!1}var b=this.$defaultOptions[u]||(this.$defaultOptions[u]={});b[g]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,g,y):b[g].value=y)},o.prototype.setDefaultValues=function(u,g){Object.keys(g).forEach(function(y){this.setDefaultValue(u,y,g[y])},this)},o.prototype.setMessages=function(u,g){c=u,g&&g.placeholders&&(a=g.placeholders)},o.prototype.nls=function(u,g,y){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 '"+g+"'."),c[g]||s("No message found for the default string '"+g+"' in the provided messages. Falling back to the default English message."));var b=c[u]||c[g]||g;return y&&(a==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(L,A){return A=="$"?"$":y[A]})),a==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(L,A){return y[A]}))),b},o}();l.prototype.warn=s,l.prototype.reportError=w,p.implement(l.prototype,v),i.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,i,m){i.isDark=!1,i.cssClass="ace-tm",i.cssText=e("./textmate-css"),i.$id="ace/theme/textmate";var p=e("../lib/dom");p.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,i,m){"no use strict";var p=e("./lib/lang"),v=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;m.exports=i=new h;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(l){if(!f.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return f[l]},i.set=function(l,o){if(f.hasOwnProperty(l))f[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&w.useStrictCSP(o)},i.all=function(){return p.copyObject(f)},i.$modes={},i.moduleUrl=function(l,o){if(f.$moduleUrls[l])return f.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var g=o=="snippets"?"/":"-",y=u[u.length-1];if(o=="worker"&&g=="-"){var b=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");y=y.replace(b,"")}(!y||y==o)&&u.length>1&&(y=u[u.length-2]);var L=f[o+"Path"];return L==null?L=f.basePath:g=="/"&&(o=g=""),L&&L.slice(-1)!="/"&&(L+="/"),L+o+g+y+this.get("suffix")},i.setModuleUrl=function(l,o){return f.$moduleUrls[l]=o};var s=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;i.setLoader=function(l){c=l},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(l,o){var u;if(Array.isArray(l))var g=l[0],y=l[1];else if(typeof l=="string")var y=l;var b=function(L){if(L&&!i.$loading[y])return o&&o(L);if(i.$loading[y]||(i.$loading[y]=[]),i.$loading[y].push(o),!(i.$loading[y].length>1)){var A=function(){s(y,function(k,x){x&&(i.$loaded[y]=x),i._emit("load.module",{name:y,module:x});var M=i.$loading[y];i.$loading[y]=null,M.forEach(function(E){E&&E(x)})})};if(!i.get("packaged"))return A();v.loadScript(i.moduleUrl(y,g),A),a()}};if(i.dynamicModules[y])i.dynamicModules[y]().then(function(L){L.default?b(L.default):b(L)});else{try{u=this.$require(y)}catch{}b(u||i.$loaded[y])}},i.$require=function(l){if(typeof m.require=="function"){var o="require";return m[o](l)}},i.setModuleLoader=function(l,o){i.dynamicModules[l]=o};var a=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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(){})};i.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,i,m){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(f,s){e([f],function(c){s(null,c)})});var v=function(){return this||typeof window<"u"&&window}();m.exports=function(f){p.init=w,p.$require=e,f.require=e},w(!0);function w(f){if(!(!v||!v.document)){p.set("packaged",f||e.packaged||m.packaged||v.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 g=o[u],y=g.src||g.getAttribute("src");if(y){for(var b=g.attributes,L=0,A=b.length;L<A;L++){var k=b[L];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var x=y.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 M in s)typeof s[M]<"u"&&p.set(M,s[M])}}function h(f){return f.replace(/-(.)/g,function(s,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,i,m){var p=function(){function v(w,h,f,s){this.start={row:w,column:h},this.end={row:f,column:s}}return v.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},v.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(w,h){return this.compare(w,h)==0},v.prototype.compareRange=function(w){var h,f=w.end,s=w.start;return h=this.compare(f.row,f.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)},v.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},v.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},v.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},v.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},v.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},v.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)},v.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)},v.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},v.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},v.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},v.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},v.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},v.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)},v.prototype.clipRows=function(w,h){if(this.end.row>h)var f={row:h+1,column:0};else if(this.end.row<w)var f={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 v.fromPoints(s||this.start,f||this.end)},v.prototype.extend=function(w,h){var f=this.compare(w,h);if(f==0)return this;if(f==-1)var s={row:w,column:h};else var c={row:w,column:h};return v.fromPoints(s||this.start,c||this.end)},v.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},v.prototype.isMultiLine=function(){return this.start.row!==this.end.row},v.prototype.clone=function(){return v.fromPoints(this.start,this.end)},v.prototype.collapseRows=function(){return this.end.column==0?new v(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new v(this.start.row,0,this.end.row,0)},v.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),f=w.documentToScreenPosition(this.end);return new v(h.row,h.column,f.row,f.column)},v.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},v}();p.fromPoints=function(v,w){return new p(v.row,v.column,w.row,w.column)},p.comparePoints=function(v,w){return v.row-w.row||v.column-w.column},i.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,i,m){for(var p=e("./oop"),v={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,v.PRINTABLE_KEYS[48+h]=""+h,v.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var f=String.fromCharCode(h+32);w["Key"+f.toUpperCase()]=h,v.PRINTABLE_KEYS[h]=f}for(var h=1;h<13;h++)w["F"+h]=111+h,v.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];i.$codeToKeyCode=w,v.PRINTABLE_KEYS[173]="-";for(var a in v.FUNCTION_KEYS){var l=v.FUNCTION_KEYS[a].toLowerCase();v[l]=parseInt(a,10)}for(var a in v.PRINTABLE_KEYS){var l=v.PRINTABLE_KEYS[a].toLowerCase();v[l]=parseInt(a,10)}p.mixin(v,v.MODIFIER_KEYS),p.mixin(v,v.PRINTABLE_KEYS),p.mixin(v,v.FUNCTION_KEYS),v.enter=v.return,v.escape=v.esc,v.del=v.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)v.KEY_MODS[u]=o.filter(function(g){return u&v.KEY_MODS[g]}).join("-")+"-"}(),v.KEY_MODS[0]="",v.KEY_MODS[-1]="input-",p.mixin(i,v),i.default=i,i.keyCodeToString=function(o){var u=v[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var p=e("./keys"),v=e("./useragent"),w=null,h=0,f;function s(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function c(){return f==null&&s(),f}function a(L,A,k){this.elem=L,this.type=A,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=i.addListener=function(L,A,k,x){L.addEventListener(A,k,c()),x&&x.$toDestroy.push(new a(L,A,k))},o=i.removeListener=function(L,A,k){L.removeEventListener(A,k,c())};i.stopEvent=function(L){return i.stopPropagation(L),i.preventDefault(L),!1},i.stopPropagation=function(L){L.stopPropagation&&L.stopPropagation()},i.preventDefault=function(L){L.preventDefault&&L.preventDefault()},i.getButton=function(L){return L.type=="dblclick"?0:L.type=="contextmenu"||v.isMac&&L.ctrlKey&&!L.altKey&&!L.shiftKey?2:L.button},i.capture=function(L,A,k){var x=L&&L.ownerDocument||document;function M(E){A&&A(E),k&&k(E),o(x,"mousemove",A),o(x,"mouseup",M),o(x,"dragstart",M)}return l(x,"mousemove",A),l(x,"mouseup",M),l(x,"dragstart",M),M},i.addMouseWheelListener=function(L,A,k){l(L,"wheel",function(x){var M=.15,E=x.deltaX||0,I=x.deltaY||0;switch(x.deltaMode){case x.DOM_DELTA_PIXEL:x.wheelX=E*M,x.wheelY=I*M;break;case x.DOM_DELTA_LINE:var T=15;x.wheelX=E*T,x.wheelY=I*T;break;case x.DOM_DELTA_PAGE:var N=150;x.wheelX=E*N,x.wheelY=I*N;break}A(x)},k)},i.addMultiMouseDownListener=function(L,A,k,x,M){var E=0,I,T,N,$={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(S){if(i.getButton(S)!==0?E=0:S.detail>1?(E++,E>4&&(E=1)):E=1,v.isIE){var R=Math.abs(S.clientX-I)>5||Math.abs(S.clientY-T)>5;(!N||R)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[E-1]||600),E==1&&(I=S.clientX,T=S.clientY)}if(S._clicks=E,k[x]("mousedown",S),E>4)E=0;else if(E>1)return k[x]($[E],S)}Array.isArray(L)||(L=[L]),L.forEach(function(S){l(S,"mousedown",_,M)})};function u(L){return 0|(L.ctrlKey?1:0)|(L.altKey?2:0)|(L.shiftKey?4:0)|(L.metaKey?8:0)}i.getModifierString=function(L){return p.KEY_MODS[u(L)]};function g(L,A,k){var x=u(A);if(!k&&A.code&&(k=p.$codeToKeyCode[A.code]||k),!v.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(x|=8),w.altGr)if((3&x)!=3)w.altGr=0;else return;if(k===18||k===17){var M=A.location;if(k===17&&M===1)w[k]==1&&(h=A.timeStamp);else if(k===18&&x===3&&M===2){var E=A.timeStamp-h;E<50&&(w.altGr=!0)}}}if(k in p.MODIFIER_KEYS&&(k=-1),!(!x&&k===13&&A.location===3&&(L(A,x,-k),A.defaultPrevented))){if(v.isChromeOS&&x&8){if(L(A,x,k),A.defaultPrevented)return;x&=-9}return!x&&!(k in p.FUNCTION_KEYS)&&!(k in p.PRINTABLE_KEYS)?!1:L(A,x,k)}}i.addCommandKeyListener=function(L,A,k){var x=null;l(L,"keydown",function(M){w[M.keyCode]=(w[M.keyCode]||0)+1;var E=g(A,M,M.keyCode);return x=M.defaultPrevented,E},k),l(L,"keypress",function(M){x&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(i.stopEvent(M),x=null)},k),l(L,"keyup",function(M){w[M.keyCode]=null},k),w||(y(),l(window,"focus",y))};function y(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var b=1;i.nextTick=function(L,A){A=A||window;var k="zero-timeout-message-"+b++,x=function(M){M.data==k&&(i.stopPropagation(M),o(A,"message",x),L())};l(A,"message",x),A.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(L,A){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):L()},A)},i.$idleBlockId=null,i.blockIdle=function(L){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},L||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(L){setTimeout(L,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,i,m){var p;m.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,i,m){var p=e("../lib/event"),v=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),f=e("../lib/lang"),s=e("../clipboard"),c=w.isChrome<18,a=w.isIE,l=w.isChrome>63,o=400,u=e("../lib/keys"),g=u.KEY_MODS,y=w.isIOS,b=y?/\s/:/\n/,L=w.isMobile,A;A=function(k,x){var M=h.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck","false"),M.style.opacity="0",k.insertBefore(M,k.firstChild);var E=!1,I=!1,T=!1,N=!1,$="";L||(M.style.fontSize="1px");var _=!1,S=!1,R="",O=0,F=0,H=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var J=document.activeElement===M}catch{}this.setNumberOfExtraLines=function(ce){if(W=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 Me=x.session.selection.cursor.row;ce+=v("text-input.aria-label","Cursor at row $0",[Me+1])}M.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",ce.inline?"both":"list"),M.setAttribute("aria-activedescendant",ce.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),ce.role&&M.setAttribute("role",ce.role),ce.setLabel&&(M.setAttribute("aria-roledescription",v("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),p.addListener(M,"blur",function(ce){S||(x.onBlur(ce),J=!1)},x),p.addListener(M,"focus",function(ce){if(!S){if(J=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}x.onFocus(ce),w.isEdge?setTimeout(Q):Q()}},x),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:x.renderer.enableKeyboardAccessibility}),$||l||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var ce=M.style.top;M.style.position="fixed",M.style.top="0px";try{var Me=M.getBoundingClientRect().top!=0}catch{return}var Re=[];if(Me)for(var qe=M.parentElement;qe&&qe.nodeType==1;)Re.push(qe),qe.setAttribute("ace_nocontext","true"),!qe.parentElement&&qe.getRootNode?qe=qe.getRootNode().host:qe=qe.parentElement;M.focus({preventScroll:!0}),Me&&Re.forEach(function(Ye){Ye.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=ce)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return J},x.on("beforeEndOperation",function(){var ce=x.curOp,Me=ce&&ce.command&&ce.command.name;if(Me!="insertstring"){var Re=Me&&(ce.docChanged||ce.selectionChanged);T&&Re&&(R=M.value="",Zt()),Q()}}),x.on("changeSelection",this.setAriaLabel);var G=function(ce,Me){for(var Re=Me,qe=1;qe<=ce-W&&qe<2*q+1;qe++)Re+=x.session.getLine(ce-qe).length+1;return Re},Q=y?function(ce){if(!(!J||E&&!ce||N)){ce||(ce="");var Me=`
167
+ ab`+ce+`cde fg
168
+ `;Me!=M.value&&(M.value=R=Me);var Re=4,qe=4+(ce.length||(x.selection.isEmpty()?0:1));(O!=Re||F!=qe)&&M.setSelectionRange(Re,qe),O=Re,F=qe}}:function(){if(!(T||N)&&!(!J&&!ve)){T=!0;var ce=0,Me=0,Re="";if(x.session){var qe=x.selection,Ye=qe.getRange(),pt=qe.cursor.row;pt===V+1?(W=V+1,V=W+2*q):pt===W-1?(V=W-1,W=V-2*q):(pt<W-1||pt>V+1)&&(W=pt>q?pt-q:0,V=pt>q?pt+q:2*q);for(var ft=[],ct=W;ct<=V;ct++)ft.push(x.session.getLine(ct));if(Re=ft.join(`
169
+ `),ce=G(Ye.start.row,Ye.start.column),Me=G(Ye.end.row,Ye.end.column),Ye.start.row<W){var ut=x.session.getLine(W-1);ce=Ye.start.row<W-1?0:ce,Me+=ut.length+1,Re=ut+`
170
+ `+Re}else if(Ye.end.row>V){var it=x.session.getLine(V+1);Me=Ye.end.row>V+1?it.length:Ye.end.column,Me+=Re.length+1,Re=Re+`
171
+ `+it}else L&&pt>0&&(Re=`
172
+ `+Re,Me+=1,ce+=1);Re.length>o&&(ce<o&&Me<o?Re=Re.slice(0,o):(Re=`
173
+ `,ce==Me?ce=Me=0:(ce=0,Me=1)));var Ut=Re+`
174
+
175
+ `;Ut!=R&&(M.value=R=Ut,O=F=Ut.length)}if(ve&&(O=M.selectionStart,F=M.selectionEnd),F!=Me||O!=ce||M.selectionEnd!=F)try{M.setSelectionRange(ce,Me),O=ce,F=Me}catch{}T=!1}};this.resetSelection=Q,J&&x.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=R.length&&ce.value===R&&R&&ce.selectionEnd!==F},X=function(ce){T||(E?E=!1:ie(M)?(x.selectAll(),Q()):L&&M.selectionStart!=O&&Q())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var ve=!1,we=function(ce,Me){if(ve&&(ve=!1),I)return Q(),ce&&x.onPaste(ce),I=!1,"";for(var Re=M.selectionStart,qe=M.selectionEnd,Ye=O,pt=R.length-F,ft=ce,ct=ce.length-Re,ut=ce.length-qe,it=0;Ye>0&&R[it]==ce[it];)it++,Ye--;for(ft=ft.slice(it),it=1;pt>0&&R.length-it>O-1&&R[R.length-it]==ce[ce.length-it];)it++,pt--;ct-=it-1,ut-=it-1;var Ut=ft.length-it+1;if(Ut<0&&(Ye=-Ut,Ut=0),ft=ft.slice(0,Ut),!Me&&!ft&&!ct&&!Ye&&!pt&&!ut)return"";N=!0;var Hn=!1;return w.isAndroid&&ft==". "&&(ft=" ",Hn=!0),ft&&!Ye&&!pt&&!ct&&!ut||_?x.onTextInput(ft):x.onTextInput(ft,{extendLeft:Ye,extendRight:pt,restoreStart:ct,restoreEnd:ut}),N=!1,R=ce,O=Re,F=qe,H=ut,Hn?`
176
+ `:ft},fe=function(ce){if(T)return Nt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return x.execCommand("undo");if(ce.inputType=="historyRedo")return x.execCommand("redo")}var Me=M.value,Re=we(Me,!0);(Me.length>o+100||b.test(Re)||L&&O<1&&O==F)&&Q()},$e=function(ce,Me,Re){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||c)){var Ye=a||Re?"Text":"text/plain";try{return Me?qe.setData(Ye,Me)!==!1:qe.getData(Ye)}catch(pt){if(!Re)return $e(pt,Me,!0)}}},at=function(ce,Me){var Re=x.getCopyText();if(!Re)return p.preventDefault(ce);$e(ce,Re)?(y&&(Q(Re),E=Re,setTimeout(function(){E=!1},10)),Me?x.onCut():x.onCopy(),p.preventDefault(ce)):(E=!0,M.value=Re,M.select(),setTimeout(function(){E=!1,Q(),Me?x.onCut():x.onCopy()}))},Bt=function(ce){at(ce,!0)},dt=function(ce){at(ce,!1)},gt=function(ce){var Me=$e(ce);s.pasteCancelled()||(typeof Me=="string"?(Me&&x.onPaste(Me,ce),w.isIE&&setTimeout(Q),p.preventDefault(ce)):(M.value="",I=!0))};p.addCommandKeyListener(M,function(ce,Me,Re){if(!T)return x.onCommandKey(ce,Me,Re)},x),p.addListener(M,"select",X,x),p.addListener(M,"input",fe,x),p.addListener(M,"cut",Bt,x),p.addListener(M,"copy",dt,x),p.addListener(M,"paste",gt,x),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&p.addListener(k,"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:Bt(ce);break}},x);var cn=function(ce){if(!(T||!x.onCompositionStart||x.$readOnly)&&(T={},!_)){ce.data&&(T.useTextareaForIME=!1),setTimeout(Nt,0),x._signal("compositionStart"),x.on("mousedown",Ki);var Me=x.getSelectionRange();Me.end.row=Me.start.row,Me.end.column=Me.start.column,T.markerRange=Me,T.selectionStart=O,x.onCompositionStart(T),T.useTextareaForIME?(R=M.value="",O=0,F=0):(M.msGetInputContext&&(T.context=M.msGetInputContext()),M.getInputContext&&(T.context=M.getInputContext()))}},Nt=function(){if(!(!T||!x.onCompositionUpdate||x.$readOnly)){if(_)return Ki();if(T.useTextareaForIME)x.onCompositionUpdate(M.value);else{var ce=M.value;we(ce),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+F-T.selectionStart+H)}}},Zt=function(ce){!x.onCompositionEnd||x.$readOnly||(T=!1,x.onCompositionEnd(),x.off("mousedown",Ki),ce&&fe())};function Ki(){S=!0,M.blur(),M.focus(),S=!1}var $n=f.delayedCall(Nt,50).schedule.bind(null,null);function tn(ce){ce.keyCode==27&&M.value.length<M.selectionStart&&(T||(R=M.value),O=F=-1,Q()),$n()}p.addListener(M,"compositionstart",cn,x),p.addListener(M,"compositionupdate",Nt,x),p.addListener(M,"keyup",tn,x),p.addListener(M,"keydown",$n,x),p.addListener(M,"compositionend",Zt,x),this.getElement=function(){return M},this.setCommandMode=function(ce){_=ce,M.readOnly=!1},this.setReadOnly=function(ce){_||(M.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){ve=!0,Q(),x._emit("nativecontextmenu",{target:x,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Me){$||($=M.style.cssText),M.style.cssText=(Me?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*x.renderer.characterWidth*.5+"px;";var Re=x.container.getBoundingClientRect(),qe=h.computedStyle(x.container),Ye=Re.top+(parseInt(qe.borderTopWidth)||0),pt=Re.left+(parseInt(Re.borderLeftWidth)||0),ft=Re.bottom-Ye-M.clientHeight-2,ct=function(ut){h.translate(M,ut.clientX-pt-2,Math.min(ut.clientY-Ye-2,ft))};ct(ce),ce.type=="mousedown"&&(x.renderer.$isMousePressed=!0,clearTimeout(Pe),w.isWin&&p.capture(x.container,ct,ze))},this.onContextMenuClose=ze;var Pe;function ze(){clearTimeout(Pe),Pe=setTimeout(function(){$&&(M.style.cssText=$,$=""),x.renderer.$isMousePressed=!1,x.renderer.$keepTextAreaAtCursor&&x.renderer.$moveTextAreaToCursor()},0)}var nn=function(ce){x.textInput.onContextMenu(ce),ze()};p.addListener(M,"mouseup",nn,x),p.addListener(M,"mousedown",function(ce){ce.preventDefault(),ze()},x),p.addListener(x.renderer.scroller,"contextmenu",nn,x),p.addListener(M,"contextmenu",nn,x),y&&We(k,x,M);function We(ce,Me,Re){var qe=null,Ye=!1;Re.addEventListener("keydown",function(ft){qe&&clearTimeout(qe),Ye=!0},!0),Re.addEventListener("keyup",function(ft){qe=setTimeout(function(){Ye=!1},100)},!0);var pt=function(ft){if(document.activeElement===Re&&!(Ye||T||Me.$mouseHandler.isMousePressed)&&!E){var ct=Re.selectionStart,ut=Re.selectionEnd,it=null,Ut=0;if(ct==0?it=u.up:ct==1?it=u.home:ut>F&&R[ut]==`
177
+ `?it=u.end:ct<O&&R[ct-1]==" "?(it=u.left,Ut=g.option):ct<O||ct==O&&F!=O&&ct==ut?it=u.left:ut>F&&R.slice(0,ut).split(`
178
+ `).length>2?it=u.down:ut>F&&R[ut-1]==" "?(it=u.right,Ut=g.option):(ut>F||ut==F&&F!=O&&ct==ut)&&(it=u.right),ct!==ut&&(Ut|=g.shift),it){var Hn=Me.onCommandKey({},Ut,it);if(!Hn&&Me.commands){it=u.keyCodeToString(it);var hr=Me.commands.findKeyCommand(Ut,it);hr&&Me.execCommand(hr)}O=ct,F=ut,Q("")}}};document.addEventListener("selectionchange",pt),Me.on("destroy",function(){document.removeEventListener("selectionchange",pt)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}},i.TextInput=A,i.$setUserAgentForTests=function(k,x){L=k,y=x}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var p=e("../lib/useragent"),v=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,g=a.getButton();if(g!==0){var y=u.getSelectionRange(),b=y.isEmpty();(b||g==1)&&u.selection.moveToPosition(o),g==2&&(u.textInput.onContextMenu(a.domEvent),p.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 g=s(this.$clickSelection,o);o=g.cursor,a=g.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),g=o.selection[a](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(g.start),b=this.$clickSelection.comparePoint(g.end);if(y==-1&&b<=0)l=this.$clickSelection.end,(g.end.row!=u.row||g.end.column!=u.column)&&(u=g.start);else if(b==1&&y>=0)l=this.$clickSelection.start,(g.start.row!=u.row||g.start.column!=u.column)&&(u=g.end);else if(y==-1&&b==1)u=g.end,l=g.start;else{var L=s(this.$clickSelection,u);u=L.cursor,l=L.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=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>v||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,g=u.getBracketRange(l);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},c.prototype.onTripleClick=function(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,g=u-o.t,y=g?a.wheelX/g:o.vx,b=g?a.wheelY/g:o.vy;g<w&&(y=(y+o.vx)/2,b=(b+o.vy)/2);var L=Math.abs(y/b),A=!1;if(L>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(A=!0),L<=1&&l.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(A=!0),A)o.allowed=u;else if(u-o.allowed<w){var k=Math.abs(y)<=1.5*Math.abs(o.vx)&&Math.abs(b)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=y,o.vy=b,A)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,i.DefaultHandlers=h;function f(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(e,i,m){i.preventParentScroll=function(p){p.stopPropagation();var v=p.currentTarget,w=v.scrollHeight>v.clientHeight;w||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var p=this&&this.__extends||function(){var u=function(g,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,L){b.__proto__=L}||function(b,L){for(var A in L)Object.prototype.hasOwnProperty.call(L,A)&&(b[A]=L[A])},u(g,y)};return function(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(g,y);function b(){this.constructor=g}g.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}}(),v=this&&this.__values||function(u){var g=typeof Symbol=="function"&&Symbol.iterator,y=g&&u[g],b=0;if(y)return y.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(g?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,f=e("./lib/scroll").preventParentScroll,s="ace_tooltip",c=function(){function u(g){this.isOpen=!1,this.$element=null,this.$parentNode=g}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(g){this.getElement().textContent=g},u.prototype.setHtml=function(g){this.getElement().innerHTML=g},u.prototype.setPosition=function(g,y){this.getElement().style.left=g+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(g){w.addCssClass(this.getElement(),g)},u.prototype.setTheme=function(g){this.$element.className=s+" "+(g.isDark?"ace_dark ":"")+(g.cssClass||"")},u.prototype.show=function(g,y,b){g!=null&&this.setText(g),y!=null&&b!=null&&this.setPosition(y,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(g){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=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(g){this.popups.push(g),this.updatePopups()},u.prototype.removePopup=function(g){var y=this.popups.indexOf(g);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var g,y,b,L;this.popups.sort(function($,_){return _.priority-$.priority});var A=[];try{for(var k=v(this.popups),x=k.next();!x.done;x=k.next()){var M=x.value,E=!0;try{for(var I=(b=void 0,v(A)),T=I.next();!T.done;T=I.next()){var N=T.value;if(this.doPopupsOverlap(N,M)){E=!1;break}}}catch($){b={error:$}}finally{try{T&&!T.done&&(L=I.return)&&L.call(I)}finally{if(b)throw b.error}}E?A.push(M):M.hide()}}catch($){g={error:$}}finally{try{x&&!x.done&&(y=k.return)&&y.call(k)}finally{if(g)throw g.error}}},u.prototype.doPopupsOverlap=function(g,y){var b=g.getElement().getBoundingClientRect(),L=y.getElement().getBoundingClientRect();return b.left<L.right&&b.right>L.left&&b.top<L.bottom&&b.bottom>L.top},u}(),l=new a;i.popupManager=l,i.Tooltip=c;var o=function(u){p(g,u);function g(y){y===void 0&&(y=document.body);var b=u.call(this,y)||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 L=b.getElement();return L.style.whiteSpace="pre-wrap",L.style.pointerEvents="auto",L.addEventListener("mouseout",b.onMouseOut),L.tabIndex=-1,L.addEventListener("blur",(function(){L.contains(document.activeElement)||this.hide()}).bind(b)),L.addEventListener("wheel",f),b}return g.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},g.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},g.prototype.onMouseMove=function(y,b){this.lastEvent=y,this.lastT=Date.now();var L=b.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||L||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||L||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},g.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;if(this.idleTime-y>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-y);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},g.prototype.isOutsideOfText=function(y){var b=y.editor,L=y.getDocumentPosition(),A=b.session.getLine(L.row);if(L.column==A.length){var k=b.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),x=b.session.documentToScreenPosition(L.row,L.column);if(x.column!=k.column||x.row!=k.row)return!0}return!1},g.prototype.setDataProvider=function(y){this.$gatherData=y},g.prototype.showForRange=function(y,b,L,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var x=y.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(x.theme)),this.isOpen=!0,this.addMarker(b,y.session),this.range=h.fromPoints(b.start,b.end);var M=x.textToScreenCoordinates(b.start.row,b.start.column),E=x.scroller.getBoundingClientRect();M.pageX<E.left&&(M.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(L),I.style.maxHeight="",I.style.display="block";var T=I.clientHeight,N=I.clientWidth,$=window.innerHeight-M.pageY-x.lineHeight,_=!0;M.pageY-T<0&&M.pageY<$&&(_=!1),I.style.maxHeight=(_?M.pageY:$)-k+"px",I.style.top=_?"":M.pageY+x.lineHeight+"px",I.style.bottom=_?window.innerHeight-M.pageY+"px":"",I.style.left=Math.min(M.pageX,window.innerWidth-N-k)+"px"}},g.prototype.addMarker=function(y,b){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=b,this.marker=b&&b.addMarker(y,"ace_highlight-marker","text")},g.prototype.hide=function(y){!y&&document.activeElement==this.getElement()||y&&y.target&&(y.type!="keydown"||y.ctrlKey||y.metaKey)&&this.$element.contains(y.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},g.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},g.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},g.prototype.onMouseOut=function(y){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!y.relatedTarget||this.getElement().contains(y.relatedTarget)||y&&y.currentTarget.contains(y.relatedTarget)||y.relatedTarget.classList.contains("ace_content")||this.hide())},g}(c);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,i,m){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[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 g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),v=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],g=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&g>=l.length&&(l=void 0),{value:l&&l[g++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),f=e("../tooltip").Tooltip,s=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,g=new a(o);l.editor.setDefaultHandler("guttermousedown",function(x){if(!(!o.isFocused()||x.getButton()!=0)){var M=u.getRegion(x);if(M!="foldWidgets"){var E=x.getDocumentPosition().row,I=o.session.selection;if(x.getShiftKey())I.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 y,b;function L(){var x=b.getDocumentPosition().row,M=o.session.getLength();if(x==M){var E=o.renderer.pixelToScreenCoordinates(0,b.y).row,I=b.$pos;if(E>o.session.documentToScreenRow(I.row,I.column))return A()}if(g.showTooltip(x),!!g.isOpen)if(o.on("mousewheel",A),l.$tooltipFollowsMouse)k(b);else{var T=b.getGutterRow(),N=u.$lines.get(T);if(N){var $=N.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=g.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(b)}}function A(){y&&(y=clearTimeout(y)),g.isOpen&&(g.hideTooltip(),o.off("mousewheel",A))}function k(x){g.setPosition(x.x,x.y)}l.editor.setDefaultHandler("guttermousemove",function(x){var M=x.domEvent.target||x.domEvent.srcElement;if(w.hasCssClass(M,"ace_fold-widget"))return A();g.isOpen&&l.$tooltipFollowsMouse&&k(x),b=x,!y&&(y=setTimeout(function(){y=null,b&&!l.isMousePressed?L():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(x){b=null,!(!g.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=c;var a=function(l){p(o,l);function o(u){var g=l.call(this,u.container)||this;return g.editor=u,g}return o.prototype.setPosition=function(u,g){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,L=this.getWidth(),A=this.getHeight();u+=15,g+=15,u+L>y&&(u-=u+L-y),g+A>b&&(g-=20+A),f.prototype.setPosition.call(this,u,g)},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 g,y=this.editor.renderer.$gutterLayer,b=y.$annotations[u],L;b?L={displayText:Array.from(b.displayText),type:Array.from(b.type)}:L={displayText:[],type:[]};var A=y.session.getFoldLine(u);if(A&&y.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},x={error:1,security:2,warning:3,info:4,hint:5},M,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var I=0;I<y.$annotations[E].text.length;I++){var T=y.$annotations[E].type[I];k[T].push(y.$annotations[E].text[I]),(!M||x[T]<x[M])&&(M=T)}if(["error","security","warning"].includes(M)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");L.displayText.push(N),L.type.push(M+"_fold")}}if(L.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<L.displayText.length;E++){var S=w.createElement("span"),R=w.createElement("span");(g=R.classList).add.apply(g,["ace_".concat(L.type[E]),_]),R.setAttribute("aria-label","".concat(o.annotationLabels[L.type[E].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(w.createTextNode(" ")),S.appendChild(R),S.appendChild(w.createTextNode(L.displayText[E])),S.appendChild(w.createElement("br")),$[L.type[E].replace("_fold","")].push(S)}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.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(u){var g,y,b=[],L=["error","security","warning","info","hint"];try{for(var A=v(L),k=A.next();!k.done;k=A.next()){var x=k.value;if(u[x].length){var M=u[x].length===1?o.annotationLabels[x].singular:o.annotationLabels[x].plural;b.push("".concat(u[x].length," ").concat(M))}}}catch(E){g={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(g)throw g.error}}return b.join(", ")},o}(f);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(f,s){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=s,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(f,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 f=this.editor,s=f.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 p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return v.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();i.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,f=200,s=5;function c(l){var o=l.editor,u=p.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var y=o.container,b,L,A,k,x,M,E=0,I,T,N,$,_;this.onDragStart=function(G){if(this.cancelDrag||!y.draggable){var Q=this;return setTimeout(function(){Q.startSelect(),Q.captureMouse(G)},0),G.preventDefault()}x=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),T=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,T=!1,this.setState(null),!o.getReadOnly()){var Q=G.dataTransfer.dropEffect;!I&&Q=="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 L=G.clientX,A=G.clientY,b||F(),E++,G.dataTransfer.dropEffect=I=J(G),v.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return L=G.clientX,A=G.clientY,b||(F(),E++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=J(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&b)return H(),I=null,v.preventDefault(G)},this.onDrop=function(G){if(M){var Q=G.dataTransfer;if(T)switch(I){case"move":x.contains(M.row,M.column)?x={start:M,end:M}:x=o.moveText(x,M);break;case"copy":x=o.moveText(x,M,!0);break}else{var ie=Q.getData("Text");x={start:M,end:o.session.insert(M,ie)},o.focus(),I=null}return H(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(l),o),v.addListener(y,"dragend",this.onDragEnd.bind(l),o),v.addListener(y,"dragenter",this.onDragEnter.bind(l),o),v.addListener(y,"dragover",this.onDragOver.bind(l),o),v.addListener(y,"dragleave",this.onDragLeave.bind(l),o),v.addListener(y,"drop",this.onDrop.bind(l),o);function S(G,Q){var ie=Date.now(),X=!Q||G.row!=Q.row,ae=!Q||G.column!=Q.column;if(!$||X||ae)o.moveCursorToPosition(G),$=ie,_={x:L,y:A};else{var ve=a(_.x,_.y,L,A);ve>s?$=null:ie-$>=f&&(o.renderer.scrollCursorIntoView(),$=null)}}function R(G,Q){var ie=Date.now(),X=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,ve=o.renderer.scroller.getBoundingClientRect(),we={x:{left:L-ve.left,right:ve.right-L},y:{top:A-ve.top,bottom:ve.bottom-A}},fe=Math.min(we.x.left,we.x.right),$e=Math.min(we.y.top,we.y.bottom),at={row:G.row,column:G.column};fe/ae<=2&&(at.column+=we.x.left<we.x.right?-3:2),$e/X<=1&&(at.row+=we.y.top<we.y.bottom?-1:1);var Bt=G.row!=at.row,dt=G.column!=at.column,gt=!Q||G.row!=Q.row;Bt||dt&&!gt?N?ie-N>=h&&o.renderer.scrollCursorIntoView(at):N=ie:N=null}function O(){var G=M;M=o.renderer.screenToTextCoordinates(L,A),S(M,G),R(M,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(k),O(),k=setInterval(O,20),E=0,v.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(b),b=null,o.selection.fromOrientedRange(x),o.isFocused()&&!T&&o.$resetCursorStyle(),x=null,M=null,E=0,N=null,$=null,v.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&b&&H()},20))}function q(G){var Q=G.types;return!Q||Array.prototype.some.call(Q,function(ie){return ie=="text/plain"||ie=="Text"})}function J(G){var Q=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],X=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var ve="none";return X&&Q.indexOf(ae)>=0?ve="copy":ie.indexOf(ae)>=0?ve="move":Q.indexOf(ae)>=0&&(ve="copy"),ve}}(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(),g=l.getButton(),y=l.domEvent.detail||1;if(y===1&&g===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 L=o.container;L.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,g){return Math.sqrt(Math.pow(u-l,2)+Math.pow(g-o,2))}i.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var p=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,f){var s="scroll",c,a,l,o,u,g,y=0,b,L=0,A=0,k=0,x,M;function E(){var S=window.navigator&&window.navigator.clipboard,R=!1,O=function(){var W=f.getCopyText(),V=f.session.getUndoManager().hasUndo();M.replaceChild(w.buildDom(R?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&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"]),M.firstChild)},F=function(W){return f.commands.canExecute(W,f)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!R)return R=!R,O();V=="paste"?S.readText().then(function(q){f.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(V)),M.firstChild.style.display="none",R=!1,V!="openCommandPalette"&&f.focus()};M=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){s="menu",W.stopPropagation(),W.preventDefault(),f.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function I(){if(!f.getOption("enableMobileMenu")){M&&T();return}M||E();var S=f.selection.cursor,R=f.renderer.textToScreenCoordinates(S.row,S.column),O=f.renderer.textToScreenCoordinates(0,0).pageX,F=f.renderer.scrollLeft,H=f.container.getBoundingClientRect();M.style.top=R.pageY-H.top-3+"px",R.pageX-H.left<H.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=O+F-H.left+"px"),M.style.display="",M.firstChild.style.display="none",f.on("input",T)}function T(S){M&&(M.style.display="none"),f.off("input",T)}function N(){u=null,clearTimeout(u);var S=f.selection.getRange(),R=S.contains(b.row,b.column);(S.isEmpty()||!R)&&(f.selection.moveToPosition(b),f.selection.selectWord()),s="wait",I()}function $(){u=null,clearTimeout(u),f.selection.moveToPosition(b);var S=L>=2?f.selection.getLineRange(b.row):f.session.getBracketRange(b);S&&!S.isEmpty()?f.selection.setRange(S):f.selection.selectWord(),s="wait"}v.addListener(h,"contextmenu",function(S){if(x){var R=f.textInput.getElement();R.focus()}},f),v.addListener(h,"touchstart",function(S){var R=S.touches;if(u||R.length>1){clearTimeout(u),u=null,l=-1,s="zoom";return}x=f.$mouseHandler.isMousePressed=!0;var O=f.renderer.layerConfig.lineHeight,F=f.renderer.layerConfig.lineHeight,H=S.timeStamp;o=H;var W=R[0],V=W.clientX,q=W.clientY;Math.abs(c-V)+Math.abs(a-q)>O&&(l=-1),c=S.clientX=V,a=S.clientY=q,A=k=0;var J=new p(S,f);if(b=J.getDocumentPosition(),H-l<500&&R.length==1&&!y)L++,S.preventDefault(),S.button=0,$();else{L=0;var G=f.selection.cursor,Q=f.selection.isEmpty()?G:f.selection.anchor,ie=f.renderer.$cursorLayer.getPixelPosition(G,!0),X=f.renderer.$cursorLayer.getPixelPosition(Q,!0),ae=f.renderer.scroller.getBoundingClientRect(),ve=f.renderer.layerConfig.offset,we=f.renderer.scrollLeft,fe=function(Bt,dt){return Bt=Bt/F,dt=dt/O-.75,Bt*Bt+dt*dt};if(S.clientX<ae.left){s="zoom";return}var $e=fe(S.clientX-ae.left-ie.left+we,S.clientY-ae.top-ie.top+ve),at=fe(S.clientX-ae.left-X.left+we,S.clientY-ae.top-X.top+ve);$e<3.5&&at<3.5&&(s=$e>at?"cursor":"anchor"),at<3.5?s="anchor":$e<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}l=H},f),v.addListener(h,"touchend",function(S){x=f.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),s=="zoom"?(s="",y=0):u?(f.selection.moveToPosition(b),y=0,I()):s=="scroll"?(_(),T()):I(),clearTimeout(u),u=null},f),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var R=S.touches;if(!(R.length>1||s=="zoom")){var O=R[0],F=c-O.clientX,H=a-O.clientY;if(s=="wait")if(F*F+H*H>4)s="cursor";else return S.preventDefault();c=O.clientX,a=O.clientY,S.clientX=O.clientX,S.clientY=O.clientY;var W=S.timeStamp,V=W-o;if(o=W,s=="scroll"){var q=new p(S,f);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(A=F/V,k=H/V),f._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var J=new p(S,f),G=J.getDocumentPosition();s=="cursor"?f.selection.moveCursorToPosition(G):s=="anchor"&&f.selection.setSelectionAnchor(G.row,G.column),f.renderer.scrollCursorIntoView(G),S.preventDefault()}}},f);function _(){y+=60,g=setInterval(function(){y--<=0&&(clearInterval(g),g=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),y<20&&(A=.9*A),y<20&&(k=.9*k);var S=f.session.getScrollTop();f.renderer.scrollBy(10*A,10*k),S==f.session.getScrollTop()&&(y=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,f=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,a=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var g=this;this.editor=u,new w(this),new h(this),new s(this);var y=function(A){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},b=u.renderer.getMouseEventTarget();p.addListener(b,"click",this.onMouseEvent.bind(this,"click"),u),p.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),p.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),p.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var L=u.renderer.$gutter;p.addListener(L,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),p.addListener(L,"click",this.onMouseEvent.bind(this,"gutterclick"),u),p.addListener(L,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),p.addListener(L,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),p.addListener(b,"mousedown",y,u),p.addListener(L,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(p.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),p.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(g.state||g.$dragDelay||!g.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),x=u.session.selection.getRange(),M=u.renderer;!x.isEmpty()&&x.insideStart(k.row,k.column)?M.setCursorStyle("default"):M.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,g){this.editor.session&&this.editor._emit(u,new f(g,this.editor))},o.prototype.onMouseMove=function(u,g){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new f(g,this.editor))},o.prototype.onMouseWheel=function(u,g){var y=new f(g,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=g.wheelX,y.wheelY=g.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,g){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var L=this,A=function(I){if(I){if(v.isWebKit&&!I.which&&L.releaseMouse)return L.releaseMouse();L.x=I.clientX,L.y=I.clientY,g&&g(I),L.mouseEvent=new f(I,L.editor),L.$mouseMoved=!0}},k=function(I){y.off("beforeEndOperation",M),clearInterval(E),y.session&&x(),L[L.state+"End"]&&L[L.state+"End"](I),L.state="",L.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),L.$onCaptureMouseMove=L.releaseMouse=null,I&&L.onMouseEvent("mouseup",I),y.endOperation()},x=function(){L[L.state]&&L[L.state](),L.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var M=function(I){L.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(L[L.state+"End"]&&L[L.state+"End"](),L.state="",L.releaseMouse())};y.on("beforeEndOperation",M),y.startOperation({command:{name:"mouse"}}),L.$onCaptureMouseMove=A,L.releaseMouse=p.capture(this.editor.container,A,k);var E=setInterval(x,20)},o.prototype.cancelContextMenu=function(){var u=(function(g){g&&g.domEvent&&g.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),g&&g.domEvent&&p.stopEvent(g.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h){h.on("click",function(f){var s=f.getDocumentPosition(),c=h.session,a=c.getFoldAt(s.row,s.column,1);a&&(f.getAccelKey()?c.removeFold(a):c.expandFold(a),f.stop());var l=f.domEvent&&f.domEvent.target;l&&p.hasCssClass(l,"ace_inline_button")&&p.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var c=f.getDocumentPosition().row,a=h.session;a.foldWidgets&&a.foldWidgets[c]&&h.session.onFoldWidgetClick(c,f),h.isFocused()||h.focus(),f.stop()}}),h.on("gutterdblclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var c=f.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}))}f.stop()}})}return w}();i.FoldHandler=v}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,i,m){var p=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(f){this.$editor=f,this.$data={editor:f},this.$handlers=[],this.setDefaultHandler(f.commands)}return h.prototype.setDefaultHandler=function(f){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=f,this.addKeyboardHandler(f,0)},h.prototype.setKeyboardHandler=function(f){var s=this.$handlers;if(s[s.length-1]!=f){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(f,1)}},h.prototype.addKeyboardHandler=function(f,s){if(f){typeof f=="function"&&!f.handleKeyboard&&(f.handleKeyboard=f);var c=this.$handlers.indexOf(f);c!=-1&&this.$handlers.splice(c,1),s==null?this.$handlers.push(f):this.$handlers.splice(s,0,f),c==-1&&f.attach&&f.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(f){var s=this.$handlers.indexOf(f);return s==-1?!1:(this.$handlers.splice(s,1),f.detach&&f.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var f=this.$data,s=f.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(s,f)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(f,s,c,a){for(var l,o=!1,u=this.$editor.commands,g=this.$handlers.length;g--&&(l=this.$handlers[g].handleKeyboard(this.$data,f,s,c,a),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,a),o&&a&&f!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&v.stopEvent(a),o))););return!o&&f==-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(f,s,c){var a=p.keyCodeToString(c);return this.$callKeyboardHandlers(s,a,c,f)},h.prototype.onTextInput=function(f){return this.$callKeyboardHandlers(-1,f)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var p=0,v=0,w=!1,h=!1,f=!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,g=2,y=3,b=4,L=5,A=6,k=7,x=8,M=9,E=10,I=11,T=12,N=13,$=14,_=15,S=16,R=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,L,A,x,L,O,O,O,O,O,O,O,O,O,O,O,O,O,O,L,L,L,A,x,b,b,I,I,I,b,b,b,b,b,E,M,E,M,M,g,g,g,g,g,g,g,g,g,g,M,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,L,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,M,b,I,I,I,I,b,b,b,b,o,b,b,O,b,b,I,I,g,g,b,o,b,b,b,g,o,b,b,b,b,b],H=[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,L,N,$,_,S,R,M,I,I,I,I,I,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,M,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 W(G,Q,ie,X){var ae=p?c:s,ve=null,we=null,fe=null,$e=0,at=null,Bt=null,dt=-1,gt=null,cn=null,Nt=[];if(!X)for(gt=0,X=[];gt<ie;gt++)X[gt]=J(G[gt]);for(v=p,w=!1,h=!1,f=!1,cn=0;cn<ie;cn++){if(ve=$e,Nt[cn]=we=q(G,X,Nt,cn),$e=ae[ve][we],at=$e&240,$e&=15,Q[cn]=fe=ae[$e][5],at>0)if(at==16){for(gt=dt;gt<cn;gt++)Q[gt]=1;dt=-1}else dt=-1;if(Bt=ae[$e][6],Bt)dt==-1&&(dt=cn);else if(dt>-1){for(gt=dt;gt<cn;gt++)Q[gt]=fe;dt=-1}X[cn]==L&&(Q[cn]=0),v|=fe}if(f){for(gt=0;gt<ie;gt++)if(X[gt]==A){Q[gt]=p;for(var Zt=gt-1;Zt>=0&&X[Zt]==x;Zt--)Q[Zt]=p}}}function V(G,Q,ie){if(!(v<G)){if(G==1&&p==l&&!h){ie.reverse();return}for(var X=ie.length,ae=0,ve,we,fe,$e;ae<X;){if(Q[ae]>=G){for(ve=ae+1;ve<X&&Q[ve]>=G;)ve++;for(we=ae,fe=ve-1;we<fe;we++,fe--)$e=ie[we],ie[we]=ie[fe],ie[fe]=$e;ae=ve}ae++}}}function q(G,Q,ie,X){var ae=Q[X],ve,we,fe,$e;switch(ae){case o:case u:w=!1;case b:case y:return ae;case g:return w?y:g;case k:return w=!0,u;case x:return b;case M:return X<1||X+1>=Q.length||(ve=ie[X-1])!=g&&ve!=y||(we=Q[X+1])!=g&&we!=y?b:(w&&(we=y),we==ve?we:b);case E:return ve=X>0?ie[X-1]:L,ve==g&&X+1<Q.length&&Q[X+1]==g?g:b;case I:if(X>0&&ie[X-1]==g)return g;if(w)return b;for($e=X+1,fe=Q.length;$e<fe&&Q[$e]==I;)$e++;return $e<fe&&Q[$e]==g?g:b;case T:for(fe=Q.length,$e=X+1;$e<fe&&Q[$e]==T;)$e++;if($e<fe){var at=G[X],Bt=at>=1425&&at<=2303||at==64286;if(ve=Q[$e],Bt&&(ve==u||ve==k))return u}return X<1||(ve=Q[X-1])==L?b:ie[X-1];case L:return w=!1,h=!0,p;case A:return f=!0,b;case N:case $:case S:case R:case _:w=!1;case O:return b}}function J(G){var Q=G.charCodeAt(0),ie=Q>>8;return ie==0?Q>191?o:F[Q]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?T:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Q==1642?I:/[\u06f0-\u06f9]/.test(G)?g:k:ie==32&&Q<=8287?H[Q&255]:ie==254&&Q>=65136?k:b}i.L=o,i.R=u,i.EN=g,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Q,ie){if(G.length<2)return{};var X=G.split(""),ae=new Array(X.length),ve=new Array(X.length),we=[];p=ie?l:a,W(X,we,X.length,Q);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,we,ae),V(1,we,ae);for(var fe=0;fe<ae.length-1;fe++)Q[fe]===y?we[fe]=i.AN:we[fe]===u&&(Q[fe]>k&&Q[fe]<N||Q[fe]===b||Q[fe]===O)?we[fe]=i.ON_R:fe>0&&X[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(X[fe])&&(we[fe-1]=we[fe]=i.R_H,fe++);X[X.length-1]===i.DOT&&(we[X.length-1]=i.B),X[0]==="‫"&&(we[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)ve[fe]=we[ae[fe]];return{logicalFromVisual:ae,bidiLevels:ve}},i.hasBidiCharacters=function(G,Q){for(var ie=!1,X=0;X<G.length;X++)Q[X]=J(G.charAt(X)),!ie&&(Q[X]==u||Q[X]==k||Q[X]==y)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Q){for(var ie=0;ie<Q.logicalFromVisual.length;ie++)if(Q.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,i,m){var p=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function f(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(s.getValue())}return f.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},f.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},f.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},f.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},f.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[p.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:p.DOT))}else this.line+=this.showInvisibles?l:p.DOT;var u=this.session,g=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,L){return b===" "||u.isFullWidth(b.charCodeAt(0))?(y=b===" "?u.getScreenTabSize(L+g):2,g+=y-1,v.stringRepeat(p.DOT,y)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var s=[];p.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.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[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=c,this.charWidths[p.R]=this.charWidths[p.AN]=a,this.charWidths[p.R_H]=a*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},f.prototype.setEolChar=function(s){this.EOL=s},f.prototype.setContentWidth=function(s){this.contentWidth=s},f.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},f.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)},f.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=p.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=c&&o[l]%2!==0&&l++;for(var g=0;g<l;g++)u+=this.charWidths[o[g]];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},f.prototype.getSelections=function(s,c){var a=this.bidiMap,l=a.bidiLevels,o,u=[],g=0,y=Math.min(s,c)-this.wrapIndent,b=Math.max(s,c)-this.wrapIndent,L=!1,A=!1,k=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var x,M=0;M<l.length;M++)x=a.logicalFromVisual[M],o=l[M],L=x>=y&&x<b,L&&!A?k=g:!L&&A&&u.push({left:k,width:g-k}),g+=this.charWidths[o],A=L;if(L&&M===l.length&&u.push({left:k,width:g-k}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},f.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,g=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+g/2;){if(l+=g,o===u.length-1){g=0;break}g=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(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&&g===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&g!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},f}();i.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=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,g=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||g)&&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),g=u.match(/^\s*/);g[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=g[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=v.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 g=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<g&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var y=this.$shortWordEndIndex(o);this.moveCursorTo(c,a+y)},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=v.stringReverse(o),g=this.$shortWordEndIndex(u);return this.moveCursorTo(c,a-g)},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 g=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&a===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.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}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,p.implement(f.prototype,w),i.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,i,m){var p=e("./lib/report_error").reportError,v=2e3,w=function(){function h(f){this.splitRegex,this.states=f,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",g=[],y=0;y<c.length;y++){var b=c[y];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 L=b.regex,A=new RegExp("(?:("+L+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||A==1?b.token=b.token[0]:A-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:A-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(A>1?b.onMatch=this.$applyToken:b.onMatch=b.token),A>1&&(/\\\d/.test(b.regex)?L=b.regex.replace(/\\([0-9]+)/g,function(k,x){return"\\"+(parseInt(x,10)+l+1)}):(A=1,L=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&g.push(b)),o[l]=y,l+=A,a.push(L),b.onMatch||(b.onMatch=null)}}a.length||(o[0]=0,a.push("$")),g.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(f){v=f|0},h.prototype.$applyToken=function(f){var s=this.splitRegex.exec(f).slice(1),c=this.token.apply(this,s);if(typeof c=="string")return[{type:c,value:f}];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(f){if(!f)return[];var s=this.splitRegex.exec(f);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(f){var s=f.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,a){return a?"(?:":c});return s},h.prototype.createSplitterRegexp=function(f,s){if(f.indexOf("(?=")!=-1){var c=0,a=!1,l={};f.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,g,y,b,L){return a?a=b!="]":b?a=!0:y?(c==l.stack&&(l.end=L+1,l.stack=-1),c--):g&&(c++,g.length!=1&&(l.stack=c,l.start=L)),o}),l.end!=null&&/^\)*$/.test(f.substr(l.end))&&(f=f.substring(0,l.start)+f.substr(l.end))}return f.charAt(0)!="^"&&(f="^"+f),f.charAt(f.length-1)!="$"&&(f+="$"),new RegExp(f,(s||"").replace("g",""))},h.prototype.getLineTokens=function(f,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 g,y=[],b=0,L=0,A={type:null,value:""};g=u.exec(f);){var k=o.defaultToken,x=null,M=g[0],E=u.lastIndex;if(E-M.length>b){var I=f.substring(b,E-M.length);A.type==k?A.value+=I:(A.type&&y.push(A),A={type:k,value:I})}for(var T=0;T<g.length-2;T++)if(g[T+1]!==void 0){x=l[o[T]],x.onMatch?k=x.onMatch(M,a,c,f):k=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(M){if(typeof k=="string")(!x||x.merge!==!1)&&A.type===k?A.value+=M:(A.type&&y.push(A),A={type:k,value:M});else if(k){A.type&&y.push(A),A={type:null,value:""};for(var T=0;T<k.length;T++)y.push(k[T])}}if(b==f.length)break;if(b=E,L++>v){for(L>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:f});b<f.length;)A.type&&y.push(A),A={value:f.substring(b,b+=500),type:"overflow"};a="start",c=[];break}}return A.type&&y.push(A),c.length>1&&c[0]!==a&&c.unshift("#tmp",a),{tokens:y,state:c.length?c:a}},h}();w.prototype.reportError=p,i.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){var p=e("../lib/deep_copy").deepCopy,v;v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(f,s){if(!s){for(var c in f)this.$rules[c]=f[c];return}for(var c in f){for(var a=f[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(f,s,c,a,l){var o=typeof f=="function"?new f().getRules():f;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var g in o)a.push(s+g)}if(this.addRules(o,s),c)for(var y=Array.prototype[l?"push":"unshift"],u=0;u<a.length;u++)y.apply(this.$rules[a[u]],p(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(f,s){return(f!="start"||s.length)&&s.unshift(this.nextState,f),this.nextState},h=function(f,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var f=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],g=null;Array.isArray(u)&&(g=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var y=u.next||u.push;if(y&&Array.isArray(y)){var b=u.stateName;b||(b=u.token,typeof b!="string"&&(b=b[0]||""),s[b]&&(b+=f++)),s[b]=y,u.next=b,c(b)}else y=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=w,delete u.push),u.rules)for(var L in u.rules)s[L]?s[L].push&&s[L].push.apply(s[L],u.rules[L]):s[L]=u.rules[L];var A=typeof u=="string"?u:u.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?g=A.map(function(x){return s[x]}):g=s[A]),g){var k=[o,1].concat(g);u.noEscape&&(k=k.filter(function(x){return!x.next})),l.splice.apply(l,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(c,this)},this.createKeywordMapper=function(f,s,c,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(f).forEach(function(o){for(var u=f[o],g=u.split(a||"|"),y=g.length;y--;){var b=g[y];this.$keywordList.push(b),c&&(b=b.toLowerCase()),l[b]=o}},this),f=null,c?function(o){return l[o.toLowerCase()]||s}:function(o){return l[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(v.prototype),i.TextHighlightRules=v}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,i,m){var p;p=function(){this.$behaviours={}},(function(){this.add=function(v,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[v]:this.$behaviours[v]={}}this.$behaviours[v][w]=h},this.addBehaviours=function(v){for(var w in v)for(var h in v[w])this.add(w,h,v[w][h])},this.remove=function(v){this.$behaviours&&this.$behaviours[v]&&delete this.$behaviours[v]},this.inherit=function(v,w){if(typeof v=="function")var h=new v().getBehaviours(w);else var h=v.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(v){if(v){for(var w={},h=0;h<v.length;h++)this.$behaviours[v[h]]&&(w[v[h]]=this.$behaviours[v[h]]);return w}else return this.$behaviours}}).call(p.prototype),i.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,i,m){var p=e("./range").Range,v=function(){function w(h,f,s){this.$session=h,this.$row=f,this.$rowTokens=h.getTokens(f);var c=h.getTokenAt(f,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,f=this.$tokenIndex,s=h[f].start;if(s!==void 0)return s;for(s=0;f>0;)f-=1,s+=h[f].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],f=this.getCurrentTokenColumn();return new p(this.$row,f,this.$row,f+h.value.length)},w}();i.TokenIterator=v}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,i,m){var p=e("../../lib/oop"),v=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,a={},l={'"':'"',"'":"'"},o=function(y){var b=-1;if(y.multiSelect&&(b=y.selection.index,a.rangeCount!=y.multiSelect.rangeCount&&(a={rangeCount:y.multiSelect.rangeCount})),a[b])return c=a[b];c=a[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(y,b,L,A){var k=y.end.row-y.start.row;return{text:L+b+A,selection:[0,y.start.column+1,k,y.end.column+(k?0:1)]}},g;g=function(y){y=y||{},this.add("braces","insertion",function(b,L,A,k,x){var M=A.getCursorPosition(),E=k.doc.getLine(M.row);if(x=="{"){o(A);var I=A.getSelectionRange(),T=k.doc.getTextRange(I),N=k.getTokenAt(M.row,M.column);if(T!==""&&T!=="{"&&A.getWrapBehavioursEnabled())return u(I,T,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[M.column-N.start-1]!=="$"?void 0:(g.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(g.isSaneInsertion(A,k))return/[\]\}\)]/.test(E[M.column])||A.inMultiSelectMode||y.braces?(g.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(x=="}"){o(A);var _=E.substring(M.column,M.column+1);if(_=="}"){var S=k.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(S!==null&&g.isAutoInsertedClosing(M,E,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(x==`
180
+ `||x==`\r
181
+ `){o(A);var R="";g.isMaybeInsertedClosing(M,E)&&(R=h.stringRepeat("}",c.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var _=E.substring(M.column,M.column+1);if(_==="}"){var O=k.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(R)var F=this.$getIndent(E);else{g.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
182
+ `+H+`
183
+ `+F+R,selection:[1,H.length,1,H.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,L,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="{"){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.end.column,x.end.column+1);if(I=="}")return x.end.column++,x;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,L,A,k,x){if(x=="("){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"(",")");if(g.isSaneInsertion(A,k))return g.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(x==")"){o(A);var I=A.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N==")"){var $=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if($!==null&&g.isAutoInsertedClosing(I,T,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,L,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="("){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.start.column+1,x.start.column+2);if(I==")")return x.end.column++,x}}),this.add("brackets","insertion",function(b,L,A,k,x){if(x=="["){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"[","]");if(g.isSaneInsertion(A,k))return g.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(x=="]"){o(A);var I=A.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N=="]"){var $=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if($!==null&&g.isAutoInsertedClosing(I,T,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,L,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="["){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.start.column+1,x.start.column+2);if(I=="]")return x.end.column++,x}}),this.add("string_dquotes","insertion",function(b,L,A,k,x){var M=k.$mode.$quotes||l;if(x.length==1&&M[x]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(x)!=-1)return;o(A);var E=x,I=A.getSelectionRange(),T=k.doc.getTextRange(I);if(T!==""&&(T.length!=1||!M[T])&&A.getWrapBehavioursEnabled())return u(I,T,E,E);if(!T){var N=A.getCursorPosition(),$=k.doc.getLine(N.row),_=$.substring(N.column-1,N.column),S=$.substring(N.column,N.column+1),R=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&R&&/escape/.test(R.type))return null;var F=R&&/string|escape/.test(R.type),H=!O||/string|escape/.test(O.type),W;if(S==E)W=F!==H,W&&/string\.end/.test(O.type)&&(W=!1);else{if(F&&!H||F&&H)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var J=V.test(S),G=k.$mode.$pairQuotesAfter,Q=G&&G[E]&&G[E].test(_);if(!Q&&q||J||S&&!/[\s;,.})\]\\]/.test(S))return null;var ie=$[N.column-2];if(_==E&&(ie==E||V.test(ie)))return null;W=!0}return{text:W?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,L,A,k,x){var M=k.$mode.$quotes||l,E=k.doc.getTextRange(x);if(!x.isMultiLine()&&M.hasOwnProperty(E)){o(A);var I=k.doc.getLine(x.start.row),T=I.substring(x.start.column+1,x.start.column+2);if(T==E)return x.end.column++,x}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,L,A,k,x){if(b==="doc-start"&&(x===`
184
+ `||x===`\r
185
+ `)&&A.selection.isEmpty()){var M=A.getCursorPosition();if(M.column===0)return;for(var E=k.doc.getLine(M.row),I=k.doc.getLine(M.row+1),T=k.getTokens(M.row),N=0,$=0;$<T.length;$++){N+=T[$].value.length;var _=T[$];if(N>=M.column){if(N===M.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var S=T[$+1];if(!S||!/\.doc/.test(S.type))return}}var R=M.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&R>F&&R<F+3||O!==-1&&F!==-1&&R>=O&&R<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(E);if(/\s*\*/.test(I))return/^\s*\*/.test(E)?{text:x+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:x+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(E.substring(0,M.column)))return{text:x+H+" * "+x+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},g.isSaneInsertion=function(y,b){var L=y.getCursorPosition(),A=new w(b,L.row,L.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",f)){if(/[)}\]]/.test(y.session.getLine(L.row)[L.column]))return!0;var k=new w(b,L.row,L.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",f))return!1}return A.stepForward(),A.getCurrentTokenRow()!==L.row||this.$matchTokenType(A.getCurrentToken()||"text",s)},g.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},g.recordAutoInsert=function(y,b,L){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=A.row,c.autoInsertedLineEnd=L+k.substr(A.column),c.autoInsertedBrackets++},g.recordMaybeInsert=function(y,b,L){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=A.row,c.maybeInsertedLineStart=k.substr(0,A.column)+L,c.maybeInsertedLineEnd=k.substr(A.column),c.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(y,b,L){return c.autoInsertedBrackets>0&&y.row===c.autoInsertedRow&&L===c.autoInsertedLineEnd[0]&&b.substr(y.column)===c.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(y,b){return c.maybeInsertedBrackets>0&&y.row===c.maybeInsertedRow&&b.substr(y.column)===c.maybeInsertedLineEnd&&b.substr(0,y.column)==c.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},p.inherits(g,v),i.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(e,i,m){for(var p=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],v=0,w=[],h=0;h<p.length;h+=2)w.push(v+=p[h]),p[h+1]&&w.push(45,v+=p[h+1]);i.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,i,m){var p=e("../config"),v=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,f=e("../unicode"),s=e("../lib/lang"),c=e("../token_iterator").TokenIterator,a=e("../range").Range,l;l=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+f.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+f.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new v(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,g,y){var b=u.doc,L=!0,A=!0,k=1/0,x=u.getTabSize(),M=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var E=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),M=u.getUseSoftTabs();var T=function(W,V){var q=W.match(E);if(q){var J=q[1].length,G=q[0].length;!S(W,J,G)&&q[0][G-1]==" "&&G--,b.removeInLine(V,J,G)}},N=I+" ",$=function(W,V){(!L||/\S/.test(W))&&(S(W,k,k)?b.insertInLine({row:V,column:k},N):b.insertInLine({row:V,column:k},I))},_=function(W,V){return E.test(W)},S=function(W,V,q){for(var J=0;V--&&W.charAt(V)==" ";)J++;if(J%x!=0)return!1;for(var J=0;W.charAt(q++)==" ";)J++;return x>2?J%x!=x-1:J%x==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,R=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),O=new RegExp("(?:"+s.escapeRegExp(R)+")\\s*$"),$=function(Q,ie){_(Q,ie)||(!L||/\S/.test(Q))&&(b.insertInLine({row:ie,column:Q.length},R),b.insertInLine({row:ie,column:k},I))},T=function(Q,ie){var X;(X=Q.match(O))&&b.removeInLine(ie,Q.length-X[0].length,Q.length),(X=Q.match(E))&&b.removeInLine(ie,X[1].length,X[0].length)},_=function(Q,ie){if(E.test(Q))return!0;for(var X=u.getTokens(ie),ae=0;ae<X.length;ae++)if(X[ae].type==="comment")return!0}}function F(W){for(var V=g;V<=y;V++)W(b.getLine(V),V)}var H=1/0;F(function(W,V){var q=W.search(/\S/);q!==-1?(q<k&&(k=q),A&&!_(W,V)&&(A=!1)):H>W.length&&(H=W.length)}),k==1/0&&(k=H,L=!1,A=!1),M&&k%x!=0&&(k=Math.floor(k/x)*x),F(A?T:$)},this.toggleBlockComment=function(o,u,g,y){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var L=new c(u,y.row,y.column),A=L.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),x,M;if(A&&/comment/.test(A.type)){for(var E,I;A&&/comment/.test(A.type);){var T=A.value.indexOf(b.start);if(T!=-1){var N=L.getCurrentTokenRow(),$=L.getCurrentTokenColumn()+T;E=new a(N,$,N,$+b.start.length);break}A=L.stepBackward()}for(var L=new c(u,y.row,y.column),A=L.getCurrentToken();A&&/comment/.test(A.type);){var T=A.value.indexOf(b.end);if(T!=-1){var N=L.getCurrentTokenRow(),$=L.getCurrentTokenColumn()+T;I=new a(N,$,N,$+b.end.length);break}A=L.stepForward()}I&&u.remove(I),E&&(u.remove(E),x=E.start.row,M=-b.start.length)}else M=b.start.length,x=g.start.row,u.insert(g.end,b.end),u.insert(g.start,b.start);k.start.row==x&&(k.start.column+=M),k.end.row==x&&(k.end.column+=M),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,g){return this.$getIndent(u)},this.checkOutdent=function(o,u,g){return!1},this.autoOutdent=function(o,u,g){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var g=o[u],y=g.prototype.$id,b=p.$modes[y];b||(p.$modes[y]=b=new g),p.$modes[u]||(p.$modes[u]=b),this.$embeds.push(u),this.$modes[u]=b}for(var L=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(M){(function(E){var I=L[M],T=E[I];E[L[M]]=function(){return this.$delegator(I,arguments,T)}})(k)},k=this,u=0;u<L.length;u++)A(u)},this.$delegator=function(o,u,g){var y=u[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var b=y[2][y[2].length-1],L=this.$modes[b];if(L)return L[o].apply(L,[y[1]].concat([].slice.call(u,1)))}y=y[0]||"start"}for(var A=0;A<this.$embeds.length;A++)if(this.$modes[this.$embeds[A]]){var k=y.split(this.$embeds[A]);if(!k[0]&&k[1]){u[0]=k[1];var L=this.$modes[this.$embeds[A]];return L[o].apply(L,u)}}var x=g.apply(this,u);return g?x:void 0},this.transformAction=function(o,u,g,y,b){if(this.$behaviour){var L=this.$behaviour.getBehaviours();for(var A in L)if(L[A][u]){var k=L[A][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,g=[];for(var y in u)for(var b=u[y],L=0,A=b.length;L<A;L++)if(typeof b[L].token=="string")/keyword|support|storage/.test(b[L].token)&&g.push(b[L].regex);else if(typeof b[L].token=="object"){for(var k=0,x=b[L].token.length;k<x;k++)if(/keyword|support|storage/.test(b[L].token[k])){var y=b[L].regex.match(/\(.+?\)/g)[k];g.push(y.substr(1,y.length-2))}}this.completionKeywords=g}return o?g.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,g,y){var b=this.$keywordList||this.$createKeywordList();return b.map(function(L){return{name:L,value:L,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),i.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("./lib/dom"),v=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 f;return this.lineWidgets?f=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:f=0,!this.$useWrapMode||!this.$wrapData[h]?1+f:this.$wrapData[h].length+1+f},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(f){f&&f.rowCount&&!f.hidden&&(h+=f.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 f=this.editor;if(f){this.editor=null,f.widgetManager=null,f.renderer.off("beforeRender",this.measureWidgets),f.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,f){var s=f.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 f=this.session.lineWidgets;if(f){var s=h.start.row,c=h.end.row-s;if(c!==0)if(h.action=="remove"){var a=f.splice(s+1,c);!f[s]&&a[a.length-1]&&(f[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);f[s]&&f[s].column!=null&&h.start.column>f[s].column&&s++,l.unshift(s,0),f.splice.apply(f,l),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var f=!0;h.forEach(function(s,c){if(s)for(f=!1,s.row=c;s.$oldWidget;)s.$oldWidget.row=c,s=s.$oldWidget}),f&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[h.row];return f&&(h.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._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 f=this.editor.renderer;h.html&&!h.el&&(h.el=p.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=p.createElement("div"),h.el.textContent=h.text),h.el&&(p.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&p.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",f.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/f.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,f),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 f=this.session.lineWidgets[h.row];if(f==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;f;){if(f.$oldWidget==h){f.$oldWidget=h.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var f=this.session.lineWidgets,s=f&&f[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,f){var s=this.session._changedWidgets,c=f.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,f.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,f){var s=f.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,f.$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,f.container.appendChild(u.el));var g=f.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(g+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=g-s.offset+"px";var y=u.coverGutter?0:f.gutterWidth;u.fixedWidth||(y-=f.scrollLeft),u.el.style.left=y+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=f.scrollBar.getWidth()+"px":u.el.style.right=""}}}},w}();i.LineWidgets=v}),ace.define("ace/apply_delta",["require","exports","module"],function(e,i,m){i.applyDelta=function(p,v,w){var h=v.start.row,f=v.start.column,s=p[h]||"";switch(v.action){case"insert":var c=v.lines;if(c.length===1)p[h]=s.substring(0,f)+v.lines[0]+s.substring(f);else{var a=[h,1].concat(v.lines);p.splice.apply(p,a),p[h]=s.substring(0,f)+p[h],p[h+v.lines.length-1]+=s.substring(f)}break;case"remove":var l=v.end.column,o=v.end.row;h===o?p[h]=s.substring(0,f)+s.substring(l):p.splice(h,o-h+1,s.substring(0,f)+p[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("./lib/oop"),v=e("./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=f(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,p.implement(w.prototype,v);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 f(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),g=s.start,y=l?g:s.end;return h(c,g,a)?{row:c.row,column:c.column}:h(y,c,!a)?{row:c.row+o,column:c.column+(c.row==y.row?u:0)}:{row:g.row,column:g.column}}i.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,i,m){var p=e("./lib/oop"),v=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=e("./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 f(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),g=this.clippedPos(a,o);return this.applyDelta({start:u,end:g,action:"remove",lines:this.getLinesForRange({start:u,end:g})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(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,g=o?a-1:a,y=o?this.getLine(g).length:0,b=u?l+1:l,L=u?0:this.getLine(b).length,A=new h(g,y,b,L),k=this.$lines.slice(a,l+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},c.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(a,l){if(a instanceof 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):(v(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,g=a.start.row,y=a.start.column,b=0,L=0;b<u;b=L){L+=l-1;var A=o.slice(b,L);A.push(""),this.applyDelta({start:this.pos(g+b,y),end:this.pos(g+L,y=0),action:a.action,lines:A},!0)}a.lines=o.slice(b),a.start.row=g+b,a.start.column=y,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,g=l||0,y=o.length;g<y;g++)if(a-=o[g].length+u,a<0)return{row:g,column:a+o[g].length+u};return{row:y-1,column:a+o[y-1].length+u}},c.prototype.positionToIndex=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,g=0,y=Math.min(a.row,o.length),b=l||0;b<y;++b)g+=o[b].length+u;return g+a.column},c.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},c}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",p.implement(s.prototype,w),i.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function h(f,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=f;var c=this;this.$worker=function(){if(c.running){for(var a=new Date,l=c.currentLine,o=-1,u=c.doc,g=l;c.lines[l];)l++;var y=u.getLength(),b=0;for(c.running=!1;l<y;){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),g<=o&&c.fireUpdateEvent(g,o)}}}return h.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(f,s){var c={first:f,last:s};this._signal("update",{data:c})},h.prototype.start=function(f){this.currentLine=Math.min(f||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(f){var s=f.start.row,c=f.end.row-s;if(c===0)this.lines[s]=null;else if(f.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(f){return this.lines[f]||this.$tokenizeRow(f)},h.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},h.prototype.$tokenizeRow=function(f){var s=this.doc.getLine(f),c=this.states[f-1],a=this.tokenizer.getLineTokens(s,c,f);return this.states[f]+""!=a.state+""?(this.states[f]=a.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=a.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();p.implement(w.prototype,v),i.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,i,m){var p=e("./lib/lang"),v=e("./range").Range,w=function(){function h(f,s,c){c===void 0&&(c="text"),this.setRegexp(f),this.clazz=s,this.type=c}return h.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},h.prototype.update=function(f,s,c,a){if(this.regExp)for(var l=a.firstRow,o=a.lastRow,u={},g=l;g<=o;g++){var y=this.cache[g];y==null&&(y=p.getMatchOffsets(c.getLine(g),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(k){return new v(g,k.offset,g,k.offset+k.length)}),this.cache[g]=y.length?y:"");for(var b=y.length;b--;){var L=y[b].toScreenRange(c),A=L.toString();u[A]||(u[A]=!0,s.drawSingleLineMarker(f,L,this.clazz,a))}}},h}();w.prototype.MAX_RANGES=500,i.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,i,m){var p=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(x){this.$session=x},k.prototype.add=function(x,M,E){if(!this.$fromUndo&&x!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),x.id=this.$rev=++this.$maxRev}(x.action=="remove"||x.action=="insert")&&(this.$lastDelta=x),this.lastDeltas.push(x)}},k.prototype.addSelection=function(x,M){this.selections.push({value:x,rev:M||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(x,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,I=E.length;I--;){var T=E[I][0];if(T.id<=x)break;T.id<M&&(T.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(x,M){for(var E=this.selections,I=E.length;I--;){var T=E[I];if(T.rev<x)return M&&(T=E[I+1]),T}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(x,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,I=null,T=0,N=E.length;N--;){var $=E[N][0];if($.id<M&&!I&&(I=N+1),$.id<=x){T=N+1;break}}return E.slice(T,I)},k.prototype.getChangedRanges=function(x,M){M==null&&(M=this.$rev+1)},k.prototype.getChangedLines=function(x,M){M==null&&(M=this.$rev+1)},k.prototype.undo=function(x,M){this.lastDeltas=null;var E=this.$undoStack;if(v(E,E.length)){x||(x=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=E.pop(),T=null;return I&&(T=x.undoChanges(I,M),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T}},k.prototype.redo=function(x,M){if(this.lastDeltas=null,x||(x=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);A(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),T=null;return I&&(T=x.redoChanges(I,M),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T},k.prototype.$syncRev=function(){var x=this.$undoStack,M=x[x.length-1],E=M&&M[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(x){x==null&&(x=this.$rev),this.mark=x},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(x){this.reset(),this.$undoStack=x.$undoStack,this.$redoStack=x.$redoStack},k.prototype.$prettyPrint=function(x){return x?c(x):c(this.$undoStack)+`
192
+ ---
193
+ `+c(this.$redoStack)},k}();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function v(k,x){for(var M=x;M--;){var E=k[M];if(E&&!E[0].ignore){for(;M<x-1;){var I=o(k[M],k[M+1]);k[M]=I[0],k[M+1]=I[1],M++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function f(k){return{row:k.row,column:k.column}}function s(k){return{start:f(k.start),end:f(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).join(`
194
+ `);var x="";return k.action?(x=k.action=="insert"?"+":"-",x+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?x=k.value.map(a).join(`
195
+ `):x=a(k.value)),k.start&&(x+=a(k)),(k.id||k.rev)&&(x+=" ("+(k.id||k.rev)+")"),x}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function l(k,x){var M=k.action=="insert",E=x.action=="insert";if(M&&E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.start,k.start)<=0)g(k,x,1);else return null;else if(M&&!E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.end,k.start)<=0)g(k,x,-1);else return null;else if(!M&&E)if(h(x.start,k.start)>=0)g(x,k,1);else if(h(x.start,k.start)<=0)g(k,x,1);else return null;else if(!M&&!E)if(h(x.start,k.start)>=0)g(x,k,1);else if(h(x.end,k.start)<=0)g(k,x,-1);else return null;return[x,k]}function o(k,x){for(var M=k.length;M--;)for(var E=0;E<x.length;E++)if(!l(k[M],x[E])){for(;M<k.length;){for(;E--;)l(x[E],k[M]);E=x.length,M++}return[k,x]}return k.selectionBefore=x.selectionBefore=k.selectionAfter=x.selectionAfter=null,[x,k]}function u(k,x){var M=k.action=="insert",E=x.action=="insert";if(M&&E)h(k.start,x.start)<0?g(x,k,1):g(k,x,1);else if(M&&!E)h(k.start,x.end)>=0?g(k,x,-1):(h(k.start,x.start)<=0||g(k,w.fromPoints(x.start,k.start),-1),g(x,k,1));else if(!M&&E)h(x.start,k.end)>=0?g(x,k,-1):(h(x.start,k.start)<=0||g(x,w.fromPoints(k.start,x.start),-1),g(k,x,1));else if(!M&&!E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.end,k.start)<=0)g(k,x,-1);else{var I,T;return h(k.start,x.start)<0&&(I=k,k=b(k,x.start)),h(k.end,x.end)>0&&(T=b(k,x.end)),y(x.end,k.start,k.end,-1),T&&!I&&(k.lines=T.lines,k.start=T.start,k.end=T.end,T=k),[x,I,T].filter(Boolean)}return[x,k]}function g(k,x,M){y(k.start,x.start,x.end,M),y(k.end,x.start,x.end,M)}function y(k,x,M,E){k.row==(E==1?x:M).row&&(k.column+=E*(M.column-x.column)),k.row+=E*(M.row-x.row)}function b(k,x){var M=k.lines,E=k.end;k.end=f(x);var I=k.end.row-k.start.row,T=M.splice(I,M.length),N=I?x.column:x.column-k.start.column;M.push(T[0].substring(0,N)),T[0]=T[0].substr(N);var $={start:f(x),end:E,lines:T,action:k.action};return $}function L(k,x){x=s(x);for(var M=k.length;M--;){for(var E=k[M],I=0;I<E.length;I++){var T=E[I],N=u(T,x);x=N[0],N.length!=2&&(N[2]?(E.splice(I+1,1,N[1],N[2]),I++):N[1]||(E.splice(I,1),I--))}E.length||k.splice(M,1)}return k}function A(k,x){for(var M=0;M<x.length;M++)for(var E=x[M],I=0;I<E.length;I++)L(k,E[I])}i.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){function w(h,f){this.foldData=h,Array.isArray(f)?this.folds=f:f=this.folds=[f];var s=f[f.length-1];this.range=new p(f[0].start.row,f[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(f){f.start.row+=h,f.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(f,s){return-f.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,f,s){var c=0,a=this.folds,l,o,u,g=!0;f==null&&(f=this.end.row,s=this.end.column);for(var y=0;y<a.length;y++){if(l=a[y],o=l.range.compareStart(f,s),o==-1){h(null,f,s,c,g);return}if(u=h(null,l.start.row,l.start.column,c,g),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;g=!l.sameRow,c=l.end.column}h(null,f,s,c,g)},w.prototype.getNextFoldTo=function(h,f){for(var s,c,a=0;a<this.folds.length;a++){if(s=this.folds[a],c=s.range.compareEnd(h,f),c==-1)return{fold:s,kind:"after"};if(c===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,f,s){var c=this.getNextFoldTo(h,f),a,l;if(c){if(a=c.fold,c.kind=="inside"&&a.start.column!=f&&a.start.row!=h)window.console&&window.console.log(h,f,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,f){var s=this.getNextFoldTo(h,f);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 g=new w(l,a);return l.splice(l.indexOf(this)+1,0,g),g},w.prototype.merge=function(h){for(var f=h.folds,s=0;s<f.length;s++)this.addFold(f[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(f){h.push(" "+f.toString())}),h.push("]"),h.join(`
196
+ `)},w.prototype.idxToPosition=function(h){for(var f=0,s=0;s<this.folds.length;s++){var c=this.folds[s];if(h-=c.start.column-f,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;f=c.end.column}return{row:this.end.row,column:this.end.column+h}},w}();i.FoldLine=v}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,i,m){var p=e("./range").Range,v=p.comparePoints,w=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(f,s,c){for(var a=this.ranges,l=c||0;l<a.length;l++){var o=a[l],u=v(f,o.end);if(!(u>0)){var g=v(f,o.start);return u===0?s&&g!==0?-l-2:l:g>0||g===0&&!s?l:-l-1}}return-l-1},h.prototype.add=function(f){var s=!f.isEmpty(),c=this.pointIndex(f.start,s);c<0&&(c=-c-1);var a=this.pointIndex(f.end,s,c);return a<0?a=-a-1:a++,this.ranges.splice(c,a-c,f)},h.prototype.addList=function(f){for(var s=[],c=f.length;c--;)s.push.apply(s,this.add(f[c]));return s},h.prototype.substractPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges.splice(s,1)},h.prototype.merge=function(){var f=[],s=this.ranges;s=s.sort(function(u,g){return v(u.start,g.start)});for(var c=s[0],a,l=1;l<s.length;l++){a=c,c=s[l];var o=v(a.end,c.start);o<0||o==0&&!a.isEmpty()&&!c.isEmpty()||(v(a.end,c.end)<0&&(a.end.row=c.end.row,a.end.column=c.end.column),s.splice(l,1),f.push(c),c=a,l--)}return this.ranges=s,f},h.prototype.contains=function(f,s){return this.pointIndex({row:f,column:s})>=0},h.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},h.prototype.rangeAtPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges[s]},h.prototype.clipRows=function(f,s){var c=this.ranges;if(c[0].start.row>s||c[c.length-1].start.row<f)return[];var a=this.pointIndex({row:f,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(f){this.session&&this.detach(),this.session=f,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(f){for(var s=f.start,c=f.end,a=s.row,l=c.row,o=this.ranges,u=0,g=o.length;u<g;u++){var y=o[u];if(y.end.row>=a)break}if(f.action=="insert")for(var b=l-a,L=-s.column+c.column;u<g;u++){var y=o[u];if(y.start.row>a)break;if(y.start.row==a&&y.start.column>=s.column&&(y.start.column==s.column&&this.$bias<=0||(y.start.column+=L,y.start.row+=b)),y.end.row==a&&y.end.column>=s.column){if(y.end.column==s.column&&this.$bias<0)continue;y.end.column==s.column&&L>0&&u<g-1&&y.end.column>y.start.column&&y.end.column==o[u+1].start.column&&(y.end.column-=L),y.end.column+=L,y.end.row+=b}}else for(var b=a-l,L=s.column-c.column;u<g;u++){var y=o[u];if(y.start.row>l)break;y.end.row<l&&(a<y.end.row||a==y.end.row&&s.column<y.end.column)?(y.end.row=a,y.end.column=s.column):y.end.row==l?y.end.column<=c.column?(b||y.end.column>s.column)&&(y.end.column=s.column,y.end.row=s.row):(y.end.column+=L,y.end.row+=b):y.end.row>l&&(y.end.row+=b),y.start.row<l&&(a<y.start.row||a==y.start.row&&s.column<y.start.column)?(y.start.row=a,y.start.column=s.column):y.start.row==l?y.start.column<=c.column?(b||y.start.column>s.column)&&(y.start.column=s.column,y.start.row=s.row):(y.start.column+=L,y.start.row+=b):y.start.row>l&&(y.start.row+=b)}if(b!=0&&u<g)for(;u<g;u++){var y=o[u];y.start.row+=b,y.end.row+=b}},h}();w.prototype.comparePoints=v,i.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,i,m){var p=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(u[y]=g[y])},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)}}(),v=e("../range_list").RangeList,w=function(a){p(l,a);function l(o,u){var g=a.call(this)||this;return g.foldLine=null,g.placeholder=u,g.range=o,g.start=o.start,g.end=o.end,g.sameRow=o.start.row==o.end.row,g.subFolds=g.ranges=[],g}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(g){u.subFolds.push(g.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){f(o,this.start);for(var u=o.start.row,g=o.start.column,y=0,b=-1;y<this.subFolds.length&&(b=this.subFolds[y].range.compare(u,g),b==1);y++);var L=this.subFolds[y],A=0;if(b==0){if(L.range.containsRange(o))return L.addSubFold(o);A=1}for(var u=o.range.end.row,g=o.range.end.column,k=y,b=-1;k<this.subFolds.length&&(b=this.subFolds[k].range.compare(u,g),b==1);k++);b==0&&k++;for(var x=this.subFolds.splice(y,k-y,o),M=b==0?x.length-1:x.length,E=A;E<M;E++)o.addSubFold(x[E]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(v);function h(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function f(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)}i.Fold=w}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,i,m){var p=e("../range").Range,v=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,f=e("../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,g=0;g<u.length;g++){var y=u[g].range;if(y.contains(c,a)){if(l==1&&y.isEnd(c,a)&&!y.isEmpty()||l==-1&&y.isStart(c,a)&&!y.isEmpty())continue;return u[g]}}},this.getFoldsInRange=function(c){var a=c.start,l=c.end,o=this.$foldData,u=[];a.column+=1,l.column-=1;for(var g=0;g<o.length;g++){var y=o[g].range.compareRange(c);if(y!=2){if(y==-2)break;for(var b=o[g].folds,L=0;L<b.length;L++){var A=b[L];if(y=A.range.compareRange(c),y==-2)break;if(y!=2){if(y==42)break;u.push(A)}}}}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}},g,y,b=0;b<o.folds.length;b++){y=o.folds[b];var L=y.range.compareEnd(c,a);if(L==-1){g=this.getLine(y.start.row).substring(u.end.column,y.start.column);break}else if(L===0)return null;u=y}return g||(g=this.getLine(y.start.row).substring(u.end.column)),l==-1?g.substring(0,a-u.end.column):l==1?g.substring(a-u.end.column):g},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 g=l[u],y=g.end.row,b=g.start.row;if(y>=a){b<a&&(b>=c?o-=a-b:o=0);break}else y>=c&&(b>=c?o-=y-b:o-=y-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 g=u.start.row,y=u.start.column,b=u.end.row,L=u.end.column,A=this.getFoldAt(g,y,1),k=this.getFoldAt(b,L,-1);if(A&&k==A)return A.addSubFold(u);A&&!A.range.isStart(g,y)&&this.removeFold(A),k&&!k.range.isEnd(b,L)&&this.removeFold(k);var x=this.getFoldsInRange(u.range);x.length>0&&(this.removeFolds(x),u.collapseChildren||x.forEach(function(T){u.addSubFold(T)}));for(var M=0;M<l.length;M++){var E=l[M];if(b==E.start.row){E.addFold(u),o=!0;break}else if(g==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var I=l[M+1];if(I&&I.start.row==b){E.merge(I);break}}break}else if(b<=E.start.row)break}return o||(E=this.$addFoldLine(new v(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,g=a.folds;if(g.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(c.end.row,c.end.column))g.pop(),a.end.row=g[g.length-1].end.row,a.end.column=g[g.length-1].end.column;else if(a.range.isStart(c.start.row,c.start.column))g.shift(),a.start.row=g[0].start.row,a.start.column=g[0].start.column;else if(c.sameRow)g.splice(g.indexOf(c),1);else{var y=a.split(c.start.row,c.start.column);g=y.folds,g.shift(),y.start.row=g[0].start.row,y.start.column=g[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var 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 p(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof c=="number")l=new p(c,0,c,this.getLine(c).length);else if("row"in c)l=p.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(g){o=o.concat(this.unfold(g))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&p.comparePoints(o[0].start,l.start)<0&&p.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 g=this.doc,y="";return c.walk(function(b,L,A,k){if(!(L<o)){if(L==o){if(A<u)return;k=Math.max(u,k)}b!=null?y+=b:y+=g.getLine(L).substring(k,A)}},a,l),y},this.getDisplayLine=function(c,a,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,a,l,o);var g;return g=this.doc.getLine(c),g.substring(o||0,a||g.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 v(c,l)}),c},this.toggleFold=function(c){var a=this.selection,l=a.getRange(),o,u;if(l.isEmpty()){var g=l.start;if(o=this.getFoldAt(g.row,g.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(g))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:g.row,column:g.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(g.row,g.column)||l}else{var y=this.getFoldsInRange(l);if(c&&y.length){this.expandFolds(y);return}else y.length==1&&(o=y[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(),g=u&&u.type;if(u&&/^comment|string/.test(g)){g=g.match(/comment|string/)[0],g=="comment"&&(g+="|doc-start|\\.doc");var y=new RegExp(g),b=new p;if(l!=1){do u=o.stepBackward();while(u&&y.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 L=this.getState(o.$row);if(l!=-1){var A=-1;do if(u=o.stepForward(),A==-1){var k=this.getState(o.$row);L.toString()!==k.toString()&&(A=o.$row)}else if(o.$row>A)break;while(u&&y.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 g=c;g<a;g++)if(u[g]==null&&(u[g]=this.getFoldWidget(g)),u[g]=="start"&&!(o&&!o(g))){var y=this.getFoldWidgetRange(g);y&&y.isMultiLine()&&y.end.row<=a&&y.start.row>=c&&(g=y.end.row,y.collapseChildren=l,this.addFold("...",y))}}},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 g=l[o];if(g==null&&(g=l[o]=this.getFoldWidget(o)),g=="start"){var y=this.getFoldWidgetRange(o);if(u||(u=y),y&&y.end.row>=c)break}o--}return{range:o!==-1&&y,firstRange:u}},this.onFoldWidgetClick=function(c,a){a instanceof f&&(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,g=this.getFoldAt(c,u===-1?0:o.length,u);if(g)return a.children||a.all?this.removeFold(g):this.expandFold(g),g;var y=this.getFoldWidgetRange(c,!0);if(y&&!y.isMultiLine()&&(g=this.getFoldAt(y.start.row,y.start.column,1),g&&y.isEqual(g.range)))return this.removeFold(g),g;if(a.siblings){var b=this.getParentFoldRangeData(c);if(b.range)var L=b.range.start.row+1,A=b.range.end.row;this.foldAll(L,A,a.all?1e4:0)}else a.children?(A=y?y.end.row:this.getLength(),this.foldAll(c+1,A,a.all?1e4:0)):y&&(a.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},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)}}i.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,i,m){var p=e("../token_iterator").TokenIterator,v=e("../range").Range;function w(){this.findMatchingBracket=function(h,f){if(h.column==0)return null;var s=f||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 f=this.getLine(h.row),s=!0,c,a=f.charAt(h.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=f.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=v.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=v.fromPoints(o,h),s||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,f){var s=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,a=!f&&s.charAt(h.column-1),l=a&&a.match(c);if(l||(a=(f===void 0||f)&&s.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(c)),!l)return null;var o=new v(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var g=new v(u.row,u.column,u.row,u.column+1);return[o,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,f,s){var c=this.$brackets[h],a=1,l=new p(this,f.row,f.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=f.column-l.getCurrentTokenColumn()-2,g=o.value;;){for(;u>=0;){var y=g.charAt(u);if(y==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else y==h&&(a+=1);u-=1}do o=l.stepBackward();while(o&&!s.test(o.type));if(o==null)break;g=o.value,u=g.length-1}return null}},this.$findClosingBracket=function(h,f,s){var c=this.$brackets[h],a=1,l=new p(this,f.row,f.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=f.column-l.getCurrentTokenColumn();;){for(var g=o.value,y=g.length;u<y;){var b=g.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 f=new p(this,h.row,h.column),s=this.$findTagName(f);if(s){var c=f.stepBackward();return c.value==="<"?this.$findClosingTag(f,s):this.$findOpeningTag(f,s)}},this.$findTagName=function(h){var f=h.getCurrentToken(),s=!1,c=!1;if(f&&f.type.indexOf("tag-name")===-1)do c?f=h.stepBackward():f=h.stepForward(),f&&(f.value==="/>"?c=!0:f.type.indexOf("tag-name")!==-1&&(s=!0));while(f&&!s);return f},this.$findClosingTag=function(h,f){var s,c=f.value,a=f.value,l=0,o=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=h.stepForward();var u=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length),g=!1;do{if(s=f,s.type.indexOf("tag-close")!==-1&&!g){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(f=h.stepForward(),f){if(f.value===">"&&!g){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(f.type.indexOf("tag-name")!==-1){if(c=f.value,a===c){if(s.value==="<")l++;else if(s.value==="</"&&(l--,l<0)){h.stepBackward();var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);f=h.stepForward();var L=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),f&&f.value===">")var A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(a===c&&f.value==="/>"&&(l--,l<0))var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),L=b,A=L,y=new v(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(f&&l>=0);if(o&&y&&b&&A&&u&&L)return{openTag:new v(o.start.row,o.start.column,y.end.row,y.end.column),closeTag:new v(b.start.row,b.start.column,A.end.row,A.end.column),openTagName:u,closeTagName:L}},this.$findOpeningTag=function(h,f){var s=h.getCurrentToken(),c=f.value,a=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,g=new v(l,o,l,u);h.stepForward();var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),!(!f||f.value!==">")){var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(f=s,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+f.value.length,s=h.stepBackward(),f){if(f.type.indexOf("tag-name")!==-1){if(c===f.value)if(s.value==="<"){if(a++,a>0){var L=new v(l,o,l,u),A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do f=h.stepForward();while(f&&f.value!==">");var k=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(f.value==="/>"){for(var x=0,M=s;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===c){a--;break}else if(M.value==="<")break;M=h.stepBackward(),x++}for(var E=0;E<x;E++)h.stepForward()}}while(s&&a<=0);if(A&&k&&g&&b&&L&&y)return{openTag:new v(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new v(g.start.row,g.start.column,b.end.row,b.end.column),openTagName:L,closeTagName:y}}}}i.BracketMatch=w}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),f=e("./lib/event_emitter").EventEmitter,s=e("./selection").Selection,c=e("./mode/text").Mode,a=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,g=e("./search_highlight").SearchHighlight,y=e("./undomanager").UndoManager,b=function(){function $(_,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new u(new c().getTokenizer(),this);var R=this;this.bgTokenizer.on("update",function(O){R._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),h.resetOptions(this),this.setMode(S),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return $.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=v.delayedCall(this.endOperation.bind(this,!0))},$.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},$.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var S=this.selection.toJSON();this.curOp.selectionAfter=S,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(S),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},$.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},$.prototype.getDocument=function(){return this.doc},Object.defineProperty($.prototype,"widgetManager",{get:function(){var _=new l(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),$.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,R=this.$getRowCacheIndex(this.$docRowCache,_)+1;S>R&&(this.$docRowCache.splice(R,S),this.$screenRowCache.splice(R,S))},$.prototype.$getRowCacheIndex=function(_,S){for(var R=0,O=_.length-1;R<=O;){var F=R+O>>1,H=_[F];if(S>H)R=F+1;else if(S<H)O=F-1;else return F}return R-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(_){var S=_.data;this.$resetRowCache(S.start.row)},$.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var S=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},$.prototype.onSelectionChange=function(){this._signal("changeSelection")},$.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var S=new y;S.$undoStack=_.history.undo,S.$redoStack=_.history.redo,S.mark=_.history.mark,S.$rev=_.history.rev;var R=new $(_.value);return _.folds.forEach(function(O){R.addFold("...",a.fromPoints(O.start,O.end))}),R.setAnnotations(_.annotations),R.setBreakpoints(_.breakpoints),R.setMode(_.mode),R.setScrollLeft(_.scrollLeft),R.setScrollTop(_.scrollTop),R.setUndoManager(S),R.selection.fromJSON(_.selection),R},$.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(_){return this.bgTokenizer.getState(_)},$.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},$.prototype.getTokenAt=function(_,S){var R=this.bgTokenizer.getTokens(_),O,F=0;if(S==null){var H=R.length-1;F=this.getLine(_).length}else for(var H=0;H<R.length&&(F+=R[H].value.length,!(F>=S));H++);return O=R[H],O?(O.index=H,O.start=F-O.value.length,O):null},$.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var S=this;_.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=v.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()?v.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(_){this.setOption("tabSize",_)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(_,S){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+S,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(_,S){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var S=0;S<_.length;S++)this.$breakpoints[_[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(_,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[_]=S:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(_,S,R,O){var F=this.$markerId++,H={range:_,type:R||"line",renderer:typeof R=="function"?R:null,clazz:S,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},$.prototype.addDynamicMarker=function(_,S){if(_.update){var R=this.$markerId++;return _.id=R,_.inFront=!!S,S?(this.$frontMarkers[R]=_,this._signal("changeFrontMarker")):(this.$backMarkers[R]=_,this._signal("changeBackMarker")),_}},$.prototype.removeMarker=function(_){var S=this.$frontMarkers[_]||this.$backMarkers[_];if(S){var R=S.inFront?this.$frontMarkers:this.$backMarkers;delete R[_],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},$.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(_){if(!this.$searchHighlight){var S=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(_)},$.prototype.highlightLines=function(_,S,R,O){typeof S!="number"&&(R=S,S=_),R||(R="ace_step");var F=new a(_,0,S,1/0);return F.id=this.addMarker(F,R,"fullLine",O),F},$.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(_){var S=_.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
198
+ `},$.prototype.getWordRange=function(_,S){var R=this.getLine(_),O=!1;if(S>0&&(O=!!R.charAt(S-1).match(this.tokenRe)),O||(O=!!R.charAt(S).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(R.slice(S-1,S+1)))var F=/\s/;else var F=this.nonTokenRe;var H=S;if(H>0){do H--;while(H>=0&&R.charAt(H).match(F));H++}for(var W=S;W<R.length&&R.charAt(W).match(F);)W++;return new a(_,H,_,W)},$.prototype.getAWordRange=function(_,S){for(var R=this.getWordRange(_,S),O=this.getLine(R.end.row);O.charAt(R.end.column).match(/[ \t]/);)R.end.column+=1;return R},$.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(_){var S=_.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",_)},$.prototype.setMode=function(_,S){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var R=_,O=R.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!R){this.$onChangeMode(this.$modes[O]),S&&S();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return S&&S();this.$modes[O]&&!R?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(R),R||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),S&&S()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.prototype.$onChangeMode=function(_,S){if(S||(this.$modeId=_.$id),this.$mode!==_){var R=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,S||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:R,mode:_}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){h.warn("Could not load worker",_),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},$.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 _=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>_&&(_=S.screenWidth)}),this.lineWidgetWidth=_},$.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),R=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],W=H?H.start.row:1/0,V=S.length,q=0;q<V;q++){if(q>W){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],W=H?H.start.row:1/0}R[q]==null&&(R[q]=this.$getStringScreenWidth(S[q])[0]),R[q]>O&&(O=R[q])}this.screenWidth=O}},$.prototype.getLine=function(_){return this.doc.getLine(_)},$.prototype.getLines=function(_,S){return this.doc.getLines(_,S)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},$.prototype.insert=function(_,S){return this.doc.insert(_,S)},$.prototype.remove=function(_){return this.doc.remove(_)},$.prototype.removeFullLines=function(_,S){return this.doc.removeFullLines(_,S)},$.prototype.undoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var R=_.length-1;R!=-1;R--){var O=_[R];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!S&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var R=0;R<_.length;R++){var O=_[R];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!S&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(_){this.$undoSelect=_},$.prototype.$getUndoSelection=function(_,S){function R(V){return S?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<_.length;H++){var W=_[H];if(W.start){if(!O){R(W)?O=a.fromPoints(W.start,W.end):O=a.fromPoints(W.start,W.start);continue}R(W)?(F=W.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=W.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=W.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(W.start,W.start)))}}return O},$.prototype.replace=function(_,S){return this.doc.replace(_,S)},$.prototype.moveText=function(_,S,R){var O=this.getTextRange(_),F=this.getFoldsInRange(_),H=a.fromPoints(S,S);if(!R){this.remove(_);var W=_.start.row-_.end.row,V=W?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),W&&H.start.row>=_.end.row&&(H.start.row+=W,H.end.row+=W)}if(H.end=this.insert(H.start,O),F.length){var q=_.start,J=H.start,W=J.row-q.row,V=J.column-q.column;this.addFolds(F.map(function(ie){return ie=ie.clone(),ie.start.row==q.row&&(ie.start.column+=V),ie.end.row==q.row&&(ie.end.column+=V),ie.start.row+=W,ie.end.row+=W,ie}))}return H},$.prototype.indentRows=function(_,S,R){R=R.replace(/\t/g,this.getTabString());for(var O=_;O<=S;O++)this.doc.insertInLine({row:O,column:0},R)},$.prototype.outdentRows=function(_){for(var S=_.collapseRows(),R=new a(0,0,0,0),O=this.getTabSize(),F=S.start.row;F<=S.end.row;++F){var H=this.getLine(F);R.start.row=F,R.end.row=F;for(var W=0;W<O&&H.charAt(W)==" ";++W);W<O&&H.charAt(W)==" "?(R.start.column=W,R.end.column=W+1):(R.start.column=0,R.end.column=W),this.remove(R)}},$.prototype.$moveLines=function(_,S,R){if(_=this.getRowFoldStart(_),S=this.getRowFoldEnd(S),R<0){var O=this.getRowFoldStart(_+R);if(O<0)return 0;var F=O-_}else if(R>0){var O=this.getRowFoldEnd(S+R);if(O>this.doc.getLength()-1)return 0;var F=O-S}else{_=this.$clipRowToDocument(_),S=this.$clipRowToDocument(S);var F=S-_+1}var H=new a(_,0,S,Number.MAX_VALUE),W=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=R==0?this.doc.getLines(_,S):this.doc.removeFullLines(_,S);return this.doc.insertFullLines(_+F,V),W.length&&this.addFolds(W),F},$.prototype.moveLinesUp=function(_,S){return this.$moveLines(_,S,-1)},$.prototype.moveLinesDown=function(_,S){return this.$moveLines(_,S,1)},$.prototype.duplicateLines=function(_,S){return this.$moveLines(_,S,0)},$.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(_,S){return S<0?0:Math.min(this.doc.getLine(_).length,S)},$.prototype.$clipPositionToDocument=function(_,S){if(S=Math.max(0,S),_<0)_=0,S=0;else{var R=this.doc.getLength();_>=R?(_=R-1,S=this.doc.getLine(R-1).length):S=Math.min(this.doc.getLine(_).length,S)}return{row:_,column:S}},$.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var S=this.doc.getLength()-1;return _.end.row>S?(_.end.row=S,_.end.column=this.doc.getLine(S).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},$.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.prototype.setWrapLimitRange=function(_,S){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:_,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},$.prototype.adjustWrapLimit=function(_,S){var R=this.$wrapLimitRange;R.max<0&&(R={min:S,max:S});var O=this.$constrainWrapLimit(_,R.min,R.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(_,S,R){return S&&(_=Math.max(S,_)),R&&(_=Math.min(R,_)),_},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(_){var S=this.$useWrapMode,R=_.action,O=_.start,F=_.end,H=O.row,W=F.row,V=W-H,q=null;if(this.$updating=!0,V!=0)if(R==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(H,V);var J=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Q=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var ie=this.getFoldLine(H);ie&&ie!==G&&(ie.merge(G),G=ie),Q=J.indexOf(G)+1}for(Q;Q<J.length;Q++){var G=J[Q];G.start.row>=F.row&&G.shiftRow(-V)}W=H}else{var X=Array(V);X.unshift(H,0);var ae=S?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,X);var J=this.$foldData,G=this.getFoldLine(H),Q=0;if(G){var ve=G.range.compareInside(O.row,O.column);ve==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(W,0,F.column-O.column))):ve==-1&&(G.addRemoveChars(H,0,F.column-O.column),G.shiftRow(V)),Q=J.indexOf(G)+1}for(Q;Q<J.length;Q++){var G=J[Q];G.start.row>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),R==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,O.column,V)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(H,W):this.$updateRowLengthCache(H,W),q},$.prototype.$updateRowLengthCache=function(_,S){this.$rowLengthCache[_]=null,this.$rowLengthCache[S]=null},$.prototype.$updateWrapData=function(_,S){var R=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,W,V,q=_;for(S=Math.min(S,R.length-1);q<=S;)V=this.getFoldLine(q,V),V?(W=[],V.walk((function(J,G,Q,ie){var X;if(J!=null){X=this.$getDisplayTokens(J,W.length),X[0]=k;for(var ae=1;ae<X.length;ae++)X[ae]=x}else X=this.$getDisplayTokens(R[G].substring(ie,Q),W.length);W=W.concat(X)}).bind(this),V.end.row,R[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(W,H,O),q=V.end.row+1):(W=this.$getDisplayTokens(R[q]),F[q]=this.$computeWrapSplits(W,H,O),q++)},$.prototype.$computeWrapSplits=function(_,S,R){if(_.length==0)return[];var O=[],F=_.length,H=0,W=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,J=S<=Math.max(2*R,8)||q===!1?0:Math.floor(S/2);function G(){var ve=0;if(J===0)return ve;if(q)for(var we=0;we<_.length;we++){var fe=_[we];if(fe==E)ve+=1;else if(fe==I)ve+=R;else{if(fe==T)continue;break}}return V&&q!==!1&&(ve+=R),Math.min(ve,J)}function Q(ve){for(var we=ve-H,fe=H;fe<ve;fe++){var $e=_[fe];($e===12||$e===2)&&(we-=1)}O.length||(ie=G(),O.indent=ie),W+=we,O.push(W),H=ve}for(var ie=0;F-H>S-ie;){var X=H+S-ie;if(_[X-1]>=E&&_[X]>=E){Q(X);continue}if(_[X]==k||_[X]==x){for(X;X!=H-1&&_[X]!=k;X--);if(X>H){Q(X);continue}for(X=H+S,X;X<_.length&&_[X]==x;X++);if(X==_.length)break;Q(X);continue}for(var ae=Math.max(X-(S-(S>>2)),H-1);X>ae&&_[X]<k;)X--;if(V){for(;X>ae&&_[X]<k;)X--;for(;X>ae&&_[X]==M;)X--}else for(;X>ae&&_[X]<E;)X--;if(X>ae){Q(++X);continue}X=H+S,_[X]==A&&X--,Q(X-ie)}return O},$.prototype.$getDisplayTokens=function(_,S){var R=[],O;S=S||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){O=this.getScreenTabSize(R.length+S),R.push(I);for(var W=1;W<O;W++)R.push(T)}else H==32?R.push(E):H>39&&H<48||H>57&&H<64?R.push(M):H>=4352&&N(H)?R.push(L,A):R.push(L)}return R},$.prototype.$getStringScreenWidth=function(_,S,R){if(S==0)return[0,0];S==null&&(S=1/0),R=R||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?R+=this.getScreenTabSize(R):O>=4352&&N(O)?R+=2:R+=1,!(R>S));F++);return[R,F]},$.prototype.getRowLength=function(_){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?S:this.$wrapData[_].length+S},$.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},$.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE),R=this.$wrapData[S.row];return R.length&&R[0]<S.column?R.indent:0}else return 0},$.prototype.getScreenLastRowColumn=function(_){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},$.prototype.getDocumentLastRowColumn=function(_,S){var R=this.documentToScreenRow(_,S);return this.getScreenLastRowColumn(R)},$.prototype.getDocumentLastRowColumnPosition=function(_,S){var R=this.documentToScreenRow(_,S);return this.screenToDocumentPosition(R,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},$.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(_,S){return this.screenToDocumentPosition(_,S).row},$.prototype.screenToDocumentColumn=function(_,S){return this.screenToDocumentPosition(_,S).column},$.prototype.screenToDocumentPosition=function(_,S,R){if(_<0)return{row:0,column:0};var O,Q=0,F=0,H,G=0,W=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),J=V.length;if(J&&q>=0)var G=V[q],Q=this.$docRowCache[q],ie=_>V[J-1];else var ie=!J;for(var X=this.getLength()-1,ae=this.getNextFoldLine(Q),ve=ae?ae.start.row:1/0;G<=_&&(W=this.getRowLength(Q),!(G+W>_||Q>=X));)G+=W,Q++,Q>ve&&(Q=ae.end.row+1,ae=this.getNextFoldLine(Q,ae),ve=ae?ae.start.row:1/0),ie&&(this.$docRowCache.push(Q),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Q)O=this.getFoldDisplayLine(ae),Q=ae.start.row;else{if(G+W<=_||Q>X)return{row:X,column:this.getLine(X).length};O=this.getLine(Q),ae=null}var we=0,fe=Math.floor(_-G);if(this.$useWrapMode){var $e=this.$wrapData[Q];$e&&(H=$e[fe],fe>0&&$e.length&&(we=$e.indent,F=$e[fe-1]||$e[$e.length-1],O=O.substring(F)))}return R!==void 0&&this.$bidiHandler.isBidiRow(G+fe,Q,fe)&&(S=this.$bidiHandler.offsetToCol(R)),F+=this.$getStringScreenWidth(O,S-we)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Q,column:F}},$.prototype.documentToScreenPosition=function(_,S){if(typeof S>"u")var R=this.$clipPositionToDocument(_.row,_.column);else R=this.$clipPositionToDocument(_,S);_=R.row,S=R.column;var G=0,O=null,F=null;F=this.getFoldAt(_,S,1),F&&(_=F.start.row,S=F.start.column);var H,J=0,W=this.$docRowCache,V=this.$getRowCacheIndex(W,_),q=W.length;if(q&&V>=0)var J=W[V],G=this.$screenRowCache[V],Q=_>W[q-1];else var Q=!q;for(var ie=this.getNextFoldLine(J),X=ie?ie.start.row:1/0;J<_;){if(J>=X){if(H=ie.end.row+1,H>_)break;ie=this.getNextFoldLine(H,ie),X=ie?ie.start.row:1/0}else H=J+1;G+=this.getRowLength(J),J=H,Q&&(this.$docRowCache.push(J),this.$screenRowCache.push(G))}var ae="";ie&&J>=X?(ae=this.getFoldDisplayLine(ie,_,S),O=ie.start.row):(ae=this.getLine(_).substring(0,S),O=_);var ve=0;if(this.$useWrapMode){var we=this.$wrapData[O];if(we){for(var fe=0;ae.length>=we[fe];)G++,fe++;ae=ae.substring(we[fe-1]||0,ae.length),ve=fe>0?we.indent:0}}return this.lineWidgets&&this.lineWidgets[J]&&this.lineWidgets[J].rowsAbove&&(G+=this.lineWidgets[J].rowsAbove),{row:G,column:ve+this.$getStringScreenWidth(ae)[0]}},$.prototype.documentToScreenColumn=function(_,S){return this.documentToScreenPosition(_,S).column},$.prototype.documentToScreenRow=function(_,S){return this.documentToScreenPosition(_,S).row},$.prototype.getScreenLength=function(){var _=0,S=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,O=0,F=0,S=this.$foldData[F++],H=S?S.start.row:1/0;O<R;){var W=this.$wrapData[O];_+=W?W.length+1:1,O++,O>H&&(O=S.end.row+1,S=this.$foldData[F++],H=S?S.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)S=V[F],_-=S.end.row-S.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},$.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,R,O){if(R===0)return[0,0];R||(R=1/0),O=O||0;var F,H;for(H=0;H<S.length&&(F=S.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>R));H++);return[O,H]})},$.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(_.row);return S[_.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,p.implement(b.prototype,f);var L=1,A=2,k=3,x=4,M=9,E=10,I=11,T=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}e("./edit_session/folding").Folding.call(b.prototype),e("./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 _=typeof $=="number"?$:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function($){$=$=="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}}),i.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,i,m){var p=e("./lib/lang"),v=e("./lib/oop"),w=e("./range").Range,h=function(){function s(){this.$options={}}return s.prototype.set=function(c){return v.mixin(this.$options,c),this},s.prototype.getOptions=function(){return p.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,g,y,b){return o=new w(u,g,y,b),g==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=[],g=a.re;if(a.$isMultiLine){var y=g.length,b=o.length-y,L;e:for(var A=g.offset||0;A<=b;A++){for(var k=0;k<y;k++)if(o[A+k].search(g[k])==-1)continue e;var x=o[A],M=o[A+y-1],E=x.length-x.match(g[0])[0].length,I=M.match(g[y-1])[0].length;L&&L.end.row===A&&L.end.column>E||(u.push(L=new w(A,E,A+y-1,I)),y>2&&(A=A+y-2))}}else for(var T=0;T<o.length;T++)for(var N=p.getMatchOffsets(o[T],g),k=0;k<N.length;k++){var $=N[k];u.push(new w(T,$.offset,T,$.offset+$.length))}if(l){for(var _=l.start.column,S=l.end.column,T=0,k=u.length-1;T<k&&u[T].start.column<_&&u[T].start.row==0;)T++;for(var R=l.end.row-l.start.row;T<k&&u[k].end.column>S&&u[k].end.row==R;)k--;for(u=u.slice(T,k+1),T=0,k=u.length;T<k;T++)u[T].start.row+=l.start.row,u[T].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 g=Math.min(c.length,c.length);g--;){var y=c[g];y&&y.toLowerCase()!=y?a[g]=a[g].toUpperCase():a[g]=a[g].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=p.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=f(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,g=l.unicode,y=a.range,b=a.start;b||(b=y?y[o?"end":"start"]:c.selection.getRange()),b.start&&(b=b[u!=o?"end":"start"]);var L=y?y.start.row:0,A=y?y.end.row:c.getLength()-1;if(o)var k=function(E){var I=b.row;if(!M(I,b.column,E)){for(I--;I>=L;I--)if(M(I,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(I=A,L=b.row;I>=L;I--)if(M(I,Number.MAX_VALUE,E))return}}};else var k=function(E){var I=b.row;if(!M(I,b.column,E)){for(I=I+1;I<=A;I++)if(M(I,0,E))return;if(a.wrap!=!1){for(I=L,A=b.row;I<=A;I++)if(M(I,0,E))return}}};if(a.$isMultiLine)var x=l.length,M=function(E,I,T){var N=o?E-x+1:E;if(!(N<0||N+x>c.getLength())){var $=c.getLine(N),_=$.search(l[0]);if(!(!o&&_<I||_===-1)){for(var S=1;S<x;S++)if($=c.getLine(N+S),$.search(l[S])==-1)return;var R=$.match(l[x-1])[0].length;if(!(o&&R>I)&&T(N,_,N+x-1,R))return!0}}};else if(o)var M=function(E,I,T){var N=c.getLine(E),$=[],_,S=0;for(l.lastIndex=0;_=l.exec(N);){var R=_[0].length;if(S=_.index,!R){if(S>=N.length)break;l.lastIndex=S+=p.skipEmptyMatch(N,S,g)}if(_.index+R>I)break;$.push(_.index,R)}for(var O=$.length-1;O>=0;O-=2){var F=$[O-1],R=$[O];if(T(E,F,E,F+R))return!0}};else var M=function(E,I,T){var N=c.getLine(E),$,_;for(l.lastIndex=I;_=l.exec(N);){var S=_[0].length;if($=_.index,T(E,$,E,$+S))return!0;if(!S&&(l.lastIndex=$+=p.skipEmptyMatch(N,$,g),$>=N.length))return!1}};return{forEach:k}},s}();function f(s,c){var a=p.supportsLookbehind();function l(y,b){b===void 0&&(b=!0);var L=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return L.test(y)||c.regExp?a&&c.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],g=o[o.length-1];return l(u)+s+l(g,!1)}i.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var p=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(u[y]=g[y])},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)}}(),v=e("../lib/keys"),w=e("../lib/useragent"),h=v.KEY_MODS,f=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 g=this.commandKeyBinding;for(var y in g){var b=g[y];if(b==l)delete g[y];else if(Array.isArray(b)){var L=b.indexOf(l);L!=-1&&(b.splice(L,1),b.length==1&&(g[y]=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(g){var y="";if(g.indexOf(" ")!=-1){var b=g.split(/\s+/);g=b.pop(),b.forEach(function(k){var x=this.parseKeys(k),M=h[x.hashId]+x.key;y+=(y?" ":"")+M,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var L=this.parseKeys(g),A=h[L.hashId]+L.key;this._addCommandToBinding(y+A,o,u)},this)}},a.prototype._addCommandToBinding=function(l,o,u){var g=this.commandKeyBinding,y;if(!o)delete g[l];else if(!g[l]||this.$singleCommand)g[l]=o;else{Array.isArray(g[l])?(y=g[l].indexOf(o))!=-1&&g[l].splice(y,1):g[l]=[g[l]],typeof u!="number"&&(u=s(o));var b=g[l];for(y=0;y<b.length;y++){var L=b[y],A=s(L);if(A>u)break}b.splice(y,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(A){return A}),u=o.pop(),g=v[u];if(v.FUNCTION_KEYS[g])u=v.FUNCTION_KEYS[g].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var y=0,b=o.length;b--;){var L=v.KEY_MODS[o[b]];if(L==null)return typeof console<"u"&&console.error("invalid modifier "+o[b]+" in "+l),!1;y|=L}return{key:u,hashId:y}},a.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(l,o,u,g){if(!(g<0)){var y=h[o]+u,b=this.commandKeyBinding[y];return l.$keyChain&&(l.$keyChain+=" "+y,b=this.commandKeyBinding[l.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||y,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-y.length-1):(o==-1||g>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){p(l,a);function l(o,u){var g=a.call(this,o,u)||this;return g.$singleCommand=!0,g}return l}(f);c.call=function(a,l,o){f.prototype.$init.call(a,l,o,!0)},f.call=function(a,l,o){f.prototype.$init.call(a,l,o,!1)},i.HashHandler=c,i.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,i,m){var p=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)}}(),v=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,f=function(s){p(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 g={editor:l,command:a,args:o};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.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);v.implement(f.prototype,h),i.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,i,m){var p=e("../lib/lang"),v=e("../config"),w=e("../range").Range;function h(s,c){return{win:s,mac:c}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(s){v.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){v.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){v.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){v.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){v.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(p.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()),g=u.replace(/\n\s*/," ").length,y=s.session.doc.getLine(a.row),b=a.row+1;b<=l.row+1;b++){var L=p.stringTrimLeft(p.stringTrimRight(s.session.doc.getLine(b)));L.length!==0&&(L=" "+L),y+=L}l.row+1<s.session.doc.getLength()-1&&(y+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new w(a.row,0,l.row+2,0),y),g>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+g)):(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 f=1;f<9;f++)i.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,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(e,i,m){var p=e("../lib/keys"),v=e("../mouse/default_gutter_handler").GutterTooltip,w=function(){function f(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 v(this.editor)}return f.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))},f.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))},f.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===p.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=p.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)},f.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===p.tab){s.preventDefault();return}if(s.keyCode===p.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===p.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===p.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===p.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===p.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===p.enter||s.keyCode===p.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}},f.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()},f.prototype.$isFoldWidgetVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return c&&a},f.prototype.$isAnnotationVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return c&&a},f.prototype.$getFoldWidget=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[1]},f.prototype.$getAnnotation=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[2]},f.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},f.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},f.prototype.$focusFoldWidget=function(s){if(s!=null){var c=this.$getFoldWidget(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},f.prototype.$focusAnnotation=function(s){if(s!=null){var c=this.$getAnnotation(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},f.prototype.$blurFoldWidget=function(s){var c=this.$getFoldWidget(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},f.prototype.$blurAnnotation=function(s){var c=this.$getAnnotation(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},f.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}},f.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}},f.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}},f.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}},f.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}},f.prototype.$rowIndexToRow=function(s){var c=this.lines.get(s);return c?c.row:null},f.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},f}();i.GutterKeyboardHandler=w;var h=function(){function f(s,c){this.gutterKeyboardHandler=c,this.domEvent=s}return f.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},f.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},f.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},f.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},f}();i.GutterKeyboardEvent=h}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(e,i,m){var p=this&&this.__values||function($){var _=typeof Symbol=="function"&&Symbol.iterator,S=_&&$[_],R=0;if(S)return S.call($);if($&&typeof $.length=="number")return{next:function(){return $&&R>=$.length&&($=void 0),{value:$&&$[R++],done:!$}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),f=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,a=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,g=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,b=e("./commands/command_manager").CommandManager,L=e("./commands/default_commands").commands,A=e("./config"),k=e("./token_iterator").TokenIterator,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,M=e("./config").nls,E=e("./clipboard"),I=e("./lib/keys"),T=function(){function $(_,S,R){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++$.$uid,this.commands=new b(f.isMac?"mac":"win",L),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new a(this)),this.keyBinding=new l(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,H){H._$emitInputEvent.schedule(31)}),this.setSession(S||R&&R.session||new o("")),A.resetOptions(this),R&&this.setOptions(R),A._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(_){this.session.startOperation(_)},$.prototype.endOperation=function(_){this.session.endOperation(_)},$.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},$.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var S=this.curOp.command,R=S&&S.scrollIntoView;if(R){switch(R){case"center-animate":R="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}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var S=this.prevOp,R=this.$mergeableCommands,O=S.command&&_.command.name==S.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(S.args)),this.mergeNextCommand=!0}else O=O&&R.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:R.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(_,S){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var R=this;A.loadModule(["keybinding",_],function(O){R.$keybindingId==_&&R.keyBinding.setKeyboardHandler(O&&O.handler),S&&S()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),S&&S()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var S=this.session;if(S){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 R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:S}),this.curOp=null,S&&S._signal("changeEditor",{oldEditor:this}),S&&(S.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(_,S){return this.session.doc.setValue(_),S?S==1?this.navigateFileEnd():S==-1&&this.navigateFileStart():this.selectAll(),_},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(_){this.renderer.onResize(_)},$.prototype.setTheme=function(_,S){this.renderer.setTheme(_,S)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(_){this.renderer.setStyle(_)},$.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(_){this.setOption("fontSize",_)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var S=_.session;if(!(!S||S.destroyed)){S.$bracketHighlight&&(S.$bracketHighlight.markerIds.forEach(function(G){S.removeMarker(G)}),S.$bracketHighlight=null);var R=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),H=S.getMatchingBracketRanges(R,F);if(!H){var W=new k(S,R.row,R.column),V=W.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=S.getMatchingTags(R);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&S.$mode.getMatching&&(H=S.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(H)?H.length==1&&(J="ace_error_bracket"):H=[H],H.length==2&&(g.comparePoints(H[0].end,H[1].start)==0?H=[g.fromPoints(H[0].start,H[1].end)]:g.comparePoints(H[0].start,H[1].end)==0&&(H=[g.fromPoints(H[1].start,H[0].end)])),S.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return S.addMarker(G,J,"text")})},_.getHighlightIndentGuides()&&_.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(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},$.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(_){var S=this.session.$useWrapMode,R=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,R,S),this._signal("change",_),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(_){var S=_.data;this.renderer.updateLines(S.first,S.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 _=this.getSession(),S;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(S=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(S=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(S=!1)),_.$highlightLineMarker&&!S)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&S){var R=new g(S.row,S.column,S.row,1/0);R.id=_.addMarker(R,"ace_active-line","screenLine"),_.$highlightLineMarker=R}else S&&(_.$highlightLineMarker.start.row=S.row,_.$highlightLineMarker.end.row=S.row,_.$highlightLineMarker.start.column=S.column,_._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(_){var S=this.session;if(S.$selectionMarker&&S.removeMarker(S.$selectionMarker),S.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),O=this.getSelectionStyle();S.$selectionMarker=S.addMarker(R,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,S=this.getSelectionRange();if(!(S.isEmpty()||S.isMultiLine())){var R=S.start.column,O=S.end.column,F=_.getLine(S.start.row),H=F.substring(R,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(R-1,O+1);if(W.test(V))return W}}},$.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(_){this.renderer.updateText(),this._emit("changeMode",_)},$.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 _=this.getSelectedText(),S=this.session.doc.getNewLineCharacter(),R=!1;if(!_&&this.$copyWithEmptySelection){R=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var H=O[F];F&&O[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+S)}}var W={text:_};return this._signal("copy",W),E.lineMode=R?W.text:!1,W.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(_,S){var R={text:_,event:S};this.commands.exec("paste",this,R)},$.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var S=_.text,R=S===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)R?O.insert({row:this.selection.lead.row,column:0},S):this.insert(S);else if(R)this.selection.rangeList.ranges.forEach(function(J){O.insert({row:J.start.row,column:0},S)});else{var F=S.split(/\r\n|\r|\n/),H=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||W)return this.commands.exec("insertstring",this,S);for(var V=H.length;V--;){var q=H[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},$.prototype.execCommand=function(_,S){return this.commands.exec(_,this,S)},$.prototype.insert=function(_,S){var R=this.session,O=R.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!S){var H=O.transformAction(R.getState(F.row),"insertion",this,R,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
203
+ `)==-1){var W=g.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
204
+ `||_==`\r
205
+ `){var G=R.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);R.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,J=R.getState(F.row),G=R.getLine(F.row),Q=O.checkOutdent(J,G,_);if(R.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new g(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new g(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine(_)){var ie=O.getNextLineIndent(J,G.slice(0,F.column),R.getTabString());R.insert({row:F.row+1,column:0},ie)}Q&&O.autoOutdent(J,R,F.row)}},$.prototype.autoIndent=function(){for(var _=this.session,S=_.getMode(),R=this.selection.isEmpty()?[new g(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",W=_.getTabString(),V=0;V<R.length;V++)for(var q=R[V].start.row,J=R[V].end.row,G=q;G<=J;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),H=S.getNextLineIndent(O,F,W));var Q=_.getLine(G),ie=S.$getIndent(Q);if(H!==ie){if(ie.length>0){var X=new g(G,0,G,ie.length);_.remove(X)}H.length>0&&_.insert({row:G,column:0},H)}S.autoOutdent(O,_,G)}},$.prototype.onTextInput=function(_,S){if(!S)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,_,S);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},$.prototype.applyComposition=function(_,S){if(S.extendLeft||S.extendRight){var R=this.selection.getRange();R.start.column-=S.extendLeft,R.end.column+=S.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!_&&!R.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),S.restoreStart||S.restoreEnd){var R=this.selection.getRange();R.start.column-=S.restoreStart,R.end.column-=S.restoreEnd,this.selection.setRange(R)}},$.prototype.onCommandKey=function(_,S,R){return this.keyBinding.onCommandKey(_,S,R)},$.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var S=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,O=R.getState(S.start.row),F=R.getMode().transformAction(O,"deletion",this,R,S);if(S.end.column===0){var H=R.getTextRange(S);if(H[H.length-1]==`
206
+ `){var W=R.getLine(S.end.row);/^\s+$/.test(W)&&(S.end.column=W.length)}}F&&(S=F)}this.session.remove(S),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 _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(_)},$.prototype.setGhostText=function(_,S){this.renderer.setGhostText(_,S)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),S=_.column;if(S!==0){var R=this.session.getLine(_.row),O,F;S<R.length?(O=R.charAt(S)+R.charAt(S-1),F=new g(_.row,S-1,_.row,S+1)):(O=R.charAt(S-1)+R.charAt(S-2),F=new g(_.row,S-2,_.row,S)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},$.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),R=this.session.getTextRange(S);this.session.replace(S,R.toLowerCase()),this.selection.setSelectionRange(_)},$.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),R=this.session.getTextRange(S);this.session.replace(S,R.toUpperCase()),this.selection.setSelectionRange(_)},$.prototype.indent=function(){var _=this.session,S=this.getSelectionRange();if(S.start.row<S.end.row){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}else if(S.start.column<S.end.column){var O=_.getTextRange(S);if(!/^\s+$/.test(O)){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}}var F=_.getLine(S.start.row),H=S.start,W=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=W-V%W,J=h.stringRepeat(" ",q);else{for(var q=V%W;F[S.start.column-1]==" "&&q;)S.start.column--,q--;this.selection.setSelectionRange(S),J=" "}return this.insert(J)},$.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},$.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},$.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),S=this.session,R=[],O=_.first;O<=_.last;O++)R.push(S.getLine(O));R.sort(function(W,V){return W.toLowerCase()<V.toLowerCase()?-1:W.toLowerCase()>V.toLowerCase()?1:0});for(var F=new g(0,0,0,0),O=_.first;O<=_.last;O++){var H=S.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,S.replace(F,R[O-_.first])}},$.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),S=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,S.first,S.last)},$.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),S=this.session.getState(_.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment(S,this.session,R,_)},$.prototype.getNumberAt=function(_,S){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var O=this.session.getLine(_);R.lastIndex<S;){var F=R.exec(O);if(F.index<=S&&F.index+F[0].length>=S){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},$.prototype.modifyNumber=function(_){var S=this.selection.getCursor().row,R=this.selection.getCursor().column,O=new g(S,R-1,S,R),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt(S,R);if(H){var W=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-W,q=parseFloat(H.value);q*=Math.pow(10,V),W!==H.end&&R<W?_*=Math.pow(10,H.end-R-1):_*=Math.pow(10,H.end-R),q+=_,q/=Math.pow(10,V);var J=q.toFixed(V),G=new g(S,H.start,S,H.end);this.session.replace(G,J),this.moveCursorTo(S,Math.max(H.start+1,R+J.length-H.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var _=this.selection.getCursor().row,S=this.selection.getCursor().column;this.selection.selectWord();var R=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=R.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=S-O-1;H<0&&(H=0);var W=0,V=0,q=this;R.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,$e){V=W+fe.length,H>=W&&H<=V&&(R=fe,q.selection.clearSelection(),q.moveCursorTo(_,W+O),q.selection.selectTo(_,V+O)),W=V});for(var J=this.$toggleWordPairs,G,Q=0;Q<J.length;Q++)for(var ie=J[Q],X=0;X<=1;X++){var ae=+!X,ve=R.match(new RegExp("^\\s?_?("+h.escapeRegExp(ie[X])+")\\s?$","i"));if(ve){var we=R.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(ve[1])+")($|\\s)","g"));we&&(G=R.replace(new RegExp(h.escapeRegExp(ie[X]),"i"),function(fe){var $e=ie[ae];return fe.toUpperCase()==fe?$e=$e.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&($e=$e.substr(0,0)+ie[ae].charAt(0).toUpperCase()+$e.substr(1)),$e}),this.insert(G),G="")}}},$.prototype.findLinkAt=function(_,S){var R,O,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=S;W<0&&(W=0);var V=0,q=0,J;try{for(var G=p(H),Q=G.next();!Q.done;Q=G.next()){var ie=Q.value;if(q=V+ie.length,W>=V&&W<=q&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){J=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(X){R={error:X}}finally{try{Q&&!Q.done&&(O=G.return)&&O.call(G)}finally{if(R)throw R.error}}return J},$.prototype.openLink=function(){var _=this.selection.getCursor(),S=this.findLinkAt(_.row,_.column);return S&&window.open(S,"_blank"),S!=null},$.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var _=this.selection,S=this.session,R=_.getRange(),O=_.isBackwards();if(R.isEmpty()){var F=R.start.row;S.duplicateLines(F,F)}else{var H=O?R.start:R.end,W=S.insert(H,S.getTextRange(R));R.start=H,R.end=W,_.setSelectionRange(R,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(_,S,R){return this.session.moveText(_,S,R)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(_,S){var R,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();R=this.$getSelectedRows(H),O=this.session.$moveLines(R.first,R.last,S?0:_),S&&_==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,J=W.length,G=0;G<J;G++){var Q=G;W[G].moveBy(V,0),R=this.$getSelectedRows(W[G]);for(var ie=R.first,X=R.last;++G<J;){q&&W[G].moveBy(q,0);var ae=this.$getSelectedRows(W[G]);if(S&&ae.first!=X||!S&&ae.first>X+1)break;X=ae.last}for(G--,V=this.session.$moveLines(ie,X,S?0:_),S&&_==-1&&(Q=G+1);Q<=G;)W[Q].moveBy(V,0),Q++;S||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},$.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},$.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(_,S){var R=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);S===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):S===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var H=R.scrollTop;R.scrollBy(0,F*O.lineHeight),S!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(H)},$.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(_){this.renderer.scrollToRow(_)},$.prototype.scrollToLine=function(_,S,R,O){this.renderer.scrollToLine(_,S,R,O)},$.prototype.centerSelection=function(){var _=this.getSelectionRange(),S={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor(S,.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(_,S){this.selection.moveCursorTo(_,S)},$.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},$.prototype.jumpToMatching=function(_,S){var R=this.getCursorPosition(),O=new k(this.session,R.row,R.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var W=F||O.stepForward();if(W){var V,q=!1,J={},G=R.column-W.start,Q,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!q;G++)if(ie[W.value[G]])switch(Q=ie[W.value[G]]+"."+W.type.replace("rparen","lparen"),isNaN(J[Q])&&(J[Q]=0),W.value[G]){case"(":case"[":case"{":J[Q]++;break;case")":case"]":case"}":J[Q]--,J[Q]===-1&&(V="bracket",q=!0);break}}else W.type.indexOf("tag-name")!==-1&&(isNaN(J[W.value])&&(J[W.value]=0),F.value==="<"&&H>1?J[W.value]++:F.value==="</"&&J[W.value]--,J[W.value]===-1&&(V="tag",q=!0));q||(F=W,H++,W=O.stepForward(),G=0)}while(W&&!q);if(V){var X,ae;if(V==="bracket")X=this.session.getBracketRange(R),X||(X=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=X.start,(S||ae.row===R.row&&Math.abs(ae.column-R.column)<2)&&(X=this.session.getBracketRange(ae)));else if(V==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(X=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),X.compare(R.row,R.column)===0){var ve=this.session.getMatchingTags(R);ve&&(ve.openTag.contains(R.row,R.column)?(X=ve.closeTag,ae=X.start):(X=ve.openTag,ve.closeTag.start.row===R.row&&ve.closeTag.start.column===R.column?ae=X.end:ae=X.start))}ae=ae||X.start}ae=X&&X.cursor||ae,ae&&(_?X&&S?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(_,S,R){this.selection.clearSelection(),this.session.unfold({row:_-1,column:S||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,S||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,R)},$.prototype.navigateTo=function(_,S){this.selection.moveTo(_,S)},$.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},$.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},$.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var S=this.getSelectionRange().start;this.moveCursorToPosition(S)}this.clearSelection()},$.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var S=this.getSelectionRange().end;this.moveCursorToPosition(S)}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(_,S){S&&this.$search.set(S);var R=this.$search.find(this.session),O=0;return R&&(this.$tryReplace(R,_)&&(O=1),this.selection.setSelectionRange(R),this.renderer.scrollSelectionIntoView(R.start,R.end)),O},$.prototype.replaceAll=function(_,S){S&&this.$search.set(S);var R=this.$search.findAll(this.session),O=0;if(!R.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=R.length-1;H>=0;--H)this.$tryReplace(R[H],_)&&O++;return this.selection.setSelectionRange(F),O},$.prototype.$tryReplace=function(_,S){var R=this.session.getTextRange(_);return S=this.$search.replace(R,S),S!==null?(_.end=this.session.replace(_,S),_):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(_,S,R){S||(S={}),typeof _=="string"||_ instanceof RegExp?S.needle=_:typeof _=="object"&&v.mixin(S,_);var O=this.selection.getRange();S.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set(S),S.start||this.$search.set({start:O});var F=this.$search.find(this.session);if(S.preventScroll)return F;if(F)return this.revealRange(F,R),F;S.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},$.prototype.findNext=function(_,S){this.find({skipCurrent:!0,backwards:!1},_,S)},$.prototype.findPrevious=function(_,S){this.find(_,{skipCurrent:!0,backwards:!0},S)},$.prototype.revealRange=function(_,S){this.session.unfold(_),this.selection.setSelectionRange(_);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),S!==!1&&this.renderer.animateScrolling(R)},$.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(_){_.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(_){if(_){var S,R=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var H=this.on("changeSelection",function(){O=!0}),W=this.renderer.on("beforeRender",function(){O&&(S=R.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&S&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var q=R.renderer,J=q.$cursorLayer.$pixelPos,G=q.layerConfig,Q=J.top-G.offset;J.top>=0&&Q+S.top<0?O=!0:J.top<G.height&&J.top+S.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Q+"px",F.style.left=J.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=S=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",W))}}},$.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",S=this.renderer.$cursorLayer;S&&(S.setSmoothBlinking(/smooth/.test(_)),S.isBlinking=!this.$readOnly&&_!="wide",w.setCssClass(S.element,"ace_slim-cursors",/slim/.test(_)))},$.prototype.prompt=function(_,S,R){var O=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,S,R)})},$}();T.$uid=0,T.prototype.curOp=null,T.prototype.prevOp={},T.prototype.$mergeableCommands=["backspace","del","insertstring"],T.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"],["&&","||"],["==","!="]],v.implement(T.prototype,y),A.defineOptions(T.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 _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var S=w.createElement("div");S.className="ace_placeholder",S.textContent=this.$placeholder||"",this.renderer.placeholderNode=S,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},S=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},R;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",M("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",M("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",S.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",M("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",M("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),R||(R=new x(this)),R.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",S.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),R&&R.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($,_){return(Math.abs($.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function($,_,S){return Math.max(_.toString().length,(S.lastRow+1).toString().length,2)*S.characterWidth},update:function($,_){_.renderer.$loop.schedule(_.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,$)}};i.Editor=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h,f){this.element=h,this.canvasHeight=f||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,f){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,f,s){var c=f.firstRowScreen*f.lineHeight,a=Math.floor(c/this.canvasHeight),l=s.documentToScreenRow(h,0)*f.lineHeight;return l-a*this.canvasHeight},w.prototype.computeLineHeight=function(h,f,s){return f.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 f=p.createFragment(this.element),s=0;s<h.length;s++)f.appendChild(h[s].element);this.element.appendChild(f)}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 f=p.createFragment(this.element),s=0;s<h.length;s++)f.appendChild(h[s].element);this.element.firstChild?this.element.insertBefore(f,this.element.firstChild):this.element.appendChild(f)}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,f,s,c){var a=this.cellCache.pop();if(!a){var l=p.createElement("div");c&&c(l),this.element.appendChild(l),a={element:l,text:"",row:h}}return a.row=h,a},w}();i.Lines=v}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,f=e("./lines").Lines,s=e("../config").nls,c=function(){function l(o){this.element=p.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 f(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var g=o[u],y=g.row,b=this.$annotations[y];b||(b=this.$annotations[y]={text:[],type:[],displayText:[]});var L=g.text,A=g.text,k=g.type;L=L?w.escapeHTML(L):g.html||"",A=A||g.html||"",b.text.indexOf(L)===-1&&(b.text.push(L),b.type.push(k),b.displayText.push(A));var x=g.className;x?b.className=x:k==="error"?b.className=" ace_error":k==="security"&&!/\bace_error\b/.test(b.className)?b.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(b.className)?b.className=" ace_warning":k==="info"&&!b.className?b.className=" ace_info":k==="hint"&&!b.className&&(b.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,g=o.end.row-u;if(g!==0)if(o.action=="remove")this.$annotations.splice(u,g+1,null);else{var y=new Array(g+1);y.unshift(u,1),this.$annotations.splice.apply(this.$annotations,y)}}},l.prototype.update=function(o){this.config=o;var u=this.session,g=o.firstRow,y=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=y,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var b=u.getNextFoldLine(g),L=b?b.start.row:1/0,A=null,k=-1,x=g;;){if(x>L&&(x=b.end.row+1,b=u.getNextFoldLine(x,b),L=b?b.start.row:1/0),x>y){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}A=this.$lines.get(++k),A?A.row=x:(A=this.$lines.createCell(x,o,this.session,a),this.$lines.push(A)),this.$renderCell(A,o,b,x),x++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,g=u.gutterRenderer||this.$renderer,y=u.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(b=u.getLength()+y-1);var L=g?g.getWidth(u,b,o):b.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();L+=A.left+A.right,L!==this.gutterWidth&&!isNaN(L)&&(this.gutterWidth=L,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",L))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var g=0;g<u.length;g++){var y=u[g];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(g>0&&b&&b.start.row==u[g-1].row)y=u[g-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=g,!u||y<o.firstRow)return this.update(o);if(g<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(y>g)for(var b=this.session.getFoldedRowCount(g+1,y);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),g>y&&this.$lines.push(this.$renderLines(o,y+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,g){for(var y=[],b=u,L=this.session.getNextFoldLine(b),A=L?L.start.row:1/0;b>A&&(b=L.end.row+1,L=this.session.getNextFoldLine(b,L),A=L?L.start.row:1/0),!(b>g);){var k=this.$lines.createCell(b,o,this.session,a);this.$renderCell(k,o,L,b),y.push(k),b++}return y},l.prototype.$renderCell=function(o,u,g,y){var b=o.element,L=this.session,A=b.childNodes[0],k=b.childNodes[1],x=b.childNodes[2],M=x.firstChild,E=L.$firstLineNumber,I=L.$breakpoints,T=L.$decorations,N=L.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&L.foldWidgets,_=g?g.start.row:Number.MAX_VALUE,S=u.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(L,y):y+E).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||g&&y<this.$cursorRow&&y>=_&&this.$cursorRow<=g.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[y]&&(R+=I[y]),T[y]&&(R+=T[y]),this.$annotations[y]&&y!==_&&(R+=this.$annotations[y].className),$){var H=$[y];H==null&&(H=$[y]=L.getFoldWidget(y))}if(H){var W="ace_fold-widget ace_"+H,V=H=="start"&&y==_&&y<g.end.row;if(V){W+=" ace_closed";for(var q="",J=!1,G=y+1;G<=g.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")}R+=q}else W+=" ace_open";k.className!=W&&(k.className=W),p.setStyle(k.style,"height",S),p.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Q=L.getFoldWidgetRange(y);Q?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Q.start.row+1,Q.end.row+1])):g?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[g.start.row+1,g.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[y+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(p.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(J&&this.$showFoldedAnnotations){x.className="ace_gutter_annotation",M.className=O,M.className+=q,p.setStyle(M.style,"height",S),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",S);var ie;switch(q){case" ace_error_fold":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}x.setAttribute("aria-label",ie),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else if(this.$annotations[y]){x.className="ace_gutter_annotation",M.className=O,this.$useSvgGutterIcons?M.className+=this.$annotations[y].className:b.classList.add(this.$annotations[y].className.replace(" ","")),p.setStyle(M.style,"height",S),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",S);var ie;switch(this.$annotations[y].className){case" ace_error":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":ie=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":ie=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}x.setAttribute("aria-label",ie),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else p.setStyle(x.style,"display","none"),x.removeAttribute("aria-label"),x.removeAttribute("role"),x.setAttribute("tabindex","0");return F!==A.data&&(A.data=F),b.className!=R&&(b.className=R),p.setStyle(o.element.style,"height",this.$lines.computeLineHeight(y,u,L)+"px"),p.setStyle(o.element.style,"top",this.$lines.computeLineTop(y,u,L)+"px"),o.text=F,x.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?p.addCssClass(this.element,"ace_folding-enabled"):p.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=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),g=this.element.getBoundingClientRect();if(o.x<u.left+g.left)return"markers";if(this.$showFoldWidgets&&o.x>g.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,v.implement(c.prototype,h);function a(l){var o=document.createTextNode("");l.appendChild(o);var u=p.createElement("span");l.appendChild(u);var g=p.createElement("span");l.appendChild(g);var y=p.createElement("span");return g.appendChild(y),l}i.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,i,m){var p=e("../range").Range,v=e("../lib/dom"),w=function(){function f(s){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return f.prototype.setPadding=function(s){this.$padding=s},f.prototype.setSession=function(s){this.session=s},f.prototype.setMarkers=function(s){this.markers=s},f.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},f.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),g=this.$padding+o.start.column*s.characterWidth;l.renderer(c,o,g,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)}},f.prototype.$getTop=function(s,c){return(s-c.firstRowScreen)*c.lineHeight},f.prototype.drawTextMarker=function(s,c,a,l,o){for(var u=this.session,g=c.start.row,y=c.end.row,b=g,L=0,A=0,k=u.getScreenLastRowColumn(b),x=new p(b,c.start.column,b,A);b<=y;b++)x.start.row=x.end.row=b,x.start.column=b==g?c.start.column:u.getRowWrapIndent(b),x.end.column=k,L=A,A=k,k=b+1<y?u.getScreenLastRowColumn(b+1):b==y?0:c.end.column,this.drawSingleLineMarker(s,x,a+(b==g?" ace_start":"")+" ace_br"+h(b==g||b==g+1&&c.start.column,L<A,A>k,b==y),l,b==y?0:1,o)},f.prototype.drawMultiLineMarker=function(s,c,a,l,o){var u=this.$padding,g=l.lineHeight,y=this.$getTop(c.start.row,l),b=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var L=c.clone();L.end.row=L.start.row,L.end.column=this.session.getLine(L.start.row).length,this.drawBidiSingleLineMarker(s,L,a+" ace_br1 ace_start",l,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+g+"px;right:"+u+"px;top:"+y+"px;left:"+b+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var L=c.clone();L.start.row=L.end.row,L.start.column=0,this.drawBidiSingleLineMarker(s,L,a+" ace_br12",l,null,o)}else{y=this.$getTop(c.end.row,l);var A=c.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+g+"px;width:"+A+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}if(g=(c.end.row-c.start.row-1)*l.lineHeight,!(g<=0)){y=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+g+"px;right:"+u+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}},f.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 g=l.lineHeight,y=(c.end.column+(o||0)-c.start.column)*l.characterWidth,b=this.$getTop(c.start.row,l),L=this.$padding+c.start.column*l.characterWidth;this.elt(a,"height:"+g+"px;width:"+y+"px;top:"+b+"px;left:"+L+"px;"+(u||""))},f.prototype.drawBidiSingleLineMarker=function(s,c,a,l,o,u){var g=l.lineHeight,y=this.$getTop(c.start.row,l),b=this.$padding,L=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);L.forEach(function(A){this.elt(a,"height:"+g+"px;width:"+(A.width+(o||0))+"px;top:"+y+"px;left:"+(b+A.left)+"px;"+(u||""))},this)},f.prototype.drawFullLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),g=l.lineHeight;c.start.row!=c.end.row&&(g+=this.$getTop(c.end.row,l)-u),this.elt(a,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f.prototype.drawScreenLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),g=l.lineHeight;this.elt(a,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f}();w.prototype.$padding=0;function h(f,s,c,a){return(f?1:0)|(s?2:0)|(c?4:0)|(a?8:0)}i.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,i,m){var p=new Set(["text","rparen","lparen"]);i.isTextToken=function(v){return p.has(v)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,f=e("../lib/event_emitter").EventEmitter,s=e("../config").nls,c=e("./text_util").isTextToken,a=function(){function l(o){this.dom=v,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
208
+ `&&o.getNewLineMode()!="windows",g=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],g=1;g<o+1;g++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=w.stringRepeat(this.TAB_CHAR,g),u.push(y)}else u.push(this.dom.createTextNode(w.stringRepeat(" ",g),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",L=this.showSpaces?" ace_invisible ace_invisible_space":"",A=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",x=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):A,y=this.dom.createElement("span");y.className=b+L,y.textContent=A,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=b+k,y.textContent=x,this.$tabStrings[" "]=y}},l.prototype.updateLines=function(o,u,g){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var y=Math.max(u,o.firstRow),b=Math.min(g,o.lastRow),L=this.element.childNodes,A=0,k=o.firstRow;k<y;k++){var x=this.session.getFoldLine(k);if(x)if(x.containsRow(y)){y=x.start.row;break}else k=x.end.row;A++}for(var M=!1,k=y,x=this.session.getNextFoldLine(k),E=x?x.start.row:1/0;k>E&&(k=x.end.row+1,x=this.session.getNextFoldLine(k,x),E=x?x.start.row:1/0),!(k>b);){var I=L[A++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==E?x:!1),M&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var T=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=T&&(M=!0,I.style.height=T)}k++}if(M)for(;A<this.$lines.cells.length;){var N=this.$lines.cells[A++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=o.lastRow,y=u?u.lastRow:-1;if(!u||y<o.firstRow)return this.update(o);if(g<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var 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,g){for(var y=[],b=u,L=this.session.getNextFoldLine(b),A=L?L.start.row:1/0;b>A&&(b=L.end.row+1,L=this.session.getNextFoldLine(b,L),A=L?L.start.row:1/0),!(b>g);){var k=this.$lines.createCell(b,o,this.session),x=k.element;this.dom.removeChildren(x),v.setStyle(x.style,"height",this.$lines.computeLineHeight(b,o,this.session)+"px"),v.setStyle(x.style,"top",this.$lines.computeLineTop(b,o,this.session)+"px"),this.$renderLine(x,b,b==A?L:!1),this.$useLineGroups()?x.className="ace_line_group":x.className="ace_line",y.push(k),b++}return y},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,g=o.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(o,u,g))},l.prototype.$renderToken=function(o,u,g,y){for(var b=this,L=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,A=this.dom.createFragment(this.element),k,x=0;k=L.exec(y);){var M=k[1],E=k[2],I=k[3],T=k[4],N=k[5];if(!(!b.showSpaces&&E)){var $=x!=k.index?y.slice(x,k.index):"";if(x=k.index+k[0].length,$&&A.appendChild(this.dom.createTextNode($,this.element)),M){var _=b.session.getScreenTabSize(u+k.index);A.appendChild(b.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(E)if(b.showSpaces){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space",S.textContent=w.stringRepeat(b.SPACE_CHAR,E.length),A.appendChild(S)}else A.appendChild(this.dom.createTextNode(E,this.element));else if(I){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space ace_invalid",S.textContent=w.stringRepeat(b.SPACE_CHAR,I.length),A.appendChild(S)}else if(T){u+=1;var S=this.dom.createElement("span");S.style.width=b.config.characterWidth*2+"px",S.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",S.textContent=b.showSpaces?b.SPACE_CHAR:T,A.appendChild(S)}else if(N){u+=1;var S=this.dom.createElement("span");S.style.width=b.config.characterWidth*2+"px",S.className="ace_cjk",S.textContent=N,A.appendChild(S)}}}if(A.appendChild(this.dom.createTextNode(x?y.slice(x):y,this.element)),c(g.type))o.appendChild(A);else{var R="ace_"+g.type.replace(/\./g," ace_"),S=this.dom.createElement("span");g.type=="fold"&&(S.style.width=g.value.length*this.config.characterWidth+"px",S.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),S.className=R,S.appendChild(A),o.appendChild(S)}return u+y.length},l.prototype.renderIndentGuide=function(o,u,g){var y=u.search(this.$indentGuideRe);if(y<=0||y>=g)return u;if(u[0]==" "){y-=y%this.tabSize;for(var b=y/this.tabSize,L=0;L<b;L++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}else if(u[0]==" "){for(var L=0;L<y;L++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),g=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,y=Math.floor(g/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:u.row};var b=this.session.$bracketHighlight;if(b){for(var L=this.session.$bracketHighlight.ranges,A=0;A<L.length;A++)if(u.row!==L[A].start.row){this.$highlightIndentGuideMarker.end=L[A].start.row,u.row>L[A].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 A=u.row+1;A<o.length;A++){var k=o[A],x=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=A,x<=g))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var g=o[u],y=g.element.childNodes;if(y.length>0){for(var b=0;b<y.length;b++)if(y[b].classList&&y[b].classList.contains("ace_indent-guide-active")){y[b].classList.remove("ace_indent-guide-active");break}}}},l.prototype.$setIndentGuideActive=function(o,u){var g=this.session.doc.getLine(o.row);if(g!==""){var y=o.element.childNodes;if(y){var b=y[u-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var g=0;g<o.length;g++){var y=o[g];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}else for(var g=o.length-1;g>=0;g--){var y=o[g];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,g){var y=0,b=0,L=g[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var x=0;x<u.length;x++){var M=u[x],E=M.value;if(x==0&&this.displayIndentGuides){if(y=E.length,E=this.renderIndentGuide(k,E,L),!E)continue;y-=E.length}if(y+E.length<L)A=this.$renderToken(k,A,M,E),y+=E.length;else{for(;y+E.length>=L;)A=this.$renderToken(k,A,M,E.substring(0,L-y)),E=E.substring(L-y),y=L,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",g.indent),this.element)),b++,A=0,L=g[b]||Number.MAX_VALUE;E.length!=0&&(y+=E.length,A=this.$renderToken(k,A,M,E))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var g=0,y=0;y<u.length;y++){var b=u[y],L=b.value;if(!(y==0&&this.displayIndentGuides&&(L=this.renderIndentGuide(o,L),!L))){if(g+L.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,g,b,L);g=this.$renderToken(o,g,b,L)}}},l.prototype.$renderOverflowMessage=function(o,u,g,y,b){g&&this.$renderToken(o,u,g,y.slice(0,this.MAX_LINE_LENGTH-u));var L=this.dom.createElement("span");L.className="ace_inline_button ace_keyword ace_toggle_wrap",L.textContent=b?"<hide>":"<click to see more...>",o.appendChild(L)},l.prototype.$renderLine=function(o,u,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(u)),g)var y=this.$getFoldLineTokens(u,g);else var y=this.session.getTokens(u);var b=o;if(y.length){var L=this.session.getRowSplitData(u);if(L&&L.length){this.$renderWrappedLine(o,y,L);var b=o.lastChild}else{var b=o;this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b)),this.$renderSimpleLine(b,y)}}else this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b));if(this.showEOL&&b){g&&(u=g.end.row);var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_eol",A.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(A)}},l.prototype.$getFoldLineTokens=function(o,u){var g=this.session,y=[];function b(A,k,x){for(var M=0,E=0;E+A[M].value.length<k;)if(E+=A[M].value.length,M++,M==A.length)return;if(E!=k){var I=A[M].value.substring(k-E);I.length>x-k&&(I=I.substring(0,x-k)),y.push({type:A[M].type,value:I}),E=k+I.length,M+=1}for(;E<x&&M<A.length;){var I=A[M].value;I.length+E>x?y.push({type:A[M].type,value:I.substring(0,x-E)}):y.push(A[M]),E+=I.length,M+=1}}var L=g.getTokens(o);return u.walk(function(A,k,x,M,E){A!=null?y.push({type:"fold",value:A}):(E&&(L=g.getTokens(k)),L.length&&b(L,M,x))},u.end.row,this.session.getLine(u.end.row).length),y},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,p.implement(a.prototype,f),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var f=this.cursors,s=f.length;s--;)p.setStyle(f[s].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,f=h.length;f--;)h[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,p.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),p.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),f()},this.blinkInterval),f()}},w.prototype.getPixelPosition=function(h,f){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-(f?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:a}},w.prototype.isCursorInView=function(h,f){return h.top>=0&&h.top<f.maxHeight},w.prototype.update=function(h){this.config=h;var f=this.session.$selectionMarkers,s=0,c=0;(f===void 0||f.length===0)&&(f=[{cursor:null}]);for(var s=0,a=f.length;s<a;s++){var l=this.getPixelPosition(f[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,f[s],this.session):this.isCursorInView(l,h)?(p.setStyle(u,"display","block"),p.translate(o,l.left,l.top),p.setStyle(u,"width",Math.round(h.characterWidth)+"px"),p.setStyle(u,"height",h.lineHeight+"px")):p.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=l,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();v.prototype.$padding=0,v.prototype.drawCursor=null,i.Cursor=v}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var p=this&&this.__extends||function(){var o=function(u,g){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&(y[L]=b[L])},o(u,g)};return function(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");o(u,g);function y(){this.constructor=u}u.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./lib/event_emitter").EventEmitter,s=32768,c=function(){function o(u,g){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,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}();v.implement(c.prototype,f);var a=function(o){p(u,o);function u(g,y){var b=o.call(this,g,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,y.$scrollbarWidth=b.width=w.scrollbarWidth(g.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 g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(g){this.element.style.height=g+"px"},u.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>s?(this.coeff=s/g,g=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},u.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},u}(c);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(o){p(u,o);function u(g,y){var b=o.call(this,g,"-h")||this;return b.scrollLeft=0,b.height=y.$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(g){this.element.style.width=g+"px"},u.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},u}(c);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=l,i.VScrollBar=a,i.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[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 g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./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}();v.implement(s.prototype,f);var c=function(l){p(o,l);function o(u,g){var y=l.call(this,u,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=u,y.width=y.VScrollWidth,y.renderer=g,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var y=this,b=g.clientY,L=function(T){b=T.clientY},A=function(){clearInterval(E)},k=g.clientY,x=this.thumbTop,M=function(){if(b!==void 0){var T=y.scrollTopFromThumbTop(x+b-k);T!==y.scrollTop&&y._emit("scroll",{data:T})}};h.capture(this.inner,L,A);var E=setInterval(M,20);return h.preventDefault(g)}var I=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var g=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,g){this.pageHeight===u&&!g||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var a=function(l){p(o,l);function o(u,g){var y=l.call(this,u,"-h")||this;return y.scrollLeft=0,y.scrollWidth=0,y.height=y.HScrollHeight,y.inner.style.height=y.element.style.height=(y.height||12)+"px",y.renderer=g,y}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var y=this,b=g.clientX,L=function(T){b=T.clientX},A=function(){clearInterval(E)},k=g.clientX,x=this.thumbLeft,M=function(){if(b!==void 0){var T=y.scrollLeftFromThumbLeft(x+b-k);T!==y.scrollLeft&&y._emit("scroll",{data:T})}};h.capture(this.inner,L,A);var E=setInterval(M,20);return h.preventDefault(g)}var I=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var g=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,g){this.pageWidth===u&&!g||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,i.ScrollBar=c,i.ScrollBarV=c,i.ScrollBarH=a,i.VScrollBar=c,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,i,m){var p=e("./lib/event"),v=function(){function w(h,f){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var s=this;this._flush=function(c){s.pending=!1;var a=s.changes;if(a&&(p.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&&(p.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var f=this.changes;return this.changes=0,f},w}();i.RenderLoop=v}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),f=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=512,a=typeof ResizeObserver=="function",l=200,o=function(){function u(g){this.el=v.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=v.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=v.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.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(g,y){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",f.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=y?"hidden":"visible"},u.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===g.width&&y.height===g.height,this._emit("changeCharacterSize",{data:g})}},u.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(y){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=h.onIdle(function y(){g.checkForSizeChanges(),h.onIdle(y,500)},500)},u.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(g){var y={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/c};return y.width===0||y.height===0?null:y},u.prototype.$measureCharWidth=function(g){this.$main.textContent=w.stringRepeat(g,c);var y=this.$main.getBoundingClientRect();return y.width/c},u.prototype.getCharacterWidth=function(g){var y=this.charSizes[g];return y===void 0&&(y=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),y},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(Number(window.getComputedStyle(g).zoom)||1)*this.$getZoom(g.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var g=function(y,b){return["div",{style:"position: absolute;top:"+y+"px;left:"+b+"px;"}]};this.els=v.buildDom([g(0,0),g(l,0),g(0,l),g(l,l)],this.el)},u.prototype.transformCoordinates=function(g,y){if(g){var b=this.$getZoom(this.el);g=x(1/b,g)}function L(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 A(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function x(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function M(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var E=M(this.els[0]),I=M(this.els[1]),T=M(this.els[2]),N=M(this.els[3]),$=L(A(N,I),A(N,T),A(k(I,T),k(N,E))),_=x(1+$[0],A(I,E)),S=x(1+$[1],A(T,E));if(y){var R=y,O=$[0]*R[0]/l+$[1]*R[1]/l+1,F=k(x(R[0],_),x(R[1],S));return k(x(1/O/l,F),E)}var H=A(g,E),W=L(A(_,x($[0],H)),A(S,x($[1],H)),H);return x(l,W)},u}();o.prototype.$characterSize={width:0,height:0},p.implement(o.prototype,s),i.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,i,m){m.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 &nbsp; instead of space*/
478
+ white-space: pre!important;
479
+ }
480
+ .ace_text-input.ace_composition {
481
+ background: transparent;
482
+ color: inherit;
483
+ z-index: 1000;
484
+ opacity: 1;
485
+ }
486
+ .ace_composition_placeholder { color: transparent }
487
+ .ace_composition_marker {
488
+ border-bottom: 1px solid;
489
+ position: absolute;
490
+ border-radius: 0;
491
+ margin-top: 1px;
492
+ }
493
+
494
+ [ace_nocontext=true] {
495
+ transform: none!important;
496
+ filter: none!important;
497
+ clip-path: none!important;
498
+ mask : none!important;
499
+ contain: none!important;
500
+ perspective: none!important;
501
+ mix-blend-mode: initial!important;
502
+ z-index: auto;
503
+ }
504
+
505
+ .ace_layer {
506
+ z-index: 1;
507
+ position: absolute;
508
+ overflow: hidden;
509
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
+ word-wrap: normal;
511
+ white-space: pre;
512
+ height: 100%;
513
+ width: 100%;
514
+ box-sizing: border-box;
515
+ /* setting pointer-events: auto; on node under the mouse, which changes
516
+ during scroll, will break mouse wheel scrolling in Safari */
517
+ pointer-events: none;
518
+ }
519
+
520
+ .ace_gutter-layer {
521
+ position: relative;
522
+ width: auto;
523
+ text-align: right;
524
+ pointer-events: auto;
525
+ height: 1000000px;
526
+ contain: style size layout;
527
+ }
528
+
529
+ .ace_text-layer {
530
+ font: inherit !important;
531
+ position: absolute;
532
+ height: 1000000px;
533
+ width: 1000000px;
534
+ contain: style size layout;
535
+ }
536
+
537
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
+ contain: style size layout;
539
+ position: absolute;
540
+ top: 0;
541
+ left: 0;
542
+ right: 0;
543
+ }
544
+
545
+ .ace_hidpi .ace_text-layer,
546
+ .ace_hidpi .ace_gutter-layer,
547
+ .ace_hidpi .ace_content,
548
+ .ace_hidpi .ace_gutter {
549
+ contain: strict;
550
+ }
551
+ .ace_hidpi .ace_text-layer > .ace_line,
552
+ .ace_hidpi .ace_text-layer > .ace_line_group {
553
+ contain: strict;
554
+ }
555
+
556
+ .ace_cjk {
557
+ display: inline-block;
558
+ text-align: center;
559
+ }
560
+
561
+ .ace_cursor-layer {
562
+ z-index: 4;
563
+ }
564
+
565
+ .ace_cursor {
566
+ z-index: 4;
567
+ position: absolute;
568
+ box-sizing: border-box;
569
+ border-left: 2px solid;
570
+ /* workaround for smooth cursor repaintng whole screen in chrome */
571
+ transform: translatez(0);
572
+ }
573
+
574
+ .ace_multiselect .ace_cursor {
575
+ border-left-width: 1px;
576
+ }
577
+
578
+ .ace_slim-cursors .ace_cursor {
579
+ border-left-width: 1px;
580
+ }
581
+
582
+ .ace_overwrite-cursors .ace_cursor {
583
+ border-left-width: 0;
584
+ border-bottom: 1px solid;
585
+ }
586
+
587
+ .ace_hidden-cursors .ace_cursor {
588
+ opacity: 0.2;
589
+ }
590
+
591
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
+ opacity: 0;
593
+ }
594
+
595
+ .ace_smooth-blinking .ace_cursor {
596
+ transition: opacity 0.18s;
597
+ }
598
+
599
+ .ace_animate-blinking .ace_cursor {
600
+ animation-duration: 1000ms;
601
+ animation-timing-function: step-end;
602
+ animation-name: blink-ace-animate;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
+ animation-duration: 1000ms;
608
+ animation-timing-function: ease-in-out;
609
+ animation-name: blink-ace-animate-smooth;
610
+ }
611
+
612
+ @keyframes blink-ace-animate {
613
+ from, to { opacity: 1; }
614
+ 60% { opacity: 0; }
615
+ }
616
+
617
+ @keyframes blink-ace-animate-smooth {
618
+ from, to { opacity: 1; }
619
+ 45% { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ 85% { opacity: 0; }
622
+ }
623
+
624
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
+ position: absolute;
626
+ z-index: 3;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selection {
630
+ position: absolute;
631
+ z-index: 5;
632
+ }
633
+
634
+ .ace_marker-layer .ace_bracket {
635
+ position: absolute;
636
+ z-index: 6;
637
+ }
638
+
639
+ .ace_marker-layer .ace_error_bracket {
640
+ position: absolute;
641
+ border-bottom: 1px solid #DE5555;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .ace_marker-layer .ace_active-line {
646
+ position: absolute;
647
+ z-index: 2;
648
+ }
649
+
650
+ .ace_marker-layer .ace_selected-word {
651
+ position: absolute;
652
+ z-index: 4;
653
+ box-sizing: border-box;
654
+ }
655
+
656
+ .ace_line .ace_fold {
657
+ box-sizing: border-box;
658
+
659
+ display: inline-block;
660
+ height: 11px;
661
+ margin-top: -2px;
662
+ vertical-align: middle;
663
+
664
+ background-image:
665
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
+ background-repeat: no-repeat, repeat-x;
668
+ background-position: center center, top left;
669
+ color: transparent;
670
+
671
+ border: 1px solid black;
672
+ border-radius: 2px;
673
+
674
+ cursor: pointer;
675
+ pointer-events: auto;
676
+ }
677
+
678
+ .ace_dark .ace_fold {
679
+ }
680
+
681
+ .ace_fold:hover{
682
+ background-image:
683
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
+ }
686
+
687
+ .ace_tooltip {
688
+ background-color: #f5f5f5;
689
+ border: 1px solid gray;
690
+ border-radius: 1px;
691
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
+ color: black;
693
+ max-width: 100%;
694
+ padding: 3px 4px;
695
+ position: fixed;
696
+ z-index: 999999;
697
+ box-sizing: border-box;
698
+ cursor: default;
699
+ white-space: pre-wrap;
700
+ word-wrap: break-word;
701
+ line-height: normal;
702
+ font-style: normal;
703
+ font-weight: normal;
704
+ letter-spacing: normal;
705
+ pointer-events: none;
706
+ overflow: auto;
707
+ max-width: min(60em, 66vw);
708
+ overscroll-behavior: contain;
709
+ }
710
+ .ace_tooltip pre {
711
+ white-space: pre-wrap;
712
+ }
713
+
714
+ .ace_tooltip.ace_dark {
715
+ background-color: #636363;
716
+ color: #fff;
717
+ }
718
+
719
+ .ace_tooltip:focus {
720
+ outline: 1px solid #5E9ED6;
721
+ }
722
+
723
+ .ace_icon {
724
+ display: inline-block;
725
+ width: 18px;
726
+ vertical-align: top;
727
+ }
728
+
729
+ .ace_icon_svg {
730
+ display: inline-block;
731
+ width: 12px;
732
+ vertical-align: top;
733
+ -webkit-mask-repeat: no-repeat;
734
+ -webkit-mask-size: 12px;
735
+ -webkit-mask-position: center;
736
+ }
737
+
738
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
+ padding-right: 13px;
740
+ }
741
+
742
+ .ace_fold-widget {
743
+ box-sizing: border-box;
744
+
745
+ margin: 0 -12px 0 1px;
746
+ display: none;
747
+ width: 11px;
748
+ vertical-align: top;
749
+
750
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
+ background-repeat: no-repeat;
752
+ background-position: center;
753
+
754
+ border-radius: 3px;
755
+
756
+ border: 1px solid transparent;
757
+ cursor: pointer;
758
+ }
759
+
760
+ .ace_folding-enabled .ace_fold-widget {
761
+ display: inline-block;
762
+ }
763
+
764
+ .ace_fold-widget.ace_end {
765
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
+ }
767
+
768
+ .ace_fold-widget.ace_closed {
769
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
+ }
771
+
772
+ .ace_fold-widget:hover {
773
+ border: 1px solid rgba(0, 0, 0, 0.3);
774
+ background-color: rgba(255, 255, 255, 0.2);
775
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
+ }
777
+
778
+ .ace_fold-widget:active {
779
+ border: 1px solid rgba(0, 0, 0, 0.4);
780
+ background-color: rgba(0, 0, 0, 0.05);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
+ }
783
+ /**
784
+ * Dark version for fold widgets
785
+ */
786
+ .ace_dark .ace_fold-widget {
787
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
+ }
789
+ .ace_dark .ace_fold-widget.ace_end {
790
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
+ }
792
+ .ace_dark .ace_fold-widget.ace_closed {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
+ }
795
+ .ace_dark .ace_fold-widget:hover {
796
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
+ background-color: rgba(255, 255, 255, 0.1);
798
+ }
799
+ .ace_dark .ace_fold-widget:active {
800
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
+ }
802
+
803
+ .ace_inline_button {
804
+ border: 1px solid lightgray;
805
+ display: inline-block;
806
+ margin: -1px 8px;
807
+ padding: 0 5px;
808
+ pointer-events: auto;
809
+ cursor: pointer;
810
+ }
811
+ .ace_inline_button:hover {
812
+ border-color: gray;
813
+ background: rgba(200,200,200,0.2);
814
+ display: inline-block;
815
+ pointer-events: auto;
816
+ }
817
+
818
+ .ace_fold-widget.ace_invalid {
819
+ background-color: #FFB4B4;
820
+ border-color: #DE5555;
821
+ }
822
+
823
+ .ace_fade-fold-widgets .ace_fold-widget {
824
+ transition: opacity 0.4s ease 0.05s;
825
+ opacity: 0;
826
+ }
827
+
828
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
829
+ transition: opacity 0.05s ease 0.05s;
830
+ opacity:1;
831
+ }
832
+
833
+ .ace_underline {
834
+ text-decoration: underline;
835
+ }
836
+
837
+ .ace_bold {
838
+ font-weight: bold;
839
+ }
840
+
841
+ .ace_nobold .ace_bold {
842
+ font-weight: normal;
843
+ }
844
+
845
+ .ace_italic {
846
+ font-style: italic;
847
+ }
848
+
849
+
850
+ .ace_error-marker {
851
+ background-color: rgba(255, 0, 0,0.2);
852
+ position: absolute;
853
+ z-index: 9;
854
+ }
855
+
856
+ .ace_highlight-marker {
857
+ background-color: rgba(255, 255, 0,0.2);
858
+ position: absolute;
859
+ z-index: 8;
860
+ }
861
+
862
+ .ace_mobile-menu {
863
+ position: absolute;
864
+ line-height: 1.5;
865
+ border-radius: 4px;
866
+ -ms-user-select: none;
867
+ -moz-user-select: none;
868
+ -webkit-user-select: none;
869
+ user-select: none;
870
+ background: white;
871
+ box-shadow: 1px 3px 2px grey;
872
+ border: 1px solid #dcdcdc;
873
+ color: black;
874
+ }
875
+ .ace_dark > .ace_mobile-menu {
876
+ background: #333;
877
+ color: #ccc;
878
+ box-shadow: 1px 3px 2px grey;
879
+ border: 1px solid #444;
880
+
881
+ }
882
+ .ace_mobile-button {
883
+ padding: 2px;
884
+ cursor: pointer;
885
+ overflow: hidden;
886
+ }
887
+ .ace_mobile-button:hover {
888
+ background-color: #eee;
889
+ opacity:1;
890
+ }
891
+ .ace_mobile-button:active {
892
+ background-color: #ddd;
893
+ }
894
+
895
+ .ace_placeholder {
896
+ position: relative;
897
+ font-family: arial;
898
+ transform: scale(0.9);
899
+ transform-origin: left;
900
+ white-space: pre;
901
+ opacity: 0.7;
902
+ margin: 0 10px;
903
+ z-index: 1;
904
+ }
905
+
906
+ .ace_ghost_text {
907
+ opacity: 0.5;
908
+ font-style: italic;
909
+ }
910
+
911
+ .ace_ghost_text_container > div {
912
+ white-space: pre;
913
+ }
914
+
915
+ .ghost_text_line_wrapped::after {
916
+ content: "↩";
917
+ position: absolute;
918
+ }
919
+
920
+ .ace_lineWidgetContainer.ace_ghost_text {
921
+ margin: 0px 4px
922
+ }
923
+
924
+ .ace_screenreader-only {
925
+ position:absolute;
926
+ left:-10000px;
927
+ top:auto;
928
+ width:1px;
929
+ height:1px;
930
+ overflow:hidden;
931
+ }
932
+
933
+ .ace_hidden_token {
934
+ display: none;
935
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=function(){function f(s,c){this.canvas=p.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 f.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 g={info:1,warning:2,error:3};u.forEach(function(N){N.priority=g[N.type]||null}),u=u.sort(o);for(var y=this.renderer.session.$foldData,b=0;b<u.length;b++){var L=u[b].row,A=this.compensateFoldRows(L,y),k=Math.round((L-A)*this.lineHeight*this.heightRatio),x=Math.round((L-A)*this.lineHeight*this.heightRatio),M=Math.round(((L-A)*this.lineHeight+this.lineHeight)*this.heightRatio),E=M-x;if(E<this.minDecorationHeight){var I=(x+M)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),x=Math.round(I-this.halfMinDecorationHeight),M=Math.round(I+this.halfMinDecorationHeight)}l.fillStyle=c[u[b].type]||null,l.fillRect(0,k,this.canvasWidth,M-x)}}var T=this.renderer.session.selection.getCursor();if(T){var A=this.compensateFoldRows(T.row,y),k=Math.round((T.row-A)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},f.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},f}();v.implement(h.prototype,w),i.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),f=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,c=e("./layer/text").Text,a=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,y=e("./renderloop").RenderLoop,b=e("./layer/font_metrics").FontMetrics,L=e("./lib/event_emitter").EventEmitter,A=e("./css/editor-css"),k=e("./layer/decorators").Decorator,x=e("./lib/useragent"),M=e("./layer/text_util").isTextToken;v.importCssString(A,"ace_editor.css",!1);var E=function(){function I(T,N){var $=this;this.container=T||v.createElement("div"),v.addCssClass(this.container,"ace_editor"),v.HI_DPI&&v.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=v.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=v.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=v.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new c(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollTop(S.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollLeft(S.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(S){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._signal("changeCharacterSize",S)}),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 y(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return I.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),v.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},I.prototype.updateLines=function(T,N,$){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:T,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)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(T,N,$,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var S=this.container;_||(_=S.clientHeight||S.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",_=S.clientHeight||S.scrollHeight),$||($=S.clientWidth||S.scrollWidth);var R=this.$updateCachedSize(T,N,$,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!_)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(R|this.$changes,!0):this.$loop.schedule(R|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(T,N,$,_){_-=this.$extraHeight||0;var S=0,R=this.$size,O={width:R.width,height:R.height,scrollerHeight:R.scrollerHeight,scrollerWidth:R.scrollerWidth};if(_&&(T||R.height!=_)&&(R.height=_,S|=this.CHANGE_SIZE,R.scrollerHeight=R.height,this.$horizScroll&&(R.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(R.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),$&&(T||R.width!=$)){S|=this.CHANGE_SIZE,R.width=$,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,v.setStyle(this.scrollBarH.element.style,"left",N+"px"),v.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),R.scrollerWidth=Math.max(0,$-N-this.scrollBarV.getWidth()-this.margin.h),v.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";v.setStyle(this.scrollBarH.element.style,"right",F),v.setStyle(this.scroller.style,"right",F),v.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(R.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(S|=this.CHANGE_FULL)}return R.$dirty=!$||!_,S&&this._signal("resize",O),S},I.prototype.onGutterResize=function(T){var N=this.$showGutter?T:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},I.prototype.adjustWrapLimit=function(){var T=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},I.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},I.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=v.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){v.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){N&&N.markerRange&&($=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,S=$.top,R=$.left;S-=_.offset;var O=N&&N.useTextareaForIME||x.isMobile?this.lineHeight:1;if(S<0||S>_.height-O){v.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-O;if(!N)S+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else S+=this.lineHeight+2;R-=this.scrollLeft,R>this.$size.scrollerWidth-F&&(R=this.$size.scrollerWidth-F),R+=this.gutterWidth+this.margin.left,v.setStyle(T,"height",O+"px"),v.setStyle(T,"width",F+"px"),v.translate(this.textarea,Math.min(R,this.$size.scrollerWidth-F),Math.min(S,H))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,N=T.lastRow,$=this.session.documentToScreenRow(N,0)*T.lineHeight;return $-this.session.getScrollTop()>T.height-T.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(T,N,$,_){var S=this.scrollMargin;S.top=T|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},I.prototype.setMargin=function(T,N,$,_){var S=this.margin;S.top=T|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},I.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-N&&(T=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(T,N){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!N){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),v.translate(this.content,-this.scrollLeft,-$.offset);var S=$.width+2*this.$padding+"px",R=$.minHeight+"px";v.setStyle(this.content.style,"width",S),v.setStyle(this.content.style,"height",R)}if(T&this.CHANGE_H_SCROLL&&(v.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)),T&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",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(T&this.CHANGE_GUTTER||T&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",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",T)},I.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,$=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var _=$<=2*this.lineHeight,S=!_&&T>N;if($!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var R=this.container.clientWidth;this.container.style.height=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,R,$),this.desiredHeight=$,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var T=this.session,N=this.$size,$=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),S=_*this.lineHeight,R=this.$getLongestLine(),O=!$&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-R-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,S-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,R+2*this.$padding-N.scrollerWidth+q.right)));var J=!$&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-S+V<0||this.scrollTop>q.top),G=H!==J;G&&(this.$vScroll=J,this.scrollBarV.setVisible(J));var Q=this.scrollTop%this.lineHeight,ie=Math.ceil(W/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-Q)/this.lineHeight)),ae=X+ie,ve,we,fe=this.lineHeight;X=T.screenToDocumentRow(X,0);var $e=T.getFoldLine(X);$e&&(X=$e.start.row),ve=T.documentToScreenRow(X,0),we=T.getRowLength(X)*fe,ae=Math.min(T.screenToDocumentRow(ae,0),T.getLength()-1),W=N.scrollerHeight+T.getRowLength(ae)*fe+we,Q=this.scrollTop-ve*fe;var at=0;return(this.layerConfig.width!=R||F)&&(at=this.CHANGE_H_SCROLL),(F||G)&&(at|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(R=this.$getLongestLine())),this.layerConfig={width:R,padding:this.$padding,firstRow:X,firstRowScreen:ve,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:W,maxHeight:S,offset:Q,gutterOffset:fe?Math.max(0,Math.ceil((Q+N.height-N.scrollerHeight)/fe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(R-this.$padding),at},I.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(T>$.lastRow+1)&&!(N<$.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,T,N),!0}}},I.prototype.$getLongestLine=function(){var T=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(T+=1),this.$textLayer&&T>this.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(T,N){this.$gutterLayer.addGutterDecoration(T,N)},I.prototype.removeGutterDecoration=function(T,N){this.$gutterLayer.removeGutterDecoration(T,N)},I.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(T,N,$){this.scrollCursorIntoView(T,$),this.scrollCursorIntoView(N,$)},I.prototype.scrollCursorIntoView=function(T,N,$){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(T),S=_.left,R=_.top,O=$&&$.top||0,F=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>R?(N&&H+O>R+this.lineHeight&&(R-=N*this.$size.scrollerHeight),R===0&&(R=-this.scrollMargin.top),this.session.setScrollTop(R)):H+this.$size.scrollerHeight-F<R+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<R-this.lineHeight&&(R+=N*this.$size.scrollerHeight),this.session.setScrollTop(R+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,V=2*this.layerConfig.characterWidth;S-V<W?(S-=V,S<this.$padding+V&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=V,W+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&S-W<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(T){this.session.setScrollTop(T*this.lineHeight)},I.prototype.alignCursor=function(T,N){typeof T=="number"&&(T={row:T,column:0});var $=this.$cursorLayer.getPixelPosition(T),_=this.$size.scrollerHeight-this.lineHeight,S=$.top-_*(N||0);return this.session.setScrollTop(S),S},I.prototype.$calcSteps=function(T,N){var $=0,_=this.STEPS,S=[],R=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for($=0;$<_;++$)S.push(R($/this.STEPS,T,N-T));return S},I.prototype.scrollToLine=function(T,N,$,_){var S=this.$cursorLayer.getPixelPosition({row:T,column:0}),R=S.top;N&&(R-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(R),$!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(T,N){var $=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(T==$)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(T=S[0],T==$))return}var R=_.$calcSteps(T,$);this.$scrollAnimation={from:T,to:$,steps:R},clearInterval(this.$timer),_.session.setScrollTop(R.shift()),_.session.$scrollTop=$;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);R.length?(_.session.setScrollTop(R.shift()),_.session.$scrollTop=$):$!=null?(_.session.$scrollTop=-1,_.session.setScrollTop($),$=null):O()},10)},I.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},I.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(T,N){this.session.setScrollTop(N),this.session.setScrollLeft(T)},I.prototype.scrollBy=function(T,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},I.prototype.isScrollableBy=function(T,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||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,R=S/this.characterWidth,O=Math.floor((N+this.scrollTop-$.top)/this.lineHeight),F=this.$blockCursor?Math.floor(R):Math.round(R);return{row:O,column:F,side:R-F>0?1:-1,offsetX:S}},I.prototype.screenToTextCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,R=S/this.characterWidth,O=this.$blockCursor?Math.floor(R):Math.round(R),F=Math.floor((N+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),S)},I.prototype.textToScreenCoordinates=function(T,N){var $=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(T,N),S=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,T)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),R=_.row*this.lineHeight;return{pageX:$.left+S-this.scrollLeft,pageY:$.top+R-this.scrollTop}},I.prototype.visualizeFocus=function(){v.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){v.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(T){var N=this.session.selection.cursor;this.addToken(T,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),v.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(T,N){var $=this.session.selection.cursor,_=N||{row:$.row,column:$.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(T,_);this.addToken(S[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:T,position:{row:_.row,column:_.column}};var R=v.createElement("div");if(S.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;S.slice(1).forEach(function(G){var Q=v.createElement("div"),ie=v.createElement("span");ie.className="ace_ghost_text",G.wrapped&&(Q.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),ie.appendChild(v.createTextNode(G.text)),Q.appendChild(ie),R.appendChild(Q),F=Q}),O.forEach(function(G){var Q=v.createElement("span");M(G.type)||(Q.className="ace_"+G.type.replace(/\./g," ace_")),Q.appendChild(v.createTextNode(G.value)),F.appendChild(Q)}),this.$ghostTextWidget={el:R,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,V=W.getBoundingClientRect().height,q=S.length*this.lineHeight,J=q<V-H.top;if(J)return;q<V?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(T,N){var $=this.$size.scrollerWidth-this.$padding*2,_=Math.floor($/this.characterWidth)-2;_=_<=0?60:_;for(var S=T.split(/\r?\n/),R=[],O=0;O<S.length;O++){var F=this.session.$getDisplayTokens(S[O],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var W=0;H.push(S[O].length);for(var V=0;V<H.length;V++){var q=S[O].slice(W,H[V]);R.push({text:q,wrapped:!0}),W=H[V]}}else R.push({text:S[O],wrapped:!1})}return R},I.prototype.removeGhostText=function(){if(this.$ghostText){var T=this.$ghostText.position;this.removeExtraToken(T.row,T.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(T,N,$,_){var S=this.session;S.bgTokenizer.lines[$]=null;var R={type:N,value:T},O=S.getTokens($);if(_==null||!O.length)O.push(R);else for(var F=0,H=0;H<O.length;H++){var W=O[H];if(F+=W.value.length,_<=F){var V=W.value.length-(F-_),q=W.value.slice(0,V),J=W.value.slice(V);O.splice(H,1,{type:W.type,value:q},R,{type:W.type,value:J});break}}this.updateLines($,$)},I.prototype.hideTokensAfterPosition=function(T,N){for(var $=this.session.getTokens(T),_=0,S=!1,R=[],O=0;O<$.length;O++){var F=$[O];if(_+=F.value.length,F.type!=="ghost_text"){if(S){R.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&(S=!0)}}return this.updateLines(T,T),R},I.prototype.removeExtraToken=function(T,N){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},I.prototype.setTheme=function(T,N){var $=this;if(this.$themeId=T,$._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var _=T||this.$options.theme.initialValue;h.loadModule(["theme",_],S)}else S(T);function S(R){if($.$themeId!=T)return N&&N();if(!R||!R.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");R.$id&&($.$themeId=R.$id),v.importCssString(R.cssText,R.cssClass,$.container),$.theme&&v.removeCssClass($.container,$.theme.cssClass);var O="padding"in R?R.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&O!=$.$padding&&$.setPadding(O),$.$theme=R.cssClass,$.theme=R,v.addCssClass($.container,R.cssClass),v.setCssClass($.container,"ace_dark",R.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:R}),N&&N(),x.isSafari&&$.scroller&&($.scroller.style.background="red",$.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(T,N){v.setCssClass(this.container,T,N!==!1)},I.prototype.unsetStyle=function(T){v.removeCssClass(this.container,T)},I.prototype.setCursorStyle=function(T){v.setStyle(this.scroller.style,"cursor",T)},I.prototype.setMouseCursor=function(T){v.setStyle(this.scroller.style,"cursor",T)},I.prototype.attachToShadowRoot=function(){v.importCssString(A,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(T){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,T===!0?(this.scrollBarV=new g(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function($){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 k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollTop($.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollLeft($.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var T=this;this.$resizeTimer=w.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var $=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(T.$size.width-$)>1||Math.abs(T.$size.height-_)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();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,p.implement(E.prototype,L),h.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){v.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!x.isMobile&&!x.isIE}}),i.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function f(l){var o="importScripts('"+v.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new u;return g.append(o),g.getBlob("application/javascript")}}function s(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=f(l),u=window.URL||window.webkitURL,g=u.createObjectURL(o);return new Worker(g)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,w),this.$createWorkerFromOldConfig=function(l,o,u,g,y){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)g=g||h.moduleUrl(o,"worker");else{var b=this.$normalizePath;g=g||b(e.toUrl("ace/worker/worker.js",null,"_"));var L={};l.forEach(function(A){L[A]=b(e.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(g),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:L,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 v.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var g=this.callbackId++;this.callbacks[g]=u,o.push(g)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var a=function(l,o,u){var g=null,y=!1,b=Object.create(w),L=[],A=new c({messageBuffer:L,terminate:function(){},postMessage:function(x){L.push(x),g&&(y?setTimeout(k):k())}});A.setEmitSync=function(x){y=x};var k=function(){var x=L.shift();x.command?g[x.command].apply(g,x.args):x.event&&b._signal(x.event,x.data)};return b.postMessage=function(x){A.onMessage({data:x})},b.callback=function(x,M){this.postMessage({type:"call",id:M,data:x})},b.emit=function(x,M){this.postMessage({type:"event",name:x,data:M})},h.loadModule(["worker",o],function(x){for(g=new x[u](b);L.length;)k()}),A};i.UIWorkerClient=a,i.WorkerClient=c,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,i,m){var p=e("./range").Range,v=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=function(){function f(s,c,a,l,o,u){var g=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(){g.onCursorChange()})},this.$pos=a;var y=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return f.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 p(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)},f.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 p(a.row,a.column,a.row,a.column+c.length),c.othersClass,null,!1)})}},f.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)}},f.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 g=this.others[u],y={row:g.row,column:g.column+o};this.doc.insertMergedLines(y,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var g=this.others[u],y={row:g.row,column:g.column+o};this.doc.remove(new p(y.row,y.column,y.row,y.column-a))}}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var c=this.others.length;c--;)this.others[c].onChange(s);this.updateMarkers()},f.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 p(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)}},f.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))}},f.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},f.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)}},f}();w.implement(h.prototype,v),i.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent");function w(f,s){return f.row==s.row&&f.column==s.column}function h(f){var s=f.domEvent,c=s.altKey,a=s.shiftKey,l=s.ctrlKey,o=f.getAccelKey(),u=f.getButton();if(l&&v.isMac&&(u=s.button),f.editor.inMultiSelectMode&&u==2){f.editor.textInput.onContextMenu(f.domEvent);return}if(!l&&!c&&!o){u===0&&f.editor.inMultiSelectMode&&f.editor.exitMultiSelectMode();return}if(u===0){var g=f.editor,y=g.selection,b=g.inMultiSelectMode,L=f.getDocumentPosition(),A=y.getCursor(),k=f.inSelection()||y.isEmpty()&&w(L,A),x=f.x,M=f.y,E=function(q){x=q.clientX,M=q.clientY},I=g.session,T=g.renderer.pixelToScreenCoordinates(x,M),N=T,$;if(g.$mouseHandler.$enableJumpToDef)l&&c||o&&c?$=a?"block":"add":c&&g.$blockSelectEnabled&&($="block");else if(o&&!c){if($="add",!b&&a)return}else c&&g.$blockSelectEnabled&&($="block");if($&&v.isMac&&s.ctrlKey&&g.$mouseHandler.cancelContextMenu(),$=="add"){if(!b&&k)return;if(!b){var _=y.toOrientedRange();g.addSelectionMarker(_)}var S=y.rangeList.rangeAtPoint(L);g.inVirtualSelectionMode=!0,a&&(S=null,_=y.ranges[0]||_,g.removeSelectionMarker(_)),g.once("mouseup",function(){var q=y.toOrientedRange();S&&q.isEmpty()&&w(S.cursor,q.cursor)?y.substractPoint(q.cursor):(a?y.substractPoint(_.cursor):_&&(g.removeSelectionMarker(_),y.addRange(_)),y.addRange(q)),g.inVirtualSelectionMode=!1})}else if($=="block"){f.stop(),g.inVirtualSelectionMode=!0;var R,O=[],F=function(){var q=g.renderer.pixelToScreenCoordinates(x,M),J=I.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(J,y.lead)||(N=q,g.selection.moveToPosition(J),g.renderer.scrollCursorIntoView(),g.removeSelectionMarkers(O),O=y.rectangularRangeBlock(N,T),g.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=g.$mouseHandler.$clickSelection.clone()),O.forEach(g.addSelectionMarker,g),g.updateSelectionMarkers())};b&&!o?y.toSingleRange():!b&&o&&(R=y.toOrientedRange(),g.addSelectionMarker(R)),a?T=I.documentToScreenPosition(y.lead):y.moveToPosition(L),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),g.removeSelectionMarkers(O),O.length||(O=[y.toOrientedRange()]),R&&(g.removeSelectionMarker(R),y.toSingleRange(R));for(var J=0;J<O.length;J++)y.addRange(O[J]);g.inVirtualSelectionMode=!1,g.$mouseHandler.$clickSelection=null},W=F;p.capture(g.container,E,H);var V=setInterval(function(){W()},20);return f.preventDefault()}}}i.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,i,m){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(v){v.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(v){v.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(v){v.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(v){v.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(v){v.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(v){v.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(v){v.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(v){v.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(v){v.multiSelect.rangeCount>1?v.multiSelect.joinSelections():v.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(v){v.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(v){v.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(v){v.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(v){v.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(v){return v&&v.inMultiSelectMode}}];var p=e("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new p(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,i,m){var p=e("./range_list").RangeList,v=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,f=e("./lib/event"),s=e("./lib/lang"),c=e("./commands/multi_select_commands");i.commands=c.defaultCommands.concat(c.multiSelectCommands);var a=e("./search").Search,l=new a;function o(A,k,x){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=x==-1,l.find(A)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(A,k){if(A){if(!this.inMultiSelectMode&&this.rangeCount===0){var x=this.toOrientedRange();if(this.rangeList.add(x),this.rangeList.add(A),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(A);this.rangeList.removeAll(),this.rangeList.add(x),this.$onAddRange(x)}A.cursor||(A.cursor=A.end);var M=this.rangeList.add(A);return this.$onAddRange(A),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(A)}},this.toSingleRange=function(A){A=A||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),A&&this.fromOrientedRange(A)},this.substractPoint=function(A){var k=this.rangeList.substractPoint(A);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var A=this.rangeList.merge();A.length&&this.$onRemoveRange(A)},this.$onAddRange=function(A){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(A),this._signal("addRange",{range:A})},this.$onRemoveRange=function(A){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();A.push(k),this.rangeCount=0}for(var x=A.length;x--;){var M=this.ranges.indexOf(A[x]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:A}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var A=this.ranges.length?this.ranges:[this.getRange()],k=[],x=0;x<A.length;x++){var M=A[x],E=M.start.row,I=M.end.row;if(E===I)k.push(M.clone());else{for(k.push(new v(E,M.start.column,E,this.session.getLine(E).length));++E<I;)k.push(this.getLineRange(E,!0));k.push(new v(I,0,I,M.end.column))}x==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var x=k.length;x--;)this.addRange(k[x])},this.joinSelections=function(){var A=this.rangeList.ranges,k=A[A.length-1],x=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var A=this.rangeList.ranges,k=A[A.length-1],x=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)}else{var M=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(M,E);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,x){var M=[],E=A.column<k.column;if(E)var I=A.column,T=k.column,N=A.offsetX,$=k.offsetX;else var I=k.column,T=A.column,N=k.offsetX,$=A.offsetX;var _=A.row<k.row;if(_)var S=A.row,R=k.row;else var S=k.row,R=A.row;I<0&&(I=0),S<0&&(S=0),S==R&&(x=!0);for(var O,F=S;F<=R;F++){var H=v.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,T,$));if(H.isEmpty()){if(O&&y(H.end,O))break;O=H.end}H.cursor=E?H.start:H.end,M.push(H)}if(_&&M.reverse(),!x){for(var W=M.length-1;M[W].isEmpty()&&W>0;)W--;if(W>0)for(var V=0;M[V].isEmpty();)V++;for(var q=W;q>=V;q--)M[q].isEmpty()&&M.splice(q,1)}return M}}).call(w.prototype);var g=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(A){A.cursor||(A.cursor=A.end);var k=this.getSelectionStyle();return A.marker=this.session.addMarker(A,"ace_selection",k),this.session.$selectionMarkers.push(A),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,A},this.removeSelectionMarker=function(A){if(A.marker){this.session.removeMarker(A.marker);var k=this.session.$selectionMarkers.indexOf(A);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(A){for(var k=this.session.$selectionMarkers,x=A.length;x--;){var M=A[x];if(M.marker){this.session.removeMarker(M.marker);var E=k.indexOf(M);E!=-1&&k.splice(E,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(A){this.addSelectionMarker(A.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(A){this.removeSelectionMarkers(A.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(A){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(A){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(A){var k=A.command,x=A.editor;if(x.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?M=x.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?M=x.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(x.exitMultiSelectMode(),M=k.exec(x,A.args||{})):M=k.multiSelectAction(x,A.args||{});else{var M=k.exec(x,A.args||{});x.multiSelect.addRange(x.multiSelect.toOrientedRange()),x.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(A,k,x){if(!this.inVirtualSelectionMode){var M=x&&x.keepOrder,E=x==!0||x&&x.$byLines,I=this.session,T=this.selection,N=T.rangeList,$=(M?T:N).ranges,_;if(!$.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var S=T._eventRegistry;T._eventRegistry={};var R=new w(I);this.inVirtualSelectionMode=!0;for(var O=$.length;O--;){if(E)for(;O>0&&$[O].start.row==$[O-1].end.row;)O--;R.fromOrientedRange($[O]),R.index=O,this.selection=I.selection=R;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),R.toOrientedRange($[O])}R.detach(),this.selection=I.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=S,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var A="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,x=[],M=0;M<k.length;M++)x.push(this.session.getTextRange(k[M]));var E=this.session.getDocument().getNewLineCharacter();A=x.join(E),A.length==(x.length-1)*E.length&&(A="")}else this.selection.isEmpty()||(A=this.session.getTextRange(this.getSelectionRange()));return A},this.$checkMultiselectChange=function(A,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var x=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var M=k==this.multiSelect.anchor?x.cursor==x.start?x.end:x.start:x.cursor;M.row!=k.row||this.session.$clipPositionToDocument(M.row,M.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(A,k,x){if(k=k||{},k.needle=A||k.needle,k.needle==null){var M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(M)}this.$search.set(k);var E=this.$search.findAll(this.session);if(!E.length)return 0;var I=this.multiSelect;x||I.toSingleRange(E[0]);for(var T=E.length;T--;)I.addRange(E[T],!0);return M&&I.rangeList.rangeAtPoint(M.start)&&I.addRange(M,!0),E.length},this.selectMoreLines=function(A,k){var x=this.selection.toOrientedRange(),M=x.cursor==x.end,E=this.session.documentToScreenPosition(x.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(E.row+A,E.column);if(x.isEmpty())var N=I;else var T=this.session.documentToScreenPosition(M?x.end:x.start),N=this.session.screenToDocumentPosition(T.row+A,T.column);if(M){var $=v.fromPoints(I,N);$.cursor=$.start}else{var $=v.fromPoints(N,I);$.cursor=$.end}if($.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(x);else if(k)var _=x.cursor;this.selection.addRange($),_&&this.selection.substractPoint(_)},this.transposeSelections=function(A){for(var k=this.session,x=k.multiSelect,M=x.ranges,E=M.length;E--;){var I=M[E];if(I.isEmpty()){var T=k.getWordRange(I.start.row,I.start.column);I.start.row=T.start.row,I.start.column=T.start.column,I.end.row=T.end.row,I.end.column=T.end.column}}x.mergeOverlappingRanges();for(var N=[],E=M.length;E--;){var I=M[E];N.unshift(k.getTextRange(I))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var E=M.length;E--;){var I=M[E],$=I.clone();k.replace(I,N[E]),I.start.row=$.start.row,I.start.column=$.start.column}x.fromOrientedRange(x.ranges[0])},this.selectMore=function(A,k,x){var M=this.session,E=M.multiSelect,I=E.toOrientedRange();if(!(I.isEmpty()&&(I=M.getWordRange(I.start.row,I.start.column),I.cursor=A==-1?I.start:I.end,this.multiSelect.addRange(I),x))){var T=M.getTextRange(I),N=o(M,T,A);N&&(N.cursor=A==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var A=this.session,k=A.multiSelect,x=k.ranges,M=-1,E=x.filter(function(W){if(W.cursor.row==M)return!0;M=W.cursor.row});if(!x.length||E.length==x.length-1){var I=this.selection.getRange(),T=I.start.row,N=I.end.row,$=T==N;if($){var _=this.session.getLength(),S;do S=this.session.getLine(N);while(/[=:]/.test(S)&&++N<_);do S=this.session.getLine(T);while(/[=:]/.test(S)&&--T>0);T<0&&(T=0),N>=_&&(N=_-1)}var R=this.session.removeFullLines(T,N);R=this.$reAlignText(R,$),this.session.insert({row:T,column:0},R.join(`
936
+ `)+`
937
+ `),$||(I.start.column=0,I.end.column=R[R.length-1].length),this.selection.setRange(I)}else{E.forEach(function(W){k.substractPoint(W.cursor)});var O=0,F=1/0,H=x.map(function(W){var V=W.cursor,q=A.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(W,V){var q=W.cursor,J=O-q.column,G=H[V]-F;J>G?A.insert(q,s.stringRepeat(" ",J-G)):A.remove(new v(q.row,q.column,q.row,q.column-J+G)),W.start.column=W.end.column=O,W.start.row=W.end.row=q.row,W.cursor=W.end}),k.fromOrientedRange(x[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var x=!0,M=!0,E,I,T;return A.map(function(R){var O=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,I=O[2].length,T=O[3].length,O):(E+I+T!=O[1].length+O[2].length+O[3].length&&(M=!1),E!=O[1].length&&(x=!1),E>O[1].length&&(E=O[1].length),I<O[2].length&&(I=O[2].length),T>O[3].length&&(T=O[3].length),O):[R]}).map(k?$:x?M?_:$:S);function N(R){return s.stringRepeat(" ",R)}function $(R){return R[2]?N(E)+R[2]+N(I-R[2].length+T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function _(R){return R[2]?N(E+I-R[2].length)+R[2]+N(T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function S(R){return R[2]?N(E)+R[2]+N(T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(g.prototype);function y(A,k){return A.row==k.row&&A.column==k.column}i.onSessionChange=function(A){var k=A.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var x=A.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)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(A){A.$multiselectOnSessionChange||(A.$onAddRange=A.$onAddRange.bind(A),A.$onRemoveRange=A.$onRemoveRange.bind(A),A.$onMultiSelect=A.$onMultiSelect.bind(A),A.$onSingleSelect=A.$onSingleSelect.bind(A),A.$multiselectOnSessionChange=i.onSessionChange.bind(A),A.$checkMultiselectChange=A.$checkMultiselectChange.bind(A),A.$multiselectOnSessionChange(A),A.on("changeSession",A.$multiselectOnSessionChange),A.on("mousedown",h),A.commands.addCommands(c.defaultCommands),L(A))}function L(A){if(!A.textInput)return;var k=A.textInput.getElement(),x=!1;f.addListener(k,"keydown",function(E){var I=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);A.$blockSelectEnabled&&I?x||(A.renderer.setMouseCursor("crosshair"),x=!0):x&&M()},A),f.addListener(k,"keyup",M,A),f.addListener(k,"blur",M,A);function M(E){x&&(A.renderer.setMouseCursor(""),x=!1)}}i.MultiSelect=b,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(A){b(this),A?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,i,m){var p=e("../../range").Range,v=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,f){var s=w.getLine(f);return this.foldingStartMarker.test(s)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,h,f){return null},this.indentationBlock=function(w,h,f){var s=/\S/,c=w.getLine(h),a=c.search(s);if(a!=-1){for(var l=f||c.length,o=w.getLength(),u=h,g=h;++h<o;){var y=w.getLine(h).search(s);if(y!=-1){if(y<=a){var b=w.getTokenAt(h,0);if(!b||b.type!=="string")break}g=h}}if(g>u){var L=w.getLine(g).length;return new p(u,l,g,L)}}},this.openingBracketBlock=function(w,h,f,s,c){var a={row:f,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),p.fromPoints(a,l)}},this.closingBracketBlock=function(w,h,f,s,c){var a={row:f,column:s},l=w.$findOpeningBracket(h,a);if(l)return l.column++,a.column--,p.fromPoints(l,a)}}).call(v.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,i,m){var p=e("../lib/dom"),v=e("../range").Range,w=e("../config").nls;function h(s,c,a){for(var l=0,o=s.length-1;l<=o;){var u=l+o>>1,g=a(c,s[u]);if(g>0)l=u+1;else if(g<0)o=u-1;else return u}return-(l+1)}function f(s,c,a){var l=s.getAnnotations().sort(v.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},v.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 g=[];c=u.row;do g[a<0?"unshift":"push"](u),u=l[o+=a];while(u&&u.row==c);return g.length&&g}}}i.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 g=f(a,o,c),y;if(g){var b=g[0];l.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,l.row=b.row,y=s.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;y={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(l.row),s.selection.moveToPosition(l);var L={row:l.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},A=L.el.appendChild(p.createElement("div")),k=L.el.appendChild(p.createElement("div"));k.className="error_widget_arrow "+y.className;var x=s.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=x+s.renderer.gutterWidth-5+"px",L.el.className="error_widget_wrapper",A.className="error_widget "+y.className,y.displayText.forEach(function(E,I){A.appendChild(p.createTextNode(E)),I<y.displayText.length-1&&A.appendChild(p.createElement("br"))}),A.appendChild(p.createElement("div"));var M=function(E,I,T){if(I===0&&(T==="esc"||T==="return"))return L.destroy(),{command:"null"}};L.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(M),a.widgetManager.removeLineWidget(L),s.off("changeSelection",L.destroy),s.off("changeSession",L.destroy),s.off("mouseup",L.destroy),s.off("change",L.destroy))},s.keyBinding.addKeyboardHandler(M),s.on("changeSelection",L.destroy),s.on("changeSession",L.destroy),s.on("mouseup",L.destroy),s.on("change",L.destroy),s.session.widgetManager.addLineWidget(L),L.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:L.el.offsetHeight})},p.importCssString(`
938
+ .error_widget_wrapper {
939
+ background: inherit;
940
+ color: inherit;
941
+ border:none
942
+ }
943
+ .error_widget {
944
+ border-top: solid 2px;
945
+ border-bottom: solid 2px;
946
+ margin: 5px 0;
947
+ padding: 10px 40px;
948
+ white-space: pre-wrap;
949
+ }
950
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
951
+ border-color: #ff5a5a
952
+ }
953
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
+ border-color: #F1D817
955
+ }
956
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
957
+ border-color: #5a5a5a
958
+ }
959
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
+ border-color: #5aaa5a
961
+ }
962
+ .error_widget_arrow {
963
+ position: absolute;
964
+ border: solid 5px;
965
+ border-top-color: transparent!important;
966
+ border-right-color: transparent!important;
967
+ border-left-color: transparent!important;
968
+ top: -5px;
969
+ }
970
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,i,m){e("./loader_build")(i);var p=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,s=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),i.config=e("./config"),i.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 g=a;u=g.value,a=p.createElement("pre"),g.parentNode.replaceChild(a,g)}else a&&(u=a.textContent,a.innerHTML="");var y=i.createEditSession(u),b=new w(new s(a),y,l),L={document:y,editor:b,onResize:b.resize.bind(b,null)};return g&&(L.textarea=g),b.on("destroy",function(){L.editor.container.env=null}),b.container.env=b.env=L,b},i.createEditSession=function(a,l){var o=new h(a,l);return o.setUndoManager(new f),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=f,i.VirtualRenderer=s;var c=i.config.version;i.version=c}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=e);for(var m in e)e.hasOwnProperty(m)&&(i.ace[m]=e[m]);i.ace.default=i.ace,n.exports=i.ace})}()}(Sp)),Sp.exports}var Ia=dn("E",Xw()),Ap={exports:{}},Mp;function Jw(){return Mp||(Mp=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},f=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},c=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},g=function(){var y="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",L="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:b,"constant.language":L,"variable.language":A,"support.function":y,"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})*})`,M={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+x+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,l,w,h,o,f,s,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,I,T){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return T.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,I,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,I,T){return this.next="",E=="}"&&T.length>1&&T[1]!="start"&&(T.shift(),this.next=T.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,I,T){return T.length&&E===T[0]?(T.unshift(E,I),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,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),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,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,I,T){return T.length&&E[0]===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};p.inherits(g,v),i.RubyHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.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 p(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,f=i.FoldMode=function(){};p.inherits(f,v),(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 g=l.match(this.foldingStartMarker);if(g[1]){if((g[1]=="if"||g[1]=="else"||g[1]=="while"||g[1]=="until"||g[1]=="unless")&&(g[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||g[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(s.getTokenAt(a,g.index+2).type==="keyword")return"start"}else if(!g[3]||s.getTokenAt(a,g.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var g=l.match(this.foldingStopMarker);if(g[3]==="end"){if(s.getTokenAt(a,g.index+1).type==="keyword")return"end"}else if(!g[1]||s.getTokenAt(a,g.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 g=u.value,y=s.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);if(!b.test(y))return;var L=this.indentKeywords[g];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var L=1;break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");if(!b.test(y))return;var L=1;break;default:var L=this.indentKeywords[g]}var A=[g];if(L){var k=L===-1?s.getLine(c-1).length:s.getLine(c).length,x=c,M=[];if(M.push(o.getCurrentTokenRange()),o.step=L===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(L==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var I=L*this.indentKeywords[u.value];switch(y=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var T=o.$tokenIndex-1;T>=0;T--){var N=o.$rowTokens[T];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");(!b.test(y)||g=="case")&&(I=0,E=!0);break;case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);b.test(y)||(I=0,E=!0);break;case"when":(/\sthen\s/.test(y)||g=="case")&&(I=0,E=!0)}if(I>0)A.unshift(u.value);else if(I<=0&&E===!1){if(A.shift(),!A.length&&((g=="while"||g=="until"||g=="for")&&u.value!="do"||u.value=="do"&&L==-1&&I!=0||u.value!="do"))break;I===0&&A.unshift(u.value)}}}if(!u)return null;if(l)return M.push(o.getCurrentTokenRange()),M;var c=o.getCurrentTokenRow();if(L===-1){if(u.type==="comment.multiline")var $=6;else var $=s.getLine(c).length;return new w(c,$,x-1,k)}return new w(x,k,c-1,s.getLine(c-1).length)}}}}).call(f.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../range").Range,s=e("./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};p.inherits(c,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,a),y=g.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[]\s*$/),L=l.match(/^\s*(class|def|module)\s.*$/),A=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||L||A||k)&&(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 g=this.$getIndent(u),y=l.getLine(o-1),b=this.$getIndent(y),L=l.getTabString();b.length<=g.length&&g.slice(-L.length)==L&&l.remove(new f(o,g.length-L.length,o,g.length))},this.getMatching=function(a,l,o){if(l==null){var u=a.selection.lead;o=u.column,l=u.row}var g=a.getTokenAt(l,o);if(g&&g.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),i.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n.exports=e})}()}(Ap)),Ap.exports}Jw();var Tp={exports:{}},Ep;function eb(){return Ep||(Ep=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",f="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":f,keyword:h},"identifier"),a="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",g="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",L="(?:0[bB][01]+)",A="(?:"+g+"|"+y+"|"+b+"|"+L+")",k="(?:[eE][+-]?\\d+)",x="(?:\\.\\d+)",M="(?:\\d+)",E="(?:(?:"+M+"?"+x+")|(?:"+M+"\\.))",I="(?:(?:"+E+"|"+M+")"+k+")",T="(?:"+I+"|"+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:"(?:"+T+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:T},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(w,v),i.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,f,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(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,f=e("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(s,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,a),y=g.tokens;if(y.length&&y[y.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 g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&c[g.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),g=l.getTabString();u.slice(-g.length)==g&&l.remove(new f(o,u.length-g.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),i.Mode=s}),function(){ace.require(["ace/mode/python"],function(e){n.exports=e})}()}(Tp)),Tp.exports}eb();var Lp={exports:{}},Rp;function tb(){return Rp||(Rp=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};p.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.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 p(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,c){var a=f.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(f,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(f,s,c,a){var l=f.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(f,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],c,u);var g=f.getCommentFoldRange(c,u+o[0].length,1);return g&&!g.isMultiLine()&&(a?g=this.getSectionRange(f,c):s!="all"&&(g=null)),g}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],c,u):f.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(f,s){var c=f.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,g=f.getLength();++s<g;){c=f.getLine(s);var y=c.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(f,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(l,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,s,c){for(var a=s.search(/\s*$/),l=f.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++c<l;){s=f.getLine(c);var y=u.exec(s);if(y&&(y[1]?g--:g++,!g))break}var b=c;if(b>o)return new v(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(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("./folding/cstyle").FoldMode,s=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new f};p.inherits(c,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l);if(a=="start"){var g=l.match(/^.*[\{\(\[]\s*$/);g&&(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),i.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n.exports=e})}()}(Lp)),Lp.exports}tb();var Ip={exports:{}},Op;function nb(){return Op||(Op=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop");e("../lib/lang");var v=e("./text_highlight_rules").TextHighlightRules,w=i.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=i.supportFunction="rgb|rgba|url|attr|counter|counters",f=i.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=i.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=i.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=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var g=this.createKeywordMapper({"support.function":h,"support.constant":f,"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:g,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(u,v),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(w,v),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}},i.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,i,m){function p(){var a=s.replace("\\d","\\d\\-"),l={onMatch:function(u,g,y){var b=u.charAt(1)=="/"?2:1;return b==1?(g!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):b==2&&g==this.nextState&&(y[1]--,(!y[1]||y[1]<0)&&(y.shift(),y.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,g,y){return g==y[0]&&y.shift(),u.length==2&&(y[0]==this.nextState&&y[1]--,(!y[1]||y[1]<0)&&y.splice(0,2)),this.next=y[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,v("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 v(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=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,f=e("./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",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",y="(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"),v("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*)"+y+"(\\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*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+y+"(\\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:y+"(\\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"),v("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:[v("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:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(L,A,k){if(this.next=L=="{"?this.nextState:"",L=="{"&&k.length)k.unshift("start",A);else if(L=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return L=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+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)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(c,f),i.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){var f="[_: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:"(<\\?)("+f+")",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:f},{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:"(<\\!)("+f+")",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:"(?:(<)|(</))((?:"+f+":)?"+f+")",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:f},{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,f,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:f+"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,f,[{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(v.prototype),p.inherits(w,v),i.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,f=e("./xml_highlight_rules").XmlHighlightRules,s=v.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(){f.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()};p.inherits(c,f),i.HtmlHighlightRules=c}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,i,m){var p=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,f=e("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},c=function(){f.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,g,y){var b=o.match(/^(\s*)([`~]+)(.*)/),L=/[\w-]+|$/.exec(b[3])[0];return p[L]||(L=""),g.unshift("githubblock",[],[b[1],b[2],L],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,g,y){var b=g[1],L=g[2][0],A=g[2][1],k=g[2][2],x=/^(\s*)(`+|~+)\s*$/.exec(o);if(x&&x[1].length<L.length+3&&x[2].length>=A.length&&x[2][0]==A[0])return g.splice(0,3),this.next=g.shift(),this.token;if(this.next="",k&&p[k]){var M=p[k].getTokenizer().getLineTokens(o,b.slice(0));return g[1]=M.state,M.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()};v.inherits(c,h),i.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};p.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(f,s,c){var a=f.getLine(c);return this.foldingStartMarker.test(a)?a[0]=="`"&&f.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(f,s,c){function a(E){return L=f.getTokens(E)[0],L&&L.type.lastIndexOf(A,0)===0}function l(){var E=L.value[0];return E=="="?6:E=="-"?5:7-L.value.search(/[^#]|$/)}var o=f.getLine(c),u=o.length,g=f.getLength(),y=c,b=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(f.bgTokenizer.getState(c)!=="start"){for(;++c<g&&(o=f.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,c,0)}for(;c-- >0&&(o=f.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(c,o.length,y,0)}var L,A="markup.heading";if(a(c)){for(var k=l();++c<g;)if(a(c)){var x=l();if(x>=k)break}if(b=c-(!L||["=","-"].indexOf(L.value[0])==-1?1:2),b>y)for(;b>y&&/^\s*$/.test(f.getLine(b));)b--;if(b>y){var M=f.getLine(b).length;return new w(y,u,b,M)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.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 p(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,i,m){function p(s,c){return s&&s.type.lastIndexOf(c+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,f=function(){this.add("string_dquotes","insertion",function(s,c,a,l,o){if(o=='"'||o=="'"){var u=o,g=l.doc.getTextRange(a.getSelectionRange());if(g!==""&&g!=="'"&&g!='"'&&a.getWrapBehavioursEnabled())return{text:u+g+u,selection:!1};var y=a.getCursorPosition(),b=l.doc.getLine(y.row),L=b.substring(y.column,y.column+1),A=new h(l,y.row,y.column),k=A.getCurrentToken();if(L==u&&(p(k,"attribute-value")||p(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;p(k,"tag-whitespace")||p(k,"whitespace");)k=A.stepBackward();var x=!L||L.match(/\s/);if(p(k,"attribute-equals")&&(x||L==">")||p(k,"decl-attribute-equals")&&(x||L=="?"))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 g=l.doc.getLine(o.start.row),y=g.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,c,a,l,o){if(o==">"){var u=a.getSelectionRange().start,g=new h(l,u.row,u.column),y=g.getCurrentToken()||g.stepBackward();if(!y||!(p(y,"tag-name")||p(y,"tag-whitespace")||p(y,"attribute-name")||p(y,"attribute-equals")||p(y,"attribute-value"))||p(y,"reference.attribute-value"))return;if(p(y,"attribute-value")){var b=g.getCurrentTokenColumn()+y.value.length;if(u.column<b)return;if(u.column==b){var L=g.stepForward();if(L&&p(L,"attribute-value"))return;g.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!p(y,"tag-name");)if(y=g.stepBackward(),y.value=="<"){y=g.stepForward();break}var A=g.getCurrentTokenRow(),k=g.getCurrentTokenColumn();if(p(g.stepBackward(),"end-tag-open"))return;var x=y.value;return A==u.row&&(x=x.substring(0,u.column-k)),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(),g=l.getLine(u.row),y=new h(l,u.row,u.column),b=y.getCurrentToken();if(p(b,"")&&b.type.indexOf("tag-close")!==-1){if(b.value=="/>")return;for(;b&&b.type.indexOf("tag-name")===-1;)b=y.stepBackward();if(!b)return;var L=b.value,A=y.getCurrentTokenRow();if(b=y.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[L]||!this.voidElements){var k=l.getTokenAt(u.row,u.column+1),g=l.getLine(A),x=this.$getIndent(g),M=x+l.getTabString();return k&&k.value==="</"?{text:`
974
+ `+M+`
975
+ `+x,selection:[1,M.length,1,M.length]}:{text:`
976
+ `+M}}}}})};v.inherits(f,w),i.XmlBehaviour=f}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,f=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 g=l.getSelectionRange().start,y=new v(o,g.row,g.column),b=y.getCurrentToken()||y.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(f,w),i.JavaScriptBehaviour=f}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){function p(c,a){return c.type.lastIndexOf(a+".xml")>-1}var v=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,f=i.FoldMode=function(c,a){h.call(this),this.voidElements=c||{},this.optionalEndTags=v.mixin({},this.voidElements),a&&v.mixin(this.optionalEndTags,a)};v.inherits(f,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 g=l[u];if(p(g,"tag-open")){if(o.end.column=o.start.column+g.value.length,o.closing=p(g,"end-tag-open"),g=l[++u],!g)return null;if(o.tagName=g.value,g.value===""){if(g=l[++u],!g)return null;o.tagName=g.value}for(o.end.column+=g.value.length,u++;u<l.length;u++)if(g=l[u],o.end.column+=g.value.length,p(g,"tag-close")){o.selfClosing=g.value=="/>";break}return o}if(p(g,"tag-close"))return o.selfClosing=g.value=="/>",o;o.start.column+=g.value.length}return null},this._findEndTagInLine=function(c,a,l,o){for(var u=c.getTokens(a),g=0,y=0;y<u.length;y++){var b=u[y];if(g+=b.value.length,!(g<o-1)&&p(b,"end-tag-open")&&(b=u[y+1],p(b,"tag-name")&&b.value===""&&(b=u[y+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(f.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,c){var a=f.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(f,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(f,s,c,a){var l=f.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(f,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],c,u);var g=f.getCommentFoldRange(c,u+o[0].length,1);return g&&!g.isMultiLine()&&(a?g=this.getSectionRange(f,c):s!="all"&&(g=null)),g}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],c,u):f.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(f,s){var c=f.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,g=f.getLength();++s<g;){c=f.getLine(s);var y=c.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(f,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(l,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,s,c){for(var a=s.search(/\s*$/),l=f.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++c<l;){s=f.getLine(c);var y=u.exec(s);if(y&&(y[1]?g--:g++,!g))break}var b=c;if(b>o)return new v(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(e,i,m){var p=e("../../lib/oop"),v=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end))),this.xmlFoldMode=new v};p.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,c){var a=this.getFoldWidgetBase(f,s,c);return a||this.xmlFoldMode.getFoldWidget(f,s,c)},this.getFoldWidgetRange=function(f,s,c,a){var l=this.getFoldWidgetRangeBase(f,s,c,a);return l||this.xmlFoldMode.getFoldWidgetRange(f,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(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,s=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new s,this.foldingRules=new c};p.inherits(a,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var g=this.$getIndent(o),y=this.getTokenizer().getLineTokens(o,l),b=y.tokens,L=y.state;if(b.length&&b[b.length-1].type=="comment")return g;if(l=="start"||l=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(g+=u)}else if(l=="doc-start"&&(L=="start"||L=="no_regex"))return"";return g},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new f(["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),i.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,i,m){var p={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},v=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 f=h.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});p.hasOwnProperty(f)||(p[f]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,f,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(f.row).substr(0,f.column),a=/\([^)]*$/.test(c);return a&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(w,h,f,s):this.getPropertyCompletions(w,h,f,s,a)}return[]},this.getPropertyCompletions=function(w,h,f,s,c){c=c||!1;var a=Object.keys(p);return a.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,f,s){var c=h.getLine(f.row).substr(0,f.column),a=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!a)return[];var l=[];return a in p&&typeof p[a]=="object"&&(l=Object.keys(p[a])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(v.prototype),i.CssCompletions=v}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,i,m){var p=e("../../lib/oop");e("../behaviour").Behaviour;var v=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(v),this.add("colon","insertion",function(f,s,c,a,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new w(a,o.row,o.column),g=u.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=u.stepBackward()),g&&g.type==="support.type"){var y=a.doc.getLine(o.row),b=y.substring(o.column,o.column+1);if(b===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(y.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(f,s,c,a,l){var o=a.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),g=new w(a,u.row,u.column),y=g.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=g.stepBackward()),y&&y.type==="support.type"){var b=a.doc.getLine(l.start.row),L=b.substring(l.end.column,l.end.column+1);if(L===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(f,s,c,a,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row),g=u.substring(o.column,o.column+1);if(g===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(f,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]}}})};p.inherits(h,v),i.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,s=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,a=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new c,this.$completer=new s,this.foldingRules=new a};p.inherits(l,v),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,g){var y=this.$getIndent(u),b=this.getTokenizer().getLineTokens(u,o).tokens;if(b.length&&b[b.length-1].type=="comment")return y;var L=u.match(/^.*\{\s*$/);return L&&(y+=g),y},this.checkOutdent=function(o,u,g){return this.$outdent.checkOutdent(u,g)},this.autoOutdent=function(o,u,g){this.$outdent.autoOutdent(u,g)},this.getCompletions=function(o,u,g,y){return this.$completer.getCompletions(o,u,g,y)},this.createWorker=function(o){var u=new f(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(g){o.setAnnotations(g.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),i.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h,f){this.defaultMode=h,this.subModes=f};p.inherits(w,v),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var f in this.subModes)if(h.indexOf(f)===0)return this.subModes[f];return null},this.$tryMode=function(h,f,s,c){var a=this.$getMode(h);return a?a.getFoldWidget(f,s,c):""},this.getFoldWidget=function(h,f,s){return this.$tryMode(h.getState(s-1),h,f,s)||this.$tryMode(h.getState(s),h,f,s)||this.defaultMode.getFoldWidget(h,f,s)},this.getFoldWidgetRange=function(h,f,s){var c=this.$getMode(h.getState(s-1));return(!c||!c.getFoldWidget(h,f,s))&&(c=this.$getMode(h.getState(s))),(!c||!c.getFoldWidget(h,f,s))&&(c=this.defaultMode),c.getFoldWidgetRange(h,f,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(e,i,m){var p=e("../../lib/oop"),v=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,f=i.FoldMode=function(s,c){v.call(this,new w(s,c),{"js-":new h,"css-":new h})};p.inherits(f,v)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,i,m){function p(u,g){return u.type.lastIndexOf(g+".xml")>-1}function v(u,g){for(var y=new h(u,g.row,g.column),b=y.getCurrentToken();b&&!p(b,"tag-name");)b=y.stepBackward();if(b)return b.value}function w(u,g){for(var y=new h(u,g.row,g.column),b=y.getCurrentToken();b&&!p(b,"attribute-name");)b=y.stepBackward();if(b)return b.value}var h=e("../token_iterator").TokenIterator,f=["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=f.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,g,y,b){var L=g.getTokenAt(y.row,y.column);if(!L)return[];if(p(L,"tag-name")||p(L,"tag-open")||p(L,"end-tag-open"))return this.getTagCompletions(u,g,y,b);if(p(L,"tag-whitespace")||p(L,"attribute-name"))return this.getAttributeCompletions(u,g,y,b);if(p(L,"attribute-value"))return this.getAttributeValueCompletions(u,g,y,b);var A=g.getLine(y.row).substr(0,y.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(u,g,y,b):[]},this.getTagCompletions=function(u,g,y,b){return l.map(function(L){return{value:L,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,g,y,b){var L=v(g,y);if(!L)return[];var A=c;return L in a&&(A=A.concat(Object.keys(a[L]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,g,y,b){var L=v(g,y),A=w(g,y);if(!L)return[];var k=[];return L in a&&A in a[L]&&typeof a[L][A]=="object"&&(k=Object.keys(a[L][A])),k.map(function(x){return{caption:x,snippet:x,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,g,y,b){var L=["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 L.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),i.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,f=e("./css").Mode,s=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,a=e("./folding/html").FoldMode,l=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],y=function(b){this.fragmentContext=b&&b.fragmentContext,this.HighlightRules=s,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":f}),this.foldingRules=new a(this.voidElements,v.arrayToMap(g))};p.inherits(y,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=v.arrayToMap(u),this.getNextLineIndent=function(b,L,A){return this.$getIndent(L)},this.checkOutdent=function(b,L,A){return!1},this.getCompletions=function(b,L,A,k){return this.$completer.getCompletions(b,L,A,k)},this.createWorker=function(b){if(this.constructor==y){var L=new o(["ace"],"ace/mode/html_worker","Worker");return L.attachToDocument(b.getDocument()),this.fragmentContext&&L.call("setOptions",[{context:this.fragmentContext}]),L.on("error",function(A){b.setAnnotations(A.data)}),L.on("terminate",function(){b.clearAnnotations()}),L}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(y.prototype),i.Mode=y}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.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=i.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",f=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+"))",g="(?:"+u+"|"+o+")",y="(?:&"+l+")",b="[a-zA-Z_][a-zA-Z0-9_]*",L="(?:"+b+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+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,M,E){var I=x[2]=="-"?"indentedHeredoc":"heredoc",T=x.split(this.splitRegex);return E.push(I,T[4]),[{type:"constant",value:T[1]},{type:"text",value:T[2]},{type:"string",value:T[3]},{type:"support.class",value:T[4]},{type:"string",value:T[5]}]},rules:{heredoc:[{onMatch:function(x,M,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,M,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,M){return M[0]==="heredoc"||M[0]==="indentedHeredoc"?M[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:A},{token:"variable",regex:L},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:y},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:g},{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()};p.inherits(f,v),i.ShHighlightRules=f}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,f=e("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new f,this.$behaviour=this.$defaultBehaviour};p.inherits(s,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),g=this.getTokenizer().getLineTokens(l,a),y=g.tokens;if(y.length&&y[y.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 g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&c[g.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),g=l.getTabString();u.slice(-g.length)==g&&l.remove(new h(o,u.length-g.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),i.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(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,f=e("./behaviour/xml").XmlBehaviour,s=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=h,this.$behaviour=new f,this.foldingRules=new s};p.inherits(a,w),(function(){this.voidElements=v.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),i.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(e,i,m){var p=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,f=e("./folding/markdown").FoldMode,s=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new f,this.$behaviour=new v({braces:!0})};p.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),i.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(e){n.exports=e})}()}(Ip)),Ip.exports}nb();var Dp={exports:{}},Np;function ib(){return Np||(Np=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-twilight .ace_gutter {
979
+ background: #232323;
980
+ color: #E2E2E2
981
+ }
982
+
983
+ .ace-twilight .ace_print-margin {
984
+ width: 1px;
985
+ background: #232323
986
+ }
987
+
988
+ .ace-twilight {
989
+ background-color: #141414;
990
+ color: #F8F8F8
991
+ }
992
+
993
+ .ace-twilight .ace_cursor {
994
+ color: #A7A7A7
995
+ }
996
+
997
+ .ace-twilight .ace_marker-layer .ace_selection {
998
+ background: rgba(221, 240, 255, 0.20)
999
+ }
1000
+
1001
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
+ box-shadow: 0 0 3px 0px #141414;
1003
+ }
1004
+
1005
+ .ace-twilight .ace_marker-layer .ace_step {
1006
+ background: rgb(102, 82, 0)
1007
+ }
1008
+
1009
+ .ace-twilight .ace_marker-layer .ace_bracket {
1010
+ margin: -1px 0 0 -1px;
1011
+ border: 1px solid rgba(255, 255, 255, 0.25)
1012
+ }
1013
+
1014
+ .ace-twilight .ace_marker-layer .ace_active-line {
1015
+ background: rgba(255, 255, 255, 0.031)
1016
+ }
1017
+
1018
+ .ace-twilight .ace_gutter-active-line {
1019
+ background-color: rgba(255, 255, 255, 0.031)
1020
+ }
1021
+
1022
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1023
+ border: 1px solid rgba(221, 240, 255, 0.20)
1024
+ }
1025
+
1026
+ .ace-twilight .ace_invisible {
1027
+ color: rgba(255, 255, 255, 0.25)
1028
+ }
1029
+
1030
+ .ace-twilight .ace_keyword,
1031
+ .ace-twilight .ace_meta {
1032
+ color: #CDA869
1033
+ }
1034
+
1035
+ .ace-twilight .ace_constant,
1036
+ .ace-twilight .ace_constant.ace_character,
1037
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1038
+ .ace-twilight .ace_constant.ace_other,
1039
+ .ace-twilight .ace_heading,
1040
+ .ace-twilight .ace_markup.ace_heading,
1041
+ .ace-twilight .ace_support.ace_constant {
1042
+ color: #CF6A4C
1043
+ }
1044
+
1045
+ .ace-twilight .ace_invalid.ace_illegal {
1046
+ color: #F8F8F8;
1047
+ background-color: rgba(86, 45, 86, 0.75)
1048
+ }
1049
+
1050
+ .ace-twilight .ace_invalid.ace_deprecated {
1051
+ text-decoration: underline;
1052
+ font-style: italic;
1053
+ color: #D2A8A1
1054
+ }
1055
+
1056
+ .ace-twilight .ace_support {
1057
+ color: #9B859D
1058
+ }
1059
+
1060
+ .ace-twilight .ace_fold {
1061
+ background-color: #AC885B;
1062
+ border-color: #F8F8F8
1063
+ }
1064
+
1065
+ .ace-twilight .ace_support.ace_function {
1066
+ color: #DAD085
1067
+ }
1068
+
1069
+ .ace-twilight .ace_list,
1070
+ .ace-twilight .ace_markup.ace_list,
1071
+ .ace-twilight .ace_storage {
1072
+ color: #F9EE98
1073
+ }
1074
+
1075
+ .ace-twilight .ace_entity.ace_name.ace_function,
1076
+ .ace-twilight .ace_meta.ace_tag {
1077
+ color: #AC885B
1078
+ }
1079
+
1080
+ .ace-twilight .ace_string {
1081
+ color: #8F9D6A
1082
+ }
1083
+
1084
+ .ace-twilight .ace_string.ace_regexp {
1085
+ color: #E9C062
1086
+ }
1087
+
1088
+ .ace-twilight .ace_comment {
1089
+ font-style: italic;
1090
+ color: #5F5A60
1091
+ }
1092
+
1093
+ .ace-twilight .ace_variable {
1094
+ color: #7587A6
1095
+ }
1096
+
1097
+ .ace-twilight .ace_xml-pe {
1098
+ color: #494949
1099
+ }
1100
+
1101
+ .ace-twilight .ace_indent-guide {
1102
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
+ }
1104
+
1105
+ .ace-twilight .ace_indent-guide-active {
1106
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
+ }
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,i,m){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=e("./twilight-css");var p=e("../lib/dom");p.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n.exports=e})}()}(Dp)),Dp.exports}ib();var Fp={exports:{}},Pp;function rb(){return Pp||(Pp=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,i,m){function p(x){var M=new Date().toLocaleString("en-us",x);return M.length==1?"0"+M:M}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,f=e("./lib/lang"),s=e("./range").Range,c=e("./range_list").RangeList,a=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(x){return x.session.getTextRange(x.session.getWordRange())},SELECTION:function(x,M,E){var I=x.session.getTextRange();return E?I.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+E+"$1"):I},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 M=x.session.$mode||{};return M.blockComment&&M.blockComment.start||""},BLOCK_COMMENT_END:function(x){var M=x.session.$mode||{};return M.blockComment&&M.blockComment.end||""},LINE_COMMENT:function(x){var M=x.session.$mode||{};return M.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var g=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 M(T){return T=T.substr(1),/^\d+$/.test(T)?[{tabstopId:parseInt(T,10)}]:[{text:T}]}function E(T){return"(?:[^\\\\"+T+"]|\\\\.)"}var I={regex:"/("+E("/")+"+)/",onMatch:function(T,N,$){var _=$[0];return _.fmtString=!0,_.guard=T.slice(1,-1),_.flag="",""},next:"formatString"};return x.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return(_=="}"&&$.length||"`$\\".indexOf(_)!=-1)&&(T=_),[T]}},{regex:/}/,onMatch:function(T,N,$){return[$.length?$.shift():T]}},{regex:/\$(?:\d+|\w+)/,onMatch:M},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(T,N,$){var _=M(T.substr(1));return $.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(T,N,$){var _=T.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return $[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(T,N,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return _=="}"&&$.length||"`$\\".indexOf(_)!=-1?T=_:_=="n"?T=`
1110
+ `:_=="t"?T=" ":"ulULE".indexOf(_)!=-1&&(T={changeCase:_,local:_>"a"}),[T]}},{regex:"/\\w*}",onMatch:function(T,N,$){var _=$.shift();return _&&(_.flag=T.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(T,N,$){return[{text:T.slice(1)}]}},{regex:/\${\w+/,onMatch:function(T,N,$){var _={text:T.slice(2)};return $.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(T,N,$){var _=$.shift();return this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(T,N,$){var _=$[0];return _.formatFunction=T.slice(2,-1),[$.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(T,N,$){T[1]=="+"&&($[0].ifEnd=$[0]),T[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),x.$tokenizer},x.prototype.tokenizeTmSnippet=function(M,E){return this.getTokenizer().getLineTokens(M,E).tokens.map(function(I){return I.value||I})},x.prototype.getVariableValue=function(M,E,I){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 T=this.variables[E];return typeof T=="function"&&(T=this.variables[E](M,E,I)),T??""},x.prototype.tmStrFormat=function(M,E,I){if(!E.fmt)return M;var T=E.flag||"",N=E.guard;N=new RegExp(N,T.replace(/[^gim]/g,""));var $=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,_=this,S=M.replace(N,function(){var R=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables($,I),F="E",H=0;H<O.length;H++){var W=O[H];if(typeof W=="object")if(O[H]="",W.changeCase&&W.local){var V=O[H+1];V&&typeof V=="string"&&(W.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?O[H]=W.toUpperCase():F=="L"&&(O[H]=W.toLowerCase())}return _.variables.__=R,O.join("")});return S},x.prototype.tmFormatFunction=function(M,E,I){return E.formatFunction=="upcase"?M.toUpperCase():E.formatFunction=="downcase"?M.toLowerCase():M},x.prototype.resolveVariables=function(M,E){function I(F){var H=M.indexOf(F,_+1);H!=-1&&(_=H)}for(var T=[],N="",$=!0,_=0;_<M.length;_++){var S=M[_];if(typeof S=="string"){T.push(S),S==`
1111
+ `?($=!0,N=""):$&&(N=/^\t*/.exec(S)[0],$=/\S/.test(S));continue}if(S){if($=!1,S.fmtString){var R=M.indexOf(S,_+1);R==-1&&(R=M.length),S.fmt=M.slice(_+1,R),_=R}if(S.text){var O=this.getVariableValue(E,S.text,N)+"";S.fmtString&&(O=this.tmStrFormat(O,S,E)),S.formatFunction&&(O=this.tmFormatFunction(O,S,E)),O&&!S.ifEnd?(T.push(O),I(S)):!O&&S.ifEnd&&I(S.ifEnd)}else S.elseEnd?I(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&T.push(S)}}return T},x.prototype.getDisplayTextForSnippet=function(M,E){var I=y.call(this,M,E);return I.text},x.prototype.insertSnippetForSelection=function(M,E,I){I===void 0&&(I={});var T=y.call(this,M,E,I),N=M.getSelectionRange(),$=M.session.replace(N,T.text),_=new b(M),S=M.inVirtualSelectionMode&&M.selection.index;_.addTabstops(T.tabstops,N.start,$,S)},x.prototype.insertSnippet=function(M,E,I){I===void 0&&(I={});var T=this;if(M.inVirtualSelectionMode)return T.insertSnippetForSelection(M,E,I);M.forEachSelection(function(){T.insertSnippetForSelection(M,E,I)},null,{keepOrder:!0}),M.tabstopManager&&M.tabstopManager.tabNext()},x.prototype.$getScope=function(M){var E=M.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!M.session.$mode.inlinePhp&&(E="html");var I=M.getCursorPosition(),T=M.session.getState(I.row);typeof T=="object"&&(T=T[0]),T.substring&&(T.substring(0,3)=="js-"?E="javascript":T.substring(0,4)=="css-"?E="css":T.substring(0,4)=="php-"&&(E="php"))}return E},x.prototype.getActiveScopes=function(M){var E=this.$getScope(M),I=[E],T=this.snippetMap;return T[E]&&T[E].includeScopes&&I.push.apply(I,T[E].includeScopes),I.push("_"),I},x.prototype.expandWithTab=function(M,E){var I=this,T=M.forEachSelection(function(){return I.expandSnippetForSelection(M,E)},null,{keepOrder:!0});return T&&M.tabstopManager&&M.tabstopManager.tabNext(),T},x.prototype.expandSnippetForSelection=function(M,E){var I=M.getCursorPosition(),T=M.session.getLine(I.row),N=T.substring(0,I.column),$=T.substr(I.column),_=this.snippetMap,S;return this.getActiveScopes(M).some(function(R){var O=_[R];return O&&(S=this.findMatchingSnippet(O,N,$)),!!S},this),S?(E&&E.dryRun||(M.session.doc.removeInLine(I.row,I.column-S.replaceBefore.length,I.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(M,S.content),this.variables.M__=this.variables.T__=null),!0):!1},x.prototype.findMatchingSnippet=function(M,E,I){for(var T=M.length;T--;){var N=M[T];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},x.prototype.register=function(M,E){function I(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function T(R,O,F){return R=I(R),O=I(O),R=O+R,R&&R[R.length-1]!="$"&&(R+="$"),new RegExp(R)}function N(R){R.scope||(R.scope=E||"_"),E=R.scope,$[E]||($[E]=[],_[E]={});var O=_[E];if(R.name){var F=O[R.name];F&&S.unregister(F),O[R.name]=R}$[E].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
1112
+ `):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=f.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=T(R.trigger,R.guard),R.triggerRe=new RegExp(R.trigger),R.endRe=T(R.endTrigger,R.endGuard),R.endTriggerRe=new RegExp(R.endTrigger))}var $=this.snippetMap,_=this.snippetNameMap,S=this;M||(M=[]),Array.isArray(M)?M.forEach(N):Object.keys(M).forEach(function(R){N(M[R])}),this._signal("registerSnippets",{scope:E})},x.prototype.unregister=function(M,E){function I($){var _=N[$.scope||E];if(_&&_[$.name]){delete _[$.name];var S=T[$.scope||E],R=S&&S.indexOf($);R>=0&&S.splice(R,1)}}var T=this.snippetMap,N=this.snippetNameMap;M.content?I(M):Array.isArray(M)&&M.forEach(I)},x.prototype.parseSnippetFile=function(M){M=M.replace(/\r/g,"");for(var E=[],I={},T=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=T.exec(M);){if(N[1])try{I=JSON.parse(N[1]),E.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),E.push(I),I={};else{var $=N[2],_=N[3];if($=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=S.exec(_)[1],I.trigger=S.exec(_)[1],I.endTrigger=S.exec(_)[1],I.endGuard=S.exec(_)[1]}else $=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):$&&(I[$]=_)}}return E},x.prototype.getSnippetByName=function(M,E){var I=this.snippetNameMap,T;return this.getActiveScopes(E).some(function(N){var $=I[N];return $&&(T=$[M]),!!T},this),T},x}();w.implement(g.prototype,h);var y=function(x,M,E){function I(X){for(var ae=[],ve=0;ve<X.length;ve++){var we=X[ve];if(typeof we=="object"){if(O[we.tabstopId])continue;var fe=X.lastIndexOf(we,ve-1);we=ae[fe]||{tabstopId:we.tabstopId}}ae[ve]=we}return ae}E===void 0&&(E={});var T=x.getCursorPosition(),N=x.session.getLine(T.row),$=x.session.getTabString(),_=N.match(/^\s*/)[0];T.column<_.length&&(_=_.slice(0,T.column)),M=M.replace(/\r/g,"");var S=this.tokenizeTmSnippet(M);S=this.resolveVariables(S,x),S=S.map(function(X){return X==`
1113
+ `&&!E.excludeExtraIndent?X+_:typeof X=="string"?X.replace(/\t/g,$):X});var R=[];S.forEach(function(X,ae){if(typeof X=="object"){var ve=X.tabstopId,we=R[ve];if(we||(we=R[ve]=[],we.index=ve,we.value="",we.parents={}),we.indexOf(X)===-1){X.choices&&!we.choices&&(we.choices=X.choices),we.push(X);var fe=S.indexOf(X,ae+1);if(fe!==-1){var $e=S.slice(ae+1,fe),at=$e.some(function(Bt){return typeof Bt=="object"});at&&!we.value?we.value=$e:$e.length&&(!we.value||typeof we.value!="string")&&(we.value=$e.join(""))}}}}),R.forEach(function(X){X.length=0});for(var O={},F=0;F<S.length;F++){var H=S[F];if(typeof H=="object"){var W=H.tabstopId,V=R[W],q=S.indexOf(H,F+1);if(O[W]){O[W]===H&&(delete O[W],Object.keys(O).forEach(function(X){V.parents[X]=!0}));continue}O[W]=H;var J=V.value;typeof J!="string"?J=I(J):H.fmt&&(J=this.tmStrFormat(J,H,x)),S.splice.apply(S,[F+1,Math.max(0,q-F)].concat(J,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Q=0,ie="";return S.forEach(function(X){if(typeof X=="string"){var ae=X.split(`
1114
+ `);ae.length>1?(Q=ae[ae.length-1].length,G+=ae.length-1):Q+=X.length,ie+=X}else X&&(X.start?X.end={row:G,column:Q}:X.start={row:G,column:Q})}),{text:ie,tabstops:R,tokens:S}},b=function(){function x(M){if(this.index=0,this.ranges=[],this.tabstops=[],M.tabstopManager)return M.tabstopManager;M.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(M)}return x.prototype.attach=function(M){this.$openTabstops=null,this.selectedTabstop=null,this.editor=M,this.session=M.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(M){for(var E=M.action[0]=="r",I=this.selectedTabstop||{},T=I.parents||{},N=this.tabstops.slice(),$=0;$<N.length;$++){var _=N[$],S=_==I||T[_.index];if(_.rangeList.$bias=S?0:1,M.action=="remove"&&_!==I){var R=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(M.start,R);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(M.end,R);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(O,F),W=0;W<H.length;W++)this.removeRange(H[W])}_.rangeList.$onChange(M)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},x.prototype.updateLinkedFields=function(){var M=this.selectedTabstop;if(!(!M||!M.hasLinkedRanges||!M.firstNonLinked)){this.$inChange=!0;for(var E=this.session,I=E.getTextRange(M.firstNonLinked),T=0;T<M.length;T++){var N=M[T];if(N.linked){var $=N.original,_=i.snippetManager.tmStrFormat(I,$,this.editor);E.replace(N,_)}}this.$inChange=!1}},x.prototype.onAfterExec=function(M){M.command&&!M.command.readOnly&&this.updateLinkedFields()},x.prototype.onChangeSelection=function(){if(this.editor){for(var M=this.editor.selection.lead,E=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),T=0;T<this.ranges.length;T++)if(!this.ranges[T].linked){var N=this.ranges[T].contains(M.row,M.column),$=I||this.ranges[T].contains(E.row,E.column);if(N&&$)return}this.detach()}},x.prototype.onChangeSession=function(){this.detach()},x.prototype.tabNext=function(M){var E=this.tabstops.length,I=this.index+(M||1);I=Math.min(Math.max(I,1),E),I==E&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},x.prototype.selectTabstop=function(M){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=M,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var I=E.firstNonLinked||E;if(E.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var T=this.editor.multiSelect;T.toSingleRange(I);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||T.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(M,E,I){var T=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!M[0]){var N=s.fromPoints(I,I);A(N.start,E),A(N.end,E),M[0]=[N],M[0].index=0}var $=this.index,_=[$+1,0],S=this.ranges,R=this.snippetId=(this.snippetId||0)+1;M.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=R;for(var W=0;W<O.length;W++){var V=O[W],q=s.fromPoints(V.start,V.end||V.start);L(q.start,E),L(q.end,E),q.original=V,q.tabstop=H,S.push(q),H!=O?H.unshift(q):H[W]=q,V.fmtString||H.firstNonLinked&&T?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new c,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},x.prototype.addTabstopMarkers=function(M){var E=this.session;M.forEach(function(I){I.markerId||(I.markerId=E.addMarker(I,"ace_snippet-marker","text"))})},x.prototype.removeTabstopMarkers=function(M){var E=this.session;M.forEach(function(I){E.removeMarker(I.markerId),I.markerId=null})},x.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var M=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&M--,this.tabstops.forEach(function(E){E.snippetId===M?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},x.prototype.removeRange=function(M){var E=M.tabstop.indexOf(M);E!=-1&&M.tabstop.splice(E,1),E=this.ranges.indexOf(M),E!=-1&&this.ranges.splice(E,1),E=M.tabstop.rangeList.ranges.indexOf(M),E!=-1&&M.tabstop.splice(E,1),this.session.removeMarker(M.markerId),M.tabstop.length||(E=this.tabstops.indexOf(M.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){i.snippetManager&&i.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 L=function(x,M){x.row==0&&(x.column+=M.column),x.row+=M.row},A=function(x,M){x.row==M.row&&(x.column-=M.column),x.row-=M.row};v.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),i.snippetManager=new g;var k=e("./editor").Editor;(function(){this.insertSnippet=function(x,M){return i.snippetManager.insertSnippet(this,x,M)},this.expandSnippet=function(x){return i.snippetManager.expandWithTab(this,x)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,i,m){var p=e("../virtual_renderer").VirtualRenderer,v=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),f=e("../lib/lang"),s=e("../lib/dom"),c=e("../config").nls,a=e("./../lib/useragent"),l=function(L){return"suggest-aria-id:".concat(L)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",g=a.isSafari?"aria-current":"aria-selected",y=function(L){var A=new p(L);A.$maxLines=4;var k=new v(A);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},b=function(){function L(A){var k=s.createElement("div"),x=y(k);A&&A.appendChild(k),k.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 M=function(){};x.focus=M,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=M,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(S){var R=S.getDocumentPosition();x.selection.moveToPosition(R),T.start.row=T.end.row=R.row,S.stop()});var E,I=new w(-1,0,-1,1/0),T=new w(-1,0,-1,1/0);T.id=x.session.addMarker(T,"ace_active-line","fullLine"),x.setSelectOnHover=function(S){S?I.id&&(x.session.removeMarker(I.id),I.id=null):I.id=x.session.addMarker(I,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function(S){if(!E){E=S;return}if(!(E.x==S.x&&E.y==S.y)){E=S,E.scrollTop=x.renderer.scrollTop,x.isMouseOver=!0;var R=E.getDocumentPosition().row;I.start.row!=R&&(I.id||x.setRow(R),$(R))}}),x.renderer.on("beforeRender",function(){if(E&&I.start.row!=-1){E.$pos=null;var S=E.getDocumentPosition().row;I.id||x.setRow(S),$(S,!0)}}),x.renderer.on("afterRender",function(){var S=x.getRow(),R=x.renderer.$textLayer,O=R.element.childNodes[S-R.config.firstRow],F=document.activeElement;if(O!==x.selectedNode&&x.selectedNode&&(s.removeCssClass(x.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),x.selectedNode.removeAttribute(g),x.selectedNode.removeAttribute("id")),x.selectedNode=O,O){s.addCssClass(O,"ace_selected");var H=l(S);O.id=H,R.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute("role",u),O.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",x.getData(S).caption||x.getData(S).value),O.setAttribute("aria-setsize",x.data.length),O.setAttribute("aria-posinset",S+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(g,"true")}});var N=function(){$(-1)},$=function(S,R){S!==I.start.row&&(I.start.row=I.end.row=S,R||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return I.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(S){var R=x.data[S];return typeof R=="string"?R:R&&R.value||""};var _=x.session.bgTokenizer;return _.$tokenizeRow=function(S){function R(X,ae){X&&F.push({type:(O.className||"")+(ae||""),value:X})}var O=x.data[S],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var H=O.caption||O.value||O.name,W=H.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 Q=V.slice(J,G);J=G;var ie=W.indexOf(Q,q);if(ie==-1)continue;R(H.slice(q,ie),""),q=ie+Q.length,R(H.slice(ie,q),"completion-highlight")}return R(H.slice(q,H.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=M,_.start=M,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(S,R){x.filterText=R||"",x.setValue(f.stringRepeat(`
1122
+ `,S.length),-1),x.data=S||[],x.setRow(0)},x.getData=function(S){return x.data[S]},x.getRow=function(){return T.start.row},x.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),T.start.row!=S&&(x.selection.clearSelection(),T.start.row=T.end.row=S||0,x.session._emit("changeBackMarker"),x.moveCursorTo(S||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(S,R,O,F){if(!F&&x.isOpen&&x.anchorPos&&x.anchor&&x.anchorPos.top===S.top&&x.anchorPos.left===S.left&&x.anchor===O)return!0;var H=this.container,W=window.innerHeight,V=window.innerWidth,q=this.renderer,J=q.$maxLines*R*1.4,G={top:0,bottom:0,left:0},Q=W-S.top-3*this.$borderSize-R,ie=S.top-3*this.$borderSize;O||(ie<=Q||Q>=J?O="bottom":O="top"),O==="top"?(G.bottom=S.top-this.$borderSize,G.top=G.bottom-J):O==="bottom"&&(G.top=S.top+R+this.$borderSize,G.bottom=G.top+J);var X=G.top>=0&&G.bottom<=W;if(!F&&!X)return!1;X?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=ie:q.$maxPixelHeight=Q,O==="top"?(H.style.top="",H.style.bottom=W-G.bottom+"px",x.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",x.isTopdown=!0),H.style.display="";var ae=S.left;return ae+H.offsetWidth>V&&(ae=V-H.offsetWidth),H.style.left=ae+"px",H.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),E=null),x.anchorPos=S,x.anchor=O,!0},x.show=function(S,R,O){this.tryShow(S,R,O?"bottom":void 0,!0)},x.goTo=function(S){var R=this.getRow(),O=this.session.getLength()-1;switch(S){case"up":R=R<=0?O:R-1;break;case"down":R=R>=O?-1:R+1;break;case"start":R=0;break;case"end":R=O}this.setRow(R)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return L}();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),i.AcePopup=b,i.$singleLineEditor=y,i.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var p=function(){function v(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return v.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 f=this.popup.getRow(),s=this.popup.renderer.$textLayer,c=s.element.childNodes[f-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)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);f.appendChild(s),w.appendChild(f)}return w},v}();i.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var p=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(f,s,c){if(c=c||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(f));var a=s.snippet?p.getDisplayTextForSnippet(f,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(c)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(c.length),a===""?f.removeGhostText():f.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}();i.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,i,m){i.parForEach=function(v,w,h){var f=0,s=v.length;s===0&&h();for(var c=0;c<s;c++)w(v[c],function(a,l){f++,f===s&&h(a,l)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||p;for(var f=[],s=w-1;s>=0&&h.test(v[s]);s--)f.push(v[s]);return f.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||p;for(var f=[],s=w;s<v.length&&h.test(v[s]);s++)f.push(v[s]);return f},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),f;return v.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!f&&c&&(f=this.retrievePrecedingIdentifier(h,w.column,c))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(f){if(f.triggerCharacters&&Array.isArray(f.triggerCharacters))return f.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,i,m){var p=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,f=e("./autocomplete/util"),s=e("./lib/lang"),c=e("./lib/dom"),a=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,g=function(A,k){k.completer&&k.completer.destroy()},y=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new L(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new v(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var x=k?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)},A.prototype.$updateGhostText=function(k){var x=this.base.row,M=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(x).slice(M,E);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var x=this.popup.getFirstVisibleRow();x<=this.popup.getLastVisibleRow();x++){var M=this.popup.getData(x);M&&(!k||M.hideInlinePreview)&&this.$seen(M)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,x=[];k;)x.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=x}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(x){x.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,x=k.renderer,M=x.layerConfig.lineHeight,E=x.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();E.top+=I.top-x.layerConfig.offset,E.left+=I.left-k.renderer.scrollLeft,E.left+=x.gutterWidth;var T={top:E.top,left:E.left};x.$ghostText&&x.$ghostTextWidget&&this.base.row===x.$ghostText.position.row&&(T.top+=x.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-M,$=N<T.top?{top:N,left:T.left}:T;this.popup.tryShow($,M,"bottom")||this.popup.tryShow(E,M,"top")||this.popup.show(E,M)},A.prototype.openPopup=function(k,x,M){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(),I=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}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var T;this.stickySelection&&(T=this.popup.data.indexOf(I)),(!T||T===-1)&&(T=0),this.popup.setRow(this.autoSelect?T:-1),T===E&&I!==this.completions.filtered[T]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(T===E&&N){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}M||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},A.prototype.changeListener=function(k){var x=this.editor.selection.lead;(x.row!=this.base.row||x.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var x=document.activeElement,M=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;x!=M&&x.parentNode!=I&&!E&&x!=this.tooltipNode&&k.relatedTarget!=M&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,x){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var M=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,M.filterText,x);return this.completions==M&&this.detach(),E},A.prototype.showPopup=function(k,x){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,x)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new b(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,x){return this.getCompletionProvider().gatherCompletions(k,x)},A.prototype.updateCompletions=function(k,x){if(k&&this.base&&this.completions){var E=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:E});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,k);return}if(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 L(x.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var M=this.editor.getSession(),E=this.editor.getCursorPosition(),I=f.getCompletionPrefix(this.editor);this.base=M.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var T={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,T,(function(N,$,_){var S=$.filtered,R=f.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(R)),O){var F=[{caption:O,value:""}];this.completions=new L(F),this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==R&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new L(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,x=this.completions.filtered,M=x&&(x[k.getHoveredRow()]||x[k.getRow()]),E=null;if(!M||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,T=0;T<I;T++){var N=this.editor.completers[T];if(N.getDocTooltip&&M.completerId===N.id){E=N.getDocTooltip(M);break}}if(!E&&typeof M!="string"&&(E=M),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var x=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(x.isDark?"ace_dark ":"")+(x.cssClass||"");var M=this.tooltipNode;k.docHTML?M.innerHTML=k.docHTML:k.docText&&(M.textContent=k.docText),M.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();M.style.top=E.container.style.top,M.style.bottom=E.container.style.bottom,M.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(M.style.top=I.bottom+"px",M.style.left=I.left+"px",M.style.right="",M.style.bottom=""):(M.style.top=E.container.offsetTop-M.offsetHeight+"px",M.style.left=I.left+"px",M.style.right="",M.style.bottom=""):(M.style.right=window.innerWidth-I.left+"px",M.style.left=""):(M.style.left=I.right+1+"px",M.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var x=k.target;x&&x!=this.tooltipNode;){if(x.nodeName=="A"&&x.href){x.rel="noreferrer",x.target="_blank";break}x=x.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",g),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),l.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",g))),k.completer},A}();y.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=f.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},y.startCommand={name:"startAutocomplete",exec:function(A,k){var x=y.for(A);x.autoInsert=!1,x.autoSelect=!0,x.autoShown=!1,x.showPopup(A,k),x.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var b=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,x,M){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[x],M)},A.prototype.insertMatch=function(k,x,M){if(!x)return!1;if(k.startOperation({command:{name:"insertMatch"}}),x.completer&&x.completer.insertMatch)x.completer.insertMatch(k,x);else{if(!this.completions)return!1;var E=this.completions.filterText.length,I=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,I+=x.range.end.column-this.initialPosition.pos.column),E||I){var T;k.selection.getAllRanges?T=k.selection.getAllRanges():T=[k.getSelectionRange()];for(var N=0,$;$=T[N];N++)$.start.column-=E,$.end.column+=I,k.session.remove($)}x.snippet?a.insertSnippet(k,x.snippet):this.$insertString(k,x),x.completer&&x.completer.onInsert&&typeof x.completer.onInsert=="function"&&x.completer.onInsert(k,x),x.command&&x.command==="startAutocomplete"&&k.execCommand(x.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,x){var M=x.value||x;k.execCommand("insertstring",M)},A.prototype.gatherCompletions=function(k,x){var M=k.getSession(),E=k.getCursorPosition(),I=f.getCompletionPrefix(k),T=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,M,E,I,function(S,R){$.hideInlinePreview&&(R=R.map(function(O){return Object.assign(O,{hideInlinePreview:$.hideInlinePreview})})),!S&&R&&(T=T.concat(R)),x(null,{prefix:f.getCompletionPrefix(k),matches:T,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,x,M){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new L(S),x.exactMatch&&(this.completions.exactMatch=!0),x.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&M(null,this.completions,$.finished)}).bind(this),I=!0,T=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(M($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(I){T=_;return}E(_)}}}).bind(this)),I=!1,T){var N=T;T=null,E(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),L=function(){function A(k,x){this.all=k,this.filtered=k,this.filterText=x||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var x=this.filtered;else var x=this.all;this.filterText=k,x=this.filterCompletions(x,this.filterText),x=x.sort(function(E,I){return I.exactMatch-E.exactMatch||I.$score-E.$score||(E.caption||E.value).localeCompare(I.caption||I.value)});var M=null;x=x.filter(function(E){var I=E.snippet||E.caption||E.value;return I===M?!1:(M=I,!0)}),this.filtered=x},A.prototype.filterCompletions=function(k,x){var M=[],E=x.toUpperCase(),I=x.toLowerCase();e:for(var T=0,N;N=k[T];T++){var $=!this.ignoreCaption&&N.caption||N.value||N.snippet;if($){var _=-1,S=0,R=0,O,F;if(this.exactMatch){if(x!==$.substr(0,x.length))continue e}else{var H=$.toLowerCase().indexOf(I);if(H>-1)R=H;else for(var W=0;W<x.length;W++){var V=$.indexOf(I[W],_+1),q=$.indexOf(E[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(R+=10),R+=F,S|=1<<W),_=O}}N.matchMask=S,N.exactMatch=R?0:1,N.$score=(N.score||0)-R,M.push(N)}}return M},A}();i.Autocomplete=y,i.CompletionProvider=b,i.FilteredList=L}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function p(f,s){var c=f.getTextRange(w.fromPoints({row:0,column:0},s));return c.split(h).length-1}function v(f,s){var c=p(f,s),a=f.getValue().split(h),l=Object.create(null),o=a[c];return a.forEach(function(u,g){if(!(!u||u===o)){var y=Math.abs(c-g),b=a.length-y;l[u]?l[u]=Math.max(b,l[u]):l[u]=b}}),l}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(f,s,c,a,l){var o=v(s,c),u=Object.keys(o);l(null,u.map(function(g){return{caption:g,value:g,score:o[g],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,i,m){var p=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),f=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(E,I,T,N,$){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,T,N,$);var _=E.session.getState(T.row),S=I.$mode.getCompletions(_,I,T,N);S=S.map(function(R){return R.completerId=c.id,R}),$(null,S)},id:"keywordCompleter"},a=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(T,N,$,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(T,N){return I[N]})},l={getCompletions:function(E,I,T,N,$){var _=[],S=I.getTokenAt(T.row,T.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=p.getActiveScopes(E);var R=p.snippetMap,O=[];_.forEach(function(F){for(var H=R[F]||[],W=H.length;W--;){var V=H[W],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];i.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},i.addCompleter=function(E){o.push(E)},i.textCompleter=s,i.keyWordCompleter=c,i.snippetCompleter=l;var u={name:"expandSnippet",exec:function(E){return p.expandWithTab(E)},bindKey:"Tab"},g=function(E,I){y(I.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(p.files||(p.files={}),b(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},b=function(E,I){!I||!E||p.files[E]||(p.files[E]={},w.loadModule(I,function(T){T&&(p.files[E]=T,!T.snippets&&T.snippetText&&(T.snippets=p.parseSnippetFile(T.snippetText)),p.register(T.snippets||[],T.scope),T.includeScopes&&(p.snippetMap[T.scope].includeScopes=T.includeScopes,T.includeScopes.forEach(function(N){y("ace/mode/"+N)})))}))},L=function(E){var I=E.editor,T=I.completer&&I.completer.activated;if(E.command.name==="backspace")T&&!f.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!T){A=E;var N=E.editor.$liveAutocompletionDelay;N?k.delay(N):x(E)}},A,k=h.delayedCall(function(){x(A)},0),x=function(E){var I=E.editor,T=f.getCompletionPrefix(I),N=E.args,$=f.triggerAutocomplete(I,N);if(T&&T.length>=I.$liveAutocompletionThreshold||$){var _=v.for(I);_.autoShown=!0,_.showPopup(I)}},M=e("../editor").Editor;e("../config").defineOptions(M.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(v.startCommand)):this.commands.removeCommand(v.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",L)):this.commands.off("afterExec",L)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",g),g(null,this)):(this.commands.removeCommand(u),this.off("changeMode",g))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n.exports=e})}()}(Fp)),Fp.exports}rb();var Hp={exports:{}},Bp;function ob(){return Bp||(Bp=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,i,m){m.exports=`
1215
+
1216
+ /* ------------------------------------------------------------------------------------------
1217
+ * Editor Search Form
1218
+ * --------------------------------------------------------------------------------------- */
1219
+ .ace_search {
1220
+ background-color: #ddd;
1221
+ color: #666;
1222
+ border: 1px solid #cbcbcb;
1223
+ border-top: 0 none;
1224
+ overflow: hidden;
1225
+ margin: 0;
1226
+ padding: 4px 6px 0 4px;
1227
+ position: absolute;
1228
+ top: 0;
1229
+ z-index: 99;
1230
+ white-space: normal;
1231
+ }
1232
+ .ace_search.left {
1233
+ border-left: 0 none;
1234
+ border-radius: 0px 0px 5px 0px;
1235
+ left: 0;
1236
+ }
1237
+ .ace_search.right {
1238
+ border-radius: 0px 0px 0px 5px;
1239
+ border-right: 0 none;
1240
+ right: 0;
1241
+ }
1242
+
1243
+ .ace_search_form, .ace_replace_form {
1244
+ margin: 0 20px 4px 0;
1245
+ overflow: hidden;
1246
+ line-height: 1.9;
1247
+ }
1248
+ .ace_replace_form {
1249
+ margin-right: 0;
1250
+ }
1251
+ .ace_search_form.ace_nomatch {
1252
+ outline: 1px solid red;
1253
+ }
1254
+
1255
+ .ace_search_field {
1256
+ border-radius: 3px 0 0 3px;
1257
+ background-color: white;
1258
+ color: black;
1259
+ border: 1px solid #cbcbcb;
1260
+ border-right: 0 none;
1261
+ outline: 0;
1262
+ padding: 0;
1263
+ font-size: inherit;
1264
+ margin: 0;
1265
+ line-height: inherit;
1266
+ padding: 0 6px;
1267
+ min-width: 17em;
1268
+ vertical-align: top;
1269
+ min-height: 1.8em;
1270
+ box-sizing: content-box;
1271
+ }
1272
+ .ace_searchbtn {
1273
+ border: 1px solid #cbcbcb;
1274
+ line-height: inherit;
1275
+ display: inline-block;
1276
+ padding: 0 6px;
1277
+ background: #fff;
1278
+ border-right: 0 none;
1279
+ border-left: 1px solid #dcdcdc;
1280
+ cursor: pointer;
1281
+ margin: 0;
1282
+ position: relative;
1283
+ color: #666;
1284
+ }
1285
+ .ace_searchbtn:last-child {
1286
+ border-radius: 0 3px 3px 0;
1287
+ border-right: 1px solid #cbcbcb;
1288
+ }
1289
+ .ace_searchbtn:disabled {
1290
+ background: none;
1291
+ cursor: default;
1292
+ }
1293
+ .ace_searchbtn:hover {
1294
+ background-color: #eef1f6;
1295
+ }
1296
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1297
+ padding: 0px 0.7em
1298
+ }
1299
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
+ content: "";
1301
+ border: solid 2px #888;
1302
+ width: 0.5em;
1303
+ height: 0.5em;
1304
+ border-width: 2px 0 0 2px;
1305
+ display:inline-block;
1306
+ transform: rotate(-45deg);
1307
+ }
1308
+ .ace_searchbtn.next:after {
1309
+ border-width: 0 2px 2px 0 ;
1310
+ }
1311
+ .ace_searchbtn_close {
1312
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
+ border-radius: 50%;
1314
+ border: 0 none;
1315
+ color: #656565;
1316
+ cursor: pointer;
1317
+ font: 16px/16px Arial;
1318
+ padding: 0;
1319
+ height: 14px;
1320
+ width: 14px;
1321
+ top: 9px;
1322
+ right: 7px;
1323
+ position: absolute;
1324
+ }
1325
+ .ace_searchbtn_close:hover {
1326
+ background-color: #656565;
1327
+ background-position: 50% 100%;
1328
+ color: white;
1329
+ }
1330
+
1331
+ .ace_button {
1332
+ margin-left: 2px;
1333
+ cursor: pointer;
1334
+ -webkit-user-select: none;
1335
+ -moz-user-select: none;
1336
+ -o-user-select: none;
1337
+ -ms-user-select: none;
1338
+ user-select: none;
1339
+ overflow: hidden;
1340
+ opacity: 0.7;
1341
+ border: 1px solid rgba(100,100,100,0.23);
1342
+ padding: 1px;
1343
+ box-sizing: border-box!important;
1344
+ color: black;
1345
+ }
1346
+
1347
+ .ace_button:hover {
1348
+ background-color: #eee;
1349
+ opacity:1;
1350
+ }
1351
+ .ace_button:active {
1352
+ background-color: #ddd;
1353
+ }
1354
+
1355
+ .ace_button.checked {
1356
+ border-color: #3399ff;
1357
+ opacity:1;
1358
+ }
1359
+
1360
+ .ace_search_options{
1361
+ margin-bottom: 3px;
1362
+ text-align: right;
1363
+ -webkit-user-select: none;
1364
+ -moz-user-select: none;
1365
+ -o-user-select: none;
1366
+ -ms-user-select: none;
1367
+ user-select: none;
1368
+ clear: both;
1369
+ }
1370
+
1371
+ .ace_search_counter {
1372
+ float: left;
1373
+ font-family: arial;
1374
+ padding: 0 8px;
1375
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),f=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=e("../config").nls,a=999;p.importCssString(h,"ace_searchbox",!1);var l=function(){function g(y,b,L){this.activeInput;var A=p.createElement("div");p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(y),p.importCssString(h,"ace_searchbox",y.container)}return g.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},g.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},g.prototype.$initElements=function(y){this.searchBox=y.querySelector(".ace_search_form"),this.replaceBox=y.querySelector(".ace_replace_form"),this.searchOption=y.querySelector("[action=searchInSelection]"),this.replaceOption=y.querySelector("[action=toggleReplace]"),this.regExpOption=y.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=y.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=y.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=y.querySelector(".ace_search_counter")},g.prototype.$init=function(){var y=this.element;this.$initElements(y);var b=this;w.addListener(y,"mousedown",function(L){setTimeout(function(){b.activeInput.focus()},0),w.stopPropagation(L)}),w.addListener(y,"click",function(L){var A=L.target||L.srcElement,k=A.getAttribute("action");k&&b[k]?b[k]():b.$searchBarKb.commands[k]&&b.$searchBarKb.commands[k].exec(b),w.stopPropagation(L)}),w.addCommandKeyListener(y,function(L,A,k){var x=s.keyCodeToString(k),M=b.$searchBarKb.findKeyCommand(A,x);M&&M.exec&&(M.exec(b),w.stopEvent(L))}),this.$onChange=v.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()})},g.prototype.setSearchRange=function(y){this.searchRange=y,y?this.searchRangeMarker=this.editor.session.addMarker(y,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},g.prototype.$syncOptions=function(y){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,y)},g.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},g.prototype.find=function(y,b,L){var A=this.editor.find(this.searchInput.value,{skipCurrent:y,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:L,range:this.searchRange}),k=!A&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},g.prototype.updateCounter=function(){var y=this.editor,b=y.$search.$options.re,L=b.unicode,A=0,k=0;if(b){var x=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),M=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(M-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=b.lastIndex=0,I;(I=b.exec(x))&&(A++,E=I.index,E<=M&&k++,!(A>a||!I[0]&&(b.lastIndex=E+=v.skipEmptyMatch(x,E,L),E>=x.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,A>a?a+"+":A])},g.prototype.findNext=function(){this.find(!0,!1)},g.prototype.findPrev=function(){this.find(!0,!0)},g.prototype.findAll=function(){var y=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!y&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},g.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},g.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},g.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},g.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},g.prototype.show=function(y,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,y&&(this.searchInput.value=y),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},g.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},g}(),o=new f;o.bindKeys({"Ctrl-f|Command-f":function(g){var y=g.isReplace=!g.isReplace;g.replaceBox.style.display=y?"":"none",g.replaceOption.checked=!1,g.$syncOptions(),g.searchInput.focus()},"Ctrl-H|Command-Option-F":function(g){g.editor.getReadOnly()||(g.replaceOption.checked=!0,g.$syncOptions(),g.replaceInput.focus())},"Ctrl-G|Command-G":function(g){g.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(g){g.findPrev()},esc:function(g){setTimeout(function(){g.hide()})},Return:function(g){g.activeInput==g.replaceInput&&g.replace(),g.findNext()},"Shift-Return":function(g){g.activeInput==g.replaceInput&&g.replace(),g.findPrev()},"Alt-Return":function(g){g.activeInput==g.replaceInput&&g.replaceAll(),g.findAll()},Tab:function(g){(g.activeInput==g.replaceInput?g.searchInput:g.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(g){g.regExpOption.checked=!g.regExpOption.checked,g.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(g){g.caseSensitiveOption.checked=!g.caseSensitiveOption.checked,g.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(g){g.wholeWordOption.checked=!g.wholeWordOption.checked,g.$syncOptions()}},{name:"toggleReplace",exec:function(g){g.replaceOption.checked=!g.replaceOption.checked,g.$syncOptions()}},{name:"searchInSelection",exec:function(g){g.searchOption.checked=!g.searchRange,g.setSearchRange(g.searchOption.checked&&g.editor.getSelectionRange()),g.$syncOptions()}}]);var u=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(g){g.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,i.SearchBox=l,i.Search=function(g,y){var b=g.searchBox||new l(g);b.show(g.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n.exports=e})}()}(Hp)),Hp.exports}ob();var sb=Object.defineProperty,ab=(n,t,e)=>t in n?sb(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,io=(n,t,e)=>ab(n,typeof t!="symbol"?t+"":t,e);function zp(n,t){return function(){return n.apply(t,arguments)}}const{toString:lb}=Object.prototype,{getPrototypeOf:Fc}=Object,Oa=(n=>t=>{const e=lb.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=n=>(n=n.toLowerCase(),t=>Oa(t)===n),Da=n=>t=>typeof t===n,{isArray:Po}=Array,Ss=Da("undefined");function cb(n){return n!==null&&!Ss(n)&&n.constructor!==null&&!Ss(n.constructor)&&ci(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const jp=Ri("ArrayBuffer");function ub(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&jp(n.buffer),t}const hb=Da("string"),ci=Da("function"),Wp=Da("number"),Na=n=>n!==null&&typeof n=="object",db=n=>n===!0||n===!1,Fa=n=>{if(Oa(n)!=="object")return!1;const t=Fc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},pb=Ri("Date"),fb=Ri("File"),gb=Ri("Blob"),mb=Ri("FileList"),vb=n=>Na(n)&&ci(n.pipe),yb=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ci(n.append)&&((t=Oa(n))==="formdata"||t==="object"&&ci(n.toString)&&n.toString()==="[object FormData]"))},wb=Ri("URLSearchParams"),[bb,xb,_b,kb]=["ReadableStream","Request","Response","Headers"].map(Ri),$b=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Po(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),v=p.length;let w;for(i=0;i<v;i++)w=p[i],t.call(null,n[w],w,n)}}function Up(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vp=n=>!Ss(n)&&n!==ro;function Pc(){const{caseless:n}=Vp(this)&&this||{},t={},e=(i,m)=>{const p=n&&Up(t,m)||m;Fa(t[p])&&Fa(i)?t[p]=Pc(t[p],i):Fa(i)?t[p]=Pc({},i):Po(i)?t[p]=i.slice():t[p]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Cs(arguments[i],e);return t}const Sb=(n,t,e,{allOwnKeys:i}={})=>(Cs(t,(m,p)=>{e&&ci(m)?n[p]=zp(m,e):n[p]=m},{allOwnKeys:i}),n),Cb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Ab=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Mb=(n,t,e,i)=>{let m,p,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),p=m.length;p-- >0;)v=m[p],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Fc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Tb=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Eb=n=>{if(!n)return null;if(Po(n))return n;let t=n.length;if(!Wp(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Lb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Fc(Uint8Array)),Rb=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Ib=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Ob=Ri("HTMLFormElement"),Db=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),qp=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Nb=Ri("RegExp"),Gp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Cs(e,(m,p)=>{let v;(v=t(m,p,n))!==!1&&(i[p]=v||m)}),Object.defineProperties(n,i)},Fb=n=>{Gp(n,(t,e)=>{if(ci(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(ci(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Pb=(n,t)=>{const e={},i=m=>{m.forEach(p=>{e[p]=!0})};return Po(n)?i(n):i(String(n).split(t)),e},Hb=()=>{},Bb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Hc="abcdefghijklmnopqrstuvwxyz",Yp="0123456789",Kp={DIGIT:Yp,ALPHA:Hc,ALPHA_DIGIT:Hc+Hc.toUpperCase()+Yp},zb=(n=16,t=Kp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function jb(n){return!!(n&&ci(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Wb=n=>{const t=new Array(10),e=(i,m)=>{if(Na(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const p=Po(i)?[]:{};return Cs(i,(v,w)=>{const h=e(v,m+1);!Ss(h)&&(p[w]=h)}),t[m]=void 0,p}}return i};return e(n,0)},Ub=Ri("AsyncFunction"),Vb=n=>n&&(Na(n)||ci(n))&&ci(n.then)&&ci(n.catch),Zp=((n,t)=>n?setImmediate:t?((e,i)=>(ro.addEventListener("message",({source:m,data:p})=>{m===ro&&p===e&&i.length&&i.shift()()},!1),m=>{i.push(m),ro.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ci(ro.postMessage)),qb=typeof queueMicrotask<"u"?queueMicrotask.bind(ro):typeof process<"u"&&process.nextTick||Zp,ue={isArray:Po,isArrayBuffer:jp,isBuffer:cb,isFormData:yb,isArrayBufferView:ub,isString:hb,isNumber:Wp,isBoolean:db,isObject:Na,isPlainObject:Fa,isReadableStream:bb,isRequest:xb,isResponse:_b,isHeaders:kb,isUndefined:Ss,isDate:pb,isFile:fb,isBlob:gb,isRegExp:Nb,isFunction:ci,isStream:vb,isURLSearchParams:wb,isTypedArray:Lb,isFileList:mb,forEach:Cs,merge:Pc,extend:Sb,trim:$b,stripBOM:Cb,inherits:Ab,toFlatObject:Mb,kindOf:Oa,kindOfTest:Ri,endsWith:Tb,toArray:Eb,forEachEntry:Rb,matchAll:Ib,isHTMLForm:Ob,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Gp,freezeMethods:Fb,toObjectSet:Pb,toCamelCase:Db,noop:Hb,toFiniteNumber:Bb,findKey:Up,global:ro,isContextDefined:Vp,ALPHABET:Kp,generateString:zb,isSpecCompliantForm:jb,toJSONObject:Wb,isAsyncFn:Ub,isThenable:Vb,setImmediate:Zp,asap:qb};function tt(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.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 Qp=tt.prototype,Xp={};["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=>{Xp[n]={value:n}}),Object.defineProperties(tt,Xp),Object.defineProperty(Qp,"isAxiosError",{value:!0}),tt.from=(n,t,e,i,m,p)=>{const v=Object.create(Qp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,p&&Object.assign(v,p),v};const Gb=null;function Bc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Jp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function ef(n,t,e){return n?n.concat(t).map(function(i,m){return i=Jp(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function Yb(n){return ue.isArray(n)&&!n.some(Bc)}const Kb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Pa(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||f,p=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(m))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 f(l,o,u){let g=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Yb(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(g=ue.toArray(l)))return o=Jp(o),g.forEach(function(y,b){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?ef([o],b,p):v===null?o:o+"[]",h(y))}),!1}return Bc(l)?!0:(t.append(ef(u,o,p),h(l)),!1)}const s=[],c=Object.assign(Kb,{defaultVisitor:f,convertValue:h,isVisitable:Bc});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,g){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(g)?g.trim():g,o,c))===!0&&a(u,o?o.concat(g):[g])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),t}function tf(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function zc(n,t){this._pairs=[],n&&Pa(n,this,t)}const nf=zc.prototype;nf.append=function(n,t){this._pairs.push([n,t])},nf.toString=function(n){const t=n?function(e){return n.call(this,e,tf)}:tf;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Zb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rf(n,t,e){if(!t)return n;const i=e&&e.encode||Zb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let p;if(m?p=m(t,e):p=ue.isURLSearchParams(t)?t.toString():new zc(t,e).toString(i),p){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class of{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qb=typeof URLSearchParams<"u"?URLSearchParams:zc,Xb=typeof FormData<"u"?FormData:null,Jb=typeof Blob<"u"?Blob:null,e1={isBrowser:!0,classes:{URLSearchParams:Qb,FormData:Xb,Blob:Jb},protocols:["http","https","file","blob","url","data"]},jc=typeof window<"u"&&typeof document<"u",Wc=typeof navigator=="object"&&navigator||void 0,t1=jc&&(!Wc||["ReactNative","NativeScript","NS"].indexOf(Wc.product)<0),n1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i1=jc&&window.location.href||"http://localhost",r1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jc,hasStandardBrowserEnv:t1,hasStandardBrowserWebWorkerEnv:n1,navigator:Wc,origin:i1},Symbol.toStringTag,{value:"Module"})),Dn={...r1,...e1};function o1(n,t){return Pa(n,new Dn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,p){return Dn.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function s1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function a1(n){const t={},e=Object.keys(n);let i;const m=e.length;let p;for(i=0;i<m;i++)p=e[i],t[p]=n[p];return t}function af(n){function t(e,i,m,p){let v=e[p++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=p>=e.length;return v=!v&&ue.isArray(m)?m.length:v,h?(ue.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!ue.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],p)&&ue.isArray(m[v])&&(m[v]=a1(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(s1(i),m,e,0)}),e}return null}function l1(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const As={transitional:sf,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=ue.isObject(n);if(m&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(af(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return o1(n,this.formSerializer).toString();if((p=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Pa(p?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),l1(n)):n}],transformResponse:[function(n){const t=this.transitional||As.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(p){if(m)throw p.name==="SyntaxError"?tt.from(p,tt.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.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=>{As.headers[n]={}});const c1=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"]),u1=n=>{const t={};let e,i,m;return n&&n.split(`
1376
+ `).forEach(function(p){m=p.indexOf(":"),e=p.substring(0,m).trim().toLowerCase(),i=p.substring(m+1).trim(),!(!e||t[e]&&c1[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},lf=Symbol("internals");function Ms(n){return n&&String(n).trim().toLowerCase()}function Ha(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Ha):String(n)}function h1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const d1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Uc(n,t,e,i,m){if(ue.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!ue.isString(t)){if(ue.isString(i))return t.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(t)}}function p1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function f1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,p,v){return this[i].call(this,t,m,p,v)},configurable:!0})})}class Jn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function p(w,h,f){const s=Ms(h);if(!s)throw new Error("header name must be a non-empty string");const c=ue.findKey(m,s);(!c||m[c]===void 0||f===!0||f===void 0&&m[c]!==!1)&&(m[c||h]=Ha(w))}const v=(w,h)=>ue.forEach(w,(f,s)=>p(f,s,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!d1(t))v(u1(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())p(h,w,i);else t!=null&&p(e,t,i);return this}get(t,e){if(t=Ms(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return h1(m);if(ue.isFunction(e))return e.call(this,m,i);if(ue.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ms(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Uc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function p(v){if(v=Ms(v),v){const w=ue.findKey(i,v);w&&(!e||Uc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(p):p(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const p=e[i];(!t||Uc(this,this[p],p,t,!0))&&(delete this[p],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,p)=>{const v=ue.findKey(i,p);if(v){e[v]=Ha(m),delete e[p];return}const w=t?p1(p):String(p).trim();w!==p&&delete e[p],e[w]=Ha(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&ue.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[lf]=this[lf]={accessors:{}}).accessors,i=this.prototype;function m(p){const v=Ms(p);e[v]||(f1(i,p),e[v]=!0)}return ue.isArray(t)?t.forEach(m):m(t),this}}Jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Jn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),ue.freezeMethods(Jn);function Vc(n,t){const e=this||As,i=t||e,m=Jn.from(i.headers);let p=i.data;return ue.forEach(n,function(v){p=v.call(e,p,m.normalize(),t?t.status:void 0)}),m.normalize(),p}function cf(n){return!!(n&&n.__CANCEL__)}function Ho(n,t,e){tt.call(this,n??"canceled",tt.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Ho,tt,{__CANCEL__:!0});function uf(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new tt("Request failed with status code "+e.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function g1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function m1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,p=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[p];v||(v=h),e[m]=w,i[m]=h;let s=p,c=0;for(;s!==m;)c+=e[s++],s=s%n;if(m=(m+1)%n,m===p&&(p=(p+1)%n),h-v<t)return;const a=f&&h-f;return a?Math.round(c*1e3/a):void 0}}function v1(n,t){let e=0,i=1e3/t,m,p;const v=(w,h=Date.now())=>{e=h,m=null,p&&(clearTimeout(p),p=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,p||(p=setTimeout(()=>{p=null,v(m)},i-f)))},()=>m&&v(m)]}const Ba=(n,t,e=3)=>{let i=0;const m=m1(50,250);return v1(p=>{const v=p.loaded,w=p.lengthComputable?p.total:void 0,h=v-i,f=m(h),s=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&s?(w-v)/f:void 0,event:p,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},hf=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},df=n=>(...t)=>ue.asap(()=>n(...t)),y1=Dn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Dn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,w1=Dn.hasStandardBrowserEnv?{write(n,t,e,i,m,p){const v=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),ue.isString(i)&&v.push("path="+i),ue.isString(m)&&v.push("domain="+m),p===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function x1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function pf(n,t){return n&&!b1(t)?x1(n,t):t}const ff=n=>n instanceof Jn?{...n}:n;function oo(n,t){t=t||{};const e={};function i(f,s,c,a){return ue.isPlainObject(f)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},f,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function m(f,s,c,a){if(ue.isUndefined(s)){if(!ue.isUndefined(f))return i(void 0,f,c,a)}else return i(f,s,c,a)}function p(f,s){if(!ue.isUndefined(s))return i(void 0,s)}function v(f,s){if(ue.isUndefined(s)){if(!ue.isUndefined(f))return i(void 0,f)}else return i(void 0,s)}function w(f,s,c){if(c in t)return i(f,s);if(c in n)return i(void 0,f)}const h={url:p,method:p,data:p,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,s,c)=>m(ff(f),ff(s),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(f){const s=h[f]||m,c=s(n[f],t[f],f);ue.isUndefined(c)&&s!==w||(e[f]=c)}),e}const gf=n=>{const t=oo({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:p,headers:v,auth:w}=t;t.headers=v=Jn.from(v),t.url=rf(pf(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(e)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...s].join("; "))}}if(Dn.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&y1(t.url))){const f=m&&p&&w1.read(p);f&&v.set(m,f)}return t},_1=typeof XMLHttpRequest<"u",k1=_1&&function(n){return new Promise(function(t,e){const i=gf(n);let m=i.data;const p=Jn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,s,c,a,l;function o(){a&&a(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function g(){if(!u)return;const b=Jn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),L={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};uf(function(A){t(A),o()},function(A){e(A),o()},L),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new tt("Request aborted",tt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new tt("Network Error",tt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||sf;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new tt(b,L.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,n,u)),u=null},m===void 0&&p.setContentType(null),"setRequestHeader"in u&&ue.forEach(p.toJSON(),function(b,L){u.setRequestHeader(L,b)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=Ba(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=Ba(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(f=b=>{u&&(e(!b||b.type?new Ho(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=g1(i.url);if(y&&Dn.protocols.indexOf(y)===-1){e(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},$1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const p=function(f){if(!m){m=!0,w();const s=f instanceof Error?f:this.reason;i.abort(s instanceof tt?s:new Ho(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,p(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(p):f.removeEventListener("abort",p)}),n=null)};n.forEach(f=>f.addEventListener("abort",p));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},S1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},C1=async function*(n,t){for await(const e of A1(n))yield*S1(e,t)},A1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},mf=(n,t,e,i)=>{const m=C1(n,t);let p=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:s}=await m.next();if(f){w(),h.close();return}let c=s.byteLength;if(e){let a=p+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},za=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vf=za&&typeof ReadableStream=="function",M1=za&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),yf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},T1=vf&&yf(()=>{let n=!1;const t=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),wf=64*1024,qc=vf&&yf(()=>ue.isReadableStream(new Response("").body)),ja={stream:qc&&(n=>n.body)};za&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ja[t]&&(ja[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new tt(`Response type '${t}' is not supported`,tt.ERR_NOT_SUPPORT,i)})})})(new Response);const E1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Dn.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 M1(n)).byteLength},L1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??E1(t),R1=za&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:p,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:s,withCredentials:c="same-origin",fetchOptions:a}=gf(n);f=f?(f+"").toLowerCase():"text";let l=$1([m,p&&p.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let g;try{if(h&&T1&&e!=="get"&&e!=="head"&&(g=await L1(s,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(ue.isFormData(i)&&(x=k.headers.get("content-type"))&&s.setContentType(x),k.body){const[M,E]=hf(g,Ba(df(h)));i=mf(k.body,wf,M,E)}}ue.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let b=await fetch(o);const L=qc&&(f==="stream"||f==="response");if(qc&&(w||L&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=ue.toFiniteNumber(b.headers.get("content-length")),[M,E]=w&&hf(x,Ba(df(w),!0))||[];b=new Response(mf(b.body,wf,M,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await ja[ue.findKey(ja,f)||"text"](b,n);return!L&&u&&u(),await new Promise((k,x)=>{uf(k,x,{data:A,headers:Jn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,n,o),{cause:y.cause||y}):tt.from(y,y&&y.code,n,o)}}),Gc={http:Gb,xhr:k1,fetch:R1};ue.forEach(Gc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const bf=n=>`- ${n}`,I1=n=>ue.isFunction(n)||n===null||n===!1,xf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let p=0;p<t;p++){e=n[p];let v;if(i=e,!I1(e)&&(i=Gc[(v=String(e)).toLowerCase()],i===void 0))throw new tt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+p]=i}if(!i){const p=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?p.length>1?`since :
1378
+ `+p.map(bf).join(`
1379
+ `):" "+bf(p[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Gc};function Yc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ho(null,n)}function _f(n){return Yc(n),n.headers=Jn.from(n.headers),n.data=Vc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xf.getAdapter(n.adapter||As.adapter)(n).then(function(t){return Yc(n),t.data=Vc.call(n,n.transformResponse,t),t.headers=Jn.from(t.headers),t},function(t){return cf(t)||(Yc(n),t&&t.response&&(t.response.data=Vc.call(n,n.transformResponse,t.response),t.response.headers=Jn.from(t.response.headers))),Promise.reject(t)})}const kf="1.7.9",Wa={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Wa[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const $f={};Wa.transitional=function(n,t,e){function i(m,p){return"[Axios v"+kf+"] Transitional option '"+m+"'"+p+(e?". "+e:"")}return(m,p,v)=>{if(n===!1)throw new tt(i(p," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!$f[p]&&($f[p]=!0,console.warn(i(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,p,v):!0}},Wa.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function O1(n,t,e){if(typeof n!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const p=i[m],v=t[p];if(v){const w=n[p],h=w===void 0||v(w,p,n);if(h!==!0)throw new tt("option "+p+" must be "+h,tt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new tt("Unknown option "+p,tt.ERR_BAD_OPTION)}}const Ua={assertOptions:O1,validators:Wa},Wi=Ua.validators;class so{constructor(t){this.defaults=t,this.interceptors={request:new of,response:new of}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const p=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?p&&!String(i.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1380
+ `+p):i.stack=p}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=oo(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:p}=e;i!==void 0&&Ua.assertOptions(i,{silentJSONParsing:Wi.transitional(Wi.boolean),forcedJSONParsing:Wi.transitional(Wi.boolean),clarifyTimeoutError:Wi.transitional(Wi.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:Ua.assertOptions(m,{encode:Wi.function,serialize:Wi.function},!0)),Ua.assertOptions(e,{baseUrl:Wi.spelling("baseURL"),withXsrfToken:Wi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=p&&ue.merge(p.common,p[e.method]);p&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Jn.concat(v,p);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[_f.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),a=o.length,s=Promise.resolve(e);c<a;)s=s.then(o[c++],o[c++]);return s}a=w.length;let l=e;for(c=0;c<a;){const o=w[c++],u=w[c++];try{l=o(l)}catch(g){u.call(this,g);break}}try{s=_f.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=f.length;c<a;)s=s.then(f[c++],f[c++]);return s}getUri(t){t=oo(this.defaults,t);const e=pf(t.baseURL,t.url);return rf(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){so.prototype[n]=function(t,e){return this.request(oo(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,p){return this.request(oo(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}so.prototype[n]=t(),so.prototype[n+"Form"]=t(!0)});class Kc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let p=i._listeners.length;for(;p-- >0;)i._listeners[p](m);i._listeners=null}),this.promise.then=m=>{let p;const v=new Promise(w=>{i.subscribe(w),p=w}).then(m);return v.cancel=function(){i.unsubscribe(p)},v},t(function(m,p,v){i.reason||(i.reason=new Ho(m,p,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Kc(function(e){t=e}),cancel:t}}}function D1(n){return function(t){return n.apply(null,t)}}function N1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Zc={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(Zc).forEach(([n,t])=>{Zc[t]=n});function Sf(n){const t=new so(n),e=zp(so.prototype.request,t);return ue.extend(e,so.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return Sf(oo(n,i))},e}const fn=Sf(As);fn.Axios=so,fn.CanceledError=Ho,fn.CancelToken=Kc,fn.isCancel=cf,fn.VERSION=kf,fn.toFormData=Pa,fn.AxiosError=tt,fn.Cancel=fn.CanceledError,fn.all=function(n){return Promise.all(n)},fn.spread=D1,fn.isAxiosError=N1,fn.mergeConfig=oo,fn.AxiosHeaders=Jn,fn.formToJSON=n=>af(ue.isHTMLForm(n)?new FormData(n):n),fn.getAdapter=xf.getAdapter,fn.HttpStatusCode=Zc,fn.default=fn;const Qc=fn.create({baseURL:location.origin,timeout:6e4,params:{}});Qc.interceptors.response.use(n=>n,n=>{var t,e,i,m,p,v,w,h,f,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} - `;(t=n.response)!=null&&t.statusText&&(a+=`${n.response.statusText} `),(i=(e=n.response)==null?void 0:e.config)!=null&&i.data&&(a+=`${n.response.config.data} `),(p=(m=n.response)==null?void 0:m.data)!=null&&p.message?a+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?a+=`${n.response.data.exception}`:(s=(f=(h=n.response)==null?void 0:h.data)==null?void 0:f.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 Va=async function(n,t,{data:e,params:i={},headers:m,noAuth:p=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}m.Authorization=localStorage.openc3Token}return m.manual=!0,!v&&!i.scope&&(i.scope=window.openc3Scope),Qc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Xc={Accept:"application/json"},Cf={...Xc,"Content-Type":"application/json"},Ui=dn("I",{get:function(n,{params:t,headers:e=Xc,noScope:i,noAuth:m,onUploadProgress:p}={}){return Va("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:i=Cf,noScope:m,noAuth:p,onUploadProgress:v}={}){return Va("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:p,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=Cf,noScope:m,noAuth:p,onUploadProgress:v}={}){return Va("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:p,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Xc,noScope:i,noAuth:m,onUploadProgress:p}={}){return Va("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:p})}});var qa={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Yt={log(...n){this.enabled&&(n.push(Date.now()),qa.logger.log("[ActionCable]",...n))}};const Ts=()=>new Date().getTime(),Ga=n=>(Ts()-n)/1e3;class Ya{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Ts(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Yt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Ts(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Yt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=Ts()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Yt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Ts(),Yt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),m=(this.reconnectAttempts===0?1:e)*Math.random();return t*1e3*i*(1+m)}reconnectIfStale(){this.connectionIsStale()&&(Yt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Ga(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Yt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Ga(this.disconnectedAt)} s`):(Yt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Ga(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Ga(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Yt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Ya.staleThreshold=6,Ya.reconnectionBackoffRate=.15;var Af={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:Es,protocols:Jc}=Af,F1=Jc.slice(0,Jc.length-1),Mf=[].indexOf;class eu{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new Ya(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Yt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...Jc,...this.consumer.subprotocols||[]];return Yt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new qa.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Yt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Yt.log("Failed to reopen WebSocket",t)}finally{Yt.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return Mf.call(F1,this.getProtocol())>=0}isState(...t){return Mf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in qa.WebSocket)if(qa.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}eu.reopenDelay=500,eu.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:p}=JSON.parse(n.data);switch(p){case Es.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Es.disconnect:return Yt.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case Es.ping:return this.monitor.recordPing();case Es.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case Es.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Yt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Yt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Yt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Yt.log("WebSocket onerror event")}};const P1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class H1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),P1(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class B1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Yt.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Yt.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Yt.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Yt.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class z1{constructor(t){this.consumer=t,this.guarantor=new B1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},p=new H1(this.consumer,m,e);return this.add(p)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(i=>this.notify(i,t,...e))}notify(t,e,...i){let m;return typeof t=="string"?m=this.findAll(t):m=[t],m.map(p=>typeof p[e]=="function"?p[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Yt.log(`Subscription confirmed ${t}`),this.findAll(t).map(e=>this.guarantor.forget(e))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class j1{constructor(t){this._url=t,this.subscriptions=new z1(this),this.connection=new eu(this),this.subprotocols=[]}get url(){return W1(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function W1(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const t=document.createElement("a");return t.href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return n}function U1(n=V1("url")||Af.default_mount_path){return new j1(n)}function V1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}Ya.staleThreshold=10;let aI=dn("O",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,t,e={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let p=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=U1(p)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class tu{constructor(t,e,i="",m=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=i,this.url=m}}dn("a",tu);class q1{constructor(){io(this,"keyword",null),io(this,"parameters",[]),io(this,"filename",""),io(this,"line",""),io(this,"lineNumber",0),io(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(t,e,i=""){for(let m=1;m<=t;m++)if(this.parameters[m-1]===void 0)throw new tu(this,`Not enough parameters for ${this.keyword}.`,i,this.url);if(e&&this.parameters[e]!==void 0)throw new tu(this,`Too many parameters for ${this.keyword}.`,i,this.url)}remove_quotes(t){if(t.length<2)return t;let e=t.charAt(0);if(e!=='"'&&e!=="'")return t;let i=t.charAt(t.length-1);return e!==i?t:t.substring(1,t.length-1)}scan_string(t,e){if(!e.global)throw"rx must have 'global' flag set";let i=[];return t.replace(e,function(m){return i.push(m),m}),i}parse_string(t,e,i,m,p){let v=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=e;let w=t.split(`
1381
+ `),h=w.length;for(let f=0;f<h;f++){this.lineNumber=f+1;let s=w[f].trim();if(s.length===0)continue;if(v===!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 y=s.substring(0,s.length-1).trim();this.line+=y.substring(0,y.length-1),a&&(this.line+=`
1382
+ `),v=!0;continue;case"&":this.line+=s.substring(0,s.length-1);continue;default:this.line+=s}v=!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){i&&p(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let g=o.length;if(g>1)for(let y=1;y<g;y++){let b=o[y];if(b.length>0&&b.charAt(0)==="#")break;m?this.parameters.push(this.remove_quotes(b)):this.parameters.push(b)}p(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}class nu{constructor(){io(this,"id",1)}async exec(t,e,i={},m={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,m.manual=!0,(await Qc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...m},timeout:p})).data.result}catch(v){let w=new Error;throw v.response?(w.name=v.response.data.error.data.class,w.message=v.response.data.error.data.message,w.object=v.response.data.error):v.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...i){return this.exec("interface_cmd",[t,e,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,i){return this.exec("get_item",[t,e,i])}get_param(t,e,i){return this.exec("get_param",[t,e,i])}get_parameter(t,e,i){return this.exec("get_param",[t,e,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,i,m=30){const p=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(p!=null){let v=p.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(p[h][1]),w!==null&&(p[h][1]=w)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,i=null){let m={stale_time:e};i!==null&&(m.cache_timeout=i);const p=await this.exec("get_tlm_values",[t],m,{},1e4);let v=p[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(p[0][h]),w!==null&&(p[0][h]=w);return p}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else p=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(p);return v!==null&&(p=v),p}async inject_tlm(t,e,i=null,m="CONVERTED"){data=await this.exec("inject_tlm",[t,e,i],{type:m})}set_tlm(t,e,i,m){return this.exec("set_tlm",[t,e,i],{type:m})}override_tlm(t,e,i,m){return this.exec("override_tlm",[t,e,i],{type:m})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,i,m){return this.exec("normalize_tlm",[t,e,i],{type:m})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,i,m="CONVERTED"){return this.exec("get_cmd_value",[t,e,i,m])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,i,m,p){let v=null;for(let w in m)Object.prototype.hasOwnProperty.call(m,w)&&(v=this.encode_openc3_type(m[w]),v!==null&&(m[w]=v));return this.exec(t,[e,i,m],{},p)}get_cmd_hazardous(t,e,i,m={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},m):this._cmd("get_cmd_hazardous",t,e,i,m)}cmd(t,e,i,m={}){return e===void 0?this.exec("cmd",t,{},m):this._cmd("cmd",t,e,i,m)}cmd_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_range_check",t,{},m):this._cmd("cmd_no_range_check",t,e,i,m)}cmd_raw(t,e,i,m={}){return e===void 0?this.exec("cmd_raw",t,{},m):this._cmd("cmd_raw",t,e,i,m)}cmd_raw_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},m):this._cmd("cmd_raw_no_range_check",t,e,i,m)}cmd_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},m):this._cmd("cmd_no_hazardous_check",t,e,i,m)}cmd_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_no_checks",t,{},m):this._cmd("cmd_no_checks",t,e,i,m)}cmd_raw_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},m):this._cmd("cmd_raw_no_hazardous_check",t,e,i,m)}cmd_raw_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},m):this._cmd("cmd_raw_no_checks",t,e,i,m)}build_cmd(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}build_command(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,i){return this.exec("save_config",[t,e,i])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,i){return this.exec("enable_limits",[t,e,i])}disable_limits(t,e,i){return this.exec("disable_limits",[t,e,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e),m=new Uint8Array(i);return Array.from(m).map(p=>p.toString(16).padStart(2,"0")).join("")}}}dn("F",nu);const G1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}};var Ka={exports:{}};/**
1383
+ * @license
1384
+ * Lodash <https://lodash.com/>
1385
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1386
+ * Released under MIT license <https://lodash.com/license>
1387
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1388
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1389
+ */var Y1=Ka.exports,Tf;function K1(){return Tf||(Tf=1,function(n,t){(function(){var e,i="4.17.21",m=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",c=1,a=2,l=4,o=1,u=2,g=1,y=2,b=4,L=8,A=16,k=32,x=64,M=128,E=256,I=512,T=30,N="...",$=800,_=16,S=1,R=2,O=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,J=q-1,G=q>>>1,Q=[["ary",M],["bind",g],["bindKey",y],["curry",L],["curryRight",A],["flip",I],["partial",k],["partialRight",x],["rearg",E]],ie="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",ve="[object Boolean]",we="[object Date]",fe="[object DOMException]",$e="[object Error]",at="[object Function]",Bt="[object GeneratorFunction]",dt="[object Map]",gt="[object Number]",cn="[object Null]",Nt="[object Object]",Zt="[object Promise]",Ki="[object Proxy]",$n="[object RegExp]",tn="[object Set]",Pe="[object String]",ze="[object Symbol]",nn="[object Undefined]",We="[object WeakMap]",ce="[object WeakSet]",Me="[object ArrayBuffer]",Re="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",ct="[object Int32Array]",ut="[object Uint8Array]",it="[object Uint8ClampedArray]",Ut="[object Uint16Array]",Hn="[object Uint32Array]",hr=/\b__p \+= '';/g,ti=/\b(__p \+=) '' \+/g,Vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qs=/&(?:amp|lt|gt|quot|#39);/g,Al=/[&<>"']/g,jh=RegExp(qs.source),Wh=RegExp(Al.source),Uh=/<%-([\s\S]+?)%>/g,Vh=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ln=/^\w*$/,Zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qi=/[\\^$.*+?()[\]{}|]/g,Ir=RegExp(Qi.source),Bn=/^\s+/,Or=/\s/,Dr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,qh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gh=/[()=,{}\[\]\/\s]/,pr=/\\(\\)?/g,Yh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nr=/\w*$/,El=/^[-+]0x[0-9a-f]+$/i,Xi=/^0b[01]+$/i,Sn=/^\[object .+?Constructor\]$/,mn=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,es=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,vo=/['\n\r\u2028\u2029\\]/g,yo="\\ud800-\\udfff",Gs="\\u0300-\\u036f",ts="\\ufe20-\\ufe2f",Fr="\\u20d0-\\u20ff",ns=Gs+ts+Fr,is="\\u2700-\\u27bf",rs="a-z\\xdf-\\xf6\\xf8-\\xff",Ys="\\xac\\xb1\\xd7\\xf7",Ks="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zs="\\u2000-\\u206f",Qs=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Xs="\\ufe0e\\ufe0f",Js=Ys+Ks+Zs+Qs,wo="['’]",Ll="["+yo+"]",Rl="["+Js+"]",os="["+ns+"]",Il="\\d+",Ol="["+is+"]",ea="["+rs+"]",Dl="[^"+yo+Js+Il+is+rs+_i+"]",ss="\\ud83c[\\udffb-\\udfff]",ta="(?:"+os+"|"+ss+")",bo="[^"+yo+"]",Pr="(?:\\ud83c[\\udde6-\\uddff]){2}",na="[\\ud800-\\udbff][\\udc00-\\udfff]",Ji="["+_i+"]",Nl="\\u200d",Fl="(?:"+ea+"|"+Dl+")",Kh="(?:"+Ji+"|"+Dl+")",fr="(?:"+wo+"(?:d|ll|m|re|s|t|ve))?",xo="(?:"+wo+"(?:D|LL|M|RE|S|T|VE))?",as=ta+"?",Hr="["+Xs+"]?",Zh="(?:"+Nl+"(?:"+[bo,Pr,na].join("|")+")"+Hr+as+")*",Br="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ia=Hr+as+Zh,ra="(?:"+[Ol,Pr,na].join("|")+")"+ia,oa="(?:"+[bo+os+"?",os,Pr,na,Ll].join("|")+")",sa=RegExp(wo,"g"),zr=RegExp(os,"g"),er=RegExp(ss+"(?="+ss+")|"+oa+ia,"g"),Pl=RegExp([Ji+"?"+ea+"+"+fr+"(?="+[Rl,Ji,"$"].join("|")+")",Kh+"+"+xo+"(?="+[Rl,Ji+Fl,"$"].join("|")+")",Ji+"?"+Fl+"+"+fr,Ji+"+"+xo,Qh,Br,Il,ra].join("|"),"g"),Hl=RegExp("["+Nl+yo+ns+Xs+"]"),jr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wr=["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"],Bl=-1,It={};It[qe]=It[Ye]=It[pt]=It[ft]=It[ct]=It[ut]=It[it]=It[Ut]=It[Hn]=!0,It[ie]=It[X]=It[Me]=It[ve]=It[Re]=It[we]=It[$e]=It[at]=It[dt]=It[gt]=It[Nt]=It[$n]=It[tn]=It[Pe]=It[We]=!1;var Be={};Be[ie]=Be[X]=Be[Me]=Be[Re]=Be[ve]=Be[we]=Be[qe]=Be[Ye]=Be[pt]=Be[ft]=Be[ct]=Be[dt]=Be[gt]=Be[Nt]=Be[$n]=Be[tn]=Be[Pe]=Be[ze]=Be[ut]=Be[it]=Be[Ut]=Be[Hn]=!0,Be[$e]=Be[at]=Be[We]=!1;var zt={À:"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"},tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Cn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wn=parseFloat,Ft=parseInt,gr=typeof Er=="object"&&Er&&Er.Object===Object&&Er,ls=typeof self=="object"&&self&&self.Object===Object&&self,An=gr||ls||Function("return this")(),ki=t&&!t.nodeType&&t,Rn=ki&&!0&&n&&!n.nodeType&&n,zl=Rn&&Rn.exports===ki,aa=zl&&gr.process,ni=function(){try{var ne=Rn&&Rn.require&&Rn.require("util").types;return ne||aa&&aa.binding&&aa.binding("util")}catch{}}(),jl=ni&&ni.isArrayBuffer,$i=ni&&ni.isDate,Ni=ni&&ni.isMap,nr=ni&&ni.isRegExp,mr=ni&&ni.isSet,Wl=ni&&ni.isTypedArray;function qt(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 Xh(ne,le,se,Se){for(var Fe=-1,Ze=ne==null?0:ne.length;++Fe<Ze;){var Mt=ne[Fe];le(Se,Mt,se(Mt),ne)}return Se}function Yn(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se&&le(ne[se],se,ne)!==!1;);return ne}function Ul(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Ur(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(!le(ne[se],se,ne))return!1;return!0}function ii(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Fe=0,Ze=[];++se<Se;){var Mt=ne[se];le(Mt,se,ne)&&(Ze[Fe++]=Mt)}return Ze}function cs(ne,le){var se=ne==null?0:ne.length;return!!se&&vr(ne,le,0)>-1}function _o(ne,le,se){for(var Se=-1,Fe=ne==null?0:ne.length;++Se<Fe;)if(se(le,ne[Se]))return!0;return!1}function jt(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Fe=Array(Se);++se<Se;)Fe[se]=le(ne[se],se,ne);return Fe}function jn(ne,le){for(var se=-1,Se=le.length,Fe=ne.length;++se<Se;)ne[Fe+se]=le[se];return ne}function Si(ne,le,se,Se){var Fe=-1,Ze=ne==null?0:ne.length;for(Se&&Ze&&(se=ne[++Fe]);++Fe<Ze;)se=le(se,ne[Fe],Fe,ne);return se}function ko(ne,le,se,Se){var Fe=ne==null?0:ne.length;for(Se&&Fe&&(se=ne[--Fe]);Fe--;)se=le(se,ne[Fe],Fe,ne);return se}function us(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(le(ne[se],se,ne))return!0;return!1}var la=pa("length");function ca(ne){return ne.split("")}function hs(ne){return ne.match(qh)||[]}function ua(ne,le,se){var Se;return se(ne,function(Fe,Ze,Mt){if(le(Fe,Ze,Mt))return Se=Ze,!1}),Se}function $o(ne,le,se,Se){for(var Fe=ne.length,Ze=se+(Se?1:-1);Se?Ze--:++Ze<Fe;)if(le(ne[Ze],Ze,ne))return Ze;return-1}function vr(ne,le,se){return le===le?Ke(ne,le,se):$o(ne,ha,se)}function Vl(ne,le,se,Se){for(var Fe=se-1,Ze=ne.length;++Fe<Ze;)if(Se(ne[Fe],le))return Fe;return-1}function ha(ne){return ne!==ne}function da(ne,le){var se=ne==null?0:ne.length;return se?qr(ne,le)/se:V}function pa(ne){return function(le){return le==null?e:le[ne]}}function ds(ne){return function(le){return ne==null?e:ne[le]}}function fa(ne,le,se,Se,Fe){return Fe(ne,function(Ze,Mt,Xe){se=Se?(Se=!1,Ze):le(se,Ze,Mt,Xe)}),se}function Vr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function qr(ne,le){for(var se,Se=-1,Fe=ne.length;++Se<Fe;){var Ze=le(ne[Se]);Ze!==e&&(se=se===e?Ze:se+Ze)}return se}function rn(ne,le){for(var se=-1,Se=Array(ne);++se<ne;)Se[se]=le(se);return Se}function ql(ne,le){return jt(le,function(se){return[se,ne[se]]})}function Qt(ne){return ne&&ne.slice(0,Qe(ne)+1).replace(Bn,"")}function Wn(ne){return function(le){return ne(le)}}function So(ne,le){return jt(le,function(se){return ne[se]})}function Fi(ne,le){return ne.has(le)}function Gl(ne,le){for(var se=-1,Se=ne.length;++se<Se&&vr(le,ne[se],0)>-1;);return se}function Yl(ne,le){for(var se=ne.length;se--&&vr(le,ne[se],0)>-1;);return se}function ga(ne,le){for(var se=ne.length,Se=0;se--;)ne[se]===le&&++Se;return Se}var P=ds(zt),z=ds(tr);function Y(ne){return"\\"+yn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Hl.test(ne)}function oe(ne){return jr.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(Se,Fe){se[++le]=[Fe,Se]}),se}function _e(ne,le){return function(se){return ne(le(se))}}function ke(ne,le){for(var se=-1,Se=ne.length,Fe=0,Ze=[];++se<Se;){var Mt=ne[se];(Mt===le||Mt===s)&&(ne[se]=s,Ze[Fe++]=se)}return Ze}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=Se}),se}function Ee(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=[Se,Se]}),se}function Ke(ne,le,se){for(var Se=se-1,Fe=ne.length;++Se<Fe;)if(ne[Se]===le)return Se;return-1}function Lt(ne,le,se){for(var Se=se+1;Se--;)if(ne[Se]===le)return Se;return Se}function rt(ne){return te(ne)?At(ne):la(ne)}function Ge(ne){return te(ne)?Xt(ne):ca(ne)}function Qe(ne){for(var le=ne.length;le--&&Or.test(ne.charAt(le)););return le}var Ie=ds(Cn);function At(ne){for(var le=er.lastIndex=0;er.test(ne);)++le;return le}function Xt(ne){return ne.match(er)||[]}function Gt(ne){return ne.match(Pl)||[]}var Pt=function ne(le){le=le==null?An:Ht.defaults(An.Object(),le,Ht.pick(An,Wr));var se=le.Array,Se=le.Date,Fe=le.Error,Ze=le.Function,Mt=le.Math,Xe=le.Object,Mn=le.RegExp,Kn=le.String,Tn=le.TypeError,fi=se.prototype,ri=Ze.prototype,ps=Xe.prototype,Kl=le["__core-js_shared__"],Zl=ri.toString,Rt=ps.hasOwnProperty,JA=0,J0=function(){var r=/[^.]+$/.exec(Kl&&Kl.keys&&Kl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ql=ps.toString,eM=Zl.call(Xe),tM=An._,nM=Mn("^"+Zl.call(Rt).replace(Qi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xl=zl?le.Buffer:e,Gr=le.Symbol,Jl=le.Uint8Array,ev=Xl?Xl.allocUnsafe:e,ec=_e(Xe.getPrototypeOf,Xe),tv=Xe.create,nv=ps.propertyIsEnumerable,tc=fi.splice,iv=Gr?Gr.isConcatSpreadable:e,ma=Gr?Gr.iterator:e,Co=Gr?Gr.toStringTag:e,nc=function(){try{var r=Lo(Xe,"defineProperty");return r({},"",{}),r}catch{}}(),iM=le.clearTimeout!==An.clearTimeout&&le.clearTimeout,rM=Se&&Se.now!==An.Date.now&&Se.now,oM=le.setTimeout!==An.setTimeout&&le.setTimeout,ic=Mt.ceil,rc=Mt.floor,Jh=Xe.getOwnPropertySymbols,sM=Xl?Xl.isBuffer:e,rv=le.isFinite,aM=fi.join,lM=_e(Xe.keys,Xe),En=Mt.max,Un=Mt.min,cM=Se.now,uM=le.parseInt,ov=Mt.random,hM=fi.reverse,ed=Lo(le,"DataView"),va=Lo(le,"Map"),td=Lo(le,"Promise"),fs=Lo(le,"Set"),ya=Lo(le,"WeakMap"),wa=Lo(Xe,"create"),oc=ya&&new ya,gs={},dM=Ro(ed),pM=Ro(va),fM=Ro(td),gM=Ro(fs),mM=Ro(ya),sc=Gr?Gr.prototype:e,ba=sc?sc.valueOf:e,sv=sc?sc.toString:e;function j(r){if(on(r)&&!Je(r)&&!(r instanceof wt)){if(r instanceof Ci)return r;if(Rt.call(r,"__wrapped__"))return ay(r)}return new Ci(r)}var ms=function(){function r(){}return function(d){if(!Jt(d))return{};if(tv)return tv(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function ac(){}function Ci(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}j.templateSettings={escape:Uh,evaluate:Vh,interpolate:He,variable:"",imports:{_:j}},j.prototype=ac.prototype,j.prototype.constructor=j,Ci.prototype=ms(ac.prototype),Ci.prototype.constructor=Ci;function wt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function vM(){var r=new wt(this.__wrapped__);return r.__actions__=oi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=oi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=oi(this.__views__),r}function yM(){if(this.__filtered__){var r=new wt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function wM(){var r=this.__wrapped__.value(),d=this.__dir__,C=Je(r),D=d<0,B=C?r.length:0,U=LT(0,B,this.__views__),Z=U.start,ee=U.end,re=ee-Z,pe=D?ee:Z-1,ge=this.__iteratees__,ye=ge.length,Ae=0,Oe=Un(re,this.__takeCount__);if(!C||!D&&B==re&&Oe==re)return Ev(r,this.__actions__);var Ue=[];e:for(;re--&&Ae<Oe;){pe+=d;for(var lt=-1,Ve=r[pe];++lt<ye;){var mt=ge[lt],bt=mt.iteratee,vi=mt.type,Xn=bt(Ve);if(vi==R)Ve=Xn;else if(!Xn){if(vi==S)continue e;break e}}Ue[Ae++]=Ve}return Ue}wt.prototype=ms(ac.prototype),wt.prototype.constructor=wt;function Ao(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function bM(){this.__data__=wa?wa(null):{},this.size=0}function xM(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function _M(r){var d=this.__data__;if(wa){var C=d[r];return C===h?e:C}return Rt.call(d,r)?d[r]:e}function kM(r){var d=this.__data__;return wa?d[r]!==e:Rt.call(d,r)}function $M(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=wa&&d===e?h:d,this}Ao.prototype.clear=bM,Ao.prototype.delete=xM,Ao.prototype.get=_M,Ao.prototype.has=kM,Ao.prototype.set=$M;function yr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function SM(){this.__data__=[],this.size=0}function CM(r){var d=this.__data__,C=lc(d,r);if(C<0)return!1;var D=d.length-1;return C==D?d.pop():tc.call(d,C,1),--this.size,!0}function AM(r){var d=this.__data__,C=lc(d,r);return C<0?e:d[C][1]}function MM(r){return lc(this.__data__,r)>-1}function TM(r,d){var C=this.__data__,D=lc(C,r);return D<0?(++this.size,C.push([r,d])):C[D][1]=d,this}yr.prototype.clear=SM,yr.prototype.delete=CM,yr.prototype.get=AM,yr.prototype.has=MM,yr.prototype.set=TM;function wr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function EM(){this.size=0,this.__data__={hash:new Ao,map:new(va||yr),string:new Ao}}function LM(r){var d=bc(this,r).delete(r);return this.size-=d?1:0,d}function RM(r){return bc(this,r).get(r)}function IM(r){return bc(this,r).has(r)}function OM(r,d){var C=bc(this,r),D=C.size;return C.set(r,d),this.size+=C.size==D?0:1,this}wr.prototype.clear=EM,wr.prototype.delete=LM,wr.prototype.get=RM,wr.prototype.has=IM,wr.prototype.set=OM;function Mo(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new wr;++d<C;)this.add(r[d])}function DM(r){return this.__data__.set(r,h),this}function NM(r){return this.__data__.has(r)}Mo.prototype.add=Mo.prototype.push=DM,Mo.prototype.has=NM;function Pi(r){var d=this.__data__=new yr(r);this.size=d.size}function FM(){this.__data__=new yr,this.size=0}function PM(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function HM(r){return this.__data__.get(r)}function BM(r){return this.__data__.has(r)}function zM(r,d){var C=this.__data__;if(C instanceof yr){var D=C.__data__;if(!va||D.length<m-1)return D.push([r,d]),this.size=++C.size,this;C=this.__data__=new wr(D)}return C.set(r,d),this.size=C.size,this}Pi.prototype.clear=FM,Pi.prototype.delete=PM,Pi.prototype.get=HM,Pi.prototype.has=BM,Pi.prototype.set=zM;function av(r,d){var C=Je(r),D=!C&&Io(r),B=!C&&!D&&Xr(r),U=!C&&!D&&!B&&bs(r),Z=C||D||B||U,ee=Z?rn(r.length,Kn):[],re=ee.length;for(var pe in r)(d||Rt.call(r,pe))&&!(Z&&(pe=="length"||B&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||kr(pe,re)))&&ee.push(pe);return ee}function lv(r){var d=r.length;return d?r[dd(0,d-1)]:e}function jM(r,d){return xc(oi(r),To(d,0,r.length))}function WM(r){return xc(oi(r))}function nd(r,d,C){(C!==e&&!Hi(r[d],C)||C===e&&!(d in r))&&br(r,d,C)}function xa(r,d,C){var D=r[d];(!(Rt.call(r,d)&&Hi(D,C))||C===e&&!(d in r))&&br(r,d,C)}function lc(r,d){for(var C=r.length;C--;)if(Hi(r[C][0],d))return C;return-1}function UM(r,d,C,D){return Yr(r,function(B,U,Z){d(D,B,C(B),Z)}),D}function cv(r,d){return r&&rr(d,In(d),r)}function VM(r,d){return r&&rr(d,ai(d),r)}function br(r,d,C){d=="__proto__"&&nc?nc(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function id(r,d){for(var C=-1,D=d.length,B=se(D),U=r==null;++C<D;)B[C]=U?e:Fd(r,d[C]);return B}function To(r,d,C){return r===r&&(C!==e&&(r=r<=C?r:C),d!==e&&(r=r>=d?r:d)),r}function Ai(r,d,C,D,B,U){var Z,ee=d&c,re=d&a,pe=d&l;if(C&&(Z=B?C(r,D,B,U):C(r)),Z!==e)return Z;if(!Jt(r))return r;var ge=Je(r);if(ge){if(Z=IT(r),!ee)return oi(r,Z)}else{var ye=Vn(r),Ae=ye==at||ye==Bt;if(Xr(r))return Iv(r,ee);if(ye==Nt||ye==ie||Ae&&!B){if(Z=re||Ae?{}:Xv(r),!ee)return re?_T(r,VM(Z,r)):xT(r,cv(Z,r))}else{if(!Be[ye])return B?r:{};Z=OT(r,ye,ee)}}U||(U=new Pi);var Oe=U.get(r);if(Oe)return Oe;U.set(r,Z),Ay(r)?r.forEach(function(Ve){Z.add(Ai(Ve,d,C,Ve,r,U))}):Sy(r)&&r.forEach(function(Ve,mt){Z.set(mt,Ai(Ve,d,C,mt,r,U))});var Ue=pe?re?kd:_d:re?ai:In,lt=ge?e:Ue(r);return Yn(lt||r,function(Ve,mt){lt&&(mt=Ve,Ve=r[mt]),xa(Z,mt,Ai(Ve,d,C,mt,r,U))}),Z}function qM(r){var d=In(r);return function(C){return uv(C,r,d)}}function uv(r,d,C){var D=C.length;if(r==null)return!D;for(r=Xe(r);D--;){var B=C[D],U=d[B],Z=r[B];if(Z===e&&!(B in r)||!U(Z))return!1}return!0}function hv(r,d,C){if(typeof r!="function")throw new Tn(v);return Ma(function(){r.apply(e,C)},d)}function _a(r,d,C,D){var B=-1,U=cs,Z=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=jt(d,Wn(C))),D?(U=_o,Z=!1):d.length>=m&&(U=Fi,Z=!1,d=new Mo(d));e:for(;++B<ee;){var ge=r[B],ye=C==null?ge:C(ge);if(ge=D||ge!==0?ge:0,Z&&ye===ye){for(var Ae=pe;Ae--;)if(d[Ae]===ye)continue e;re.push(ge)}else U(d,ye,D)||re.push(ge)}return re}var Yr=Pv(ir),dv=Pv(od,!0);function GM(r,d){var C=!0;return Yr(r,function(D,B,U){return C=!!d(D,B,U),C}),C}function cc(r,d,C){for(var D=-1,B=r.length;++D<B;){var U=r[D],Z=d(U);if(Z!=null&&(ee===e?Z===Z&&!mi(Z):C(Z,ee)))var ee=Z,re=U}return re}function YM(r,d,C,D){var B=r.length;for(C=st(C),C<0&&(C=-C>B?0:B+C),D=D===e||D>B?B:st(D),D<0&&(D+=B),D=C>D?0:Ty(D);C<D;)r[C++]=d;return r}function pv(r,d){var C=[];return Yr(r,function(D,B,U){d(D,B,U)&&C.push(D)}),C}function On(r,d,C,D,B){var U=-1,Z=r.length;for(C||(C=NT),B||(B=[]);++U<Z;){var ee=r[U];d>0&&C(ee)?d>1?On(ee,d-1,C,D,B):jn(B,ee):D||(B[B.length]=ee)}return B}var rd=Hv(),fv=Hv(!0);function ir(r,d){return r&&rd(r,d,In)}function od(r,d){return r&&fv(r,d,In)}function uc(r,d){return ii(d,function(C){return $r(r[C])})}function Eo(r,d){d=Zr(d,r);for(var C=0,D=d.length;r!=null&&C<D;)r=r[or(d[C++])];return C&&C==D?r:e}function gv(r,d,C){var D=d(r);return Je(r)?D:jn(D,C(r))}function Zn(r){return r==null?r===e?nn:cn:Co&&Co in Xe(r)?ET(r):WT(r)}function sd(r,d){return r>d}function KM(r,d){return r!=null&&Rt.call(r,d)}function ZM(r,d){return r!=null&&d in Xe(r)}function QM(r,d,C){return r>=Un(d,C)&&r<En(d,C)}function ad(r,d,C){for(var D=C?_o:cs,B=r[0].length,U=r.length,Z=U,ee=se(U),re=1/0,pe=[];Z--;){var ge=r[Z];Z&&d&&(ge=jt(ge,Wn(d))),re=Un(ge.length,re),ee[Z]=!C&&(d||B>=120&&ge.length>=120)?new Mo(Z&&ge):e}ge=r[0];var ye=-1,Ae=ee[0];e:for(;++ye<B&&pe.length<re;){var Oe=ge[ye],Ue=d?d(Oe):Oe;if(Oe=C||Oe!==0?Oe:0,!(Ae?Fi(Ae,Ue):D(pe,Ue,C))){for(Z=U;--Z;){var lt=ee[Z];if(!(lt?Fi(lt,Ue):D(r[Z],Ue,C)))continue e}Ae&&Ae.push(Ue),pe.push(Oe)}}return pe}function XM(r,d,C,D){return ir(r,function(B,U,Z){d(D,C(B),U,Z)}),D}function ka(r,d,C){d=Zr(d,r),r=ny(r,d);var D=r==null?r:r[or(Ti(d))];return D==null?e:qt(D,r,C)}function mv(r){return on(r)&&Zn(r)==ie}function JM(r){return on(r)&&Zn(r)==Me}function eT(r){return on(r)&&Zn(r)==we}function $a(r,d,C,D,B){return r===d?!0:r==null||d==null||!on(r)&&!on(d)?r!==r&&d!==d:tT(r,d,C,D,$a,B)}function tT(r,d,C,D,B,U){var Z=Je(r),ee=Je(d),re=Z?X:Vn(r),pe=ee?X:Vn(d);re=re==ie?Nt:re,pe=pe==ie?Nt:pe;var ge=re==Nt,ye=pe==Nt,Ae=re==pe;if(Ae&&Xr(r)){if(!Xr(d))return!1;Z=!0,ge=!1}if(Ae&&!ge)return U||(U=new Pi),Z||bs(r)?Kv(r,d,C,D,B,U):MT(r,d,re,C,D,B,U);if(!(C&o)){var Oe=ge&&Rt.call(r,"__wrapped__"),Ue=ye&&Rt.call(d,"__wrapped__");if(Oe||Ue){var lt=Oe?r.value():r,Ve=Ue?d.value():d;return U||(U=new Pi),B(lt,Ve,C,D,U)}}return Ae?(U||(U=new Pi),TT(r,d,C,D,B,U)):!1}function nT(r){return on(r)&&Vn(r)==dt}function ld(r,d,C,D){var B=C.length,U=B,Z=!D;if(r==null)return!U;for(r=Xe(r);B--;){var ee=C[B];if(Z&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++B<U;){ee=C[B];var re=ee[0],pe=r[re],ge=ee[1];if(Z&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ye=new Pi;if(D)var Ae=D(pe,ge,re,r,d,ye);if(!(Ae===e?$a(ge,pe,o|u,D,ye):Ae))return!1}}return!0}function vv(r){if(!Jt(r)||PT(r))return!1;var d=$r(r)?nM:Sn;return d.test(Ro(r))}function iT(r){return on(r)&&Zn(r)==$n}function rT(r){return on(r)&&Vn(r)==tn}function oT(r){return on(r)&&Ac(r.length)&&!!It[Zn(r)]}function yv(r){return typeof r=="function"?r:r==null?li:typeof r=="object"?Je(r)?xv(r[0],r[1]):bv(r):By(r)}function cd(r){if(!Aa(r))return lM(r);var d=[];for(var C in Xe(r))Rt.call(r,C)&&C!="constructor"&&d.push(C);return d}function sT(r){if(!Jt(r))return jT(r);var d=Aa(r),C=[];for(var D in r)D=="constructor"&&(d||!Rt.call(r,D))||C.push(D);return C}function ud(r,d){return r<d}function wv(r,d){var C=-1,D=si(r)?se(r.length):[];return Yr(r,function(B,U,Z){D[++C]=d(B,U,Z)}),D}function bv(r){var d=Sd(r);return d.length==1&&d[0][2]?ey(d[0][0],d[0][1]):function(C){return C===r||ld(C,r,d)}}function xv(r,d){return Ad(r)&&Jv(d)?ey(or(r),d):function(C){var D=Fd(C,r);return D===e&&D===d?Pd(C,r):$a(d,D,o|u)}}function hc(r,d,C,D,B){r!==d&&rd(d,function(U,Z){if(B||(B=new Pi),Jt(U))aT(r,d,Z,C,hc,D,B);else{var ee=D?D(Td(r,Z),U,Z+"",r,d,B):e;ee===e&&(ee=U),nd(r,Z,ee)}},ai)}function aT(r,d,C,D,B,U,Z){var ee=Td(r,C),re=Td(d,C),pe=Z.get(re);if(pe){nd(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Z):e,ye=ge===e;if(ye){var Ae=Je(re),Oe=!Ae&&Xr(re),Ue=!Ae&&!Oe&&bs(re);ge=re,Ae||Oe||Ue?Je(ee)?ge=ee:un(ee)?ge=oi(ee):Oe?(ye=!1,ge=Iv(re,!0)):Ue?(ye=!1,ge=Ov(re,!0)):ge=[]:Ta(re)||Io(re)?(ge=ee,Io(ee)?ge=Ey(ee):(!Jt(ee)||$r(ee))&&(ge=Xv(re))):ye=!1}ye&&(Z.set(re,ge),B(ge,re,D,U,Z),Z.delete(re)),nd(r,C,ge)}function _v(r,d){var C=r.length;if(C)return d+=d<0?C:0,kr(d,C)?r[d]:e}function kv(r,d,C){d.length?d=jt(d,function(U){return Je(U)?function(Z){return Eo(Z,U.length===1?U[0]:U)}:U}):d=[li];var D=-1;d=jt(d,Wn(je()));var B=wv(r,function(U,Z,ee){var re=jt(d,function(pe){return pe(U)});return{criteria:re,index:++D,value:U}});return Vr(B,function(U,Z){return bT(U,Z,C)})}function lT(r,d){return $v(r,d,function(C,D){return Pd(r,D)})}function $v(r,d,C){for(var D=-1,B=d.length,U={};++D<B;){var Z=d[D],ee=Eo(r,Z);C(ee,Z)&&Sa(U,Zr(Z,r),ee)}return U}function cT(r){return function(d){return Eo(d,r)}}function hd(r,d,C,D){var B=D?Vl:vr,U=-1,Z=d.length,ee=r;for(r===d&&(d=oi(d)),C&&(ee=jt(r,Wn(C)));++U<Z;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=B(ee,ge,re,D))>-1;)ee!==r&&tc.call(ee,re,1),tc.call(r,re,1);return r}function Sv(r,d){for(var C=r?d.length:0,D=C-1;C--;){var B=d[C];if(C==D||B!==U){var U=B;kr(B)?tc.call(r,B,1):gd(r,B)}}return r}function dd(r,d){return r+rc(ov()*(d-r+1))}function uT(r,d,C,D){for(var B=-1,U=En(ic((d-r)/(C||1)),0),Z=se(U);U--;)Z[D?U:++B]=r,r+=C;return Z}function pd(r,d){var C="";if(!r||d<1||d>H)return C;do d%2&&(C+=r),d=rc(d/2),d&&(r+=r);while(d);return C}function ht(r,d){return Ed(ty(r,d,li),r+"")}function hT(r){return lv(xs(r))}function dT(r,d){var C=xs(r);return xc(C,To(d,0,C.length))}function Sa(r,d,C,D){if(!Jt(r))return r;d=Zr(d,r);for(var B=-1,U=d.length,Z=U-1,ee=r;ee!=null&&++B<U;){var re=or(d[B]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(B!=Z){var ge=ee[re];pe=D?D(ge,re,ee):e,pe===e&&(pe=Jt(ge)?ge:kr(d[B+1])?[]:{})}xa(ee,re,pe),ee=ee[re]}return r}var Cv=oc?function(r,d){return oc.set(r,d),r}:li,pT=nc?function(r,d){return nc(r,"toString",{configurable:!0,enumerable:!1,value:Bd(d),writable:!0})}:li;function fT(r){return xc(xs(r))}function Mi(r,d,C){var D=-1,B=r.length;d<0&&(d=-d>B?0:B+d),C=C>B?B:C,C<0&&(C+=B),B=d>C?0:C-d>>>0,d>>>=0;for(var U=se(B);++D<B;)U[D]=r[D+d];return U}function gT(r,d){var C;return Yr(r,function(D,B,U){return C=d(D,B,U),!C}),!!C}function dc(r,d,C){var D=0,B=r==null?D:r.length;if(typeof d=="number"&&d===d&&B<=G){for(;D<B;){var U=D+B>>>1,Z=r[U];Z!==null&&!mi(Z)&&(C?Z<=d:Z<d)?D=U+1:B=U}return B}return fd(r,d,li,C)}function fd(r,d,C,D){var B=0,U=r==null?0:r.length;if(U===0)return 0;d=C(d);for(var Z=d!==d,ee=d===null,re=mi(d),pe=d===e;B<U;){var ge=rc((B+U)/2),ye=C(r[ge]),Ae=ye!==e,Oe=ye===null,Ue=ye===ye,lt=mi(ye);if(Z)var Ve=D||Ue;else pe?Ve=Ue&&(D||Ae):ee?Ve=Ue&&Ae&&(D||!Oe):re?Ve=Ue&&Ae&&!Oe&&(D||!lt):Oe||lt?Ve=!1:Ve=D?ye<=d:ye<d;Ve?B=ge+1:U=ge}return Un(U,J)}function Av(r,d){for(var C=-1,D=r.length,B=0,U=[];++C<D;){var Z=r[C],ee=d?d(Z):Z;if(!C||!Hi(ee,re)){var re=ee;U[B++]=Z===0?0:Z}}return U}function Mv(r){return typeof r=="number"?r:mi(r)?V:+r}function gi(r){if(typeof r=="string")return r;if(Je(r))return jt(r,gi)+"";if(mi(r))return sv?sv.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Kr(r,d,C){var D=-1,B=cs,U=r.length,Z=!0,ee=[],re=ee;if(C)Z=!1,B=_o;else if(U>=m){var pe=d?null:CT(r);if(pe)return Ce(pe);Z=!1,B=Fi,re=new Mo}else re=d?[]:ee;e:for(;++D<U;){var ge=r[D],ye=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Z&&ye===ye){for(var Ae=re.length;Ae--;)if(re[Ae]===ye)continue e;d&&re.push(ye),ee.push(ge)}else B(re,ye,C)||(re!==ee&&re.push(ye),ee.push(ge))}return ee}function gd(r,d){return d=Zr(d,r),r=ny(r,d),r==null||delete r[or(Ti(d))]}function Tv(r,d,C,D){return Sa(r,d,C(Eo(r,d)),D)}function pc(r,d,C,D){for(var B=r.length,U=D?B:-1;(D?U--:++U<B)&&d(r[U],U,r););return C?Mi(r,D?0:U,D?U+1:B):Mi(r,D?U+1:0,D?B:U)}function Ev(r,d){var C=r;return C instanceof wt&&(C=C.value()),Si(d,function(D,B){return B.func.apply(B.thisArg,jn([D],B.args))},C)}function md(r,d,C){var D=r.length;if(D<2)return D?Kr(r[0]):[];for(var B=-1,U=se(D);++B<D;)for(var Z=r[B],ee=-1;++ee<D;)ee!=B&&(U[B]=_a(U[B]||Z,r[ee],d,C));return Kr(On(U,1),d,C)}function Lv(r,d,C){for(var D=-1,B=r.length,U=d.length,Z={};++D<B;){var ee=D<U?d[D]:e;C(Z,r[D],ee)}return Z}function vd(r){return un(r)?r:[]}function yd(r){return typeof r=="function"?r:li}function Zr(r,d){return Je(r)?r:Ad(r,d)?[r]:sy(Tt(r))}var mT=ht;function Qr(r,d,C){var D=r.length;return C=C===e?D:C,!d&&C>=D?r:Mi(r,d,C)}var Rv=iM||function(r){return An.clearTimeout(r)};function Iv(r,d){if(d)return r.slice();var C=r.length,D=ev?ev(C):new r.constructor(C);return r.copy(D),D}function wd(r){var d=new r.constructor(r.byteLength);return new Jl(d).set(new Jl(r)),d}function vT(r,d){var C=d?wd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function yT(r){var d=new r.constructor(r.source,Nr.exec(r));return d.lastIndex=r.lastIndex,d}function wT(r){return ba?Xe(ba.call(r)):{}}function Ov(r,d){var C=d?wd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function Dv(r,d){if(r!==d){var C=r!==e,D=r===null,B=r===r,U=mi(r),Z=d!==e,ee=d===null,re=d===d,pe=mi(d);if(!ee&&!pe&&!U&&r>d||U&&Z&&re&&!ee&&!pe||D&&Z&&re||!C&&re||!B)return 1;if(!D&&!U&&!pe&&r<d||pe&&C&&B&&!D&&!U||ee&&C&&B||!Z&&B||!re)return-1}return 0}function bT(r,d,C){for(var D=-1,B=r.criteria,U=d.criteria,Z=B.length,ee=C.length;++D<Z;){var re=Dv(B[D],U[D]);if(re){if(D>=ee)return re;var pe=C[D];return re*(pe=="desc"?-1:1)}}return r.index-d.index}function Nv(r,d,C,D){for(var B=-1,U=r.length,Z=C.length,ee=-1,re=d.length,pe=En(U-Z,0),ge=se(re+pe),ye=!D;++ee<re;)ge[ee]=d[ee];for(;++B<Z;)(ye||B<U)&&(ge[C[B]]=r[B]);for(;pe--;)ge[ee++]=r[B++];return ge}function Fv(r,d,C,D){for(var B=-1,U=r.length,Z=-1,ee=C.length,re=-1,pe=d.length,ge=En(U-ee,0),ye=se(ge+pe),Ae=!D;++B<ge;)ye[B]=r[B];for(var Oe=B;++re<pe;)ye[Oe+re]=d[re];for(;++Z<ee;)(Ae||B<U)&&(ye[Oe+C[Z]]=r[B++]);return ye}function oi(r,d){var C=-1,D=r.length;for(d||(d=se(D));++C<D;)d[C]=r[C];return d}function rr(r,d,C,D){var B=!C;C||(C={});for(var U=-1,Z=d.length;++U<Z;){var ee=d[U],re=D?D(C[ee],r[ee],ee,C,r):e;re===e&&(re=r[ee]),B?br(C,ee,re):xa(C,ee,re)}return C}function xT(r,d){return rr(r,Cd(r),d)}function _T(r,d){return rr(r,Zv(r),d)}function fc(r,d){return function(C,D){var B=Je(C)?Xh:UM,U=d?d():{};return B(C,r,je(D,2),U)}}function vs(r){return ht(function(d,C){var D=-1,B=C.length,U=B>1?C[B-1]:e,Z=B>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(B--,U):e,Z&&Qn(C[0],C[1],Z)&&(U=B<3?e:U,B=1),d=Xe(d);++D<B;){var ee=C[D];ee&&r(d,ee,D,U)}return d})}function Pv(r,d){return function(C,D){if(C==null)return C;if(!si(C))return r(C,D);for(var B=C.length,U=d?B:-1,Z=Xe(C);(d?U--:++U<B)&&D(Z[U],U,Z)!==!1;);return C}}function Hv(r){return function(d,C,D){for(var B=-1,U=Xe(d),Z=D(d),ee=Z.length;ee--;){var re=Z[r?ee:++B];if(C(U[re],re,U)===!1)break}return d}}function kT(r,d,C){var D=d&g,B=Ca(r);function U(){var Z=this&&this!==An&&this instanceof U?B:r;return Z.apply(D?C:this,arguments)}return U}function Bv(r){return function(d){d=Tt(d);var C=te(d)?Ge(d):e,D=C?C[0]:d.charAt(0),B=C?Qr(C,1).join(""):d.slice(1);return D[r]()+B}}function ys(r){return function(d){return Si(Py(Fy(d).replace(sa,"")),r,"")}}function Ca(r){return function(){var d=arguments;switch(d.length){case 0:return new r;case 1:return new r(d[0]);case 2:return new r(d[0],d[1]);case 3:return new r(d[0],d[1],d[2]);case 4:return new r(d[0],d[1],d[2],d[3]);case 5:return new r(d[0],d[1],d[2],d[3],d[4]);case 6:return new r(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new r(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var C=ms(r.prototype),D=r.apply(C,d);return Jt(D)?D:C}}function $T(r,d,C){var D=Ca(r);function B(){for(var U=arguments.length,Z=se(U),ee=U,re=ws(B);ee--;)Z[ee]=arguments[ee];var pe=U<3&&Z[0]!==re&&Z[U-1]!==re?[]:ke(Z,re);if(U-=pe.length,U<C)return Vv(r,d,gc,B.placeholder,e,Z,pe,e,e,C-U);var ge=this&&this!==An&&this instanceof B?D:r;return qt(ge,this,Z)}return B}function zv(r){return function(d,C,D){var B=Xe(d);if(!si(d)){var U=je(C,3);d=In(d),C=function(ee){return U(B[ee],ee,B)}}var Z=r(d,C,D);return Z>-1?B[U?d[Z]:Z]:e}}function jv(r){return _r(function(d){var C=d.length,D=C,B=Ci.prototype.thru;for(r&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new Tn(v);if(B&&!Z&&wc(U)=="wrapper")var Z=new Ci([],!0)}for(D=Z?D:C;++D<C;){U=d[D];var ee=wc(U),re=ee=="wrapper"?$d(U):e;re&&Md(re[0])&&re[1]==(M|L|k|E)&&!re[4].length&&re[9]==1?Z=Z[wc(re[0])].apply(Z,re[3]):Z=U.length==1&&Md(U)?Z[ee]():Z.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Z&&pe.length==1&&Je(ge))return Z.plant(ge).value();for(var ye=0,Ae=C?d[ye].apply(this,pe):ge;++ye<C;)Ae=d[ye].call(this,Ae);return Ae}})}function gc(r,d,C,D,B,U,Z,ee,re,pe){var ge=d&M,ye=d&g,Ae=d&y,Oe=d&(L|A),Ue=d&I,lt=Ae?e:Ca(r);function Ve(){for(var mt=arguments.length,bt=se(mt),vi=mt;vi--;)bt[vi]=arguments[vi];if(Oe)var Xn=ws(Ve),yi=ga(bt,Xn);if(D&&(bt=Nv(bt,D,B,Oe)),U&&(bt=Fv(bt,U,Z,Oe)),mt-=yi,Oe&&mt<pe){var hn=ke(bt,Xn);return Vv(r,d,gc,Ve.placeholder,C,bt,hn,ee,re,pe-mt)}var Bi=ye?C:this,Cr=Ae?Bi[r]:r;return mt=bt.length,ee?bt=UT(bt,ee):Ue&&mt>1&&bt.reverse(),ge&&re<mt&&(bt.length=re),this&&this!==An&&this instanceof Ve&&(Cr=lt||Ca(Cr)),Cr.apply(Bi,bt)}return Ve}function Wv(r,d){return function(C,D){return XM(C,r,d(D),{})}}function mc(r,d){return function(C,D){var B;if(C===e&&D===e)return d;if(C!==e&&(B=C),D!==e){if(B===e)return D;typeof C=="string"||typeof D=="string"?(C=gi(C),D=gi(D)):(C=Mv(C),D=Mv(D)),B=r(C,D)}return B}}function bd(r){return _r(function(d){return d=jt(d,Wn(je())),ht(function(C){var D=this;return r(d,function(B){return qt(B,D,C)})})})}function vc(r,d){d=d===e?" ":gi(d);var C=d.length;if(C<2)return C?pd(d,r):d;var D=pd(d,ic(r/rt(d)));return te(d)?Qr(Ge(D),0,r).join(""):D.slice(0,r)}function ST(r,d,C,D){var B=d&g,U=Ca(r);function Z(){for(var ee=-1,re=arguments.length,pe=-1,ge=D.length,ye=se(ge+re),Ae=this&&this!==An&&this instanceof Z?U:r;++pe<ge;)ye[pe]=D[pe];for(;re--;)ye[pe++]=arguments[++ee];return qt(Ae,B?C:this,ye)}return Z}function Uv(r){return function(d,C,D){return D&&typeof D!="number"&&Qn(d,C,D)&&(C=D=e),d=Sr(d),C===e?(C=d,d=0):C=Sr(C),D=D===e?d<C?1:-1:Sr(D),uT(d,C,D,r)}}function yc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Ei(d),C=Ei(C)),r(d,C)}}function Vv(r,d,C,D,B,U,Z,ee,re,pe){var ge=d&L,ye=ge?Z:e,Ae=ge?e:Z,Oe=ge?U:e,Ue=ge?e:U;d|=ge?k:x,d&=~(ge?x:k),d&b||(d&=~(g|y));var lt=[r,d,B,Oe,ye,Ue,Ae,ee,re,pe],Ve=C.apply(e,lt);return Md(r)&&iy(Ve,lt),Ve.placeholder=D,ry(Ve,r,d)}function xd(r){var d=Mt[r];return function(C,D){if(C=Ei(C),D=D==null?0:Un(st(D),292),D&&rv(C)){var B=(Tt(C)+"e").split("e"),U=d(B[0]+"e"+(+B[1]+D));return B=(Tt(U)+"e").split("e"),+(B[0]+"e"+(+B[1]-D))}return d(C)}}var CT=fs&&1/Ce(new fs([,-0]))[1]==F?function(r){return new fs(r)}:Wd;function qv(r){return function(d){var C=Vn(d);return C==dt?be(d):C==tn?Ee(d):ql(d,r(d))}}function xr(r,d,C,D,B,U,Z,ee){var re=d&y;if(!re&&typeof r!="function")throw new Tn(v);var pe=D?D.length:0;if(pe||(d&=~(k|x),D=B=e),Z=Z===e?Z:En(st(Z),0),ee=ee===e?ee:st(ee),pe-=B?B.length:0,d&x){var ge=D,ye=B;D=B=e}var Ae=re?e:$d(r),Oe=[r,d,C,D,B,ge,ye,U,Z,ee];if(Ae&&zT(Oe,Ae),r=Oe[0],d=Oe[1],C=Oe[2],D=Oe[3],B=Oe[4],ee=Oe[9]=Oe[9]===e?re?0:r.length:En(Oe[9]-pe,0),!ee&&d&(L|A)&&(d&=~(L|A)),!d||d==g)var Ue=kT(r,d,C);else d==L||d==A?Ue=$T(r,d,ee):(d==k||d==(g|k))&&!B.length?Ue=ST(r,d,C,D):Ue=gc.apply(e,Oe);var lt=Ae?Cv:iy;return ry(lt(Ue,Oe),r,d)}function Gv(r,d,C,D){return r===e||Hi(r,ps[C])&&!Rt.call(D,C)?d:r}function Yv(r,d,C,D,B,U){return Jt(r)&&Jt(d)&&(U.set(d,r),hc(r,d,e,Yv,U),U.delete(d)),r}function AT(r){return Ta(r)?e:r}function Kv(r,d,C,D,B,U){var Z=C&o,ee=r.length,re=d.length;if(ee!=re&&!(Z&&re>ee))return!1;var pe=U.get(r),ge=U.get(d);if(pe&&ge)return pe==d&&ge==r;var ye=-1,Ae=!0,Oe=C&u?new Mo:e;for(U.set(r,d),U.set(d,r);++ye<ee;){var Ue=r[ye],lt=d[ye];if(D)var Ve=Z?D(lt,Ue,ye,d,r,U):D(Ue,lt,ye,r,d,U);if(Ve!==e){if(Ve)continue;Ae=!1;break}if(Oe){if(!us(d,function(mt,bt){if(!Fi(Oe,bt)&&(Ue===mt||B(Ue,mt,C,D,U)))return Oe.push(bt)})){Ae=!1;break}}else if(!(Ue===lt||B(Ue,lt,C,D,U))){Ae=!1;break}}return U.delete(r),U.delete(d),Ae}function MT(r,d,C,D,B,U,Z){switch(C){case Re:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Me:return!(r.byteLength!=d.byteLength||!U(new Jl(r),new Jl(d)));case ve:case we:case gt:return Hi(+r,+d);case $e:return r.name==d.name&&r.message==d.message;case $n:case Pe:return r==d+"";case dt:var ee=be;case tn:var re=D&o;if(ee||(ee=Ce),r.size!=d.size&&!re)return!1;var pe=Z.get(r);if(pe)return pe==d;D|=u,Z.set(r,d);var ge=Kv(ee(r),ee(d),D,B,U,Z);return Z.delete(r),ge;case ze:if(ba)return ba.call(r)==ba.call(d)}return!1}function TT(r,d,C,D,B,U){var Z=C&o,ee=_d(r),re=ee.length,pe=_d(d),ge=pe.length;if(re!=ge&&!Z)return!1;for(var ye=re;ye--;){var Ae=ee[ye];if(!(Z?Ae in d:Rt.call(d,Ae)))return!1}var Oe=U.get(r),Ue=U.get(d);if(Oe&&Ue)return Oe==d&&Ue==r;var lt=!0;U.set(r,d),U.set(d,r);for(var Ve=Z;++ye<re;){Ae=ee[ye];var mt=r[Ae],bt=d[Ae];if(D)var vi=Z?D(bt,mt,Ae,d,r,U):D(mt,bt,Ae,r,d,U);if(!(vi===e?mt===bt||B(mt,bt,C,D,U):vi)){lt=!1;break}Ve||(Ve=Ae=="constructor")}if(lt&&!Ve){var Xn=r.constructor,yi=d.constructor;Xn!=yi&&"constructor"in r&&"constructor"in d&&!(typeof Xn=="function"&&Xn instanceof Xn&&typeof yi=="function"&&yi instanceof yi)&&(lt=!1)}return U.delete(r),U.delete(d),lt}function _r(r){return Ed(ty(r,e,uy),r+"")}function _d(r){return gv(r,In,Cd)}function kd(r){return gv(r,ai,Zv)}var $d=oc?function(r){return oc.get(r)}:Wd;function wc(r){for(var d=r.name+"",C=gs[d],D=Rt.call(gs,d)?C.length:0;D--;){var B=C[D],U=B.func;if(U==null||U==r)return B.name}return d}function ws(r){var d=Rt.call(j,"placeholder")?j:r;return d.placeholder}function je(){var r=j.iteratee||zd;return r=r===zd?yv:r,arguments.length?r(arguments[0],arguments[1]):r}function bc(r,d){var C=r.__data__;return FT(d)?C[typeof d=="string"?"string":"hash"]:C.map}function Sd(r){for(var d=In(r),C=d.length;C--;){var D=d[C],B=r[D];d[C]=[D,B,Jv(B)]}return d}function Lo(r,d){var C=K(r,d);return vv(C)?C:e}function ET(r){var d=Rt.call(r,Co),C=r[Co];try{r[Co]=e;var D=!0}catch{}var B=Ql.call(r);return D&&(d?r[Co]=C:delete r[Co]),B}var Cd=Jh?function(r){return r==null?[]:(r=Xe(r),ii(Jh(r),function(d){return nv.call(r,d)}))}:Ud,Zv=Jh?function(r){for(var d=[];r;)jn(d,Cd(r)),r=ec(r);return d}:Ud,Vn=Zn;(ed&&Vn(new ed(new ArrayBuffer(1)))!=Re||va&&Vn(new va)!=dt||td&&Vn(td.resolve())!=Zt||fs&&Vn(new fs)!=tn||ya&&Vn(new ya)!=We)&&(Vn=function(r){var d=Zn(r),C=d==Nt?r.constructor:e,D=C?Ro(C):"";if(D)switch(D){case dM:return Re;case pM:return dt;case fM:return Zt;case gM:return tn;case mM:return We}return d});function LT(r,d,C){for(var D=-1,B=C.length;++D<B;){var U=C[D],Z=U.size;switch(U.type){case"drop":r+=Z;break;case"dropRight":d-=Z;break;case"take":d=Un(d,r+Z);break;case"takeRight":r=En(r,d-Z);break}}return{start:r,end:d}}function RT(r){var d=r.match(Ml);return d?d[1].split(Tl):[]}function Qv(r,d,C){d=Zr(d,r);for(var D=-1,B=d.length,U=!1;++D<B;){var Z=or(d[D]);if(!(U=r!=null&&C(r,Z)))break;r=r[Z]}return U||++D!=B?U:(B=r==null?0:r.length,!!B&&Ac(B)&&kr(Z,B)&&(Je(r)||Io(r)))}function IT(r){var d=r.length,C=new r.constructor(d);return d&&typeof r[0]=="string"&&Rt.call(r,"index")&&(C.index=r.index,C.input=r.input),C}function Xv(r){return typeof r.constructor=="function"&&!Aa(r)?ms(ec(r)):{}}function OT(r,d,C){var D=r.constructor;switch(d){case Me:return wd(r);case ve:case we:return new D(+r);case Re:return vT(r,C);case qe:case Ye:case pt:case ft:case ct:case ut:case it:case Ut:case Hn:return Ov(r,C);case dt:return new D;case gt:case Pe:return new D(r);case $n:return yT(r);case tn:return new D;case ze:return wT(r)}}function DT(r,d){var C=d.length;if(!C)return r;var D=C-1;return d[D]=(C>1?"& ":"")+d[D],d=d.join(C>2?", ":" "),r.replace(Dr,`{
1390
+ /* [wrapped with `+d+`] */
1391
+ `)}function NT(r){return Je(r)||Io(r)||!!(iv&&r&&r[iv])}function kr(r,d){var C=typeof r;return d=d??H,!!d&&(C=="number"||C!="symbol"&&vn.test(r))&&r>-1&&r%1==0&&r<d}function Qn(r,d,C){if(!Jt(C))return!1;var D=typeof d;return(D=="number"?si(C)&&kr(d,C.length):D=="string"&&d in C)?Hi(C[d],r):!1}function Ad(r,d){if(Je(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||mi(r)?!0:Ln.test(r)||!dr.test(r)||d!=null&&r in Xe(d)}function FT(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function Md(r){var d=wc(r),C=j[d];if(typeof C!="function"||!(d in wt.prototype))return!1;if(r===C)return!0;var D=$d(C);return!!D&&r===D[0]}function PT(r){return!!J0&&J0 in r}var HT=Kl?$r:Vd;function Aa(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||ps;return r===C}function Jv(r){return r===r&&!Jt(r)}function ey(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Xe(C))}}function BT(r){var d=Sc(r,function(D){return C.size===f&&C.clear(),D}),C=d.cache;return d}function zT(r,d){var C=r[1],D=d[1],B=C|D,U=B<(g|y|M),Z=D==M&&C==L||D==M&&C==E&&r[7].length<=d[8]||D==(M|E)&&d[7].length<=d[8]&&C==L;if(!(U||Z))return r;D&g&&(r[2]=d[2],B|=C&g?0:b);var ee=d[3];if(ee){var re=r[3];r[3]=re?Nv(re,ee,d[4]):ee,r[4]=re?ke(r[3],s):d[4]}return ee=d[5],ee&&(re=r[5],r[5]=re?Fv(re,ee,d[6]):ee,r[6]=re?ke(r[5],s):d[6]),ee=d[7],ee&&(r[7]=ee),D&M&&(r[8]=r[8]==null?d[8]:Un(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=B,r}function jT(r){var d=[];if(r!=null)for(var C in Xe(r))d.push(C);return d}function WT(r){return Ql.call(r)}function ty(r,d,C){return d=En(d===e?r.length-1:d,0),function(){for(var D=arguments,B=-1,U=En(D.length-d,0),Z=se(U);++B<U;)Z[B]=D[d+B];B=-1;for(var ee=se(d+1);++B<d;)ee[B]=D[B];return ee[d]=C(Z),qt(r,this,ee)}}function ny(r,d){return d.length<2?r:Eo(r,Mi(d,0,-1))}function UT(r,d){for(var C=r.length,D=Un(d.length,C),B=oi(r);D--;){var U=d[D];r[D]=kr(U,C)?B[U]:e}return r}function Td(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var iy=oy(Cv),Ma=oM||function(r,d){return An.setTimeout(r,d)},Ed=oy(pT);function ry(r,d,C){var D=d+"";return Ed(r,DT(D,VT(RT(D),C)))}function oy(r){var d=0,C=0;return function(){var D=cM(),B=_-(D-C);if(C=D,B>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function xc(r,d){var C=-1,D=r.length,B=D-1;for(d=d===e?D:d;++C<d;){var U=dd(C,B),Z=r[U];r[U]=r[C],r[C]=Z}return r.length=d,r}var sy=BT(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Zi,function(C,D,B,U){d.push(B?U.replace(pr,"$1"):D||C)}),d});function or(r){if(typeof r=="string"||mi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Ro(r){if(r!=null){try{return Zl.call(r)}catch{}try{return r+""}catch{}}return""}function VT(r,d){return Yn(Q,function(C){var D="_."+C[0];d&C[1]&&!cs(r,D)&&r.push(D)}),r.sort()}function ay(r){if(r instanceof wt)return r.clone();var d=new Ci(r.__wrapped__,r.__chain__);return d.__actions__=oi(r.__actions__),d.__index__=r.__index__,d.__values__=r.__values__,d}function qT(r,d,C){(C?Qn(r,d,C):d===e)?d=1:d=En(st(d),0);var D=r==null?0:r.length;if(!D||d<1)return[];for(var B=0,U=0,Z=se(ic(D/d));B<D;)Z[U++]=Mi(r,B,B+=d);return Z}function GT(r){for(var d=-1,C=r==null?0:r.length,D=0,B=[];++d<C;){var U=r[d];U&&(B[D++]=U)}return B}function YT(){var r=arguments.length;if(!r)return[];for(var d=se(r-1),C=arguments[0],D=r;D--;)d[D-1]=arguments[D];return jn(Je(C)?oi(C):[C],On(d,1))}var KT=ht(function(r,d){return un(r)?_a(r,On(d,1,un,!0)):[]}),ZT=ht(function(r,d){var C=Ti(d);return un(C)&&(C=e),un(r)?_a(r,On(d,1,un,!0),je(C,2)):[]}),QT=ht(function(r,d){var C=Ti(d);return un(C)&&(C=e),un(r)?_a(r,On(d,1,un,!0),e,C):[]});function XT(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),Mi(r,d<0?0:d,D)):[]}function JT(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),d=D-d,Mi(r,0,d<0?0:d)):[]}function eE(r,d){return r&&r.length?pc(r,je(d,3),!0,!0):[]}function tE(r,d){return r&&r.length?pc(r,je(d,3),!0):[]}function nE(r,d,C,D){var B=r==null?0:r.length;return B?(C&&typeof C!="number"&&Qn(r,d,C)&&(C=0,D=B),YM(r,d,C,D)):[]}function ly(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=C==null?0:st(C);return B<0&&(B=En(D+B,0)),$o(r,je(d,3),B)}function cy(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=D-1;return C!==e&&(B=st(C),B=C<0?En(D+B,0):Un(B,D-1)),$o(r,je(d,3),B,!0)}function uy(r){var d=r==null?0:r.length;return d?On(r,1):[]}function iE(r){var d=r==null?0:r.length;return d?On(r,F):[]}function rE(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:st(d),On(r,d)):[]}function oE(r){for(var d=-1,C=r==null?0:r.length,D={};++d<C;){var B=r[d];D[B[0]]=B[1]}return D}function hy(r){return r&&r.length?r[0]:e}function sE(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=C==null?0:st(C);return B<0&&(B=En(D+B,0)),vr(r,d,B)}function aE(r){var d=r==null?0:r.length;return d?Mi(r,0,-1):[]}var lE=ht(function(r){var d=jt(r,vd);return d.length&&d[0]===r[0]?ad(d):[]}),cE=ht(function(r){var d=Ti(r),C=jt(r,vd);return d===Ti(C)?d=e:C.pop(),C.length&&C[0]===r[0]?ad(C,je(d,2)):[]}),uE=ht(function(r){var d=Ti(r),C=jt(r,vd);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?ad(C,e,d):[]});function hE(r,d){return r==null?"":aM.call(r,d)}function Ti(r){var d=r==null?0:r.length;return d?r[d-1]:e}function dE(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=D;return C!==e&&(B=st(C),B=B<0?En(D+B,0):Un(B,D-1)),d===d?Lt(r,d,B):$o(r,ha,B,!0)}function pE(r,d){return r&&r.length?_v(r,st(d)):e}var fE=ht(dy);function dy(r,d){return r&&r.length&&d&&d.length?hd(r,d):r}function gE(r,d,C){return r&&r.length&&d&&d.length?hd(r,d,je(C,2)):r}function mE(r,d,C){return r&&r.length&&d&&d.length?hd(r,d,e,C):r}var vE=_r(function(r,d){var C=r==null?0:r.length,D=id(r,d);return Sv(r,jt(d,function(B){return kr(B,C)?+B:B}).sort(Dv)),D});function yE(r,d){var C=[];if(!(r&&r.length))return C;var D=-1,B=[],U=r.length;for(d=je(d,3);++D<U;){var Z=r[D];d(Z,D,r)&&(C.push(Z),B.push(D))}return Sv(r,B),C}function Ld(r){return r==null?r:hM.call(r)}function wE(r,d,C){var D=r==null?0:r.length;return D?(C&&typeof C!="number"&&Qn(r,d,C)?(d=0,C=D):(d=d==null?0:st(d),C=C===e?D:st(C)),Mi(r,d,C)):[]}function bE(r,d){return dc(r,d)}function xE(r,d,C){return fd(r,d,je(C,2))}function _E(r,d){var C=r==null?0:r.length;if(C){var D=dc(r,d);if(D<C&&Hi(r[D],d))return D}return-1}function kE(r,d){return dc(r,d,!0)}function $E(r,d,C){return fd(r,d,je(C,2),!0)}function SE(r,d){var C=r==null?0:r.length;if(C){var D=dc(r,d,!0)-1;if(Hi(r[D],d))return D}return-1}function CE(r){return r&&r.length?Av(r):[]}function AE(r,d){return r&&r.length?Av(r,je(d,2)):[]}function ME(r){var d=r==null?0:r.length;return d?Mi(r,1,d):[]}function TE(r,d,C){return r&&r.length?(d=C||d===e?1:st(d),Mi(r,0,d<0?0:d)):[]}function EE(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),d=D-d,Mi(r,d<0?0:d,D)):[]}function LE(r,d){return r&&r.length?pc(r,je(d,3),!1,!0):[]}function RE(r,d){return r&&r.length?pc(r,je(d,3)):[]}var IE=ht(function(r){return Kr(On(r,1,un,!0))}),OE=ht(function(r){var d=Ti(r);return un(d)&&(d=e),Kr(On(r,1,un,!0),je(d,2))}),DE=ht(function(r){var d=Ti(r);return d=typeof d=="function"?d:e,Kr(On(r,1,un,!0),e,d)});function NE(r){return r&&r.length?Kr(r):[]}function FE(r,d){return r&&r.length?Kr(r,je(d,2)):[]}function PE(r,d){return d=typeof d=="function"?d:e,r&&r.length?Kr(r,e,d):[]}function Rd(r){if(!(r&&r.length))return[];var d=0;return r=ii(r,function(C){if(un(C))return d=En(C.length,d),!0}),rn(d,function(C){return jt(r,pa(C))})}function py(r,d){if(!(r&&r.length))return[];var C=Rd(r);return d==null?C:jt(C,function(D){return qt(d,e,D)})}var HE=ht(function(r,d){return un(r)?_a(r,d):[]}),BE=ht(function(r){return md(ii(r,un))}),zE=ht(function(r){var d=Ti(r);return un(d)&&(d=e),md(ii(r,un),je(d,2))}),jE=ht(function(r){var d=Ti(r);return d=typeof d=="function"?d:e,md(ii(r,un),e,d)}),WE=ht(Rd);function UE(r,d){return Lv(r||[],d||[],xa)}function VE(r,d){return Lv(r||[],d||[],Sa)}var qE=ht(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,py(r,C)});function fy(r){var d=j(r);return d.__chain__=!0,d}function GE(r,d){return d(r),r}function _c(r,d){return d(r)}var YE=_r(function(r){var d=r.length,C=d?r[0]:0,D=this.__wrapped__,B=function(U){return id(U,r)};return d>1||this.__actions__.length||!(D instanceof wt)||!kr(C)?this.thru(B):(D=D.slice(C,+C+(d?1:0)),D.__actions__.push({func:_c,args:[B],thisArg:e}),new Ci(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function KE(){return fy(this)}function ZE(){return new Ci(this.value(),this.__chain__)}function QE(){this.__values__===e&&(this.__values__=My(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function XE(){return this}function JE(r){for(var d,C=this;C instanceof ac;){var D=ay(C);D.__index__=0,D.__values__=e,d?B.__wrapped__=D:d=D;var B=D;C=C.__wrapped__}return B.__wrapped__=r,d}function eL(){var r=this.__wrapped__;if(r instanceof wt){var d=r;return this.__actions__.length&&(d=new wt(this)),d=d.reverse(),d.__actions__.push({func:_c,args:[Ld],thisArg:e}),new Ci(d,this.__chain__)}return this.thru(Ld)}function tL(){return Ev(this.__wrapped__,this.__actions__)}var nL=fc(function(r,d,C){Rt.call(r,C)?++r[C]:br(r,C,1)});function iL(r,d,C){var D=Je(r)?Ur:GM;return C&&Qn(r,d,C)&&(d=e),D(r,je(d,3))}function rL(r,d){var C=Je(r)?ii:pv;return C(r,je(d,3))}var oL=zv(ly),sL=zv(cy);function aL(r,d){return On(kc(r,d),1)}function lL(r,d){return On(kc(r,d),F)}function cL(r,d,C){return C=C===e?1:st(C),On(kc(r,d),C)}function gy(r,d){var C=Je(r)?Yn:Yr;return C(r,je(d,3))}function my(r,d){var C=Je(r)?Ul:dv;return C(r,je(d,3))}var uL=fc(function(r,d,C){Rt.call(r,C)?r[C].push(d):br(r,C,[d])});function hL(r,d,C,D){r=si(r)?r:xs(r),C=C&&!D?st(C):0;var B=r.length;return C<0&&(C=En(B+C,0)),Mc(r)?C<=B&&r.indexOf(d,C)>-1:!!B&&vr(r,d,C)>-1}var dL=ht(function(r,d,C){var D=-1,B=typeof d=="function",U=si(r)?se(r.length):[];return Yr(r,function(Z){U[++D]=B?qt(d,Z,C):ka(Z,d,C)}),U}),pL=fc(function(r,d,C){br(r,C,d)});function kc(r,d){var C=Je(r)?jt:wv;return C(r,je(d,3))}function fL(r,d,C,D){return r==null?[]:(Je(d)||(d=d==null?[]:[d]),C=D?e:C,Je(C)||(C=C==null?[]:[C]),kv(r,d,C))}var gL=fc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function mL(r,d,C){var D=Je(r)?Si:fa,B=arguments.length<3;return D(r,je(d,4),C,B,Yr)}function vL(r,d,C){var D=Je(r)?ko:fa,B=arguments.length<3;return D(r,je(d,4),C,B,dv)}function yL(r,d){var C=Je(r)?ii:pv;return C(r,Cc(je(d,3)))}function wL(r){var d=Je(r)?lv:hT;return d(r)}function bL(r,d,C){(C?Qn(r,d,C):d===e)?d=1:d=st(d);var D=Je(r)?jM:dT;return D(r,d)}function xL(r){var d=Je(r)?WM:fT;return d(r)}function _L(r){if(r==null)return 0;if(si(r))return Mc(r)?rt(r):r.length;var d=Vn(r);return d==dt||d==tn?r.size:cd(r).length}function kL(r,d,C){var D=Je(r)?us:gT;return C&&Qn(r,d,C)&&(d=e),D(r,je(d,3))}var $L=ht(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Qn(r,d[0],d[1])?d=[]:C>2&&Qn(d[0],d[1],d[2])&&(d=[d[0]]),kv(r,On(d,1),[])}),$c=rM||function(){return An.Date.now()};function SL(r,d){if(typeof d!="function")throw new Tn(v);return r=st(r),function(){if(--r<1)return d.apply(this,arguments)}}function vy(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,xr(r,M,e,e,e,e,d)}function yy(r,d){var C;if(typeof d!="function")throw new Tn(v);return r=st(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Id=ht(function(r,d,C){var D=g;if(C.length){var B=ke(C,ws(Id));D|=k}return xr(r,D,d,C,B)}),wy=ht(function(r,d,C){var D=g|y;if(C.length){var B=ke(C,ws(wy));D|=k}return xr(d,D,r,C,B)});function by(r,d,C){d=C?e:d;var D=xr(r,L,e,e,e,e,e,d);return D.placeholder=by.placeholder,D}function xy(r,d,C){d=C?e:d;var D=xr(r,A,e,e,e,e,e,d);return D.placeholder=xy.placeholder,D}function _y(r,d,C){var D,B,U,Z,ee,re,pe=0,ge=!1,ye=!1,Ae=!0;if(typeof r!="function")throw new Tn(v);d=Ei(d)||0,Jt(C)&&(ge=!!C.leading,ye="maxWait"in C,U=ye?En(Ei(C.maxWait)||0,d):U,Ae="trailing"in C?!!C.trailing:Ae);function Oe(hn){var Bi=D,Cr=B;return D=B=e,pe=hn,Z=r.apply(Cr,Bi),Z}function Ue(hn){return pe=hn,ee=Ma(mt,d),ge?Oe(hn):Z}function lt(hn){var Bi=hn-re,Cr=hn-pe,zy=d-Bi;return ye?Un(zy,U-Cr):zy}function Ve(hn){var Bi=hn-re,Cr=hn-pe;return re===e||Bi>=d||Bi<0||ye&&Cr>=U}function mt(){var hn=$c();if(Ve(hn))return bt(hn);ee=Ma(mt,lt(hn))}function bt(hn){return ee=e,Ae&&D?Oe(hn):(D=B=e,Z)}function vi(){ee!==e&&Rv(ee),pe=0,D=re=B=ee=e}function Xn(){return ee===e?Z:bt($c())}function yi(){var hn=$c(),Bi=Ve(hn);if(D=arguments,B=this,re=hn,Bi){if(ee===e)return Ue(re);if(ye)return Rv(ee),ee=Ma(mt,d),Oe(re)}return ee===e&&(ee=Ma(mt,d)),Z}return yi.cancel=vi,yi.flush=Xn,yi}var CL=ht(function(r,d){return hv(r,1,d)}),AL=ht(function(r,d,C){return hv(r,Ei(d)||0,C)});function ML(r){return xr(r,I)}function Sc(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new Tn(v);var C=function(){var D=arguments,B=d?d.apply(this,D):D[0],U=C.cache;if(U.has(B))return U.get(B);var Z=r.apply(this,D);return C.cache=U.set(B,Z)||U,Z};return C.cache=new(Sc.Cache||wr),C}Sc.Cache=wr;function Cc(r){if(typeof r!="function")throw new Tn(v);return function(){var d=arguments;switch(d.length){case 0:return!r.call(this);case 1:return!r.call(this,d[0]);case 2:return!r.call(this,d[0],d[1]);case 3:return!r.call(this,d[0],d[1],d[2])}return!r.apply(this,d)}}function TL(r){return yy(2,r)}var EL=mT(function(r,d){d=d.length==1&&Je(d[0])?jt(d[0],Wn(je())):jt(On(d,1),Wn(je()));var C=d.length;return ht(function(D){for(var B=-1,U=Un(D.length,C);++B<U;)D[B]=d[B].call(this,D[B]);return qt(r,this,D)})}),Od=ht(function(r,d){var C=ke(d,ws(Od));return xr(r,k,e,d,C)}),ky=ht(function(r,d){var C=ke(d,ws(ky));return xr(r,x,e,d,C)}),LL=_r(function(r,d){return xr(r,E,e,e,e,d)});function RL(r,d){if(typeof r!="function")throw new Tn(v);return d=d===e?d:st(d),ht(r,d)}function IL(r,d){if(typeof r!="function")throw new Tn(v);return d=d==null?0:En(st(d),0),ht(function(C){var D=C[d],B=Qr(C,0,d);return D&&jn(B,D),qt(r,this,B)})}function OL(r,d,C){var D=!0,B=!0;if(typeof r!="function")throw new Tn(v);return Jt(C)&&(D="leading"in C?!!C.leading:D,B="trailing"in C?!!C.trailing:B),_y(r,d,{leading:D,maxWait:d,trailing:B})}function DL(r){return vy(r,1)}function NL(r,d){return Od(yd(d),r)}function FL(){if(!arguments.length)return[];var r=arguments[0];return Je(r)?r:[r]}function PL(r){return Ai(r,l)}function HL(r,d){return d=typeof d=="function"?d:e,Ai(r,l,d)}function BL(r){return Ai(r,c|l)}function zL(r,d){return d=typeof d=="function"?d:e,Ai(r,c|l,d)}function jL(r,d){return d==null||uv(r,d,In(d))}function Hi(r,d){return r===d||r!==r&&d!==d}var WL=yc(sd),UL=yc(function(r,d){return r>=d}),Io=mv(function(){return arguments}())?mv:function(r){return on(r)&&Rt.call(r,"callee")&&!nv.call(r,"callee")},Je=se.isArray,VL=jl?Wn(jl):JM;function si(r){return r!=null&&Ac(r.length)&&!$r(r)}function un(r){return on(r)&&si(r)}function qL(r){return r===!0||r===!1||on(r)&&Zn(r)==ve}var Xr=sM||Vd,GL=$i?Wn($i):eT;function YL(r){return on(r)&&r.nodeType===1&&!Ta(r)}function KL(r){if(r==null)return!0;if(si(r)&&(Je(r)||typeof r=="string"||typeof r.splice=="function"||Xr(r)||bs(r)||Io(r)))return!r.length;var d=Vn(r);if(d==dt||d==tn)return!r.size;if(Aa(r))return!cd(r).length;for(var C in r)if(Rt.call(r,C))return!1;return!0}function ZL(r,d){return $a(r,d)}function QL(r,d,C){C=typeof C=="function"?C:e;var D=C?C(r,d):e;return D===e?$a(r,d,e,C):!!D}function Dd(r){if(!on(r))return!1;var d=Zn(r);return d==$e||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!Ta(r)}function XL(r){return typeof r=="number"&&rv(r)}function $r(r){if(!Jt(r))return!1;var d=Zn(r);return d==at||d==Bt||d==ae||d==Ki}function $y(r){return typeof r=="number"&&r==st(r)}function Ac(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function Jt(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function on(r){return r!=null&&typeof r=="object"}var Sy=Ni?Wn(Ni):nT;function JL(r,d){return r===d||ld(r,d,Sd(d))}function eR(r,d,C){return C=typeof C=="function"?C:e,ld(r,d,Sd(d),C)}function tR(r){return Cy(r)&&r!=+r}function nR(r){if(HT(r))throw new Fe(p);return vv(r)}function iR(r){return r===null}function rR(r){return r==null}function Cy(r){return typeof r=="number"||on(r)&&Zn(r)==gt}function Ta(r){if(!on(r)||Zn(r)!=Nt)return!1;var d=ec(r);if(d===null)return!0;var C=Rt.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&Zl.call(C)==eM}var Nd=nr?Wn(nr):iT;function oR(r){return $y(r)&&r>=-H&&r<=H}var Ay=mr?Wn(mr):rT;function Mc(r){return typeof r=="string"||!Je(r)&&on(r)&&Zn(r)==Pe}function mi(r){return typeof r=="symbol"||on(r)&&Zn(r)==ze}var bs=Wl?Wn(Wl):oT;function sR(r){return r===e}function aR(r){return on(r)&&Vn(r)==We}function lR(r){return on(r)&&Zn(r)==ce}var cR=yc(ud),uR=yc(function(r,d){return r<=d});function My(r){if(!r)return[];if(si(r))return Mc(r)?Ge(r):oi(r);if(ma&&r[ma])return de(r[ma]());var d=Vn(r),C=d==dt?be:d==tn?Ce:xs;return C(r)}function Sr(r){if(!r)return r===0?r:0;if(r=Ei(r),r===F||r===-F){var d=r<0?-1:1;return d*W}return r===r?r:0}function st(r){var d=Sr(r),C=d%1;return d===d?C?d-C:d:0}function Ty(r){return r?To(st(r),0,q):0}function Ei(r){if(typeof r=="number")return r;if(mi(r))return V;if(Jt(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=Jt(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Qt(r);var C=Xi.test(r);return C||mn.test(r)?Ft(r.slice(2),C?2:8):El.test(r)?V:+r}function Ey(r){return rr(r,ai(r))}function hR(r){return r?To(st(r),-H,H):r===0?r:0}function Tt(r){return r==null?"":gi(r)}var dR=vs(function(r,d){if(Aa(d)||si(d)){rr(d,In(d),r);return}for(var C in d)Rt.call(d,C)&&xa(r,C,d[C])}),Ly=vs(function(r,d){rr(d,ai(d),r)}),Tc=vs(function(r,d,C,D){rr(d,ai(d),r,D)}),pR=vs(function(r,d,C,D){rr(d,In(d),r,D)}),fR=_r(id);function gR(r,d){var C=ms(r);return d==null?C:cv(C,d)}var mR=ht(function(r,d){r=Xe(r);var C=-1,D=d.length,B=D>2?d[2]:e;for(B&&Qn(d[0],d[1],B)&&(D=1);++C<D;)for(var U=d[C],Z=ai(U),ee=-1,re=Z.length;++ee<re;){var pe=Z[ee],ge=r[pe];(ge===e||Hi(ge,ps[pe])&&!Rt.call(r,pe))&&(r[pe]=U[pe])}return r}),vR=ht(function(r){return r.push(e,Yv),qt(Ry,e,r)});function yR(r,d){return ua(r,je(d,3),ir)}function wR(r,d){return ua(r,je(d,3),od)}function bR(r,d){return r==null?r:rd(r,je(d,3),ai)}function xR(r,d){return r==null?r:fv(r,je(d,3),ai)}function _R(r,d){return r&&ir(r,je(d,3))}function kR(r,d){return r&&od(r,je(d,3))}function $R(r){return r==null?[]:uc(r,In(r))}function SR(r){return r==null?[]:uc(r,ai(r))}function Fd(r,d,C){var D=r==null?e:Eo(r,d);return D===e?C:D}function CR(r,d){return r!=null&&Qv(r,d,KM)}function Pd(r,d){return r!=null&&Qv(r,d,ZM)}var AR=Wv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Ql.call(d)),r[d]=C},Bd(li)),MR=Wv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Ql.call(d)),Rt.call(r,d)?r[d].push(C):r[d]=[C]},je),TR=ht(ka);function In(r){return si(r)?av(r):cd(r)}function ai(r){return si(r)?av(r,!0):sT(r)}function ER(r,d){var C={};return d=je(d,3),ir(r,function(D,B,U){br(C,d(D,B,U),D)}),C}function LR(r,d){var C={};return d=je(d,3),ir(r,function(D,B,U){br(C,B,d(D,B,U))}),C}var RR=vs(function(r,d,C){hc(r,d,C)}),Ry=vs(function(r,d,C,D){hc(r,d,C,D)}),IR=_r(function(r,d){var C={};if(r==null)return C;var D=!1;d=jt(d,function(U){return U=Zr(U,r),D||(D=U.length>1),U}),rr(r,kd(r),C),D&&(C=Ai(C,c|a|l,AT));for(var B=d.length;B--;)gd(C,d[B]);return C});function OR(r,d){return Iy(r,Cc(je(d)))}var DR=_r(function(r,d){return r==null?{}:lT(r,d)});function Iy(r,d){if(r==null)return{};var C=jt(kd(r),function(D){return[D]});return d=je(d),$v(r,C,function(D,B){return d(D,B[0])})}function NR(r,d,C){d=Zr(d,r);var D=-1,B=d.length;for(B||(B=1,r=e);++D<B;){var U=r==null?e:r[or(d[D])];U===e&&(D=B,U=C),r=$r(U)?U.call(r):U}return r}function FR(r,d,C){return r==null?r:Sa(r,d,C)}function PR(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:Sa(r,d,C,D)}var Oy=qv(In),Dy=qv(ai);function HR(r,d,C){var D=Je(r),B=D||Xr(r)||bs(r);if(d=je(d,4),C==null){var U=r&&r.constructor;B?C=D?new U:[]:Jt(r)?C=$r(U)?ms(ec(r)):{}:C={}}return(B?Yn:ir)(r,function(Z,ee,re){return d(C,Z,ee,re)}),C}function BR(r,d){return r==null?!0:gd(r,d)}function zR(r,d,C){return r==null?r:Tv(r,d,yd(C))}function jR(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:Tv(r,d,yd(C),D)}function xs(r){return r==null?[]:So(r,In(r))}function WR(r){return r==null?[]:So(r,ai(r))}function UR(r,d,C){return C===e&&(C=d,d=e),C!==e&&(C=Ei(C),C=C===C?C:0),d!==e&&(d=Ei(d),d=d===d?d:0),To(Ei(r),d,C)}function VR(r,d,C){return d=Sr(d),C===e?(C=d,d=0):C=Sr(C),r=Ei(r),QM(r,d,C)}function qR(r,d,C){if(C&&typeof C!="boolean"&&Qn(r,d,C)&&(d=C=e),C===e&&(typeof d=="boolean"?(C=d,d=e):typeof r=="boolean"&&(C=r,r=e)),r===e&&d===e?(r=0,d=1):(r=Sr(r),d===e?(d=r,r=0):d=Sr(d)),r>d){var D=r;r=d,d=D}if(C||r%1||d%1){var B=ov();return Un(r+B*(d-r+wn("1e-"+((B+"").length-1))),d)}return dd(r,d)}var GR=ys(function(r,d,C){return d=d.toLowerCase(),r+(C?Ny(d):d)});function Ny(r){return Hd(Tt(r).toLowerCase())}function Fy(r){return r=Tt(r),r&&r.replace(es,P).replace(zr,"")}function YR(r,d,C){r=Tt(r),d=gi(d);var D=r.length;C=C===e?D:To(st(C),0,D);var B=C;return C-=d.length,C>=0&&r.slice(C,B)==d}function KR(r){return r=Tt(r),r&&Wh.test(r)?r.replace(Al,z):r}function ZR(r){return r=Tt(r),r&&Ir.test(r)?r.replace(Qi,"\\$&"):r}var QR=ys(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),XR=ys(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),JR=Bv("toLowerCase");function e2(r,d,C){r=Tt(r),d=st(d);var D=d?rt(r):0;if(!d||D>=d)return r;var B=(d-D)/2;return vc(rc(B),C)+r+vc(ic(B),C)}function t2(r,d,C){r=Tt(r),d=st(d);var D=d?rt(r):0;return d&&D<d?r+vc(d-D,C):r}function n2(r,d,C){r=Tt(r),d=st(d);var D=d?rt(r):0;return d&&D<d?vc(d-D,C)+r:r}function i2(r,d,C){return C||d==null?d=0:d&&(d=+d),uM(Tt(r).replace(Bn,""),d||0)}function r2(r,d,C){return(C?Qn(r,d,C):d===e)?d=1:d=st(d),pd(Tt(r),d)}function o2(){var r=arguments,d=Tt(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var s2=ys(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function a2(r,d,C){return C&&typeof C!="number"&&Qn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=Tt(r),r&&(typeof d=="string"||d!=null&&!Nd(d))&&(d=gi(d),!d&&te(r))?Qr(Ge(r),0,C):r.split(d,C)):[]}var l2=ys(function(r,d,C){return r+(C?" ":"")+Hd(d)});function c2(r,d,C){return r=Tt(r),C=C==null?0:To(st(C),0,r.length),d=gi(d),r.slice(C,C+d.length)==d}function u2(r,d,C){var D=j.templateSettings;C&&Qn(r,d,C)&&(d=e),r=Tt(r),d=Tc({},d,D,Gv);var B=Tc({},d.imports,D.imports,Gv),U=In(B),Z=So(B,U),ee,re,pe=0,ge=d.interpolate||zn,ye="__p += '",Ae=Mn((d.escape||zn).source+"|"+ge.source+"|"+(ge===He?Yh:zn).source+"|"+(d.evaluate||zn).source+"|$","g"),Oe="//# sourceURL="+(Rt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bl+"]")+`
1392
+ `;r.replace(Ae,function(Ve,mt,bt,vi,Xn,yi){return bt||(bt=vi),ye+=r.slice(pe,yi).replace(vo,Y),mt&&(ee=!0,ye+=`' +
1393
+ __e(`+mt+`) +
1394
+ '`),Xn&&(re=!0,ye+=`';
1395
+ `+Xn+`;
1396
+ __p += '`),bt&&(ye+=`' +
1397
+ ((__t = (`+bt+`)) == null ? '' : __t) +
1398
+ '`),pe=yi+Ve.length,Ve}),ye+=`';
1399
+ `;var Ue=Rt.call(d,"variable")&&d.variable;if(!Ue)ye=`with (obj) {
1400
+ `+ye+`
1401
+ }
1402
+ `;else if(Gh.test(Ue))throw new Fe(w);ye=(re?ye.replace(hr,""):ye).replace(ti,"$1").replace(Vs,"$1;"),ye="function("+(Ue||"obj")+`) {
1403
+ `+(Ue?"":`obj || (obj = {});
1404
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
1405
+ function print() { __p += __j.call(arguments, '') }
1406
+ `:`;
1407
+ `)+ye+`return __p
1408
+ }`;var lt=Hy(function(){return Ze(U,Oe+"return "+ye).apply(e,Z)});if(lt.source=ye,Dd(lt))throw lt;return lt}function h2(r){return Tt(r).toLowerCase()}function d2(r){return Tt(r).toUpperCase()}function p2(r,d,C){if(r=Tt(r),r&&(C||d===e))return Qt(r);if(!r||!(d=gi(d)))return r;var D=Ge(r),B=Ge(d),U=Gl(D,B),Z=Yl(D,B)+1;return Qr(D,U,Z).join("")}function f2(r,d,C){if(r=Tt(r),r&&(C||d===e))return r.slice(0,Qe(r)+1);if(!r||!(d=gi(d)))return r;var D=Ge(r),B=Yl(D,Ge(d))+1;return Qr(D,0,B).join("")}function g2(r,d,C){if(r=Tt(r),r&&(C||d===e))return r.replace(Bn,"");if(!r||!(d=gi(d)))return r;var D=Ge(r),B=Gl(D,Ge(d));return Qr(D,B).join("")}function m2(r,d){var C=T,D=N;if(Jt(d)){var B="separator"in d?d.separator:B;C="length"in d?st(d.length):C,D="omission"in d?gi(d.omission):D}r=Tt(r);var U=r.length;if(te(r)){var Z=Ge(r);U=Z.length}if(C>=U)return r;var ee=C-rt(D);if(ee<1)return D;var re=Z?Qr(Z,0,ee).join(""):r.slice(0,ee);if(B===e)return re+D;if(Z&&(ee+=re.length-ee),Nd(B)){if(r.slice(ee).search(B)){var pe,ge=re;for(B.global||(B=Mn(B.source,Tt(Nr.exec(B))+"g")),B.lastIndex=0;pe=B.exec(ge);)var ye=pe.index;re=re.slice(0,ye===e?ee:ye)}}else if(r.indexOf(gi(B),ee)!=ee){var Ae=re.lastIndexOf(B);Ae>-1&&(re=re.slice(0,Ae))}return re+D}function v2(r){return r=Tt(r),r&&jh.test(r)?r.replace(qs,Ie):r}var y2=ys(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),Hd=Bv("toUpperCase");function Py(r,d,C){return r=Tt(r),d=C?e:d,d===e?oe(r)?Gt(r):hs(r):r.match(d)||[]}var Hy=ht(function(r,d){try{return qt(r,e,d)}catch(C){return Dd(C)?C:new Fe(C)}}),w2=_r(function(r,d){return Yn(d,function(C){C=or(C),br(r,C,Id(r[C],r))}),r});function b2(r){var d=r==null?0:r.length,C=je();return r=d?jt(r,function(D){if(typeof D[1]!="function")throw new Tn(v);return[C(D[0]),D[1]]}):[],ht(function(D){for(var B=-1;++B<d;){var U=r[B];if(qt(U[0],this,D))return qt(U[1],this,D)}})}function x2(r){return qM(Ai(r,c))}function Bd(r){return function(){return r}}function _2(r,d){return r==null||r!==r?d:r}var k2=jv(),$2=jv(!0);function li(r){return r}function zd(r){return yv(typeof r=="function"?r:Ai(r,c))}function S2(r){return bv(Ai(r,c))}function C2(r,d){return xv(r,Ai(d,c))}var A2=ht(function(r,d){return function(C){return ka(C,r,d)}}),M2=ht(function(r,d){return function(C){return ka(r,C,d)}});function jd(r,d,C){var D=In(d),B=uc(d,D);C==null&&!(Jt(d)&&(B.length||!D.length))&&(C=d,d=r,r=this,B=uc(d,In(d)));var U=!(Jt(C)&&"chain"in C)||!!C.chain,Z=$r(r);return Yn(B,function(ee){var re=d[ee];r[ee]=re,Z&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ye=ge.__actions__=oi(this.__actions__);return ye.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,jn([this.value()],arguments))})}),r}function T2(){return An._===this&&(An._=tM),this}function Wd(){}function E2(r){return r=st(r),ht(function(d){return _v(d,r)})}var L2=bd(jt),R2=bd(Ur),I2=bd(us);function By(r){return Ad(r)?pa(or(r)):cT(r)}function O2(r){return function(d){return r==null?e:Eo(r,d)}}var D2=Uv(),N2=Uv(!0);function Ud(){return[]}function Vd(){return!1}function F2(){return{}}function P2(){return""}function H2(){return!0}function B2(r,d){if(r=st(r),r<1||r>H)return[];var C=q,D=Un(r,q);d=je(d),r-=q;for(var B=rn(D,d);++C<r;)d(C);return B}function z2(r){return Je(r)?jt(r,or):mi(r)?[r]:oi(sy(Tt(r)))}function j2(r){var d=++JA;return Tt(r)+d}var W2=mc(function(r,d){return r+d},0),U2=xd("ceil"),V2=mc(function(r,d){return r/d},1),q2=xd("floor");function G2(r){return r&&r.length?cc(r,li,sd):e}function Y2(r,d){return r&&r.length?cc(r,je(d,2),sd):e}function K2(r){return da(r,li)}function Z2(r,d){return da(r,je(d,2))}function Q2(r){return r&&r.length?cc(r,li,ud):e}function X2(r,d){return r&&r.length?cc(r,je(d,2),ud):e}var J2=mc(function(r,d){return r*d},1),eI=xd("round"),tI=mc(function(r,d){return r-d},0);function nI(r){return r&&r.length?qr(r,li):0}function iI(r,d){return r&&r.length?qr(r,je(d,2)):0}return j.after=SL,j.ary=vy,j.assign=dR,j.assignIn=Ly,j.assignInWith=Tc,j.assignWith=pR,j.at=fR,j.before=yy,j.bind=Id,j.bindAll=w2,j.bindKey=wy,j.castArray=FL,j.chain=fy,j.chunk=qT,j.compact=GT,j.concat=YT,j.cond=b2,j.conforms=x2,j.constant=Bd,j.countBy=nL,j.create=gR,j.curry=by,j.curryRight=xy,j.debounce=_y,j.defaults=mR,j.defaultsDeep=vR,j.defer=CL,j.delay=AL,j.difference=KT,j.differenceBy=ZT,j.differenceWith=QT,j.drop=XT,j.dropRight=JT,j.dropRightWhile=eE,j.dropWhile=tE,j.fill=nE,j.filter=rL,j.flatMap=aL,j.flatMapDeep=lL,j.flatMapDepth=cL,j.flatten=uy,j.flattenDeep=iE,j.flattenDepth=rE,j.flip=ML,j.flow=k2,j.flowRight=$2,j.fromPairs=oE,j.functions=$R,j.functionsIn=SR,j.groupBy=uL,j.initial=aE,j.intersection=lE,j.intersectionBy=cE,j.intersectionWith=uE,j.invert=AR,j.invertBy=MR,j.invokeMap=dL,j.iteratee=zd,j.keyBy=pL,j.keys=In,j.keysIn=ai,j.map=kc,j.mapKeys=ER,j.mapValues=LR,j.matches=S2,j.matchesProperty=C2,j.memoize=Sc,j.merge=RR,j.mergeWith=Ry,j.method=A2,j.methodOf=M2,j.mixin=jd,j.negate=Cc,j.nthArg=E2,j.omit=IR,j.omitBy=OR,j.once=TL,j.orderBy=fL,j.over=L2,j.overArgs=EL,j.overEvery=R2,j.overSome=I2,j.partial=Od,j.partialRight=ky,j.partition=gL,j.pick=DR,j.pickBy=Iy,j.property=By,j.propertyOf=O2,j.pull=fE,j.pullAll=dy,j.pullAllBy=gE,j.pullAllWith=mE,j.pullAt=vE,j.range=D2,j.rangeRight=N2,j.rearg=LL,j.reject=yL,j.remove=yE,j.rest=RL,j.reverse=Ld,j.sampleSize=bL,j.set=FR,j.setWith=PR,j.shuffle=xL,j.slice=wE,j.sortBy=$L,j.sortedUniq=CE,j.sortedUniqBy=AE,j.split=a2,j.spread=IL,j.tail=ME,j.take=TE,j.takeRight=EE,j.takeRightWhile=LE,j.takeWhile=RE,j.tap=GE,j.throttle=OL,j.thru=_c,j.toArray=My,j.toPairs=Oy,j.toPairsIn=Dy,j.toPath=z2,j.toPlainObject=Ey,j.transform=HR,j.unary=DL,j.union=IE,j.unionBy=OE,j.unionWith=DE,j.uniq=NE,j.uniqBy=FE,j.uniqWith=PE,j.unset=BR,j.unzip=Rd,j.unzipWith=py,j.update=zR,j.updateWith=jR,j.values=xs,j.valuesIn=WR,j.without=HE,j.words=Py,j.wrap=NL,j.xor=BE,j.xorBy=zE,j.xorWith=jE,j.zip=WE,j.zipObject=UE,j.zipObjectDeep=VE,j.zipWith=qE,j.entries=Oy,j.entriesIn=Dy,j.extend=Ly,j.extendWith=Tc,jd(j,j),j.add=W2,j.attempt=Hy,j.camelCase=GR,j.capitalize=Ny,j.ceil=U2,j.clamp=UR,j.clone=PL,j.cloneDeep=BL,j.cloneDeepWith=zL,j.cloneWith=HL,j.conformsTo=jL,j.deburr=Fy,j.defaultTo=_2,j.divide=V2,j.endsWith=YR,j.eq=Hi,j.escape=KR,j.escapeRegExp=ZR,j.every=iL,j.find=oL,j.findIndex=ly,j.findKey=yR,j.findLast=sL,j.findLastIndex=cy,j.findLastKey=wR,j.floor=q2,j.forEach=gy,j.forEachRight=my,j.forIn=bR,j.forInRight=xR,j.forOwn=_R,j.forOwnRight=kR,j.get=Fd,j.gt=WL,j.gte=UL,j.has=CR,j.hasIn=Pd,j.head=hy,j.identity=li,j.includes=hL,j.indexOf=sE,j.inRange=VR,j.invoke=TR,j.isArguments=Io,j.isArray=Je,j.isArrayBuffer=VL,j.isArrayLike=si,j.isArrayLikeObject=un,j.isBoolean=qL,j.isBuffer=Xr,j.isDate=GL,j.isElement=YL,j.isEmpty=KL,j.isEqual=ZL,j.isEqualWith=QL,j.isError=Dd,j.isFinite=XL,j.isFunction=$r,j.isInteger=$y,j.isLength=Ac,j.isMap=Sy,j.isMatch=JL,j.isMatchWith=eR,j.isNaN=tR,j.isNative=nR,j.isNil=rR,j.isNull=iR,j.isNumber=Cy,j.isObject=Jt,j.isObjectLike=on,j.isPlainObject=Ta,j.isRegExp=Nd,j.isSafeInteger=oR,j.isSet=Ay,j.isString=Mc,j.isSymbol=mi,j.isTypedArray=bs,j.isUndefined=sR,j.isWeakMap=aR,j.isWeakSet=lR,j.join=hE,j.kebabCase=QR,j.last=Ti,j.lastIndexOf=dE,j.lowerCase=XR,j.lowerFirst=JR,j.lt=cR,j.lte=uR,j.max=G2,j.maxBy=Y2,j.mean=K2,j.meanBy=Z2,j.min=Q2,j.minBy=X2,j.stubArray=Ud,j.stubFalse=Vd,j.stubObject=F2,j.stubString=P2,j.stubTrue=H2,j.multiply=J2,j.nth=pE,j.noConflict=T2,j.noop=Wd,j.now=$c,j.pad=e2,j.padEnd=t2,j.padStart=n2,j.parseInt=i2,j.random=qR,j.reduce=mL,j.reduceRight=vL,j.repeat=r2,j.replace=o2,j.result=NR,j.round=eI,j.runInContext=ne,j.sample=wL,j.size=_L,j.snakeCase=s2,j.some=kL,j.sortedIndex=bE,j.sortedIndexBy=xE,j.sortedIndexOf=_E,j.sortedLastIndex=kE,j.sortedLastIndexBy=$E,j.sortedLastIndexOf=SE,j.startCase=l2,j.startsWith=c2,j.subtract=tI,j.sum=nI,j.sumBy=iI,j.template=u2,j.times=B2,j.toFinite=Sr,j.toInteger=st,j.toLength=Ty,j.toLower=h2,j.toNumber=Ei,j.toSafeInteger=hR,j.toString=Tt,j.toUpper=d2,j.trim=p2,j.trimEnd=f2,j.trimStart=g2,j.truncate=m2,j.unescape=v2,j.uniqueId=j2,j.upperCase=y2,j.upperFirst=Hd,j.each=gy,j.eachRight=my,j.first=hy,jd(j,function(){var r={};return ir(j,function(d,C){Rt.call(j.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),j.VERSION=i,Yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){j[r].placeholder=j}),Yn(["drop","take"],function(r,d){wt.prototype[r]=function(C){C=C===e?1:En(st(C),0);var D=this.__filtered__&&!d?new wt(this):this.clone();return D.__filtered__?D.__takeCount__=Un(C,D.__takeCount__):D.__views__.push({size:Un(C,q),type:r+(D.__dir__<0?"Right":"")}),D},wt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),Yn(["filter","map","takeWhile"],function(r,d){var C=d+1,D=C==S||C==O;wt.prototype[r]=function(B){var U=this.clone();return U.__iteratees__.push({iteratee:je(B,3),type:C}),U.__filtered__=U.__filtered__||D,U}}),Yn(["head","last"],function(r,d){var C="take"+(d?"Right":"");wt.prototype[r]=function(){return this[C](1).value()[0]}}),Yn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");wt.prototype[r]=function(){return this.__filtered__?new wt(this):this[C](1)}}),wt.prototype.compact=function(){return this.filter(li)},wt.prototype.find=function(r){return this.filter(r).head()},wt.prototype.findLast=function(r){return this.reverse().find(r)},wt.prototype.invokeMap=ht(function(r,d){return typeof r=="function"?new wt(this):this.map(function(C){return ka(C,r,d)})}),wt.prototype.reject=function(r){return this.filter(Cc(je(r)))},wt.prototype.slice=function(r,d){r=st(r);var C=this;return C.__filtered__&&(r>0||d<0)?new wt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=st(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},wt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},wt.prototype.toArray=function(){return this.take(q)},ir(wt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),B=j[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);B&&(j.prototype[d]=function(){var Z=this.__wrapped__,ee=D?[1]:arguments,re=Z instanceof wt,pe=ee[0],ge=re||Je(Z),ye=function(mt){var bt=B.apply(j,jn([mt],ee));return D&&Ae?bt[0]:bt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Oe=!!this.__actions__.length,Ue=U&&!Ae,lt=re&&!Oe;if(!U&&ge){Z=lt?Z:new wt(this);var Ve=r.apply(Z,ee);return Ve.__actions__.push({func:_c,args:[ye],thisArg:e}),new Ci(Ve,Ae)}return Ue&&lt?r.apply(this,ee):(Ve=this.thru(ye),Ue?D?Ve.value()[0]:Ve.value():Ve)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(r){var d=fi[r],C=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);j.prototype[r]=function(){var B=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Je(U)?U:[],B)}return this[C](function(Z){return d.apply(Je(Z)?Z:[],B)})}}),ir(wt.prototype,function(r,d){var C=j[d];if(C){var D=C.name+"";Rt.call(gs,D)||(gs[D]=[]),gs[D].push({name:d,func:C})}}),gs[gc(e,y).name]=[{name:"wrapper",func:e}],wt.prototype.clone=vM,wt.prototype.reverse=yM,wt.prototype.value=wM,j.prototype.at=YE,j.prototype.chain=KE,j.prototype.commit=ZE,j.prototype.next=QE,j.prototype.plant=JE,j.prototype.reverse=eL,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=tL,j.prototype.first=j.prototype.head,ma&&(j.prototype[ma]=XE),j},Ht=Pt();Rn?((Rn.exports=Ht)._=Ht,ki._=Ht):An._=Ht}).call(Y1)}(Ka,Ka.exports)),Ka.exports}var Ef=K1();dn("K",Ra(Ef)).debounce(function(){this.rebuildDisplayText()},300);var Lf={exports:{}},Rf;function Z1(){return Rf||(Rf=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n.exports=e})})()}(Lf)),Lf.exports}Z1();const Q1=!0,bn="u-",X1="uplot",J1=bn+"hz",ex=bn+"vt",tx=bn+"title",nx=bn+"wrap",ix=bn+"under",rx=bn+"over",ox=bn+"axis",ao=bn+"off",sx=bn+"select",ax=bn+"cursor-x",lx=bn+"cursor-y",cx=bn+"cursor-pt",ux=bn+"legend",hx=bn+"live",dx=bn+"inline",px=bn+"series",fx=bn+"marker",If=bn+"label",gx=bn+"value",Ls="width",Rs="height",Is="top",Of="bottom",Bo="left",iu="right",ru="#000",Df=ru+"0",Nf="mousemove",Ff="mousedown",ou="mouseup",Pf="mouseenter",Hf="mouseleave",Bf="dblclick",mx="resize",vx="scroll",zf="change",Za="dppxchange",su="--",zo=typeof window<"u",au=zo?document:null,jo=zo?window:null,yx=zo?navigator:null;let $t,Qa;function lu(){let n=devicePixelRatio;$t!=n&&($t=n,Qa&&hu(zf,Qa,lu),Qa=matchMedia(`(min-resolution: ${$t-.001}dppx) and (max-resolution: ${$t+.001}dppx)`),lo(zf,Qa,lu),jo.dispatchEvent(new CustomEvent(Za)))}function ui(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function cu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Wt(n,t,e){n.style[t]=e+"px"}function Ii(n,t,e,i){let m=au.createElement(n);return t!=null&&ui(m,t),e!=null&&e.insertBefore(m,i),m}function wi(n,t){return Ii("div",n,t)}const jf=new WeakMap;function Vi(n,t,e,i,m){let p="translate("+t+"px,"+e+"px)",v=jf.get(n);p!=v&&(n.style.transform=p,jf.set(n,p),t<0||e<0||t>i||e>m?ui(n,ao):cu(n,ao))}const Wf=new WeakMap;function Uf(n,t,e){let i=t+e,m=Wf.get(n);i!=m&&(Wf.set(n,i),n.style.background=t,n.style.borderColor=e)}const Vf=new WeakMap;function qf(n,t,e,i){let m=t+""+e,p=Vf.get(n);m!=p&&(Vf.set(n,m),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=i?-t/2+"px":0,n.style.marginTop=i?-e/2+"px":0)}const uu={passive:!0},wx={...uu,capture:!0};function lo(n,t,e,i){t.addEventListener(n,e,i?wx:uu)}function hu(n,t,e,i){t.removeEventListener(n,e,uu)}zo&&lu();function Oi(n,t,e,i){let m;e=e||0,i=i||t.length-1;let p=i<=2147483647;for(;i-e>1;)m=p?e+i>>1:di((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Wo(n,t,e,i){for(let m=i==1?t:e;m>=t&&m<=e;m+=i)if(n[m]!=null)return m;return-1}function bx(n,t,e,i){let m=vt,p=-vt;if(i==1)m=n[t],p=n[e];else if(i==-1)m=n[e],p=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>p&&(p=w))}return[m,p]}function xx(n,t,e){let i=vt,m=-vt;for(let p=t;p<=e;p++){let v=n[p];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function Xa(n,t,e,i){let m=Kf(n),p=Kf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?cr:Zf,w=m==1?di:bi,h=p==1?bi:di,f=w(v(xn(n))),s=h(v(xn(t))),c=Uo(e,f),a=Uo(e,s);return e==10&&(f<0&&(c=Dt(c,-f)),s<0&&(a=Dt(a,-s))),i||e==2?(n=c*m,t=a*p):(n=ng(n,c),t=tl(t,a)),[n,t]}function du(n,t,e,i){let m=Xa(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const pu=.1,Gf={mode:3,pad:pu},Os={pad:0,soft:null,mode:0},_x={min:Os,max:Os};function Ja(n,t,e,i){return nl(e)?Yf(n,t,e):(Os.pad=e,Os.soft=i?0:null,Os.mode=i?3:0,Yf(n,t,_x))}function _t(n,t){return n??t}function kx(n,t,e){for(t=_t(t,0),e=_t(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Yf(n,t,e){let i=e.min,m=e.max,p=_t(i.pad,0),v=_t(m.pad,0),w=_t(i.hard,-vt),h=_t(m.hard,vt),f=_t(i.soft,vt),s=_t(m.soft,-vt),c=_t(i.mode,0),a=_t(m.mode,0),l=t-n,o=cr(l),u=Nn(xn(n),xn(t)),g=cr(u),y=xn(g-o);(l<1e-24||y>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&f!=vt&&(p=0),a==2&&s!=-vt&&(v=0)));let b=l||u||1e3,L=cr(b),A=Uo(10,di(L)),k=b*(l==0?n==0?.1:1:p),x=Dt(ng(n-k,A/10),24),M=n>=f&&(c==1||c==3&&x<=f||c==2&&x>=f)?f:vt,E=Nn(w,x<M&&n>=M?M:xi(M,x)),I=b*(l==0?t==0?.1:1:v),T=Dt(tl(t+I,A/10),24),N=t<=s&&(a==1||a==3&&T>=s||a==2&&T<=s)?s:-vt,$=xi(h,T>N&&t<=N?N:Nn(N,T));return E==$&&E==0&&($=100),[E,$]}const $x=new Intl.NumberFormat(zo?yx.language:"en-US"),fu=n=>$x.format(n),hi=Math,el=hi.PI,xn=hi.abs,di=hi.floor,_n=hi.round,bi=hi.ceil,xi=hi.min,Nn=hi.max,Uo=hi.pow,Kf=hi.sign,cr=hi.log10,Zf=hi.log2,Sx=(n,t=1)=>hi.sinh(n)*t,gu=(n,t=1)=>hi.asinh(n/t),vt=1/0;function Qf(n){return(cr((n^n>>31)-(n>>31))|0)+1}function mu(n,t,e){return xi(Nn(n,t),e)}function yt(n){return typeof n=="function"?n:()=>n}const Cx=()=>{},Xf=n=>n,Jf=(n,t)=>t,eg=n=>!0,tg=(n,t)=>n==t,Ax=/\.\d*?(?=9{6,}|0{6,})/gm,co=n=>{if(rg(n)||Lr.has(n))return n;const t=`${n}`,e=t.match(Ax);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,p]=t.split("e");return+`${co(m)}e${p}`}return Dt(n,i)};function uo(n,t){return co(Dt(co(n/t))*t)}function tl(n,t){return co(bi(co(n/t))*t)}function ng(n,t){return co(di(co(n/t))*t)}function Dt(n,t=0){if(rg(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return _n(i)/e}const Lr=new Map;function ig(n){return((""+n).split(".")[1]||"").length}function Ds(n,t,e,i){let m=[],p=i.map(ig);for(let v=t;v<e;v++){let w=xn(v),h=Dt(Uo(n,v),w);for(let f=0;f<i.length;f++){let s=n==10?+`${i[f]}e${v}`:i[f]*h,c=(v>=0?0:w)+(v>=p[f]?0:p[f]),a=n==10?s:Dt(s,c);m.push(a),Lr.set(a,c)}}return m}const Ns={},vu=[],Vo=[null,null],Rr=Array.isArray,rg=Number.isInteger,Mx=n=>n===void 0;function og(n){return typeof n=="string"}function nl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Tx(n){return n!=null&&typeof n=="object"}const Ex=Object.getPrototypeOf(Uint8Array),sg="__proto__";function qo(n,t=nl){let e;if(Rr(n)){let i=n.find(m=>m!=null);if(Rr(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=qo(n[m],t)}else e=n.slice()}else if(n instanceof Ex)e=n.slice();else if(t(n)){e={};for(let i in n)i!=sg&&(e[i]=qo(n[i],t))}else e=n;return e}function gn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=sg&&(nl(n[m])?gn(n[m],qo(i[m])):n[m]=qo(i[m]))}return n}const Lx=0,Rx=1,Ix=2;function Ox(n,t,e){for(let i=0,m,p=-1;i<t.length;i++){let v=t[i];if(v>p){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[p=m++]=null}}}function Dx(n,t){if(Px(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Hx(v[0])||(v=Fx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let f=0;f<h;f++)e.add(w[f])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,p=new Map;for(let v=0;v<m;v++)p.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let f=1;f<w.length;f++){let s=w[f],c=Array(m).fill(void 0),a=t?t[v][f]:Rx,l=[];for(let o=0;o<s.length;o++){let u=s[o],g=p.get(h[o]);u===null?a!=Lx&&(c[g]=u,a==Ix&&l.push(g)):c[g]=u}Ox(c,l,m),i.push(c)}}return i}const Nx=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Fx(n){let t=n[0],e=t.length,i=Array(e);for(let p=0;p<i.length;p++)i[p]=p;i.sort((p,v)=>t[p]-t[v]);let m=[];for(let p=0;p<n.length;p++){let v=n[p],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Px(n){let t=n[0][0],e=t.length;for(let i=1;i<n.length;i++){let m=n[i][0];if(m.length!=e)return!1;if(m!=t){for(let p=0;p<e;p++)if(m[p]!=t[p])return!1}}return!0}function Hx(n,t=100){const e=n.length;if(e<=1)return!0;let i=0,m=e-1;for(;i<=m&&n[i]==null;)i++;for(;m>=i&&n[m]==null;)m--;if(m<=i)return!0;const p=Nn(1,di((m-i+1)/t));for(let v=n[i],w=i+p;w<=m;w+=p){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const ag=["January","February","March","April","May","June","July","August","September","October","November","December"],lg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function cg(n){return n.slice(0,3)}const Bx=lg.map(cg),zx=ag.map(cg),jx={MMMM:ag,MMM:zx,WWWW:lg,WWW:Bx};function Fs(n){return(n<10?"0":"")+n}function Wx(n){return(n<10?"00":n<100?"0":"")+n}const Ux={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Fs(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Fs(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Fs(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Fs(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Fs(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Wx(n.getMilliseconds())};function yu(n,t){t=t||jx;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?Ux[m[1]]:m[0]);return p=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](p,t);return v}}const Vx=new Intl.DateTimeFormat().resolvedOptions().timeZone;function qx(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Vx?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const ug=n=>n%1==0,il=[1,2,2.5,5],Gx=Ds(10,-32,0,il),hg=Ds(10,0,32,il),Yx=hg.filter(ug),ho=Gx.concat(hg),wu=`
1409
+ `,dg="{YYYY}",pg=wu+dg,fg="{M}/{D}",Ps=wu+fg,rl=Ps+"/{YY}",gg="{aa}",Kx="{h}:{mm}",Go=Kx+gg,mg=wu+Go,vg=":{ss}",Ct=null;function yg(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,p=m*30,v=m*365,w=(n==1?Ds(10,0,3,il).filter(ug):Ds(10,-3,0,il)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,i,i*2,i*3,i*4,i*6,i*8,i*12,m,m*2,m*3,m*4,m*5,m*6,m*7,m*8,m*9,m*10,m*15,p,p*2,p*3,p*4,p*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,dg,Ct,Ct,Ct,Ct,Ct,Ct,1],[m*28,"{MMM}",pg,Ct,Ct,Ct,Ct,Ct,1],[m,fg,pg,Ct,Ct,Ct,Ct,Ct,1],[i,"{h}"+gg,rl,Ct,Ps,Ct,Ct,Ct,1],[e,Go,rl,Ct,Ps,Ct,Ct,Ct,1],[t,vg,rl+" "+Go,Ct,Ps+" "+Go,Ct,mg,Ct,1],[n,vg+".{fff}",rl+" "+Go,Ct,Ps+" "+Go,Ct,mg,Ct,1]];function f(s){return(c,a,l,o,u,g)=>{let y=[],b=u>=v,L=u>=p&&u<v,A=s(l),k=Dt(A*n,3),x=bu(A.getFullYear(),b?0:A.getMonth(),L||b?1:A.getDate()),M=Dt(x*n,3);if(L||b){let E=L?u/p:0,I=b?u/v:0,T=k==M?k:Dt(bu(x.getFullYear()+I,x.getMonth()+E,1)*n,3),N=new Date(_n(T/n)),$=N.getFullYear(),_=N.getMonth();for(let S=0;T<=o;S++){let R=bu($+I*S,_+E*S,1),O=R-s(Dt(R*n,3));T=Dt((+R+O)*n,3),T<=o&&y.push(T)}}else{let E=u>=m?m:u,I=di(l)-di(k),T=M+I+tl(k-M,E);y.push(T);let N=s(T),$=N.getHours()+N.getMinutes()/e+N.getSeconds()/i,_=u/i,S=c.axes[a]._space,R=g/S;for(;T=Dt(T+u,n==1?0:3),!(T>o);)if(_>1){let O=di(Dt($+_,6))%24,F=s(T).getHours()-O;F>1&&(F=-1),T-=F*i,$=($+_)%24;let H=y[y.length-1];Dt((T-H)/u,3)*R>=.7&&y.push(T)}else y.push(T)}return y}}return[w,h,f]}const[Zx,Qx,Xx]=yg(1),[Jx,e_,t_]=yg(.001);Ds(2,-53,53,[1]);function wg(n,t){return n.map(e=>e.map((i,m)=>m==0||m==8||i==null?i:t(m==1||e[8]==0?i:e[1]+i)))}function bg(n,t){return(e,i,m,p,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,f,s,c,a,l;return i.map(o=>{let u=n(o),g=u.getFullYear(),y=u.getMonth(),b=u.getDate(),L=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),x=g!=h&&w[2]||y!=f&&w[3]||b!=s&&w[4]||L!=c&&w[5]||A!=a&&w[6]||k!=l&&w[7]||w[1];return h=g,f=y,s=b,c=L,a=A,l=k,x(u)})}}function n_(n,t){let e=yu(t);return(i,m,p,v,w)=>m.map(h=>e(n(h)))}function bu(n,t,e){return new Date(n,t,e)}function xg(n,t){return t(n)}const i_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function _g(n,t){return(e,i,m,p)=>p==null?su:t(n(i))}function r_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function o_(n,t){return n.series[t].fill(n,t)}const s_={show:!0,live:!0,isolate:!1,mount:Cx,markers:{show:!0,width:2,stroke:r_,fill:o_,dash:"solid"},idx:null,idxs:null,values:[]};function a_(n,t){let e=n.cursor.points,i=wi(),m=e.size(n,t);Wt(i,Ls,m),Wt(i,Rs,m);let p=m/-2;Wt(i,"marginLeft",p),Wt(i,"marginTop",p);let v=e.width(n,t,m);return v&&Wt(i,"borderWidth",v),i}function l_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function c_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function u_(n,t){return n.series[t].points.size}const xu=[0,0];function h_(n,t,e){return xu[0]=t,xu[1]=e,xu}function ol(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function _u(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const d_={show:!0,x:!0,y:!0,lock:!1,move:h_,points:{one:!1,show:a_,size:u_,width:0,stroke:c_,fill:l_},bind:{mousedown:ol,mouseup:ol,click:ol,dblclick:ol,mousemove:_u,mouseleave:_u,mouseenter:_u},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,i,m)=>i-m,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},kg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ku=gn({},kg,{filter:Jf}),$g=gn({},ku,{size:10}),Sg=gn({},kg,{show:!1}),$u='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"',Cg="bold "+$u,Ag=1.5,Mg={show:!0,scale:"x",stroke:ru,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:2,grid:ku,ticks:$g,border:Sg,font:$u,lineGap:Ag,rotate:0},p_="Value",f_="Time",Tg={show:!0,scale:"x",auto:!1,sorted:1,min:vt,max:-vt,idxs:[]};function g_(n,t,e,i,m){return t.map(p=>p==null?"":fu(p))}function m_(n,t,e,i,m,p,v){let w=[],h=Lr.get(m)||0;e=v?e:Dt(tl(e,m),h);for(let f=e;f<=i;f=Dt(f+m,h))w.push(Object.is(f,-0)?0:f);return w}function Su(n,t,e,i,m,p,v){const w=[],h=n.scales[n.axes[t].scale].log,f=h==10?cr:Zf,s=di(f(e));m=Uo(h,s),h==10&&(m=ho[Oi(m,ho)]);let c=e,a=m*h;h==10&&(a=ho[Oi(a,ho)]);do w.push(c),c=c+m,h==10&&!Lr.has(c)&&(c=Dt(c,Lr.get(m))),c>=a&&(m=c,a=m*h,h==10&&(a=ho[Oi(a,ho)]));while(c<=i);return w}function v_(n,t,e,i,m,p,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?Su(n,t,Nn(w,e),i,m):[w],f=i>=0&&e<=0?[0]:[];return(e<-w?Su(n,t,Nn(w,-i),-e,m):[w]).reverse().map(s=>-s).concat(f,h)}const Eg=/./,y_=/[12357]/,w_=/[125]/,Lg=/1/,Cu=(n,t,e,i)=>n.map((m,p)=>t==4&&m==0||p%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function b_(n,t,e,i,m){let p=n.axes[e],v=p.scale,w=n.scales[v],h=n.valToPos,f=p._space,s=h(10,v),c=h(9,v)-s>=f?Eg:h(7,v)-s>=f?y_:h(5,v)-s>=f?w_:Lg;if(c==Lg){let a=xn(h(1,v)-s);if(a<f)return Cu(t.slice().reverse(),w.distr,c,bi(f/a)).reverse()}return Cu(t,w.distr,c,1)}function x_(n,t,e,i,m){let p=n.axes[e],v=p.scale,w=p._space,h=n.valToPos,f=xn(h(1,v)-h(2,v));return f<w?Cu(t.slice().reverse(),3,Eg,bi(w/f)).reverse():t}function __(n,t,e,i){return i==null?su:t==null?"":fu(t)}const Rg={show:!0,scale:"y",stroke:ru,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:3,grid:ku,ticks:$g,border:Sg,font:$u,lineGap:Ag,rotate:0};function k_(n,t){let e=3+(n||1)*2;return Dt(e*t,3)}function $_(n,t){let{scale:e,idxs:i}=n.series[0],m=n._data[0],p=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=xn(v-p),h=n.series[t],f=w/(h.points.space*$t);return i[1]-i[0]<=f}const Ig={scale:null,auto:!0,sorted:0,min:vt,max:-vt},Og=(n,t,e,i,m)=>m,Dg={show:!0,auto:!0,sorted:0,gaps:Og,alpha:1,facets:[gn({},Ig,{scale:"x"}),gn({},Ig,{scale:"y"})]},Ng={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Og,alpha:1,points:{show:$_,filter:null},values:null,min:vt,max:-vt,idxs:[],path:null,clip:null};function S_(n,t,e,i,m){return e/10}const Fg={time:Q1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},C_=gn({},Fg,{time:!1,ori:1}),Pg={};function Hg(n,t){let e=Pg[n];return e||(e={key:n,plots:[],sub(i){e.plots.push(i)},unsub(i){e.plots=e.plots.filter(m=>m!=i)},pub(i,m,p,v,w,h,f){for(let s=0;s<e.plots.length;s++)e.plots[s]!=m&&e.plots[s].pub(i,m,p,v,w,h,f)}},n!=null&&(Pg[n]=e)),e}const Yo=1,Au=2;function po(n,t,e){const i=n.mode,m=n.series[t],p=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=p[0],f=i==2?p[1]:p[t],s=i==2?v[m.facets[0].scale]:v[n.series[0].scale],c=i==2?v[m.facets[1].scale]:v[m.scale],a=w.left,l=w.top,o=w.width,u=w.height,g=n.valToPosH,y=n.valToPosV;return s.ori==0?e(m,h,f,s,c,g,y,a,l,o,u,al,Ko,cl,jg,Ug):e(m,h,f,s,c,y,g,l,a,u,o,ll,Zo,Eu,Wg,Vg)}function Mu(n,t){let e=0,i=0,m=_t(n.bands,vu);for(let p=0;p<m.length;p++){let v=m[p];v.series[0]==t?e=v.dir:v.series[1]==t&&(v.dir==1?i|=1:i|=2)}return[e,i==1?-1:i==2?1:i==3?2:0]}function A_(n,t,e,i,m){let p=n.mode,v=n.series[t],w=p==2?v.facets[1].scale:v.scale,h=n.scales[w];return m==-1?h.min:m==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function ur(n,t,e,i,m,p){return po(n,t,(v,w,h,f,s,c,a,l,o,u,g)=>{let y=v.pxRound;const b=f.dir*(f.ori==0?1:-1),L=f.ori==0?Ko:Zo;let A,k;b==1?(A=e,k=i):(A=i,k=e);let x=y(c(w[A],f,u,l)),M=y(a(h[A],s,g,o)),E=y(c(w[k],f,u,l)),I=y(a(p==1?s.max:s.min,s,g,o)),T=new Path2D(m);return L(T,E,I),L(T,x,I),L(T,x,M),T})}function sl(n,t,e,i,m,p){let v=null;if(n.length>0){v=new Path2D;const w=t==0?cl:Eu;let h=e;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(v,h,i,l,i+p),h=a[1]}}let f=e+m-h,s=10;f>0&&w(v,h,i-s/2,f,i+p+s)}return v}function M_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function Tu(n,t,e,i,m,p,v){let w=[],h=n.length;for(let f=m==1?e:i;f>=e&&f<=i;f+=m)if(t[f]===null){let s=f,c=f;if(m==1)for(;++f<=i&&t[f]===null;)c=f;else for(;--f>=e&&t[f]===null;)c=f;let a=p(n[s]),l=c==s?a:p(n[c]),o=s-m;a=v<=0&&o>=0&&o<h?p(n[o]):a;let u=c+m;l=v>=0&&u>=0&&u<h?p(n[u]):l,l>=a&&w.push([a,l])}return w}function Bg(n){return n==0?Xf:n==1?_n:t=>uo(t,n)}function zg(n){let t=n==0?al:ll,e=n==0?(m,p,v,w,h,f)=>{m.arcTo(p,v,w,h,f)}:(m,p,v,w,h,f)=>{m.arcTo(v,p,h,w,f)},i=n==0?(m,p,v,w,h)=>{m.rect(p,v,w,h)}:(m,p,v,w,h)=>{m.rect(v,p,h,w)};return(m,p,v,w,h,f=0,s=0)=>{f==0&&s==0?i(m,p,v,w,h):(f=xi(f,w/2,h/2),s=xi(s,w/2,h/2),t(m,p+f,v),e(m,p+w,v,p+w,v+h,f),e(m,p+w,v+h,p,v+h,s),e(m,p,v+h,p,v,s),e(m,p,v,p+w,v,f),m.closePath())}}const al=(n,t,e)=>{n.moveTo(t,e)},ll=(n,t,e)=>{n.moveTo(e,t)},Ko=(n,t,e)=>{n.lineTo(t,e)},Zo=(n,t,e)=>{n.lineTo(e,t)},cl=zg(0),Eu=zg(1),jg=(n,t,e,i,m,p)=>{n.arc(t,e,i,m,p)},Wg=(n,t,e,i,m,p)=>{n.arc(e,t,i,m,p)},Ug=(n,t,e,i,m,p,v)=>{n.bezierCurveTo(t,e,i,m,p,v)},Vg=(n,t,e,i,m,p,v)=>{n.bezierCurveTo(e,t,m,i,v,p)};function qg(n){return(t,e,i,m,p)=>po(t,e,(v,w,h,f,s,c,a,l,o,u,g)=>{let{pxRound:y,points:b}=v,L,A;f.ori==0?(L=al,A=jg):(L=ll,A=Wg);const k=Dt(b.width*$t,3);let x=(b.size-b.width)/2*$t,M=Dt(x*2,3),E=new Path2D,I=new Path2D,{left:T,top:N,width:$,height:_}=t.bbox;cl(I,T-M,N-M,$+M*2,_+M*2);const S=R=>{if(h[R]!=null){let O=y(c(w[R],f,u,l)),F=y(a(h[R],s,g,o));L(E,O+x,F),A(E,O,F,x,0,el*2)}};if(p)p.forEach(S);else for(let R=i;R<=m;R++)S(R);return{stroke:k>0?E:null,fill:E,clip:I,flags:Yo|Au}})}function Gg(n){return(t,e,i,m,p,v)=>{i!=m&&(p!=i&&v!=i&&n(t,e,i),p!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const T_=Gg(Ko),E_=Gg(Zo);function Yg(n){const t=_t(n==null?void 0:n.alignGaps,0);return(e,i,m,p)=>po(e,i,(v,w,h,f,s,c,a,l,o,u,g)=>{let y=v.pxRound,b=J=>y(c(J,f,u,l)),L=J=>y(a(J,s,g,o)),A,k;f.ori==0?(A=Ko,k=T_):(A=Zo,k=E_);const x=f.dir*(f.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Yo},E=M.stroke;let I=vt,T=-vt,N,$,_,S=b(w[x==1?m:p]),R=Wo(h,m,p,1*x),O=Wo(h,m,p,-1*x),F=b(w[R]),H=b(w[O]),W=!1;for(let J=x==1?m:p;J>=m&&J<=p;J+=x){let G=b(w[J]),Q=h[J];G==S?Q!=null?($=L(Q),I==vt&&(A(E,G,$),N=$),I=xi($,I),T=Nn($,T)):Q===null&&(W=!0):(I!=vt&&(k(E,S,I,T,N,$),_=S),Q!=null?($=L(Q),A(E,G,$),I=T=N=$):(I=vt,T=-vt,Q===null&&(W=!0)),S=G)}I!=vt&&I!=T&&_!=S&&k(E,S,I,T,N,$);let[V,q]=Mu(e,i);if(v.fill!=null||V!=0){let J=M.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Q=L(G);A(J,H,Q),A(J,F,Q)}if(!v.spanGaps){let J=[];W&&J.push(...Tu(w,h,m,p,x,b,t)),M.gaps=J=v.gaps(e,i,m,p,J),M.clip=sl(J,f.ori,l,o,u,g)}return q!=0&&(M.band=q==2?[ur(e,i,m,p,E,-1),ur(e,i,m,p,E,1)]:ur(e,i,m,p,E,q)),M})}function L_(n){const t=_t(n.align,1),e=_t(n.ascDesc,!1),i=_t(n.alignGaps,0),m=_t(n.extend,!1);return(p,v,w,h)=>po(p,v,(f,s,c,a,l,o,u,g,y,b,L)=>{let A=f.pxRound,{left:k,width:x}=p.bbox,M=V=>A(o(V,a,b,g)),E=V=>A(u(V,l,L,y)),I=a.ori==0?Ko:Zo;const T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Yo},N=T.stroke,$=a.dir*(a.ori==0?1:-1);w=Wo(c,w,h,1),h=Wo(c,w,h,-1);let _=E(c[$==1?w:h]),S=M(s[$==1?w:h]),R=S,O=S;m&&t==-1&&(O=k,I(N,O,_)),I(N,S,_);for(let V=$==1?w:h;V>=w&&V<=h;V+=$){let q=c[V];if(q==null)continue;let J=M(s[V]),G=E(q);t==1?I(N,J,_):I(N,R,G),I(N,J,G),_=G,R=J}let F=R;m&&t==1&&(F=k+x,I(N,F,_));let[H,W]=Mu(p,v);if(f.fill!=null||H!=0){let V=T.fill=new Path2D(N),q=f.fillTo(p,v,f.min,f.max,H),J=E(q);I(V,F,J),I(V,O,J)}if(!f.spanGaps){let V=[];V.push(...Tu(s,c,w,h,$,M,i));let q=f.width*$t/2,J=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Q=>{Q[0]+=J,Q[1]+=G}),T.gaps=V=f.gaps(p,v,w,h,V),T.clip=sl(V,a.ori,g,y,b,L)}return W!=0&&(T.band=W==2?[ur(p,v,w,h,N,-1),ur(p,v,w,h,N,1)]:ur(p,v,w,h,N,W)),T})}function Kg(n,t,e,i,m,p,v=vt){if(n.length>1){let w=null;for(let h=0,f=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let s=xn(n[h]-n[w]);s<f&&(f=s,v=xn(e(n[h],i,m,p)-e(n[w],i,m,p)))}w=h}}return v}function R_(n){n=n||Ns;const t=_t(n.size,[.6,vt,1]),e=n.align||0,i=n.gap||0;let m=n.radius;m=m==null?[0,0]:typeof m=="number"?[m,0]:m;const p=yt(m),v=1-t[0],w=_t(t[1],vt),h=_t(t[2],1),f=_t(n.disp,Ns),s=_t(n.each,l=>{}),{fill:c,stroke:a}=f;return(l,o,u,g)=>po(l,o,(y,b,L,A,k,x,M,E,I,T,N)=>{let $=y.pxRound,_=e,S=i*$t,R=w*$t,O=h*$t,F,H;A.ori==0?[F,H]=p(l,o):[H,F]=p(l,o);const W=A.dir*(A.ori==0?1:-1);let V=A.ori==0?cl:Eu,q=A.ori==0?s:(We,ce,Me,Re,qe,Ye,pt)=>{s(We,ce,Me,qe,Re,pt,Ye)},J=_t(l.bands,vu).find(We=>We.series[0]==o),G=J!=null?J.dir:0,Q=y.fillTo(l,o,y.min,y.max,G),ie=$(M(Q,k,N,I)),X,ae,ve,we=T,fe=$(y.width*$t),$e=!1,at=null,Bt=null,dt=null,gt=null;c!=null&&(fe==0||a!=null)&&($e=!0,at=c.values(l,o,u,g),Bt=new Map,new Set(at).forEach(We=>{We!=null&&Bt.set(We,new Path2D)}),fe>0&&(dt=a.values(l,o,u,g),gt=new Map,new Set(dt).forEach(We=>{We!=null&&gt.set(We,new Path2D)})));let{x0:cn,size:Nt}=f;if(cn!=null&&Nt!=null){_=1,b=cn.values(l,o,u,g),cn.unit==2&&(b=b.map(ce=>l.posToVal(E+ce*T,A.key,!0)));let We=Nt.values(l,o,u,g);Nt.unit==2?ae=We[0]*T:ae=x(We[0],A,T,E)-x(0,A,T,E),we=Kg(b,L,x,A,T,E,we),ve=we-ae+S}else we=Kg(b,L,x,A,T,E,we),ve=we*v+S,ae=we-ve;ve<1&&(ve=0),fe>=ae/2&&(fe=0),ve<5&&($=Xf);let Zt=ve>0,Ki=we-ve-(Zt?fe:0);ae=$(mu(Ki,O,R)),X=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?S/2:0)+(Zt?fe/2:0));const $n={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},tn=$e?null:new Path2D;let Pe=null;if(J!=null)Pe=l.data[J.series[1]];else{let{y0:We,y1:ce}=f;We!=null&&ce!=null&&(L=ce.values(l,o,u,g),Pe=We.values(l,o,u,g))}let ze=F*ae,nn=H*ae;for(let We=W==1?u:g;We>=u&&We<=g;We+=W){let ce=L[We];if(ce==null)continue;if(Pe!=null){let ut=Pe[We]??0;if(ce-ut==0)continue;ie=M(ut,k,N,I)}let Me=A.distr!=2||f!=null?b[We]:We,Re=x(Me,A,T,E),qe=M(_t(ce,Q),k,N,I),Ye=$(Re-X),pt=$(Nn(qe,ie)),ft=$(xi(qe,ie)),ct=pt-ft;if(ce!=null){let ut=ce<0?nn:ze,it=ce<0?ze:nn;$e?(fe>0&&dt[We]!=null&&V(gt.get(dt[We]),Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,it),at[We]!=null&&V(Bt.get(at[We]),Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,it)):V(tn,Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,it),q(l,o,We,Ye-fe/2,ft,ae+fe,ct)}}return fe>0?$n.stroke=$e?gt:tn:$e||($n._fill=y.width==0?y._fill:y._stroke??y._fill,$n.width=0),$n.fill=$e?Bt:tn,$n})}function I_(n,t){const e=_t(t==null?void 0:t.alignGaps,0);return(i,m,p,v)=>po(i,m,(w,h,f,s,c,a,l,o,u,g,y)=>{let b=w.pxRound,L=F=>b(a(F,s,g,o)),A=F=>b(l(F,c,y,u)),k,x,M;s.ori==0?(k=al,M=Ko,x=Ug):(k=ll,M=Zo,x=Vg);const E=s.dir*(s.ori==0?1:-1);p=Wo(f,p,v,1),v=Wo(f,p,v,-1);let I=L(h[E==1?p:v]),T=I,N=[],$=[];for(let F=E==1?p:v;F>=p&&F<=v;F+=E)if(f[F]!=null){let H=h[F],W=L(H);N.push(T=W),$.push(A(f[F]))}const _={stroke:n(N,$,k,M,x,b),fill:null,clip:null,band:null,gaps:null,flags:Yo},S=_.stroke;let[R,O]=Mu(i,m);if(w.fill!=null||R!=0){let F=_.fill=new Path2D(S),H=w.fillTo(i,m,w.min,w.max,R),W=A(H);M(F,T,W),M(F,I,W)}if(!w.spanGaps){let F=[];F.push(...Tu(h,f,p,v,E,L,e)),_.gaps=F=w.gaps(i,m,p,v,F),_.clip=sl(F,s.ori,o,u,g,y)}return O!=0&&(_.band=O==2?[ur(i,m,p,v,S,-1),ur(i,m,p,v,S,1)]:ur(i,m,p,v,S,O)),_})}function O_(n){return I_(D_,n)}function D_(n,t,e,i,m,p){const v=n.length;if(v<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),v==2)i(w,n[1],t[1]);else{let h=Array(v),f=Array(v-1),s=Array(v-1),c=Array(v-1);for(let a=0;a<v-1;a++)s[a]=t[a+1]-t[a],c[a]=n[a+1]-n[a],f[a]=s[a]/c[a];h[0]=f[0];for(let a=1;a<v-1;a++)f[a]===0||f[a-1]===0||f[a-1]>0!=f[a]>0?h[a]=0:(h[a]=3*(c[a-1]+c[a])/((2*c[a]+c[a-1])/f[a-1]+(c[a]+2*c[a-1])/f[a]),isFinite(h[a])||(h[a]=0));h[v-1]=f[v-2];for(let a=0;a<v-1;a++)m(w,n[a]+c[a]/3,t[a]+h[a]*c[a]/3,n[a+1]-c[a]/3,t[a+1]-h[a+1]*c[a]/3,n[a+1],t[a+1])}return w}const Lu=new Set;function Zg(){for(let n of Lu)n.syncRect(!0)}zo&&(lo(mx,jo,Zg),lo(vx,jo,Zg,!0),lo(Za,jo,()=>{Fn.pxRatio=$t}));const N_=Yg(),F_=qg();function Qg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,p)=>Ru(m,p,t,e))}function P_(n,t){return n.map((e,i)=>i==0?{}:gn({},t,e))}function Ru(n,t,e,i){return gn({},t==0?e:i,n)}function Xg(n,t,e){return t==null?Vo:[t,e]}const H_=Xg;function B_(n,t,e){return t==null?Vo:Ja(t,e,pu,!0)}function Jg(n,t,e,i){return t==null?Vo:Xa(t,e,n.scales[i].log,!1)}const z_=Jg;function em(n,t,e,i){return t==null?Vo:du(t,e,n.scales[i].log,!1)}const j_=em;function W_(n,t,e,i,m){let p=Nn(Qf(n),Qf(t)),v=t-n,w=Oi(m/i*v,e);do{let h=e[w],f=i*h/v;if(f>=m&&p+(h<5?Lr.get(h):0)<=17)return[h,f]}while(++w<e.length);return[0,0]}function tm(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=_n((e=+m)*$t))+"px"),[n,t,e]}function U_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Dt(t[2]*$t,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Fn(n,t,e){const i={mode:_t(n.mode,1)},m=i.mode;function p(P,z){return((z.distr==3?cr(P>0?P:z.clamp(i,P,z.min,z.max,z.key)):z.distr==4?gu(P,z.asinh):z.distr==100?z.fwd(P):P)-z._min)/(z._max-z._min)}function v(P,z,Y,K){let te=p(P,z);return K+Y*(z.dir==-1?1-te:te)}function w(P,z,Y,K){let te=p(P,z);return K+Y*(z.dir==-1?te:1-te)}function h(P,z,Y,K){return z.ori==0?v(P,z,Y,K):w(P,z,Y,K)}i.valToPosH=v,i.valToPosV=w;let f=!1;i.status=0;const s=i.root=wi(X1);if(n.id!=null&&(s.id=n.id),ui(s,n.class),n.title){let P=wi(tx,s);P.textContent=n.title}const c=Ii("canvas"),a=i.ctx=c.getContext("2d"),l=wi(nx,s);lo("click",l,P=>{P.target===u&&(Be!=jr||zt!=Wr)&&Cn.click(i,P)},!0);const o=i.under=wi(ix,l);l.appendChild(c);const u=i.over=wi(rx,l);n=qo(n);const g=+_t(n.pxAlign,1),y=Bg(g);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const b=n.ms||.001,L=i.series=m==1?Qg(n.series||[],Tg,Ng,!1):P_(n.series||[null],Dg),A=i.axes=Qg(n.axes||[],Mg,Rg,!0),k=i.scales={},x=i.bands=n.bands||[];x.forEach(P=>{P.fill=yt(P.fill||null),P.dir=_t(P.dir,-1)});const M=m==2?L[1].facets[0].scale:L[0].scale,E={axes:Kh,series:Il},I=(n.drawOrder||["axes","series"]).map(P=>E[P]);function T(P){let z=k[P];if(z==null){let Y=(n.scales||Ns)[P]||Ns;if(Y.from!=null)T(Y.from),k[P]=gn({},k[Y.from],Y,{key:P});else{z=k[P]=gn({},P==M?Fg:C_,Y),z.key=P;let K=z.time,te=z.range,oe=Rr(te);if((P!=M||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Gf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Gf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&nl(te))){let de=te;te=(be,_e,ke)=>_e==null?Vo:Ja(_e,ke,de)}z.range=yt(te||(K?H_:P==M?z.distr==3?z_:z.distr==4?j_:Xg:z.distr==3?Jg:z.distr==4?em:B_)),z.auto=yt(oe?!1:z.auto),z.clamp=yt(z.clamp||S_),z._min=z._max=null}}}T("x"),T("y"),m==1&&L.forEach(P=>{T(P.scale)}),A.forEach(P=>{T(P.scale)});for(let P in n.scales)T(P);const N=k[M],$=N.distr;let _,S;N.ori==0?(ui(s,J1),_=v,S=w):(ui(s,ex),_=w,S=v);const R={};for(let P in k){let z=k[P];(z.min!=null||z.max!=null)&&(R[P]={min:z.min,max:z.max},z.min=z.max=null)}const O=n.tzDate||(P=>new Date(_n(P/b))),F=n.fmtDate||yu,H=b==1?Xx(O):t_(O),W=bg(O,wg(b==1?Qx:e_,F)),V=_g(O,xg(i_,F)),q=[],J=i.legend=gn({},s_,n.legend),G=J.show,Q=J.markers;J.idxs=q,Q.width=yt(Q.width),Q.dash=yt(Q.dash),Q.stroke=yt(Q.stroke),Q.fill=yt(Q.fill);let ie,X,ae,ve=[],we=[],fe,$e=!1,at={};if(J.live){const P=L[1]?L[1].values:null;$e=P!=null,fe=$e?P(i,1,0):{_:0};for(let z in fe)at[z]=su}if(G)if(ie=Ii("table",ux,s),ae=Ii("tbody",null,ie),J.mount(i,ie),$e){X=Ii("thead",null,ie,ae);let P=Ii("tr",null,X);Ii("th",null,P);for(var Bt in fe)Ii("th",If,P).textContent=Bt}else ui(ie,dx),J.live&&ui(ie,hx);const dt={show:!0},gt={show:!1};function cn(P,z){if(z==0&&($e||!J.live||m==2))return Vo;let Y=[],K=Ii("tr",px,ae,ae.childNodes[z]);ui(K,P.class),P.show||ui(K,ao);let te=Ii("th",null,K);if(Q.show){let be=wi(fx,te);if(z>0){let _e=Q.width(i,z);_e&&(be.style.border=_e+"px "+Q.dash(i,z)+" "+Q.stroke(i,z)),be.style.background=Q.fill(i,z)}}let oe=wi(If,te);oe.textContent=P.label,z>0&&(Q.show||(oe.style.color=P.width>0?Q.stroke(i,z):Q.fill(i,z)),Zt("click",te,be=>{if(He._lock)return;dr(be);let _e=L.indexOf(P);if((be.ctrlKey||be.metaKey)!=J.isolate){let ke=L.some((Ce,Ee)=>Ee>0&&Ee!=_e&&Ce.show);L.forEach((Ce,Ee)=>{Ee>0&&Rn(Ee,ke?Ee==_e?dt:gt:dt,!0,Qt.setSeries)})}else Rn(_e,{show:!P.show},!0,Qt.setSeries)},!1),Qi&&Zt(Pf,te,be=>{He._lock||(dr(be),Rn(L.indexOf(P),mr,!0,Qt.setSeries))},!1));for(var de in fe){let be=Ii("td",gx,K);be.textContent="--",Y.push(be)}return[K,Y]}const Nt=new Map;function Zt(P,z,Y,K=!0){const te=Nt.get(z)||{},oe=He.bind[P](i,z,Y,K);oe&&(lo(P,z,te[P]=oe),Nt.set(z,te))}function Ki(P,z,Y){const K=Nt.get(z)||{};for(let te in K)(P==null||te==P)&&(hu(te,z,K[te]),delete K[te]);P==null&&Nt.delete(z)}let $n=0,tn=0,Pe=0,ze=0,nn=0,We=0,ce=nn,Me=We,Re=Pe,qe=ze,Ye=0,pt=0,ft=0,ct=0;i.bbox={};let ut=!1,it=!1,Ut=!1,Hn=!1,hr=!1,ti=!1;function Vs(P,z,Y){(Y||P!=i.width||z!=i.height)&&qs(P,z),fr(!1),Ut=!0,it=!0,Br()}function qs(P,z){i.width=$n=Pe=P,i.height=tn=ze=z,nn=We=0,Uh(),Vh();let Y=i.bbox;Ye=Y.left=uo(nn*$t,.5),pt=Y.top=uo(We*$t,.5),ft=Y.width=uo(Pe*$t,.5),ct=Y.height=uo(ze*$t,.5)}const Al=3;function jh(){let P=!1,z=0;for(;!P;){z++;let Y=Nl(z),K=Fl(z);P=z==Al||Y&&K,P||(qs(i.width,i.height),it=!0)}}function Wh({width:P,height:z}){Vs(P,z)}i.setSize=Wh;function Uh(){let P=!1,z=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:be}=te,_e=de%2,ke=te.label!=null?te.labelSize:0,Ce=be+ke;Ce>0&&(_e?(Pe-=Ce,de==3?(nn+=Ce,K=!0):Y=!0):(ze-=Ce,de==0?(We+=Ce,P=!0):z=!0))}}),pr[0]=P,pr[1]=Y,pr[2]=z,pr[3]=K,Pe-=Xi[1]+Xi[3],nn+=Xi[3],ze-=Xi[2]+Xi[0],We+=Xi[0]}function Vh(){let P=nn+Pe,z=We+ze,Y=nn,K=We;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return z+=de,z-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}A.forEach((oe,de)=>{if(oe.show&&oe._show){let be=oe.side;oe._pos=te(be,oe._size),oe.label!=null&&(oe._lpos=te(be,oe.labelSize))}})}const He=i.cursor=gn({},d_,{drag:{y:m==2}},n.cursor);if(He.dataIdx==null){let P=He.hover,z=P.skip=new Set(P.skip??[]);z.add(void 0);let Y=P.prox=yt(P.prox),K=P.bias??(P.bias=0);He.dataIdx=(te,oe,de,be)=>{if(oe==0)return de;let _e=de,ke=Y(te,oe,de,be)??vt,Ce=ke>=0&&ke<vt,Ee=N.ori==0?Pe:ze,Ke=He.left,Lt=t[0],rt=t[oe];if(z.has(rt[de])){_e=null;let Ge=null,Qe=null,Ie;if(K==0||K==-1)for(Ie=de;Ge==null&&Ie-- >0;)z.has(rt[Ie])||(Ge=Ie);if(K==0||K==1)for(Ie=de;Qe==null&&Ie++<rt.length;)z.has(rt[Ie])||(Qe=Ie);if(Ge!=null||Qe!=null)if(Ce){let At=Ge==null?-1/0:_(Lt[Ge],N,Ee,0),Xt=Qe==null?1/0:_(Lt[Qe],N,Ee,0),Gt=Ke-At,Pt=Xt-Ke;Gt<=Pt?Gt<=ke&&(_e=Ge):Pt<=ke&&(_e=Qe)}else _e=Qe==null?Ge:Ge==null?Qe:de-Ge<=Qe-de?Ge:Qe}else Ce&&xn(Ke-_(Lt[de],N,Ee,0))>ke&&(_e=null);return _e}}const dr=P=>{He.event=P};He.idxs=q,He._lock=!1;let Ln=He.points;Ln.show=yt(Ln.show),Ln.size=yt(Ln.size),Ln.stroke=yt(Ln.stroke),Ln.width=yt(Ln.width),Ln.fill=yt(Ln.fill);const Zi=i.focus=gn({},n.focus||{alpha:.3},He.focus),Qi=Zi.prox>=0,Ir=Qi&&Ln.one;let Bn=[],Or=[],Dr=[];function Ml(P,z){let Y=Ln.show(i,z);if(Y)return ui(Y,cx),ui(Y,P.class),Vi(Y,-10,-10,Pe,ze),u.insertBefore(Y,Bn[z]),Y}function Tl(P,z){if(m==1||z>0){let Y=m==1&&k[P.scale].time,K=P.value;P.value=Y?og(K)?_g(O,xg(K,F)):K||V:K||__,P.label=P.label||(Y?f_:p_)}if(Ir||z>0){P.width=P.width==null?1:P.width,P.paths=P.paths||N_,P.fillTo=yt(P.fillTo||A_),P.pxAlign=+_t(P.pxAlign,g),P.pxRound=Bg(P.pxAlign),P.stroke=yt(P.stroke||null),P.fill=yt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=k_(Nn(1,P.width),1),K=P.points=gn({},{size:Y,width:Nn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:F_,_stroke:null,_fill:null},P.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=P.pxAlign}if(G){let Y=cn(P,z);ve.splice(z,0,Y[0]),we.splice(z,0,Y[1]),J.values.push(null)}if(He.show){q.splice(z,0,null);let Y=null;Ir?z==0&&(Y=Ml(P,z)):z>0&&(Y=Ml(P,z)),Bn.splice(z,0,Y),Or.splice(z,0,0),Dr.splice(z,0,0)}rn("addSeries",z)}function qh(P,z){z=z??L.length,P=m==1?Ru(P,z,Tg,Ng):Ru(P,z,{},Dg),L.splice(z,0,P),Tl(L[z],z)}i.addSeries=qh;function Gh(P){if(L.splice(P,1),G){J.values.splice(P,1),we.splice(P,1);let z=ve.splice(P,1)[0];Ki(null,z.firstChild),z.remove()}He.show&&(q.splice(P,1),Bn.splice(P,1)[0].remove(),Or.splice(P,1),Dr.splice(P,1)),rn("delSeries",P)}i.delSeries=Gh;const pr=[!1,!1,!1,!1];function Yh(P,z){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?L[1].scale:M,K=k[P.scale]);let te=K.time;P.size=yt(P.size),P.space=yt(P.space),P.rotate=yt(P.rotate),Rr(P.incrs)&&P.incrs.forEach(de=>{!Lr.has(de)&&Lr.set(de,ig(de))}),P.incrs=yt(P.incrs||(K.distr==2?Yx:te?b==1?Zx:Jx:ho)),P.splits=yt(P.splits||(te&&K.distr==1?H:K.distr==3?Su:K.distr==4?v_:m_)),P.stroke=yt(P.stroke),P.grid.stroke=yt(P.grid.stroke),P.ticks.stroke=yt(P.ticks.stroke),P.border.stroke=yt(P.border.stroke);let oe=P.values;P.values=Rr(oe)&&!Rr(oe[0])?yt(oe):te?Rr(oe)?bg(O,wg(oe,F)):og(oe)?n_(O,oe):oe||W:oe||g_,P.filter=yt(P.filter||(K.distr>=3&&K.log==10?b_:K.distr==3&&K.log==2?x_:Jf)),P.font=tm(P.font),P.labelFont=tm(P.labelFont),P._size=P.size(i,null,z,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(pr[z]=!0,P._el=wi(ox,l))}}function Nr(P,z,Y,K){let[te,oe,de,be]=Y,_e=z%2,ke=0;return _e==0&&(be||oe)&&(ke=z==0&&!te||z==2&&!de?_n(Mg.size/3):0),_e==1&&(te||de)&&(ke=z==1&&!oe||z==3&&!be?_n(Rg.size/2):0),ke}const El=i.padding=(n.padding||[Nr,Nr,Nr,Nr]).map(P=>yt(_t(P,Nr))),Xi=i._padding=El.map((P,z)=>P(i,z,pr,0));let Sn,mn=null,vn=null;const es=m==1?L[0].idxs:null;let zn=null,vo=!1;function yo(P,z){if(t=P??[],i.data=i._data=t,m==2){Sn=0;for(let Y=1;Y<L.length;Y++)Sn+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),zn=t[0],Sn=zn.length;let Y=t;if($==2){Y=t.slice();let K=Y[0]=Array(Sn);for(let te=0;te<Sn;te++)K[te]=te}i._data=t=Y}if(fr(!0),rn("setData"),$==2&&(Ut=!0),z!==!1){let Y=N;Y.auto(i,vo)?Gs():ki(M,Y.min,Y.max),Hn=Hn||He.left>=0,ti=!0,Br()}}i.setData=yo;function Gs(){vo=!0;let P,z;m==1&&(Sn>0?(mn=es[0]=0,vn=es[1]=Sn-1,P=t[0][mn],z=t[0][vn],$==2?(P=mn,z=vn):P==z&&($==3?[P,z]=Xa(P,P,N.log,!1):$==4?[P,z]=du(P,P,N.log,!1):N.time?z=P+_n(86400/b):[P,z]=Ja(P,z,pu,!0))):(mn=es[0]=P=null,vn=es[1]=z=null)),ki(M,P,z)}let ts,Fr,ns,is,rs,Ys,Ks,Zs,Qs,_i;function Xs(P,z,Y,K,te,oe){P??(P=Df),Y??(Y=vu),K??(K="butt"),te??(te=Df),oe??(oe="round"),P!=ts&&(a.strokeStyle=ts=P),te!=Fr&&(a.fillStyle=Fr=te),z!=ns&&(a.lineWidth=ns=z),oe!=rs&&(a.lineJoin=rs=oe),K!=Ys&&(a.lineCap=Ys=K),Y!=is&&a.setLineDash(is=Y)}function Js(P,z,Y,K){z!=Fr&&(a.fillStyle=Fr=z),P!=Ks&&(a.font=Ks=P),Y!=Zs&&(a.textAlign=Zs=Y),K!=Qs&&(a.textBaseline=Qs=K)}function wo(P,z,Y,K,te=0){if(K.length>0&&P.auto(i,vo)&&(z==null||z.min==null)){let oe=_t(mn,0),de=_t(vn,K.length-1),be=Y.min==null?P.distr==3?xx(K,oe,de):bx(K,oe,de,te):[Y.min,Y.max];P.min=xi(P.min,Y.min=be[0]),P.max=Nn(P.max,Y.max=be[1])}}const Ll={min:null,max:null};function Rl(){for(let K in k){let te=k[K];R[K]==null&&(te.min==null||R[M]!=null&&te.auto(i,vo))&&(R[K]=Ll)}for(let K in k){let te=k[K];R[K]==null&&te.from!=null&&R[te.from]!=null&&(R[K]=Ll)}R[M]!=null&&fr(!0);let P={};for(let K in R){let te=R[K];if(te!=null){let oe=P[K]=qo(k[K],Tx);if(te.min!=null)gn(oe,te);else if(K!=M||m==2)if(Sn==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=vt,oe.max=-vt}}if(Sn>0){L.forEach((K,te)=>{if(m==1){let oe=K.scale,de=R[oe];if(de==null)return;let be=P[oe];if(te==0){let _e=be.range(i,be.min,be.max,oe);be.min=_e[0],be.max=_e[1],mn=Oi(be.min,t[0]),vn=Oi(be.max,t[0]),vn-mn>1&&(t[0][mn]<be.min&&mn++,t[0][vn]>be.max&&vn--),K.min=zn[mn],K.max=zn[vn]}else K.show&&K.auto&&wo(be,de,K,t[te],K.sorted);K.idxs[0]=mn,K.idxs[1]=vn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,be=oe.scale,_e=de.scale,[ke,Ce]=t[te],Ee=P[be],Ke=P[_e];Ee!=null&&wo(Ee,R[be],oe,ke,oe.sorted),Ke!=null&&wo(Ke,R[_e],de,Ce,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=R[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==vt?null:te.min,te.max==-vt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let z={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?cr(oe.min):de==4?gu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?cr(oe.max):de==4?gu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,z[K]=Y=!0}}if(Y){L.forEach((K,te)=>{m==2?te>0&&z.y&&(K._paths=null):z[K.scale]&&(K._paths=null)});for(let K in z)Ut=!0,rn("setScale",K);He.show&&He.left>=0&&(Hn=ti=!0)}for(let K in R)R[K]=null}function os(P){let z=mu(mn-1,0,Sn-1),Y=mu(vn+1,0,Sn-1);for(;P[z]==null&&z>0;)z--;for(;P[Y]==null&&Y<Sn-1;)Y++;return[z,Y]}function Il(){Sn>0&&(L.forEach((P,z)=>{if(z>0&&P.show&&(Ol(z,!1),Ol(z,!0),P._paths==null)){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha);let Y=m==2?[0,t[z][0].length-1]:os(t[z]);P._paths=P.paths(i,z,Y[0],Y[1]),_i!=1&&(a.globalAlpha=_i=1)}}),L.forEach((P,z)=>{if(z>0&&P.show){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha),P._paths!=null&&ea(z,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,z,mn,vn,Y),te=P.points.filter(i,z,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,z,mn,vn,te),ea(z,!0))}_i!=1&&(a.globalAlpha=_i=1),rn("drawSeries",z)}}))}function Ol(P,z){let Y=z?L[P].points:L[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function ea(P,z){let Y=z?L[P].points:L[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:be=Y._stroke,_fill:_e=Y._fill,_width:ke=Y.width}=Y._paths;ke=Dt(ke*$t,3);let Ce=null,Ee=ke%2/2;z&&_e==null&&(_e=ke>0?"#fff":be);let Ke=Y.pxAlign==1&&Ee>0;if(Ke&&a.translate(Ee,Ee),!z){let Lt=Ye-ke/2,rt=pt-ke/2,Ge=ft+ke,Qe=ct+ke;Ce=new Path2D,Ce.rect(Lt,rt,Ge,Qe)}z?ta(be,ke,Y.dash,Y.cap,_e,K,te,de,oe):Dl(P,be,ke,Y.dash,Y.cap,_e,K,te,de,Ce,oe),Ke&&a.translate(-Ee,-Ee)}function Dl(P,z,Y,K,te,oe,de,be,_e,ke,Ce){let Ee=!1;_e!=0&&x.forEach((Ke,Lt)=>{if(Ke.series[0]==P){let rt=L[Ke.series[1]],Ge=t[Ke.series[1]],Qe=(rt._paths||Ns).band;Rr(Qe)&&(Qe=Ke.dir==1?Qe[0]:Qe[1]);let Ie,At=null;rt.show&&Qe&&kx(Ge,mn,vn)?(At=Ke.fill(i,Lt)||oe,Ie=rt._paths.clip):Qe=null,ta(z,Y,K,te,At,de,be,_e,ke,Ce,Ie,Qe),Ee=!0}}),Ee||ta(z,Y,K,te,oe,de,be,_e,ke,Ce)}const ss=Yo|Au;function ta(P,z,Y,K,te,oe,de,be,_e,ke,Ce,Ee){Xs(P,z,Y,K,te),(_e||ke||Ee)&&(a.save(),_e&&a.clip(_e),ke&&a.clip(ke)),Ee?(be&ss)==ss?(a.clip(Ee),Ce&&a.clip(Ce),Pr(te,de),bo(P,oe,z)):be&Au?(Pr(te,de),a.clip(Ee),bo(P,oe,z)):be&Yo&&(a.save(),a.clip(Ee),Ce&&a.clip(Ce),Pr(te,de),a.restore(),bo(P,oe,z)):(Pr(te,de),bo(P,oe,z)),(_e||ke||Ee)&&a.restore()}function bo(P,z,Y){Y>0&&(z instanceof Map?z.forEach((K,te)=>{a.strokeStyle=ts=te,a.stroke(K)}):z!=null&&P&&a.stroke(z))}function Pr(P,z){z instanceof Map?z.forEach((Y,K)=>{a.fillStyle=Fr=K,a.fill(Y)}):z!=null&&P&&a.fill(z)}function na(P,z,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,z,Y,K),be=te._incrs=te.incrs(i,P,z,Y,K,de);oe=W_(z,Y,be,K,de)}return te._found=oe}function Ji(P,z,Y,K,te,oe,de,be,_e,ke){let Ce=de%2/2;g==1&&a.translate(Ce,Ce),Xs(be,de,_e,ke,be),a.beginPath();let Ee,Ke,Lt,rt,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,rt=Ge):(Ee=te,Lt=Ge);for(let Qe=0;Qe<P.length;Qe++)z[Qe]!=null&&(Y==0?Ee=Lt=P[Qe]:Ke=rt=P[Qe],a.moveTo(Ee,Ke),a.lineTo(Lt,rt));a.stroke(),g==1&&a.translate(-Ce,-Ce)}function Nl(P){let z=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(z=!1,Y._show=!1,fr(!1));return}else Y._show||(z=!1,Y._show=!0,fr(!1));let oe=Y.side,de=oe%2,{min:be,max:_e}=te,[ke,Ce]=na(K,be,_e,de==0?Pe:ze);if(Ce==0)return;let Ee=te.distr==2,Ke=Y._splits=Y.splits(i,K,be,_e,ke,Ce,Ee),Lt=te.distr==2?Ke.map(Ie=>zn[Ie]):Ke,rt=te.distr==2?zn[Ke[1]]-zn[Ke[0]]:ke,Ge=Y._values=Y.values(i,Y.filter(i,Lt,K,Ce,rt),K,Ce,rt);Y._rotate=oe==2?Y.rotate(i,Ge,K,Ce):0;let Qe=Y._size;Y._size=bi(Y.size(i,Ge,K,P)),Qe!=null&&Y._size!=Qe&&(z=!1)}),z}function Fl(P){let z=!0;return El.forEach((Y,K)=>{let te=Y(i,K,pr,P);te!=Xi[K]&&(z=!1),Xi[K]=te}),z}function Kh(){for(let P=0;P<A.length;P++){let z=A[P];if(!z.show||!z._show)continue;let Y=z.side,K=Y%2,te,oe,de=z.stroke(i,P),be=Y==0||Y==3?-1:1;if(z.label){let Mn=z.labelGap*be,Kn=_n((z._lpos+Mn)*$t);Js(z.labelFont[0],de,"center",Y==2?Is:Of),a.save(),K==1?(te=oe=0,a.translate(Kn,_n(pt+ct/2)),a.rotate((Y==3?-el:el)/2)):(te=_n(Ye+ft/2),oe=Kn),a.fillText(z.label,te,oe),a.restore()}let[_e,ke]=z._found;if(ke==0)continue;let Ce=k[z.scale],Ee=K==0?ft:ct,Ke=K==0?Ye:pt,Lt=_n(z.gap*$t),rt=z._splits,Ge=Ce.distr==2?rt.map(Mn=>zn[Mn]):rt,Qe=Ce.distr==2?zn[rt[1]]-zn[rt[0]]:_e,Ie=z.ticks,At=z.border,Xt=Ie.show?_n(Ie.size*$t):0,Gt=z._rotate*-el/180,Pt=y(z._pos*$t),Ht=(Xt+Lt)*be,ne=Pt+Ht;oe=K==0?ne:0,te=K==1?ne:0;let le=z.font[0],se=z.align==1?Bo:z.align==2?iu:Gt>0?Bo:Gt<0?iu:K==0?"center":Y==3?iu:Bo,Se=Gt||K==1?"middle":Y==2?Is:Of;Js(le,de,se,Se);let Fe=z.font[1]*z.lineGap,Ze=rt.map(Mn=>y(h(Mn,Ce,Ee,Ke))),Mt=z._values;for(let Mn=0;Mn<Mt.length;Mn++){let Kn=Mt[Mn];if(Kn!=null){K==0?te=Ze[Mn]:oe=Ze[Mn],Kn=""+Kn;let Tn=Kn.indexOf(`
1410
+ `)==-1?[Kn]:Kn.split(/\n/gm);for(let fi=0;fi<Tn.length;fi++){let ri=Tn[fi];Gt?(a.save(),a.translate(te,oe+fi*Fe),a.rotate(Gt),a.fillText(ri,0,0),a.restore()):a.fillText(ri,te,oe+fi*Fe)}}}Ie.show&&Ji(Ze,Ie.filter(i,Ge,P,ke,Qe),K,Y,Pt,Xt,Dt(Ie.width*$t,3),Ie.stroke(i,P),Ie.dash,Ie.cap);let Xe=z.grid;Xe.show&&Ji(Ze,Xe.filter(i,Ge,P,ke,Qe),K,K==0?2:1,K==0?pt:Ye,K==0?ct:ft,Dt(Xe.width*$t,3),Xe.stroke(i,P),Xe.dash,Xe.cap),At.show&&Ji([Pt],[1],K==0?1:0,K==0?1:2,K==1?pt:Ye,K==1?ct:ft,Dt(At.width*$t,3),At.stroke(i,P),At.dash,At.cap)}rn("drawAxes")}function fr(P){L.forEach((z,Y)=>{Y>0&&(z._paths=null,P&&(m==1?(z.min=null,z.max=null):z.facets.forEach(K=>{K.min=null,K.max=null})))})}let xo=!1,as=!1,Hr=[];function Zh(){as=!1;for(let P=0;P<Hr.length;P++)rn(...Hr[P]);Hr.length=0}function Br(){xo||(Nx(ia),xo=!0)}function Qh(P,z=!1){xo=!0,as=z,P(i),ia(),z&&Hr.length>0&&queueMicrotask(Zh)}i.batch=Qh;function ia(){if(ut&&(Rl(),ut=!1),Ut&&(jh(),Ut=!1),it){if(Wt(o,Bo,nn),Wt(o,Is,We),Wt(o,Ls,Pe),Wt(o,Rs,ze),Wt(u,Bo,nn),Wt(u,Is,We),Wt(u,Ls,Pe),Wt(u,Rs,ze),Wt(l,Ls,$n),Wt(l,Rs,tn),c.width=_n($n*$t),c.height=_n(tn*$t),A.forEach(({_el:P,_show:z,_size:Y,_pos:K,side:te})=>{if(P!=null)if(z){let oe=te===3||te===0?Y:0,de=te%2==1;Wt(P,de?"left":"top",K-oe),Wt(P,de?"width":"height",Y),Wt(P,de?"top":"left",de?We:nn),Wt(P,de?"height":"width",de?ze:Pe),cu(P,ao)}else ui(P,ao)}),ts=Fr=ns=rs=Ys=Ks=Zs=Qs=is=null,_i=1,ko(!0),nn!=ce||We!=Me||Pe!=Re||ze!=qe){fr(!1);let P=Pe/Re,z=ze/qe;if(He.show&&!Hn&&He.left>=0){He.left*=P,He.top*=z,zr&&Vi(zr,_n(He.left),0,Pe,ze),er&&Vi(er,0,_n(He.top),Pe,ze);for(let Y=0;Y<Bn.length;Y++){let K=Bn[Y];K!=null&&(Or[Y]*=P,Dr[Y]*=z,Vi(K,bi(Or[Y]),bi(Dr[Y]),Pe,ze))}}if(Ft.show&&!hr&&Ft.left>=0&&Ft.width>0){Ft.left*=P,Ft.width*=P,Ft.top*=z,Ft.height*=z;for(let Y in ca)Wt(gr,Y,Ft[Y])}ce=nn,Me=We,Re=Pe,qe=ze}rn("setSize"),it=!1}$n>0&&tn>0&&(a.clearRect(0,0,c.width,c.height),rn("drawClear"),I.forEach(P=>P()),rn("draw")),Ft.show&&hr&&(ls(Ft),hr=!1),He.show&&Hn&&(jn(null,!0,!1),Hn=!1),J.show&&J.live&&ti&&(_o(),ti=!1),f||(f=!0,i.status=1,rn("ready")),vo=!1,xo=!1}i.redraw=(P,z)=>{Ut=z||!1,P!==!1?ki(M,N.min,N.max):Br()};function ra(P,z){let Y=k[P];if(Y.from==null){if(Sn==0){let K=Y.range(i,z.min,z.max,P);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(Sn>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;P==M&&Y.distr==2&&Sn>0&&(z.min=Oi(z.min,t[0]),z.max=Oi(z.max,t[0]),z.min==z.max&&z.max++),R[P]=z,ut=!0,Br()}}i.setScale=ra;let oa,sa,zr,er,Pl,Hl,jr,Wr,Bl,It,Be,zt,tr=!1;const Cn=He.drag;let yn=Cn.x,wn=Cn.y;He.show&&(He.x&&(oa=wi(ax,u)),He.y&&(sa=wi(lx,u)),N.ori==0?(zr=oa,er=sa):(zr=sa,er=oa),Be=He.left,zt=He.top);const Ft=i.select=gn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),gr=Ft.show?wi(sx,Ft.over?u:o):null;function ls(P,z){if(Ft.show){for(let Y in P)Ft[Y]=P[Y],Y in ca&&Wt(gr,Y,P[Y]);z!==!1&&rn("setSelect")}}i.setSelect=ls;function An(P,z){let Y=L[P],K=G?ve[P]:null;if(Y.show)K&&cu(K,ao);else{K&&ui(K,ao);let te=Ir?Bn[0]:Bn[P];Vi(te,-10,-10,Pe,ze)}}function ki(P,z,Y){ra(P,{min:z,max:Y})}function Rn(P,z,Y,K){z.focus!=null&&Wl(P),z.show!=null&&L.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=z.show,An(oe,z.show),m==2?(ki(te.facets[0].scale,null,null),ki(te.facets[1].scale,null,null)):ki(te.scale,null,null),Br())}),Y!==!1&&rn("setSeries",P,z),K&&Fi("setSeries",i,P,z)}i.setSeries=Rn;function zl(P,z){gn(x[P],z)}function aa(P,z){P.fill=yt(P.fill||null),P.dir=_t(P.dir,-1),z=z??x.length,x.splice(z,0,P)}function ni(P){P==null?x.length=0:x.splice(P,1)}i.addBand=aa,i.setBand=zl,i.delBand=ni;function jl(P,z){L[P].alpha=z,He.show&&Bn[P]&&(Bn[P].style.opacity=z),G&&ve[P]&&(ve[P].style.opacity=z)}let $i,Ni,nr;const mr={focus:!0};function Wl(P){if(P!=nr){let z=P==null,Y=Zi.alpha!=1;L.forEach((K,te)=>{if(m==1||te>0){let oe=z||te==0||te==P;K._focus=z?null:oe,Y&&jl(te,oe?1:Zi.alpha)}}),nr=P,Y&&Br()}}G&&Qi&&Zt(Hf,ie,P=>{He._lock||(dr(P),nr!=null&&Rn(null,mr,!0,Qt.setSeries))});function qt(P,z,Y){let K=k[z];Y&&(P=P/$t-(K.ori==1?We:nn));let te=Pe;K.ori==1&&(te=ze,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,be=P/te,_e=oe+(de-oe)*be,ke=K.distr;return ke==3?Uo(10,_e):ke==4?Sx(_e,K.asinh):ke==100?K.bwd(_e):_e}function Xh(P,z){let Y=qt(P,M,z);return Oi(Y,t[0],mn,vn)}i.valToIdx=P=>Oi(P,t[0]),i.posToIdx=Xh,i.posToVal=qt,i.valToPos=(P,z,Y)=>k[z].ori==0?v(P,k[z],Y?ft:Pe,Y?Ye:0):w(P,k[z],Y?ct:ze,Y?pt:0),i.setCursor=(P,z,Y)=>{Be=P.left,zt=P.top,jn(null,z,Y)};function Yn(P,z){Wt(gr,Bo,Ft.left=P),Wt(gr,Ls,Ft.width=z)}function Ul(P,z){Wt(gr,Is,Ft.top=P),Wt(gr,Rs,Ft.height=z)}let Ur=N.ori==0?Yn:Ul,ii=N.ori==1?Yn:Ul;function cs(){if(G&&J.live)for(let P=m==2?1:0;P<L.length;P++){if(P==0&&$e)continue;let z=J.values[P],Y=0;for(let K in z)we[P][Y++].firstChild.nodeValue=z[K]}}function _o(P,z){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):Mx(P.idx)||q.fill(P.idx),J.idx=q[0]),G&&J.live){for(let Y=0;Y<L.length;Y++)(Y>0||m==1&&!$e)&&jt(Y,q[Y]);cs()}ti=!1,z!==!1&&rn("setLegend")}i.setLegend=_o;function jt(P,z){let Y=L[P],K=P==0&&$==2?zn:t[P],te;$e?te=Y.values(i,P,z)??at:(te=Y.value(i,z==null?null:K[z],P,z),te=te==null?at:{_:te}),J.values[P]=te}function jn(P,z,Y){Bl=Be,It=zt,[Be,zt]=He.move(i,Be,zt),He.left=Be,He.top=zt,He.show&&(zr&&Vi(zr,_n(Be),0,Pe,ze),er&&Vi(er,0,_n(zt),Pe,ze));let K,te=mn>vn;$i=vt,Ni=null;let oe=N.ori==0?Pe:ze,de=N.ori==1?Pe:ze;if(Be<0||Sn==0||te){K=He.idx=null;for(let be=0;be<L.length;be++){let _e=Bn[be];_e!=null&&Vi(_e,-10,-10,Pe,ze)}Qi&&Rn(null,mr,!0,P==null&&Qt.setSeries),J.live&&(q.fill(K),ti=!0)}else{let be,_e,ke;m==1&&(be=N.ori==0?Be:zt,_e=qt(be,M),K=He.idx=Oi(_e,t[0],mn,vn),ke=_(t[0][K],N,oe,0));let Ce=-10,Ee=-10,Ke=0,Lt=0,rt=!0,Ge="",Qe="";for(let Ie=m==2?1:0;Ie<L.length;Ie++){let At=L[Ie],Xt=q[Ie],Gt=Xt==null?null:m==1?t[Ie][Xt]:t[Ie][1][Xt],Pt=He.dataIdx(i,Ie,K,_e),Ht=Pt==null?null:m==1?t[Ie][Pt]:t[Ie][1][Pt];ti=ti||Ht!=Gt||Pt!=Xt,q[Ie]=Pt;let ne=Pt==K?ke:_(m==1?t[0][Pt]:t[Ie][0][Pt],N,oe,0);if(Ie>0&&At.show){let le=Ht==null?-10:S(Ht,m==1?k[At.scale]:k[At.facets[1].scale],de,0);if(Qi&&Ht!=null){let se=N.ori==1?Be:zt,Se=xn(Zi.dist(i,Ie,Pt,le,se));if(Se<$i){let Fe=Zi.bias;if(Fe!=0){let Ze=qt(se,At.scale),Mt=Ht>=0?1:-1,Xe=Ze>=0?1:-1;Xe==Mt&&(Xe==1?Fe==1?Ht>=Ze:Ht<=Ze:Fe==1?Ht<=Ze:Ht>=Ze)&&($i=Se,Ni=Ie)}else $i=Se,Ni=Ie}}if(ti||Ir){let se,Se;N.ori==0?(se=ne,Se=le):(se=le,Se=ne);let Fe,Ze,Mt,Xe,Mn,Kn,Tn=!0,fi=Ln.bbox;if(fi!=null){Tn=!1;let ri=fi(i,Ie);Mt=ri.left,Xe=ri.top,Fe=ri.width,Ze=ri.height}else Mt=se,Xe=Se,Fe=Ze=Ln.size(i,Ie);if(Kn=Ln.fill(i,Ie),Mn=Ln.stroke(i,Ie),Ir)Ie==Ni&&$i<=Zi.prox&&(Ce=Mt,Ee=Xe,Ke=Fe,Lt=Ze,rt=Tn,Ge=Kn,Qe=Mn);else{let ri=Bn[Ie];ri!=null&&(Or[Ie]=Mt,Dr[Ie]=Xe,qf(ri,Fe,Ze,Tn),Uf(ri,Kn,Mn),Vi(ri,bi(Mt),bi(Xe),Pe,ze))}}}}if(Ir){let Ie=Zi.prox,At=nr==null?$i<=Ie:$i>Ie||Ni!=nr;if(ti||At){let Xt=Bn[0];Or[0]=Ce,Dr[0]=Ee,qf(Xt,Ke,Lt,rt),Uf(Xt,Ge,Qe),Vi(Xt,bi(Ce),bi(Ee),Pe,ze)}}}if(Ft.show&&tr)if(P!=null){let[be,_e]=Qt.scales,[ke,Ce]=Qt.match,[Ee,Ke]=P.cursor.sync.scales,Lt=P.cursor.drag;if(yn=Lt._x,wn=Lt._y,yn||wn){let{left:rt,top:Ge,width:Qe,height:Ie}=P.select,At=P.scales[Ee].ori,Xt=P.posToVal,Gt,Pt,Ht,ne,le,se=be!=null&&ke(be,Ee),Se=_e!=null&&Ce(_e,Ke);se&&yn?(At==0?(Gt=rt,Pt=Qe):(Gt=Ge,Pt=Ie),Ht=k[be],ne=_(Xt(Gt,Ee),Ht,oe,0),le=_(Xt(Gt+Pt,Ee),Ht,oe,0),Ur(xi(ne,le),xn(le-ne))):Ur(0,oe),Se&&wn?(At==1?(Gt=rt,Pt=Qe):(Gt=Ge,Pt=Ie),Ht=k[_e],ne=S(Xt(Gt,Ke),Ht,de,0),le=S(Xt(Gt+Pt,Ke),Ht,de,0),ii(xi(ne,le),xn(le-ne))):ii(0,de)}else hs()}else{let be=xn(Bl-Pl),_e=xn(It-Hl);if(N.ori==1){let Ke=be;be=_e,_e=Ke}yn=Cn.x&&be>=Cn.dist,wn=Cn.y&&_e>=Cn.dist;let ke=Cn.uni;ke!=null?yn&&wn&&(yn=be>=ke,wn=_e>=ke,!yn&&!wn&&(_e>be?wn=!0:yn=!0)):Cn.x&&Cn.y&&(yn||wn)&&(yn=wn=!0);let Ce,Ee;yn&&(N.ori==0?(Ce=jr,Ee=Be):(Ce=Wr,Ee=zt),Ur(xi(Ce,Ee),xn(Ee-Ce)),wn||ii(0,de)),wn&&(N.ori==1?(Ce=jr,Ee=Be):(Ce=Wr,Ee=zt),ii(xi(Ce,Ee),xn(Ee-Ce)),yn||Ur(0,oe)),!yn&&!wn&&(Ur(0,0),ii(0,0))}if(Cn._x=yn,Cn._y=wn,P==null){if(Y){if(Wn!=null){let[be,_e]=Qt.scales;Qt.values[0]=be!=null?qt(N.ori==0?Be:zt,be):null,Qt.values[1]=_e!=null?qt(N.ori==1?Be:zt,_e):null}Fi(Nf,i,Be,zt,Pe,ze,K)}if(Qi){let be=Y&&Qt.setSeries,_e=Zi.prox;nr==null?$i<=_e&&Rn(Ni,mr,!0,be):$i>_e?Rn(null,mr,!0,be):Ni!=nr&&Rn(Ni,mr,!0,be)}}ti&&(J.idx=K,_o()),z!==!1&&rn("setCursor")}let Si=null;Object.defineProperty(i,"rect",{get(){return Si==null&&ko(!1),Si}});function ko(P=!1){P?Si=null:(Si=u.getBoundingClientRect(),rn("syncRect",Si))}function us(P,z,Y,K,te,oe,de){He._lock||tr&&P!=null&&P.movementX==0&&P.movementY==0||(la(P,z,Y,K,te,oe,de,!1,P!=null),P!=null?jn(null,!0,!0):jn(z,!0,!1))}function la(P,z,Y,K,te,oe,de,be,_e){if(Si==null&&ko(!1),dr(P),P!=null)Y=P.clientX-Si.left,K=P.clientY-Si.top;else{if(Y<0||K<0){Be=-10,zt=-10;return}let[ke,Ce]=Qt.scales,Ee=z.cursor.sync,[Ke,Lt]=Ee.values,[rt,Ge]=Ee.scales,[Qe,Ie]=Qt.match,At=z.axes[0].side%2==1,Xt=N.ori==0?Pe:ze,Gt=N.ori==1?Pe:ze,Pt=At?oe:te,Ht=At?te:oe,ne=At?K:Y,le=At?Y:K;if(rt!=null?Y=Qe(ke,rt)?h(Ke,k[ke],Xt,0):-10:Y=Xt*(ne/Pt),Ge!=null?K=Ie(Ce,Ge)?h(Lt,k[Ce],Gt,0):-10:K=Gt*(le/Ht),N.ori==1){let se=Y;Y=K,K=se}}_e&&((Y<=1||Y>=Pe-1)&&(Y=uo(Y,Pe)),(K<=1||K>=ze-1)&&(K=uo(K,ze))),be?(Pl=Y,Hl=K,[jr,Wr]=He.move(i,Y,K)):(Be=Y,zt=K)}const ca={width:0,height:0,left:0,top:0};function hs(){ls(ca,!1)}let ua,$o,vr,Vl;function ha(P,z,Y,K,te,oe,de){tr=!0,yn=wn=Cn._x=Cn._y=!1,la(P,z,Y,K,te,oe,de,!0,!1),P!=null&&(Zt(ou,au,da,!1),Fi(Ff,i,jr,Wr,Pe,ze,null));let{left:be,top:_e,width:ke,height:Ce}=Ft;ua=be,$o=_e,vr=ke,Vl=Ce,hs()}function da(P,z,Y,K,te,oe,de){tr=Cn._x=Cn._y=!1,la(P,z,Y,K,te,oe,de,!1,!0);let{left:be,top:_e,width:ke,height:Ce}=Ft,Ee=ke>0||Ce>0,Ke=ua!=be||$o!=_e||vr!=ke||Vl!=Ce;if(Ee&&Ke&&ls(Ft),Cn.setScale&&Ee&&Ke){let Lt=be,rt=ke,Ge=_e,Qe=Ce;if(N.ori==1&&(Lt=_e,rt=Ce,Ge=be,Qe=ke),yn&&ki(M,qt(Lt,M),qt(Lt+rt,M)),wn)for(let Ie in k){let At=k[Ie];Ie!=M&&At.from==null&&At.min!=vt&&ki(Ie,qt(Ge+Qe,Ie),qt(Ge,Ie))}hs()}else He.lock&&(He._lock=!He._lock,jn(null,!0,!1));P!=null&&(Ki(ou,au),Fi(ou,i,Be,zt,Pe,ze,null))}function pa(P,z,Y,K,te,oe,de){if(He._lock)return;dr(P);let be=tr;if(tr){let _e=!0,ke=!0,Ce=10,Ee,Ke;N.ori==0?(Ee=yn,Ke=wn):(Ee=wn,Ke=yn),Ee&&Ke&&(_e=Be<=Ce||Be>=Pe-Ce,ke=zt<=Ce||zt>=ze-Ce),Ee&&_e&&(Be=Be<jr?0:Pe),Ke&&ke&&(zt=zt<Wr?0:ze),jn(null,!0,!0),tr=!1}Be=-10,zt=-10,jn(null,!0,!0),be&&(tr=be)}function ds(P,z,Y,K,te,oe,de){He._lock||(dr(P),Gs(),hs(),P!=null&&Fi(Bf,i,Be,zt,Pe,ze,null))}function fa(){A.forEach(U_),Vs(i.width,i.height,!0)}lo(Za,jo,fa);const Vr={};Vr.mousedown=ha,Vr.mousemove=us,Vr.mouseup=da,Vr.dblclick=ds,Vr.setSeries=(P,z,Y,K)=>{let te=Qt.match[2];Y=te(i,z,Y),Y!=-1&&Rn(Y,K,!0,!1)},He.show&&(Zt(Ff,u,ha),Zt(Nf,u,us),Zt(Pf,u,P=>{dr(P),ko(!1)}),Zt(Hf,u,pa),Zt(Bf,u,ds),Lu.add(i),i.syncRect=ko);const qr=i.hooks=n.hooks||{};function rn(P,z,Y){as?Hr.push([P,z,Y]):P in qr&&qr[P].forEach(K=>{K.call(null,i,z,Y)})}(n.plugins||[]).forEach(P=>{for(let z in P.hooks)qr[z]=(qr[z]||[]).concat(P.hooks[z])});const ql=(P,z,Y)=>Y,Qt=gn({key:null,setSeries:!1,filters:{pub:eg,sub:eg},scales:[M,L[1]?L[1].scale:null],match:[tg,tg,ql],values:[null,null]},He.sync);Qt.match.length==2&&Qt.match.push(ql),He.sync=Qt;const Wn=Qt.key,So=Hg(Wn);function Fi(P,z,Y,K,te,oe,de){Qt.filters.pub(P,z,Y,K,te,oe,de)&&So.pub(P,z,Y,K,te,oe,de)}So.sub(i);function Gl(P,z,Y,K,te,oe,de){Qt.filters.sub(P,z,Y,K,te,oe,de)&&Vr[P](null,z,Y,K,te,oe,de)}i.pub=Gl;function Yl(){So.unsub(i),Lu.delete(i),Nt.clear(),hu(Za,jo,fa),s.remove(),ie==null||ie.remove(),rn("destroy")}i.destroy=Yl;function ga(){rn("init",n,t),yo(t||n.data,!1),R[M]?ra(M,R[M]):Gs(),hr=Ft.show&&(Ft.width>0||Ft.height>0),Hn=ti=!0,Vs(n.width,n.height)}return L.forEach(Tl),A.forEach(Yh),e?e instanceof HTMLElement?(e.appendChild(s),ga()):e(i,ga):ga(),i}Fn.assign=gn,Fn.fmtNum=fu,Fn.rangeNum=Ja,Fn.rangeLog=Xa,Fn.rangeAsinh=du,Fn.orient=po,Fn.pxRatio=$t,Fn.join=Dx,Fn.fmtDate=yu,Fn.tzDate=qx,Fn.sync=Hg;{Fn.addGap=M_,Fn.clipGaps=sl;let n=Fn.paths={points:qg};n.linear=Yg,n.stepped=L_,n.bars=R_,n.spline=O_}var nm,im;function V_(){return im||(im=1,nm=function(n,t,e,i,m){var p,v;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(m===void 0)m=n.length-1;else if(m=m|0,m<i||m>=n.length)throw new RangeError("invalid upper bound");for(;i<=m;)if(p=i+(m-i>>>1),v=+e(n[p],t,p,n),v<0)i=p+1;else if(v>0)m=p-1;else return p;return~i}),nm}var q_=V_();const cI=dn("d",Ra(q_));var Iu,rm;function G_(){if(rm)return Iu;rm=1;function n(t,e,i){var m=-1,p=t.length;e<0&&(e=-e>p?0:p+e),i=i>p?p:i,i<0&&(i+=p),p=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(p);++m<p;)v[m]=t[m+e];return v}return Iu=n,Iu}var Ou,om;function Y_(){if(om)return Ou;om=1;var n=G_();function t(e,i,m){var p=e.length;return m=m===void 0?p:m,!i&&m>=p?e:n(e,i,m)}return Ou=t,Ou}var Du,sm;function am(){if(sm)return Du;sm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+p+"]");function h(f){return w.test(f)}return Du=h,Du}var Nu,lm;function K_(){if(lm)return Nu;lm=1;function n(t){return t.split("")}return Nu=n,Nu}var Fu,cm;function Z_(){if(cm)return Fu;cm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+w+"|"+h+")",s="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=f+"?",u="["+p+"]?",g="(?:"+l+"(?:"+[s,c,a].join("|")+")"+u+o+")*",y=u+o+g,b="(?:"+[s+w+"?",w,c,a,v].join("|")+")",L=RegExp(h+"(?="+h+")|"+b+y,"g");function A(k){return k.match(L)||[]}return Fu=A,Fu}var Pu,um;function Q_(){if(um)return Pu;um=1;var n=K_(),t=am(),e=Z_();function i(m){return t(m)?e(m):n(m)}return Pu=i,Pu}var Hu,hm;function X_(){if(hm)return Hu;hm=1;var n=typeof Er=="object"&&Er&&Er.Object===Object&&Er;return Hu=n,Hu}var Bu,dm;function J_(){if(dm)return Bu;dm=1;var n=X_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Bu=e,Bu}var zu,pm;function ju(){if(pm)return zu;pm=1;var n=J_(),t=n.Symbol;return zu=t,zu}var Wu,fm;function ek(){if(fm)return Wu;fm=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,p=Array(m);++i<m;)p[i]=e(t[i],i,t);return p}return Wu=n,Wu}var Uu,gm;function tk(){if(gm)return Uu;gm=1;var n=Array.isArray;return Uu=n,Uu}var Vu,mm;function nk(){if(mm)return Vu;mm=1;var n=ju(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function p(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var f=!0}catch{}var s=i.call(v);return f&&(w?v[m]=h:delete v[m]),s}return Vu=p,Vu}var qu,vm;function ik(){if(vm)return qu;vm=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return qu=e,qu}var Gu,ym;function rk(){if(ym)return Gu;ym=1;var n=ju(),t=nk(),e=ik(),i="[object Null]",m="[object Undefined]",p=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:p&&p in Object(w)?t(w):e(w)}return Gu=v,Gu}var Yu,wm;function ok(){if(wm)return Yu;wm=1;function n(t){return t!=null&&typeof t=="object"}return Yu=n,Yu}var Ku,bm;function sk(){if(bm)return Ku;bm=1;var n=rk(),t=ok(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Ku=i,Ku}var Zu,xm;function ak(){if(xm)return Zu;xm=1;var n=ju(),t=ek(),e=tk(),i=sk(),m=1/0,p=n?n.prototype:void 0,v=p?p.toString:void 0;function w(h){if(typeof h=="string")return h;if(e(h))return t(h,w)+"";if(i(h))return v?v.call(h):"";var f=h+"";return f=="0"&&1/h==-m?"-0":f}return Zu=w,Zu}var Qu,_m;function ul(){if(_m)return Qu;_m=1;var n=ak();function t(e){return e==null?"":n(e)}return Qu=t,Qu}var Xu,km;function lk(){if(km)return Xu;km=1;var n=Y_(),t=am(),e=Q_(),i=ul();function m(p){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),f=w?n(w,1).join(""):v.slice(1);return h[p]()+f}}return Xu=m,Xu}var Ju,$m;function Sm(){if($m)return Ju;$m=1;var n=lk(),t=n("toUpperCase");return Ju=t,Ju}var ck=Sm();const uk=Ra(ck);var eh,Cm;function hk(){if(Cm)return eh;Cm=1;var n=ul(),t=Sm();function e(i){return t(n(i).toLowerCase())}return eh=e,eh}var th,Am;function dk(){if(Am)return th;Am=1;function n(t,e,i,m){var p=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++p]);++p<v;)i=e(i,t[p],p,t);return i}return th=n,th}var nh,Mm;function pk(){if(Mm)return nh;Mm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return nh=n,nh}var ih,Tm;function fk(){if(Tm)return ih;Tm=1;var n=pk(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=n(t);return ih=e,ih}var rh,Em;function gk(){if(Em)return rh;Em=1;var n=fk(),t=ul(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",v=i+m+p,w="["+v+"]",h=RegExp(w,"g");function f(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return rh=f,rh}var oh,Lm;function mk(){if(Lm)return oh;Lm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return oh=t,oh}var sh,Rm;function vk(){if(Rm)return sh;Rm=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return sh=t,sh}var ah,Im;function yk(){if(Im)return ah;Im=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\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+f+s,o="['’]",u="["+l+"]",g="["+m+"]",y="\\d+",b="["+p+"]",L="["+v+"]",A="[^"+n+l+y+p+v+c+"]",k="\\ud83c[\\udffb-\\udfff]",x="(?:"+g+"|"+k+")",M="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+c+"]",N="\\u200d",$="(?:"+L+"|"+A+")",_="(?:"+T+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",R="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",F="["+a+"]?",H="(?:"+N+"(?:"+[M,E,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,J="(?:"+[b,E,I].join("|")+")"+q,G=RegExp([T+"?"+L+"+"+S+"(?="+[u,T,"$"].join("|")+")",_+"+"+R+"(?="+[u,T+$,"$"].join("|")+")",T+"?"+$+"+"+S,T+"+"+R,V,W,y,J].join("|"),"g");function Q(ie){return ie.match(G)||[]}return ah=Q,ah}var lh,Om;function wk(){if(Om)return lh;Om=1;var n=mk(),t=vk(),e=ul(),i=yk();function m(p,v,w){return p=e(p),v=w?void 0:v,v===void 0?t(p)?i(p):n(p):p.match(v)||[]}return lh=m,lh}var ch,Dm;function bk(){if(Dm)return ch;Dm=1;var n=dk(),t=gk(),e=wk(),i="['’]",m=RegExp(i,"g");function p(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return ch=p,ch}var uh,Nm;function xk(){if(Nm)return uh;Nm=1;var n=hk(),t=bk(),e=t(function(i,m,p){return m=m.toLowerCase(),i+(p?n(m):m)});return uh=e,uh}var _k=xk();const kk=Ra(_k),$k=Object.assign({"./ArrayWidget.vue":()=>Ne(()=>De.import("./ArrayWidget-BTxChSds-b442fb0c83806f2a7155.js"),void 0),"./BlockWidget.vue":()=>Ne(()=>De.import("./BlockWidget-PmjzrkXF-66124d27fec936836764.js"),void 0),"./ButtonWidget.vue":()=>Ne(()=>De.import("./ButtonWidget-nwDlOBJT-74b0307919435ba34bc0.js"),void 0),"./CanvasWidget.vue":()=>Ne(()=>De.import("./CanvasWidget-BL8930eT-27842c7c22b339b98e51.js"),void 0),"./CanvasdotWidget.vue":()=>Ne(()=>De.import("./CanvasdotWidget-VCf1fL-G-3222ffa0793edfcc58b9.js"),void 0),"./CanvasimageWidget.vue":()=>Ne(()=>De.import("./CanvasimageWidget-BIw7Wbf2-da3e74a41067206c20c7.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ne(()=>De.import("./CanvasimagevalueWidget-CE3Dj5bH-402c7188c011ef3c6974.js"),void 0),"./CanvaslabelWidget.vue":()=>Ne(()=>De.import("./CanvaslabelWidget-DWmb356h-45266fb96c5c19e29535.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ne(()=>De.import("./CanvaslabelvalueWidget-CI3yYwFs-d47df2b589764613f819.js"),void 0),"./CanvaslineWidget.vue":()=>Ne(()=>De.import("./CanvaslineWidget-COeapH3P-99c09c560599b697ce65.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ne(()=>De.import("./CanvaslinevalueWidget-CI-Bbzfi-1411f381997d7567aa3b.js"),void 0),"./CheckbuttonWidget.vue":()=>Ne(()=>De.import("./CheckbuttonWidget-BQhggcZ2-2c444bdd2fdec2093442.js"),void 0),"./ComboboxWidget.vue":()=>Ne(()=>De.import("./ComboboxWidget-BzsbOv54-625fab6cb3f3fac91459.js"),void 0),"./DateWidget.vue":()=>Ne(()=>De.import("./DateWidget-B5R_9rA8-bf0e9b2c2d844495dd04.js"),void 0),"./DynamicWidget.vue":()=>Ne(()=>De.import("./DynamicWidget-m9EliUR2-d64e51887657bfc4d03f.js"),void 0),"./FormatvalueWidget.vue":()=>Ne(()=>De.import("./FormatvalueWidget-DZkRJce8-7421198bc6589347b0a4.js"),void 0),"./HorizontalWidget.vue":()=>Ne(()=>De.import("./HorizontalWidget-CirtfuL8-dc699acf1b526f0a14c4.js"),void 0),"./HorizontalboxWidget.vue":()=>Ne(()=>De.import("./HorizontalboxWidget-CyTDt2nl-4e0a6393e5e21e54b369.js"),void 0),"./HorizontallineWidget.vue":()=>Ne(()=>De.import("./HorizontallineWidget-BdlNB951-6bf4113b8d85559b4492.js"),void 0),"./IframeWidget.vue":()=>Ne(()=>De.import("./IframeWidget-DnJmCrCA-f3667cd357ba9a81dcc4.js"),void 0),"./ImageviewerWidget.vue":()=>Ne(()=>De.import("./ImageviewerWidget-DIkmb_C9-57e0b16d4cc3b0795a4e.js"),void 0),"./LabelWidget.vue":()=>Ne(()=>De.import("./LabelWidget-BDsypYho-82779e87dbb6e157d403.js"),void 0),"./LabelledWidget.vue":()=>Ne(()=>De.import("./LabelledWidget-DjturGl5-ac54d7a82f0cf056bf05.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ne(()=>De.import("./LabelprogressbarWidget-RADJGLj3-ff7bcc6fbf5aed7ad6eb.js"),void 0),"./LabelsparklineWidget.vue":()=>Ne(()=>De.import("./LabelsparklineWidget-BlJoICxu-549dff62b17f07fa1a4d.js"),void 0),"./LabelvalueWidget.vue":()=>Ne(()=>De.import("./LabelvalueWidget-DVWJqnlY-4b8678af8e6c3843f1af.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ne(()=>De.import("./LabelvaluedescWidget-CsUP7J4U-6425f7244247c5e8f75b.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitsbarWidget-Blj1QXV8-8cf7ae38507f8066ee5d.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitscolumnWidget-CvCo-uCe-9b7a1a45724b4dabdffb.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ne(()=>De.import("./LabelvaluerangebarWidget-DpcXhlfF-1b6fdabef37a98d952b9.js"),void 0),"./LedWidget.vue":()=>Ne(()=>De.import("./LedWidget-B_K2e5tq-677c4976f93116291b06.js"),void 0),"./LimitsbarWidget.vue":()=>Ne(()=>De.import("./LimitsbarWidget-DXbqsi4J-606f0852c745b1d75a71.js"),void 0),"./LimitscolorWidget.vue":()=>Ne(()=>De.import("./LimitscolorWidget-Ckmuw0YX-2b83ce7b7afe3b4b87c2.js"),void 0),"./LimitscolumnWidget.vue":()=>Ne(()=>De.import("./LimitscolumnWidget-BfY4su5U-f683680d74b03d48214e.js"),void 0),"./LinegraphWidget.vue":()=>Ne(()=>De.import("./LinegraphWidget-y-Qy9P0R-c7ed03e2084fae4a0342.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ne(()=>De.import("./MatrixbycolumnsWidget-BTBColrs-a5637f85840ad0341e64.js"),void 0),"./ProgressbarWidget.vue":()=>Ne(()=>De.import("./ProgressbarWidget-DpA_-vy9-5b5d66bee554250ddd13.js"),void 0),"./RadiobuttonWidget.vue":()=>Ne(()=>De.import("./RadiobuttonWidget-BO8zpgwW-5c50d2cff32ebf5ecae0.js"),void 0),"./RadiogroupWidget.vue":()=>Ne(()=>De.import("./RadiogroupWidget-Oy7V4S-V-84b6b69f058ff364a77e.js"),void 0),"./RangebarWidget.vue":()=>Ne(()=>De.import("./RangebarWidget-DHS7S3vI-831b1aa9bf7ada4c8982.js"),void 0),"./RollupWidget.vue":()=>Ne(()=>De.import("./RollupWidget-CTk9Kjwr-fee4b52c2d0ac0675fa1.js"),void 0),"./ScrollwindowWidget.vue":()=>Ne(()=>De.import("./ScrollwindowWidget-DD0TOW6s-d21f3e99b6007f66c57a.js"),void 0),"./SignalWidget.vue":()=>Ne(()=>De.import("./SignalWidget-CC33KMTW-25a228f34c6e80a7177b.js"),void 0),"./SpacerWidget.vue":()=>Ne(()=>De.import("./SpacerWidget-BnJe_Hq6-37bfb1d7ec6d46304caa.js"),void 0),"./SparklineWidget.vue":()=>Ne(()=>De.import("./SparklineWidget-DMvMQCPm-4332f55116114aa68aef.js"),void 0),"./TabbookWidget.vue":()=>Ne(()=>De.import("./TabbookWidget-B3w0JtWe-a8d257e93d6ef21500c8.js"),void 0),"./TextboxWidget.vue":()=>Ne(()=>De.import("./TextboxWidget-D2f0-eol-bb94d6677ee14cd32fcf.js"),void 0),"./TextfieldWidget.vue":()=>Ne(()=>De.import("./TextfieldWidget-DXSdgqVP-d6bcda166a9140bd23e6.js"),void 0),"./TimeWidget.vue":()=>Ne(()=>De.import("./TimeWidget-DvrRaEMz-a98384f80e069ba5d4bd.js"),void 0),"./TitleWidget.vue":()=>Ne(()=>De.import("./TitleWidget-DqViFQl--df54f3619e4f303b1373.js"),void 0),"./ValueWidget.vue":()=>Ne(()=>De.import("./ValueWidget-KLYY8L8U-96ee5f0706e36c6885e6.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ne(()=>De.import("./ValuelimitsbarWidget-SR8XNZFB-58ea8b55d6ece94d270a.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ne(()=>De.import("./ValuelimitscolumnWidget-xYZSp6YZ-906fdefa13c32c7e4d3c.js"),void 0),"./ValuerangebarWidget.vue":()=>Ne(()=>De.import("./ValuerangebarWidget-B6M02a9d-f4b7a4b9709d461258c0.js"),void 0),"./VerticalWidget.vue":()=>Ne(()=>De.import("./VerticalWidget-z6xUM-ql-6daf5ea34d2f88e2414e.js"),void 0),"./VerticalboxWidget.vue":()=>Ne(()=>De.import("./VerticalboxWidget-3a9cVsW--b38be144237c8662c1fd.js"),void 0)}),Sk=Object.entries($k).reduce((n,[t,e])=>{t=t.split("/").pop();const i=uk(kk(t.replace(/\.\w+$/,"")));return{...n,[i]:qd(e)}},{}),Ck=dn("B",{components:Sk});function Fm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Ak}=Object.prototype,{getPrototypeOf:hh}=Object,hl=(n=>t=>{const e=Ak.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Di=n=>(n=n.toLowerCase(),t=>hl(t)===n),dl=n=>t=>typeof t===n,{isArray:Qo}=Array,Hs=dl("undefined");function Mk(n){return n!==null&&!Hs(n)&&n.constructor!==null&&!Hs(n.constructor)&&pi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Pm=Di("ArrayBuffer");function Tk(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Pm(n.buffer),t}const Ek=dl("string"),pi=dl("function"),Hm=dl("number"),pl=n=>n!==null&&typeof n=="object",Lk=n=>n===!0||n===!1,fl=n=>{if(hl(n)!=="object")return!1;const t=hh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Rk=Di("Date"),Ik=Di("File"),Ok=Di("Blob"),Dk=Di("FileList"),Nk=n=>pl(n)&&pi(n.pipe),Fk=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||pi(n.append)&&((t=hl(n))==="formdata"||t==="object"&&pi(n.toString)&&n.toString()==="[object FormData]"))},Pk=Di("URLSearchParams"),[Hk,Bk,zk,jk]=["ReadableStream","Request","Response","Headers"].map(Di),Wk=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Qo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),v=p.length;let w;for(i=0;i<v;i++)w=p[i],t.call(null,n[w],w,n)}}function Bm(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zm=n=>!Hs(n)&&n!==fo;function dh(){const{caseless:n}=zm(this)&&this||{},t={},e=(i,m)=>{const p=n&&Bm(t,m)||m;fl(t[p])&&fl(i)?t[p]=dh(t[p],i):fl(i)?t[p]=dh({},i):Qo(i)?t[p]=i.slice():t[p]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Bs(arguments[i],e);return t}const Uk=(n,t,e,{allOwnKeys:i}={})=>(Bs(t,(m,p)=>{e&&pi(m)?n[p]=Fm(m,e):n[p]=m},{allOwnKeys:i}),n),Vk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),qk=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Gk=(n,t,e,i)=>{let m,p,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),p=m.length;p-- >0;)v=m[p],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&hh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Yk=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Kk=n=>{if(!n)return null;if(Qo(n))return n;let t=n.length;if(!Hm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Zk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&hh(Uint8Array)),Qk=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Xk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Jk=Di("HTMLFormElement"),e$=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),jm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),t$=Di("RegExp"),Wm=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Bs(e,(m,p)=>{let v;(v=t(m,p,n))!==!1&&(i[p]=v||m)}),Object.defineProperties(n,i)},n$=n=>{Wm(n,(t,e)=>{if(pi(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(pi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},i$=(n,t)=>{const e={},i=m=>{m.forEach(p=>{e[p]=!0})};return Qo(n)?i(n):i(String(n).split(t)),e},r$=()=>{},o$=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ph="abcdefghijklmnopqrstuvwxyz",Um="0123456789",Vm={DIGIT:Um,ALPHA:ph,ALPHA_DIGIT:ph+ph.toUpperCase()+Um},s$=(n=16,t=Vm.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function a$(n){return!!(n&&pi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const l$=n=>{const t=new Array(10),e=(i,m)=>{if(pl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const p=Qo(i)?[]:{};return Bs(i,(v,w)=>{const h=e(v,m+1);!Hs(h)&&(p[w]=h)}),t[m]=void 0,p}}return i};return e(n,0)},c$=Di("AsyncFunction"),u$=n=>n&&(pl(n)||pi(n))&&pi(n.then)&&pi(n.catch),qm=((n,t)=>n?setImmediate:t?((e,i)=>(fo.addEventListener("message",({source:m,data:p})=>{m===fo&&p===e&&i.length&&i.shift()()},!1),m=>{i.push(m),fo.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",pi(fo.postMessage)),h$=typeof queueMicrotask<"u"?queueMicrotask.bind(fo):typeof process<"u"&&process.nextTick||qm,he={isArray:Qo,isArrayBuffer:Pm,isBuffer:Mk,isFormData:Fk,isArrayBufferView:Tk,isString:Ek,isNumber:Hm,isBoolean:Lk,isObject:pl,isPlainObject:fl,isReadableStream:Hk,isRequest:Bk,isResponse:zk,isHeaders:jk,isUndefined:Hs,isDate:Rk,isFile:Ik,isBlob:Ok,isRegExp:t$,isFunction:pi,isStream:Nk,isURLSearchParams:Pk,isTypedArray:Zk,isFileList:Dk,forEach:Bs,merge:dh,extend:Uk,trim:Wk,stripBOM:Vk,inherits:qk,toFlatObject:Gk,kindOf:hl,kindOfTest:Di,endsWith:Yk,toArray:Kk,forEachEntry:Qk,matchAll:Xk,isHTMLForm:Jk,hasOwnProperty:jm,hasOwnProp:jm,reduceDescriptors:Wm,freezeMethods:n$,toObjectSet:i$,toCamelCase:e$,noop:r$,toFiniteNumber:o$,findKey:Bm,global:fo,isContextDefined:zm,ALPHABET:Vm,generateString:s$,isSpecCompliantForm:a$,toJSONObject:l$,isAsyncFn:c$,isThenable:u$,setImmediate:qm,asap:h$};function nt(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.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 Gm=nt.prototype,Ym={};["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=>{Ym[n]={value:n}}),Object.defineProperties(nt,Ym),Object.defineProperty(Gm,"isAxiosError",{value:!0}),nt.from=(n,t,e,i,m,p)=>{const v=Object.create(Gm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),nt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,p&&Object.assign(v,p),v};const d$=null;function fh(n){return he.isPlainObject(n)||he.isArray(n)}function Km(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Zm(n,t,e){return n?n.concat(t).map(function(i,m){return i=Km(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function p$(n){return he.isArray(n)&&!n.some(fh)}const f$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function gl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||f,p=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(m))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 f(l,o,u){let g=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&p$(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(g=he.toArray(l)))return o=Km(o),g.forEach(function(y,b){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Zm([o],b,p):v===null?o:o+"[]",h(y))}),!1}return fh(l)?!0:(t.append(Zm(u,o,p),h(l)),!1)}const s=[],c=Object.assign(f$,{defaultVisitor:f,convertValue:h,isVisitable:fh});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,g){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(g)?g.trim():g,o,c))===!0&&a(u,o?o.concat(g):[g])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),t}function Qm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function gh(n,t){this._pairs=[],n&&gl(n,this,t)}const Xm=gh.prototype;Xm.append=function(n,t){this._pairs.push([n,t])},Xm.toString=function(n){const t=n?function(e){return n.call(this,e,Qm)}:Qm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function g$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jm(n,t,e){if(!t)return n;const i=e&&e.encode||g$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let p;if(m?p=m(t,e):p=he.isURLSearchParams(t)?t.toString():new gh(t,e).toString(i),p){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let e0=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const t0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m$=typeof URLSearchParams<"u"?URLSearchParams:gh,v$=typeof FormData<"u"?FormData:null,y$=typeof Blob<"u"?Blob:null,w$={isBrowser:!0,classes:{URLSearchParams:m$,FormData:v$,Blob:y$},protocols:["http","https","file","blob","url","data"]},mh=typeof window<"u"&&typeof document<"u",vh=typeof navigator=="object"&&navigator||void 0,b$=mh&&(!vh||["ReactNative","NativeScript","NS"].indexOf(vh.product)<0),x$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_$=mh&&window.location.href||"http://localhost",k$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mh,hasStandardBrowserEnv:b$,hasStandardBrowserWebWorkerEnv:x$,navigator:vh,origin:_$},Symbol.toStringTag,{value:"Module"})),Pn={...k$,...w$};function $$(n,t){return gl(n,new Pn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,p){return Pn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function S$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function C$(n){const t={},e=Object.keys(n);let i;const m=e.length;let p;for(i=0;i<m;i++)p=e[i],t[p]=n[p];return t}function n0(n){function t(e,i,m,p){let v=e[p++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=p>=e.length;return v=!v&&he.isArray(m)?m.length:v,h?(he.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!he.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],p)&&he.isArray(m[v])&&(m[v]=C$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(S$(i),m,e,0)}),e}return null}function A$(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const zs={transitional:t0,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=he.isObject(n);if(m&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(n0(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return $$(n,this.formSerializer).toString();if((p=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return gl(p?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),A$(n)):n}],transformResponse:[function(n){const t=this.transitional||zs.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(p){if(m)throw p.name==="SyntaxError"?nt.from(p,nt.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pn.classes.FormData,Blob:Pn.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=>{zs.headers[n]={}});const M$=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"]),T$=n=>{const t={};let e,i,m;return n&&n.split(`
1411
+ `).forEach(function(p){m=p.indexOf(":"),e=p.substring(0,m).trim().toLowerCase(),i=p.substring(m+1).trim(),!(!e||t[e]&&M$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},i0=Symbol("internals");function js(n){return n&&String(n).trim().toLowerCase()}function ml(n){return n===!1||n==null?n:he.isArray(n)?n.map(ml):String(n)}function E$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const L$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function yh(n,t,e,i,m){if(he.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!he.isString(t)){if(he.isString(i))return t.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(t)}}function R$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function I$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,p,v){return this[i].call(this,t,m,p,v)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function p(w,h,f){const s=js(h);if(!s)throw new Error("header name must be a non-empty string");const c=he.findKey(m,s);(!c||m[c]===void 0||f===!0||f===void 0&&m[c]!==!1)&&(m[c||h]=ml(w))}const v=(w,h)=>he.forEach(w,(f,s)=>p(f,s,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!L$(t))v(T$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())p(h,w,i);else t!=null&&p(e,t,i);return this}get(t,e){if(t=js(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return E$(m);if(he.isFunction(e))return e.call(this,m,i);if(he.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=js(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||yh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function p(v){if(v=js(v),v){const w=he.findKey(i,v);w&&(!e||yh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(p):p(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const p=e[i];(!t||yh(this,this[p],p,t,!0))&&(delete this[p],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,p)=>{const v=he.findKey(i,p);if(v){e[v]=ml(m),delete e[p];return}const w=t?R$(p):String(p).trim();w!==p&&delete e[p],e[w]=ml(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&he.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1412
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[i0]=this[i0]={accessors:{}}).accessors,i=this.prototype;function m(p){const v=js(p);e[v]||(I$(i,p),e[v]=!0)}return he.isArray(t)?t.forEach(m):m(t),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(ei.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),he.freezeMethods(ei);function wh(n,t){const e=this||zs,i=t||e,m=ei.from(i.headers);let p=i.data;return he.forEach(n,function(v){p=v.call(e,p,m.normalize(),t?t.status:void 0)}),m.normalize(),p}function r0(n){return!!(n&&n.__CANCEL__)}function Xo(n,t,e){nt.call(this,n??"canceled",nt.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Xo,nt,{__CANCEL__:!0});function o0(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new nt("Request failed with status code "+e.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function O$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function D$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,p=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[p];v||(v=h),e[m]=w,i[m]=h;let s=p,c=0;for(;s!==m;)c+=e[s++],s=s%n;if(m=(m+1)%n,m===p&&(p=(p+1)%n),h-v<t)return;const a=f&&h-f;return a?Math.round(c*1e3/a):void 0}}function N$(n,t){let e=0,i=1e3/t,m,p;const v=(w,h=Date.now())=>{e=h,m=null,p&&(clearTimeout(p),p=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,p||(p=setTimeout(()=>{p=null,v(m)},i-f)))},()=>m&&v(m)]}const vl=(n,t,e=3)=>{let i=0;const m=D$(50,250);return N$(p=>{const v=p.loaded,w=p.lengthComputable?p.total:void 0,h=v-i,f=m(h),s=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&s?(w-v)/f:void 0,event:p,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},s0=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},a0=n=>(...t)=>he.asap(()=>n(...t)),F$=Pn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Pn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Pn.origin),Pn.navigator&&/(msie|trident)/i.test(Pn.navigator.userAgent)):()=>!0,P$=Pn.hasStandardBrowserEnv?{write(n,t,e,i,m,p){const v=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),he.isString(i)&&v.push("path="+i),he.isString(m)&&v.push("domain="+m),p===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function H$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function B$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function l0(n,t){return n&&!H$(t)?B$(n,t):t}const c0=n=>n instanceof ei?{...n}:n;function go(n,t){t=t||{};const e={};function i(f,s,c,a){return he.isPlainObject(f)&&he.isPlainObject(s)?he.merge.call({caseless:a},f,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function m(f,s,c,a){if(he.isUndefined(s)){if(!he.isUndefined(f))return i(void 0,f,c,a)}else return i(f,s,c,a)}function p(f,s){if(!he.isUndefined(s))return i(void 0,s)}function v(f,s){if(he.isUndefined(s)){if(!he.isUndefined(f))return i(void 0,f)}else return i(void 0,s)}function w(f,s,c){if(c in t)return i(f,s);if(c in n)return i(void 0,f)}const h={url:p,method:p,data:p,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,s,c)=>m(c0(f),c0(s),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(f){const s=h[f]||m,c=s(n[f],t[f],f);he.isUndefined(c)&&s!==w||(e[f]=c)}),e}const u0=n=>{const t=go({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:p,headers:v,auth:w}=t;t.headers=v=ei.from(v),t.url=Jm(l0(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(e)){if(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...s].join("; "))}}if(Pn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&F$(t.url))){const f=m&&p&&P$.read(p);f&&v.set(m,f)}return t},z$=typeof XMLHttpRequest<"u",j$=z$&&function(n){return new Promise(function(t,e){const i=u0(n);let m=i.data;const p=ei.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,s,c,a,l;function o(){a&&a(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function g(){if(!u)return;const b=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),L={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};o0(function(A){t(A),o()},function(A){e(A),o()},L),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new nt("Request aborted",nt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new nt("Network Error",nt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||t0;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new nt(b,L.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,n,u)),u=null},m===void 0&&p.setContentType(null),"setRequestHeader"in u&&he.forEach(p.toJSON(),function(b,L){u.setRequestHeader(L,b)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=vl(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=vl(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(f=b=>{u&&(e(!b||b.type?new Xo(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=O$(i.url);if(y&&Pn.protocols.indexOf(y)===-1){e(new nt("Unsupported protocol "+y+":",nt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},W$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const p=function(f){if(!m){m=!0,w();const s=f instanceof Error?f:this.reason;i.abort(s instanceof nt?s:new Xo(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,p(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(p):f.removeEventListener("abort",p)}),n=null)};n.forEach(f=>f.addEventListener("abort",p));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},U$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},V$=async function*(n,t){for await(const e of q$(n))yield*U$(e,t)},q$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},h0=(n,t,e,i)=>{const m=V$(n,t);let p=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:s}=await m.next();if(f){w(),h.close();return}let c=s.byteLength;if(e){let a=p+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},yl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",d0=yl&&typeof ReadableStream=="function",G$=yl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),p0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Y$=d0&&p0(()=>{let n=!1;const t=new Request(Pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),f0=64*1024,bh=d0&&p0(()=>he.isReadableStream(new Response("").body)),wl={stream:bh&&(n=>n.body)};yl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wl[t]&&(wl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,i)})})})(new Response);const K$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Pn.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 G$(n)).byteLength},Z$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??K$(t),Q$=yl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:p,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:s,withCredentials:c="same-origin",fetchOptions:a}=u0(n);f=f?(f+"").toLowerCase():"text";let l=W$([m,p&&p.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let g;try{if(h&&Y$&&e!=="get"&&e!=="head"&&(g=await Z$(s,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(he.isFormData(i)&&(x=k.headers.get("content-type"))&&s.setContentType(x),k.body){const[M,E]=s0(g,vl(a0(h)));i=h0(k.body,f0,M,E)}}he.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let b=await fetch(o);const L=bh&&(f==="stream"||f==="response");if(bh&&(w||L&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=he.toFiniteNumber(b.headers.get("content-length")),[M,E]=w&&s0(x,vl(a0(w),!0))||[];b=new Response(h0(b.body,f0,M,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await wl[he.findKey(wl,f)||"text"](b,n);return!L&&u&&u(),await new Promise((k,x)=>{o0(k,x,{data:A,headers:ei.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,n,o),{cause:y.cause||y}):nt.from(y,y&&y.code,n,o)}}),xh={http:d$,xhr:j$,fetch:Q$};he.forEach(xh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const g0=n=>`- ${n}`,X$=n=>he.isFunction(n)||n===null||n===!1,m0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let p=0;p<t;p++){e=n[p];let v;if(i=e,!X$(e)&&(i=xh[(v=String(e)).toLowerCase()],i===void 0))throw new nt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+p]=i}if(!i){const p=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?p.length>1?`since :
1413
+ `+p.map(g0).join(`
1414
+ `):" "+g0(p[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:xh};function _h(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xo(null,n)}function v0(n){return _h(n),n.headers=ei.from(n.headers),n.data=wh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),m0.getAdapter(n.adapter||zs.adapter)(n).then(function(t){return _h(n),t.data=wh.call(n,n.transformResponse,t),t.headers=ei.from(t.headers),t},function(t){return r0(t)||(_h(n),t&&t.response&&(t.response.data=wh.call(n,n.transformResponse,t.response),t.response.headers=ei.from(t.response.headers))),Promise.reject(t)})}const y0="1.7.9",bl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const w0={};bl.transitional=function(n,t,e){function i(m,p){return"[Axios v"+y0+"] Transitional option '"+m+"'"+p+(e?". "+e:"")}return(m,p,v)=>{if(n===!1)throw new nt(i(p," has been removed"+(t?" in "+t:"")),nt.ERR_DEPRECATED);return t&&!w0[p]&&(w0[p]=!0,console.warn(i(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,p,v):!0}},bl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function J$(n,t,e){if(typeof n!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const p=i[m],v=t[p];if(v){const w=n[p],h=w===void 0||v(w,p,n);if(h!==!0)throw new nt("option "+p+" must be "+h,nt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new nt("Unknown option "+p,nt.ERR_BAD_OPTION)}}const xl={assertOptions:J$,validators:bl},qi=xl.validators;let mo=class{constructor(t){this.defaults=t,this.interceptors={request:new e0,response:new e0}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const p=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?p&&!String(i.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1415
+ `+p):i.stack=p}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=go(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:p}=e;i!==void 0&&xl.assertOptions(i,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:xl.assertOptions(m,{encode:qi.function,serialize:qi.function},!0)),xl.assertOptions(e,{baseUrl:qi.spelling("baseURL"),withXsrfToken:qi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=p&&he.merge(p.common,p[e.method]);p&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=ei.concat(v,p);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[v0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),a=o.length,s=Promise.resolve(e);c<a;)s=s.then(o[c++],o[c++]);return s}a=w.length;let l=e;for(c=0;c<a;){const o=w[c++],u=w[c++];try{l=o(l)}catch(g){u.call(this,g);break}}try{s=v0.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=f.length;c<a;)s=s.then(f[c++],f[c++]);return s}getUri(t){t=go(this.defaults,t);const e=l0(t.baseURL,t.url);return Jm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){mo.prototype[n]=function(t,e){return this.request(go(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,p){return this.request(go(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}mo.prototype[n]=t(),mo.prototype[n+"Form"]=t(!0)});let eS=class jy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let p=i._listeners.length;for(;p-- >0;)i._listeners[p](m);i._listeners=null}),this.promise.then=m=>{let p;const v=new Promise(w=>{i.subscribe(w),p=w}).then(m);return v.cancel=function(){i.unsubscribe(p)},v},t(function(m,p,v){i.reason||(i.reason=new Xo(m,p,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new jy(function(e){t=e}),cancel:t}}};function tS(n){return function(t){return n.apply(null,t)}}function nS(n){return he.isObject(n)&&n.isAxiosError===!0}const kh={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(kh).forEach(([n,t])=>{kh[t]=n});function b0(n){const t=new mo(n),e=Fm(mo.prototype.request,t);return he.extend(e,mo.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return b0(go(n,i))},e}const kn=dn("S",b0(zs));kn.Axios=mo,kn.CanceledError=Xo,kn.CancelToken=eS,kn.isCancel=r0,kn.VERSION=y0,kn.toFormData=gl,kn.AxiosError=nt,kn.Cancel=kn.CanceledError,kn.all=function(n){return Promise.all(n)},kn.spread=tS,kn.isAxiosError=nS,kn.mergeConfig=go,kn.AxiosHeaders=ei,kn.formToJSON=n=>n0(he.isHTMLForm(n)?new FormData(n):n),kn.getAdapter=m0.getAdapter,kn.HttpStatusCode=kh,kn.default=kn;const iS=dn("t",function(n){if(n&&n.includes(".")){let t=n.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"});function rS(n,t,e){const i=Vt(n,void 0);return i.setTime(i.getTime()+t*Ea),i}function x0(){return Object.assign({},Do())}function oS(n,t){const e=()=>pn(void 0,NaN),i=cS(n);let m;if(i.date){const h=uS(i.date,2);m=hS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const p=+m;let v=0,w;if(i.time&&(v=dS(i.time),isNaN(v)))return e();if(i.timezone){if(w=pS(i.timezone),isNaN(w))return e()}else{const h=new Date(p+v),f=Vt(0,void 0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return Vt(p+v+w,void 0)}const _l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,aS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function cS(n){const t={},e=n.split(_l.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],_l.timeZoneDelimiter.test(t.date)&&(t.date=n.split(_l.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=_l.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function uS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};const m=i[1]?parseInt(i[1]):null,p=i[2]?parseInt(i[2]):null;return{year:p===null?m:p*100,restDateString:n.slice((i[1]||i[2]).length)}}function hS(n,t){if(t===null)return new Date(NaN);const e=n.match(sS);if(!e)return new Date(NaN);const i=!!e[4],m=Ws(e[1]),p=Ws(e[2])-1,v=Ws(e[3]),w=Ws(e[4]),h=Ws(e[5])-1;if(i)return yS(t,w,h)?fS(t,w,h):new Date(NaN);{const f=new Date(0);return!mS(t,p,v)||!vS(t,m)?new Date(NaN):(f.setUTCFullYear(t,p,Math.max(m,v)),f)}}function Ws(n){return n?parseInt(n):1}function dS(n){const t=n.match(aS);if(!t)return NaN;const e=$h(t[1]),i=$h(t[2]),m=$h(t[3]);return wS(e,i,m)?e*Rc+i*Ea+m*1e3:NaN}function $h(n){return n&&parseFloat(n.replace(",","."))||0}function pS(n){if(n==="Z")return 0;const t=n.match(lS);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return bS(i,m)?e*(i*Rc+m*Ea):NaN}function fS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,p=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+p),i}const gS=[31,null,31,30,31,30,31,31,30,31,30,31];function _0(n){return n%400===0||n%4===0&&n%100!==0}function mS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(gS[t]||(_0(n)?29:28))}function vS(n,t){return t>=1&&t<=(_0(n)?366:365)}function yS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function wS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function bS(n,t){return t>=0&&t<=59}function xS(n,t,e){return rS(n,-t)}function k0(n,t,e){const i=x0(),m=$S(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?_S(m,t):kS(m,t)}function _S(n,t){const e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function kS(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function $S(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function SS(n,t){const e=ES(t);return"formatToParts"in e?AS(e,n):MS(e,n)}const CS={year:0,month:1,day:2,hour:3,minute:4,second:5};function AS(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const p=CS[e[m].type];p!==void 0&&(i[p]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function MS(n,t){const e=n.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const Sh={},$0=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")),TS=$0==="06/25/2014, 00:00:00"||$0==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function ES(n){return Sh[n]||(Sh[n]=TS?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"})),Sh[n]}function S0(n,t,e,i,m,p,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,p,v),w}const C0=36e5,LS=6e4,Ch={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ah(n,t,e){if(!n)return 0;let i=Ch.timezoneZ.exec(n);if(i)return 0;let m,p;if(i=Ch.timezoneHH.exec(n),i)return m=parseInt(i[1],10),A0(m)?-(m*C0):NaN;if(i=Ch.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return A0(m,v)?(p=Math.abs(m)*C0+v*LS,i[1]==="+"?-p:p):NaN}if(OS(n)){t=new Date(t||Date.now());const v=e?t:RS(t),w=Mh(v,n);return-(e?w:IS(t,w,n))}return NaN}function RS(n){return S0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Mh(n,t){const e=SS(n,t),i=S0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const p=m%1e3;return m-=p>=0?p:1e3+p,i-m}function IS(n,t,e){let i=n.getTime()-t;const m=Mh(new Date(i),e);if(t===m)return t;i-=m-t;const p=Mh(new Date(i),e);return m===p?m:Math.max(m,p)}function A0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const M0={};function OS(n){if(M0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),M0[n]=!0,!0}catch{return!1}}const DS=60*1e3,NS={X:function(n,t,e){const i=Th(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return T0(i);case"XXXX":case"XX":return Jo(i);case"XXXXX":case"XXX":default:return Jo(i,":")}},x:function(n,t,e){const i=Th(e.timeZone,n);switch(t){case"x":return T0(i);case"xxxx":case"xx":return Jo(i);case"xxxxx":case"xxx":default:return Jo(i,":")}},O:function(n,t,e){const i=Th(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+FS(i,":");case"OOOO":default:return"GMT"+Jo(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return k0("short",n,e);case"zzzz":default:return k0("long",n,e)}}};function Th(n,t){const e=n?Ah(n,t,!0)/DS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function kl(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Jo(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=kl(Math.floor(i/60),2),p=kl(Math.floor(i%60),2);return e+m+t+p}function T0(n,t){return n%60===0?(n>0?"-":"+")+kl(Math.abs(n)/60,2):Jo(n,t)}function FS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),p=i%60;return p===0?e+String(m):e+String(m)+t+kl(p,2)}function E0(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const PS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Eh=36e5,L0=6e4,HS=2,Gn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,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:PS};function R0(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?HS:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=BS(n),{year:m,restDateString:p}=zS(i.date,e),v=jS(p,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,f;if(i.time&&(h=WS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(f=Ah(i.timeZone||t.timeZone,new Date(w+h)),isNaN(f))return new Date(NaN)}else f=E0(new Date(w+h)),f=E0(new Date(w+h+f));return new Date(w+h+f)}else return new Date(NaN)}function BS(n){const t={};let e=Gn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=Gn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=Gn.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function zS(n,t){if(n){const e=Gn.YYY[t],i=Gn.YYYYY[t];let m=Gn.YYYY.exec(n)||i.exec(n);if(m){const p=m[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(m=Gn.YY.exec(n)||e.exec(n),m){const p=m[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function jS(n,t){if(t===null)return null;let e,i,m;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=Gn.MM.exec(n);if(p)return e=new Date(0),i=parseInt(p[1],10)-1,D0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(p=Gn.DDD.exec(n),p){e=new Date(0);const v=parseInt(p[1],10);return qS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(p=Gn.MMDD.exec(n),p){e=new Date(0),i=parseInt(p[1],10)-1;const v=parseInt(p[2],10);return D0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(p=Gn.Www.exec(n),p)return m=parseInt(p[1],10)-1,N0(m)?I0(t,m):new Date(NaN);if(p=Gn.WwwD.exec(n),p){m=parseInt(p[1],10)-1;const v=parseInt(p[2],10)-1;return N0(m,v)?I0(t,m,v):new Date(NaN)}return null}function WS(n){let t,e,i=Gn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Lh(t)?t%24*Eh:NaN;if(i=Gn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Lh(t,e)?t%24*Eh+e*L0:NaN;if(i=Gn.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);const m=parseFloat(i[3].replace(",","."));return Lh(t,e,m)?t%24*Eh+e*L0+m*1e3:NaN}return null}function I0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,p=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+p),i}const US=[31,28,31,30,31,30,31,31,30,31,30,31],VS=[31,29,31,30,31,30,31,31,30,31,30,31];function O0(n){return n%400===0||n%4===0&&n%100!==0}function D0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=O0(n);if(i&&e>VS[t]||!i&&e>US[t])return!1}return!0}function qS(n,t){if(t<1)return!1;const e=O0(n);return!(e&&t>366||!e&&t>365)}function N0(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Lh(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const GS=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function YS(n,t,e={}){t=String(t);const i=t.match(GS);if(i){const m=R0(e.originalDate||n,e);t=i.reduce(function(p,v){if(v[0]==="'")return p;const w=p.indexOf(v),h=p[w-1]==="'",f=p.replace(v,"'"+NS[v[0]](m,v,e)+"'");return h?f.substring(0,w-1)+f.substring(w+1):f},t)}return Tr(n,t,e)}function KS(n,t,e){n=R0(n,e);const i=Ah(t,n,!0),m=new Date(n.getTime()-i),p=new Date(0);return p.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),p.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),p}function Rh(n,t,e,i){return i={...i,timeZone:t,originalDate:n},YS(KS(n,t,{timeZone:i.timeZone}),e,i)}const Ih="yyyy-MM-dd",F0="HH:mm:ss.SSS",ZS="HH:mm:ss",$l=`${Ih} ${F0}`,uI=dn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Tr(!t||t==="local"?xS(n,n.getTimezoneOffset()):n,$l)},formatDateTime(n,t){return!t||t==="local"?Tr(n,$l):Rh(n,t,$l)},formatDate:function(n,t){return!t||t==="local"?Tr(n,Ih):Rh(n,this.timeZone,Ih)},formatTime:function(n,t,e=F0){return!t||t==="local"?Tr(n,e):Rh(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,ZS)},formatTimestamp(n,t){return this.formatDateTime(oS(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var QS=Object.defineProperty,XS=(n,t,e)=>t in n?QS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Le=(n,t,e)=>XS(n,typeof t!="symbol"?t+"":t,e);function Oh(n,t,e){const i=Vt(n,e==null?void 0:e.in);return isNaN(t)?pn((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function JS(n,t){const e=Vt(n,void 0).getDay();return e===0?7:e}function eC(n,t){const e=tC(t)?new t(0):pn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function tC(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const nC=10;class P0{constructor(){Le(this,"subPriority",0)}validate(t,e){return!0}}let iC=class extends P0{constructor(t,e,i,m,p){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},rC=class extends P0{constructor(t,e){super(),Le(this,"priority",nC),Le(this,"subPriority",-1),this.context=t||(i=>pn(e,i))}set(t,e){return e.timestampIsSet?t:pn(t,eC(t,this.context))}};class St{run(t,e,i,m){const p=this.parse(t,e,i,m);return p?{setter:new iC(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,i){return!0}}let oC=class extends St{constructor(){super(...arguments),Le(this,"priority",140),Le(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};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}/},Gi={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,t){return n&&{value:t(n.value),rest:n.rest}}function Kt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Yi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const i=e[1]==="+"?1:-1,m=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Rc+p*Ea+v*ew),rest:t.slice(e[0].length)}}function H0(n){return Kt(an.anyDigitsSigned,n)}function en(n,t){switch(n){case 1:return Kt(an.singleDigit,t);case 2:return Kt(an.twoDigits,t);case 3:return Kt(an.threeDigits,t);case 4:return Kt(an.fourDigits,t);default:return Kt(new RegExp("^\\d{1,"+n+"}"),t)}}function B0(n,t){switch(n){case 1:return Kt(an.singleDigitSigned,t);case 2:return Kt(an.twoDigitsSigned,t);case 3:return Kt(an.threeDigitsSigned,t);case 4:return Kt(an.fourDigitsSigned,t);default:return Kt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Dh(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 z0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const p=i+50,v=Math.trunc(p/100)*100,w=n>=p%100;m=n+v-(w?100:0)}return e?m:1-m}function j0(n){return n%400===0||n%4===0&&n%100!==0}let sC=class extends St{constructor(){super(...arguments),Le(this,"priority",130),Le(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return ln(en(4,t),m);case"yo":return ln(i.ordinalNumber(t,{unit:"year"}),m);default:return ln(en(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const m=t.getFullYear();if(i.isTwoDigitYear){const v=z0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}},aC=class extends St{constructor(){super(...arguments),Le(this,"priority",130),Le(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ln(en(4,t),m);case"Yo":return ln(i.ordinalNumber(t,{unit:"year"}),m);default:return ln(en(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const p=Oc(t,m);if(i.isTwoDigitYear){const w=z0(i.year,p);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),Ar(t,m)}const v=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(v,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),Ar(t,m)}},lC=class extends St{constructor(){super(...arguments),Le(this,"priority",130),Le(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return B0(e==="R"?4:e.length,t)}set(t,e,i){const m=pn(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),No(m)}},cC=class extends St{constructor(){super(...arguments),Le(this,"priority",130),Le(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return B0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};class uC extends St{constructor(){super(...arguments),Le(this,"priority",120),Le(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"Q":case"QQ":return en(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}let hC=class extends St{constructor(){super(...arguments),Le(this,"priority",120),Le(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"q":case"qq":return en(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}},dC=class extends St{constructor(){super(...arguments),Le(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Le(this,"priority",110)}parse(t,e,i){const m=p=>p-1;switch(e){case"M":return ln(Kt(an.month,t),m);case"MM":return ln(en(2,t),m);case"Mo":return ln(i.ordinalNumber(t,{unit:"month"}),m);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}};class pC extends St{constructor(){super(...arguments),Le(this,"priority",110),Le(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=p=>p-1;switch(e){case"L":return ln(Kt(an.month,t),m);case"LL":return ln(en(2,t),m);case"Lo":return ln(i.ordinalNumber(t,{unit:"month"}),m);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function fC(n,t,e){const i=Vt(n,e==null?void 0:e.in),m=vp(i,e)-t;return i.setDate(i.getDate()-m*7),Vt(i,e==null?void 0:e.in)}class gC extends St{constructor(){super(...arguments),Le(this,"priority",100),Le(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return Kt(an.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return Ar(fC(t,i,m),m)}}function mC(n,t,e){const i=Vt(n,void 0),m=mp(i)-t;return i.setDate(i.getDate()-m*7),i}class vC extends St{constructor(){super(...arguments),Le(this,"priority",100),Le(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,i){switch(e){case"I":return Kt(an.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return No(mC(t,i))}}const yC=[31,28,31,30,31,30,31,31,30,31,30,31],wC=[31,29,31,30,31,30,31,31,30,31,30,31];class bC extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"subPriority",1),Le(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return Kt(an.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return en(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=j0(i),p=t.getMonth();return m?e>=1&&e<=wC[p]:e>=1&&e<=yC[p]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class xC extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"subpriority",1),Le(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,i){switch(e){case"D":case"DD":return Kt(an.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return en(e.length,t)}}validate(t,e){const i=t.getFullYear();return j0(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function Nh(n,t,e){var i,m,p,v;const w=Do(),h=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??w.weekStartsOn??((v=(p=w.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,f=Vt(n,e==null?void 0:e.in),s=f.getDay(),c=(t%7+7)%7,a=7-h,l=t<0||t>6?t-(s+a)%7:(c+a)%7-(s+a)%7;return Oh(f,l,e)}let _C=class extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}},kC=class extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const p=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return ln(en(e.length,t),p);case"eo":return ln(i.ordinalNumber(t,{unit:"day"}),p);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}},$C=class extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const p=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return ln(en(e.length,t),p);case"co":return ln(i.ordinalNumber(t,{unit:"day"}),p);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}};function SC(n,t,e){const i=Vt(n,void 0),m=JS(i),p=t-m;return Oh(i,p,e)}let CC=class extends St{constructor(){super(...arguments),Le(this,"priority",90),Le(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=p=>p===0?7:p;switch(e){case"i":case"ii":return en(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ln(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiii":return ln(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return ln(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return ln(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=SC(t,i),t.setHours(0,0,0,0),t}},AC=class extends St{constructor(){super(...arguments),Le(this,"priority",80),Le(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}};class MC extends St{constructor(){super(...arguments),Le(this,"priority",80),Le(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}}class TC extends St{constructor(){super(...arguments),Le(this,"priority",80),Le(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}}class EC extends St{constructor(){super(...arguments),Le(this,"priority",70),Le(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return Kt(an.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const m=t.getHours()>=12;return m&&i<12?t.setHours(i+12,0,0,0):!m&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}class LC extends St{constructor(){super(...arguments),Le(this,"priority",70),Le(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return Kt(an.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}}class RC extends St{constructor(){super(...arguments),Le(this,"priority",70),Le(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return Kt(an.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}}class IC extends St{constructor(){super(...arguments),Le(this,"priority",70),Le(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return Kt(an.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const m=i<=24?i%24:i;return t.setHours(m,0,0,0),t}}let OC=class extends St{constructor(){super(...arguments),Le(this,"priority",60),Le(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return Kt(an.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}};class DC extends St{constructor(){super(...arguments),Le(this,"priority",50),Le(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return Kt(an.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}class NC extends St{constructor(){super(...arguments),Le(this,"priority",30),Le(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return ln(en(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}}class FC extends St{constructor(){super(...arguments),Le(this,"priority",10),Le(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Yi(Gi.basicOptionalMinutes,t);case"XX":return Yi(Gi.basic,t);case"XXXX":return Yi(Gi.basicOptionalSeconds,t);case"XXXXX":return Yi(Gi.extendedOptionalSeconds,t);case"XXX":default:return Yi(Gi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:pn(t,t.getTime()-La(t)-i)}}let PC=class extends St{constructor(){super(...arguments),Le(this,"priority",10),Le(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Yi(Gi.basicOptionalMinutes,t);case"xx":return Yi(Gi.basic,t);case"xxxx":return Yi(Gi.basicOptionalSeconds,t);case"xxxxx":return Yi(Gi.extendedOptionalSeconds,t);case"xxx":default:return Yi(Gi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:pn(t,t.getTime()-La(t)-i)}};class HC extends St{constructor(){super(...arguments),Le(this,"priority",40),Le(this,"incompatibleTokens","*")}parse(t){return H0(t)}set(t,e,i){return[pn(t,i*1e3),{timestampIsSet:!0}]}}let BC=class extends St{constructor(){super(...arguments),Le(this,"priority",20),Le(this,"incompatibleTokens","*")}parse(t){return H0(t)}set(t,e,i){return[pn(t,i),{timestampIsSet:!0}]}};const zC={G:new oC,y:new sC,Y:new aC,R:new lC,u:new cC,Q:new uC,q:new hC,M:new dC,L:new pC,w:new gC,I:new vC,d:new bC,D:new xC,E:new _C,e:new kC,c:new $C,i:new CC,a:new AC,b:new MC,B:new TC,h:new EC,H:new LC,K:new RC,k:new IC,m:new OC,s:new DC,S:new NC,X:new FC,x:new PC,t:new HC,T:new BC},jC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UC=/^'([^]*?)'?$/,VC=/''/g,qC=/\S/,GC=/[a-zA-Z]/;function YC(n,t,e,i){var m,p,v,w;const h=()=>pn(e,NaN),f=x0(),s=f.locale??gp,c=f.firstWeekContainsDate??((p=(m=f.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,a=f.weekStartsOn??((w=(v=f.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():Vt(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:a,locale:s},o=[new rC(void 0,e)],u=t.match(WC).map(A=>{const k=A[0];if(k in Dc){const x=Dc[k];return x(A,s.formatLong)}return A}).join("").match(jC),g=[];for(let A of u){$p(A)&&Nc(A,t,n),kp(A)&&Nc(A,t,n);const k=A[0],x=zC[k];if(x){const{incompatibleTokens:M}=x;if(Array.isArray(M)){const I=g.find(T=>M.includes(T.token)||T.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${A}\` at the same time`)}else if(x.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);g.push({token:k,fullToken:A});const E=x.run(n,A,s.match,l);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(GC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=KC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&qC.test(n))return h();const y=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,x)=>x.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,x)=>x.subPriority-k.subPriority)).map(A=>A[0]);let b=Vt(e,void 0);if(isNaN(+b))return h();const L={};for(const A of y){if(!A.validate(b,l))return h();const k=A.set(b,L,l);Array.isArray(k)?(b=k[0],Object.assign(L,k[1])):b=k}return b}function KC(n){return n.match(UC)[1].replace(VC,"'")}const ZC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function QC(n,t,e,i,m,p){const v=Te("rux-icon");return kt(),sn(v,{size:e.size,icon:e.icon,style:Oo(p.colorStyle)},null,8,["size","icon","style"])}const XC=lr(ZC,[["render",QC],["__scopeId","data-v-9af48e85"]]),JC="/icons/status-dark.png",eA={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return JC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=rA.indexOf(W0[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,i=32*this.scaleFactor*t,m=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*m}px;`,`background-size: ${e}px ${i}px;`,`height: ${m}px;`,`width: ${m}px;`,`padding-top: ${n-1}px;`].join("")}}};function tA(n,t,e,i,m,p){return kt(),Li("div",{style:Oo(p.iconStyle)},null,4)}const nA=lr(eA,[["render",tA]]),W0={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"},Fh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},iA=function(n){const t="#000000",e="#ffffff",i=Fh[W0[n]];if(i){const m=+`0x${i.slice(1,3)}`,p=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+p*587+v*114)/1e3>128)return t}return e},rA=Object.keys(Fh),oA={astro:{component:n=>_s(XC,{...n})},"astro-status":{component:n=>_s(nA,{...n,status:n.icon})}};class sA{constructor(){Ui.get("/openc3-api/autocomplete/data/screen").then(t=>{this.autocompleteData=t.data}),this.api=new nu}async getCompletions(t,e,i,m,p){var v=e.getLine(i.row),w=v.slice(0,i.column),h=w.trimStart().split(/ (?![^<]*>)/),f=this.autocompleteData;h.length>1&&(f=f.find(y=>y.caption===h[0]));var s={},c=!0;if(f&&f.params){f.params.length==h.length-1&&(c=!1);var a=f.params[h.length-2];if(a["Target name"]){var l=await this.api.get_target_names();f=l.reduce((y,b)=>(y[b]=1,y),{})}else if(a["Packet name"]){var o=h[h.length-2],u=await this.api.get_all_tlm(o);f=u.reduce((y,b)=>(y[b.packet_name]=b.description,y),{})}else if(a["Item name"]){var o=h[h.length-3],g=h[h.length-2],g=await this.api.get_tlm(o,g);f=g.items.reduce((b,L)=>(b[L.name]=L.description,b),{})}else f=a;s=Object.keys(f||{}).map(y=>{var b={value:y+(c?" ":""),command:c&&"startAutocomplete"};return typeof f[y]=="string"&&(b.meta=f[y]),b})}else s=f;p(null,s)}}const aA={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,t=[];this.errors.sort((e,i)=>e.lineNumber-i.lineNumber);for(const e of this.errors){let i=`At ${e.lineNumber}: (${e.line}) ${e.message}.`;e.usage&&(i+=` Usage: ${e.usage}`),t.push(i),n.add(e.message)}return t}return[]},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted:function(){this.editor=Ia.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 sA],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 t=this.editor.getCursorPosition(),e=this.editor.session.getTokenAt(t.row,t.column);if(e){let i=e.value.trim();i.includes(" ")?this.docsKeyword=i.split(" ")[0]:this.docsKeyword=i,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){let n=Ia.require("ace/lib/oop"),t=Ia.require("ace/mode/text_highlight_rules").TextHighlightRules,e=this.keywords.join("|"),i=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*(${e})\\b`)}]},this.normalizeRules()};n.inherits(i,t);let m=function(){this.HighlightRules=i},p=Ia.require("ace/mode/text").Mode;return n.inherits(m,p),(function(){this.$id="ace/mode/openc3"}).call(m.prototype),m},downloadScreen:function(){const n=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(n),t.setAttribute("download",`${this.screen.toLowerCase()}.txt`),t.click()},loadFile:function(){const n=new FileReader;n.readAsText(this.file);const t=this;n.onload=function(){t.editor.setValue(n.result),t.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")})}}},lA={class:"mx-2"},cA={class:"mx-2"},uA=["textContent"];function hA(n,t,e,i,m,p){const v=Te("v-icon"),w=Te("v-tooltip"),h=Te("v-spacer"),f=Te("v-toolbar"),s=Te("v-row"),c=Te("v-btn"),a=Te("v-file-input"),l=Te("v-list-item-title"),o=Te("v-list-item"),u=Te("v-list"),g=Te("v-menu"),y=Te("v-card-text"),b=Te("v-card"),L=Te("v-dialog");return kt(),sn(L,{persistent:"",modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=A=>p.show=A),width:"75vw"},{default:xe(()=>[me(b,null,{default:xe(()=>[me(f,{height:"24"},{default:xe(()=>[ot("div",lA,[me(w,{location:"top"},{activator:xe(({props:A})=>[ot("div",zi(ji(A)),[me(v,{"data-test":"delete-screen-icon",onClick:p.deleteScreen},{default:xe(()=>t[6]||(t[6]=[xt(" mdi-delete ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[7]||(t[7]=ot("span",null," Delete Screen ",-1))]),_:1})]),me(h),ot("span",null," Edit Screen: "+Ot(e.target)+" "+Ot(e.screen),1),me(h),ot("div",cA,[me(w,{location:"top"},{activator:xe(({props:A})=>[ot("div",zi(ji(A)),[me(v,{"data-test":"download-screen-icon",onClick:p.downloadScreen},{default:xe(()=>t[8]||(t[8]=[xt(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[9]||(t[9]=ot("span",null," Download Screen ",-1))]),_:1})])]),_:1}),me(y,{style:{"max-height":"90vh"}},{default:xe(()=>[me(s,{class:"mt-3"},{default:xe(()=>t[10]||(t[10]=[xt(" Upload a screen file. ")])),_:1}),me(s,{"no-gutters":"",align:"center"},{default:xe(()=>[me(c,{onClick:p.loadFile,disabled:!m.file,color:"primary",class:"mr-3","data-test":"edit-screen-load"},{default:xe(()=>t[11]||(t[11]=[xt(" Load ")])),_:1},8,["onClick","disabled"]),me(a,{modelValue:m.file,"onUpdate:modelValue":t[0]||(t[0]=A=>m.file=A),"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},null,8,["modelValue"])]),_:1}),me(s,{class:"mb-2"},{default:xe(()=>t[12]||(t[12]=[xt(" Edit the screen definition. ")])),_:1}),me(s,{class:"mb-2"},{default:xe(()=>[ot("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=Jr((...A)=>p.showContextMenu&&p.showContextMenu(...A),["prevent"]))},null,544),me(g,{modelValue:m.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=A=>m.contextMenu=A),target:[m.menuX,m.menuY]},{default:xe(()=>[me(u,null,{default:xe(()=>[me(o,{link:""},{default:xe(()=>[me(l,{onClick:p.openDocumentation},{default:xe(()=>[xt(Ot(m.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),me(s,{style:{"max-height":"120px","overflow-y":"auto"}},{default:xe(()=>[(kt(!0),Li(Yd,null,Kd(p.editErrors,(A,k)=>(kt(),Li("div",{key:k},[ot("span",{class:"text-red",textContent:Ot(A)},null,8,uA)]))),128))]),_:1}),me(s,{class:"mt-5"},{default:xe(()=>[t[15]||(t[15]=ot("span",null,"Ctrl-space brings up autocomplete. Right click keywords for documentation.",-1)),me(h),me(c,{onClick:t[3]||(t[3]=A=>n.$emit("cancel")),class:"mx-2",variant:"outlined","data-test":"edit-screen-cancel"},{default:xe(()=>t[13]||(t[13]=[xt(" Cancel ")])),_:1}),me(c,{onClick:t[4]||(t[4]=A=>n.$emit("save",n.editor.getValue())),class:"mx-2",color:"primary","data-test":"edit-screen-save"},{default:xe(()=>t[14]||(t[14]=[xt(" Save ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const dA=lr(aA,[["render",hA],["__scopeId","data-v-5b44e7dc"]]),pA={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(){Ui.get("/openc3-api/environment").then(n=>{this.environment=n.data}).catch(n=>{})},addEnvironment:function(){Ui.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then(n=>{`${n.data.name}`,this.update()}).catch(n=>{const t={text:`Failed to add environment variable: ${n}`,type:"error"};this.alertHandler(t)}),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(t=>Ui.delete(`/openc3-api/environment/${n.name}`)).then(t=>{const e={text:`Removed environment variable: ${n.name}`,type:"success"};this.alertHandler(e),this.update()}).catch(t=>{const e={text:`Failed to delete environment: ${t}`,type:"error"};this.alertHandler(e)})}}},fA={class:"pa-3"};function gA(n,t,e,i,m,p){const v=Te("v-spacer"),w=Te("v-toolbar"),h=Te("v-text-field"),f=Te("v-row"),s=Te("v-icon"),c=Te("v-btn"),a=Te("v-data-table"),l=Te("v-col"),o=Te("v-card-text"),u=Te("v-card"),g=Te("v-dialog");return kt(),sn(g,{modelValue:p.show,"onUpdate:modelValue":t[4]||(t[4]=y=>p.show=y),width:"600"},{default:xe(()=>[me(u,null,{default:xe(()=>[ot("form",{onSubmit:t[3]||(t[3]=Jr((...y)=>p.addEnvironment&&p.addEnvironment(...y),["prevent"]))},[me(w,{height:"24"},{default:xe(()=>[me(v),t[5]||(t[5]=ot("span",null,"Global Environment Variables",-1)),me(v)]),_:1}),me(o,null,{default:xe(()=>[ot("div",fA,[me(f,{dense:"",class:"mb-2"},{default:xe(()=>[me(h,{modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=y=>m.search=y),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:m.search,headers:m.headers,items:m.environment,"items-per-page":5,"items-per-page-options":[5]},{"item.actions":xe(({item:y})=>[me(c,{onClick:b=>p.deleteEnvironment(y),icon:"",class:"mt-1","data-test":"item-delete"},{default:xe(()=>[me(s,null,{default:xe(()=>t[6]||(t[6]=[xt("mdi-delete")])),_:1})]),_:2},1032,["onClick"])]),_:1},8,["search","headers","items"]),me(f,{dense:""},{default:xe(()=>[me(l,null,{default:xe(()=>[me(h,{modelValue:m.key,"onUpdate:modelValue":t[1]||(t[1]=y=>m.key=y),label:"Key","data-test":"env-key"},null,8,["modelValue"])]),_:1}),me(l,null,{default:xe(()=>[me(h,{modelValue:m.keyValue,"onUpdate:modelValue":t[2]||(t[2]=y=>m.keyValue=y),label:"Value","data-test":"env-value"},null,8,["modelValue"])]),_:1})]),_:1}),me(f,{dense:""},{default:xe(()=>[me(c,{onClick:Jr(p.addEnvironment,["prevent"]),block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!m.key||!m.keyValue},{default:xe(()=>t[7]||(t[7]=[xt(" Add ")])),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const hI=dn("j",lr(pA,[["render",gA]])),mA={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.
1416
+
1417
+ 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 t=`[${`${n}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${n}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&Ui.get("/openc3-api/targets").then(n=>{this.targets=n.data,this.targets.push("__TEMP__")})},methods:{calcIcon:function(n){return iS(n)},loadFiles:function(){Ui.get(this.apiUrl).then(n=>{this.items=[],this.id=1;for(let t of n.data)this.filepath=t,this.insertFile(this.items,1,t),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,t){for(let e of n){if(e.id===t)return e.path;if(e.children){const i=this.findItem(e.children,t);if(i)return i}}return null},exists:function(n,t){let e=!1;for(let i of n){if(i.path===t||i.path.length>1&&i.path[i.path.length-1]==="*"&&i.path.slice(0,i.path.length-1)===t)return!0;i.children&&(e=e||this.exists(i.children,t))}return e},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=>Ui.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,Ui.get(`${this.apiUrl}/${this.selectedFile}`).then(n=>{const t={name:this.selectedFile,contents:n.data.contents};n.data.suites&&(t.suites=JSON.parse(n.data.suites)),n.data.error&&(t.error=n.data.error),n.data.success&&(t.success=n.data.success);const e=n.data.locked,i=n.data.breakpoints;this.$emit("file",{file:t,locked:e,breakpoints:i}),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,t,e){let i=e.split("/");if(i.length===1){n.push({id:this.id,title:i[0],file:"ruby",path:this.filepath}),this.id++;return}const m=n.findIndex(p=>p.title===i[0]);m===-1?(n.push({id:this.id,title:i[0],children:[],path:this.filepath.split("/").slice(0,t).join("/")}),this.id++,this.insertFile(n[n.length-1].children,t+1,i.slice(1).join("/"))):this.insertFile(n[m].children,t+1,i.slice(1).join("/"))}}},vA={class:"pa-3"};function yA(n,t,e,i,m,p){const v=Te("v-progress-circular"),w=Te("v-overlay"),h=Te("v-spacer"),f=Te("v-toolbar"),s=Te("v-row"),c=Te("v-text-field"),a=Te("v-icon"),l=Te("v-btn"),o=Te("v-treeview"),u=Te("v-card-text"),g=Te("v-card"),y=Te("v-dialog");return kt(),sn(y,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=b=>p.show=b),width:"600",scrollable:"",onKeydown:t[6]||(t[6]=Gd(b=>p.success(),["enter"]))},{default:xe(()=>[me(g,null,{default:xe(()=>[me(w,{"model-value":m.loading},{default:xe(()=>[me(v,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),ot("form",{onSubmit:t[4]||(t[4]=Jr((...b)=>p.success&&p.success(...b),["prevent"]))},[me(f,{height:"24"},{default:xe(()=>[me(h),ot("span",null,Ot(p.title),1),me(h)]),_:1}),me(u,null,{default:xe(()=>[ot("div",vA,[me(s,null,{default:xe(()=>[xt(Ot(p.helpText),1)]),_:1}),me(s,{dense:"",class:"mt-5"},{default:xe(()=>[me(c,{modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=b=>m.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:m.tree,"onUpdate:modelValue":t[1]||(t[1]=b=>m.tree=b),"onUpdate:activated":p.activeFile,density:"compact",activatable:"",ref:"tree",style:{width:"100%","max-height":"60vh",overflow:"auto"},"item-value":"id",items:m.items,search:m.search,"open-on-click":e.type==="open","open-all":!!m.search},{prepend:xe(({item:b,open:L})=>[b.file?(kt(),sn(a,{key:1},{default:xe(()=>[xt(Ot(p.calcIcon(b.title)),1)]),_:2},1024)):(kt(),sn(a,{key:0},{default:xe(()=>[xt(Ot(L?"mdi-folder-open":"mdi-folder"),1)]),_:2},1024))]),append:xe(({item:b})=>[b.title==="__TEMP__"?(kt(),sn(l,{key:0,icon:"",onClick:p.deleteTemp},{default:xe(()=>[me(a,null,{default:xe(()=>t[7]||(t[7]=[xt(" mdi-delete ")])),_:1})]),_:1},8,["onClick"])):qn("",!0)]),_:1},8,["modelValue","onUpdate:activated","items","search","open-on-click","open-all"])]),_:1}),me(s,{class:"my-2"},{default:xe(()=>[me(c,{modelValue:m.selectedFile,"onUpdate:modelValue":t[2]||(t[2]=b=>m.selectedFile=b),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:e.type==="open"},null,8,["modelValue","disabled"])]),_:1}),me(s,{dense:""},{default:xe(()=>[sr(ot("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},Ot(p.error),513),[[ar,p.error]])]),_:1}),me(s,{class:"mt-2"},{default:xe(()=>[me(h),me(l,{onClick:t[3]||(t[3]=b=>p.show=!1),variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:m.disableButtons},{default:xe(()=>t[8]||(t[8]=[xt(" Cancel ")])),_:1},8,["disabled"]),me(l,{onClick:Jr(p.success,["prevent"]),ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:m.disableButtons||!!p.error},{default:xe(()=>[xt(Ot(p.submit),1)]),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const dI=dn("q",lr(mA,[["render",yA]])),U0="single-spa:app-change",wA={data(){return{show:!1}},created(){window.addEventListener(U0,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=sp().length===0},150)},unmounted(){window.removeEventListener(U0,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},bA={class:"mx-1"};function xA(n,t,e,i,m,p){const v=Te("v-card-title"),w=Te("v-card-text"),h=Te("v-card");return m.show?(kt(),sn(h,{key:0},{default:xe(()=>[me(v,null,{default:xe(()=>t[0]||(t[0]=[xt(" 404 Not Found ")])),_:1}),me(w,{class:"d-flex align-center mt-3"},{default:xe(()=>[t[1]||(t[1]=xt(" The requested URL ")),ot("code",bA,Ot(n.$route.fullPath),1),t[2]||(t[2]=xt(" was not routable. ")),t[3]||(t[3]=ot("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):qn("",!0)}const _A=lr(wA,[["render",xA]]),Ph=20,kA={mixins:[Ck],components:{EditScreenDialog:dA},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:Ef.uniqueId("openc3-screen_")}},watch:{count:{handler(n,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let n=new Set,t="";for(const e of this.errors){if(n.has(e.message))continue;let i=`${e.time}: (${e.type}) ${e.message}
1418
+ `;t+=i,n.add(e.message)}return t}return null},computedStyle(){var n;let t={};const e=this.width||((n=this.$refs.bar)==null?void 0:n.clientWidth);return this.floated&&(t.position="absolute",t.top=this.top+"px",t.left=this.left+"px",t.width=e+"px"),t}},errorCaptured(n,t,e){return console.log({err:n,vm:t,info:e}),this.errors.length<Ph&&(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 nu,this.configParser=new q1,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,t){this.$parent.showScreen(n,t)},close(n,t){this.$parent.closeScreenByName(n,t)},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,t,e,i)=>{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(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[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(t[0]);break;case"SETTING":case"SUBSETTING":(this.currentLayout.widgets[this.currentLayout.widgets.length-1]??this.currentLayout).settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(n,t,e,i);break}}),typeof this.layoutStack[0]>"u"){let n=[],t=[];for(const e of this.dynamicWidgets)n.push(e.name),t.push(e.lineNumber);this.errors.length<Ph&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${n.join(",")}?`,lineNumber:t.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(),t=this.$refs.bar.getBoundingClientRect();this.top=t.top-n.top-5,this.left=t.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 t=this.dragX-n.clientX,e=this.dragY-n.clientY;this.dragX=n.clientX,this.dragY=n.clientY,this.top=this.$refs.bar.offsetTop-e,this.left=this.$refs.bar.offsetLeft-t,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(){Ui.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)})},deleteScreen:function(){this.editDialog=!1,Ui.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,t,e,i){let m=null;n==="NAMED_WIDGET"&&(this.configParser.verify_num_parameters(2,null,`${n} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),m=t[0].toUpperCase(),n=t[1].toUpperCase(),t=t.slice(2,t.length));const p=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()+"Widget";let v=[];if(v.push(["__SCREEN_ID__",this.screenId]),m!==null&&v.push(["NAMED_WIDGET",m]),n==="VERTICAL"||n==="VERTICALBOX"||n==="HORIZONTAL"||n==="HORIZONTALBOX"||n==="MATRIXBYCOLUMNS"||n==="TABBOOK"||n==="TABITEM"||n==="CANVAS"||n==="RADIOGROUP"||n==="SCROLLWINDOW"){const w={type:p,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,widgets:[]};this.layoutStack.push(w),this.currentLayout.widgets.push(w),this.currentLayout=w}else if(this.$options.components[p])this.currentLayout.widgets.push({type:p,target:this.target,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,line:e,lineNumber:i});else{let w={type:"DynamicWidget",target:this.target,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,name:p,line:e,lineNumber:i};this.currentLayout.widgets.push(w),this.dynamicWidgets.push(w)}},applyGlobalSettings:function(n){n.forEach(t=>{this.globalSettings.forEach(e=>{t.type.toLowerCase()===e[0].toLowerCase()+"widget"&&t.settings.push(e.slice(1))}),t.widgets&&this.applyGlobalSettings(t.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 t=JSON.stringify(n,null,2);t.includes("no response received")||(this.configError=!0),this.errors.find(e=>e.message===t)||this.errors.length<Ph&&this.errors.push({type:"error",message:t,time:new Date().getTime()})})},updateValues:function(n){this.updateCounter+=1;for(let t=0;t<n.length;t++)n[t].push(this.updateCounter),this.screenValues[this.screenItems[t]]=n[t]},addItem:function(n){this.screenItems.push(n),this.screenValues[n]=[null,null,0]},deleteItem:function(n){let t=this.screenItems.indexOf(n);this.screenItems.splice(t,1)}}},$A={class:"pa-1",style:{position:"relative"},ref:"screen"};function SA(n,t,e,i,m,p){const v=Te("v-icon"),w=Te("v-tooltip"),h=Te("v-spacer"),f=Te("v-toolbar"),s=Te("v-overlay"),c=Te("vertical-widget"),a=Te("v-expand-transition"),l=Te("v-card"),o=Te("edit-screen-dialog"),u=Te("v-textarea"),g=Te("v-dialog");return kt(),Li("div",{style:Oo(p.computedStyle),ref:"bar"},[me(l,{"min-height":m.height,"min-width":m.width,style:{cursor:"default"}},{default:xe(()=>[me(f,{height:"24"},{default:xe(()=>[sr(ot("div",null,[me(w,{location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"error-graph-icon",onClick:t[0]||(t[0]=b=>m.errorDialog=!0)},{default:xe(()=>t[7]||(t[7]=[xt(" mdi-alert ")])),_:1})],16)]),default:xe(()=>[t[8]||(t[8]=ot("span",null," Errors ",-1))]),_:1})],512),[[ar,m.errors.length!==0]]),me(w,{location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"edit-screen-icon",onClick:p.openEdit},{default:xe(()=>t[9]||(t[9]=[xt(" mdi-pencil ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[10]||(t[10]=ot("span",null," Edit Screen ",-1))]),_:1}),e.fixFloated?qn("",!0):(kt(),sn(w,{key:0,location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"float-screen-icon",onClick:p.floatScreen},{default:xe(()=>[xt(Ot(m.floated?"mdi-balloon":"mdi-view-grid-outline"),1)]),_:1},8,["onClick"])],16)]),default:xe(()=>[ot("span",null,Ot(m.floated?"Unfloat Screen":"Float Screen"),1)]),_:1})),m.floated?(kt(),sn(w,{key:1,location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"up-screen-icon",onClick:p.upScreen},{default:xe(()=>t[11]||(t[11]=[xt(" mdi-arrow-up ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[12]||(t[12]=ot("span",null," Move Screen Up ",-1))]),_:1})):qn("",!0),m.floated&&m.zIndex>e.minZ?(kt(),sn(w,{key:2,location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"down-screen-icon",onClick:p.downScreen},{default:xe(()=>t[13]||(t[13]=[xt(" mdi-arrow-down ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[14]||(t[14]=ot("span",null," Move Screen Down ",-1))]),_:1})):qn("",!0),me(h),ot("span",null,Ot(e.target)+" "+Ot(e.screen),1),me(h),me(w,{location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[sr(me(v,{"data-test":"minimize-screen-icon",onClick:p.minMaxTransition},{default:xe(()=>t[15]||(t[15]=[xt(" mdi-window-minimize ")])),_:1},8,["onClick"]),[[ar,m.expand]]),sr(me(v,{"data-test":"maximize-screen-icon",onClick:p.minMaxTransition},{default:xe(()=>t[16]||(t[16]=[xt(" mdi-window-maximize ")])),_:1},8,["onClick"]),[[ar,!m.expand]])],16)]),default:xe(()=>[sr(ot("span",null," Minimize Screen ",512),[[ar,m.expand]]),sr(ot("span",null," Maximize Screen ",512),[[ar,!m.expand]])]),_:1}),e.showClose?(kt(),sn(w,{key:3,location:"top"},{activator:xe(({props:y})=>[ot("div",zi(ji(y)),[me(v,{"data-test":"close-screen-icon",onClick:t[1]||(t[1]=b=>n.$emit("close-screen"))},{default:xe(()=>t[17]||(t[17]=[xt(" mdi-close-box ")])),_:1})],16)]),default:xe(()=>[t[18]||(t[18]=ot("span",null," Close Screen ",-1))]),_:1})):qn("",!0)]),_:1}),m.editDialog?qn("",!0):(kt(),sn(a,{key:0},{default:xe(()=>[sr(ot("div",$A,[me(s,{style:{"pointer-events":"none"},"model-value":m.errors.length!==0,opacity:"0.8",absolute:"",attach:""},null,8,["model-value"]),(kt(),sn(c,{key:m.screenKey,widgets:m.layoutStack[0].widgets,"screen-values":m.screenValues,"screen-time-zone":e.timeZone,onAddItem:p.addItem,onDeleteItem:p.deleteItem,onOpen:p.open,onClose:p.close,onCloseAll:p.closeAll},null,8,["widgets","screen-values","screen-time-zone","onAddItem","onDeleteItem","onOpen","onClose","onCloseAll"]))],512),[[ar,m.expand]])]),_:1}))]),_:1},8,["min-height","min-width"]),m.editDialog?(kt(),sn(o,{key:0,modelValue:m.editDialog,"onUpdate:modelValue":t[2]||(t[2]=y=>m.editDialog=y),target:e.target,screen:e.screen,definition:m.currentDefinition,keywords:e.keywords,errors:m.errors,onSave:t[3]||(t[3]=y=>p.saveEdit(y)),onCancel:t[4]||(t[4]=y=>p.cancelEdit()),onDelete:t[5]||(t[5]=y=>p.deleteScreen())},null,8,["modelValue","target","screen","definition","keywords","errors"])):qn("",!0),me(g,{modelValue:m.errorDialog,"onUpdate:modelValue":t[6]||(t[6]=y=>m.errorDialog=y),width:"60vw"},{default:xe(()=>[me(f,{height:"24"},{default:xe(()=>[me(h),ot("span",null," Screen: "+Ot(e.target)+" "+Ot(e.screen)+" Errors ",1),me(h)]),_:1}),me(l,null,{default:xe(()=>[me(u,{class:"errors",readonly:"",rows:"13","model-value":p.error},null,8,["model-value"])]),_:1})]),_:1},8,["modelValue"])],4)}const pI=dn("$",lr(kA,[["render",SA],["__scopeId","data-v-8975e347"]])),V0=[{path:"/:id?",name:"ScriptRunner",component:()=>Ne(()=>De.import("./ScriptRunner-b8a3addf4ef3e33ba3d1.js"),void 0)},{path:"/:pathMatch(.)*",name:"NotFound",component:_A}];V0.forEach(up);const CA=rp({history:op(),routes:V0}),AA={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"}},MA={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},TA=["innerHTML"],EA={key:2},LA={key:3,class:"validate mt-4"};function RA(n,t,e,i,m,p){const v=Te("v-spacer"),w=Te("v-toolbar"),h=Te("v-icon"),f=Te("v-text-field"),s=Te("v-card-text"),c=Te("v-btn"),a=Te("v-card-actions"),l=Te("v-card"),o=Te("v-dialog"),u=Te("v-app");return kt(),sn(u,null,{default:xe(()=>[me(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=g=>n.show=g),width:"600"},{default:xe(()=>[me(l,null,{default:xe(()=>[me(w,{height:"24"},{default:xe(()=>[me(v),ot("span",null,Ot(n.params.title),1),me(v)]),_:1}),me(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(kt(),sn(h,{key:0,class:"mr-2"},{default:xe(()=>t[2]||(t[2]=[xt(" mdi-alert ")])),_:1})):qn("",!0),n.params.html?(kt(),Li("span",{key:1,innerHTML:n.params.text},null,8,TA)):(kt(),Li("span",EA,Ot(n.params.text),1)),n.params.validateText?(kt(),Li("div",LA,[xt(" Enter "+Ot(n.params.validateText)+" to confirm! ",1),me(f,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=g=>n.validationText=g),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):qn("",!0)]),_:1}),me(a,{class:"px-2"},{default:xe(()=>[me(v),n.params.cancelText?(kt(),sn(c,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:xe(()=>[xt(Ot(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):qn("",!0),me(c,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:xe(()=>[xt(Ot(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const IA=lr(MA,[["render",RA],["__scopeId","data-v-581c0293"]]);class OA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(IA);t.use(Bh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:i,okClass:m,validateText:p,cancelText:v,html:w}){return this.mount(),new Promise((h,f)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:p,cancelText:v,html:w},h,f)})}confirm(t,{okText:e="Ok",cancelText:i="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:null,cancelText:i,html:!1})}alert(t,{okText:e="Ok",html:i=!1,okClass:m="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:m,validateText:null,cancelText:null,html:i})}validate(t,{okText:e="Ok",validateText:i="CONFIRM",cancelText:m="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:i,cancelText:m,html:!1})}}const DA={install(n,t){const e=new OA;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},NA={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`
1419
+ --toast-bg-color:${Fh[this.toastNotification.level]};
1420
+ --toast-fg-color:${iA(this.toastNotification.level)};
1421
+ `},contentStyle:function(){return`
1422
+ white-space: ${this.expanded?"normal":"nowrap"};
1423
+ overflow-x: ${this.expanded?"visible":"hidden"};
1424
+ text-overflow: ${this.expanded?"unset":"ellipsis"};
1425
+ `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},FA={key:0,class:"text-subtitle-1 mr-1 notification-text"},PA={key:1,class:"text-body-2 notification-text"},HA={key:2,class:"text-body-2 notification-text"};function BA(n,t,e,i,m,p){const v=Te("v-icon"),w=Te("v-spacer"),h=Te("v-btn"),f=Te("v-sheet"),s=Te("v-slide-y-transition");return kt(),sn(s,null,{default:xe(()=>[sr(me(f,{style:Oo(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:xe(()=>[me(v,{class:"mr-1 notification-text"},{default:xe(()=>[xt(Ot(p.toastNotificationIcon),1)]),_:1}),ot("div",{class:"toast-content",style:Oo(p.contentStyle)},[n.toastNotification.title?(kt(),Li("span",FA,Ot(n.toastNotification.title)+": ",1)):qn("",!0),n.toastNotification.body?(kt(),Li("span",PA,Ot(n.toastNotification.body),1)):qn("",!0),n.toastNotification.message?(kt(),Li("span",HA,Ot(n.toastNotification.message),1)):qn("",!0)],4),me(w),me(h,{variant:"text",onClick:Jr(p.hide,["stop"]),class:"notification-text"},{default:xe(()=>t[0]||(t[0]=[xt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[ar,n.showToast]])]),_:1})}const zA=lr(NA,[["render",BA],["__scopeId","data-v-b0459ba8"]]);class jA{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Lc(zA);t.use(Bh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:i,message:m,level:p,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:f=!0}){this.mount(),h&&console.log(m?`${p.toUpperCase()} - ${m}`:`${p.toUpperCase()} - ${e}: ${i}`),f&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:p}),this[t]({title:e,body:i,message:m,level:p,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:p,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},p)}critical({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}}const WA={install(n,t){const e=new jA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},q0=100,G0=ap({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=q0&&(n.notifyHistory.length=q0-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function Y0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function UA(n,t){const e={},i=new Set(Object.keys(n));for(const m of t)i.has(m)&&(e[m]=n[m]);return e}function K0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const i={};for(const m in n)i[m]=n[m];for(const m in t){const p=n[m],v=t[m];if(Y0(p)&&Y0(v)){i[m]=K0(p,v,e);continue}if(e&&Array.isArray(p)&&Array.isArray(v)){i[m]=e(p,v);continue}i[m]=v}return i}function Us(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Us.cache.has(n))return Us.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Us.cache.set(n,t),t}Us.cache=new Map;function VA(n){Xd(`Vuetify: ${n}`)}function Z0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const p=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...p,default:e[m]}:i[m]=p,t&&!i[m].source&&(i[m].source=t),i},{})}function Q0(n,t){const e=np();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function qA(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Hh=Symbol.for("vuetify:defaults");function X0(){const n=Jd(Hh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function GA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Us(t)])<"u"}function YA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X0();const i=Q0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Ec(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),p=new Proxy(n,{get(h,f){var s,c,a,l,o,u,g;const y=Reflect.get(h,f);return f==="class"||f==="style"?[(s=m.value)==null?void 0:s[f],y].filter(b=>b!=null):typeof f=="string"&&!GA(i.vnode,f)?((c=m.value)==null?void 0:c[f])!==void 0?(a=m.value)==null?void 0:a[f]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[f])!==void 0?(g=(u=e.value)==null?void 0:u.global)==null?void 0:g[f]:y:y}}),v=ep();tp(()=>{if(m.value){const h=Object.entries(m.value).filter(f=>{let[s]=f;return s.startsWith(s[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=qA(Hh,i);ip(Hh,Ec(()=>v.value?K0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:w}}function Sl(n){if(n._setup=n._setup??n.setup,!n.name)return VA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Z0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return UA(e,t)},n.props._as=String,n.setup=function(e,i){const m=X0();if(!m.value)return n._setup(e,i);const{props:p,provideSubDefaults:v}=YA(e,e._as??n.name,m),w=n._setup(p,i);return v(),w}}return n}function KA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Sl:Qd)(t)}const ZA=[String,Function,Object,Array],Cl=Z0({icon:{type:ZA},tag:{type:String,required:!0}},"icon");KA()({name:"VComponentIcon",props:Cl(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return me(n.tag,null,{default:()=>{var m;return[n.icon?me(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),Sl({name:"VSvgIcon",inheritAttrs:!1,props:Cl(),setup(n,t){let{attrs:e}=t;return()=>me(n.tag,Zd(e,{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(i=>Array.isArray(i)?me("path",{d:i[0],"fill-opacity":i[1]},null):me("path",{d:i},null)):me("path",{d:n.icon},null)])]})}}),Sl({name:"VLigatureIcon",props:Cl(),setup(n){return()=>me(n.tag,null,{default:()=>[n.icon]})}});const QA=Sl({name:"VClassIcon",props:Cl(),setup(n){return()=>me(n.tag,{class:n.icon},null)}}),XA={component:n=>_s(QA,{...n,class:"mdi"})},Bh=lp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:AA}},icons:{defaultSet:"mdi",sets:{mdi:XA,...oA}}}),zh=Vy({createApp:Lc,appOptions:{render(){return _s(Jy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(CA),n.use(G0),n.use(Bh),n.use(DA),n.use(WA,{store:G0})}}),fI=dn("f",zh.bootstrap),gI=dn("m",zh.mount),mI=dn("u",zh.unmount)}}});