openc3-cosmos-demo 5.20.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/targets/INST/cmd_tlm/inst_tlm.txt +5 -0
- data/targets/INST/lib/sim_inst.rb +5 -0
- data/targets/INST/screens/params.txt +11 -4
- data/targets/INST2/cmd_tlm/inst_tlm.txt +5 -0
- data/targets/INST2/lib/helper.py +1 -1
- data/targets/INST2/lib/sim_inst.py +5 -0
- data/targets/INST2/procedures/calendar.py +1 -1
- data/targets/INST2/procedures/collect.py +1 -1
- data/targets/INST2/procedures/my_script_suite.py +4 -4
- data/targets/INST2/screens/params.txt +11 -4
- data/tools/widgets/BigWidget/BigWidget.umd.min.js +1417 -2
- data/tools/widgets/BigWidget/BigWidget.umd.min.js.map +1 -1
- data/tools/widgets/DataviewerquaternionWidget/DataviewerquaternionWidget.umd.min.js +1428 -3
- data/tools/widgets/DataviewerquaternionWidget/DataviewerquaternionWidget.umd.min.js.map +1 -1
- data/tools/widgets/DataviewertimeWidget/DataviewertimeWidget.umd.min.js +1417 -2
- data/tools/widgets/DataviewertimeWidget/DataviewertimeWidget.umd.min.js.map +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js +1417 -2
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js.map +1 -1
- metadata +2 -2
@@ -1,10 +1,1435 @@
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["DataviewerquaternionWidget"]=e():t["DataviewerquaternionWidget"]=e()})("undefined"!==typeof self?self:this,(()=>(()=>{var t={7211:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o),u=a()(i());u.push([t.id,"i.v-icon.mdi-chevron-down{animation:pulse 2s 3}@keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}",""]);const s=u},8921:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o),u=a()(i());u.push([t.id,".text-area-container[data-v-01803198]{position:relative}.text-area-container .v-textarea[data-v-01803198]{font-family:Courier New,Courier,monospace}.text-area-container .floating-buttons[data-v-01803198]{position:absolute;top:12px;right:24px}.pulse[data-v-01803198]{animation:pulse-01803198 2s infinite}@keyframes pulse-01803198{0%{opacity:1}50%{opacity:.5}}",""]);const s=u},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"===typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var u=0;u<this.length;u++){var s=this[u][0];null!=s&&(a[s]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);r&&a[l[0]]||("undefined"!==typeof o&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},5250:function(t,e,n){var r;
|
1
|
+
(function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(e,vn){typeof exports=="object"&&typeof module<"u"?module.exports=vn(require("vue")):typeof define=="function"&&define.amd?define(["vue"],vn):(e=typeof globalThis<"u"?globalThis:e||self,e.DataviewerquaternionWidget=vn(e.vue))})(this,function(vue){"use strict";const s$2=(e,vn)=>{const _n=e.__vccOpts||e;for(const[kn,Wn]of vn)_n[kn]=Wn;return _n},$e$3=6e4,ze$3=36e5,Ue$3=1e3,q$3=Symbol.for("constructDateFrom");function y$b(e,vn){return typeof e=="function"?e(vn):e&&typeof e=="object"&&q$3 in e?e[q$3](vn):e instanceof Date?new e.constructor(vn):new Date(vn)}function l$3(e,vn){return y$b(vn||e,e)}let B$7={};function v$a(){return B$7}function x$3(e,vn){var _n,kn,Wn,zn;const Kn=v$a(),Qn=(vn==null?void 0:vn.weekStartsOn)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.weekStartsOn)??Kn.weekStartsOn??((zn=(Wn=Kn.locale)==null?void 0:Wn.options)==null?void 0:zn.weekStartsOn)??0,Hn=l$3(e,vn==null?void 0:vn.in),qn=Hn.getDay(),Nn=(qn<Qn?7:0)+qn-Qn;return Hn.setDate(Hn.getDate()-Nn),Hn.setHours(0,0,0,0),Hn}function D$3(e,vn){return x$3(e,{...vn,weekStartsOn:1})}function j$3(e,vn){const _n=l$3(e,void 0),kn=_n.getFullYear(),Wn=y$b(_n,0);Wn.setFullYear(kn+1,0,4),Wn.setHours(0,0,0,0);const zn=D$3(Wn),Kn=y$b(_n,0);Kn.setFullYear(kn,0,4),Kn.setHours(0,0,0,0);const Qn=D$3(Kn);return _n.getTime()>=zn.getTime()?kn+1:_n.getTime()>=Qn.getTime()?kn:kn-1}function N$5(e){const vn=l$3(e),_n=new Date(Date.UTC(vn.getFullYear(),vn.getMonth(),vn.getDate(),vn.getHours(),vn.getMinutes(),vn.getSeconds(),vn.getMilliseconds()));return _n.setUTCFullYear(vn.getFullYear()),+e-+_n}function A$5(e,...vn){const _n=y$b.bind(null,vn.find(kn=>typeof kn=="object"));return vn.map(_n)}function H$3(e,vn){const _n=l$3(e,void 0);return _n.setHours(0,0,0,0),_n}function R$4(e,vn,_n){const[kn,Wn]=A$5(void 0,e,vn),zn=H$3(kn),Kn=H$3(Wn),Qn=+zn-N$5(zn),Hn=+Kn-N$5(Kn);return Math.round((Qn-Hn)/864e5)}function V$4(e,vn){const _n=j$3(e),kn=y$b(e,0);return kn.setFullYear(_n,0,4),kn.setHours(0,0,0,0),D$3(kn)}function J$1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function $$8(e){return!(!J$1(e)&&typeof e!="number"||isNaN(+l$3(e)))}function z$9(e,vn){const _n=l$3(e,void 0);return _n.setFullYear(_n.getFullYear(),0,1),_n.setHours(0,0,0,0),_n}const U$5={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"}},K$3=(e,vn,_n)=>{let kn;const Wn=U$5[e];return typeof Wn=="string"?kn=Wn:vn===1?kn=Wn.one:kn=Wn.other.replace("{{count}}",vn.toString()),_n!=null&&_n.addSuffix?_n.comparison&&_n.comparison>0?"in "+kn:kn+" ago":kn};function Y$2(e){return(vn={})=>{const _n=vn.width?String(vn.width):e.defaultWidth;return e.formats[_n]||e.formats[e.defaultWidth]}}const Z$3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p$c={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ee$2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te$2={date:Y$2({formats:Z$3,defaultWidth:"full"}),time:Y$2({formats:p$c,defaultWidth:"full"}),dateTime:Y$2({formats:ee$2,defaultWidth:"full"})},ne$3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},re$3=(e,vn,_n,kn)=>ne$3[e];function k$9(e){return(vn,_n)=>{const kn=_n!=null&&_n.context?String(_n.context):"standalone";let Wn;if(kn==="formatting"&&e.formattingValues){const Kn=e.defaultFormattingWidth||e.defaultWidth,Qn=_n!=null&&_n.width?String(_n.width):Kn;Wn=e.formattingValues[Qn]||e.formattingValues[Kn]}else{const Kn=e.defaultWidth,Qn=_n!=null&&_n.width?String(_n.width):e.defaultWidth;Wn=e.values[Qn]||e.values[Kn]}const zn=e.argumentCallback?e.argumentCallback(vn):vn;return Wn[zn]}}const ae$3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ie$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},se$2={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"]},ue$5={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"]},ce$3={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"}},oe$3={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"}},de$4=(e,vn)=>{const _n=Number(e),kn=_n%100;if(kn>20||kn<10)switch(kn%10){case 1:return _n+"st";case 2:return _n+"nd";case 3:return _n+"rd"}return _n+"th"},fe$4={ordinalNumber:de$4,era:k$9({values:ae$3,defaultWidth:"wide"}),quarter:k$9({values:ie$2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:k$9({values:se$2,defaultWidth:"wide"}),day:k$9({values:ue$5,defaultWidth:"wide"}),dayPeriod:k$9({values:ce$3,defaultWidth:"wide",formattingValues:oe$3,defaultFormattingWidth:"wide"})};function W$3(e){return(vn,_n={})=>{const kn=_n.width,Wn=kn&&e.matchPatterns[kn]||e.matchPatterns[e.defaultMatchWidth],zn=vn.match(Wn);if(!zn)return null;const Kn=zn[0],Qn=kn&&e.parsePatterns[kn]||e.parsePatterns[e.defaultParseWidth],Hn=Array.isArray(Qn)?me$4(Qn,Dn=>Dn.test(Kn)):he$4(Qn,Dn=>Dn.test(Kn));let qn;qn=e.valueCallback?e.valueCallback(Hn):Hn,qn=_n.valueCallback?_n.valueCallback(qn):qn;const Nn=vn.slice(Kn.length);return{value:qn,rest:Nn}}}function he$4(e,vn){for(const _n in e)if(Object.prototype.hasOwnProperty.call(e,_n)&&vn(e[_n]))return _n}function me$4(e,vn){for(let _n=0;_n<e.length;_n++)if(vn(e[_n]))return _n}function le$4(e){return(vn,_n={})=>{const kn=vn.match(e.matchPattern);if(!kn)return null;const Wn=kn[0],zn=vn.match(e.parsePattern);if(!zn)return null;let Kn=e.valueCallback?e.valueCallback(zn[0]):zn[0];Kn=_n.valueCallback?_n.valueCallback(Kn):Kn;const Qn=vn.slice(Wn.length);return{value:Kn,rest:Qn}}}const ge$4=/^(\d+)(th|st|nd|rd)?/i,we$4=/\d+/i,ye$4={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},be$4={any:[/^b/i,/^(a|c)/i]},Me$3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pe$3={any:[/1/i,/2/i,/3/i,/4/i]},Oe$3={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},ke$2={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]},We$3={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},xe$3={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]},De$4={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},ve$4={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}},Se$4={ordinalNumber:le$4({matchPattern:ge$4,parsePattern:we$4,valueCallback:e=>parseInt(e,10)}),era:W$3({matchPatterns:ye$4,defaultMatchWidth:"wide",parsePatterns:be$4,defaultParseWidth:"any"}),quarter:W$3({matchPatterns:Me$3,defaultMatchWidth:"wide",parsePatterns:Pe$3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:W$3({matchPatterns:Oe$3,defaultMatchWidth:"wide",parsePatterns:ke$2,defaultParseWidth:"any"}),day:W$3({matchPatterns:We$3,defaultMatchWidth:"wide",parsePatterns:xe$3,defaultParseWidth:"any"}),dayPeriod:W$3({matchPatterns:De$4,defaultMatchWidth:"any",parsePatterns:ve$4,defaultParseWidth:"any"})},Ye$4={code:"en-US",formatDistance:K$3,formatLong:te$2,formatRelative:re$3,localize:fe$4,match:Se$4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Te$4(e,vn){const _n=l$3(e,void 0);return R$4(_n,z$9(_n))+1}function Fe$3(e,vn){const _n=l$3(e,void 0),kn=+D$3(_n)-+V$4(_n);return Math.round(kn/6048e5)+1}function L$5(e,vn){var _n,kn,Wn,zn;const Kn=l$3(e,vn==null?void 0:vn.in),Qn=Kn.getFullYear(),Hn=v$a(),qn=(vn==null?void 0:vn.firstWeekContainsDate)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.firstWeekContainsDate)??Hn.firstWeekContainsDate??((zn=(Wn=Hn.locale)==null?void 0:Wn.options)==null?void 0:zn.firstWeekContainsDate)??1,Nn=y$b((vn==null?void 0:vn.in)||e,0);Nn.setFullYear(Qn+1,0,qn),Nn.setHours(0,0,0,0);const Dn=x$3(Nn,vn),In=y$b((vn==null?void 0:vn.in)||e,0);In.setFullYear(Qn,0,qn),In.setHours(0,0,0,0);const Bn=x$3(In,vn);return+Kn>=+Dn?Qn+1:+Kn>=+Bn?Qn:Qn-1}function Ee$3(e,vn){var _n,kn,Wn,zn;const Kn=v$a(),Qn=(vn==null?void 0:vn.firstWeekContainsDate)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.firstWeekContainsDate)??Kn.firstWeekContainsDate??((zn=(Wn=Kn.locale)==null?void 0:Wn.options)==null?void 0:zn.firstWeekContainsDate)??1,Hn=L$5(e,vn),qn=y$b((vn==null?void 0:vn.in)||e,0);return qn.setFullYear(Hn,0,Qn),qn.setHours(0,0,0,0),x$3(qn,vn)}function Ce$3(e,vn){const _n=l$3(e,vn==null?void 0:vn.in),kn=+x$3(_n,vn)-+Ee$3(_n,vn);return Math.round(kn/6048e5)+1}function u$e(e,vn){const _n=e<0?"-":"",kn=Math.abs(e).toString().padStart(vn,"0");return _n+kn}const w$6={y(e,vn){const _n=e.getFullYear(),kn=_n>0?_n:1-_n;return u$e(vn==="yy"?kn%100:kn,vn.length)},M(e,vn){const _n=e.getMonth();return vn==="M"?String(_n+1):u$e(_n+1,2)},d(e,vn){return u$e(e.getDate(),vn.length)},a(e,vn){const _n=e.getHours()/12>=1?"pm":"am";switch(vn){case"a":case"aa":return _n.toUpperCase();case"aaa":return _n;case"aaaaa":return _n[0];case"aaaa":default:return _n==="am"?"a.m.":"p.m."}},h(e,vn){return u$e(e.getHours()%12||12,vn.length)},H(e,vn){return u$e(e.getHours(),vn.length)},m(e,vn){return u$e(e.getMinutes(),vn.length)},s(e,vn){return u$e(e.getSeconds(),vn.length)},S(e,vn){const _n=vn.length,kn=e.getMilliseconds(),Wn=Math.trunc(kn*Math.pow(10,_n-3));return u$e(Wn,vn.length)}},M$3={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Q$2={G:function(e,vn,_n){const kn=e.getFullYear()>0?1:0;switch(vn){case"G":case"GG":case"GGG":return _n.era(kn,{width:"abbreviated"});case"GGGGG":return _n.era(kn,{width:"narrow"});case"GGGG":default:return _n.era(kn,{width:"wide"})}},y:function(e,vn,_n){if(vn==="yo"){const kn=e.getFullYear(),Wn=kn>0?kn:1-kn;return _n.ordinalNumber(Wn,{unit:"year"})}return w$6.y(e,vn)},Y:function(e,vn,_n,kn){const Wn=L$5(e,kn),zn=Wn>0?Wn:1-Wn;if(vn==="YY"){const Kn=zn%100;return u$e(Kn,2)}return vn==="Yo"?_n.ordinalNumber(zn,{unit:"year"}):u$e(zn,vn.length)},R:function(e,vn){const _n=j$3(e);return u$e(_n,vn.length)},u:function(e,vn){const _n=e.getFullYear();return u$e(_n,vn.length)},Q:function(e,vn,_n){const kn=Math.ceil((e.getMonth()+1)/3);switch(vn){case"Q":return String(kn);case"QQ":return u$e(kn,2);case"Qo":return _n.ordinalNumber(kn,{unit:"quarter"});case"QQQ":return _n.quarter(kn,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _n.quarter(kn,{width:"narrow",context:"formatting"});case"QQQQ":default:return _n.quarter(kn,{width:"wide",context:"formatting"})}},q:function(e,vn,_n){const kn=Math.ceil((e.getMonth()+1)/3);switch(vn){case"q":return String(kn);case"qq":return u$e(kn,2);case"qo":return _n.ordinalNumber(kn,{unit:"quarter"});case"qqq":return _n.quarter(kn,{width:"abbreviated",context:"standalone"});case"qqqqq":return _n.quarter(kn,{width:"narrow",context:"standalone"});case"qqqq":default:return _n.quarter(kn,{width:"wide",context:"standalone"})}},M:function(e,vn,_n){const kn=e.getMonth();switch(vn){case"M":case"MM":return w$6.M(e,vn);case"Mo":return _n.ordinalNumber(kn+1,{unit:"month"});case"MMM":return _n.month(kn,{width:"abbreviated",context:"formatting"});case"MMMMM":return _n.month(kn,{width:"narrow",context:"formatting"});case"MMMM":default:return _n.month(kn,{width:"wide",context:"formatting"})}},L:function(e,vn,_n){const kn=e.getMonth();switch(vn){case"L":return String(kn+1);case"LL":return u$e(kn+1,2);case"Lo":return _n.ordinalNumber(kn+1,{unit:"month"});case"LLL":return _n.month(kn,{width:"abbreviated",context:"standalone"});case"LLLLL":return _n.month(kn,{width:"narrow",context:"standalone"});case"LLLL":default:return _n.month(kn,{width:"wide",context:"standalone"})}},w:function(e,vn,_n,kn){const Wn=Ce$3(e,kn);return vn==="wo"?_n.ordinalNumber(Wn,{unit:"week"}):u$e(Wn,vn.length)},I:function(e,vn,_n){const kn=Fe$3(e);return vn==="Io"?_n.ordinalNumber(kn,{unit:"week"}):u$e(kn,vn.length)},d:function(e,vn,_n){return vn==="do"?_n.ordinalNumber(e.getDate(),{unit:"date"}):w$6.d(e,vn)},D:function(e,vn,_n){const kn=Te$4(e);return vn==="Do"?_n.ordinalNumber(kn,{unit:"dayOfYear"}):u$e(kn,vn.length)},E:function(e,vn,_n){const kn=e.getDay();switch(vn){case"E":case"EE":case"EEE":return _n.day(kn,{width:"abbreviated",context:"formatting"});case"EEEEE":return _n.day(kn,{width:"narrow",context:"formatting"});case"EEEEEE":return _n.day(kn,{width:"short",context:"formatting"});case"EEEE":default:return _n.day(kn,{width:"wide",context:"formatting"})}},e:function(e,vn,_n,kn){const Wn=e.getDay(),zn=(Wn-kn.weekStartsOn+8)%7||7;switch(vn){case"e":return String(zn);case"ee":return u$e(zn,2);case"eo":return _n.ordinalNumber(zn,{unit:"day"});case"eee":return _n.day(Wn,{width:"abbreviated",context:"formatting"});case"eeeee":return _n.day(Wn,{width:"narrow",context:"formatting"});case"eeeeee":return _n.day(Wn,{width:"short",context:"formatting"});case"eeee":default:return _n.day(Wn,{width:"wide",context:"formatting"})}},c:function(e,vn,_n,kn){const Wn=e.getDay(),zn=(Wn-kn.weekStartsOn+8)%7||7;switch(vn){case"c":return String(zn);case"cc":return u$e(zn,vn.length);case"co":return _n.ordinalNumber(zn,{unit:"day"});case"ccc":return _n.day(Wn,{width:"abbreviated",context:"standalone"});case"ccccc":return _n.day(Wn,{width:"narrow",context:"standalone"});case"cccccc":return _n.day(Wn,{width:"short",context:"standalone"});case"cccc":default:return _n.day(Wn,{width:"wide",context:"standalone"})}},i:function(e,vn,_n){const kn=e.getDay(),Wn=kn===0?7:kn;switch(vn){case"i":return String(Wn);case"ii":return u$e(Wn,vn.length);case"io":return _n.ordinalNumber(Wn,{unit:"day"});case"iii":return _n.day(kn,{width:"abbreviated",context:"formatting"});case"iiiii":return _n.day(kn,{width:"narrow",context:"formatting"});case"iiiiii":return _n.day(kn,{width:"short",context:"formatting"});case"iiii":default:return _n.day(kn,{width:"wide",context:"formatting"})}},a:function(e,vn,_n){const kn=e.getHours()/12>=1?"pm":"am";switch(vn){case"a":case"aa":return _n.dayPeriod(kn,{width:"abbreviated",context:"formatting"});case"aaa":return _n.dayPeriod(kn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _n.dayPeriod(kn,{width:"narrow",context:"formatting"});case"aaaa":default:return _n.dayPeriod(kn,{width:"wide",context:"formatting"})}},b:function(e,vn,_n){const kn=e.getHours();let Wn;switch(kn===12?Wn=M$3.noon:kn===0?Wn=M$3.midnight:Wn=kn/12>=1?"pm":"am",vn){case"b":case"bb":return _n.dayPeriod(Wn,{width:"abbreviated",context:"formatting"});case"bbb":return _n.dayPeriod(Wn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _n.dayPeriod(Wn,{width:"narrow",context:"formatting"});case"bbbb":default:return _n.dayPeriod(Wn,{width:"wide",context:"formatting"})}},B:function(e,vn,_n){const kn=e.getHours();let Wn;switch(kn>=17?Wn=M$3.evening:kn>=12?Wn=M$3.afternoon:kn>=4?Wn=M$3.morning:Wn=M$3.night,vn){case"B":case"BB":case"BBB":return _n.dayPeriod(Wn,{width:"abbreviated",context:"formatting"});case"BBBBB":return _n.dayPeriod(Wn,{width:"narrow",context:"formatting"});case"BBBB":default:return _n.dayPeriod(Wn,{width:"wide",context:"formatting"})}},h:function(e,vn,_n){if(vn==="ho"){let kn=e.getHours()%12;return kn===0&&(kn=12),_n.ordinalNumber(kn,{unit:"hour"})}return w$6.h(e,vn)},H:function(e,vn,_n){return vn==="Ho"?_n.ordinalNumber(e.getHours(),{unit:"hour"}):w$6.H(e,vn)},K:function(e,vn,_n){const kn=e.getHours()%12;return vn==="Ko"?_n.ordinalNumber(kn,{unit:"hour"}):u$e(kn,vn.length)},k:function(e,vn,_n){let kn=e.getHours();return kn===0&&(kn=24),vn==="ko"?_n.ordinalNumber(kn,{unit:"hour"}):u$e(kn,vn.length)},m:function(e,vn,_n){return vn==="mo"?_n.ordinalNumber(e.getMinutes(),{unit:"minute"}):w$6.m(e,vn)},s:function(e,vn,_n){return vn==="so"?_n.ordinalNumber(e.getSeconds(),{unit:"second"}):w$6.s(e,vn)},S:function(e,vn){return w$6.S(e,vn)},X:function(e,vn,_n){const kn=e.getTimezoneOffset();if(kn===0)return"Z";switch(vn){case"X":return _$8(kn);case"XXXX":case"XX":return b$8(kn);case"XXXXX":case"XXX":default:return b$8(kn,":")}},x:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"x":return _$8(kn);case"xxxx":case"xx":return b$8(kn);case"xxxxx":case"xxx":default:return b$8(kn,":")}},O:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"O":case"OO":case"OOO":return"GMT"+X$2(kn,":");case"OOOO":default:return"GMT"+b$8(kn,":")}},z:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"z":case"zz":case"zzz":return"GMT"+X$2(kn,":");case"zzzz":default:return"GMT"+b$8(kn,":")}},t:function(e,vn,_n){const kn=Math.trunc(+e/1e3);return u$e(kn,vn.length)},T:function(e,vn,_n){return u$e(+e,vn.length)}};function X$2(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),Wn=Math.trunc(kn/60),zn=kn%60;return zn===0?_n+String(Wn):_n+String(Wn)+vn+u$e(zn,2)}function _$8(e,vn){return e%60===0?(e>0?"-":"+")+u$e(Math.abs(e)/60,2):b$8(e,vn)}function b$8(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),Wn=u$e(Math.trunc(kn/60),2),zn=u$e(kn%60,2);return _n+Wn+vn+zn}const I$4=(e,vn)=>{switch(e){case"P":return vn.date({width:"short"});case"PP":return vn.date({width:"medium"});case"PPP":return vn.date({width:"long"});case"PPPP":default:return vn.date({width:"full"})}},G$1=(e,vn)=>{switch(e){case"p":return vn.time({width:"short"});case"pp":return vn.time({width:"medium"});case"ppp":return vn.time({width:"long"});case"pppp":default:return vn.time({width:"full"})}},qe$2=(e,vn)=>{const _n=e.match(/(P+)(p+)?/)||[],kn=_n[1],Wn=_n[2];if(!Wn)return I$4(e,vn);let zn;switch(kn){case"P":zn=vn.dateTime({width:"short"});break;case"PP":zn=vn.dateTime({width:"medium"});break;case"PPP":zn=vn.dateTime({width:"long"});break;case"PPPP":default:zn=vn.dateTime({width:"full"});break}return zn.replace("{{date}}",I$4(kn,vn)).replace("{{time}}",G$1(Wn,vn))},Ne$3={p:G$1,P:qe$2},He$3=/^D+$/,Qe$2=/^Y+$/,Xe$3=["D","DD","YY","YYYY"];function _e$3(e){return He$3.test(e)}function Ie$3(e){return Qe$2.test(e)}function je$2(e,vn,_n){const kn=Le$3(e,vn,_n);if(console.warn(kn),Xe$3.includes(e))throw new RangeError(kn)}function Le$3(e,vn,_n){const kn=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${vn}\`) for formatting ${kn} to the input \`${_n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ge$2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Be$2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae$3=/^'([^]*?)'?$/,Re$2=/''/g,Ve$2=/[a-zA-Z]/;function pe$3(e,vn,_n){var kn,Wn,zn,Kn,Qn,Hn,qn,Nn;const Dn=v$a(),In=(_n==null?void 0:_n.locale)??Dn.locale??Ye$4,Bn=(_n==null?void 0:_n.firstWeekContainsDate)??((Wn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:Wn.firstWeekContainsDate)??Dn.firstWeekContainsDate??((Kn=(zn=Dn.locale)==null?void 0:zn.options)==null?void 0:Kn.firstWeekContainsDate)??1,Ln=(_n==null?void 0:_n.weekStartsOn)??((Hn=(Qn=_n==null?void 0:_n.locale)==null?void 0:Qn.options)==null?void 0:Hn.weekStartsOn)??Dn.weekStartsOn??((Nn=(qn=Dn.locale)==null?void 0:qn.options)==null?void 0:Nn.weekStartsOn)??0,Pn=l$3(e,_n==null?void 0:_n.in);if(!$$8(Pn))throw new RangeError("Invalid time value");let Zn=vn.match(Be$2).map(Xn=>{const mi=Xn[0];if(mi==="p"||mi==="P"){const li=Ne$3[mi];return li(Xn,In.formatLong)}return Xn}).join("").match(Ge$2).map(Xn=>{if(Xn==="''")return{isToken:!1,value:"'"};const mi=Xn[0];if(mi==="'")return{isToken:!1,value:Je$2(Xn)};if(Q$2[mi])return{isToken:!0,value:Xn};if(mi.match(Ve$2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+mi+"`");return{isToken:!1,value:Xn}});In.localize.preprocessor&&(Zn=In.localize.preprocessor(Pn,Zn));const Jn={firstWeekContainsDate:Bn,weekStartsOn:Ln,locale:In};return Zn.map(Xn=>{if(!Xn.isToken)return Xn.value;const mi=Xn.value;(!(_n!=null&&_n.useAdditionalWeekYearTokens)&&Ie$3(mi)||!(_n!=null&&_n.useAdditionalDayOfYearTokens)&&_e$3(mi))&&je$2(mi,vn,String(e));const li=Q$2[mi[0]];return li(Pn,mi,In.localize,Jn)}).join("")}function Je$2(e){const vn=e.match(Ae$3);return vn?vn[1].replace(Re$2,"'"):e}var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uc={exports:{}},Nd;function Yb(){return Nd||(Nd=1,function(e,vn){(function(){var _n="ace",kn=function(){return this}();!kn&&typeof window<"u"&&(kn=window);var Wn=function(Nn,Dn,In){if(typeof Nn!="string"){Wn.original?Wn.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(In=Dn),Wn.modules[Nn]||(Wn.payloads[Nn]=In,Wn.modules[Nn]=null)};Wn.modules={},Wn.payloads={};var zn=function(Nn,Dn,In){if(typeof Dn=="string"){var Bn=Hn(Nn,Dn);if(Bn!=null)return In&&In(),Bn}else if(Object.prototype.toString.call(Dn)==="[object Array]"){for(var Ln=[],Pn=0,Zn=Dn.length;Pn<Zn;++Pn){var Jn=Hn(Nn,Dn[Pn]);if(Jn==null&&Kn.original)return;Ln.push(Jn)}return In&&In.apply(null,Ln)||!0}},Kn=function(Nn,Dn){var In=zn("",Nn,Dn);return In==null&&Kn.original?Kn.original.apply(this,arguments):In},Qn=function(Nn,Dn){if(Dn.indexOf("!")!==-1){var In=Dn.split("!");return Qn(Nn,In[0])+"!"+Qn(Nn,In[1])}if(Dn.charAt(0)=="."){var Bn=Nn.split("/").slice(0,-1).join("/");for(Dn=Bn+"/"+Dn;Dn.indexOf(".")!==-1&&Ln!=Dn;){var Ln=Dn;Dn=Dn.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return Dn},Hn=function(Nn,Dn){Dn=Qn(Nn,Dn);var In=Wn.modules[Dn];if(!In){if(In=Wn.payloads[Dn],typeof In=="function"){var Bn={},Ln={id:Dn,uri:"",exports:Bn,packaged:!0},Pn=function(Jn,Xn){return zn(Dn,Jn,Xn)},Zn=In(Pn,Bn,Ln);Bn=Zn||Ln.exports,Wn.modules[Dn]=Bn,delete Wn.payloads[Dn]}In=Wn.modules[Dn]=Bn||In}return In};function qn(Nn){var Dn=kn;kn[Nn]||(kn[Nn]={}),Dn=kn[Nn],(!Dn.define||!Dn.define.packaged)&&(Wn.original=Dn.define,Dn.define=Wn,Dn.define.packaged=!0),(!Dn.require||!Dn.require.packaged)&&(Kn.original=Dn.require,Dn.require=Kn,Dn.require.packaged=!0)}qn(_n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(_n,kn,Wn){function zn(Kn,Qn,Hn){Object.defineProperty(Kn,Qn,{value:Hn,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||zn(String.prototype,"startsWith",function(Kn,Qn){return Qn=Qn||0,this.lastIndexOf(Kn,Qn)===Qn}),String.prototype.endsWith||zn(String.prototype,"endsWith",function(Kn,Qn){var Hn=this;(Qn===void 0||Qn>Hn.length)&&(Qn=Hn.length),Qn-=Kn.length;var qn=Hn.indexOf(Kn,Qn);return qn!==-1&&qn===Qn}),String.prototype.repeat||zn(String.prototype,"repeat",function(Kn){for(var Qn="",Hn=this;Kn>0;)Kn&1&&(Qn+=Hn),(Kn>>=1)&&(Hn+=Hn);return Qn}),String.prototype.includes||zn(String.prototype,"includes",function(Kn,Qn){return this.indexOf(Kn,Qn)!=-1}),Object.assign||(Object.assign=function(Kn){if(Kn==null)throw new TypeError("Cannot convert undefined or null to object");for(var Qn=Object(Kn),Hn=1;Hn<arguments.length;Hn++){var qn=arguments[Hn];qn!=null&&Object.keys(qn).forEach(function(Nn){Qn[Nn]=qn[Nn]})}return Qn}),Object.values||(Object.values=function(Kn){return Object.keys(Kn).map(function(Qn){return Kn[Qn]})}),Array.prototype.find||zn(Array.prototype,"find",function(Kn){for(var Qn=this.length,Hn=arguments[1],qn=0;qn<Qn;qn++){var Nn=this[qn];if(Kn.call(Hn,Nn,qn,this))return Nn}}),Array.prototype.findIndex||zn(Array.prototype,"findIndex",function(Kn){for(var Qn=this.length,Hn=arguments[1],qn=0;qn<Qn;qn++){var Nn=this[qn];if(Kn.call(Hn,Nn,qn,this))return qn}}),Array.prototype.includes||zn(Array.prototype,"includes",function(Kn,Qn){return this.indexOf(Kn,Qn)!=-1}),Array.prototype.fill||zn(Array.prototype,"fill",function(Kn){for(var Qn=this,Hn=Qn.length>>>0,qn=arguments[1],Nn=qn>>0,Dn=Nn<0?Math.max(Hn+Nn,0):Math.min(Nn,Hn),In=arguments[2],Bn=In===void 0?Hn:In>>0,Ln=Bn<0?Math.max(Hn+Bn,0):Math.min(Bn,Hn);Dn<Ln;)Qn[Dn]=Kn,Dn++;return Qn}),Array.of||zn(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(_n,kn,Wn){_n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(_n,kn,Wn){kn.deepCopy=function zn(Kn){if(typeof Kn!="object"||!Kn)return Kn;var Qn;if(Array.isArray(Kn)){Qn=[];for(var Hn=0;Hn<Kn.length;Hn++)Qn[Hn]=zn(Kn[Hn]);return Qn}if(Object.prototype.toString.call(Kn)!=="[object Object]")return Kn;Qn={};for(var Hn in Kn)Qn[Hn]=zn(Kn[Hn]);return Qn}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(_n,kn,Wn){kn.last=function(Qn){return Qn[Qn.length-1]},kn.stringReverse=function(Qn){return Qn.split("").reverse().join("")},kn.stringRepeat=function(Qn,Hn){for(var qn="";Hn>0;)Hn&1&&(qn+=Qn),(Hn>>=1)&&(Qn+=Qn);return qn};var zn=/^\s\s*/,Kn=/\s\s*$/;kn.stringTrimLeft=function(Qn){return Qn.replace(zn,"")},kn.stringTrimRight=function(Qn){return Qn.replace(Kn,"")},kn.copyObject=function(Qn){var Hn={};for(var qn in Qn)Hn[qn]=Qn[qn];return Hn},kn.copyArray=function(Qn){for(var Hn=[],qn=0,Nn=Qn.length;qn<Nn;qn++)Qn[qn]&&typeof Qn[qn]=="object"?Hn[qn]=this.copyObject(Qn[qn]):Hn[qn]=Qn[qn];return Hn},kn.deepCopy=_n("./deep_copy").deepCopy,kn.arrayToMap=function(Qn){for(var Hn={},qn=0;qn<Qn.length;qn++)Hn[Qn[qn]]=1;return Hn},kn.createMap=function(Qn){var Hn=Object.create(null);for(var qn in Qn)Hn[qn]=Qn[qn];return Hn},kn.arrayRemove=function(Qn,Hn){for(var qn=0;qn<=Qn.length;qn++)Hn===Qn[qn]&&Qn.splice(qn,1)},kn.escapeRegExp=function(Qn){return Qn.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},kn.escapeHTML=function(Qn){return(""+Qn).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},kn.getMatchOffsets=function(Qn,Hn){var qn=[];return Qn.replace(Hn,function(Nn){qn.push({offset:arguments[arguments.length-2],length:Nn.length})}),qn},kn.deferredCall=function(Qn){var Hn=null,qn=function(){Hn=null,Qn()},Nn=function(Dn){return Nn.cancel(),Hn=setTimeout(qn,Dn||0),Nn};return Nn.schedule=Nn,Nn.call=function(){return this.cancel(),Qn(),Nn},Nn.cancel=function(){return clearTimeout(Hn),Hn=null,Nn},Nn.isPending=function(){return Hn},Nn},kn.delayedCall=function(Qn,Hn){var qn=null,Nn=function(){qn=null,Qn()},Dn=function(In){qn==null&&(qn=setTimeout(Nn,In||Hn))};return Dn.delay=function(In){qn&&clearTimeout(qn),qn=setTimeout(Nn,In||Hn)},Dn.schedule=Dn,Dn.call=function(){this.cancel(),Qn()},Dn.cancel=function(){qn&&clearTimeout(qn),qn=null},Dn.isPending=function(){return qn},Dn},kn.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},kn.skipEmptyMatch=function(Qn,Hn,qn){return qn&&Qn.codePointAt(Hn)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(_n,kn,Wn){kn.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},kn.getOS=function(){return kn.isMac?kn.OS.MAC:kn.isLinux?kn.OS.LINUX:kn.OS.WINDOWS};var zn=typeof navigator=="object"?navigator:{},Kn=(/mac|win|linux/i.exec(zn.platform)||["other"])[0].toLowerCase(),Qn=zn.userAgent||"",Hn=zn.appName||"";kn.isWin=Kn=="win",kn.isMac=Kn=="mac",kn.isLinux=Kn=="linux",kn.isIE=Hn=="Microsoft Internet Explorer"||Hn.indexOf("MSAppHost")>=0?parseFloat((Qn.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((Qn.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),kn.isOldIE=kn.isIE&&kn.isIE<9,kn.isGecko=kn.isMozilla=Qn.match(/ Gecko\/\d+/),kn.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",kn.isWebKit=parseFloat(Qn.split("WebKit/")[1])||void 0,kn.isChrome=parseFloat(Qn.split(" Chrome/")[1])||void 0,kn.isSafari=parseFloat(Qn.split(" Safari/")[1])&&!kn.isChrome||void 0,kn.isEdge=parseFloat(Qn.split(" Edge/")[1])||void 0,kn.isAIR=Qn.indexOf("AdobeAIR")>=0,kn.isAndroid=Qn.indexOf("Android")>=0,kn.isChromeOS=Qn.indexOf(" CrOS ")>=0,kn.isIOS=/iPad|iPhone|iPod/.test(Qn)&&!window.MSStream,kn.isIOS&&(kn.isMac=!0),kn.isMobile=kn.isIOS||kn.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("./useragent"),Kn="http://www.w3.org/1999/xhtml";kn.buildDom=function In(Bn,Ln,Pn){if(typeof Bn=="string"&&Bn){var Zn=document.createTextNode(Bn);return Ln&&Ln.appendChild(Zn),Zn}if(!Array.isArray(Bn))return Bn&&Bn.appendChild&&Ln&&Ln.appendChild(Bn),Bn;if(typeof Bn[0]!="string"||!Bn[0]){for(var Jn=[],Xn=0;Xn<Bn.length;Xn++){var mi=In(Bn[Xn],Ln,Pn);mi&&Jn.push(mi)}return Jn}var li=document.createElement(Bn[0]),oi=Bn[1],ei=1;oi&&typeof oi=="object"&&!Array.isArray(oi)&&(ei=2);for(var Xn=ei;Xn<Bn.length;Xn++)In(Bn[Xn],li,Pn);return ei==2&&Object.keys(oi).forEach(function(fi){var gi=oi[fi];fi==="class"?li.className=Array.isArray(gi)?gi.join(" "):gi:typeof gi=="function"||fi=="value"||fi[0]=="$"?li[fi]=gi:fi==="ref"?Pn&&(Pn[gi]=li):fi==="style"?typeof gi=="string"&&(li.style.cssText=gi):gi!=null&&li.setAttribute(fi,gi)}),Ln&&Ln.appendChild(li),li},kn.getDocumentHead=function(In){return In||(In=document),In.head||In.getElementsByTagName("head")[0]||In.documentElement},kn.createElement=function(In,Bn){return document.createElementNS?document.createElementNS(Bn||Kn,In):document.createElement(In)},kn.removeChildren=function(In){In.innerHTML=""},kn.createTextNode=function(In,Bn){var Ln=Bn?Bn.ownerDocument:document;return Ln.createTextNode(In)},kn.createFragment=function(In){var Bn=In?In.ownerDocument:document;return Bn.createDocumentFragment()},kn.hasCssClass=function(In,Bn){var Ln=(In.className+"").split(/\s+/g);return Ln.indexOf(Bn)!==-1},kn.addCssClass=function(In,Bn){kn.hasCssClass(In,Bn)||(In.className+=" "+Bn)},kn.removeCssClass=function(In,Bn){for(var Ln=In.className.split(/\s+/g);;){var Pn=Ln.indexOf(Bn);if(Pn==-1)break;Ln.splice(Pn,1)}In.className=Ln.join(" ")},kn.toggleCssClass=function(In,Bn){for(var Ln=In.className.split(/\s+/g),Pn=!0;;){var Zn=Ln.indexOf(Bn);if(Zn==-1)break;Pn=!1,Ln.splice(Zn,1)}return Pn&&Ln.push(Bn),In.className=Ln.join(" "),Pn},kn.setCssClass=function(In,Bn,Ln){Ln?kn.addCssClass(In,Bn):kn.removeCssClass(In,Bn)},kn.hasCssString=function(In,Bn){var Ln=0,Pn;if(Bn=Bn||document,Pn=Bn.querySelectorAll("style")){for(;Ln<Pn.length;)if(Pn[Ln++].id===In)return!0}},kn.removeElementById=function(In,Bn){Bn=Bn||document,Bn.getElementById(In)&&Bn.getElementById(In).remove()};var Qn,Hn=[];kn.useStrictCSP=function(In){Qn=In,In==!1?qn():Hn||(Hn=[])};function qn(){var In=Hn;Hn=null,In&&In.forEach(function(Bn){Nn(Bn[0],Bn[1])})}function Nn(In,Bn,Ln){if(!(typeof document>"u")){if(Hn){if(Ln)qn();else if(Ln===!1)return Hn.push([In,Bn])}if(!Qn){var Pn=Ln;!Ln||!Ln.getRootNode?Pn=document:(Pn=Ln.getRootNode(),(!Pn||Pn==Ln)&&(Pn=document));var Zn=Pn.ownerDocument||Pn;if(Bn&&kn.hasCssString(Bn,Pn))return null;Bn&&(In+=`
|
2
|
+
/*# sourceURL=ace/css/`+Bn+" */");var Jn=kn.createElement("style");Jn.appendChild(Zn.createTextNode(In)),Bn&&(Jn.id=Bn),Pn==Zn&&(Pn=kn.getDocumentHead(Zn)),Pn.insertBefore(Jn,Pn.firstChild)}}}if(kn.importCssString=Nn,kn.importCssStylsheet=function(In,Bn){kn.buildDom(["link",{rel:"stylesheet",href:In}],kn.getDocumentHead(Bn))},kn.scrollbarWidth=function(In){var Bn=kn.createElement("ace_inner");Bn.style.width="100%",Bn.style.minWidth="0px",Bn.style.height="200px",Bn.style.display="block";var Ln=kn.createElement("ace_outer"),Pn=Ln.style;Pn.position="absolute",Pn.left="-10000px",Pn.overflow="hidden",Pn.width="200px",Pn.minWidth="0px",Pn.height="150px",Pn.display="block",Ln.appendChild(Bn);var Zn=In&&In.documentElement||document&&document.documentElement;if(!Zn)return 0;Zn.appendChild(Ln);var Jn=Bn.offsetWidth;Pn.overflow="scroll";var Xn=Bn.offsetWidth;return Jn===Xn&&(Xn=Ln.clientWidth),Zn.removeChild(Ln),Jn-Xn},kn.computedStyle=function(In,Bn){return window.getComputedStyle(In,"")||{}},kn.setStyle=function(In,Bn,Ln){In[Bn]!==Ln&&(In[Bn]=Ln)},kn.HAS_CSS_ANIMATION=!1,kn.HAS_CSS_TRANSFORMS=!1,kn.HI_DPI=zn.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,zn.isChromeOS&&(kn.HI_DPI=!1),typeof document<"u"){var Dn=document.createElement("div");kn.HI_DPI&&Dn.style.transform!==void 0&&(kn.HAS_CSS_TRANSFORMS=!0),!zn.isEdge&&typeof Dn.style.animationName<"u"&&(kn.HAS_CSS_ANIMATION=!0),Dn=null}kn.HAS_CSS_TRANSFORMS?kn.translate=function(In,Bn,Ln){In.style.transform="translate("+Math.round(Bn)+"px, "+Math.round(Ln)+"px)"}:kn.translate=function(In,Bn,Ln){In.style.top=Math.round(Ln)+"px",In.style.left=Math.round(Bn)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(_n,kn,Wn){/*
|
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 zn=_n("./dom");kn.get=function(Kn,Qn){var Hn=new XMLHttpRequest;Hn.open("GET",Kn,!0),Hn.onreadystatechange=function(){Hn.readyState===4&&Qn(Hn.responseText)},Hn.send(null)},kn.loadScript=function(Kn,Qn){var Hn=zn.getDocumentHead(),qn=document.createElement("script");qn.src=Kn,Hn.appendChild(qn),qn.onload=qn.onreadystatechange=function(Nn,Dn){(Dn||!qn.readyState||qn.readyState=="loaded"||qn.readyState=="complete")&&(qn=qn.onload=qn.onreadystatechange=null,Dn||Qn())}},kn.qualifyURL=function(Kn){var Qn=document.createElement("a");return Qn.href=Kn,Qn.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(_n,kn,Wn){kn.inherits=function(zn,Kn){zn.super_=Kn,zn.prototype=Object.create(Kn.prototype,{constructor:{value:zn,enumerable:!1,writable:!0,configurable:!0}})},kn.mixin=function(zn,Kn){for(var Qn in Kn)zn[Qn]=Kn[Qn];return zn},kn.implement=function(zn,Kn){kn.mixin(zn,Kn)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(_n,kn,Wn){var zn={},Kn=function(){this.propagationStopped=!0},Qn=function(){this.defaultPrevented=!0};zn._emit=zn._dispatchEvent=function(Hn,qn){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var Nn=this._eventRegistry[Hn]||[],Dn=this._defaultHandlers[Hn];if(!(!Nn.length&&!Dn)){(typeof qn!="object"||!qn)&&(qn={}),qn.type||(qn.type=Hn),qn.stopPropagation||(qn.stopPropagation=Kn),qn.preventDefault||(qn.preventDefault=Qn),Nn=Nn.slice();for(var In=0;In<Nn.length&&(Nn[In](qn,this),!qn.propagationStopped);In++);if(Dn&&!qn.defaultPrevented)return Dn(qn,this)}},zn._signal=function(Hn,qn){var Nn=(this._eventRegistry||{})[Hn];if(Nn){Nn=Nn.slice();for(var Dn=0;Dn<Nn.length;Dn++)Nn[Dn](qn,this)}},zn.once=function(Hn,qn){var Nn=this;if(this.on(Hn,function Dn(){Nn.off(Hn,Dn),qn.apply(null,arguments)}),!qn)return new Promise(function(Dn){qn=Dn})},zn.setDefaultHandler=function(Hn,qn){var Nn=this._defaultHandlers;if(Nn||(Nn=this._defaultHandlers={_disabled_:{}}),Nn[Hn]){var Dn=Nn[Hn],In=Nn._disabled_[Hn];In||(Nn._disabled_[Hn]=In=[]),In.push(Dn);var Bn=In.indexOf(qn);Bn!=-1&&In.splice(Bn,1)}Nn[Hn]=qn},zn.removeDefaultHandler=function(Hn,qn){var Nn=this._defaultHandlers;if(Nn){var Dn=Nn._disabled_[Hn];if(Nn[Hn]==qn)Dn&&this.setDefaultHandler(Hn,Dn.pop());else if(Dn){var In=Dn.indexOf(qn);In!=-1&&Dn.splice(In,1)}}},zn.on=zn.addEventListener=function(Hn,qn,Nn){this._eventRegistry=this._eventRegistry||{};var Dn=this._eventRegistry[Hn];return Dn||(Dn=this._eventRegistry[Hn]=[]),Dn.indexOf(qn)==-1&&Dn[Nn?"unshift":"push"](qn),qn},zn.off=zn.removeListener=zn.removeEventListener=function(Hn,qn){this._eventRegistry=this._eventRegistry||{};var Nn=this._eventRegistry[Hn];if(Nn){var Dn=Nn.indexOf(qn);Dn!==-1&&Nn.splice(Dn,1)}},zn.removeAllListeners=function(Hn){Hn||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[Hn]=void 0),this._defaultHandlers&&(this._defaultHandlers[Hn]=void 0)},kn.EventEmitter=zn}),ace.define("ace/lib/report_error",["require","exports","module"],function(_n,kn,Wn){kn.reportError=function(zn,Kn){var Qn=new Error(zn);Qn.data=Kn,typeof console=="object"&&console.error&&console.error(Qn),setTimeout(function(){throw Qn})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(_n,kn,Wn){var zn={"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"};kn.defaultEnglishMessages=zn}),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(_n,kn,Wn){"no use strict";var zn=_n("./oop"),Kn=_n("./event_emitter").EventEmitter,Qn=_n("./report_error").reportError,Hn=_n("./default_english_messages").defaultEnglishMessages,qn={setOptions:function(Ln){Object.keys(Ln).forEach(function(Pn){this.setOption(Pn,Ln[Pn])},this)},getOptions:function(Ln){var Pn={};if(Ln)Array.isArray(Ln)||(Pn=Ln,Ln=Object.keys(Pn));else{var Zn=this.$options;Ln=Object.keys(Zn).filter(function(Jn){return!Zn[Jn].hidden})}return Ln.forEach(function(Jn){Pn[Jn]=this.getOption(Jn)},this),Pn},setOption:function(Ln,Pn){if(this["$"+Ln]!==Pn){var Zn=this.$options[Ln];if(!Zn)return Nn('misspelled option "'+Ln+'"');if(Zn.forwardTo)return this[Zn.forwardTo]&&this[Zn.forwardTo].setOption(Ln,Pn);Zn.handlesSet||(this["$"+Ln]=Pn),Zn&&Zn.set&&Zn.set.call(this,Pn)}},getOption:function(Ln){var Pn=this.$options[Ln];return Pn?Pn.forwardTo?this[Pn.forwardTo]&&this[Pn.forwardTo].getOption(Ln):Pn&&Pn.get?Pn.get.call(this):this["$"+Ln]:Nn('misspelled option "'+Ln+'"')}};function Nn(Ln){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var Dn,In,Bn=function(){function Ln(){this.$defaultOptions={},Dn=Hn,In="dollarSigns"}return Ln.prototype.defineOptions=function(Pn,Zn,Jn){return Pn.$options||(this.$defaultOptions[Zn]=Pn.$options={}),Object.keys(Jn).forEach(function(Xn){var mi=Jn[Xn];typeof mi=="string"&&(mi={forwardTo:mi}),mi.name||(mi.name=Xn),Pn.$options[mi.name]=mi,"initialValue"in mi&&(Pn["$"+mi.name]=mi.initialValue)}),zn.implement(Pn,qn),this},Ln.prototype.resetOptions=function(Pn){Object.keys(Pn.$options).forEach(function(Zn){var Jn=Pn.$options[Zn];"value"in Jn&&Pn.setOption(Zn,Jn.value)})},Ln.prototype.setDefaultValue=function(Pn,Zn,Jn){if(!Pn){for(Pn in this.$defaultOptions)if(this.$defaultOptions[Pn][Zn])break;if(!this.$defaultOptions[Pn][Zn])return!1}var Xn=this.$defaultOptions[Pn]||(this.$defaultOptions[Pn]={});Xn[Zn]&&(Xn.forwardTo?this.setDefaultValue(Xn.forwardTo,Zn,Jn):Xn[Zn].value=Jn)},Ln.prototype.setDefaultValues=function(Pn,Zn){Object.keys(Zn).forEach(function(Jn){this.setDefaultValue(Pn,Jn,Zn[Jn])},this)},Ln.prototype.setMessages=function(Pn,Zn){Dn=Pn,Zn&&Zn.placeholders&&(In=Zn.placeholders)},Ln.prototype.nls=function(Pn,Zn,Jn){Dn[Pn]||(Nn("No message found for the key '"+Pn+"' in messages with id "+Dn.$id+", trying to find a translation for the default string '"+Zn+"'."),Dn[Zn]||Nn("No message found for the default string '"+Zn+"' in the provided messages. Falling back to the default English message."));var Xn=Dn[Pn]||Dn[Zn]||Zn;return Jn&&(In==="dollarSigns"&&(Xn=Xn.replace(/\$(\$|[\d]+)/g,function(mi,li){return li=="$"?"$":Jn[li]})),In==="curlyBrackets"&&(Xn=Xn.replace(/\{([^\}]+)\}/g,function(mi,li){return Jn[li]}))),Xn},Ln}();Bn.prototype.warn=Nn,Bn.prototype.reportError=Qn,zn.implement(Bn.prototype,Kn),kn.AppConfig=Bn}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(_n,kn,Wn){Wn.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(_n,kn,Wn){kn.isDark=!1,kn.cssClass="ace-tm",kn.cssText=_n("./textmate-css"),kn.$id="ace/theme/textmate";var zn=_n("../lib/dom");zn.importCssString(kn.cssText,kn.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(_n,kn,Wn){"no use strict";var zn=_n("./lib/lang"),Kn=_n("./lib/net"),Qn=_n("./lib/dom"),Hn=_n("./lib/app_config").AppConfig;Wn.exports=kn=new Hn;var qn={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};kn.get=function(Bn){if(!qn.hasOwnProperty(Bn))throw new Error("Unknown config key: "+Bn);return qn[Bn]},kn.set=function(Bn,Ln){if(qn.hasOwnProperty(Bn))qn[Bn]=Ln;else if(this.setDefaultValue("",Bn,Ln)==!1)throw new Error("Unknown config key: "+Bn);Bn=="useStrictCSP"&&Qn.useStrictCSP(Ln)},kn.all=function(){return zn.copyObject(qn)},kn.$modes={},kn.moduleUrl=function(Bn,Ln){if(qn.$moduleUrls[Bn])return qn.$moduleUrls[Bn];var Pn=Bn.split("/");Ln=Ln||Pn[Pn.length-2]||"";var Zn=Ln=="snippets"?"/":"-",Jn=Pn[Pn.length-1];if(Ln=="worker"&&Zn=="-"){var Xn=new RegExp("^"+Ln+"[\\-_]|[\\-_]"+Ln+"$","g");Jn=Jn.replace(Xn,"")}(!Jn||Jn==Ln)&&Pn.length>1&&(Jn=Pn[Pn.length-2]);var mi=qn[Ln+"Path"];return mi==null?mi=qn.basePath:Zn=="/"&&(Ln=Zn=""),mi&&mi.slice(-1)!="/"&&(mi+="/"),mi+Ln+Zn+Jn+this.get("suffix")},kn.setModuleUrl=function(Bn,Ln){return qn.$moduleUrls[Bn]=Ln};var Nn=function(Bn,Ln){if(Bn==="ace/theme/textmate"||Bn==="./theme/textmate")return Ln(null,_n("./theme/textmate"));if(Dn)return Dn(Bn,Ln);console.error("loader is not configured")},Dn;kn.setLoader=function(Bn){Dn=Bn},kn.dynamicModules=Object.create(null),kn.$loading={},kn.$loaded={},kn.loadModule=function(Bn,Ln){var Pn;if(Array.isArray(Bn))var Zn=Bn[0],Jn=Bn[1];else if(typeof Bn=="string")var Jn=Bn;var Xn=function(mi){if(mi&&!kn.$loading[Jn])return Ln&&Ln(mi);if(kn.$loading[Jn]||(kn.$loading[Jn]=[]),kn.$loading[Jn].push(Ln),!(kn.$loading[Jn].length>1)){var li=function(){Nn(Jn,function(oi,ei){ei&&(kn.$loaded[Jn]=ei),kn._emit("load.module",{name:Jn,module:ei});var fi=kn.$loading[Jn];kn.$loading[Jn]=null,fi.forEach(function(gi){gi&&gi(ei)})})};if(!kn.get("packaged"))return li();Kn.loadScript(kn.moduleUrl(Jn,Zn),li),In()}};if(kn.dynamicModules[Jn])kn.dynamicModules[Jn]().then(function(mi){mi.default?Xn(mi.default):Xn(mi)});else{try{Pn=this.$require(Jn)}catch{}Xn(Pn||kn.$loaded[Jn])}},kn.$require=function(Bn){if(typeof Wn.require=="function"){var Ln="require";return Wn[Ln](Bn)}},kn.setModuleLoader=function(Bn,Ln){kn.dynamicModules[Bn]=Ln};var In=function(){!qn.basePath&&!qn.workerPath&&!qn.modePath&&!qn.themePath&&!Object.keys(qn.$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"),In=function(){})};kn.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(_n,kn,Wn){_n("./lib/fixoldbrowsers");var zn=_n("./config");zn.setLoader(function(qn,Nn){_n([qn],function(Dn){Nn(null,Dn)})});var Kn=function(){return this||typeof window<"u"&&window}();Wn.exports=function(qn){zn.init=Qn,zn.$require=_n,qn.require=_n},Qn(!0);function Qn(qn){if(!(!Kn||!Kn.document)){zn.set("packaged",qn||_n.packaged||Wn.packaged||Kn.define&&(void 0).packaged);var Nn={},Dn="",In=document.currentScript||document._currentScript,Bn=In&&In.ownerDocument||document;In&&In.src&&(Dn=In.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var Ln=Bn.getElementsByTagName("script"),Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.src||Zn.getAttribute("src");if(Jn){for(var Xn=Zn.attributes,mi=0,li=Xn.length;mi<li;mi++){var oi=Xn[mi];oi.name.indexOf("data-ace-")===0&&(Nn[Hn(oi.name.replace(/^data-ace-/,""))]=oi.value)}var ei=Jn.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);ei&&(Dn=ei[1])}}Dn&&(Nn.base=Nn.base||Dn,Nn.packaged=!0),Nn.basePath=Nn.base,Nn.workerPath=Nn.workerPath||Nn.base,Nn.modePath=Nn.modePath||Nn.base,Nn.themePath=Nn.themePath||Nn.base,delete Nn.base;for(var fi in Nn)typeof Nn[fi]<"u"&&zn.set(fi,Nn[fi])}}function Hn(qn){return qn.replace(/-(.)/g,function(Nn,Dn){return Dn.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(_n,kn,Wn){var zn=function(){function Kn(Qn,Hn,qn,Nn){this.start={row:Qn,column:Hn},this.end={row:qn,column:Nn}}return Kn.prototype.isEqual=function(Qn){return this.start.row===Qn.start.row&&this.end.row===Qn.end.row&&this.start.column===Qn.start.column&&this.end.column===Qn.end.column},Kn.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},Kn.prototype.contains=function(Qn,Hn){return this.compare(Qn,Hn)==0},Kn.prototype.compareRange=function(Qn){var Hn,qn=Qn.end,Nn=Qn.start;return Hn=this.compare(qn.row,qn.column),Hn==1?(Hn=this.compare(Nn.row,Nn.column),Hn==1?2:Hn==0?1:0):Hn==-1?-2:(Hn=this.compare(Nn.row,Nn.column),Hn==-1?-1:Hn==1?42:0)},Kn.prototype.comparePoint=function(Qn){return this.compare(Qn.row,Qn.column)},Kn.prototype.containsRange=function(Qn){return this.comparePoint(Qn.start)==0&&this.comparePoint(Qn.end)==0},Kn.prototype.intersects=function(Qn){var Hn=this.compareRange(Qn);return Hn==-1||Hn==0||Hn==1},Kn.prototype.isEnd=function(Qn,Hn){return this.end.row==Qn&&this.end.column==Hn},Kn.prototype.isStart=function(Qn,Hn){return this.start.row==Qn&&this.start.column==Hn},Kn.prototype.setStart=function(Qn,Hn){typeof Qn=="object"?(this.start.column=Qn.column,this.start.row=Qn.row):(this.start.row=Qn,this.start.column=Hn)},Kn.prototype.setEnd=function(Qn,Hn){typeof Qn=="object"?(this.end.column=Qn.column,this.end.row=Qn.row):(this.end.row=Qn,this.end.column=Hn)},Kn.prototype.inside=function(Qn,Hn){return this.compare(Qn,Hn)==0?!(this.isEnd(Qn,Hn)||this.isStart(Qn,Hn)):!1},Kn.prototype.insideStart=function(Qn,Hn){return this.compare(Qn,Hn)==0?!this.isEnd(Qn,Hn):!1},Kn.prototype.insideEnd=function(Qn,Hn){return this.compare(Qn,Hn)==0?!this.isStart(Qn,Hn):!1},Kn.prototype.compare=function(Qn,Hn){return!this.isMultiLine()&&Qn===this.start.row?Hn<this.start.column?-1:Hn>this.end.column?1:0:Qn<this.start.row?-1:Qn>this.end.row?1:this.start.row===Qn?Hn>=this.start.column?0:-1:this.end.row===Qn?Hn<=this.end.column?0:1:0},Kn.prototype.compareStart=function(Qn,Hn){return this.start.row==Qn&&this.start.column==Hn?-1:this.compare(Qn,Hn)},Kn.prototype.compareEnd=function(Qn,Hn){return this.end.row==Qn&&this.end.column==Hn?1:this.compare(Qn,Hn)},Kn.prototype.compareInside=function(Qn,Hn){return this.end.row==Qn&&this.end.column==Hn?1:this.start.row==Qn&&this.start.column==Hn?-1:this.compare(Qn,Hn)},Kn.prototype.clipRows=function(Qn,Hn){if(this.end.row>Hn)var qn={row:Hn+1,column:0};else if(this.end.row<Qn)var qn={row:Qn,column:0};if(this.start.row>Hn)var Nn={row:Hn+1,column:0};else if(this.start.row<Qn)var Nn={row:Qn,column:0};return Kn.fromPoints(Nn||this.start,qn||this.end)},Kn.prototype.extend=function(Qn,Hn){var qn=this.compare(Qn,Hn);if(qn==0)return this;if(qn==-1)var Nn={row:Qn,column:Hn};else var Dn={row:Qn,column:Hn};return Kn.fromPoints(Nn||this.start,Dn||this.end)},Kn.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},Kn.prototype.isMultiLine=function(){return this.start.row!==this.end.row},Kn.prototype.clone=function(){return Kn.fromPoints(this.start,this.end)},Kn.prototype.collapseRows=function(){return this.end.column==0?new Kn(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Kn(this.start.row,0,this.end.row,0)},Kn.prototype.toScreenRange=function(Qn){var Hn=Qn.documentToScreenPosition(this.start),qn=Qn.documentToScreenPosition(this.end);return new Kn(Hn.row,Hn.column,qn.row,qn.column)},Kn.prototype.moveBy=function(Qn,Hn){this.start.row+=Qn,this.start.column+=Hn,this.end.row+=Qn,this.end.column+=Hn},Kn}();zn.fromPoints=function(Kn,Qn){return new zn(Kn.row,Kn.column,Qn.row,Qn.column)},zn.comparePoints=function(Kn,Qn){return Kn.row-Qn.row||Kn.column-Qn.column},kn.Range=zn}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(_n,kn,Wn){for(var zn=_n("./oop"),Kn={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:"*"}},Qn={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},Hn=0;Hn<10;Hn++)Qn["Digit"+Hn]=48+Hn,Qn["Numpad"+Hn]=96+Hn,Kn.PRINTABLE_KEYS[48+Hn]=""+Hn,Kn.FUNCTION_KEYS[96+Hn]="Numpad"+Hn;for(var Hn=65;Hn<91;Hn++){var qn=String.fromCharCode(Hn+32);Qn["Key"+qn.toUpperCase()]=Hn,Kn.PRINTABLE_KEYS[Hn]=qn}for(var Hn=1;Hn<13;Hn++)Qn["F"+Hn]=111+Hn,Kn.FUNCTION_KEYS[111+Hn]="F"+Hn;var Nn={Shift:16,Control:17,Alt:18,Meta:224};for(var Dn in Nn)Qn[Dn]=Qn[Dn+"Left"]=Qn[Dn+"Right"]=Nn[Dn];kn.$codeToKeyCode=Qn,Kn.PRINTABLE_KEYS[173]="-";for(var In in Kn.FUNCTION_KEYS){var Bn=Kn.FUNCTION_KEYS[In].toLowerCase();Kn[Bn]=parseInt(In,10)}for(var In in Kn.PRINTABLE_KEYS){var Bn=Kn.PRINTABLE_KEYS[In].toLowerCase();Kn[Bn]=parseInt(In,10)}zn.mixin(Kn,Kn.MODIFIER_KEYS),zn.mixin(Kn,Kn.PRINTABLE_KEYS),zn.mixin(Kn,Kn.FUNCTION_KEYS),Kn.enter=Kn.return,Kn.escape=Kn.esc,Kn.del=Kn.delete,function(){for(var Ln=["cmd","ctrl","alt","shift"],Pn=Math.pow(2,Ln.length);Pn--;)Kn.KEY_MODS[Pn]=Ln.filter(function(Zn){return Pn&Kn.KEY_MODS[Zn]}).join("-")+"-"}(),Kn.KEY_MODS[0]="",Kn.KEY_MODS[-1]="input-",zn.mixin(kn,Kn),kn.default=kn,kn.keyCodeToString=function(Ln){var Pn=Kn[Ln];return typeof Pn!="string"&&(Pn=String.fromCharCode(Ln)),Pn.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("./keys"),Kn=_n("./useragent"),Qn=null,Hn=0,qn;function Nn(){qn=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return qn={passive:!1},!0}})}catch{}}function Dn(){return qn==null&&Nn(),qn}function In(mi,li,oi){this.elem=mi,this.type=li,this.callback=oi}In.prototype.destroy=function(){Ln(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var Bn=kn.addListener=function(mi,li,oi,ei){mi.addEventListener(li,oi,Dn()),ei&&ei.$toDestroy.push(new In(mi,li,oi))},Ln=kn.removeListener=function(mi,li,oi){mi.removeEventListener(li,oi,Dn())};kn.stopEvent=function(mi){return kn.stopPropagation(mi),kn.preventDefault(mi),!1},kn.stopPropagation=function(mi){mi.stopPropagation&&mi.stopPropagation()},kn.preventDefault=function(mi){mi.preventDefault&&mi.preventDefault()},kn.getButton=function(mi){return mi.type=="dblclick"?0:mi.type=="contextmenu"||Kn.isMac&&mi.ctrlKey&&!mi.altKey&&!mi.shiftKey?2:mi.button},kn.capture=function(mi,li,oi){var ei=mi&&mi.ownerDocument||document;function fi(gi){li&&li(gi),oi&&oi(gi),Ln(ei,"mousemove",li),Ln(ei,"mouseup",fi),Ln(ei,"dragstart",fi)}return Bn(ei,"mousemove",li),Bn(ei,"mouseup",fi),Bn(ei,"dragstart",fi),fi},kn.addMouseWheelListener=function(mi,li,oi){Bn(mi,"wheel",function(ei){var fi=.15,gi=ei.deltaX||0,yi=ei.deltaY||0;switch(ei.deltaMode){case ei.DOM_DELTA_PIXEL:ei.wheelX=gi*fi,ei.wheelY=yi*fi;break;case ei.DOM_DELTA_LINE:var pi=15;ei.wheelX=gi*pi,ei.wheelY=yi*pi;break;case ei.DOM_DELTA_PAGE:var $i=150;ei.wheelX=gi*$i,ei.wheelY=yi*$i;break}li(ei)},oi)},kn.addMultiMouseDownListener=function(mi,li,oi,ei,fi){var gi=0,yi,pi,$i,si={2:"dblclick",3:"tripleclick",4:"quadclick"};function ti(ai){if(kn.getButton(ai)!==0?gi=0:ai.detail>1?(gi++,gi>4&&(gi=1)):gi=1,Kn.isIE){var vi=Math.abs(ai.clientX-yi)>5||Math.abs(ai.clientY-pi)>5;(!$i||vi)&&(gi=1),$i&&clearTimeout($i),$i=setTimeout(function(){$i=null},li[gi-1]||600),gi==1&&(yi=ai.clientX,pi=ai.clientY)}if(ai._clicks=gi,oi[ei]("mousedown",ai),gi>4)gi=0;else if(gi>1)return oi[ei](si[gi],ai)}Array.isArray(mi)||(mi=[mi]),mi.forEach(function(ai){Bn(ai,"mousedown",ti,fi)})};function Pn(mi){return 0|(mi.ctrlKey?1:0)|(mi.altKey?2:0)|(mi.shiftKey?4:0)|(mi.metaKey?8:0)}kn.getModifierString=function(mi){return zn.KEY_MODS[Pn(mi)]};function Zn(mi,li,oi){var ei=Pn(li);if(!oi&&li.code&&(oi=zn.$codeToKeyCode[li.code]||oi),!Kn.isMac&&Qn){if(li.getModifierState&&(li.getModifierState("OS")||li.getModifierState("Win"))&&(ei|=8),Qn.altGr)if((3&ei)!=3)Qn.altGr=0;else return;if(oi===18||oi===17){var fi=li.location;if(oi===17&&fi===1)Qn[oi]==1&&(Hn=li.timeStamp);else if(oi===18&&ei===3&&fi===2){var gi=li.timeStamp-Hn;gi<50&&(Qn.altGr=!0)}}}if(oi in zn.MODIFIER_KEYS&&(oi=-1),!(!ei&&oi===13&&li.location===3&&(mi(li,ei,-oi),li.defaultPrevented))){if(Kn.isChromeOS&&ei&8){if(mi(li,ei,oi),li.defaultPrevented)return;ei&=-9}return!ei&&!(oi in zn.FUNCTION_KEYS)&&!(oi in zn.PRINTABLE_KEYS)?!1:mi(li,ei,oi)}}kn.addCommandKeyListener=function(mi,li,oi){var ei=null;Bn(mi,"keydown",function(fi){Qn[fi.keyCode]=(Qn[fi.keyCode]||0)+1;var gi=Zn(li,fi,fi.keyCode);return ei=fi.defaultPrevented,gi},oi),Bn(mi,"keypress",function(fi){ei&&(fi.ctrlKey||fi.altKey||fi.shiftKey||fi.metaKey)&&(kn.stopEvent(fi),ei=null)},oi),Bn(mi,"keyup",function(fi){Qn[fi.keyCode]=null},oi),Qn||(Jn(),Bn(window,"focus",Jn))};function Jn(){Qn=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!Kn.isOldIE){var Xn=1;kn.nextTick=function(mi,li){li=li||window;var oi="zero-timeout-message-"+Xn++,ei=function(fi){fi.data==oi&&(kn.stopPropagation(fi),Ln(li,"message",ei),mi())};Bn(li,"message",ei),li.postMessage(oi,"*")}}kn.$idleBlocked=!1,kn.onIdle=function(mi,li){return setTimeout(function oi(){kn.$idleBlocked?setTimeout(oi,100):mi()},li)},kn.$idleBlockId=null,kn.blockIdle=function(mi){kn.$idleBlockId&&clearTimeout(kn.$idleBlockId),kn.$idleBlocked=!0,kn.$idleBlockId=setTimeout(function(){kn.$idleBlocked=!1},mi||100)},kn.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),kn.nextFrame?kn.nextFrame=kn.nextFrame.bind(window):kn.nextFrame=function(mi){setTimeout(mi,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(_n,kn,Wn){var zn;Wn.exports={lineMode:!1,pasteCancelled:function(){return zn&&zn>Date.now()-50?!0:zn=!1},cancel:function(){zn=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(_n,kn,Wn){var zn=_n("../lib/event"),Kn=_n("../config").nls,Qn=_n("../lib/useragent"),Hn=_n("../lib/dom"),qn=_n("../lib/lang"),Nn=_n("../clipboard"),Dn=Qn.isChrome<18,In=Qn.isIE,Bn=Qn.isChrome>63,Ln=400,Pn=_n("../lib/keys"),Zn=Pn.KEY_MODS,Jn=Qn.isIOS,Xn=Jn?/\s/:/\n/,mi=Qn.isMobile,li;li=function(oi,ei){var fi=Hn.createElement("textarea");fi.className="ace_text-input",fi.setAttribute("wrap","off"),fi.setAttribute("autocorrect","off"),fi.setAttribute("autocapitalize","off"),fi.setAttribute("spellcheck","false"),fi.style.opacity="0",oi.insertBefore(fi,oi.firstChild);var gi=!1,yi=!1,pi=!1,$i=!1,si="";mi||(fi.style.fontSize="1px");var ti=!1,ai=!1,vi="",wi=0,xi=0,Si=0,Ei=Number.MAX_SAFE_INTEGER,Ni=Number.MIN_SAFE_INTEGER,Ri=0;try{var Fi=document.activeElement===fi}catch{}this.setNumberOfExtraLines=function(Ji){if(Ei=Number.MAX_SAFE_INTEGER,Ni=Number.MIN_SAFE_INTEGER,Ji<0){Ri=0;return}Ri=Ji},this.setAriaLabel=function(){var Ji="";if(ei.$textInputAriaLabel&&(Ji+="".concat(ei.$textInputAriaLabel,", ")),ei.session){var xr=ei.session.selection.cursor.row;Ji+=Kn("text-input.aria-label","Cursor at row $0",[xr+1])}fi.setAttribute("aria-label",Ji)},this.setAriaOptions=function(Ji){Ji.activeDescendant?(fi.setAttribute("aria-haspopup","true"),fi.setAttribute("aria-autocomplete",Ji.inline?"both":"list"),fi.setAttribute("aria-activedescendant",Ji.activeDescendant)):(fi.setAttribute("aria-haspopup","false"),fi.setAttribute("aria-autocomplete","both"),fi.removeAttribute("aria-activedescendant")),Ji.role&&fi.setAttribute("role",Ji.role),Ji.setLabel&&(fi.setAttribute("aria-roledescription",Kn("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),zn.addListener(fi,"blur",function(Ji){ai||(ei.onBlur(Ji),Fi=!1)},ei),zn.addListener(fi,"focus",function(Ji){if(!ai){if(Fi=!0,Qn.isEdge)try{if(!document.hasFocus())return}catch{}ei.onFocus(Ji),Qn.isEdge?setTimeout(Bi):Bi()}},ei),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:ei.renderer.enableKeyboardAccessibility}),si||Bn||this.$focusScroll=="browser")return fi.focus({preventScroll:!0});var Ji=fi.style.top;fi.style.position="fixed",fi.style.top="0px";try{var xr=fi.getBoundingClientRect().top!=0}catch{return}var kr=[];if(xr)for(var Gr=fi.parentElement;Gr&&Gr.nodeType==1;)kr.push(Gr),Gr.setAttribute("ace_nocontext","true"),!Gr.parentElement&&Gr.getRootNode?Gr=Gr.getRootNode().host:Gr=Gr.parentElement;fi.focus({preventScroll:!0}),xr&&kr.forEach(function(Yr){Yr.removeAttribute("ace_nocontext")}),setTimeout(function(){fi.style.position="",fi.style.top=="0px"&&(fi.style.top=Ji)},0)},this.blur=function(){fi.blur()},this.isFocused=function(){return Fi},ei.on("beforeEndOperation",function(){var Ji=ei.curOp,xr=Ji&&Ji.command&&Ji.command.name;if(xr!="insertstring"){var kr=xr&&(Ji.docChanged||Ji.selectionChanged);pi&&kr&&(vi=fi.value="",Uo()),Bi()}}),ei.on("changeSelection",this.setAriaLabel);var Ii=function(Ji,xr){for(var kr=xr,Gr=1;Gr<=Ji-Ei&&Gr<2*Ri+1;Gr++)kr+=ei.session.getLine(Ji-Gr).length+1;return kr},Bi=Jn?function(Ji){if(!(!Fi||gi&&!Ji||$i)){Ji||(Ji="");var xr=`
|
167
|
+
ab`+Ji+`cde fg
|
168
|
+
`;xr!=fi.value&&(fi.value=vi=xr);var kr=4,Gr=4+(Ji.length||(ei.selection.isEmpty()?0:1));(wi!=kr||xi!=Gr)&&fi.setSelectionRange(kr,Gr),wi=kr,xi=Gr}}:function(){if(!(pi||$i)&&!(!Fi&&!lr)){pi=!0;var Ji=0,xr=0,kr="";if(ei.session){var Gr=ei.selection,Yr=Gr.getRange(),$o=Gr.cursor.row;$o===Ni+1?(Ei=Ni+1,Ni=Ei+2*Ri):$o===Ei-1?(Ni=Ei-1,Ei=Ni-2*Ri):($o<Ei-1||$o>Ni+1)&&(Ei=$o>Ri?$o-Ri:0,Ni=$o>Ri?$o+Ri:2*Ri);for(var ko=[],oo=Ei;oo<=Ni;oo++)ko.push(ei.session.getLine(oo));if(kr=ko.join(`
|
169
|
+
`),Ji=Ii(Yr.start.row,Yr.start.column),xr=Ii(Yr.end.row,Yr.end.column),Yr.start.row<Ei){var so=ei.session.getLine(Ei-1);Ji=Yr.start.row<Ei-1?0:Ji,xr+=so.length+1,kr=so+`
|
170
|
+
`+kr}else if(Yr.end.row>Ni){var eo=ei.session.getLine(Ni+1);xr=Yr.end.row>Ni+1?eo.length:Yr.end.column,xr+=kr.length+1,kr=kr+`
|
171
|
+
`+eo}else mi&&$o>0&&(kr=`
|
172
|
+
`+kr,xr+=1,Ji+=1);kr.length>Ln&&(Ji<Ln&&xr<Ln?kr=kr.slice(0,Ln):(kr=`
|
173
|
+
`,Ji==xr?Ji=xr=0:(Ji=0,xr=1)));var Ho=kr+`
|
174
|
+
|
175
|
+
`;Ho!=vi&&(fi.value=vi=Ho,wi=xi=Ho.length)}if(lr&&(wi=fi.selectionStart,xi=fi.selectionEnd),xi!=xr||wi!=Ji||fi.selectionEnd!=xi)try{fi.setSelectionRange(Ji,xr),wi=Ji,xi=xr}catch{}pi=!1}};this.resetSelection=Bi,Fi&&ei.onFocus();var Gi=function(Ji){return Ji.selectionStart===0&&Ji.selectionEnd>=vi.length&&Ji.value===vi&&vi&&Ji.selectionEnd!==xi},Pi=function(Ji){pi||(gi?gi=!1:Gi(fi)?(ei.selectAll(),Bi()):mi&&fi.selectionStart!=wi&&Bi())},Zi=null;this.setInputHandler=function(Ji){Zi=Ji},this.getInputHandler=function(){return Zi};var lr=!1,gr=function(Ji,xr){if(lr&&(lr=!1),yi)return Bi(),Ji&&ei.onPaste(Ji),yi=!1,"";for(var kr=fi.selectionStart,Gr=fi.selectionEnd,Yr=wi,$o=vi.length-xi,ko=Ji,oo=Ji.length-kr,so=Ji.length-Gr,eo=0;Yr>0&&vi[eo]==Ji[eo];)eo++,Yr--;for(ko=ko.slice(eo),eo=1;$o>0&&vi.length-eo>wi-1&&vi[vi.length-eo]==Ji[Ji.length-eo];)eo++,$o--;oo-=eo-1,so-=eo-1;var Ho=ko.length-eo+1;if(Ho<0&&(Yr=-Ho,Ho=0),ko=ko.slice(0,Ho),!xr&&!ko&&!oo&&!Yr&&!$o&&!so)return"";$i=!0;var Ns=!1;return Qn.isAndroid&&ko==". "&&(ko=" ",Ns=!0),ko&&!Yr&&!$o&&!oo&&!so||ti?ei.onTextInput(ko):ei.onTextInput(ko,{extendLeft:Yr,extendRight:$o,restoreStart:oo,restoreEnd:so}),$i=!1,vi=Ji,wi=kr,xi=Gr,Si=so,Ns?`
|
176
|
+
`:ko},or=function(Ji){if(pi)return Do();if(Ji&&Ji.inputType){if(Ji.inputType=="historyUndo")return ei.execCommand("undo");if(Ji.inputType=="historyRedo")return ei.execCommand("redo")}var xr=fi.value,kr=gr(xr,!0);(xr.length>Ln+100||Xn.test(kr)||mi&&wi<1&&wi==xi)&&Bi()},yr=function(Ji,xr,kr){var Gr=Ji.clipboardData||window.clipboardData;if(!(!Gr||Dn)){var Yr=In||kr?"Text":"text/plain";try{return xr?Gr.setData(Yr,xr)!==!1:Gr.getData(Yr)}catch($o){if(!kr)return yr($o,xr,!0)}}},io=function(Ji,xr){var kr=ei.getCopyText();if(!kr)return zn.preventDefault(Ji);yr(Ji,kr)?(Jn&&(Bi(kr),gi=kr,setTimeout(function(){gi=!1},10)),xr?ei.onCut():ei.onCopy(),zn.preventDefault(Ji)):(gi=!0,fi.value=kr,fi.select(),setTimeout(function(){gi=!1,Bi(),xr?ei.onCut():ei.onCopy()}))},Po=function(Ji){io(Ji,!0)},lo=function(Ji){io(Ji,!1)},So=function(Ji){var xr=yr(Ji);Nn.pasteCancelled()||(typeof xr=="string"?(xr&&ei.onPaste(xr,Ji),Qn.isIE&&setTimeout(Bi),zn.preventDefault(Ji)):(fi.value="",yi=!0))};zn.addCommandKeyListener(fi,function(Ji,xr,kr){if(!pi)return ei.onCommandKey(Ji,xr,kr)},ei),zn.addListener(fi,"select",Pi,ei),zn.addListener(fi,"input",or,ei),zn.addListener(fi,"cut",Po,ei),zn.addListener(fi,"copy",lo,ei),zn.addListener(fi,"paste",So,ei),(!("oncut"in fi)||!("oncopy"in fi)||!("onpaste"in fi))&&zn.addListener(oi,"keydown",function(Ji){if(!(Qn.isMac&&!Ji.metaKey||!Ji.ctrlKey))switch(Ji.keyCode){case 67:lo(Ji);break;case 86:So(Ji);break;case 88:Po(Ji);break}},ei);var Xo=function(Ji){if(!(pi||!ei.onCompositionStart||ei.$readOnly)&&(pi={},!ti)){Ji.data&&(pi.useTextareaForIME=!1),setTimeout(Do,0),ei._signal("compositionStart"),ei.on("mousedown",va);var xr=ei.getSelectionRange();xr.end.row=xr.start.row,xr.end.column=xr.start.column,pi.markerRange=xr,pi.selectionStart=wi,ei.onCompositionStart(pi),pi.useTextareaForIME?(vi=fi.value="",wi=0,xi=0):(fi.msGetInputContext&&(pi.context=fi.msGetInputContext()),fi.getInputContext&&(pi.context=fi.getInputContext()))}},Do=function(){if(!(!pi||!ei.onCompositionUpdate||ei.$readOnly)){if(ti)return va();if(pi.useTextareaForIME)ei.onCompositionUpdate(fi.value);else{var Ji=fi.value;gr(Ji),pi.markerRange&&(pi.context&&(pi.markerRange.start.column=pi.selectionStart=pi.context.compositionStartOffset),pi.markerRange.end.column=pi.markerRange.start.column+xi-pi.selectionStart+Si)}}},Uo=function(Ji){!ei.onCompositionEnd||ei.$readOnly||(pi=!1,ei.onCompositionEnd(),ei.off("mousedown",va),Ji&&or())};function va(){ai=!0,fi.blur(),fi.focus(),ai=!1}var ss=qn.delayedCall(Do,50).schedule.bind(null,null);function Ko(Ji){Ji.keyCode==27&&fi.value.length<fi.selectionStart&&(pi||(vi=fi.value),wi=xi=-1,Bi()),ss()}zn.addListener(fi,"compositionstart",Xo,ei),zn.addListener(fi,"compositionupdate",Do,ei),zn.addListener(fi,"keyup",Ko,ei),zn.addListener(fi,"keydown",ss,ei),zn.addListener(fi,"compositionend",Uo,ei),this.getElement=function(){return fi},this.setCommandMode=function(Ji){ti=Ji,fi.readOnly=!1},this.setReadOnly=function(Ji){ti||(fi.readOnly=Ji)},this.setCopyWithEmptySelection=function(Ji){},this.onContextMenu=function(Ji){lr=!0,Bi(),ei._emit("nativecontextmenu",{target:ei,domEvent:Ji}),this.moveToMouse(Ji,!0)},this.moveToMouse=function(Ji,xr){si||(si=fi.style.cssText),fi.style.cssText=(xr?"z-index:100000;":"")+(Qn.isIE?"opacity:0.1;":"")+"text-indent: -"+(wi+xi)*ei.renderer.characterWidth*.5+"px;";var kr=ei.container.getBoundingClientRect(),Gr=Hn.computedStyle(ei.container),Yr=kr.top+(parseInt(Gr.borderTopWidth)||0),$o=kr.left+(parseInt(kr.borderLeftWidth)||0),ko=kr.bottom-Yr-fi.clientHeight-2,oo=function(so){Hn.translate(fi,so.clientX-$o-2,Math.min(so.clientY-Yr-2,ko))};oo(Ji),Ji.type=="mousedown"&&(ei.renderer.$isMousePressed=!0,clearTimeout(Mr),Qn.isWin&&zn.capture(ei.container,oo,Br))},this.onContextMenuClose=Br;var Mr;function Br(){clearTimeout(Mr),Mr=setTimeout(function(){si&&(fi.style.cssText=si,si=""),ei.renderer.$isMousePressed=!1,ei.renderer.$keepTextAreaAtCursor&&ei.renderer.$moveTextAreaToCursor()},0)}var Zo=function(Ji){ei.textInput.onContextMenu(Ji),Br()};zn.addListener(fi,"mouseup",Zo,ei),zn.addListener(fi,"mousedown",function(Ji){Ji.preventDefault(),Br()},ei),zn.addListener(ei.renderer.scroller,"contextmenu",Zo,ei),zn.addListener(fi,"contextmenu",Zo,ei),Jn&&Hr(oi,ei,fi);function Hr(Ji,xr,kr){var Gr=null,Yr=!1;kr.addEventListener("keydown",function(ko){Gr&&clearTimeout(Gr),Yr=!0},!0),kr.addEventListener("keyup",function(ko){Gr=setTimeout(function(){Yr=!1},100)},!0);var $o=function(ko){if(document.activeElement===kr&&!(Yr||pi||xr.$mouseHandler.isMousePressed)&&!gi){var oo=kr.selectionStart,so=kr.selectionEnd,eo=null,Ho=0;if(oo==0?eo=Pn.up:oo==1?eo=Pn.home:so>xi&&vi[so]==`
|
177
|
+
`?eo=Pn.end:oo<wi&&vi[oo-1]==" "?(eo=Pn.left,Ho=Zn.option):oo<wi||oo==wi&&xi!=wi&&oo==so?eo=Pn.left:so>xi&&vi.slice(0,so).split(`
|
178
|
+
`).length>2?eo=Pn.down:so>xi&&vi[so-1]==" "?(eo=Pn.right,Ho=Zn.option):(so>xi||so==xi&&xi!=wi&&oo==so)&&(eo=Pn.right),oo!==so&&(Ho|=Zn.shift),eo){var Ns=xr.onCommandKey({},Ho,eo);if(!Ns&&xr.commands){eo=Pn.keyCodeToString(eo);var ol=xr.commands.findKeyCommand(Ho,eo);ol&&xr.execCommand(ol)}wi=oo,xi=so,Bi("")}}};document.addEventListener("selectionchange",$o),xr.on("destroy",function(){document.removeEventListener("selectionchange",$o)})}this.destroy=function(){fi.parentElement&&fi.parentElement.removeChild(fi)}},kn.TextInput=li,kn.$setUserAgentForTests=function(oi,ei){mi=oi,Jn=ei}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("../lib/useragent"),Kn=0,Qn=550,Hn=function(){function Dn(In){In.$clickSelection=null;var Bn=In.editor;Bn.setDefaultHandler("mousedown",this.onMouseDown.bind(In)),Bn.setDefaultHandler("dblclick",this.onDoubleClick.bind(In)),Bn.setDefaultHandler("tripleclick",this.onTripleClick.bind(In)),Bn.setDefaultHandler("quadclick",this.onQuadClick.bind(In)),Bn.setDefaultHandler("mousewheel",this.onMouseWheel.bind(In));var Ln=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];Ln.forEach(function(Pn){In[Pn]=this[Pn]},this),In.selectByLines=this.extendSelectionBy.bind(In,"getLineRange"),In.selectByWords=this.extendSelectionBy.bind(In,"getWordRange")}return Dn.prototype.onMouseDown=function(In){var Bn=In.inSelection(),Ln=In.getDocumentPosition();this.mousedownEvent=In;var Pn=this.editor,Zn=In.getButton();if(Zn!==0){var Jn=Pn.getSelectionRange(),Xn=Jn.isEmpty();(Xn||Zn==1)&&Pn.selection.moveToPosition(Ln),Zn==2&&(Pn.textInput.onContextMenu(In.domEvent),zn.isMozilla||In.preventDefault());return}if(this.mousedownEvent.time=Date.now(),Bn&&!Pn.isFocused()&&(Pn.focus(),this.$focusTimeout&&!this.$clickSelection&&!Pn.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(In);return}return this.captureMouse(In),this.startSelect(Ln,In.domEvent._clicks>1),In.preventDefault()},Dn.prototype.startSelect=function(In,Bn){In=In||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var Ln=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?Ln.selection.selectToPosition(In):Bn||Ln.selection.moveToPosition(In),Bn||this.select(),Ln.setStyle("ace_selecting"),this.setState("select"))},Dn.prototype.select=function(){var In,Bn=this.editor,Ln=Bn.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var Pn=this.$clickSelection.comparePoint(Ln);if(Pn==-1)In=this.$clickSelection.end;else if(Pn==1)In=this.$clickSelection.start;else{var Zn=Nn(this.$clickSelection,Ln);Ln=Zn.cursor,In=Zn.anchor}Bn.selection.setSelectionAnchor(In.row,In.column)}Bn.selection.selectToPosition(Ln),Bn.renderer.scrollCursorIntoView()},Dn.prototype.extendSelectionBy=function(In){var Bn,Ln=this.editor,Pn=Ln.renderer.screenToTextCoordinates(this.x,this.y),Zn=Ln.selection[In](Pn.row,Pn.column);if(this.$clickSelection){var Jn=this.$clickSelection.comparePoint(Zn.start),Xn=this.$clickSelection.comparePoint(Zn.end);if(Jn==-1&&Xn<=0)Bn=this.$clickSelection.end,(Zn.end.row!=Pn.row||Zn.end.column!=Pn.column)&&(Pn=Zn.start);else if(Xn==1&&Jn>=0)Bn=this.$clickSelection.start,(Zn.start.row!=Pn.row||Zn.start.column!=Pn.column)&&(Pn=Zn.end);else if(Jn==-1&&Xn==1)Pn=Zn.end,Bn=Zn.start;else{var mi=Nn(this.$clickSelection,Pn);Pn=mi.cursor,Bn=mi.anchor}Ln.selection.setSelectionAnchor(Bn.row,Bn.column)}Ln.selection.selectToPosition(Pn),Ln.renderer.scrollCursorIntoView()},Dn.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},Dn.prototype.focusWait=function(){var In=qn(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),Bn=Date.now();(In>Kn||Bn-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},Dn.prototype.onDoubleClick=function(In){var Bn=In.getDocumentPosition(),Ln=this.editor,Pn=Ln.session,Zn=Pn.getBracketRange(Bn);Zn?(Zn.isEmpty()&&(Zn.start.column--,Zn.end.column++),this.setState("select")):(Zn=Ln.selection.getWordRange(Bn.row,Bn.column),this.setState("selectByWords")),this.$clickSelection=Zn,this.select()},Dn.prototype.onTripleClick=function(In){var Bn=In.getDocumentPosition(),Ln=this.editor;this.setState("selectByLines");var Pn=Ln.getSelectionRange();Pn.isMultiLine()&&Pn.contains(Bn.row,Bn.column)?(this.$clickSelection=Ln.selection.getLineRange(Pn.start.row),this.$clickSelection.end=Ln.selection.getLineRange(Pn.end.row).end):this.$clickSelection=Ln.selection.getLineRange(Bn.row),this.select()},Dn.prototype.onQuadClick=function(In){var Bn=this.editor;Bn.selectAll(),this.$clickSelection=Bn.getSelectionRange(),this.setState("selectAll")},Dn.prototype.onMouseWheel=function(In){if(!In.getAccelKey()){In.getShiftKey()&&In.wheelY&&!In.wheelX&&(In.wheelX=In.wheelY,In.wheelY=0);var Bn=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var Ln=this.$lastScroll,Pn=In.domEvent.timeStamp,Zn=Pn-Ln.t,Jn=Zn?In.wheelX/Zn:Ln.vx,Xn=Zn?In.wheelY/Zn:Ln.vy;Zn<Qn&&(Jn=(Jn+Ln.vx)/2,Xn=(Xn+Ln.vy)/2);var mi=Math.abs(Jn/Xn),li=!1;if(mi>=1&&Bn.renderer.isScrollableBy(In.wheelX*In.speed,0)&&(li=!0),mi<=1&&Bn.renderer.isScrollableBy(0,In.wheelY*In.speed)&&(li=!0),li)Ln.allowed=Pn;else if(Pn-Ln.allowed<Qn){var oi=Math.abs(Jn)<=1.5*Math.abs(Ln.vx)&&Math.abs(Xn)<=1.5*Math.abs(Ln.vy);oi?(li=!0,Ln.allowed=Pn):Ln.allowed=0}if(Ln.t=Pn,Ln.vx=Jn,Ln.vy=Xn,li)return Bn.renderer.scrollBy(In.wheelX*In.speed,In.wheelY*In.speed),In.stop()}},Dn}();Hn.prototype.selectEnd=Hn.prototype.selectByLinesEnd,Hn.prototype.selectAllEnd=Hn.prototype.selectByLinesEnd,Hn.prototype.selectByWordsEnd=Hn.prototype.selectByLinesEnd,kn.DefaultHandlers=Hn;function qn(Dn,In,Bn,Ln){return Math.sqrt(Math.pow(Bn-Dn,2)+Math.pow(Ln-In,2))}function Nn(Dn,In){if(Dn.start.row==Dn.end.row)var Bn=2*In.column-Dn.start.column-Dn.end.column;else if(Dn.start.row==Dn.end.row-1&&!Dn.start.column&&!Dn.end.column)var Bn=In.column-4;else var Bn=2*In.row-Dn.start.row-Dn.end.row;return Bn<0?{cursor:Dn.start,anchor:Dn.end}:{cursor:Dn.end,anchor:Dn.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(_n,kn,Wn){kn.preventParentScroll=function(zn){zn.stopPropagation();var Kn=zn.currentTarget,Qn=Kn.scrollHeight>Kn.clientHeight;Qn||zn.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var Pn=function(Zn,Jn){return Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xn,mi){Xn.__proto__=mi}||function(Xn,mi){for(var li in mi)Object.prototype.hasOwnProperty.call(mi,li)&&(Xn[li]=mi[li])},Pn(Zn,Jn)};return function(Zn,Jn){if(typeof Jn!="function"&&Jn!==null)throw new TypeError("Class extends value "+String(Jn)+" is not a constructor or null");Pn(Zn,Jn);function Xn(){this.constructor=Zn}Zn.prototype=Jn===null?Object.create(Jn):(Xn.prototype=Jn.prototype,new Xn)}}(),Kn=this&&this.__values||function(Pn){var Zn=typeof Symbol=="function"&&Symbol.iterator,Jn=Zn&&Pn[Zn],Xn=0;if(Jn)return Jn.call(Pn);if(Pn&&typeof Pn.length=="number")return{next:function(){return Pn&&Xn>=Pn.length&&(Pn=void 0),{value:Pn&&Pn[Xn++],done:!Pn}}};throw new TypeError(Zn?"Object is not iterable.":"Symbol.iterator is not defined.")},Qn=_n("./lib/dom");_n("./lib/event");var Hn=_n("./range").Range,qn=_n("./lib/scroll").preventParentScroll,Nn="ace_tooltip",Dn=function(){function Pn(Zn){this.isOpen=!1,this.$element=null,this.$parentNode=Zn}return Pn.prototype.$init=function(){return this.$element=Qn.createElement("div"),this.$element.className=Nn,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},Pn.prototype.getElement=function(){return this.$element||this.$init()},Pn.prototype.setText=function(Zn){this.getElement().textContent=Zn},Pn.prototype.setHtml=function(Zn){this.getElement().innerHTML=Zn},Pn.prototype.setPosition=function(Zn,Jn){this.getElement().style.left=Zn+"px",this.getElement().style.top=Jn+"px"},Pn.prototype.setClassName=function(Zn){Qn.addCssClass(this.getElement(),Zn)},Pn.prototype.setTheme=function(Zn){this.$element.className=Nn+" "+(Zn.isDark?"ace_dark ":"")+(Zn.cssClass||"")},Pn.prototype.show=function(Zn,Jn,Xn){Zn!=null&&this.setText(Zn),Jn!=null&&Xn!=null&&this.setPosition(Jn,Xn),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},Pn.prototype.hide=function(Zn){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=Nn,this.isOpen=!1)},Pn.prototype.getHeight=function(){return this.getElement().offsetHeight},Pn.prototype.getWidth=function(){return this.getElement().offsetWidth},Pn.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},Pn}(),In=function(){function Pn(){this.popups=[]}return Pn.prototype.addPopup=function(Zn){this.popups.push(Zn),this.updatePopups()},Pn.prototype.removePopup=function(Zn){var Jn=this.popups.indexOf(Zn);Jn!==-1&&(this.popups.splice(Jn,1),this.updatePopups())},Pn.prototype.updatePopups=function(){var Zn,Jn,Xn,mi;this.popups.sort(function(si,ti){return ti.priority-si.priority});var li=[];try{for(var oi=Kn(this.popups),ei=oi.next();!ei.done;ei=oi.next()){var fi=ei.value,gi=!0;try{for(var yi=(Xn=void 0,Kn(li)),pi=yi.next();!pi.done;pi=yi.next()){var $i=pi.value;if(this.doPopupsOverlap($i,fi)){gi=!1;break}}}catch(si){Xn={error:si}}finally{try{pi&&!pi.done&&(mi=yi.return)&&mi.call(yi)}finally{if(Xn)throw Xn.error}}gi?li.push(fi):fi.hide()}}catch(si){Zn={error:si}}finally{try{ei&&!ei.done&&(Jn=oi.return)&&Jn.call(oi)}finally{if(Zn)throw Zn.error}}},Pn.prototype.doPopupsOverlap=function(Zn,Jn){var Xn=Zn.getElement().getBoundingClientRect(),mi=Jn.getElement().getBoundingClientRect();return Xn.left<mi.right&&Xn.right>mi.left&&Xn.top<mi.bottom&&Xn.bottom>mi.top},Pn}(),Bn=new In;kn.popupManager=Bn,kn.Tooltip=Dn;var Ln=function(Pn){zn(Zn,Pn);function Zn(Jn){Jn===void 0&&(Jn=document.body);var Xn=Pn.call(this,Jn)||this;Xn.timeout=void 0,Xn.lastT=0,Xn.idleTime=350,Xn.lastEvent=void 0,Xn.onMouseOut=Xn.onMouseOut.bind(Xn),Xn.onMouseMove=Xn.onMouseMove.bind(Xn),Xn.waitForHover=Xn.waitForHover.bind(Xn),Xn.hide=Xn.hide.bind(Xn);var mi=Xn.getElement();return mi.style.whiteSpace="pre-wrap",mi.style.pointerEvents="auto",mi.addEventListener("mouseout",Xn.onMouseOut),mi.tabIndex=-1,mi.addEventListener("blur",(function(){mi.contains(document.activeElement)||this.hide()}).bind(Xn)),mi.addEventListener("wheel",qn),Xn}return Zn.prototype.addToEditor=function(Jn){Jn.on("mousemove",this.onMouseMove),Jn.on("mousedown",this.hide),Jn.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},Zn.prototype.removeFromEditor=function(Jn){Jn.off("mousemove",this.onMouseMove),Jn.off("mousedown",this.hide),Jn.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},Zn.prototype.onMouseMove=function(Jn,Xn){this.lastEvent=Jn,this.lastT=Date.now();var mi=Xn.$mouseHandler.isMousePressed;if(this.isOpen){var li=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(li.row,li.column)||mi||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||mi||(this.lastEvent=Jn,this.timeout=setTimeout(this.waitForHover,this.idleTime))},Zn.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Jn=Date.now()-this.lastT;if(this.idleTime-Jn>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Jn);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},Zn.prototype.isOutsideOfText=function(Jn){var Xn=Jn.editor,mi=Jn.getDocumentPosition(),li=Xn.session.getLine(mi.row);if(mi.column==li.length){var oi=Xn.renderer.pixelToScreenCoordinates(Jn.clientX,Jn.clientY),ei=Xn.session.documentToScreenPosition(mi.row,mi.column);if(ei.column!=oi.column||ei.row!=oi.row)return!0}return!1},Zn.prototype.setDataProvider=function(Jn){this.$gatherData=Jn},Zn.prototype.showForRange=function(Jn,Xn,mi,li){var oi=10;if(!(li&&li!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var ei=Jn.renderer;this.isOpen||(Bn.addPopup(this),this.$registerCloseEvents(),this.setTheme(ei.theme)),this.isOpen=!0,this.addMarker(Xn,Jn.session),this.range=Hn.fromPoints(Xn.start,Xn.end);var fi=ei.textToScreenCoordinates(Xn.start.row,Xn.start.column),gi=ei.scroller.getBoundingClientRect();fi.pageX<gi.left&&(fi.pageX=gi.left);var yi=this.getElement();yi.innerHTML="",yi.appendChild(mi),yi.style.maxHeight="",yi.style.display="block";var pi=yi.clientHeight,$i=yi.clientWidth,si=window.innerHeight-fi.pageY-ei.lineHeight,ti=!0;fi.pageY-pi<0&&fi.pageY<si&&(ti=!1),yi.style.maxHeight=(ti?fi.pageY:si)-oi+"px",yi.style.top=ti?"":fi.pageY+ei.lineHeight+"px",yi.style.bottom=ti?window.innerHeight-fi.pageY+"px":"",yi.style.left=Math.min(fi.pageX,window.innerWidth-$i-oi)+"px"}},Zn.prototype.addMarker=function(Jn,Xn){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=Xn,this.marker=Xn&&Xn.addMarker(Jn,"ace_highlight-marker","text")},Zn.prototype.hide=function(Jn){!Jn&&document.activeElement==this.getElement()||Jn&&Jn.target&&(Jn.type!="keydown"||Jn.ctrlKey||Jn.metaKey)&&this.$element.contains(Jn.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,Bn.removePopup(this)))},Zn.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},Zn.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},Zn.prototype.onMouseOut=function(Jn){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!Jn.relatedTarget||this.getElement().contains(Jn.relatedTarget)||Jn&&Jn.currentTarget.contains(Jn.relatedTarget)||Jn.relatedTarget.classList.contains("ace_content")||this.hide())},Zn}(Dn);kn.HoverTooltip=Ln}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var Bn=function(Ln,Pn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Zn,Jn){Zn.__proto__=Jn}||function(Zn,Jn){for(var Xn in Jn)Object.prototype.hasOwnProperty.call(Jn,Xn)&&(Zn[Xn]=Jn[Xn])},Bn(Ln,Pn)};return function(Ln,Pn){if(typeof Pn!="function"&&Pn!==null)throw new TypeError("Class extends value "+String(Pn)+" is not a constructor or null");Bn(Ln,Pn);function Zn(){this.constructor=Ln}Ln.prototype=Pn===null?Object.create(Pn):(Zn.prototype=Pn.prototype,new Zn)}}(),Kn=this&&this.__values||function(Bn){var Ln=typeof Symbol=="function"&&Symbol.iterator,Pn=Ln&&Bn[Ln],Zn=0;if(Pn)return Pn.call(Bn);if(Bn&&typeof Bn.length=="number")return{next:function(){return Bn&&Zn>=Bn.length&&(Bn=void 0),{value:Bn&&Bn[Zn++],done:!Bn}}};throw new TypeError(Ln?"Object is not iterable.":"Symbol.iterator is not defined.")},Qn=_n("../lib/dom"),Hn=_n("../lib/event"),qn=_n("../tooltip").Tooltip,Nn=_n("../config").nls;_n("../lib/lang");function Dn(Bn){var Ln=Bn.editor,Pn=Ln.renderer.$gutterLayer,Zn=new In(Ln);Bn.editor.setDefaultHandler("guttermousedown",function(ei){if(!(!Ln.isFocused()||ei.getButton()!=0)){var fi=Pn.getRegion(ei);if(fi!="foldWidgets"){var gi=ei.getDocumentPosition().row,yi=Ln.session.selection;if(ei.getShiftKey())yi.selectTo(gi,0);else{if(ei.domEvent.detail==2)return Ln.selectAll(),ei.preventDefault();Bn.$clickSelection=Ln.selection.getLineRange(gi)}return Bn.setState("selectByLines"),Bn.captureMouse(ei),ei.preventDefault()}}});var Jn,Xn;function mi(){var ei=Xn.getDocumentPosition().row,fi=Ln.session.getLength();if(ei==fi){var gi=Ln.renderer.pixelToScreenCoordinates(0,Xn.y).row,yi=Xn.$pos;if(gi>Ln.session.documentToScreenRow(yi.row,yi.column))return li()}if(Zn.showTooltip(ei),!!Zn.isOpen)if(Ln.on("mousewheel",li),Bn.$tooltipFollowsMouse)oi(Xn);else{var pi=Xn.getGutterRow(),$i=Pn.$lines.get(pi);if($i){var si=$i.element.querySelector(".ace_gutter_annotation"),ti=si.getBoundingClientRect(),ai=Zn.getElement().style;ai.left=ti.right+"px",ai.top=ti.bottom+"px"}else oi(Xn)}}function li(){Jn&&(Jn=clearTimeout(Jn)),Zn.isOpen&&(Zn.hideTooltip(),Ln.off("mousewheel",li))}function oi(ei){Zn.setPosition(ei.x,ei.y)}Bn.editor.setDefaultHandler("guttermousemove",function(ei){var fi=ei.domEvent.target||ei.domEvent.srcElement;if(Qn.hasCssClass(fi,"ace_fold-widget"))return li();Zn.isOpen&&Bn.$tooltipFollowsMouse&&oi(ei),Xn=ei,!Jn&&(Jn=setTimeout(function(){Jn=null,Xn&&!Bn.isMousePressed?mi():li()},50))}),Hn.addListener(Ln.renderer.$gutter,"mouseout",function(ei){Xn=null,!(!Zn.isOpen||Jn)&&(Jn=setTimeout(function(){Jn=null,li()},50))},Ln),Ln.on("changeSession",li),Ln.on("input",li)}kn.GutterHandler=Dn;var In=function(Bn){zn(Ln,Bn);function Ln(Pn){var Zn=Bn.call(this,Pn.container)||this;return Zn.editor=Pn,Zn}return Ln.prototype.setPosition=function(Pn,Zn){var Jn=window.innerWidth||document.documentElement.clientWidth,Xn=window.innerHeight||document.documentElement.clientHeight,mi=this.getWidth(),li=this.getHeight();Pn+=15,Zn+=15,Pn+mi>Jn&&(Pn-=Pn+mi-Jn),Zn+li>Xn&&(Zn-=20+li),qn.prototype.setPosition.call(this,Pn,Zn)},Object.defineProperty(Ln,"annotationLabels",{get:function(){return{error:{singular:Nn("gutter-tooltip.aria-label.error.singular","error"),plural:Nn("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:Nn("gutter-tooltip.aria-label.security.singular","security finding"),plural:Nn("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:Nn("gutter-tooltip.aria-label.warning.singular","warning"),plural:Nn("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:Nn("gutter-tooltip.aria-label.info.singular","information message"),plural:Nn("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:Nn("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:Nn("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),Ln.prototype.showTooltip=function(Pn){var Zn,Jn=this.editor.renderer.$gutterLayer,Xn=Jn.$annotations[Pn],mi;Xn?mi={displayText:Array.from(Xn.displayText),type:Array.from(Xn.type)}:mi={displayText:[],type:[]};var li=Jn.session.getFoldLine(Pn);if(li&&Jn.$showFoldedAnnotations){for(var oi={error:[],security:[],warning:[],info:[],hint:[]},ei={error:1,security:2,warning:3,info:4,hint:5},fi,gi=Pn+1;gi<=li.end.row;gi++)if(Jn.$annotations[gi])for(var yi=0;yi<Jn.$annotations[gi].text.length;yi++){var pi=Jn.$annotations[gi].type[yi];oi[pi].push(Jn.$annotations[gi].text[yi]),(!fi||ei[pi]<ei[fi])&&(fi=pi)}if(["error","security","warning"].includes(fi)){var $i="".concat(Ln.annotationsToSummaryString(oi)," in folded code.");mi.displayText.push($i),mi.type.push(fi+"_fold")}}if(mi.displayText.length===0)return this.hide();for(var si={error:[],security:[],warning:[],info:[],hint:[]},ti=Jn.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",gi=0;gi<mi.displayText.length;gi++){var ai=Qn.createElement("span"),vi=Qn.createElement("span");(Zn=vi.classList).add.apply(Zn,["ace_".concat(mi.type[gi]),ti]),vi.setAttribute("aria-label","".concat(Ln.annotationLabels[mi.type[gi].replace("_fold","")].singular)),vi.setAttribute("role","img"),vi.appendChild(Qn.createTextNode(" ")),ai.appendChild(vi),ai.appendChild(Qn.createTextNode(mi.displayText[gi])),ai.appendChild(Qn.createElement("br")),si[mi.type[gi].replace("_fold","")].push(ai)}var wi=this.getElement();Qn.removeChildren(wi),si.error.forEach(function(xi){return wi.appendChild(xi)}),si.security.forEach(function(xi){return wi.appendChild(xi)}),si.warning.forEach(function(xi){return wi.appendChild(xi)}),si.info.forEach(function(xi){return wi.appendChild(xi)}),si.hint.forEach(function(xi){return wi.appendChild(xi)}),wi.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},Ln.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},Ln.annotationsToSummaryString=function(Pn){var Zn,Jn,Xn=[],mi=["error","security","warning","info","hint"];try{for(var li=Kn(mi),oi=li.next();!oi.done;oi=li.next()){var ei=oi.value;if(Pn[ei].length){var fi=Pn[ei].length===1?Ln.annotationLabels[ei].singular:Ln.annotationLabels[ei].plural;Xn.push("".concat(Pn[ei].length," ").concat(fi))}}}catch(gi){Zn={error:gi}}finally{try{oi&&!oi.done&&(Jn=li.return)&&Jn.call(li)}finally{if(Zn)throw Zn.error}}return Xn.join(", ")},Ln}(qn);kn.GutterTooltip=In}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("../lib/event"),Kn=_n("../lib/useragent"),Qn=function(){function Hn(qn,Nn){this.speed,this.wheelX,this.wheelY,this.domEvent=qn,this.editor=Nn,this.x=this.clientX=qn.clientX,this.y=this.clientY=qn.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return Hn.prototype.stopPropagation=function(){zn.stopPropagation(this.domEvent),this.propagationStopped=!0},Hn.prototype.preventDefault=function(){zn.preventDefault(this.domEvent),this.defaultPrevented=!0},Hn.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},Hn.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},Hn.prototype.getGutterRow=function(){var qn=this.getDocumentPosition().row,Nn=this.editor.session.documentToScreenRow(qn,0),Dn=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return Nn-Dn},Hn.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var qn=this.editor,Nn=qn.getSelectionRange();if(Nn.isEmpty())this.$inSelection=!1;else{var Dn=this.getDocumentPosition();this.$inSelection=Nn.contains(Dn.row,Dn.column)}return this.$inSelection},Hn.prototype.getButton=function(){return zn.getButton(this.domEvent)},Hn.prototype.getShiftKey=function(){return this.domEvent.shiftKey},Hn.prototype.getAccelKey=function(){return Kn.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},Hn}();kn.MouseEvent=Qn}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=_n("../lib/event"),Qn=_n("../lib/useragent"),Hn=200,qn=200,Nn=5;function Dn(Bn){var Ln=Bn.editor,Pn=zn.createElement("div");Pn.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",Pn.textContent=" ";var Zn=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Zn.forEach(function(Ii){Bn[Ii]=this[Ii]},this),Ln.on("mousedown",this.onMouseDown.bind(Bn));var Jn=Ln.container,Xn,mi,li,oi,ei,fi,gi=0,yi,pi,$i,si,ti;this.onDragStart=function(Ii){if(this.cancelDrag||!Jn.draggable){var Bi=this;return setTimeout(function(){Bi.startSelect(),Bi.captureMouse(Ii)},0),Ii.preventDefault()}ei=Ln.getSelectionRange();var Gi=Ii.dataTransfer;Gi.effectAllowed=Ln.getReadOnly()?"copy":"copyMove",Ln.container.appendChild(Pn),Gi.setDragImage&&Gi.setDragImage(Pn,0,0),setTimeout(function(){Ln.container.removeChild(Pn)}),Gi.clearData(),Gi.setData("Text",Ln.session.getTextRange()),pi=!0,this.setState("drag")},this.onDragEnd=function(Ii){if(Jn.draggable=!1,pi=!1,this.setState(null),!Ln.getReadOnly()){var Bi=Ii.dataTransfer.dropEffect;!yi&&Bi=="move"&&Ln.session.remove(Ln.getSelectionRange()),Ln.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Ii){if(!(Ln.getReadOnly()||!Ri(Ii.dataTransfer)))return mi=Ii.clientX,li=Ii.clientY,Xn||xi(),gi++,Ii.dataTransfer.dropEffect=yi=Fi(Ii),Kn.preventDefault(Ii)},this.onDragOver=function(Ii){if(!(Ln.getReadOnly()||!Ri(Ii.dataTransfer)))return mi=Ii.clientX,li=Ii.clientY,Xn||(xi(),gi++),Ei!==null&&(Ei=null),Ii.dataTransfer.dropEffect=yi=Fi(Ii),Kn.preventDefault(Ii)},this.onDragLeave=function(Ii){if(gi--,gi<=0&&Xn)return Si(),yi=null,Kn.preventDefault(Ii)},this.onDrop=function(Ii){if(fi){var Bi=Ii.dataTransfer;if(pi)switch(yi){case"move":ei.contains(fi.row,fi.column)?ei={start:fi,end:fi}:ei=Ln.moveText(ei,fi);break;case"copy":ei=Ln.moveText(ei,fi,!0);break}else{var Gi=Bi.getData("Text");ei={start:fi,end:Ln.session.insert(fi,Gi)},Ln.focus(),yi=null}return Si(),Kn.preventDefault(Ii)}},Kn.addListener(Jn,"dragstart",this.onDragStart.bind(Bn),Ln),Kn.addListener(Jn,"dragend",this.onDragEnd.bind(Bn),Ln),Kn.addListener(Jn,"dragenter",this.onDragEnter.bind(Bn),Ln),Kn.addListener(Jn,"dragover",this.onDragOver.bind(Bn),Ln),Kn.addListener(Jn,"dragleave",this.onDragLeave.bind(Bn),Ln),Kn.addListener(Jn,"drop",this.onDrop.bind(Bn),Ln);function ai(Ii,Bi){var Gi=Date.now(),Pi=!Bi||Ii.row!=Bi.row,Zi=!Bi||Ii.column!=Bi.column;if(!si||Pi||Zi)Ln.moveCursorToPosition(Ii),si=Gi,ti={x:mi,y:li};else{var lr=In(ti.x,ti.y,mi,li);lr>Nn?si=null:Gi-si>=qn&&(Ln.renderer.scrollCursorIntoView(),si=null)}}function vi(Ii,Bi){var Gi=Date.now(),Pi=Ln.renderer.layerConfig.lineHeight,Zi=Ln.renderer.layerConfig.characterWidth,lr=Ln.renderer.scroller.getBoundingClientRect(),gr={x:{left:mi-lr.left,right:lr.right-mi},y:{top:li-lr.top,bottom:lr.bottom-li}},or=Math.min(gr.x.left,gr.x.right),yr=Math.min(gr.y.top,gr.y.bottom),io={row:Ii.row,column:Ii.column};or/Zi<=2&&(io.column+=gr.x.left<gr.x.right?-3:2),yr/Pi<=1&&(io.row+=gr.y.top<gr.y.bottom?-1:1);var Po=Ii.row!=io.row,lo=Ii.column!=io.column,So=!Bi||Ii.row!=Bi.row;Po||lo&&!So?$i?Gi-$i>=Hn&&Ln.renderer.scrollCursorIntoView(io):$i=Gi:$i=null}function wi(){var Ii=fi;fi=Ln.renderer.screenToTextCoordinates(mi,li),ai(fi,Ii),vi(fi,Ii)}function xi(){ei=Ln.selection.toOrientedRange(),Xn=Ln.session.addMarker(ei,"ace_selection",Ln.getSelectionStyle()),Ln.clearSelection(),Ln.isFocused()&&Ln.renderer.$cursorLayer.setBlinking(!1),clearInterval(oi),wi(),oi=setInterval(wi,20),gi=0,Kn.addListener(document,"mousemove",Ni)}function Si(){clearInterval(oi),Ln.session.removeMarker(Xn),Xn=null,Ln.selection.fromOrientedRange(ei),Ln.isFocused()&&!pi&&Ln.$resetCursorStyle(),ei=null,fi=null,gi=0,$i=null,si=null,Kn.removeListener(document,"mousemove",Ni)}var Ei=null;function Ni(){Ei==null&&(Ei=setTimeout(function(){Ei!=null&&Xn&&Si()},20))}function Ri(Ii){var Bi=Ii.types;return!Bi||Array.prototype.some.call(Bi,function(Gi){return Gi=="text/plain"||Gi=="Text"})}function Fi(Ii){var Bi=["copy","copymove","all","uninitialized"],Gi=["move","copymove","linkmove","all","uninitialized"],Pi=Qn.isMac?Ii.altKey:Ii.ctrlKey,Zi="uninitialized";try{Zi=Ii.dataTransfer.effectAllowed.toLowerCase()}catch{}var lr="none";return Pi&&Bi.indexOf(Zi)>=0?lr="copy":Gi.indexOf(Zi)>=0?lr="move":Bi.indexOf(Zi)>=0&&(lr="copy"),lr}}(function(){this.dragWait=function(){var Bn=Date.now()-this.mousedownEvent.time;Bn>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var Bn=this.editor.container;Bn.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(Bn){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var Bn=this.editor,Ln=Bn.container;Ln.draggable=!0,Bn.renderer.$cursorLayer.setBlinking(!1),Bn.setStyle("ace_dragging");var Pn=Qn.isWin?"default":"move";Bn.renderer.setCursorStyle(Pn),this.setState("dragReady")},this.onMouseDrag=function(Bn){var Ln=this.editor.container;if(Qn.isIE&&this.state=="dragReady"){var Pn=In(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Pn>3&&Ln.dragDrop()}if(this.state==="dragWait"){var Pn=In(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Pn>0&&(Ln.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(Bn){if(this.$dragEnabled){this.mousedownEvent=Bn;var Ln=this.editor,Pn=Bn.inSelection(),Zn=Bn.getButton(),Jn=Bn.domEvent.detail||1;if(Jn===1&&Zn===0&&Pn){if(Bn.editor.inMultiSelectMode&&(Bn.getAccelKey()||Bn.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Xn=Bn.domEvent.target||Bn.domEvent.srcElement;if("unselectable"in Xn&&(Xn.unselectable="on"),Ln.getDragDelay()){if(Qn.isWebKit){this.cancelDrag=!0;var mi=Ln.container;mi.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(Bn,this.onMouseDrag.bind(this)),Bn.defaultPrevented=!0}}}}).call(Dn.prototype);function In(Bn,Ln,Pn,Zn){return Math.sqrt(Math.pow(Pn-Bn,2)+Math.pow(Zn-Ln,2))}kn.DragdropHandler=Dn}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("./mouse_event").MouseEvent,Kn=_n("../lib/event"),Qn=_n("../lib/dom");kn.addTouchListeners=function(Hn,qn){var Nn="scroll",Dn,In,Bn,Ln,Pn,Zn,Jn=0,Xn,mi=0,li=0,oi=0,ei,fi;function gi(){var ai=window.navigator&&window.navigator.clipboard,vi=!1,wi=function(){var Ei=qn.getCopyText(),Ni=qn.session.getUndoManager().hasUndo();fi.replaceChild(Qn.buildDom(vi?["span",!Ei&&xi("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Ei&&xi("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Ei&&xi("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],ai&&xi("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Ni&&xi("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],xi("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],xi("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),fi.firstChild)},xi=function(Ei){return qn.commands.canExecute(Ei,qn)},Si=function(Ei){var Ni=Ei.target.getAttribute("action");if(Ni=="more"||!vi)return vi=!vi,wi();Ni=="paste"?ai.readText().then(function(Ri){qn.execCommand(Ni,Ri)}):Ni&&((Ni=="cut"||Ni=="copy")&&(ai?ai.writeText(qn.getCopyText()):document.execCommand("copy")),qn.execCommand(Ni)),fi.firstChild.style.display="none",vi=!1,Ni!="openCommandPalette"&&qn.focus()};fi=Qn.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Ei){Nn="menu",Ei.stopPropagation(),Ei.preventDefault(),qn.textInput.focus()},ontouchend:function(Ei){Ei.stopPropagation(),Ei.preventDefault(),Si(Ei)},onclick:Si},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],qn.container)}function yi(){if(!qn.getOption("enableMobileMenu")){fi&&pi();return}fi||gi();var ai=qn.selection.cursor,vi=qn.renderer.textToScreenCoordinates(ai.row,ai.column),wi=qn.renderer.textToScreenCoordinates(0,0).pageX,xi=qn.renderer.scrollLeft,Si=qn.container.getBoundingClientRect();fi.style.top=vi.pageY-Si.top-3+"px",vi.pageX-Si.left<Si.width-70?(fi.style.left="",fi.style.right="10px"):(fi.style.right="",fi.style.left=wi+xi-Si.left+"px"),fi.style.display="",fi.firstChild.style.display="none",qn.on("input",pi)}function pi(ai){fi&&(fi.style.display="none"),qn.off("input",pi)}function $i(){Pn=null,clearTimeout(Pn);var ai=qn.selection.getRange(),vi=ai.contains(Xn.row,Xn.column);(ai.isEmpty()||!vi)&&(qn.selection.moveToPosition(Xn),qn.selection.selectWord()),Nn="wait",yi()}function si(){Pn=null,clearTimeout(Pn),qn.selection.moveToPosition(Xn);var ai=mi>=2?qn.selection.getLineRange(Xn.row):qn.session.getBracketRange(Xn);ai&&!ai.isEmpty()?qn.selection.setRange(ai):qn.selection.selectWord(),Nn="wait"}Kn.addListener(Hn,"contextmenu",function(ai){if(ei){var vi=qn.textInput.getElement();vi.focus()}},qn),Kn.addListener(Hn,"touchstart",function(ai){var vi=ai.touches;if(Pn||vi.length>1){clearTimeout(Pn),Pn=null,Bn=-1,Nn="zoom";return}ei=qn.$mouseHandler.isMousePressed=!0;var wi=qn.renderer.layerConfig.lineHeight,xi=qn.renderer.layerConfig.lineHeight,Si=ai.timeStamp;Ln=Si;var Ei=vi[0],Ni=Ei.clientX,Ri=Ei.clientY;Math.abs(Dn-Ni)+Math.abs(In-Ri)>wi&&(Bn=-1),Dn=ai.clientX=Ni,In=ai.clientY=Ri,li=oi=0;var Fi=new zn(ai,qn);if(Xn=Fi.getDocumentPosition(),Si-Bn<500&&vi.length==1&&!Jn)mi++,ai.preventDefault(),ai.button=0,si();else{mi=0;var Ii=qn.selection.cursor,Bi=qn.selection.isEmpty()?Ii:qn.selection.anchor,Gi=qn.renderer.$cursorLayer.getPixelPosition(Ii,!0),Pi=qn.renderer.$cursorLayer.getPixelPosition(Bi,!0),Zi=qn.renderer.scroller.getBoundingClientRect(),lr=qn.renderer.layerConfig.offset,gr=qn.renderer.scrollLeft,or=function(Po,lo){return Po=Po/xi,lo=lo/wi-.75,Po*Po+lo*lo};if(ai.clientX<Zi.left){Nn="zoom";return}var yr=or(ai.clientX-Zi.left-Gi.left+gr,ai.clientY-Zi.top-Gi.top+lr),io=or(ai.clientX-Zi.left-Pi.left+gr,ai.clientY-Zi.top-Pi.top+lr);yr<3.5&&io<3.5&&(Nn=yr>io?"cursor":"anchor"),io<3.5?Nn="anchor":yr<3.5?Nn="cursor":Nn="scroll",Pn=setTimeout($i,450)}Bn=Si},qn),Kn.addListener(Hn,"touchend",function(ai){ei=qn.$mouseHandler.isMousePressed=!1,Zn&&clearInterval(Zn),Nn=="zoom"?(Nn="",Jn=0):Pn?(qn.selection.moveToPosition(Xn),Jn=0,yi()):Nn=="scroll"?(ti(),pi()):yi(),clearTimeout(Pn),Pn=null},qn),Kn.addListener(Hn,"touchmove",function(ai){Pn&&(clearTimeout(Pn),Pn=null);var vi=ai.touches;if(!(vi.length>1||Nn=="zoom")){var wi=vi[0],xi=Dn-wi.clientX,Si=In-wi.clientY;if(Nn=="wait")if(xi*xi+Si*Si>4)Nn="cursor";else return ai.preventDefault();Dn=wi.clientX,In=wi.clientY,ai.clientX=wi.clientX,ai.clientY=wi.clientY;var Ei=ai.timeStamp,Ni=Ei-Ln;if(Ln=Ei,Nn=="scroll"){var Ri=new zn(ai,qn);Ri.speed=1,Ri.wheelX=xi,Ri.wheelY=Si,10*Math.abs(xi)<Math.abs(Si)&&(xi=0),10*Math.abs(Si)<Math.abs(xi)&&(Si=0),Ni!=0&&(li=xi/Ni,oi=Si/Ni),qn._emit("mousewheel",Ri),Ri.propagationStopped||(li=oi=0)}else{var Fi=new zn(ai,qn),Ii=Fi.getDocumentPosition();Nn=="cursor"?qn.selection.moveCursorToPosition(Ii):Nn=="anchor"&&qn.selection.setSelectionAnchor(Ii.row,Ii.column),qn.renderer.scrollCursorIntoView(Ii),ai.preventDefault()}}},qn);function ti(){Jn+=60,Zn=setInterval(function(){Jn--<=0&&(clearInterval(Zn),Zn=null),Math.abs(li)<.01&&(li=0),Math.abs(oi)<.01&&(oi=0),Jn<20&&(li=.9*li),Jn<20&&(oi=.9*oi);var ai=qn.session.getScrollTop();qn.renderer.scrollBy(10*li,10*oi),ai==qn.session.getScrollTop()&&(Jn=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(_n,kn,Wn){var zn=_n("../lib/event"),Kn=_n("../lib/useragent"),Qn=_n("./default_handlers").DefaultHandlers,Hn=_n("./default_gutter_handler").GutterHandler,qn=_n("./mouse_event").MouseEvent,Nn=_n("./dragdrop_handler").DragdropHandler,Dn=_n("./touch_handler").addTouchListeners,In=_n("../config"),Bn=function(){function Ln(Pn){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var Zn=this;this.editor=Pn,new Qn(this),new Hn(this),new Nn(this);var Jn=function(li){var oi=!document.hasFocus||!document.hasFocus()||!Pn.isFocused()&&document.activeElement==(Pn.textInput&&Pn.textInput.getElement());oi&&window.focus(),Pn.focus(),setTimeout(function(){Pn.isFocused()||Pn.focus()})},Xn=Pn.renderer.getMouseEventTarget();zn.addListener(Xn,"click",this.onMouseEvent.bind(this,"click"),Pn),zn.addListener(Xn,"mousemove",this.onMouseMove.bind(this,"mousemove"),Pn),zn.addMultiMouseDownListener([Xn,Pn.renderer.scrollBarV&&Pn.renderer.scrollBarV.inner,Pn.renderer.scrollBarH&&Pn.renderer.scrollBarH.inner,Pn.textInput&&Pn.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",Pn),zn.addMouseWheelListener(Pn.container,this.onMouseWheel.bind(this,"mousewheel"),Pn),Dn(Pn.container,Pn);var mi=Pn.renderer.$gutter;zn.addListener(mi,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),Pn),zn.addListener(mi,"click",this.onMouseEvent.bind(this,"gutterclick"),Pn),zn.addListener(mi,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),Pn),zn.addListener(mi,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),Pn),zn.addListener(Xn,"mousedown",Jn,Pn),zn.addListener(mi,"mousedown",Jn,Pn),Kn.isIE&&Pn.renderer.scrollBarV&&(zn.addListener(Pn.renderer.scrollBarV.element,"mousedown",Jn,Pn),zn.addListener(Pn.renderer.scrollBarH.element,"mousedown",Jn,Pn)),Pn.on("mousemove",function(li){if(!(Zn.state||Zn.$dragDelay||!Zn.$dragEnabled)){var oi=Pn.renderer.screenToTextCoordinates(li.x,li.y),ei=Pn.session.selection.getRange(),fi=Pn.renderer;!ei.isEmpty()&&ei.insideStart(oi.row,oi.column)?fi.setCursorStyle("default"):fi.setCursorStyle("")}},Pn)}return Ln.prototype.onMouseEvent=function(Pn,Zn){this.editor.session&&this.editor._emit(Pn,new qn(Zn,this.editor))},Ln.prototype.onMouseMove=function(Pn,Zn){var Jn=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!Jn||!Jn.length||this.editor._emit(Pn,new qn(Zn,this.editor))},Ln.prototype.onMouseWheel=function(Pn,Zn){var Jn=new qn(Zn,this.editor);Jn.speed=this.$scrollSpeed*2,Jn.wheelX=Zn.wheelX,Jn.wheelY=Zn.wheelY,this.editor._emit(Pn,Jn)},Ln.prototype.setState=function(Pn){this.state=Pn},Ln.prototype.captureMouse=function(Pn,Zn){this.x=Pn.x,this.y=Pn.y,this.isMousePressed=!0;var Jn=this.editor,Xn=this.editor.renderer;Xn.$isMousePressed=!0;var mi=this,li=function(yi){if(yi){if(Kn.isWebKit&&!yi.which&&mi.releaseMouse)return mi.releaseMouse();mi.x=yi.clientX,mi.y=yi.clientY,Zn&&Zn(yi),mi.mouseEvent=new qn(yi,mi.editor),mi.$mouseMoved=!0}},oi=function(yi){Jn.off("beforeEndOperation",fi),clearInterval(gi),Jn.session&&ei(),mi[mi.state+"End"]&&mi[mi.state+"End"](yi),mi.state="",mi.isMousePressed=Xn.$isMousePressed=!1,Xn.$keepTextAreaAtCursor&&Xn.$moveTextAreaToCursor(),mi.$onCaptureMouseMove=mi.releaseMouse=null,yi&&mi.onMouseEvent("mouseup",yi),Jn.endOperation()},ei=function(){mi[mi.state]&&mi[mi.state](),mi.$mouseMoved=!1};if(Kn.isOldIE&&Pn.domEvent.type=="dblclick")return setTimeout(function(){oi(Pn)});var fi=function(yi){mi.releaseMouse&&Jn.curOp.command.name&&Jn.curOp.selectionChanged&&(mi[mi.state+"End"]&&mi[mi.state+"End"](),mi.state="",mi.releaseMouse())};Jn.on("beforeEndOperation",fi),Jn.startOperation({command:{name:"mouse"}}),mi.$onCaptureMouseMove=li,mi.releaseMouse=zn.capture(this.editor.container,li,oi);var gi=setInterval(ei,20)},Ln.prototype.cancelContextMenu=function(){var Pn=(function(Zn){Zn&&Zn.domEvent&&Zn.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",Pn),Zn&&Zn.domEvent&&zn.stopEvent(Zn.domEvent))}).bind(this);setTimeout(Pn,10),this.editor.on("nativecontextmenu",Pn)},Ln.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},Ln}();Bn.prototype.releaseMouse=null,In.defineOptions(Bn.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:Kn.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),kn.MouseHandler=Bn}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=function(){function Qn(Hn){Hn.on("click",function(qn){var Nn=qn.getDocumentPosition(),Dn=Hn.session,In=Dn.getFoldAt(Nn.row,Nn.column,1);In&&(qn.getAccelKey()?Dn.removeFold(In):Dn.expandFold(In),qn.stop());var Bn=qn.domEvent&&qn.domEvent.target;Bn&&zn.hasCssClass(Bn,"ace_inline_button")&&zn.hasCssClass(Bn,"ace_toggle_wrap")&&(Dn.setOption("wrap",!Dn.getUseWrapMode()),Hn.renderer.scrollCursorIntoView())}),Hn.on("gutterclick",function(qn){var Nn=Hn.renderer.$gutterLayer.getRegion(qn);if(Nn=="foldWidgets"){var Dn=qn.getDocumentPosition().row,In=Hn.session;In.foldWidgets&&In.foldWidgets[Dn]&&Hn.session.onFoldWidgetClick(Dn,qn),Hn.isFocused()||Hn.focus(),qn.stop()}}),Hn.on("gutterdblclick",function(qn){var Nn=Hn.renderer.$gutterLayer.getRegion(qn);if(Nn=="foldWidgets"){var Dn=qn.getDocumentPosition().row,In=Hn.session,Bn=In.getParentFoldRangeData(Dn,!0),Ln=Bn.range||Bn.firstRange;if(Ln){Dn=Ln.start.row;var Pn=In.getFoldAt(Dn,In.getLine(Dn).length,1);Pn?In.removeFold(Pn):(In.addFold("...",Ln),Hn.renderer.scrollCursorIntoView({row:Ln.start.row,column:0}))}qn.stop()}})}return Qn}();kn.FoldHandler=Kn}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(_n,kn,Wn){var zn=_n("../lib/keys"),Kn=_n("../lib/event"),Qn=function(){function Hn(qn){this.$editor=qn,this.$data={editor:qn},this.$handlers=[],this.setDefaultHandler(qn.commands)}return Hn.prototype.setDefaultHandler=function(qn){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=qn,this.addKeyboardHandler(qn,0)},Hn.prototype.setKeyboardHandler=function(qn){var Nn=this.$handlers;if(Nn[Nn.length-1]!=qn){for(;Nn[Nn.length-1]&&Nn[Nn.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(Nn[Nn.length-1]);this.addKeyboardHandler(qn,1)}},Hn.prototype.addKeyboardHandler=function(qn,Nn){if(qn){typeof qn=="function"&&!qn.handleKeyboard&&(qn.handleKeyboard=qn);var Dn=this.$handlers.indexOf(qn);Dn!=-1&&this.$handlers.splice(Dn,1),Nn==null?this.$handlers.push(qn):this.$handlers.splice(Nn,0,qn),Dn==-1&&qn.attach&&qn.attach(this.$editor)}},Hn.prototype.removeKeyboardHandler=function(qn){var Nn=this.$handlers.indexOf(qn);return Nn==-1?!1:(this.$handlers.splice(Nn,1),qn.detach&&qn.detach(this.$editor),!0)},Hn.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},Hn.prototype.getStatusText=function(){var qn=this.$data,Nn=qn.editor;return this.$handlers.map(function(Dn){return Dn.getStatusText&&Dn.getStatusText(Nn,qn)||""}).filter(Boolean).join(" ")},Hn.prototype.$callKeyboardHandlers=function(qn,Nn,Dn,In){for(var Bn,Ln=!1,Pn=this.$editor.commands,Zn=this.$handlers.length;Zn--&&(Bn=this.$handlers[Zn].handleKeyboard(this.$data,qn,Nn,Dn,In),!(!(!Bn||!Bn.command)&&(Bn.command=="null"?Ln=!0:Ln=Pn.exec(Bn.command,this.$editor,Bn.args,In),Ln&&In&&qn!=-1&&Bn.passEvent!=!0&&Bn.command.passEvent!=!0&&Kn.stopEvent(In),Ln))););return!Ln&&qn==-1&&(Bn={command:"insertstring"},Ln=Pn.exec("insertstring",this.$editor,Nn)),Ln&&this.$editor._signal&&this.$editor._signal("keyboardActivity",Bn),Ln},Hn.prototype.onCommandKey=function(qn,Nn,Dn){var In=zn.keyCodeToString(Dn);return this.$callKeyboardHandlers(Nn,In,Dn,qn)},Hn.prototype.onTextInput=function(qn){return this.$callKeyboardHandlers(-1,qn)},Hn}();kn.KeyBinding=Qn}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(_n,kn,Wn){var zn=0,Kn=0,Qn=!1,Hn=!1,qn=!1,Nn=[[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]],Dn=[[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]],In=0,Bn=1,Ln=0,Pn=1,Zn=2,Jn=3,Xn=4,mi=5,li=6,oi=7,ei=8,fi=9,gi=10,yi=11,pi=12,$i=13,si=14,ti=15,ai=16,vi=17,wi=18,xi=[wi,wi,wi,wi,wi,wi,wi,wi,wi,li,mi,li,ei,mi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,mi,mi,mi,li,ei,Xn,Xn,yi,yi,yi,Xn,Xn,Xn,Xn,Xn,gi,fi,gi,fi,fi,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,fi,Xn,Xn,Xn,Xn,Xn,Xn,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Xn,Xn,Xn,Xn,Xn,Xn,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Xn,Xn,Xn,Xn,wi,wi,wi,wi,wi,wi,mi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,fi,Xn,yi,yi,yi,yi,Xn,Xn,Xn,Xn,Ln,Xn,Xn,wi,Xn,Xn,yi,yi,Zn,Zn,Xn,Ln,Xn,Xn,Xn,Zn,Ln,Xn,Xn,Xn,Xn,Xn],Si=[ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,wi,wi,wi,Ln,Pn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,ei,mi,$i,si,ti,ai,vi,fi,yi,yi,yi,yi,yi,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,fi,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,ei];function Ei(Ii,Bi,Gi,Pi){var Zi=zn?Dn:Nn,lr=null,gr=null,or=null,yr=0,io=null,Po=null,lo=-1,So=null,Xo=null,Do=[];if(!Pi)for(So=0,Pi=[];So<Gi;So++)Pi[So]=Fi(Ii[So]);for(Kn=zn,Qn=!1,Hn=!1,qn=!1,Xo=0;Xo<Gi;Xo++){if(lr=yr,Do[Xo]=gr=Ri(Ii,Pi,Do,Xo),yr=Zi[lr][gr],io=yr&240,yr&=15,Bi[Xo]=or=Zi[yr][5],io>0)if(io==16){for(So=lo;So<Xo;So++)Bi[So]=1;lo=-1}else lo=-1;if(Po=Zi[yr][6],Po)lo==-1&&(lo=Xo);else if(lo>-1){for(So=lo;So<Xo;So++)Bi[So]=or;lo=-1}Pi[Xo]==mi&&(Bi[Xo]=0),Kn|=or}if(qn){for(So=0;So<Gi;So++)if(Pi[So]==li){Bi[So]=zn;for(var Uo=So-1;Uo>=0&&Pi[Uo]==ei;Uo--)Bi[Uo]=zn}}}function Ni(Ii,Bi,Gi){if(!(Kn<Ii)){if(Ii==1&&zn==Bn&&!Hn){Gi.reverse();return}for(var Pi=Gi.length,Zi=0,lr,gr,or,yr;Zi<Pi;){if(Bi[Zi]>=Ii){for(lr=Zi+1;lr<Pi&&Bi[lr]>=Ii;)lr++;for(gr=Zi,or=lr-1;gr<or;gr++,or--)yr=Gi[gr],Gi[gr]=Gi[or],Gi[or]=yr;Zi=lr}Zi++}}}function Ri(Ii,Bi,Gi,Pi){var Zi=Bi[Pi],lr,gr,or,yr;switch(Zi){case Ln:case Pn:Qn=!1;case Xn:case Jn:return Zi;case Zn:return Qn?Jn:Zn;case oi:return Qn=!0,Pn;case ei:return Xn;case fi:return Pi<1||Pi+1>=Bi.length||(lr=Gi[Pi-1])!=Zn&&lr!=Jn||(gr=Bi[Pi+1])!=Zn&&gr!=Jn?Xn:(Qn&&(gr=Jn),gr==lr?gr:Xn);case gi:return lr=Pi>0?Gi[Pi-1]:mi,lr==Zn&&Pi+1<Bi.length&&Bi[Pi+1]==Zn?Zn:Xn;case yi:if(Pi>0&&Gi[Pi-1]==Zn)return Zn;if(Qn)return Xn;for(yr=Pi+1,or=Bi.length;yr<or&&Bi[yr]==yi;)yr++;return yr<or&&Bi[yr]==Zn?Zn:Xn;case pi:for(or=Bi.length,yr=Pi+1;yr<or&&Bi[yr]==pi;)yr++;if(yr<or){var io=Ii[Pi],Po=io>=1425&&io<=2303||io==64286;if(lr=Bi[yr],Po&&(lr==Pn||lr==oi))return Pn}return Pi<1||(lr=Bi[Pi-1])==mi?Xn:Gi[Pi-1];case mi:return Qn=!1,Hn=!0,zn;case li:return qn=!0,Xn;case $i:case si:case ai:case vi:case ti:Qn=!1;case wi:return Xn}}function Fi(Ii){var Bi=Ii.charCodeAt(0),Gi=Bi>>8;return Gi==0?Bi>191?Ln:xi[Bi]:Gi==5?/[\u0591-\u05f4]/.test(Ii)?Pn:Ln:Gi==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Ii)?pi:/[\u0660-\u0669\u066b-\u066c]/.test(Ii)?Jn:Bi==1642?yi:/[\u06f0-\u06f9]/.test(Ii)?Zn:oi:Gi==32&&Bi<=8287?Si[Bi&255]:Gi==254&&Bi>=65136?oi:Xn}kn.L=Ln,kn.R=Pn,kn.EN=Zn,kn.ON_R=3,kn.AN=4,kn.R_H=5,kn.B=6,kn.RLE=7,kn.DOT="·",kn.doBidiReorder=function(Ii,Bi,Gi){if(Ii.length<2)return{};var Pi=Ii.split(""),Zi=new Array(Pi.length),lr=new Array(Pi.length),gr=[];zn=Gi?Bn:In,Ei(Pi,gr,Pi.length,Bi);for(var or=0;or<Zi.length;Zi[or]=or,or++);Ni(2,gr,Zi),Ni(1,gr,Zi);for(var or=0;or<Zi.length-1;or++)Bi[or]===Jn?gr[or]=kn.AN:gr[or]===Pn&&(Bi[or]>oi&&Bi[or]<$i||Bi[or]===Xn||Bi[or]===wi)?gr[or]=kn.ON_R:or>0&&Pi[or-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Pi[or])&&(gr[or-1]=gr[or]=kn.R_H,or++);Pi[Pi.length-1]===kn.DOT&&(gr[Pi.length-1]=kn.B),Pi[0]===""&&(gr[0]=kn.RLE);for(var or=0;or<Zi.length;or++)lr[or]=gr[Zi[or]];return{logicalFromVisual:Zi,bidiLevels:lr}},kn.hasBidiCharacters=function(Ii,Bi){for(var Gi=!1,Pi=0;Pi<Ii.length;Pi++)Bi[Pi]=Fi(Ii.charAt(Pi)),!Gi&&(Bi[Pi]==Pn||Bi[Pi]==oi||Bi[Pi]==Jn)&&(Gi=!0);return Gi},kn.getVisualFromLogicalIdx=function(Ii,Bi){for(var Gi=0;Gi<Bi.logicalFromVisual.length;Gi++)if(Bi.logicalFromVisual[Gi]==Ii)return Gi;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(_n,kn,Wn){var zn=_n("./lib/bidiutil"),Kn=_n("./lib/lang"),Qn=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,Hn=function(){function qn(Nn){this.session=Nn,this.bidiMap={},this.currentRow=null,this.bidiUtil=zn,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=Qn.test(Nn.getValue())}return qn.prototype.isBidiRow=function(Nn,Dn,In){return this.seenBidi?(Nn!==this.currentRow&&(this.currentRow=Nn,this.updateRowLine(Dn,In),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},qn.prototype.onChange=function(Nn){this.seenBidi?this.currentRow=null:Nn.action=="insert"&&Qn.test(Nn.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},qn.prototype.getDocumentRow=function(){var Nn=0,Dn=this.session.$screenRowCache;if(Dn.length){var In=this.session.$getRowCacheIndex(Dn,this.currentRow);In>=0&&(Nn=this.session.$docRowCache[In])}return Nn},qn.prototype.getSplitIndex=function(){var Nn=0,Dn=this.session.$screenRowCache;if(Dn.length)for(var In,Bn=this.session.$getRowCacheIndex(Dn,this.currentRow);this.currentRow-Nn>0&&(In=this.session.$getRowCacheIndex(Dn,this.currentRow-Nn-1),In===Bn);)Bn=In,Nn++;else Nn=this.currentRow;return Nn},qn.prototype.updateRowLine=function(Nn,Dn){Nn===void 0&&(Nn=this.getDocumentRow());var In=Nn===this.session.getLength()-1,Bn=In?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(Nn),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var Ln=this.session.$wrapData[Nn];Ln&&(Dn===void 0&&(Dn=this.getSplitIndex()),Dn>0&&Ln.length?(this.wrapIndent=Ln.indent,this.wrapOffset=this.wrapIndent*this.charWidths[zn.L],this.line=Dn<Ln.length?this.line.substring(Ln[Dn-1],Ln[Dn]):this.line.substring(Ln[Ln.length-1])):this.line=this.line.substring(0,Ln[Dn]),Dn==Ln.length&&(this.line+=this.showInvisibles?Bn:zn.DOT))}else this.line+=this.showInvisibles?Bn:zn.DOT;var Pn=this.session,Zn=0,Jn;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(Xn,mi){return Xn===" "||Pn.isFullWidth(Xn.charCodeAt(0))?(Jn=Xn===" "?Pn.getScreenTabSize(mi+Zn):2,Zn+=Jn-1,Kn.stringRepeat(zn.DOT,Jn)):Xn}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==zn.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},qn.prototype.updateBidiMap=function(){var Nn=[];zn.hasBidiCharacters(this.line,Nn)||this.isRtlDir?this.bidiMap=zn.doBidiReorder(this.line,Nn,this.isRtlDir):this.bidiMap={}},qn.prototype.markAsDirty=function(){this.currentRow=null},qn.prototype.updateCharacterWidths=function(Nn){if(this.characterWidth!==Nn.$characterSize.width){this.fontMetrics=Nn;var Dn=this.characterWidth=Nn.$characterSize.width,In=Nn.$measureCharWidth("ה");this.charWidths[zn.L]=this.charWidths[zn.EN]=this.charWidths[zn.ON_R]=Dn,this.charWidths[zn.R]=this.charWidths[zn.AN]=In,this.charWidths[zn.R_H]=In*.45,this.charWidths[zn.B]=this.charWidths[zn.RLE]=0,this.currentRow=null}},qn.prototype.setShowInvisibles=function(Nn){this.showInvisibles=Nn,this.currentRow=null},qn.prototype.setEolChar=function(Nn){this.EOL=Nn},qn.prototype.setContentWidth=function(Nn){this.contentWidth=Nn},qn.prototype.isRtlLine=function(Nn){return this.$isRtl?!0:Nn!=null?this.session.getLine(Nn).charAt(0)==this.RLE:this.isRtlDir},qn.prototype.setRtlDirection=function(Nn,Dn){for(var In=Nn.getCursorPosition(),Bn=Nn.selection.getSelectionAnchor().row;Bn<=In.row;Bn++)!Dn&&Nn.session.getLine(Bn).charAt(0)===Nn.session.$bidiHandler.RLE?Nn.session.doc.removeInLine(Bn,0,1):Dn&&Nn.session.getLine(Bn).charAt(0)!==Nn.session.$bidiHandler.RLE&&Nn.session.doc.insert({column:0,row:Bn},Nn.session.$bidiHandler.RLE)},qn.prototype.getPosLeft=function(Nn){Nn-=this.wrapIndent;var Dn=this.line.charAt(0)===this.RLE?1:0,In=Nn>Dn?this.session.getOverwrite()?Nn:Nn-1:Dn,Bn=zn.getVisualFromLogicalIdx(In,this.bidiMap),Ln=this.bidiMap.bidiLevels,Pn=0;!this.session.getOverwrite()&&Nn<=Dn&&Ln[Bn]%2!==0&&Bn++;for(var Zn=0;Zn<Bn;Zn++)Pn+=this.charWidths[Ln[Zn]];return!this.session.getOverwrite()&&Nn>Dn&&Ln[Bn]%2===0&&(Pn+=this.charWidths[Ln[Bn]]),this.wrapIndent&&(Pn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(Pn+=this.rtlLineOffset),Pn},qn.prototype.getSelections=function(Nn,Dn){var In=this.bidiMap,Bn=In.bidiLevels,Ln,Pn=[],Zn=0,Jn=Math.min(Nn,Dn)-this.wrapIndent,Xn=Math.max(Nn,Dn)-this.wrapIndent,mi=!1,li=!1,oi=0;this.wrapIndent&&(Zn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var ei,fi=0;fi<Bn.length;fi++)ei=In.logicalFromVisual[fi],Ln=Bn[fi],mi=ei>=Jn&&ei<Xn,mi&&!li?oi=Zn:!mi&&li&&Pn.push({left:oi,width:Zn-oi}),Zn+=this.charWidths[Ln],li=mi;if(mi&&fi===Bn.length&&Pn.push({left:oi,width:Zn-oi}),this.isRtlDir)for(var gi=0;gi<Pn.length;gi++)Pn[gi].left+=this.rtlLineOffset;return Pn},qn.prototype.offsetToCol=function(In){this.isRtlDir&&(In-=this.rtlLineOffset);var Dn=0,In=Math.max(In,0),Bn=0,Ln=0,Pn=this.bidiMap.bidiLevels,Zn=this.charWidths[Pn[Ln]];for(this.wrapIndent&&(In-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);In>Bn+Zn/2;){if(Bn+=Zn,Ln===Pn.length-1){Zn=0;break}Zn=this.charWidths[Pn[++Ln]]}return Ln>0&&Pn[Ln-1]%2!==0&&Pn[Ln]%2===0?(In<Bn&&Ln--,Dn=this.bidiMap.logicalFromVisual[Ln]):Ln>0&&Pn[Ln-1]%2===0&&Pn[Ln]%2!==0?Dn=1+(In>Bn?this.bidiMap.logicalFromVisual[Ln]:this.bidiMap.logicalFromVisual[Ln-1]):this.isRtlDir&&Ln===Pn.length-1&&Zn===0&&Pn[Ln-1]%2===0||!this.isRtlDir&&Ln===0&&Pn[Ln]%2!==0?Dn=1+this.bidiMap.logicalFromVisual[Ln]:(Ln>0&&Pn[Ln-1]%2!==0&&Zn!==0&&Ln--,Dn=this.bidiMap.logicalFromVisual[Ln]),Dn===0&&this.isRtlDir&&Dn++,Dn+this.wrapIndent},qn}();kn.BidiHandler=Hn}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./lib/lang"),Qn=_n("./lib/event_emitter").EventEmitter,Hn=_n("./range").Range,qn=function(){function Nn(Dn){this.session=Dn,this.doc=Dn.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var In=this;this.cursor.on("change",function(Bn){In.$cursorChanged=!0,In.$silent||In._emit("changeCursor"),!In.$isEmpty&&!In.$silent&&In._emit("changeSelection"),!In.$keepDesiredColumnOnChange&&Bn.old.column!=Bn.value.column&&(In.$desiredColumn=null)}),this.anchor.on("change",function(){In.$anchorChanged=!0,!In.$isEmpty&&!In.$silent&&In._emit("changeSelection")})}return Nn.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},Nn.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},Nn.prototype.getCursor=function(){return this.lead.getPosition()},Nn.prototype.setAnchor=function(Dn,In){this.$isEmpty=!1,this.anchor.setPosition(Dn,In)},Nn.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},Nn.prototype.getSelectionLead=function(){return this.lead.getPosition()},Nn.prototype.isBackwards=function(){var Dn=this.anchor,In=this.lead;return Dn.row>In.row||Dn.row==In.row&&Dn.column>In.column},Nn.prototype.getRange=function(){var Dn=this.anchor,In=this.lead;return this.$isEmpty?Hn.fromPoints(In,In):this.isBackwards()?Hn.fromPoints(In,Dn):Hn.fromPoints(Dn,In)},Nn.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},Nn.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},Nn.prototype.setRange=function(Dn,In){var Bn=In?Dn.end:Dn.start,Ln=In?Dn.start:Dn.end;this.$setSelection(Bn.row,Bn.column,Ln.row,Ln.column)},Nn.prototype.$setSelection=function(Dn,In,Bn,Ln){if(!this.$silent){var Pn=this.$isEmpty,Zn=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(Dn,In),this.cursor.setPosition(Bn,Ln),this.$isEmpty=!Hn.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||Pn!=this.$isEmpty||Zn)&&this._emit("changeSelection")}},Nn.prototype.$moveSelection=function(Dn){var In=this.lead;this.$isEmpty&&this.setSelectionAnchor(In.row,In.column),Dn.call(this)},Nn.prototype.selectTo=function(Dn,In){this.$moveSelection(function(){this.moveCursorTo(Dn,In)})},Nn.prototype.selectToPosition=function(Dn){this.$moveSelection(function(){this.moveCursorToPosition(Dn)})},Nn.prototype.moveTo=function(Dn,In){this.clearSelection(),this.moveCursorTo(Dn,In)},Nn.prototype.moveToPosition=function(Dn){this.clearSelection(),this.moveCursorToPosition(Dn)},Nn.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},Nn.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},Nn.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},Nn.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},Nn.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},Nn.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},Nn.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},Nn.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},Nn.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},Nn.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},Nn.prototype.getWordRange=function(Dn,In){if(typeof In>"u"){var Bn=Dn||this.lead;Dn=Bn.row,In=Bn.column}return this.session.getWordRange(Dn,In)},Nn.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},Nn.prototype.selectAWord=function(){var Dn=this.getCursor(),In=this.session.getAWordRange(Dn.row,Dn.column);this.setSelectionRange(In)},Nn.prototype.getLineRange=function(Dn,In){var Bn=typeof Dn=="number"?Dn:this.lead.row,Ln,Pn=this.session.getFoldLine(Bn);return Pn?(Bn=Pn.start.row,Ln=Pn.end.row):Ln=Bn,In===!0?new Hn(Bn,0,Ln,this.session.getLine(Ln).length):new Hn(Bn,0,Ln+1,0)},Nn.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},Nn.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},Nn.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},Nn.prototype.wouldMoveIntoSoftTab=function(Dn,In,Bn){var Ln=Dn.column,Pn=Dn.column+In;return Bn<0&&(Ln=Dn.column-In,Pn=Dn.column),this.session.isTabStop(Dn)&&this.doc.getLine(Dn.row).slice(Ln,Pn).split(" ").length-1==In},Nn.prototype.moveCursorLeft=function(){var Dn=this.lead.getPosition(),In;if(In=this.session.getFoldAt(Dn.row,Dn.column,-1))this.moveCursorTo(In.start.row,In.start.column);else if(Dn.column===0)Dn.row>0&&this.moveCursorTo(Dn.row-1,this.doc.getLine(Dn.row-1).length);else{var Bn=this.session.getTabSize();this.wouldMoveIntoSoftTab(Dn,Bn,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-Bn):this.moveCursorBy(0,-1)}},Nn.prototype.moveCursorRight=function(){var Dn=this.lead.getPosition(),In;if(In=this.session.getFoldAt(Dn.row,Dn.column,1))this.moveCursorTo(In.end.row,In.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 Bn=this.session.getTabSize(),Dn=this.lead;this.wouldMoveIntoSoftTab(Dn,Bn,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,Bn):this.moveCursorBy(0,1)}},Nn.prototype.moveCursorLineStart=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.session.documentToScreenRow(Dn,In),Ln=this.session.screenToDocumentPosition(Bn,0),Pn=this.session.getDisplayLine(Dn,null,Ln.row,Ln.column),Zn=Pn.match(/^\s*/);Zn[0].length!=In&&!this.session.$useEmacsStyleLineStart&&(Ln.column+=Zn[0].length),this.moveCursorToPosition(Ln)},Nn.prototype.moveCursorLineEnd=function(){var Dn=this.lead,In=this.session.getDocumentLastRowColumnPosition(Dn.row,Dn.column);if(this.lead.column==In.column){var Bn=this.session.getLine(In.row);if(In.column==Bn.length){var Ln=Bn.search(/\s+$/);Ln>0&&(In.column=Ln)}}this.moveCursorTo(In.row,In.column)},Nn.prototype.moveCursorFileEnd=function(){var Dn=this.doc.getLength()-1,In=this.doc.getLine(Dn).length;this.moveCursorTo(Dn,In)},Nn.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},Nn.prototype.moveCursorLongWordRight=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.doc.getLine(Dn),Ln=Bn.substring(In);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var Pn=this.session.getFoldAt(Dn,In,1);if(Pn){this.moveCursorTo(Pn.end.row,Pn.end.column);return}if(this.session.nonTokenRe.exec(Ln)&&(In+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,Ln=Bn.substring(In)),In>=Bn.length){this.moveCursorTo(Dn,Bn.length),this.moveCursorRight(),Dn<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(Ln)&&(In+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,In)},Nn.prototype.moveCursorLongWordLeft=function(){var Dn=this.lead.row,In=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,In,-1)){this.moveCursorTo(Bn.start.row,Bn.start.column);return}var Ln=this.session.getFoldStringAt(Dn,In,-1);Ln==null&&(Ln=this.doc.getLine(Dn).substring(0,In));var Pn=Kn.stringReverse(Ln);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(Pn)&&(In-=this.session.nonTokenRe.lastIndex,Pn=Pn.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),In<=0){this.moveCursorTo(Dn,0),this.moveCursorLeft(),Dn>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(Pn)&&(In-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,In)},Nn.prototype.$shortWordEndIndex=function(Dn){var In=0,Bn,Ln=/\s/,Pn=this.session.tokenRe;if(Pn.lastIndex=0,this.session.tokenRe.exec(Dn))In=this.session.tokenRe.lastIndex;else{for(;(Bn=Dn[In])&&Ln.test(Bn);)In++;if(In<1){for(Pn.lastIndex=0;(Bn=Dn[In])&&!Pn.test(Bn);)if(Pn.lastIndex=0,In++,Ln.test(Bn))if(In>2){In--;break}else{for(;(Bn=Dn[In])&&Ln.test(Bn);)In++;if(In>2)break}}}return Pn.lastIndex=0,In},Nn.prototype.moveCursorShortWordRight=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.doc.getLine(Dn),Ln=Bn.substring(In),Pn=this.session.getFoldAt(Dn,In,1);if(Pn)return this.moveCursorTo(Pn.end.row,Pn.end.column);if(In==Bn.length){var Zn=this.doc.getLength();do Dn++,Ln=this.doc.getLine(Dn);while(Dn<Zn&&/^\s*$/.test(Ln));/^\s+/.test(Ln)||(Ln=""),In=0}var Jn=this.$shortWordEndIndex(Ln);this.moveCursorTo(Dn,In+Jn)},Nn.prototype.moveCursorShortWordLeft=function(){var Dn=this.lead.row,In=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,In,-1))return this.moveCursorTo(Bn.start.row,Bn.start.column);var Ln=this.session.getLine(Dn).substring(0,In);if(In===0){do Dn--,Ln=this.doc.getLine(Dn);while(Dn>0&&/^\s*$/.test(Ln));In=Ln.length,/\s+$/.test(Ln)||(Ln="")}var Pn=Kn.stringReverse(Ln),Zn=this.$shortWordEndIndex(Pn);return this.moveCursorTo(Dn,In-Zn)},Nn.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},Nn.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},Nn.prototype.moveCursorBy=function(Dn,In){var Bn=this.session.documentToScreenPosition(this.lead.row,this.lead.column),Ln;if(In===0&&(Dn!==0&&(this.session.$bidiHandler.isBidiRow(Bn.row,this.lead.row)?(Ln=this.session.$bidiHandler.getPosLeft(Bn.column),Bn.column=Math.round(Ln/this.session.$bidiHandler.charWidths[0])):Ln=Bn.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?Bn.column=this.$desiredColumn:this.$desiredColumn=Bn.column),Dn!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var Pn=this.session.lineWidgets[this.lead.row];Dn<0?Dn-=Pn.rowsAbove||0:Dn>0&&(Dn+=Pn.rowCount-(Pn.rowsAbove||0))}var Zn=this.session.screenToDocumentPosition(Bn.row+Dn,Bn.column,Ln);Dn!==0&&In===0&&Zn.row===this.lead.row&&(Zn.column,this.lead.column),this.moveCursorTo(Zn.row,Zn.column+In,In===0)},Nn.prototype.moveCursorToPosition=function(Dn){this.moveCursorTo(Dn.row,Dn.column)},Nn.prototype.moveCursorTo=function(Dn,In,Bn){var Ln=this.session.getFoldAt(Dn,In,1);Ln&&(Dn=Ln.start.row,In=Ln.start.column),this.$keepDesiredColumnOnChange=!0;var Pn=this.session.getLine(Dn);/[\uDC00-\uDFFF]/.test(Pn.charAt(In))&&Pn.charAt(In-1)&&(this.lead.row==Dn&&this.lead.column==In+1?In=In-1:In=In+1),this.lead.setPosition(Dn,In),this.$keepDesiredColumnOnChange=!1,Bn||(this.$desiredColumn=null)},Nn.prototype.moveCursorToScreen=function(Dn,In,Bn){var Ln=this.session.screenToDocumentPosition(Dn,In);this.moveCursorTo(Ln.row,Ln.column,Bn)},Nn.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},Nn.prototype.fromOrientedRange=function(Dn){this.setSelectionRange(Dn,Dn.cursor==Dn.start),this.$desiredColumn=Dn.desiredColumn||this.$desiredColumn},Nn.prototype.toOrientedRange=function(Dn){var In=this.getRange();return Dn?(Dn.start.column=In.start.column,Dn.start.row=In.start.row,Dn.end.column=In.end.column,Dn.end.row=In.end.row):Dn=In,Dn.cursor=this.isBackwards()?Dn.start:Dn.end,Dn.desiredColumn=this.$desiredColumn,Dn},Nn.prototype.getRangeOfMovements=function(Dn){var In=this.getCursor();try{Dn(this);var Bn=this.getCursor();return Hn.fromPoints(In,Bn)}catch{return Hn.fromPoints(In,In)}finally{this.moveCursorToPosition(In)}},Nn.prototype.toJSON=function(){if(this.rangeCount)var Dn=this.ranges.map(function(In){var Bn=In.clone();return Bn.isBackwards=In.cursor==In.start,Bn});else{var Dn=this.getRange();Dn.isBackwards=this.isBackwards()}return Dn},Nn.prototype.fromJSON=function(Dn){if(Dn.start==null)if(this.rangeList&&Dn.length>1){this.toSingleRange(Dn[0]);for(var In=Dn.length;In--;){var Bn=Hn.fromPoints(Dn[In].start,Dn[In].end);Dn[In].isBackwards&&(Bn.cursor=Bn.start),this.addRange(Bn,!0)}return}else Dn=Dn[0];this.rangeList&&this.toSingleRange(Dn),this.setSelectionRange(Dn,Dn.isBackwards)},Nn.prototype.isEqual=function(Dn){if((Dn.length||this.rangeCount)&&Dn.length!=this.rangeCount)return!1;if(!Dn.length||!this.ranges)return this.getRange().isEqual(Dn);for(var In=this.ranges.length;In--;)if(!this.ranges[In].isEqual(Dn[In]))return!1;return!0},Nn}();qn.prototype.setSelectionAnchor=qn.prototype.setAnchor,qn.prototype.getSelectionAnchor=qn.prototype.getAnchor,qn.prototype.setSelectionRange=qn.prototype.setRange,zn.implement(qn.prototype,Qn),kn.Selection=qn}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(_n,kn,Wn){var zn=_n("./lib/report_error").reportError,Kn=2e3,Qn=function(){function Hn(qn){this.splitRegex,this.states=qn,this.regExps={},this.matchMappings={};for(var Nn in this.states){for(var Dn=this.states[Nn],In=[],Bn=0,Ln=this.matchMappings[Nn]={defaultToken:"text"},Pn="g",Zn=[],Jn=0;Jn<Dn.length;Jn++){var Xn=Dn[Jn];if(Xn.defaultToken&&(Ln.defaultToken=Xn.defaultToken),Xn.caseInsensitive&&Pn.indexOf("i")===-1&&(Pn+="i"),Xn.unicode&&Pn.indexOf("u")===-1&&(Pn+="u"),Xn.regex!=null){Xn.regex instanceof RegExp&&(Xn.regex=Xn.regex.toString().slice(1,-1));var mi=Xn.regex,li=new RegExp("(?:("+mi+")|(.))").exec("a").length-2;Array.isArray(Xn.token)?Xn.token.length==1||li==1?Xn.token=Xn.token[0]:li-1!=Xn.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:Xn,groupCount:li-1}),Xn.token=Xn.token[0]):(Xn.tokenArray=Xn.token,Xn.token=null,Xn.onMatch=this.$arrayTokens):typeof Xn.token=="function"&&!Xn.onMatch&&(li>1?Xn.onMatch=this.$applyToken:Xn.onMatch=Xn.token),li>1&&(/\\\d/.test(Xn.regex)?mi=Xn.regex.replace(/\\([0-9]+)/g,function(oi,ei){return"\\"+(parseInt(ei,10)+Bn+1)}):(li=1,mi=this.removeCapturingGroups(Xn.regex)),!Xn.splitRegex&&typeof Xn.token!="string"&&Zn.push(Xn)),Ln[Bn]=Jn,Bn+=li,In.push(mi),Xn.onMatch||(Xn.onMatch=null)}}In.length||(Ln[0]=0,In.push("$")),Zn.forEach(function(oi){oi.splitRegex=this.createSplitterRegexp(oi.regex,Pn)},this),this.regExps[Nn]=new RegExp("("+In.join(")|(")+")|($)",Pn)}}return Hn.prototype.$setMaxTokenCount=function(qn){Kn=qn|0},Hn.prototype.$applyToken=function(qn){var Nn=this.splitRegex.exec(qn).slice(1),Dn=this.token.apply(this,Nn);if(typeof Dn=="string")return[{type:Dn,value:qn}];for(var In=[],Bn=0,Ln=Dn.length;Bn<Ln;Bn++)Nn[Bn]&&(In[In.length]={type:Dn[Bn],value:Nn[Bn]});return In},Hn.prototype.$arrayTokens=function(qn){if(!qn)return[];var Nn=this.splitRegex.exec(qn);if(!Nn)return"text";for(var Dn=[],In=this.tokenArray,Bn=0,Ln=In.length;Bn<Ln;Bn++)Nn[Bn+1]&&(Dn[Dn.length]={type:In[Bn],value:Nn[Bn+1]});return Dn},Hn.prototype.removeCapturingGroups=function(qn){var Nn=qn.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(Dn,In){return In?"(?:":Dn});return Nn},Hn.prototype.createSplitterRegexp=function(qn,Nn){if(qn.indexOf("(?=")!=-1){var Dn=0,In=!1,Bn={};qn.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(Ln,Pn,Zn,Jn,Xn,mi){return In?In=Xn!="]":Xn?In=!0:Jn?(Dn==Bn.stack&&(Bn.end=mi+1,Bn.stack=-1),Dn--):Zn&&(Dn++,Zn.length!=1&&(Bn.stack=Dn,Bn.start=mi)),Ln}),Bn.end!=null&&/^\)*$/.test(qn.substr(Bn.end))&&(qn=qn.substring(0,Bn.start)+qn.substr(Bn.end))}return qn.charAt(0)!="^"&&(qn="^"+qn),qn.charAt(qn.length-1)!="$"&&(qn+="$"),new RegExp(qn,(Nn||"").replace("g",""))},Hn.prototype.getLineTokens=function(qn,Nn){if(Nn&&typeof Nn!="string"){var Dn=Nn.slice(0);Nn=Dn[0],Nn==="#tmp"&&(Dn.shift(),Nn=Dn.shift())}else var Dn=[];var In=Nn||"start",Bn=this.states[In];Bn||(In="start",Bn=this.states[In]);var Ln=this.matchMappings[In],Pn=this.regExps[In];Pn.lastIndex=0;for(var Zn,Jn=[],Xn=0,mi=0,li={type:null,value:""};Zn=Pn.exec(qn);){var oi=Ln.defaultToken,ei=null,fi=Zn[0],gi=Pn.lastIndex;if(gi-fi.length>Xn){var yi=qn.substring(Xn,gi-fi.length);li.type==oi?li.value+=yi:(li.type&&Jn.push(li),li={type:oi,value:yi})}for(var pi=0;pi<Zn.length-2;pi++)if(Zn[pi+1]!==void 0){ei=Bn[Ln[pi]],ei.onMatch?oi=ei.onMatch(fi,In,Dn,qn):oi=ei.token,ei.next&&(typeof ei.next=="string"?In=ei.next:In=ei.next(In,Dn),Bn=this.states[In],Bn||(this.reportError("state doesn't exist",In),In="start",Bn=this.states[In]),Ln=this.matchMappings[In],Xn=gi,Pn=this.regExps[In],Pn.lastIndex=gi),ei.consumeLineEnd&&(Xn=gi);break}if(fi){if(typeof oi=="string")(!ei||ei.merge!==!1)&&li.type===oi?li.value+=fi:(li.type&&Jn.push(li),li={type:oi,value:fi});else if(oi){li.type&&Jn.push(li),li={type:null,value:""};for(var pi=0;pi<oi.length;pi++)Jn.push(oi[pi])}}if(Xn==qn.length)break;if(Xn=gi,mi++>Kn){for(mi>2*qn.length&&this.reportError("infinite loop with in ace tokenizer",{startState:Nn,line:qn});Xn<qn.length;)li.type&&Jn.push(li),li={value:qn.substring(Xn,Xn+=500),type:"overflow"};In="start",Dn=[];break}}return li.type&&Jn.push(li),Dn.length>1&&Dn[0]!==In&&Dn.unshift("#tmp",In),{tokens:Jn,state:Dn.length?Dn:In}},Hn}();Qn.prototype.reportError=zn,kn.Tokenizer=Qn}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(_n,kn,Wn){var zn=_n("../lib/deep_copy").deepCopy,Kn;Kn=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(qn,Nn){if(!Nn){for(var Dn in qn)this.$rules[Dn]=qn[Dn];return}for(var Dn in qn){for(var In=qn[Dn],Bn=0;Bn<In.length;Bn++){var Ln=In[Bn];(Ln.next||Ln.onMatch)&&(typeof Ln.next=="string"&&Ln.next.indexOf(Nn)!==0&&(Ln.next=Nn+Ln.next),Ln.nextState&&Ln.nextState.indexOf(Nn)!==0&&(Ln.nextState=Nn+Ln.nextState))}this.$rules[Nn+Dn]=In}},this.getRules=function(){return this.$rules},this.embedRules=function(qn,Nn,Dn,In,Bn){var Ln=typeof qn=="function"?new qn().getRules():qn;if(In)for(var Pn=0;Pn<In.length;Pn++)In[Pn]=Nn+In[Pn];else{In=[];for(var Zn in Ln)In.push(Nn+Zn)}if(this.addRules(Ln,Nn),Dn)for(var Jn=Array.prototype[Bn?"push":"unshift"],Pn=0;Pn<In.length;Pn++)Jn.apply(this.$rules[In[Pn]],zn(Dn));this.$embeds||(this.$embeds=[]),this.$embeds.push(Nn)},this.getEmbeds=function(){return this.$embeds};var Qn=function(qn,Nn){return(qn!="start"||Nn.length)&&Nn.unshift(this.nextState,qn),this.nextState},Hn=function(qn,Nn){return Nn.shift(),Nn.shift()||"start"};this.normalizeRules=function(){var qn=0,Nn=this.$rules;function Dn(In){var Bn=Nn[In];Bn.processed=!0;for(var Ln=0;Ln<Bn.length;Ln++){var Pn=Bn[Ln],Zn=null;Array.isArray(Pn)&&(Zn=Pn,Pn={}),!Pn.regex&&Pn.start&&(Pn.regex=Pn.start,Pn.next||(Pn.next=[]),Pn.next.push({defaultToken:Pn.token},{token:Pn.token+".end",regex:Pn.end||Pn.start,next:"pop"}),Pn.token=Pn.token+".start",Pn.push=!0);var Jn=Pn.next||Pn.push;if(Jn&&Array.isArray(Jn)){var Xn=Pn.stateName;Xn||(Xn=Pn.token,typeof Xn!="string"&&(Xn=Xn[0]||""),Nn[Xn]&&(Xn+=qn++)),Nn[Xn]=Jn,Pn.next=Xn,Dn(Xn)}else Jn=="pop"&&(Pn.next=Hn);if(Pn.push&&(Pn.nextState=Pn.next||Pn.push,Pn.next=Qn,delete Pn.push),Pn.rules)for(var mi in Pn.rules)Nn[mi]?Nn[mi].push&&Nn[mi].push.apply(Nn[mi],Pn.rules[mi]):Nn[mi]=Pn.rules[mi];var li=typeof Pn=="string"?Pn:Pn.include;if(li&&(li==="$self"&&(li="start"),Array.isArray(li)?Zn=li.map(function(ei){return Nn[ei]}):Zn=Nn[li]),Zn){var oi=[Ln,1].concat(Zn);Pn.noEscape&&(oi=oi.filter(function(ei){return!ei.next})),Bn.splice.apply(Bn,oi),Ln--}Pn.keywordMap&&(Pn.token=this.createKeywordMapper(Pn.keywordMap,Pn.defaultToken||"text",Pn.caseInsensitive),delete Pn.defaultToken)}}Object.keys(Nn).forEach(Dn,this)},this.createKeywordMapper=function(qn,Nn,Dn,In){var Bn=Object.create(null);return this.$keywordList=[],Object.keys(qn).forEach(function(Ln){for(var Pn=qn[Ln],Zn=Pn.split(In||"|"),Jn=Zn.length;Jn--;){var Xn=Zn[Jn];this.$keywordList.push(Xn),Dn&&(Xn=Xn.toLowerCase()),Bn[Xn]=Ln}},this),qn=null,Dn?function(Ln){return Bn[Ln.toLowerCase()]||Nn}:function(Ln){return Bn[Ln]||Nn}},this.getKeywords=function(){return this.$keywords}}).call(Kn.prototype),kn.TextHighlightRules=Kn}),ace.define("ace/mode/behaviour",["require","exports","module"],function(_n,kn,Wn){var zn;zn=function(){this.$behaviours={}},(function(){this.add=function(Kn,Qn,Hn){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[Kn]:this.$behaviours[Kn]={}}this.$behaviours[Kn][Qn]=Hn},this.addBehaviours=function(Kn){for(var Qn in Kn)for(var Hn in Kn[Qn])this.add(Qn,Hn,Kn[Qn][Hn])},this.remove=function(Kn){this.$behaviours&&this.$behaviours[Kn]&&delete this.$behaviours[Kn]},this.inherit=function(Kn,Qn){if(typeof Kn=="function")var Hn=new Kn().getBehaviours(Qn);else var Hn=Kn.getBehaviours(Qn);this.addBehaviours(Hn)},this.getBehaviours=function(Kn){if(Kn){for(var Qn={},Hn=0;Hn<Kn.length;Hn++)this.$behaviours[Kn[Hn]]&&(Qn[Kn[Hn]]=this.$behaviours[Kn[Hn]]);return Qn}else return this.$behaviours}}).call(zn.prototype),kn.Behaviour=zn}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("./range").Range,Kn=function(){function Qn(Hn,qn,Nn){this.$session=Hn,this.$row=qn,this.$rowTokens=Hn.getTokens(qn);var Dn=Hn.getTokenAt(qn,Nn);this.$tokenIndex=Dn?Dn.index:-1}return Qn.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]},Qn.prototype.stepForward=function(){this.$tokenIndex+=1;for(var Hn;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,Hn||(Hn=this.$session.getLength()),this.$row>=Hn)return this.$row=Hn-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},Qn.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},Qn.prototype.getCurrentTokenRow=function(){return this.$row},Qn.prototype.getCurrentTokenColumn=function(){var Hn=this.$rowTokens,qn=this.$tokenIndex,Nn=Hn[qn].start;if(Nn!==void 0)return Nn;for(Nn=0;qn>0;)qn-=1,Nn+=Hn[qn].value.length;return Nn},Qn.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},Qn.prototype.getCurrentTokenRange=function(){var Hn=this.$rowTokens[this.$tokenIndex],qn=this.getCurrentTokenColumn();return new zn(this.$row,qn,this.$row,qn+Hn.value.length)},Qn}();kn.TokenIterator=Kn}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("../behaviour").Behaviour,Qn=_n("../../token_iterator").TokenIterator,Hn=_n("../../lib/lang"),qn=["text","paren.rparen","rparen","paren","punctuation.operator"],Nn=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],Dn,In={},Bn={'"':'"',"'":"'"},Ln=function(Jn){var Xn=-1;if(Jn.multiSelect&&(Xn=Jn.selection.index,In.rangeCount!=Jn.multiSelect.rangeCount&&(In={rangeCount:Jn.multiSelect.rangeCount})),In[Xn])return Dn=In[Xn];Dn=In[Xn]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},Pn=function(Jn,Xn,mi,li){var oi=Jn.end.row-Jn.start.row;return{text:mi+Xn+li,selection:[0,Jn.start.column+1,oi,Jn.end.column+(oi?0:1)]}},Zn;Zn=function(Jn){Jn=Jn||{},this.add("braces","insertion",function(Xn,mi,li,oi,ei){var fi=li.getCursorPosition(),gi=oi.doc.getLine(fi.row);if(ei=="{"){Ln(li);var yi=li.getSelectionRange(),pi=oi.doc.getTextRange(yi),$i=oi.getTokenAt(fi.row,fi.column);if(pi!==""&&pi!=="{"&&li.getWrapBehavioursEnabled())return Pn(yi,pi,"{","}");if($i&&/(?:string)\.quasi|\.xml/.test($i.type)){var si=[/tag\-(?:open|name)/,/attribute\-name/];return si.some(function(Ei){return Ei.test($i.type)})||/(string)\.quasi/.test($i.type)&&$i.value[fi.column-$i.start-1]!=="$"?void 0:(Zn.recordAutoInsert(li,oi,"}"),{text:"{}",selection:[1,1]})}else if(Zn.isSaneInsertion(li,oi))return/[\]\}\)]/.test(gi[fi.column])||li.inMultiSelectMode||Jn.braces?(Zn.recordAutoInsert(li,oi,"}"),{text:"{}",selection:[1,1]}):(Zn.recordMaybeInsert(li,oi,"{"),{text:"{",selection:[1,1]})}else if(ei=="}"){Ln(li);var ti=gi.substring(fi.column,fi.column+1);if(ti=="}"){var ai=oi.$findOpeningBracket("}",{column:fi.column+1,row:fi.row});if(ai!==null&&Zn.isAutoInsertedClosing(fi,gi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(ei==`
|
180
|
+
`||ei==`\r
|
181
|
+
`){Ln(li);var vi="";Zn.isMaybeInsertedClosing(fi,gi)&&(vi=Hn.stringRepeat("}",Dn.maybeInsertedBrackets),Zn.clearMaybeInsertedClosing());var ti=gi.substring(fi.column,fi.column+1);if(ti==="}"){var wi=oi.findMatchingBracket({row:fi.row,column:fi.column+1},"}");if(!wi)return null;var xi=this.$getIndent(oi.getLine(wi.row))}else if(vi)var xi=this.$getIndent(gi);else{Zn.clearMaybeInsertedClosing();return}var Si=xi+oi.getTabString();return{text:`
|
182
|
+
`+Si+`
|
183
|
+
`+xi+vi,selection:[1,Si.length,1,Si.length]}}else Zn.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(Xn,mi,li,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="{"){Ln(li);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.end.column,ei.end.column+1);if(yi=="}")return ei.end.column++,ei;Dn.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Xn,mi,li,oi,ei){if(ei=="("){Ln(li);var fi=li.getSelectionRange(),gi=oi.doc.getTextRange(fi);if(gi!==""&&li.getWrapBehavioursEnabled())return Pn(fi,gi,"(",")");if(Zn.isSaneInsertion(li,oi))return Zn.recordAutoInsert(li,oi,")"),{text:"()",selection:[1,1]}}else if(ei==")"){Ln(li);var yi=li.getCursorPosition(),pi=oi.doc.getLine(yi.row),$i=pi.substring(yi.column,yi.column+1);if($i==")"){var si=oi.$findOpeningBracket(")",{column:yi.column+1,row:yi.row});if(si!==null&&Zn.isAutoInsertedClosing(yi,pi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(Xn,mi,li,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="("){Ln(li);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.start.column+1,ei.start.column+2);if(yi==")")return ei.end.column++,ei}}),this.add("brackets","insertion",function(Xn,mi,li,oi,ei){if(ei=="["){Ln(li);var fi=li.getSelectionRange(),gi=oi.doc.getTextRange(fi);if(gi!==""&&li.getWrapBehavioursEnabled())return Pn(fi,gi,"[","]");if(Zn.isSaneInsertion(li,oi))return Zn.recordAutoInsert(li,oi,"]"),{text:"[]",selection:[1,1]}}else if(ei=="]"){Ln(li);var yi=li.getCursorPosition(),pi=oi.doc.getLine(yi.row),$i=pi.substring(yi.column,yi.column+1);if($i=="]"){var si=oi.$findOpeningBracket("]",{column:yi.column+1,row:yi.row});if(si!==null&&Zn.isAutoInsertedClosing(yi,pi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(Xn,mi,li,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="["){Ln(li);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.start.column+1,ei.start.column+2);if(yi=="]")return ei.end.column++,ei}}),this.add("string_dquotes","insertion",function(Xn,mi,li,oi,ei){var fi=oi.$mode.$quotes||Bn;if(ei.length==1&&fi[ei]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(ei)!=-1)return;Ln(li);var gi=ei,yi=li.getSelectionRange(),pi=oi.doc.getTextRange(yi);if(pi!==""&&(pi.length!=1||!fi[pi])&&li.getWrapBehavioursEnabled())return Pn(yi,pi,gi,gi);if(!pi){var $i=li.getCursorPosition(),si=oi.doc.getLine($i.row),ti=si.substring($i.column-1,$i.column),ai=si.substring($i.column,$i.column+1),vi=oi.getTokenAt($i.row,$i.column),wi=oi.getTokenAt($i.row,$i.column+1);if(ti=="\\"&&vi&&/escape/.test(vi.type))return null;var xi=vi&&/string|escape/.test(vi.type),Si=!wi||/string|escape/.test(wi.type),Ei;if(ai==gi)Ei=xi!==Si,Ei&&/string\.end/.test(wi.type)&&(Ei=!1);else{if(xi&&!Si||xi&&Si)return null;var Ni=oi.$mode.tokenRe;Ni.lastIndex=0;var Ri=Ni.test(ti);Ni.lastIndex=0;var Fi=Ni.test(ai),Ii=oi.$mode.$pairQuotesAfter,Bi=Ii&&Ii[gi]&&Ii[gi].test(ti);if(!Bi&&Ri||Fi||ai&&!/[\s;,.})\]\\]/.test(ai))return null;var Gi=si[$i.column-2];if(ti==gi&&(Gi==gi||Ni.test(Gi)))return null;Ei=!0}return{text:Ei?gi+gi:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Xn,mi,li,oi,ei){var fi=oi.$mode.$quotes||Bn,gi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi.hasOwnProperty(gi)){Ln(li);var yi=oi.doc.getLine(ei.start.row),pi=yi.substring(ei.start.column+1,ei.start.column+2);if(pi==gi)return ei.end.column++,ei}}),Jn.closeDocComment!==!1&&this.add("doc comment end","insertion",function(Xn,mi,li,oi,ei){if(Xn==="doc-start"&&(ei===`
|
184
|
+
`||ei===`\r
|
185
|
+
`)&&li.selection.isEmpty()){var fi=li.getCursorPosition();if(fi.column===0)return;for(var gi=oi.doc.getLine(fi.row),yi=oi.doc.getLine(fi.row+1),pi=oi.getTokens(fi.row),$i=0,si=0;si<pi.length;si++){$i+=pi[si].value.length;var ti=pi[si];if($i>=fi.column){if($i===fi.column){if(!/\.doc/.test(ti.type))return;if(/\*\//.test(ti.value)){var ai=pi[si+1];if(!ai||!/\.doc/.test(ai.type))return}}var vi=fi.column-($i-ti.value.length),wi=ti.value.indexOf("*/"),xi=ti.value.indexOf("/**",wi>-1?wi+2:0);if(xi!==-1&&vi>xi&&vi<xi+3||wi!==-1&&xi!==-1&&vi>=wi&&vi<=xi||!/\.doc/.test(ti.type))return;break}}var Si=this.$getIndent(gi);if(/\s*\*/.test(yi))return/^\s*\*/.test(gi)?{text:ei+Si+"* ",selection:[1,2+Si.length,1,2+Si.length]}:{text:ei+Si+" * ",selection:[1,3+Si.length,1,3+Si.length]};if(/\/\*\*/.test(gi.substring(0,fi.column)))return{text:ei+Si+" * "+ei+" "+Si+"*/",selection:[1,4+Si.length,1,4+Si.length]}}})},Zn.isSaneInsertion=function(Jn,Xn){var mi=Jn.getCursorPosition(),li=new Qn(Xn,mi.row,mi.column);if(!this.$matchTokenType(li.getCurrentToken()||"text",qn)){if(/[)}\]]/.test(Jn.session.getLine(mi.row)[mi.column]))return!0;var oi=new Qn(Xn,mi.row,mi.column+1);if(!this.$matchTokenType(oi.getCurrentToken()||"text",qn))return!1}return li.stepForward(),li.getCurrentTokenRow()!==mi.row||this.$matchTokenType(li.getCurrentToken()||"text",Nn)},Zn.$matchTokenType=function(Jn,Xn){return Xn.indexOf(Jn.type||Jn)>-1},Zn.recordAutoInsert=function(Jn,Xn,mi){var li=Jn.getCursorPosition(),oi=Xn.doc.getLine(li.row);this.isAutoInsertedClosing(li,oi,Dn.autoInsertedLineEnd[0])||(Dn.autoInsertedBrackets=0),Dn.autoInsertedRow=li.row,Dn.autoInsertedLineEnd=mi+oi.substr(li.column),Dn.autoInsertedBrackets++},Zn.recordMaybeInsert=function(Jn,Xn,mi){var li=Jn.getCursorPosition(),oi=Xn.doc.getLine(li.row);this.isMaybeInsertedClosing(li,oi)||(Dn.maybeInsertedBrackets=0),Dn.maybeInsertedRow=li.row,Dn.maybeInsertedLineStart=oi.substr(0,li.column)+mi,Dn.maybeInsertedLineEnd=oi.substr(li.column),Dn.maybeInsertedBrackets++},Zn.isAutoInsertedClosing=function(Jn,Xn,mi){return Dn.autoInsertedBrackets>0&&Jn.row===Dn.autoInsertedRow&&mi===Dn.autoInsertedLineEnd[0]&&Xn.substr(Jn.column)===Dn.autoInsertedLineEnd},Zn.isMaybeInsertedClosing=function(Jn,Xn){return Dn.maybeInsertedBrackets>0&&Jn.row===Dn.maybeInsertedRow&&Xn.substr(Jn.column)===Dn.maybeInsertedLineEnd&&Xn.substr(0,Jn.column)==Dn.maybeInsertedLineStart},Zn.popAutoInsertedClosing=function(){Dn.autoInsertedLineEnd=Dn.autoInsertedLineEnd.substr(1),Dn.autoInsertedBrackets--},Zn.clearMaybeInsertedClosing=function(){Dn&&(Dn.maybeInsertedBrackets=0,Dn.maybeInsertedRow=-1)},zn.inherits(Zn,Kn),kn.CstyleBehaviour=Zn}),ace.define("ace/unicode",["require","exports","module"],function(_n,kn,Wn){for(var zn=[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],Kn=0,Qn=[],Hn=0;Hn<zn.length;Hn+=2)Qn.push(Kn+=zn[Hn]),zn[Hn+1]&&Qn.push(45,Kn+=zn[Hn+1]);kn.wordChars=String.fromCharCode.apply(null,Qn)}),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(_n,kn,Wn){var zn=_n("../config"),Kn=_n("../tokenizer").Tokenizer,Qn=_n("./text_highlight_rules").TextHighlightRules,Hn=_n("./behaviour/cstyle").CstyleBehaviour,qn=_n("../unicode"),Nn=_n("../lib/lang"),Dn=_n("../token_iterator").TokenIterator,In=_n("../range").Range,Bn;Bn=function(){this.HighlightRules=Qn},(function(){this.$defaultBehaviour=new Hn,this.tokenRe=new RegExp("^["+qn.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+qn.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new Kn(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(Ln,Pn,Zn,Jn){var Xn=Pn.doc,mi=!0,li=!0,oi=1/0,ei=Pn.getTabSize(),fi=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var gi=this.lineCommentStart.map(Nn.escapeRegExp).join("|"),yi=this.lineCommentStart[0];else var gi=Nn.escapeRegExp(this.lineCommentStart),yi=this.lineCommentStart;gi=new RegExp("^(\\s*)(?:"+gi+") ?"),fi=Pn.getUseSoftTabs();var pi=function(Ei,Ni){var Ri=Ei.match(gi);if(Ri){var Fi=Ri[1].length,Ii=Ri[0].length;!ai(Ei,Fi,Ii)&&Ri[0][Ii-1]==" "&&Ii--,Xn.removeInLine(Ni,Fi,Ii)}},$i=yi+" ",si=function(Ei,Ni){(!mi||/\S/.test(Ei))&&(ai(Ei,oi,oi)?Xn.insertInLine({row:Ni,column:oi},$i):Xn.insertInLine({row:Ni,column:oi},yi))},ti=function(Ei,Ni){return gi.test(Ei)},ai=function(Ei,Ni,Ri){for(var Fi=0;Ni--&&Ei.charAt(Ni)==" ";)Fi++;if(Fi%ei!=0)return!1;for(var Fi=0;Ei.charAt(Ri++)==" ";)Fi++;return ei>2?Fi%ei!=ei-1:Fi%ei==0}}else{if(!this.blockComment)return!1;var yi=this.blockComment.start,vi=this.blockComment.end,gi=new RegExp("^(\\s*)(?:"+Nn.escapeRegExp(yi)+")"),wi=new RegExp("(?:"+Nn.escapeRegExp(vi)+")\\s*$"),si=function(Bi,Gi){ti(Bi,Gi)||(!mi||/\S/.test(Bi))&&(Xn.insertInLine({row:Gi,column:Bi.length},vi),Xn.insertInLine({row:Gi,column:oi},yi))},pi=function(Bi,Gi){var Pi;(Pi=Bi.match(wi))&&Xn.removeInLine(Gi,Bi.length-Pi[0].length,Bi.length),(Pi=Bi.match(gi))&&Xn.removeInLine(Gi,Pi[1].length,Pi[0].length)},ti=function(Bi,Gi){if(gi.test(Bi))return!0;for(var Pi=Pn.getTokens(Gi),Zi=0;Zi<Pi.length;Zi++)if(Pi[Zi].type==="comment")return!0}}function xi(Ei){for(var Ni=Zn;Ni<=Jn;Ni++)Ei(Xn.getLine(Ni),Ni)}var Si=1/0;xi(function(Ei,Ni){var Ri=Ei.search(/\S/);Ri!==-1?(Ri<oi&&(oi=Ri),li&&!ti(Ei,Ni)&&(li=!1)):Si>Ei.length&&(Si=Ei.length)}),oi==1/0&&(oi=Si,mi=!1,li=!1),fi&&oi%ei!=0&&(oi=Math.floor(oi/ei)*ei),xi(li?pi:si)},this.toggleBlockComment=function(Ln,Pn,Zn,Jn){var Xn=this.blockComment;if(Xn){!Xn.start&&Xn[0]&&(Xn=Xn[0]);var mi=new Dn(Pn,Jn.row,Jn.column),li=mi.getCurrentToken();Pn.selection;var oi=Pn.selection.toOrientedRange(),ei,fi;if(li&&/comment/.test(li.type)){for(var gi,yi;li&&/comment/.test(li.type);){var pi=li.value.indexOf(Xn.start);if(pi!=-1){var $i=mi.getCurrentTokenRow(),si=mi.getCurrentTokenColumn()+pi;gi=new In($i,si,$i,si+Xn.start.length);break}li=mi.stepBackward()}for(var mi=new Dn(Pn,Jn.row,Jn.column),li=mi.getCurrentToken();li&&/comment/.test(li.type);){var pi=li.value.indexOf(Xn.end);if(pi!=-1){var $i=mi.getCurrentTokenRow(),si=mi.getCurrentTokenColumn()+pi;yi=new In($i,si,$i,si+Xn.end.length);break}li=mi.stepForward()}yi&&Pn.remove(yi),gi&&(Pn.remove(gi),ei=gi.start.row,fi=-Xn.start.length)}else fi=Xn.start.length,ei=Zn.start.row,Pn.insert(Zn.end,Xn.end),Pn.insert(Zn.start,Xn.start);oi.start.row==ei&&(oi.start.column+=fi),oi.end.row==ei&&(oi.end.column+=fi),Pn.selection.fromOrientedRange(oi)}},this.getNextLineIndent=function(Ln,Pn,Zn){return this.$getIndent(Pn)},this.checkOutdent=function(Ln,Pn,Zn){return!1},this.autoOutdent=function(Ln,Pn,Zn){},this.$getIndent=function(Ln){return Ln.match(/^\s*/)[0]},this.createWorker=function(Ln){return null},this.createModeDelegates=function(Ln){this.$embeds=[],this.$modes={};for(var Pn in Ln)if(Ln[Pn]){var Zn=Ln[Pn],Jn=Zn.prototype.$id,Xn=zn.$modes[Jn];Xn||(zn.$modes[Jn]=Xn=new Zn),zn.$modes[Pn]||(zn.$modes[Pn]=Xn),this.$embeds.push(Pn),this.$modes[Pn]=Xn}for(var mi=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],li=function(fi){(function(gi){var yi=mi[fi],pi=gi[yi];gi[mi[fi]]=function(){return this.$delegator(yi,arguments,pi)}})(oi)},oi=this,Pn=0;Pn<mi.length;Pn++)li(Pn)},this.$delegator=function(Ln,Pn,Zn){var Jn=Pn[0]||"start";if(typeof Jn!="string"){if(Array.isArray(Jn[2])){var Xn=Jn[2][Jn[2].length-1],mi=this.$modes[Xn];if(mi)return mi[Ln].apply(mi,[Jn[1]].concat([].slice.call(Pn,1)))}Jn=Jn[0]||"start"}for(var li=0;li<this.$embeds.length;li++)if(this.$modes[this.$embeds[li]]){var oi=Jn.split(this.$embeds[li]);if(!oi[0]&&oi[1]){Pn[0]=oi[1];var mi=this.$modes[this.$embeds[li]];return mi[Ln].apply(mi,Pn)}}var ei=Zn.apply(this,Pn);return Zn?ei:void 0},this.transformAction=function(Ln,Pn,Zn,Jn,Xn){if(this.$behaviour){var mi=this.$behaviour.getBehaviours();for(var li in mi)if(mi[li][Pn]){var oi=mi[li][Pn].apply(this,arguments);if(oi)return oi}}},this.getKeywords=function(Ln){if(!this.completionKeywords){var Pn=this.$tokenizer.rules,Zn=[];for(var Jn in Pn)for(var Xn=Pn[Jn],mi=0,li=Xn.length;mi<li;mi++)if(typeof Xn[mi].token=="string")/keyword|support|storage/.test(Xn[mi].token)&&Zn.push(Xn[mi].regex);else if(typeof Xn[mi].token=="object"){for(var oi=0,ei=Xn[mi].token.length;oi<ei;oi++)if(/keyword|support|storage/.test(Xn[mi].token[oi])){var Jn=Xn[mi].regex.match(/\(.+?\)/g)[oi];Zn.push(Jn.substr(1,Jn.length-2))}}this.completionKeywords=Zn}return Ln?Zn.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(Ln,Pn,Zn,Jn){var Xn=this.$keywordList||this.$createKeywordList();return Xn.map(function(mi){return{name:mi,value:mi,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(Bn.prototype),kn.Mode=Bn}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("./lib/dom"),Kn=function(){function Qn(Hn){this.session=Hn,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 Qn.prototype.getRowLength=function(Hn){var qn;return this.lineWidgets?qn=this.lineWidgets[Hn]&&this.lineWidgets[Hn].rowCount||0:qn=0,!this.$useWrapMode||!this.$wrapData[Hn]?1+qn:this.$wrapData[Hn].length+1+qn},Qn.prototype.$getWidgetScreenLength=function(){var Hn=0;return this.lineWidgets.forEach(function(qn){qn&&qn.rowCount&&!qn.hidden&&(Hn+=qn.rowCount)}),Hn},Qn.prototype.$onChangeEditor=function(Hn){this.attach(Hn.editor)},Qn.prototype.attach=function(Hn){Hn&&Hn.widgetManager&&Hn.widgetManager!=this&&Hn.widgetManager.detach(),this.editor!=Hn&&(this.detach(),this.editor=Hn,Hn&&(Hn.widgetManager=this,Hn.renderer.on("beforeRender",this.measureWidgets),Hn.renderer.on("afterRender",this.renderWidgets)))},Qn.prototype.detach=function(Hn){var qn=this.editor;if(qn){this.editor=null,qn.widgetManager=null,qn.renderer.off("beforeRender",this.measureWidgets),qn.renderer.off("afterRender",this.renderWidgets);var Nn=this.session.lineWidgets;Nn&&Nn.forEach(function(Dn){Dn&&Dn.el&&Dn.el.parentNode&&(Dn._inDocument=!1,Dn.el.parentNode.removeChild(Dn.el))})}},Qn.prototype.updateOnFold=function(Hn,qn){var Nn=qn.lineWidgets;if(!(!Nn||!Hn.action)){for(var Dn=Hn.data,In=Dn.start.row,Bn=Dn.end.row,Ln=Hn.action=="add",Pn=In+1;Pn<Bn;Pn++)Nn[Pn]&&(Nn[Pn].hidden=Ln);Nn[Bn]&&(Ln?Nn[In]?Nn[Bn].hidden=Ln:Nn[In]=Nn[Bn]:(Nn[In]==Nn[Bn]&&(Nn[In]=void 0),Nn[Bn].hidden=Ln))}},Qn.prototype.updateOnChange=function(Hn){var qn=this.session.lineWidgets;if(qn){var Nn=Hn.start.row,Dn=Hn.end.row-Nn;if(Dn!==0)if(Hn.action=="remove"){var In=qn.splice(Nn+1,Dn);!qn[Nn]&&In[In.length-1]&&(qn[Nn]=In.pop()),In.forEach(function(Ln){Ln&&this.removeLineWidget(Ln)},this),this.$updateRows()}else{var Bn=new Array(Dn);qn[Nn]&&qn[Nn].column!=null&&Hn.start.column>qn[Nn].column&&Nn++,Bn.unshift(Nn,0),qn.splice.apply(qn,Bn),this.$updateRows()}}},Qn.prototype.$updateRows=function(){var Hn=this.session.lineWidgets;if(Hn){var qn=!0;Hn.forEach(function(Nn,Dn){if(Nn)for(qn=!1,Nn.row=Dn;Nn.$oldWidget;)Nn.$oldWidget.row=Dn,Nn=Nn.$oldWidget}),qn&&(this.session.lineWidgets=null)}},Qn.prototype.$registerLineWidget=function(Hn){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var qn=this.session.lineWidgets[Hn.row];return qn&&(Hn.$oldWidget=qn,qn.el&&qn.el.parentNode&&(qn.el.parentNode.removeChild(qn.el),qn._inDocument=!1)),this.session.lineWidgets[Hn.row]=Hn,Hn},Qn.prototype.addLineWidget=function(Hn){if(this.$registerLineWidget(Hn),Hn.session=this.session,!this.editor)return Hn;var qn=this.editor.renderer;Hn.html&&!Hn.el&&(Hn.el=zn.createElement("div"),Hn.el.innerHTML=Hn.html),Hn.text&&!Hn.el&&(Hn.el=zn.createElement("div"),Hn.el.textContent=Hn.text),Hn.el&&(zn.addCssClass(Hn.el,"ace_lineWidgetContainer"),Hn.className&&zn.addCssClass(Hn.el,Hn.className),Hn.el.style.position="absolute",Hn.el.style.zIndex="5",qn.container.appendChild(Hn.el),Hn._inDocument=!0,Hn.coverGutter||(Hn.el.style.zIndex="3"),Hn.pixelHeight==null&&(Hn.pixelHeight=Hn.el.offsetHeight)),Hn.rowCount==null&&(Hn.rowCount=Hn.pixelHeight/qn.layerConfig.lineHeight);var Nn=this.session.getFoldAt(Hn.row,0);if(Hn.$fold=Nn,Nn){var Dn=this.session.lineWidgets;Hn.row==Nn.end.row&&!Dn[Nn.start.row]?Dn[Nn.start.row]=Hn:Hn.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:Hn.row}}}),this.$updateRows(),this.renderWidgets(null,qn),this.onWidgetChanged(Hn),Hn},Qn.prototype.removeLineWidget=function(Hn){if(Hn._inDocument=!1,Hn.session=null,Hn.el&&Hn.el.parentNode&&Hn.el.parentNode.removeChild(Hn.el),Hn.editor&&Hn.editor.destroy)try{Hn.editor.destroy()}catch{}if(this.session.lineWidgets){var qn=this.session.lineWidgets[Hn.row];if(qn==Hn)this.session.lineWidgets[Hn.row]=Hn.$oldWidget,Hn.$oldWidget&&this.onWidgetChanged(Hn.$oldWidget);else for(;qn;){if(qn.$oldWidget==Hn){qn.$oldWidget=Hn.$oldWidget;break}qn=qn.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:Hn.row}}}),this.$updateRows()},Qn.prototype.getWidgetsAtRow=function(Hn){for(var qn=this.session.lineWidgets,Nn=qn&&qn[Hn],Dn=[];Nn;)Dn.push(Nn),Nn=Nn.$oldWidget;return Dn},Qn.prototype.onWidgetChanged=function(Hn){this.session._changedWidgets.push(Hn),this.editor&&this.editor.renderer.updateFull()},Qn.prototype.measureWidgets=function(Hn,qn){var Nn=this.session._changedWidgets,Dn=qn.layerConfig;if(!(!Nn||!Nn.length)){for(var In=1/0,Bn=0;Bn<Nn.length;Bn++){var Ln=Nn[Bn];if(!(!Ln||!Ln.el)&&Ln.session==this.session){if(!Ln._inDocument){if(this.session.lineWidgets[Ln.row]!=Ln)continue;Ln._inDocument=!0,qn.container.appendChild(Ln.el)}Ln.h=Ln.el.offsetHeight,Ln.fixedWidth||(Ln.w=Ln.el.offsetWidth,Ln.screenWidth=Math.ceil(Ln.w/Dn.characterWidth));var Pn=Ln.h/Dn.lineHeight;Ln.coverLine&&(Pn-=this.session.getRowLineCount(Ln.row),Pn<0&&(Pn=0)),Ln.rowCount!=Pn&&(Ln.rowCount=Pn,Ln.row<In&&(In=Ln.row))}}In!=1/0&&(this.session._emit("changeFold",{data:{start:{row:In}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},Qn.prototype.renderWidgets=function(Hn,qn){var Nn=qn.layerConfig,Dn=this.session.lineWidgets;if(Dn){for(var In=Math.min(this.firstRow,Nn.firstRow),Bn=Math.max(this.lastRow,Nn.lastRow,Dn.length);In>0&&!Dn[In];)In--;this.firstRow=Nn.firstRow,this.lastRow=Nn.lastRow,qn.$cursorLayer.config=Nn;for(var Ln=In;Ln<=Bn;Ln++){var Pn=Dn[Ln];if(!(!Pn||!Pn.el)){if(Pn.hidden){Pn.el.style.top=-100-(Pn.pixelHeight||0)+"px";continue}Pn._inDocument||(Pn._inDocument=!0,qn.container.appendChild(Pn.el));var Zn=qn.$cursorLayer.getPixelPosition({row:Ln,column:0},!0).top;Pn.coverLine||(Zn+=Nn.lineHeight*this.session.getRowLineCount(Pn.row)),Pn.el.style.top=Zn-Nn.offset+"px";var Jn=Pn.coverGutter?0:qn.gutterWidth;Pn.fixedWidth||(Jn-=qn.scrollLeft),Pn.el.style.left=Jn+"px",Pn.fullWidth&&Pn.screenWidth&&(Pn.el.style.minWidth=Nn.width+2*Nn.padding+"px"),Pn.fixedWidth?Pn.el.style.right=qn.scrollBar.getWidth()+"px":Pn.el.style.right=""}}}},Qn}();kn.LineWidgets=Kn}),ace.define("ace/apply_delta",["require","exports","module"],function(_n,kn,Wn){kn.applyDelta=function(zn,Kn,Qn){var Hn=Kn.start.row,qn=Kn.start.column,Nn=zn[Hn]||"";switch(Kn.action){case"insert":var Dn=Kn.lines;if(Dn.length===1)zn[Hn]=Nn.substring(0,qn)+Kn.lines[0]+Nn.substring(qn);else{var In=[Hn,1].concat(Kn.lines);zn.splice.apply(zn,In),zn[Hn]=Nn.substring(0,qn)+zn[Hn],zn[Hn+Kn.lines.length-1]+=Nn.substring(qn)}break;case"remove":var Bn=Kn.end.column,Ln=Kn.end.row;Hn===Ln?zn[Hn]=Nn.substring(0,qn)+Nn.substring(Bn):zn.splice(Hn,Ln-Hn+1,Nn.substring(0,qn)+zn[Ln].substring(Bn));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./lib/event_emitter").EventEmitter,Qn=function(){function Nn(Dn,In,Bn){this.$onChange=this.onChange.bind(this),this.attach(Dn),typeof In!="number"?this.setPosition(In.row,In.column):this.setPosition(In,Bn)}return Nn.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},Nn.prototype.getDocument=function(){return this.document},Nn.prototype.onChange=function(Dn){if(!(Dn.start.row==Dn.end.row&&Dn.start.row!=this.row)&&!(Dn.start.row>this.row)){var In=qn(Dn,{row:this.row,column:this.column},this.$insertRight);this.setPosition(In.row,In.column,!0)}},Nn.prototype.setPosition=function(Dn,In,Bn){var Ln;if(Bn?Ln={row:Dn,column:In}:Ln=this.$clipPositionToDocument(Dn,In),!(this.row==Ln.row&&this.column==Ln.column)){var Pn={row:this.row,column:this.column};this.row=Ln.row,this.column=Ln.column,this._signal("change",{old:Pn,value:Ln})}},Nn.prototype.detach=function(){this.document.off("change",this.$onChange)},Nn.prototype.attach=function(Dn){this.document=Dn||this.document,this.document.on("change",this.$onChange)},Nn.prototype.$clipPositionToDocument=function(Dn,In){var Bn={};return Dn>=this.document.getLength()?(Bn.row=Math.max(0,this.document.getLength()-1),Bn.column=this.document.getLine(Bn.row).length):Dn<0?(Bn.row=0,Bn.column=0):(Bn.row=Dn,Bn.column=Math.min(this.document.getLine(Bn.row).length,Math.max(0,In))),In<0&&(Bn.column=0),Bn},Nn}();Qn.prototype.$insertRight=!1,zn.implement(Qn.prototype,Kn);function Hn(Nn,Dn,In){var Bn=In?Nn.column<=Dn.column:Nn.column<Dn.column;return Nn.row<Dn.row||Nn.row==Dn.row&&Bn}function qn(Nn,Dn,In){var Bn=Nn.action=="insert",Ln=(Bn?1:-1)*(Nn.end.row-Nn.start.row),Pn=(Bn?1:-1)*(Nn.end.column-Nn.start.column),Zn=Nn.start,Jn=Bn?Zn:Nn.end;return Hn(Dn,Zn,In)?{row:Dn.row,column:Dn.column}:Hn(Jn,Dn,!In)?{row:Dn.row+Ln,column:Dn.column+(Dn.row==Jn.row?Pn:0)}:{row:Zn.row,column:Zn.column}}kn.Anchor=Qn}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./apply_delta").applyDelta,Qn=_n("./lib/event_emitter").EventEmitter,Hn=_n("./range").Range,qn=_n("./anchor").Anchor,Nn=function(){function Dn(In){this.$lines=[""],In.length===0?this.$lines=[""]:Array.isArray(In)?this.insertMergedLines({row:0,column:0},In):this.insert({row:0,column:0},In)}return Dn.prototype.setValue=function(In){var Bn=this.getLength()-1;this.remove(new Hn(0,0,Bn,this.getLine(Bn).length)),this.insert({row:0,column:0},In||"")},Dn.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},Dn.prototype.createAnchor=function(In,Bn){return new qn(this,In,Bn)},Dn.prototype.$detectNewLine=function(In){var Bn=In.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=Bn?Bn[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},Dn.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},Dn.prototype.setNewLineMode=function(In){this.$newLineMode!==In&&(this.$newLineMode=In,this._signal("changeNewLineMode"))},Dn.prototype.getNewLineMode=function(){return this.$newLineMode},Dn.prototype.isNewLine=function(In){return In==`\r
|
190
|
+
`||In=="\r"||In==`
|
191
|
+
`},Dn.prototype.getLine=function(In){return this.$lines[In]||""},Dn.prototype.getLines=function(In,Bn){return this.$lines.slice(In,Bn+1)},Dn.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},Dn.prototype.getLength=function(){return this.$lines.length},Dn.prototype.getTextRange=function(In){return this.getLinesForRange(In).join(this.getNewLineCharacter())},Dn.prototype.getLinesForRange=function(In){var Bn;if(In.start.row===In.end.row)Bn=[this.getLine(In.start.row).substring(In.start.column,In.end.column)];else{Bn=this.getLines(In.start.row,In.end.row),Bn[0]=(Bn[0]||"").substring(In.start.column);var Ln=Bn.length-1;In.end.row-In.start.row==Ln&&(Bn[Ln]=Bn[Ln].substring(0,In.end.column))}return Bn},Dn.prototype.insertLines=function(In,Bn){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(In,Bn)},Dn.prototype.removeLines=function(In,Bn){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(In,Bn)},Dn.prototype.insertNewLine=function(In){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(In,["",""])},Dn.prototype.insert=function(In,Bn){return this.getLength()<=1&&this.$detectNewLine(Bn),this.insertMergedLines(In,this.$split(Bn))},Dn.prototype.insertInLine=function(In,Bn){var Ln=this.clippedPos(In.row,In.column),Pn=this.pos(In.row,In.column+Bn.length);return this.applyDelta({start:Ln,end:Pn,action:"insert",lines:[Bn]},!0),this.clonePos(Pn)},Dn.prototype.clippedPos=function(In,Bn){var Ln=this.getLength();In===void 0?In=Ln:In<0?In=0:In>=Ln&&(In=Ln-1,Bn=void 0);var Pn=this.getLine(In);return Bn==null&&(Bn=Pn.length),Bn=Math.min(Math.max(Bn,0),Pn.length),{row:In,column:Bn}},Dn.prototype.clonePos=function(In){return{row:In.row,column:In.column}},Dn.prototype.pos=function(In,Bn){return{row:In,column:Bn}},Dn.prototype.$clipPosition=function(In){var Bn=this.getLength();return In.row>=Bn?(In.row=Math.max(0,Bn-1),In.column=this.getLine(Bn-1).length):(In.row=Math.max(0,In.row),In.column=Math.min(Math.max(In.column,0),this.getLine(In.row).length)),In},Dn.prototype.insertFullLines=function(In,Bn){In=Math.min(Math.max(In,0),this.getLength());var Ln=0;In<this.getLength()?(Bn=Bn.concat([""]),Ln=0):(Bn=[""].concat(Bn),In--,Ln=this.$lines[In].length),this.insertMergedLines({row:In,column:Ln},Bn)},Dn.prototype.insertMergedLines=function(In,Bn){var Ln=this.clippedPos(In.row,In.column),Pn={row:Ln.row+Bn.length-1,column:(Bn.length==1?Ln.column:0)+Bn[Bn.length-1].length};return this.applyDelta({start:Ln,end:Pn,action:"insert",lines:Bn}),this.clonePos(Pn)},Dn.prototype.remove=function(In){var Bn=this.clippedPos(In.start.row,In.start.column),Ln=this.clippedPos(In.end.row,In.end.column);return this.applyDelta({start:Bn,end:Ln,action:"remove",lines:this.getLinesForRange({start:Bn,end:Ln})}),this.clonePos(Bn)},Dn.prototype.removeInLine=function(In,Bn,Ln){var Pn=this.clippedPos(In,Bn),Zn=this.clippedPos(In,Ln);return this.applyDelta({start:Pn,end:Zn,action:"remove",lines:this.getLinesForRange({start:Pn,end:Zn})},!0),this.clonePos(Pn)},Dn.prototype.removeFullLines=function(In,Bn){In=Math.min(Math.max(0,In),this.getLength()-1),Bn=Math.min(Math.max(0,Bn),this.getLength()-1);var Ln=Bn==this.getLength()-1&&In>0,Pn=Bn<this.getLength()-1,Zn=Ln?In-1:In,Jn=Ln?this.getLine(Zn).length:0,Xn=Pn?Bn+1:Bn,mi=Pn?0:this.getLine(Xn).length,li=new Hn(Zn,Jn,Xn,mi),oi=this.$lines.slice(In,Bn+1);return this.applyDelta({start:li.start,end:li.end,action:"remove",lines:this.getLinesForRange(li)}),oi},Dn.prototype.removeNewLine=function(In){In<this.getLength()-1&&In>=0&&this.applyDelta({start:this.pos(In,this.getLine(In).length),end:this.pos(In+1,0),action:"remove",lines:["",""]})},Dn.prototype.replace=function(In,Bn){if(In instanceof Hn||(In=Hn.fromPoints(In.start,In.end)),Bn.length===0&&In.isEmpty())return In.start;if(Bn==this.getTextRange(In))return In.end;this.remove(In);var Ln;return Bn?Ln=this.insert(In.start,Bn):Ln=In.start,Ln},Dn.prototype.applyDeltas=function(In){for(var Bn=0;Bn<In.length;Bn++)this.applyDelta(In[Bn])},Dn.prototype.revertDeltas=function(In){for(var Bn=In.length-1;Bn>=0;Bn--)this.revertDelta(In[Bn])},Dn.prototype.applyDelta=function(In,Bn){var Ln=In.action=="insert";(Ln?In.lines.length<=1&&!In.lines[0]:!Hn.comparePoints(In.start,In.end))||(Ln&&In.lines.length>2e4?this.$splitAndapplyLargeDelta(In,2e4):(Kn(this.$lines,In,Bn),this._signal("change",In)))},Dn.prototype.$safeApplyDelta=function(In){var Bn=this.$lines.length;(In.action=="remove"&&In.start.row<Bn&&In.end.row<Bn||In.action=="insert"&&In.start.row<=Bn)&&this.applyDelta(In)},Dn.prototype.$splitAndapplyLargeDelta=function(In,Bn){for(var Ln=In.lines,Pn=Ln.length-Bn+1,Zn=In.start.row,Jn=In.start.column,Xn=0,mi=0;Xn<Pn;Xn=mi){mi+=Bn-1;var li=Ln.slice(Xn,mi);li.push(""),this.applyDelta({start:this.pos(Zn+Xn,Jn),end:this.pos(Zn+mi,Jn=0),action:In.action,lines:li},!0)}In.lines=Ln.slice(Xn),In.start.row=Zn+Xn,In.start.column=Jn,this.applyDelta(In,!0)},Dn.prototype.revertDelta=function(In){this.$safeApplyDelta({start:this.clonePos(In.start),end:this.clonePos(In.end),action:In.action=="insert"?"remove":"insert",lines:In.lines.slice()})},Dn.prototype.indexToPosition=function(In,Bn){for(var Ln=this.$lines||this.getAllLines(),Pn=this.getNewLineCharacter().length,Zn=Bn||0,Jn=Ln.length;Zn<Jn;Zn++)if(In-=Ln[Zn].length+Pn,In<0)return{row:Zn,column:In+Ln[Zn].length+Pn};return{row:Jn-1,column:In+Ln[Jn-1].length+Pn}},Dn.prototype.positionToIndex=function(In,Bn){for(var Ln=this.$lines||this.getAllLines(),Pn=this.getNewLineCharacter().length,Zn=0,Jn=Math.min(In.row,Ln.length),Xn=Bn||0;Xn<Jn;++Xn)Zn+=Ln[Xn].length+Pn;return Zn+In.column},Dn.prototype.$split=function(In){return In.split(/\r\n|\r|\n/)},Dn}();Nn.prototype.$autoNewLine="",Nn.prototype.$newLineMode="auto",zn.implement(Nn.prototype,Qn),kn.Document=Nn}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./lib/event_emitter").EventEmitter,Qn=function(){function Hn(qn,Nn){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=qn;var Dn=this;this.$worker=function(){if(Dn.running){for(var In=new Date,Bn=Dn.currentLine,Ln=-1,Pn=Dn.doc,Zn=Bn;Dn.lines[Bn];)Bn++;var Jn=Pn.getLength(),Xn=0;for(Dn.running=!1;Bn<Jn;){Dn.$tokenizeRow(Bn),Ln=Bn;do Bn++;while(Dn.lines[Bn]);if(Xn++,Xn%5===0&&new Date-In>20){Dn.running=setTimeout(Dn.$worker,20);break}}Dn.currentLine=Bn,Ln==-1&&(Ln=Bn),Zn<=Ln&&Dn.fireUpdateEvent(Zn,Ln)}}}return Hn.prototype.setTokenizer=function(qn){this.tokenizer=qn,this.lines=[],this.states=[],this.start(0)},Hn.prototype.setDocument=function(qn){this.doc=qn,this.lines=[],this.states=[],this.stop()},Hn.prototype.fireUpdateEvent=function(qn,Nn){var Dn={first:qn,last:Nn};this._signal("update",{data:Dn})},Hn.prototype.start=function(qn){this.currentLine=Math.min(qn||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)},Hn.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},Hn.prototype.$updateOnChange=function(qn){var Nn=qn.start.row,Dn=qn.end.row-Nn;if(Dn===0)this.lines[Nn]=null;else if(qn.action=="remove")this.lines.splice(Nn,Dn+1,null),this.states.splice(Nn,Dn+1,null);else{var In=Array(Dn+1);In.unshift(Nn,1),this.lines.splice.apply(this.lines,In),this.states.splice.apply(this.states,In)}this.currentLine=Math.min(Nn,this.currentLine,this.doc.getLength()),this.stop()},Hn.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},Hn.prototype.getTokens=function(qn){return this.lines[qn]||this.$tokenizeRow(qn)},Hn.prototype.getState=function(qn){return this.currentLine==qn&&this.$tokenizeRow(qn),this.states[qn]||"start"},Hn.prototype.$tokenizeRow=function(qn){var Nn=this.doc.getLine(qn),Dn=this.states[qn-1],In=this.tokenizer.getLineTokens(Nn,Dn,qn);return this.states[qn]+""!=In.state+""?(this.states[qn]=In.state,this.lines[qn+1]=null,this.currentLine>qn+1&&(this.currentLine=qn+1)):this.currentLine==qn&&(this.currentLine=qn+1),this.lines[qn]=In.tokens},Hn.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},Hn}();zn.implement(Qn.prototype,Kn),kn.BackgroundTokenizer=Qn}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(_n,kn,Wn){var zn=_n("./lib/lang"),Kn=_n("./range").Range,Qn=function(){function Hn(qn,Nn,Dn){Dn===void 0&&(Dn="text"),this.setRegexp(qn),this.clazz=Nn,this.type=Dn}return Hn.prototype.setRegexp=function(qn){this.regExp+""!=qn+""&&(this.regExp=qn,this.cache=[])},Hn.prototype.update=function(qn,Nn,Dn,In){if(this.regExp)for(var Bn=In.firstRow,Ln=In.lastRow,Pn={},Zn=Bn;Zn<=Ln;Zn++){var Jn=this.cache[Zn];Jn==null&&(Jn=zn.getMatchOffsets(Dn.getLine(Zn),this.regExp),Jn.length>this.MAX_RANGES&&(Jn=Jn.slice(0,this.MAX_RANGES)),Jn=Jn.map(function(oi){return new Kn(Zn,oi.offset,Zn,oi.offset+oi.length)}),this.cache[Zn]=Jn.length?Jn:"");for(var Xn=Jn.length;Xn--;){var mi=Jn[Xn].toScreenRange(Dn),li=mi.toString();Pn[li]||(Pn[li]=!0,Nn.drawSingleLineMarker(qn,mi,this.clazz,In))}}},Hn}();Qn.prototype.MAX_RANGES=500,kn.SearchHighlight=Qn}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=function(){function oi(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return oi.prototype.addSession=function(ei){this.$session=ei},oi.prototype.add=function(ei,fi,gi){if(!this.$fromUndo&&ei!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),fi===!1||!this.lastDeltas){this.lastDeltas=[];var yi=this.$undoStack.length;yi>this.$undoDepth-1&&this.$undoStack.splice(0,yi-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),ei.id=this.$rev=++this.$maxRev}(ei.action=="remove"||ei.action=="insert")&&(this.$lastDelta=ei),this.lastDeltas.push(ei)}},oi.prototype.addSelection=function(ei,fi){this.selections.push({value:ei,rev:fi||this.$rev})},oi.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},oi.prototype.markIgnored=function(ei,fi){fi==null&&(fi=this.$rev+1);for(var gi=this.$undoStack,yi=gi.length;yi--;){var pi=gi[yi][0];if(pi.id<=ei)break;pi.id<fi&&(pi.ignore=!0)}this.lastDeltas=null},oi.prototype.getSelection=function(ei,fi){for(var gi=this.selections,yi=gi.length;yi--;){var pi=gi[yi];if(pi.rev<ei)return fi&&(pi=gi[yi+1]),pi}},oi.prototype.getRevision=function(){return this.$rev},oi.prototype.getDeltas=function(ei,fi){fi==null&&(fi=this.$rev+1);for(var gi=this.$undoStack,yi=null,pi=0,$i=gi.length;$i--;){var si=gi[$i][0];if(si.id<fi&&!yi&&(yi=$i+1),si.id<=ei){pi=$i+1;break}}return gi.slice(pi,yi)},oi.prototype.getChangedRanges=function(ei,fi){fi==null&&(fi=this.$rev+1)},oi.prototype.getChangedLines=function(ei,fi){fi==null&&(fi=this.$rev+1)},oi.prototype.undo=function(ei,fi){this.lastDeltas=null;var gi=this.$undoStack;if(Kn(gi,gi.length)){ei||(ei=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var yi=gi.pop(),pi=null;return yi&&(pi=ei.undoChanges(yi,fi),this.$redoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,pi}},oi.prototype.redo=function(ei,fi){if(this.lastDeltas=null,ei||(ei=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var gi=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);li(this.$redoStack,gi),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function($i){$i[0].id=++this.$maxRev},this)}var yi=this.$redoStack.pop(),pi=null;return yi&&(pi=ei.redoChanges(yi,fi),this.$undoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,pi},oi.prototype.$syncRev=function(){var ei=this.$undoStack,fi=ei[ei.length-1],gi=fi&&fi[0].id||0;this.$redoStackBaseRev=gi,this.$rev=gi},oi.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=[]},oi.prototype.canUndo=function(){return this.$undoStack.length>0},oi.prototype.canRedo=function(){return this.$redoStack.length>0},oi.prototype.bookmark=function(ei){ei==null&&(ei=this.$rev),this.mark=ei},oi.prototype.isAtBookmark=function(){return this.$rev===this.mark},oi.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},oi.prototype.fromJSON=function(ei){this.reset(),this.$undoStack=ei.$undoStack,this.$redoStack=ei.$redoStack},oi.prototype.$prettyPrint=function(ei){return ei?Dn(ei):Dn(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+Dn(this.$redoStack)},oi}();zn.prototype.hasUndo=zn.prototype.canUndo,zn.prototype.hasRedo=zn.prototype.canRedo,zn.prototype.isClean=zn.prototype.isAtBookmark,zn.prototype.markClean=zn.prototype.bookmark;function Kn(oi,ei){for(var fi=ei;fi--;){var gi=oi[fi];if(gi&&!gi[0].ignore){for(;fi<ei-1;){var yi=Ln(oi[fi],oi[fi+1]);oi[fi]=yi[0],oi[fi+1]=yi[1],fi++}return!0}}}var Qn=_n("./range").Range,Hn=Qn.comparePoints;Qn.comparePoints;function qn(oi){return{row:oi.row,column:oi.column}}function Nn(oi){return{start:qn(oi.start),end:qn(oi.end),action:oi.action,lines:oi.lines.slice()}}function Dn(oi){if(oi=oi||this,Array.isArray(oi))return oi.map(Dn).join(`
|
194
|
+
`);var ei="";return oi.action?(ei=oi.action=="insert"?"+":"-",ei+="["+oi.lines+"]"):oi.value&&(Array.isArray(oi.value)?ei=oi.value.map(In).join(`
|
195
|
+
`):ei=In(oi.value)),oi.start&&(ei+=In(oi)),(oi.id||oi.rev)&&(ei+=" ("+(oi.id||oi.rev)+")"),ei}function In(oi){return oi.start.row+":"+oi.start.column+"=>"+oi.end.row+":"+oi.end.column}function Bn(oi,ei){var fi=oi.action=="insert",gi=ei.action=="insert";if(fi&&gi)if(Hn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(Hn(ei.start,oi.start)<=0)Zn(oi,ei,1);else return null;else if(fi&&!gi)if(Hn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(Hn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else return null;else if(!fi&&gi)if(Hn(ei.start,oi.start)>=0)Zn(ei,oi,1);else if(Hn(ei.start,oi.start)<=0)Zn(oi,ei,1);else return null;else if(!fi&&!gi)if(Hn(ei.start,oi.start)>=0)Zn(ei,oi,1);else if(Hn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else return null;return[ei,oi]}function Ln(oi,ei){for(var fi=oi.length;fi--;)for(var gi=0;gi<ei.length;gi++)if(!Bn(oi[fi],ei[gi])){for(;fi<oi.length;){for(;gi--;)Bn(ei[gi],oi[fi]);gi=ei.length,fi++}return[oi,ei]}return oi.selectionBefore=ei.selectionBefore=oi.selectionAfter=ei.selectionAfter=null,[ei,oi]}function Pn(oi,ei){var fi=oi.action=="insert",gi=ei.action=="insert";if(fi&&gi)Hn(oi.start,ei.start)<0?Zn(ei,oi,1):Zn(oi,ei,1);else if(fi&&!gi)Hn(oi.start,ei.end)>=0?Zn(oi,ei,-1):(Hn(oi.start,ei.start)<=0||Zn(oi,Qn.fromPoints(ei.start,oi.start),-1),Zn(ei,oi,1));else if(!fi&&gi)Hn(ei.start,oi.end)>=0?Zn(ei,oi,-1):(Hn(ei.start,oi.start)<=0||Zn(ei,Qn.fromPoints(oi.start,ei.start),-1),Zn(oi,ei,1));else if(!fi&&!gi)if(Hn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(Hn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else{var yi,pi;return Hn(oi.start,ei.start)<0&&(yi=oi,oi=Xn(oi,ei.start)),Hn(oi.end,ei.end)>0&&(pi=Xn(oi,ei.end)),Jn(ei.end,oi.start,oi.end,-1),pi&&!yi&&(oi.lines=pi.lines,oi.start=pi.start,oi.end=pi.end,pi=oi),[ei,yi,pi].filter(Boolean)}return[ei,oi]}function Zn(oi,ei,fi){Jn(oi.start,ei.start,ei.end,fi),Jn(oi.end,ei.start,ei.end,fi)}function Jn(oi,ei,fi,gi){oi.row==(gi==1?ei:fi).row&&(oi.column+=gi*(fi.column-ei.column)),oi.row+=gi*(fi.row-ei.row)}function Xn(oi,ei){var fi=oi.lines,gi=oi.end;oi.end=qn(ei);var yi=oi.end.row-oi.start.row,pi=fi.splice(yi,fi.length),$i=yi?ei.column:ei.column-oi.start.column;fi.push(pi[0].substring(0,$i)),pi[0]=pi[0].substr($i);var si={start:qn(ei),end:gi,lines:pi,action:oi.action};return si}function mi(oi,ei){ei=Nn(ei);for(var fi=oi.length;fi--;){for(var gi=oi[fi],yi=0;yi<gi.length;yi++){var pi=gi[yi],$i=Pn(pi,ei);ei=$i[0],$i.length!=2&&($i[2]?(gi.splice(yi+1,1,$i[1],$i[2]),yi++):$i[1]||(gi.splice(yi,1),yi--))}gi.length||oi.splice(fi,1)}return oi}function li(oi,ei){for(var fi=0;fi<ei.length;fi++)for(var gi=ei[fi],yi=0;yi<gi.length;yi++)mi(oi,gi[yi])}kn.UndoManager=zn}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("../range").Range,Kn=function(){function Qn(Hn,qn){this.foldData=Hn,Array.isArray(qn)?this.folds=qn:qn=this.folds=[qn];var Nn=qn[qn.length-1];this.range=new zn(qn[0].start.row,qn[0].start.column,Nn.end.row,Nn.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(Dn){Dn.setFoldLine(this)},this)}return Qn.prototype.shiftRow=function(Hn){this.start.row+=Hn,this.end.row+=Hn,this.folds.forEach(function(qn){qn.start.row+=Hn,qn.end.row+=Hn})},Qn.prototype.addFold=function(Hn){if(Hn.sameRow){if(Hn.start.row<this.startRow||Hn.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(Hn),this.folds.sort(function(qn,Nn){return-qn.range.compareEnd(Nn.start.row,Nn.start.column)}),this.range.compareEnd(Hn.start.row,Hn.start.column)>0?(this.end.row=Hn.end.row,this.end.column=Hn.end.column):this.range.compareStart(Hn.end.row,Hn.end.column)<0&&(this.start.row=Hn.start.row,this.start.column=Hn.start.column)}else if(Hn.start.row==this.end.row)this.folds.push(Hn),this.end.row=Hn.end.row,this.end.column=Hn.end.column;else if(Hn.end.row==this.start.row)this.folds.unshift(Hn),this.start.row=Hn.start.row,this.start.column=Hn.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");Hn.foldLine=this},Qn.prototype.containsRow=function(Hn){return Hn>=this.start.row&&Hn<=this.end.row},Qn.prototype.walk=function(Hn,qn,Nn){var Dn=0,In=this.folds,Bn,Ln,Pn,Zn=!0;qn==null&&(qn=this.end.row,Nn=this.end.column);for(var Jn=0;Jn<In.length;Jn++){if(Bn=In[Jn],Ln=Bn.range.compareStart(qn,Nn),Ln==-1){Hn(null,qn,Nn,Dn,Zn);return}if(Pn=Hn(null,Bn.start.row,Bn.start.column,Dn,Zn),Pn=!Pn&&Hn(Bn.placeholder,Bn.start.row,Bn.start.column,Dn),Pn||Ln===0)return;Zn=!Bn.sameRow,Dn=Bn.end.column}Hn(null,qn,Nn,Dn,Zn)},Qn.prototype.getNextFoldTo=function(Hn,qn){for(var Nn,Dn,In=0;In<this.folds.length;In++){if(Nn=this.folds[In],Dn=Nn.range.compareEnd(Hn,qn),Dn==-1)return{fold:Nn,kind:"after"};if(Dn===0)return{fold:Nn,kind:"inside"}}return null},Qn.prototype.addRemoveChars=function(Hn,qn,Nn){var Dn=this.getNextFoldTo(Hn,qn),In,Bn;if(Dn){if(In=Dn.fold,Dn.kind=="inside"&&In.start.column!=qn&&In.start.row!=Hn)window.console&&window.console.log(Hn,qn,In);else if(In.start.row==Hn){Bn=this.folds;var Ln=Bn.indexOf(In);for(Ln===0&&(this.start.column+=Nn),Ln;Ln<Bn.length;Ln++){if(In=Bn[Ln],In.start.column+=Nn,!In.sameRow)return;In.end.column+=Nn}this.end.column+=Nn}}},Qn.prototype.split=function(Hn,qn){var Nn=this.getNextFoldTo(Hn,qn);if(!Nn||Nn.kind=="inside")return null;var Dn=Nn.fold,In=this.folds,Bn=this.foldData,Ln=In.indexOf(Dn),Pn=In[Ln-1];this.end.row=Pn.end.row,this.end.column=Pn.end.column,In=In.splice(Ln,In.length-Ln);var Zn=new Qn(Bn,In);return Bn.splice(Bn.indexOf(this)+1,0,Zn),Zn},Qn.prototype.merge=function(Hn){for(var qn=Hn.folds,Nn=0;Nn<qn.length;Nn++)this.addFold(qn[Nn]);var Dn=this.foldData;Dn.splice(Dn.indexOf(Hn),1)},Qn.prototype.toString=function(){var Hn=[this.range.toString()+": ["];return this.folds.forEach(function(qn){Hn.push(" "+qn.toString())}),Hn.push("]"),Hn.join(`
|
196
|
+
`)},Qn.prototype.idxToPosition=function(Hn){for(var qn=0,Nn=0;Nn<this.folds.length;Nn++){var Dn=this.folds[Nn];if(Hn-=Dn.start.column-qn,Hn<0)return{row:Dn.start.row,column:Dn.start.column+Hn};if(Hn-=Dn.placeholder.length,Hn<0)return Dn.start;qn=Dn.end.column}return{row:this.end.row,column:this.end.column+Hn}},Qn}();kn.FoldLine=Kn}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("./range").Range,Kn=zn.comparePoints,Qn=function(){function Hn(){this.ranges=[],this.$bias=1}return Hn.prototype.pointIndex=function(qn,Nn,Dn){for(var In=this.ranges,Bn=Dn||0;Bn<In.length;Bn++){var Ln=In[Bn],Pn=Kn(qn,Ln.end);if(!(Pn>0)){var Zn=Kn(qn,Ln.start);return Pn===0?Nn&&Zn!==0?-Bn-2:Bn:Zn>0||Zn===0&&!Nn?Bn:-Bn-1}}return-Bn-1},Hn.prototype.add=function(qn){var Nn=!qn.isEmpty(),Dn=this.pointIndex(qn.start,Nn);Dn<0&&(Dn=-Dn-1);var In=this.pointIndex(qn.end,Nn,Dn);return In<0?In=-In-1:In++,this.ranges.splice(Dn,In-Dn,qn)},Hn.prototype.addList=function(qn){for(var Nn=[],Dn=qn.length;Dn--;)Nn.push.apply(Nn,this.add(qn[Dn]));return Nn},Hn.prototype.substractPoint=function(qn){var Nn=this.pointIndex(qn);if(Nn>=0)return this.ranges.splice(Nn,1)},Hn.prototype.merge=function(){var qn=[],Nn=this.ranges;Nn=Nn.sort(function(Pn,Zn){return Kn(Pn.start,Zn.start)});for(var Dn=Nn[0],In,Bn=1;Bn<Nn.length;Bn++){In=Dn,Dn=Nn[Bn];var Ln=Kn(In.end,Dn.start);Ln<0||Ln==0&&!In.isEmpty()&&!Dn.isEmpty()||(Kn(In.end,Dn.end)<0&&(In.end.row=Dn.end.row,In.end.column=Dn.end.column),Nn.splice(Bn,1),qn.push(Dn),Dn=In,Bn--)}return this.ranges=Nn,qn},Hn.prototype.contains=function(qn,Nn){return this.pointIndex({row:qn,column:Nn})>=0},Hn.prototype.containsPoint=function(qn){return this.pointIndex(qn)>=0},Hn.prototype.rangeAtPoint=function(qn){var Nn=this.pointIndex(qn);if(Nn>=0)return this.ranges[Nn]},Hn.prototype.clipRows=function(qn,Nn){var Dn=this.ranges;if(Dn[0].start.row>Nn||Dn[Dn.length-1].start.row<qn)return[];var In=this.pointIndex({row:qn,column:0});In<0&&(In=-In-1);var Bn=this.pointIndex({row:Nn,column:0},In);Bn<0&&(Bn=-Bn-1);for(var Ln=[],Pn=In;Pn<Bn;Pn++)Ln.push(Dn[Pn]);return Ln},Hn.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},Hn.prototype.attach=function(qn){this.session&&this.detach(),this.session=qn,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},Hn.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},Hn.prototype.$onChange=function(qn){for(var Nn=qn.start,Dn=qn.end,In=Nn.row,Bn=Dn.row,Ln=this.ranges,Pn=0,Zn=Ln.length;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.end.row>=In)break}if(qn.action=="insert")for(var Xn=Bn-In,mi=-Nn.column+Dn.column;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.start.row>In)break;if(Jn.start.row==In&&Jn.start.column>=Nn.column&&(Jn.start.column==Nn.column&&this.$bias<=0||(Jn.start.column+=mi,Jn.start.row+=Xn)),Jn.end.row==In&&Jn.end.column>=Nn.column){if(Jn.end.column==Nn.column&&this.$bias<0)continue;Jn.end.column==Nn.column&&mi>0&&Pn<Zn-1&&Jn.end.column>Jn.start.column&&Jn.end.column==Ln[Pn+1].start.column&&(Jn.end.column-=mi),Jn.end.column+=mi,Jn.end.row+=Xn}}else for(var Xn=In-Bn,mi=Nn.column-Dn.column;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.start.row>Bn)break;Jn.end.row<Bn&&(In<Jn.end.row||In==Jn.end.row&&Nn.column<Jn.end.column)?(Jn.end.row=In,Jn.end.column=Nn.column):Jn.end.row==Bn?Jn.end.column<=Dn.column?(Xn||Jn.end.column>Nn.column)&&(Jn.end.column=Nn.column,Jn.end.row=Nn.row):(Jn.end.column+=mi,Jn.end.row+=Xn):Jn.end.row>Bn&&(Jn.end.row+=Xn),Jn.start.row<Bn&&(In<Jn.start.row||In==Jn.start.row&&Nn.column<Jn.start.column)?(Jn.start.row=In,Jn.start.column=Nn.column):Jn.start.row==Bn?Jn.start.column<=Dn.column?(Xn||Jn.start.column>Nn.column)&&(Jn.start.column=Nn.column,Jn.start.row=Nn.row):(Jn.start.column+=mi,Jn.start.row+=Xn):Jn.start.row>Bn&&(Jn.start.row+=Xn)}if(Xn!=0&&Pn<Zn)for(;Pn<Zn;Pn++){var Jn=Ln[Pn];Jn.start.row+=Xn,Jn.end.row+=Xn}},Hn}();Qn.prototype.comparePoints=Kn,kn.RangeList=Qn}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var In=function(Bn,Ln){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pn,Zn){Pn.__proto__=Zn}||function(Pn,Zn){for(var Jn in Zn)Object.prototype.hasOwnProperty.call(Zn,Jn)&&(Pn[Jn]=Zn[Jn])},In(Bn,Ln)};return function(Bn,Ln){if(typeof Ln!="function"&&Ln!==null)throw new TypeError("Class extends value "+String(Ln)+" is not a constructor or null");In(Bn,Ln);function Pn(){this.constructor=Bn}Bn.prototype=Ln===null?Object.create(Ln):(Pn.prototype=Ln.prototype,new Pn)}}(),Kn=_n("../range_list").RangeList,Qn=function(In){zn(Bn,In);function Bn(Ln,Pn){var Zn=In.call(this)||this;return Zn.foldLine=null,Zn.placeholder=Pn,Zn.range=Ln,Zn.start=Ln.start,Zn.end=Ln.end,Zn.sameRow=Ln.start.row==Ln.end.row,Zn.subFolds=Zn.ranges=[],Zn}return Bn.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},Bn.prototype.setFoldLine=function(Ln){this.foldLine=Ln,this.subFolds.forEach(function(Pn){Pn.setFoldLine(Ln)})},Bn.prototype.clone=function(){var Ln=this.range.clone(),Pn=new Bn(Ln,this.placeholder);return this.subFolds.forEach(function(Zn){Pn.subFolds.push(Zn.clone())}),Pn.collapseChildren=this.collapseChildren,Pn},Bn.prototype.addSubFold=function(Ln){if(!this.range.isEqual(Ln)){qn(Ln,this.start);for(var Pn=Ln.start.row,Zn=Ln.start.column,Jn=0,Xn=-1;Jn<this.subFolds.length&&(Xn=this.subFolds[Jn].range.compare(Pn,Zn),Xn==1);Jn++);var mi=this.subFolds[Jn],li=0;if(Xn==0){if(mi.range.containsRange(Ln))return mi.addSubFold(Ln);li=1}for(var Pn=Ln.range.end.row,Zn=Ln.range.end.column,oi=Jn,Xn=-1;oi<this.subFolds.length&&(Xn=this.subFolds[oi].range.compare(Pn,Zn),Xn==1);oi++);Xn==0&&oi++;for(var ei=this.subFolds.splice(Jn,oi-Jn,Ln),fi=Xn==0?ei.length-1:ei.length,gi=li;gi<fi;gi++)Ln.addSubFold(ei[gi]);return Ln.setFoldLine(this.foldLine),Ln}},Bn.prototype.restoreRange=function(Ln){return Dn(Ln,this.start)},Bn}(Kn);function Hn(In,Bn){In.row-=Bn.row,In.row==0&&(In.column-=Bn.column)}function qn(In,Bn){Hn(In.start,Bn),Hn(In.end,Bn)}function Nn(In,Bn){In.row==0&&(In.column+=Bn.column),In.row+=Bn.row}function Dn(In,Bn){Nn(In.start,Bn),Nn(In.end,Bn)}kn.Fold=Qn}),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(_n,kn,Wn){var zn=_n("../range").Range,Kn=_n("./fold_line").FoldLine,Qn=_n("./fold").Fold,Hn=_n("../token_iterator").TokenIterator,qn=_n("../mouse/mouse_event").MouseEvent;function Nn(){this.getFoldAt=function(Dn,In,Bn){var Ln=this.getFoldLine(Dn);if(!Ln)return null;for(var Pn=Ln.folds,Zn=0;Zn<Pn.length;Zn++){var Jn=Pn[Zn].range;if(Jn.contains(Dn,In)){if(Bn==1&&Jn.isEnd(Dn,In)&&!Jn.isEmpty()||Bn==-1&&Jn.isStart(Dn,In)&&!Jn.isEmpty())continue;return Pn[Zn]}}},this.getFoldsInRange=function(Dn){var In=Dn.start,Bn=Dn.end,Ln=this.$foldData,Pn=[];In.column+=1,Bn.column-=1;for(var Zn=0;Zn<Ln.length;Zn++){var Jn=Ln[Zn].range.compareRange(Dn);if(Jn!=2){if(Jn==-2)break;for(var Xn=Ln[Zn].folds,mi=0;mi<Xn.length;mi++){var li=Xn[mi];if(Jn=li.range.compareRange(Dn),Jn==-2)break;if(Jn!=2){if(Jn==42)break;Pn.push(li)}}}}return In.column-=1,Bn.column+=1,Pn},this.getFoldsInRangeList=function(Dn){if(Array.isArray(Dn)){var In=[];Dn.forEach(function(Ln){In=In.concat(this.getFoldsInRange(Ln))},this)}else var In=this.getFoldsInRange(Dn);return In},this.getAllFolds=function(){for(var Dn=[],In=this.$foldData,Bn=0;Bn<In.length;Bn++)for(var Ln=0;Ln<In[Bn].folds.length;Ln++)Dn.push(In[Bn].folds[Ln]);return Dn},this.getFoldStringAt=function(Dn,In,Bn,Ln){if(Ln=Ln||this.getFoldLine(Dn),!Ln)return null;for(var Pn={end:{column:0}},Zn,Jn,Xn=0;Xn<Ln.folds.length;Xn++){Jn=Ln.folds[Xn];var mi=Jn.range.compareEnd(Dn,In);if(mi==-1){Zn=this.getLine(Jn.start.row).substring(Pn.end.column,Jn.start.column);break}else if(mi===0)return null;Pn=Jn}return Zn||(Zn=this.getLine(Jn.start.row).substring(Pn.end.column)),Bn==-1?Zn.substring(0,In-Pn.end.column):Bn==1?Zn.substring(In-Pn.end.column):Zn},this.getFoldLine=function(Dn,In){var Bn=this.$foldData,Ln=0;for(In&&(Ln=Bn.indexOf(In)),Ln==-1&&(Ln=0),Ln;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(Pn.start.row<=Dn&&Pn.end.row>=Dn)return Pn;if(Pn.end.row>Dn)return null}return null},this.getNextFoldLine=function(Dn,In){var Bn=this.$foldData,Ln=0;for(In&&(Ln=Bn.indexOf(In)),Ln==-1&&(Ln=0),Ln;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(Pn.end.row>=Dn)return Pn}return null},this.getFoldedRowCount=function(Dn,In){for(var Bn=this.$foldData,Ln=In-Dn+1,Pn=0;Pn<Bn.length;Pn++){var Zn=Bn[Pn],Jn=Zn.end.row,Xn=Zn.start.row;if(Jn>=In){Xn<In&&(Xn>=Dn?Ln-=In-Xn:Ln=0);break}else Jn>=Dn&&(Xn>=Dn?Ln-=Jn-Xn:Ln-=Jn-Dn+1)}return Ln},this.$addFoldLine=function(Dn){return this.$foldData.push(Dn),this.$foldData.sort(function(In,Bn){return In.start.row-Bn.start.row}),Dn},this.addFold=function(Dn,In){var Bn=this.$foldData,Ln=!1,Pn;Dn instanceof Qn?Pn=Dn:(Pn=new Qn(In,Dn),Pn.collapseChildren=In.collapseChildren),this.$clipRangeToDocument(Pn.range);var Zn=Pn.start.row,Jn=Pn.start.column,Xn=Pn.end.row,mi=Pn.end.column,li=this.getFoldAt(Zn,Jn,1),oi=this.getFoldAt(Xn,mi,-1);if(li&&oi==li)return li.addSubFold(Pn);li&&!li.range.isStart(Zn,Jn)&&this.removeFold(li),oi&&!oi.range.isEnd(Xn,mi)&&this.removeFold(oi);var ei=this.getFoldsInRange(Pn.range);ei.length>0&&(this.removeFolds(ei),Pn.collapseChildren||ei.forEach(function(pi){Pn.addSubFold(pi)}));for(var fi=0;fi<Bn.length;fi++){var gi=Bn[fi];if(Xn==gi.start.row){gi.addFold(Pn),Ln=!0;break}else if(Zn==gi.end.row){if(gi.addFold(Pn),Ln=!0,!Pn.sameRow){var yi=Bn[fi+1];if(yi&&yi.start.row==Xn){gi.merge(yi);break}}break}else if(Xn<=gi.start.row)break}return Ln||(gi=this.$addFoldLine(new Kn(this.$foldData,Pn))),this.$useWrapMode?this.$updateWrapData(gi.start.row,gi.start.row):this.$updateRowLengthCache(gi.start.row,gi.start.row),this.$modified=!0,this._signal("changeFold",{data:Pn,action:"add"}),Pn},this.addFolds=function(Dn){Dn.forEach(function(In){this.addFold(In)},this)},this.removeFold=function(Dn){var In=Dn.foldLine,Bn=In.start.row,Ln=In.end.row,Pn=this.$foldData,Zn=In.folds;if(Zn.length==1)Pn.splice(Pn.indexOf(In),1);else if(In.range.isEnd(Dn.end.row,Dn.end.column))Zn.pop(),In.end.row=Zn[Zn.length-1].end.row,In.end.column=Zn[Zn.length-1].end.column;else if(In.range.isStart(Dn.start.row,Dn.start.column))Zn.shift(),In.start.row=Zn[0].start.row,In.start.column=Zn[0].start.column;else if(Dn.sameRow)Zn.splice(Zn.indexOf(Dn),1);else{var Jn=In.split(Dn.start.row,Dn.start.column);Zn=Jn.folds,Zn.shift(),Jn.start.row=Zn[0].start.row,Jn.start.column=Zn[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(Bn,Ln):this.$updateRowLengthCache(Bn,Ln)),this.$modified=!0,this._signal("changeFold",{data:Dn,action:"remove"})},this.removeFolds=function(Dn){for(var In=[],Bn=0;Bn<Dn.length;Bn++)In.push(Dn[Bn]);In.forEach(function(Ln){this.removeFold(Ln)},this),this.$modified=!0},this.expandFold=function(Dn){this.removeFold(Dn),Dn.subFolds.forEach(function(In){Dn.restoreRange(In),this.addFold(In)},this),Dn.collapseChildren>0&&this.foldAll(Dn.start.row+1,Dn.end.row,Dn.collapseChildren-1),Dn.subFolds=[]},this.expandFolds=function(Dn){Dn.forEach(function(In){this.expandFold(In)},this)},this.unfold=function(Dn,In){var Bn,Ln;if(Dn==null)Bn=new zn(0,0,this.getLength(),0),In==null&&(In=!0);else if(typeof Dn=="number")Bn=new zn(Dn,0,Dn,this.getLine(Dn).length);else if("row"in Dn)Bn=zn.fromPoints(Dn,Dn);else{if(Array.isArray(Dn))return Ln=[],Dn.forEach(function(Zn){Ln=Ln.concat(this.unfold(Zn))},this),Ln;Bn=Dn}Ln=this.getFoldsInRangeList(Bn);for(var Pn=Ln;Ln.length==1&&zn.comparePoints(Ln[0].start,Bn.start)<0&&zn.comparePoints(Ln[0].end,Bn.end)>0;)this.expandFolds(Ln),Ln=this.getFoldsInRangeList(Bn);if(In!=!1?this.removeFolds(Ln):this.expandFolds(Ln),Pn.length)return Pn},this.isRowFolded=function(Dn,In){return!!this.getFoldLine(Dn,In)},this.getRowFoldEnd=function(Dn,In){var Bn=this.getFoldLine(Dn,In);return Bn?Bn.end.row:Dn},this.getRowFoldStart=function(Dn,In){var Bn=this.getFoldLine(Dn,In);return Bn?Bn.start.row:Dn},this.getFoldDisplayLine=function(Dn,In,Bn,Ln,Pn){Ln==null&&(Ln=Dn.start.row),Pn==null&&(Pn=0),In==null&&(In=Dn.end.row),Bn==null&&(Bn=this.getLine(In).length);var Zn=this.doc,Jn="";return Dn.walk(function(Xn,mi,li,oi){if(!(mi<Ln)){if(mi==Ln){if(li<Pn)return;oi=Math.max(Pn,oi)}Xn!=null?Jn+=Xn:Jn+=Zn.getLine(mi).substring(oi,li)}},In,Bn),Jn},this.getDisplayLine=function(Dn,In,Bn,Ln){var Pn=this.getFoldLine(Dn);if(Pn)return this.getFoldDisplayLine(Pn,Dn,In,Bn,Ln);var Zn;return Zn=this.doc.getLine(Dn),Zn.substring(Ln||0,In||Zn.length)},this.$cloneFoldData=function(){var Dn=[];return Dn=this.$foldData.map(function(In){var Bn=In.folds.map(function(Ln){return Ln.clone()});return new Kn(Dn,Bn)}),Dn},this.toggleFold=function(Dn){var In=this.selection,Bn=In.getRange(),Ln,Pn;if(Bn.isEmpty()){var Zn=Bn.start;if(Ln=this.getFoldAt(Zn.row,Zn.column),Ln){this.expandFold(Ln);return}else(Pn=this.findMatchingBracket(Zn))?Bn.comparePoint(Pn)==1?Bn.end=Pn:(Bn.start=Pn,Bn.start.column++,Bn.end.column--):(Pn=this.findMatchingBracket({row:Zn.row,column:Zn.column+1}))?(Bn.comparePoint(Pn)==1?Bn.end=Pn:Bn.start=Pn,Bn.start.column++):Bn=this.getCommentFoldRange(Zn.row,Zn.column)||Bn}else{var Jn=this.getFoldsInRange(Bn);if(Dn&&Jn.length){this.expandFolds(Jn);return}else Jn.length==1&&(Ln=Jn[0])}if(Ln||(Ln=this.getFoldAt(Bn.start.row,Bn.start.column)),Ln&&Ln.range.toString()==Bn.toString()){this.expandFold(Ln);return}var Xn="...";if(!Bn.isMultiLine()){if(Xn=this.getTextRange(Bn),Xn.length<4)return;Xn=Xn.trim().substring(0,2)+".."}this.addFold(Xn,Bn)},this.getCommentFoldRange=function(Dn,In,Bn){var Ln=new Hn(this,Dn,In),Pn=Ln.getCurrentToken(),Zn=Pn&&Pn.type;if(Pn&&/^comment|string/.test(Zn)){Zn=Zn.match(/comment|string/)[0],Zn=="comment"&&(Zn+="|doc-start|\\.doc");var Jn=new RegExp(Zn),Xn=new zn;if(Bn!=1){do Pn=Ln.stepBackward();while(Pn&&Jn.test(Pn.type));Pn=Ln.stepForward()}Xn.start.row=Ln.getCurrentTokenRow(),Xn.start.column=Ln.getCurrentTokenColumn()+Pn.value.length,Ln=new Hn(this,Dn,In);var mi=this.getState(Ln.$row);if(Bn!=-1){var li=-1;do if(Pn=Ln.stepForward(),li==-1){var oi=this.getState(Ln.$row);mi.toString()!==oi.toString()&&(li=Ln.$row)}else if(Ln.$row>li)break;while(Pn&&Jn.test(Pn.type));Pn=Ln.stepBackward()}else Pn=Ln.getCurrentToken();return Xn.end.row=Ln.getCurrentTokenRow(),Xn.end.column=Ln.getCurrentTokenColumn(),Xn}},this.foldAll=function(Dn,In,Bn,Ln){Bn==null&&(Bn=1e5);var Pn=this.foldWidgets;if(Pn){In=In||this.getLength(),Dn=Dn||0;for(var Zn=Dn;Zn<In;Zn++)if(Pn[Zn]==null&&(Pn[Zn]=this.getFoldWidget(Zn)),Pn[Zn]=="start"&&!(Ln&&!Ln(Zn))){var Jn=this.getFoldWidgetRange(Zn);Jn&&Jn.isMultiLine()&&Jn.end.row<=In&&Jn.start.row>=Dn&&(Zn=Jn.end.row,Jn.collapseChildren=Bn,this.addFold("...",Jn))}}},this.foldToLevel=function(Dn){for(this.foldAll();Dn-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var Dn=this;this.foldAll(null,null,null,function(In){for(var Bn=Dn.getTokens(In),Ln=0;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(!(Pn.type=="text"&&/^\s+$/.test(Pn.value)))return!!/comment/.test(Pn.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(Dn){if(!this.$foldStyles[Dn])throw new Error("invalid fold style: "+Dn+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=Dn){this.$foldStyle=Dn,Dn=="manual"&&this.unfold();var In=this.$foldMode;this.$setFolding(null),this.$setFolding(In)}},this.$setFolding=function(Dn){if(this.$foldMode!=Dn){if(this.$foldMode=Dn,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!Dn||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=Dn.getFoldWidget.bind(Dn,this,this.$foldStyle),this.getFoldWidgetRange=Dn.getFoldWidgetRange.bind(Dn,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(Dn,In){var Bn=this.foldWidgets;if(!Bn||In&&Bn[Dn])return{};for(var Ln=Dn-1,Pn;Ln>=0;){var Zn=Bn[Ln];if(Zn==null&&(Zn=Bn[Ln]=this.getFoldWidget(Ln)),Zn=="start"){var Jn=this.getFoldWidgetRange(Ln);if(Pn||(Pn=Jn),Jn&&Jn.end.row>=Dn)break}Ln--}return{range:Ln!==-1&&Jn,firstRange:Pn}},this.onFoldWidgetClick=function(Dn,In){In instanceof qn&&(In=In.domEvent);var Bn={children:In.shiftKey,all:In.ctrlKey||In.metaKey,siblings:In.altKey},Ln=this.$toggleFoldWidget(Dn,Bn);if(!Ln){var Pn=In.target||In.srcElement;Pn&&/ace_fold-widget/.test(Pn.className)&&(Pn.className+=" ace_invalid")}},this.$toggleFoldWidget=function(Dn,In){if(this.getFoldWidget){var Bn=this.getFoldWidget(Dn),Ln=this.getLine(Dn),Pn=Bn==="end"?-1:1,Zn=this.getFoldAt(Dn,Pn===-1?0:Ln.length,Pn);if(Zn)return In.children||In.all?this.removeFold(Zn):this.expandFold(Zn),Zn;var Jn=this.getFoldWidgetRange(Dn,!0);if(Jn&&!Jn.isMultiLine()&&(Zn=this.getFoldAt(Jn.start.row,Jn.start.column,1),Zn&&Jn.isEqual(Zn.range)))return this.removeFold(Zn),Zn;if(In.siblings){var Xn=this.getParentFoldRangeData(Dn);if(Xn.range)var mi=Xn.range.start.row+1,li=Xn.range.end.row;this.foldAll(mi,li,In.all?1e4:0)}else In.children?(li=Jn?Jn.end.row:this.getLength(),this.foldAll(Dn+1,li,In.all?1e4:0)):Jn&&(In.all&&(Jn.collapseChildren=1e4),this.addFold("...",Jn));return Jn}},this.toggleFoldWidget=function(Dn){var In=this.selection.getCursor().row;In=this.getRowFoldStart(In);var Bn=this.$toggleFoldWidget(In,{});if(!Bn){var Ln=this.getParentFoldRangeData(In,!0);if(Bn=Ln.range||Ln.firstRange,Bn){In=Bn.start.row;var Pn=this.getFoldAt(In,this.getLine(In).length,1);Pn?this.removeFold(Pn):this.addFold("...",Bn)}}},this.updateFoldWidgets=function(Dn){var In=Dn.start.row,Bn=Dn.end.row-In;if(Bn===0)this.foldWidgets[In]=null;else if(Dn.action=="remove")this.foldWidgets.splice(In,Bn+1,null);else{var Ln=Array(Bn+1);Ln.unshift(In,1),this.foldWidgets.splice.apply(this.foldWidgets,Ln)}},this.tokenizerUpdateFoldWidgets=function(Dn){var In=Dn.data;In.first!=In.last&&this.foldWidgets.length>In.first&&this.foldWidgets.splice(In.first,this.foldWidgets.length)}}kn.Folding=Nn}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(_n,kn,Wn){var zn=_n("../token_iterator").TokenIterator,Kn=_n("../range").Range;function Qn(){this.findMatchingBracket=function(Hn,qn){if(Hn.column==0)return null;var Nn=qn||this.getLine(Hn.row).charAt(Hn.column-1);if(Nn=="")return null;var Dn=Nn.match(/([\(\[\{])|([\)\]\}])/);return Dn?Dn[1]?this.$findClosingBracket(Dn[1],Hn):this.$findOpeningBracket(Dn[2],Hn):null},this.getBracketRange=function(Hn){var qn=this.getLine(Hn.row),Nn=!0,Dn,In=qn.charAt(Hn.column-1),Bn=In&&In.match(/([\(\[\{])|([\)\]\}])/);if(Bn||(In=qn.charAt(Hn.column),Hn={row:Hn.row,column:Hn.column+1},Bn=In&&In.match(/([\(\[\{])|([\)\]\}])/),Nn=!1),!Bn)return null;if(Bn[1]){var Ln=this.$findClosingBracket(Bn[1],Hn);if(!Ln)return null;Dn=Kn.fromPoints(Hn,Ln),Nn||(Dn.end.column++,Dn.start.column--),Dn.cursor=Dn.end}else{var Ln=this.$findOpeningBracket(Bn[2],Hn);if(!Ln)return null;Dn=Kn.fromPoints(Ln,Hn),Nn||(Dn.start.column++,Dn.end.column--),Dn.cursor=Dn.start}return Dn},this.getMatchingBracketRanges=function(Hn,qn){var Nn=this.getLine(Hn.row),Dn=/([\(\[\{])|([\)\]\}])/,In=!qn&&Nn.charAt(Hn.column-1),Bn=In&&In.match(Dn);if(Bn||(In=(qn===void 0||qn)&&Nn.charAt(Hn.column),Hn={row:Hn.row,column:Hn.column+1},Bn=In&&In.match(Dn)),!Bn)return null;var Ln=new Kn(Hn.row,Hn.column-1,Hn.row,Hn.column),Pn=Bn[1]?this.$findClosingBracket(Bn[1],Hn):this.$findOpeningBracket(Bn[2],Hn);if(!Pn)return[Ln];var Zn=new Kn(Pn.row,Pn.column,Pn.row,Pn.column+1);return[Ln,Zn]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(Hn,qn,Nn){var Dn=this.$brackets[Hn],In=1,Bn=new zn(this,qn.row,qn.column),Ln=Bn.getCurrentToken();if(Ln||(Ln=Bn.stepForward()),!!Ln){Nn||(Nn=new RegExp("(\\.?"+Ln.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var Pn=qn.column-Bn.getCurrentTokenColumn()-2,Zn=Ln.value;;){for(;Pn>=0;){var Jn=Zn.charAt(Pn);if(Jn==Dn){if(In-=1,In==0)return{row:Bn.getCurrentTokenRow(),column:Pn+Bn.getCurrentTokenColumn()}}else Jn==Hn&&(In+=1);Pn-=1}do Ln=Bn.stepBackward();while(Ln&&!Nn.test(Ln.type));if(Ln==null)break;Zn=Ln.value,Pn=Zn.length-1}return null}},this.$findClosingBracket=function(Hn,qn,Nn){var Dn=this.$brackets[Hn],In=1,Bn=new zn(this,qn.row,qn.column),Ln=Bn.getCurrentToken();if(Ln||(Ln=Bn.stepForward()),!!Ln){Nn||(Nn=new RegExp("(\\.?"+Ln.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var Pn=qn.column-Bn.getCurrentTokenColumn();;){for(var Zn=Ln.value,Jn=Zn.length;Pn<Jn;){var Xn=Zn.charAt(Pn);if(Xn==Dn){if(In-=1,In==0)return{row:Bn.getCurrentTokenRow(),column:Pn+Bn.getCurrentTokenColumn()}}else Xn==Hn&&(In+=1);Pn+=1}do Ln=Bn.stepForward();while(Ln&&!Nn.test(Ln.type));if(Ln==null)break;Pn=0}return null}},this.getMatchingTags=function(Hn){var qn=new zn(this,Hn.row,Hn.column),Nn=this.$findTagName(qn);if(Nn){var Dn=qn.stepBackward();return Dn.value==="<"?this.$findClosingTag(qn,Nn):this.$findOpeningTag(qn,Nn)}},this.$findTagName=function(Hn){var qn=Hn.getCurrentToken(),Nn=!1,Dn=!1;if(qn&&qn.type.indexOf("tag-name")===-1)do Dn?qn=Hn.stepBackward():qn=Hn.stepForward(),qn&&(qn.value==="/>"?Dn=!0:qn.type.indexOf("tag-name")!==-1&&(Nn=!0));while(qn&&!Nn);return qn},this.$findClosingTag=function(Hn,qn){var Nn,Dn=qn.value,In=qn.value,Bn=0,Ln=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);qn=Hn.stepForward();var Pn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length),Zn=!1;do{if(Nn=qn,Nn.type.indexOf("tag-close")!==-1&&!Zn){var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Zn=!0}if(qn=Hn.stepForward(),qn){if(qn.value===">"&&!Zn){var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Zn=!0}if(qn.type.indexOf("tag-name")!==-1){if(Dn=qn.value,In===Dn){if(Nn.value==="<")Bn++;else if(Nn.value==="</"&&(Bn--,Bn<0)){Hn.stepBackward();var Xn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+2);qn=Hn.stepForward();var mi=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length);if(qn.type.indexOf("tag-close")===-1&&(qn=Hn.stepForward()),qn&&qn.value===">")var li=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);else return}}}else if(In===Dn&&qn.value==="/>"&&(Bn--,Bn<0))var Xn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+2),mi=Xn,li=mi,Jn=new Kn(Pn.end.row,Pn.end.column,Pn.end.row,Pn.end.column+1)}}while(qn&&Bn>=0);if(Ln&&Jn&&Xn&&li&&Pn&&mi)return{openTag:new Kn(Ln.start.row,Ln.start.column,Jn.end.row,Jn.end.column),closeTag:new Kn(Xn.start.row,Xn.start.column,li.end.row,li.end.column),openTagName:Pn,closeTagName:mi}},this.$findOpeningTag=function(Hn,qn){var Nn=Hn.getCurrentToken(),Dn=qn.value,In=0,Bn=Hn.getCurrentTokenRow(),Ln=Hn.getCurrentTokenColumn(),Pn=Ln+2,Zn=new Kn(Bn,Ln,Bn,Pn);Hn.stepForward();var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length);if(qn.type.indexOf("tag-close")===-1&&(qn=Hn.stepForward()),!(!qn||qn.value!==">")){var Xn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Hn.stepBackward(),Hn.stepBackward();do if(qn=Nn,Bn=Hn.getCurrentTokenRow(),Ln=Hn.getCurrentTokenColumn(),Pn=Ln+qn.value.length,Nn=Hn.stepBackward(),qn){if(qn.type.indexOf("tag-name")!==-1){if(Dn===qn.value)if(Nn.value==="<"){if(In++,In>0){var mi=new Kn(Bn,Ln,Bn,Pn),li=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);do qn=Hn.stepForward();while(qn&&qn.value!==">");var oi=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1)}}else Nn.value==="</"&&In--}else if(qn.value==="/>"){for(var ei=0,fi=Nn;fi;){if(fi.type.indexOf("tag-name")!==-1&&fi.value===Dn){In--;break}else if(fi.value==="<")break;fi=Hn.stepBackward(),ei++}for(var gi=0;gi<ei;gi++)Hn.stepForward()}}while(Nn&&In<=0);if(li&&oi&&Zn&&Xn&&mi&&Jn)return{openTag:new Kn(li.start.row,li.start.column,oi.end.row,oi.end.column),closeTag:new Kn(Zn.start.row,Zn.start.column,Xn.end.row,Xn.end.column),openTagName:mi,closeTagName:Jn}}}}kn.BracketMatch=Qn}),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(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./lib/lang"),Qn=_n("./bidihandler").BidiHandler,Hn=_n("./config"),qn=_n("./lib/event_emitter").EventEmitter,Nn=_n("./selection").Selection,Dn=_n("./mode/text").Mode,In=_n("./range").Range,Bn=_n("./line_widgets").LineWidgets,Ln=_n("./document").Document,Pn=_n("./background_tokenizer").BackgroundTokenizer,Zn=_n("./search_highlight").SearchHighlight,Jn=_n("./undomanager").UndoManager,Xn=function(){function si(ti,ai){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"+ ++si.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new Pn(new Dn().getTokenizer(),this);var vi=this;this.bgTokenizer.on("update",function(wi){vi._signal("tokenizerUpdate",wi)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof ti!="object"||!ti.getLine)&&(ti=new Ln(ti)),this.setDocument(ti),this.selection=new Nn(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new Qn(this),Hn.resetOptions(this),this.setMode(ai),Hn._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return si.prototype.$initOperationListeners=function(){var ti=this;this.curOp=null,this.on("change",function(){ti.curOp||(ti.startOperation(),ti.curOp.selectionBefore=ti.$lastSel),ti.curOp.docChanged=!0},!0),this.on("changeSelection",function(){ti.curOp||(ti.startOperation(),ti.curOp.selectionBefore=ti.$lastSel),ti.curOp.selectionChanged=!0},!0),this.$operationResetTimer=Kn.delayedCall(this.endOperation.bind(this,!0))},si.prototype.startOperation=function(ti){if(this.curOp){if(!ti||this.curOp.command)return;this.prevOp=this.curOp}ti||(ti={}),this.$operationResetTimer.schedule(),this.curOp={command:ti.command||{},args:ti.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",ti)},si.prototype.endOperation=function(ti){if(this.curOp){if(ti&&ti.returnValue===!1){this.curOp=null,this._signal("endOperation",ti);return}if(ti==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var ai=this.selection.toJSON();this.curOp.selectionAfter=ai,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(ai),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",ti)}},si.prototype.setDocument=function(ti){this.doc&&this.doc.off("change",this.$onChange),this.doc=ti,ti.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},si.prototype.getDocument=function(){return this.doc},Object.defineProperty(si.prototype,"widgetManager",{get:function(){var ti=new Bn(this);return this.widgetManager=ti,this.$editor&&ti.attach(this.$editor),ti},set:function(ti){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:ti})},enumerable:!1,configurable:!0}),si.prototype.$resetRowCache=function(ti){if(!ti){this.$docRowCache=[],this.$screenRowCache=[];return}var ai=this.$docRowCache.length,vi=this.$getRowCacheIndex(this.$docRowCache,ti)+1;ai>vi&&(this.$docRowCache.splice(vi,ai),this.$screenRowCache.splice(vi,ai))},si.prototype.$getRowCacheIndex=function(ti,ai){for(var vi=0,wi=ti.length-1;vi<=wi;){var xi=vi+wi>>1,Si=ti[xi];if(ai>Si)vi=xi+1;else if(ai<Si)wi=xi-1;else return xi}return vi-1},si.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},si.prototype.onChangeFold=function(ti){var ai=ti.data;this.$resetRowCache(ai.start.row)},si.prototype.onChange=function(ti){this.$modified=!0,this.$bidiHandler.onChange(ti),this.$resetRowCache(ti.start.row);var ai=this.$updateInternalDataOnChange(ti);!this.$fromUndo&&this.$undoManager&&(ai&&ai.length&&(this.$undoManager.add({action:"removeFolds",folds:ai},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(ti,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(ti),this._signal("change",ti)},si.prototype.onSelectionChange=function(){this._signal("changeSelection")},si.prototype.setValue=function(ti){this.doc.setValue(ti),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},si.fromJSON=function(ti){typeof ti=="string"&&(ti=JSON.parse(ti));var ai=new Jn;ai.$undoStack=ti.history.undo,ai.$redoStack=ti.history.redo,ai.mark=ti.history.mark,ai.$rev=ti.history.rev;var vi=new si(ti.value);return ti.folds.forEach(function(wi){vi.addFold("...",In.fromPoints(wi.start,wi.end))}),vi.setAnnotations(ti.annotations),vi.setBreakpoints(ti.breakpoints),vi.setMode(ti.mode),vi.setScrollLeft(ti.scrollLeft),vi.setScrollTop(ti.scrollTop),vi.setUndoManager(ai),vi.selection.fromJSON(ti.selection),vi},si.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(ti){return ti.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},si.prototype.toString=function(){return this.doc.getValue()},si.prototype.getSelection=function(){return this.selection},si.prototype.getState=function(ti){return this.bgTokenizer.getState(ti)},si.prototype.getTokens=function(ti){return this.bgTokenizer.getTokens(ti)},si.prototype.getTokenAt=function(ti,ai){var vi=this.bgTokenizer.getTokens(ti),wi,xi=0;if(ai==null){var Si=vi.length-1;xi=this.getLine(ti).length}else for(var Si=0;Si<vi.length&&(xi+=vi[Si].value.length,!(xi>=ai));Si++);return wi=vi[Si],wi?(wi.index=Si,wi.start=xi-wi.value.length,wi):null},si.prototype.setUndoManager=function(ti){if(this.$undoManager=ti,this.$informUndoManager&&this.$informUndoManager.cancel(),ti){var ai=this;ti.addSession(this),this.$syncInformUndoManager=function(){ai.$informUndoManager.cancel(),ai.mergeUndoDeltas=!1},this.$informUndoManager=Kn.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},si.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},si.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},si.prototype.getTabString=function(){return this.getUseSoftTabs()?Kn.stringRepeat(" ",this.getTabSize()):" "},si.prototype.setUseSoftTabs=function(ti){this.setOption("useSoftTabs",ti)},si.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},si.prototype.setTabSize=function(ti){this.setOption("tabSize",ti)},si.prototype.getTabSize=function(){return this.$tabSize},si.prototype.isTabStop=function(ti){return this.$useSoftTabs&&ti.column%this.$tabSize===0},si.prototype.setNavigateWithinSoftTabs=function(ti){this.setOption("navigateWithinSoftTabs",ti)},si.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},si.prototype.setOverwrite=function(ti){this.setOption("overwrite",ti)},si.prototype.getOverwrite=function(){return this.$overwrite},si.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},si.prototype.addGutterDecoration=function(ti,ai){this.$decorations[ti]||(this.$decorations[ti]=""),this.$decorations[ti]+=" "+ai,this._signal("changeBreakpoint",{})},si.prototype.removeGutterDecoration=function(ti,ai){this.$decorations[ti]=(this.$decorations[ti]||"").replace(" "+ai,""),this._signal("changeBreakpoint",{})},si.prototype.getBreakpoints=function(){return this.$breakpoints},si.prototype.setBreakpoints=function(ti){this.$breakpoints=[];for(var ai=0;ai<ti.length;ai++)this.$breakpoints[ti[ai]]="ace_breakpoint";this._signal("changeBreakpoint",{})},si.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},si.prototype.setBreakpoint=function(ti,ai){ai===void 0&&(ai="ace_breakpoint"),ai?this.$breakpoints[ti]=ai:delete this.$breakpoints[ti],this._signal("changeBreakpoint",{})},si.prototype.clearBreakpoint=function(ti){delete this.$breakpoints[ti],this._signal("changeBreakpoint",{})},si.prototype.addMarker=function(ti,ai,vi,wi){var xi=this.$markerId++,Si={range:ti,type:vi||"line",renderer:typeof vi=="function"?vi:null,clazz:ai,inFront:!!wi,id:xi};return wi?(this.$frontMarkers[xi]=Si,this._signal("changeFrontMarker")):(this.$backMarkers[xi]=Si,this._signal("changeBackMarker")),xi},si.prototype.addDynamicMarker=function(ti,ai){if(ti.update){var vi=this.$markerId++;return ti.id=vi,ti.inFront=!!ai,ai?(this.$frontMarkers[vi]=ti,this._signal("changeFrontMarker")):(this.$backMarkers[vi]=ti,this._signal("changeBackMarker")),ti}},si.prototype.removeMarker=function(ti){var ai=this.$frontMarkers[ti]||this.$backMarkers[ti];if(ai){var vi=ai.inFront?this.$frontMarkers:this.$backMarkers;delete vi[ti],this._signal(ai.inFront?"changeFrontMarker":"changeBackMarker")}},si.prototype.getMarkers=function(ti){return ti?this.$frontMarkers:this.$backMarkers},si.prototype.highlight=function(ti){if(!this.$searchHighlight){var ai=new Zn(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(ai)}this.$searchHighlight.setRegexp(ti)},si.prototype.highlightLines=function(ti,ai,vi,wi){typeof ai!="number"&&(vi=ai,ai=ti),vi||(vi="ace_step");var xi=new In(ti,0,ai,1/0);return xi.id=this.addMarker(xi,vi,"fullLine",wi),xi},si.prototype.setAnnotations=function(ti){this.$annotations=ti,this._signal("changeAnnotation",{})},si.prototype.getAnnotations=function(){return this.$annotations||[]},si.prototype.clearAnnotations=function(){this.setAnnotations([])},si.prototype.$detectNewLine=function(ti){var ai=ti.match(/^.*?(\r?\n)/m);ai?this.$autoNewLine=ai[1]:this.$autoNewLine=`
|
198
|
+
`},si.prototype.getWordRange=function(ti,ai){var vi=this.getLine(ti),wi=!1;if(ai>0&&(wi=!!vi.charAt(ai-1).match(this.tokenRe)),wi||(wi=!!vi.charAt(ai).match(this.tokenRe)),wi)var xi=this.tokenRe;else if(/^\s+$/.test(vi.slice(ai-1,ai+1)))var xi=/\s/;else var xi=this.nonTokenRe;var Si=ai;if(Si>0){do Si--;while(Si>=0&&vi.charAt(Si).match(xi));Si++}for(var Ei=ai;Ei<vi.length&&vi.charAt(Ei).match(xi);)Ei++;return new In(ti,Si,ti,Ei)},si.prototype.getAWordRange=function(ti,ai){for(var vi=this.getWordRange(ti,ai),wi=this.getLine(vi.end.row);wi.charAt(vi.end.column).match(/[ \t]/);)vi.end.column+=1;return vi},si.prototype.setNewLineMode=function(ti){this.doc.setNewLineMode(ti)},si.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},si.prototype.setUseWorker=function(ti){this.setOption("useWorker",ti)},si.prototype.getUseWorker=function(){return this.$useWorker},si.prototype.onReloadTokenizer=function(ti){var ai=ti.data;this.bgTokenizer.start(ai.first),this._signal("tokenizerUpdate",ti)},si.prototype.setMode=function(ti,ai){if(ti&&typeof ti=="object"){if(ti.getTokenizer)return this.$onChangeMode(ti);var vi=ti,wi=vi.path}else wi=ti||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new Dn),this.$modes[wi]&&!vi){this.$onChangeMode(this.$modes[wi]),ai&&ai();return}this.$modeId=wi,Hn.loadModule(["mode",wi],(function(xi){if(this.$modeId!==wi)return ai&&ai();this.$modes[wi]&&!vi?this.$onChangeMode(this.$modes[wi]):xi&&xi.Mode&&(xi=new xi.Mode(vi),vi||(this.$modes[wi]=xi,xi.$id=wi),this.$onChangeMode(xi)),ai&&ai()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},si.prototype.$onChangeMode=function(ti,ai){if(ai||(this.$modeId=ti.$id),this.$mode!==ti){var vi=this.$mode;this.$mode=ti,this.$stopWorker(),this.$useWorker&&this.$startWorker();var wi=ti.getTokenizer();if(wi.on!==void 0){var xi=this.onReloadTokenizer.bind(this);wi.on("update",xi)}this.bgTokenizer.setTokenizer(wi),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=ti.tokenRe,this.nonTokenRe=ti.nonTokenRe,ai||(ti.attachToSession&&ti.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(ti.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:vi,mode:ti}))}},si.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},si.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(ti){Hn.warn("Could not load worker",ti),this.$worker=null}},si.prototype.getMode=function(){return this.$mode},si.prototype.setScrollTop=function(ti){this.$scrollTop===ti||isNaN(ti)||(this.$scrollTop=ti,this._signal("changeScrollTop",ti))},si.prototype.getScrollTop=function(){return this.$scrollTop},si.prototype.setScrollLeft=function(ti){this.$scrollLeft===ti||isNaN(ti)||(this.$scrollLeft=ti,this._signal("changeScrollLeft",ti))},si.prototype.getScrollLeft=function(){return this.$scrollLeft},si.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},si.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var ti=0;return this.lineWidgets.forEach(function(ai){ai&&ai.screenWidth>ti&&(ti=ai.screenWidth)}),this.lineWidgetWidth=ti},si.prototype.$computeWidth=function(ti){if(this.$modified||ti){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var ai=this.doc.getAllLines(),vi=this.$rowLengthCache,wi=0,xi=0,Si=this.$foldData[xi],Ei=Si?Si.start.row:1/0,Ni=ai.length,Ri=0;Ri<Ni;Ri++){if(Ri>Ei){if(Ri=Si.end.row+1,Ri>=Ni)break;Si=this.$foldData[xi++],Ei=Si?Si.start.row:1/0}vi[Ri]==null&&(vi[Ri]=this.$getStringScreenWidth(ai[Ri])[0]),vi[Ri]>wi&&(wi=vi[Ri])}this.screenWidth=wi}},si.prototype.getLine=function(ti){return this.doc.getLine(ti)},si.prototype.getLines=function(ti,ai){return this.doc.getLines(ti,ai)},si.prototype.getLength=function(){return this.doc.getLength()},si.prototype.getTextRange=function(ti){return this.doc.getTextRange(ti||this.selection.getRange())},si.prototype.insert=function(ti,ai){return this.doc.insert(ti,ai)},si.prototype.remove=function(ti){return this.doc.remove(ti)},si.prototype.removeFullLines=function(ti,ai){return this.doc.removeFullLines(ti,ai)},si.prototype.undoChanges=function(ti,ai){if(ti.length){this.$fromUndo=!0;for(var vi=ti.length-1;vi!=-1;vi--){var wi=ti[vi];wi.action=="insert"||wi.action=="remove"?this.doc.revertDelta(wi):wi.folds&&this.addFolds(wi.folds)}!ai&&this.$undoSelect&&(ti.selectionBefore?this.selection.fromJSON(ti.selectionBefore):this.selection.setRange(this.$getUndoSelection(ti,!0))),this.$fromUndo=!1}},si.prototype.redoChanges=function(ti,ai){if(ti.length){this.$fromUndo=!0;for(var vi=0;vi<ti.length;vi++){var wi=ti[vi];(wi.action=="insert"||wi.action=="remove")&&this.doc.$safeApplyDelta(wi)}!ai&&this.$undoSelect&&(ti.selectionAfter?this.selection.fromJSON(ti.selectionAfter):this.selection.setRange(this.$getUndoSelection(ti,!1))),this.$fromUndo=!1}},si.prototype.setUndoSelect=function(ti){this.$undoSelect=ti},si.prototype.$getUndoSelection=function(ti,ai){function vi(Ni){return ai?Ni.action!=="insert":Ni.action==="insert"}for(var wi,xi,Si=0;Si<ti.length;Si++){var Ei=ti[Si];if(Ei.start){if(!wi){vi(Ei)?wi=In.fromPoints(Ei.start,Ei.end):wi=In.fromPoints(Ei.start,Ei.start);continue}vi(Ei)?(xi=Ei.start,wi.compare(xi.row,xi.column)==-1&&wi.setStart(xi),xi=Ei.end,wi.compare(xi.row,xi.column)==1&&wi.setEnd(xi)):(xi=Ei.start,wi.compare(xi.row,xi.column)==-1&&(wi=In.fromPoints(Ei.start,Ei.start)))}}return wi},si.prototype.replace=function(ti,ai){return this.doc.replace(ti,ai)},si.prototype.moveText=function(ti,ai,vi){var wi=this.getTextRange(ti),xi=this.getFoldsInRange(ti),Si=In.fromPoints(ai,ai);if(!vi){this.remove(ti);var Ei=ti.start.row-ti.end.row,Ni=Ei?-ti.end.column:ti.start.column-ti.end.column;Ni&&(Si.start.row==ti.end.row&&Si.start.column>ti.end.column&&(Si.start.column+=Ni),Si.end.row==ti.end.row&&Si.end.column>ti.end.column&&(Si.end.column+=Ni)),Ei&&Si.start.row>=ti.end.row&&(Si.start.row+=Ei,Si.end.row+=Ei)}if(Si.end=this.insert(Si.start,wi),xi.length){var Ri=ti.start,Fi=Si.start,Ei=Fi.row-Ri.row,Ni=Fi.column-Ri.column;this.addFolds(xi.map(function(Gi){return Gi=Gi.clone(),Gi.start.row==Ri.row&&(Gi.start.column+=Ni),Gi.end.row==Ri.row&&(Gi.end.column+=Ni),Gi.start.row+=Ei,Gi.end.row+=Ei,Gi}))}return Si},si.prototype.indentRows=function(ti,ai,vi){vi=vi.replace(/\t/g,this.getTabString());for(var wi=ti;wi<=ai;wi++)this.doc.insertInLine({row:wi,column:0},vi)},si.prototype.outdentRows=function(ti){for(var ai=ti.collapseRows(),vi=new In(0,0,0,0),wi=this.getTabSize(),xi=ai.start.row;xi<=ai.end.row;++xi){var Si=this.getLine(xi);vi.start.row=xi,vi.end.row=xi;for(var Ei=0;Ei<wi&&Si.charAt(Ei)==" ";++Ei);Ei<wi&&Si.charAt(Ei)==" "?(vi.start.column=Ei,vi.end.column=Ei+1):(vi.start.column=0,vi.end.column=Ei),this.remove(vi)}},si.prototype.$moveLines=function(ti,ai,vi){if(ti=this.getRowFoldStart(ti),ai=this.getRowFoldEnd(ai),vi<0){var wi=this.getRowFoldStart(ti+vi);if(wi<0)return 0;var xi=wi-ti}else if(vi>0){var wi=this.getRowFoldEnd(ai+vi);if(wi>this.doc.getLength()-1)return 0;var xi=wi-ai}else{ti=this.$clipRowToDocument(ti),ai=this.$clipRowToDocument(ai);var xi=ai-ti+1}var Si=new In(ti,0,ai,Number.MAX_VALUE),Ei=this.getFoldsInRange(Si).map(function(Ri){return Ri=Ri.clone(),Ri.start.row+=xi,Ri.end.row+=xi,Ri}),Ni=vi==0?this.doc.getLines(ti,ai):this.doc.removeFullLines(ti,ai);return this.doc.insertFullLines(ti+xi,Ni),Ei.length&&this.addFolds(Ei),xi},si.prototype.moveLinesUp=function(ti,ai){return this.$moveLines(ti,ai,-1)},si.prototype.moveLinesDown=function(ti,ai){return this.$moveLines(ti,ai,1)},si.prototype.duplicateLines=function(ti,ai){return this.$moveLines(ti,ai,0)},si.prototype.$clipRowToDocument=function(ti){return Math.max(0,Math.min(ti,this.doc.getLength()-1))},si.prototype.$clipColumnToRow=function(ti,ai){return ai<0?0:Math.min(this.doc.getLine(ti).length,ai)},si.prototype.$clipPositionToDocument=function(ti,ai){if(ai=Math.max(0,ai),ti<0)ti=0,ai=0;else{var vi=this.doc.getLength();ti>=vi?(ti=vi-1,ai=this.doc.getLine(vi-1).length):ai=Math.min(this.doc.getLine(ti).length,ai)}return{row:ti,column:ai}},si.prototype.$clipRangeToDocument=function(ti){ti.start.row<0?(ti.start.row=0,ti.start.column=0):ti.start.column=this.$clipColumnToRow(ti.start.row,ti.start.column);var ai=this.doc.getLength()-1;return ti.end.row>ai?(ti.end.row=ai,ti.end.column=this.doc.getLine(ai).length):ti.end.column=this.$clipColumnToRow(ti.end.row,ti.end.column),ti},si.prototype.setUseWrapMode=function(ti){if(ti!=this.$useWrapMode){if(this.$useWrapMode=ti,this.$modified=!0,this.$resetRowCache(0),ti){var ai=this.getLength();this.$wrapData=Array(ai),this.$updateWrapData(0,ai-1)}this._signal("changeWrapMode")}},si.prototype.getUseWrapMode=function(){return this.$useWrapMode},si.prototype.setWrapLimitRange=function(ti,ai){(this.$wrapLimitRange.min!==ti||this.$wrapLimitRange.max!==ai)&&(this.$wrapLimitRange={min:ti,max:ai},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},si.prototype.adjustWrapLimit=function(ti,ai){var vi=this.$wrapLimitRange;vi.max<0&&(vi={min:ai,max:ai});var wi=this.$constrainWrapLimit(ti,vi.min,vi.max);return wi!=this.$wrapLimit&&wi>1?(this.$wrapLimit=wi,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},si.prototype.$constrainWrapLimit=function(ti,ai,vi){return ai&&(ti=Math.max(ai,ti)),vi&&(ti=Math.min(vi,ti)),ti},si.prototype.getWrapLimit=function(){return this.$wrapLimit},si.prototype.setWrapLimit=function(ti){this.setWrapLimitRange(ti,ti)},si.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},si.prototype.$updateInternalDataOnChange=function(ti){var ai=this.$useWrapMode,vi=ti.action,wi=ti.start,xi=ti.end,Si=wi.row,Ei=xi.row,Ni=Ei-Si,Ri=null;if(this.$updating=!0,Ni!=0)if(vi==="remove"){this[ai?"$wrapData":"$rowLengthCache"].splice(Si,Ni);var Fi=this.$foldData;Ri=this.getFoldsInRange(ti),this.removeFolds(Ri);var Ii=this.getFoldLine(xi.row),Bi=0;if(Ii){Ii.addRemoveChars(xi.row,xi.column,wi.column-xi.column),Ii.shiftRow(-Ni);var Gi=this.getFoldLine(Si);Gi&&Gi!==Ii&&(Gi.merge(Ii),Ii=Gi),Bi=Fi.indexOf(Ii)+1}for(Bi;Bi<Fi.length;Bi++){var Ii=Fi[Bi];Ii.start.row>=xi.row&&Ii.shiftRow(-Ni)}Ei=Si}else{var Pi=Array(Ni);Pi.unshift(Si,0);var Zi=ai?this.$wrapData:this.$rowLengthCache;Zi.splice.apply(Zi,Pi);var Fi=this.$foldData,Ii=this.getFoldLine(Si),Bi=0;if(Ii){var lr=Ii.range.compareInside(wi.row,wi.column);lr==0?(Ii=Ii.split(wi.row,wi.column),Ii&&(Ii.shiftRow(Ni),Ii.addRemoveChars(Ei,0,xi.column-wi.column))):lr==-1&&(Ii.addRemoveChars(Si,0,xi.column-wi.column),Ii.shiftRow(Ni)),Bi=Fi.indexOf(Ii)+1}for(Bi;Bi<Fi.length;Bi++){var Ii=Fi[Bi];Ii.start.row>=Si&&Ii.shiftRow(Ni)}}else{Ni=Math.abs(ti.start.column-ti.end.column),vi==="remove"&&(Ri=this.getFoldsInRange(ti),this.removeFolds(Ri),Ni=-Ni);var Ii=this.getFoldLine(Si);Ii&&Ii.addRemoveChars(Si,wi.column,Ni)}return ai&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,ai?this.$updateWrapData(Si,Ei):this.$updateRowLengthCache(Si,Ei),Ri},si.prototype.$updateRowLengthCache=function(ti,ai){this.$rowLengthCache[ti]=null,this.$rowLengthCache[ai]=null},si.prototype.$updateWrapData=function(ti,ai){var vi=this.doc.getAllLines(),wi=this.getTabSize(),xi=this.$wrapData,Si=this.$wrapLimit,Ei,Ni,Ri=ti;for(ai=Math.min(ai,vi.length-1);Ri<=ai;)Ni=this.getFoldLine(Ri,Ni),Ni?(Ei=[],Ni.walk((function(Fi,Ii,Bi,Gi){var Pi;if(Fi!=null){Pi=this.$getDisplayTokens(Fi,Ei.length),Pi[0]=oi;for(var Zi=1;Zi<Pi.length;Zi++)Pi[Zi]=ei}else Pi=this.$getDisplayTokens(vi[Ii].substring(Gi,Bi),Ei.length);Ei=Ei.concat(Pi)}).bind(this),Ni.end.row,vi[Ni.end.row].length+1),xi[Ni.start.row]=this.$computeWrapSplits(Ei,Si,wi),Ri=Ni.end.row+1):(Ei=this.$getDisplayTokens(vi[Ri]),xi[Ri]=this.$computeWrapSplits(Ei,Si,wi),Ri++)},si.prototype.$computeWrapSplits=function(ti,ai,vi){if(ti.length==0)return[];var wi=[],xi=ti.length,Si=0,Ei=0,Ni=this.$wrapAsCode,Ri=this.$indentedSoftWrap,Fi=ai<=Math.max(2*vi,8)||Ri===!1?0:Math.floor(ai/2);function Ii(){var lr=0;if(Fi===0)return lr;if(Ri)for(var gr=0;gr<ti.length;gr++){var or=ti[gr];if(or==gi)lr+=1;else if(or==yi)lr+=vi;else{if(or==pi)continue;break}}return Ni&&Ri!==!1&&(lr+=vi),Math.min(lr,Fi)}function Bi(lr){for(var gr=lr-Si,or=Si;or<lr;or++){var yr=ti[or];(yr===12||yr===2)&&(gr-=1)}wi.length||(Gi=Ii(),wi.indent=Gi),Ei+=gr,wi.push(Ei),Si=lr}for(var Gi=0;xi-Si>ai-Gi;){var Pi=Si+ai-Gi;if(ti[Pi-1]>=gi&&ti[Pi]>=gi){Bi(Pi);continue}if(ti[Pi]==oi||ti[Pi]==ei){for(Pi;Pi!=Si-1&&ti[Pi]!=oi;Pi--);if(Pi>Si){Bi(Pi);continue}for(Pi=Si+ai,Pi;Pi<ti.length&&ti[Pi]==ei;Pi++);if(Pi==ti.length)break;Bi(Pi);continue}for(var Zi=Math.max(Pi-(ai-(ai>>2)),Si-1);Pi>Zi&&ti[Pi]<oi;)Pi--;if(Ni){for(;Pi>Zi&&ti[Pi]<oi;)Pi--;for(;Pi>Zi&&ti[Pi]==fi;)Pi--}else for(;Pi>Zi&&ti[Pi]<gi;)Pi--;if(Pi>Zi){Bi(++Pi);continue}Pi=Si+ai,ti[Pi]==li&&Pi--,Bi(Pi-Gi)}return wi},si.prototype.$getDisplayTokens=function(ti,ai){var vi=[],wi;ai=ai||0;for(var xi=0;xi<ti.length;xi++){var Si=ti.charCodeAt(xi);if(Si==9){wi=this.getScreenTabSize(vi.length+ai),vi.push(yi);for(var Ei=1;Ei<wi;Ei++)vi.push(pi)}else Si==32?vi.push(gi):Si>39&&Si<48||Si>57&&Si<64?vi.push(fi):Si>=4352&&$i(Si)?vi.push(mi,li):vi.push(mi)}return vi},si.prototype.$getStringScreenWidth=function(ti,ai,vi){if(ai==0)return[0,0];ai==null&&(ai=1/0),vi=vi||0;var wi,xi;for(xi=0;xi<ti.length&&(wi=ti.charCodeAt(xi),wi==9?vi+=this.getScreenTabSize(vi):wi>=4352&&$i(wi)?vi+=2:vi+=1,!(vi>ai));xi++);return[vi,xi]},si.prototype.getRowLength=function(ti){var ai=1;return this.lineWidgets&&(ai+=this.lineWidgets[ti]&&this.lineWidgets[ti].rowCount||0),!this.$useWrapMode||!this.$wrapData[ti]?ai:this.$wrapData[ti].length+ai},si.prototype.getRowLineCount=function(ti){return!this.$useWrapMode||!this.$wrapData[ti]?1:this.$wrapData[ti].length+1},si.prototype.getRowWrapIndent=function(ti){if(this.$useWrapMode){var ai=this.screenToDocumentPosition(ti,Number.MAX_VALUE),vi=this.$wrapData[ai.row];return vi.length&&vi[0]<ai.column?vi.indent:0}else return 0},si.prototype.getScreenLastRowColumn=function(ti){var ai=this.screenToDocumentPosition(ti,Number.MAX_VALUE);return this.documentToScreenColumn(ai.row,ai.column)},si.prototype.getDocumentLastRowColumn=function(ti,ai){var vi=this.documentToScreenRow(ti,ai);return this.getScreenLastRowColumn(vi)},si.prototype.getDocumentLastRowColumnPosition=function(ti,ai){var vi=this.documentToScreenRow(ti,ai);return this.screenToDocumentPosition(vi,Number.MAX_VALUE/10)},si.prototype.getRowSplitData=function(ti){if(this.$useWrapMode)return this.$wrapData[ti]},si.prototype.getScreenTabSize=function(ti){return this.$tabSize-(ti%this.$tabSize|0)},si.prototype.screenToDocumentRow=function(ti,ai){return this.screenToDocumentPosition(ti,ai).row},si.prototype.screenToDocumentColumn=function(ti,ai){return this.screenToDocumentPosition(ti,ai).column},si.prototype.screenToDocumentPosition=function(ti,ai,vi){if(ti<0)return{row:0,column:0};var wi,Bi=0,xi=0,Si,Ii=0,Ei=0,Ni=this.$screenRowCache,Ri=this.$getRowCacheIndex(Ni,ti),Fi=Ni.length;if(Fi&&Ri>=0)var Ii=Ni[Ri],Bi=this.$docRowCache[Ri],Gi=ti>Ni[Fi-1];else var Gi=!Fi;for(var Pi=this.getLength()-1,Zi=this.getNextFoldLine(Bi),lr=Zi?Zi.start.row:1/0;Ii<=ti&&(Ei=this.getRowLength(Bi),!(Ii+Ei>ti||Bi>=Pi));)Ii+=Ei,Bi++,Bi>lr&&(Bi=Zi.end.row+1,Zi=this.getNextFoldLine(Bi,Zi),lr=Zi?Zi.start.row:1/0),Gi&&(this.$docRowCache.push(Bi),this.$screenRowCache.push(Ii));if(Zi&&Zi.start.row<=Bi)wi=this.getFoldDisplayLine(Zi),Bi=Zi.start.row;else{if(Ii+Ei<=ti||Bi>Pi)return{row:Pi,column:this.getLine(Pi).length};wi=this.getLine(Bi),Zi=null}var gr=0,or=Math.floor(ti-Ii);if(this.$useWrapMode){var yr=this.$wrapData[Bi];yr&&(Si=yr[or],or>0&&yr.length&&(gr=yr.indent,xi=yr[or-1]||yr[yr.length-1],wi=wi.substring(xi)))}return vi!==void 0&&this.$bidiHandler.isBidiRow(Ii+or,Bi,or)&&(ai=this.$bidiHandler.offsetToCol(vi)),xi+=this.$getStringScreenWidth(wi,ai-gr)[1],this.$useWrapMode&&xi>=Si&&(xi=Si-1),Zi?Zi.idxToPosition(xi):{row:Bi,column:xi}},si.prototype.documentToScreenPosition=function(ti,ai){if(typeof ai>"u")var vi=this.$clipPositionToDocument(ti.row,ti.column);else vi=this.$clipPositionToDocument(ti,ai);ti=vi.row,ai=vi.column;var Ii=0,wi=null,xi=null;xi=this.getFoldAt(ti,ai,1),xi&&(ti=xi.start.row,ai=xi.start.column);var Si,Fi=0,Ei=this.$docRowCache,Ni=this.$getRowCacheIndex(Ei,ti),Ri=Ei.length;if(Ri&&Ni>=0)var Fi=Ei[Ni],Ii=this.$screenRowCache[Ni],Bi=ti>Ei[Ri-1];else var Bi=!Ri;for(var Gi=this.getNextFoldLine(Fi),Pi=Gi?Gi.start.row:1/0;Fi<ti;){if(Fi>=Pi){if(Si=Gi.end.row+1,Si>ti)break;Gi=this.getNextFoldLine(Si,Gi),Pi=Gi?Gi.start.row:1/0}else Si=Fi+1;Ii+=this.getRowLength(Fi),Fi=Si,Bi&&(this.$docRowCache.push(Fi),this.$screenRowCache.push(Ii))}var Zi="";Gi&&Fi>=Pi?(Zi=this.getFoldDisplayLine(Gi,ti,ai),wi=Gi.start.row):(Zi=this.getLine(ti).substring(0,ai),wi=ti);var lr=0;if(this.$useWrapMode){var gr=this.$wrapData[wi];if(gr){for(var or=0;Zi.length>=gr[or];)Ii++,or++;Zi=Zi.substring(gr[or-1]||0,Zi.length),lr=or>0?gr.indent:0}}return this.lineWidgets&&this.lineWidgets[Fi]&&this.lineWidgets[Fi].rowsAbove&&(Ii+=this.lineWidgets[Fi].rowsAbove),{row:Ii,column:lr+this.$getStringScreenWidth(Zi)[0]}},si.prototype.documentToScreenColumn=function(ti,ai){return this.documentToScreenPosition(ti,ai).column},si.prototype.documentToScreenRow=function(ti,ai){return this.documentToScreenPosition(ti,ai).row},si.prototype.getScreenLength=function(){var ti=0,ai=null;if(this.$useWrapMode)for(var vi=this.$wrapData.length,wi=0,xi=0,ai=this.$foldData[xi++],Si=ai?ai.start.row:1/0;wi<vi;){var Ei=this.$wrapData[wi];ti+=Ei?Ei.length+1:1,wi++,wi>Si&&(wi=ai.end.row+1,ai=this.$foldData[xi++],Si=ai?ai.start.row:1/0)}else{ti=this.getLength();for(var Ni=this.$foldData,xi=0;xi<Ni.length;xi++)ai=Ni[xi],ti-=ai.end.row-ai.start.row}return this.lineWidgets&&(ti+=this.$getWidgetScreenLength()),ti},si.prototype.$setFontMetrics=function(ti){this.$enableVarChar&&(this.$getStringScreenWidth=function(ai,vi,wi){if(vi===0)return[0,0];vi||(vi=1/0),wi=wi||0;var xi,Si;for(Si=0;Si<ai.length&&(xi=ai.charAt(Si),xi===" "?wi+=this.getScreenTabSize(wi):wi+=ti.getCharacterWidth(xi),!(wi>vi));Si++);return[wi,Si]})},si.prototype.getPrecedingCharacter=function(){var ti=this.selection.getCursor();if(ti.column===0)return ti.row===0?"":this.doc.getNewLineCharacter();var ai=this.getLine(ti.row);return ai[ti.column-1]},si.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()},si}();Xn.$uid=0,Xn.prototype.$modes=Hn.$modes,Xn.prototype.getValue=Xn.prototype.toString,Xn.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},Xn.prototype.$overwrite=!1,Xn.prototype.$mode=null,Xn.prototype.$modeId=null,Xn.prototype.$scrollTop=0,Xn.prototype.$scrollLeft=0,Xn.prototype.$wrapLimit=80,Xn.prototype.$useWrapMode=!1,Xn.prototype.$wrapLimitRange={min:null,max:null},Xn.prototype.lineWidgets=null,Xn.prototype.isFullWidth=$i,zn.implement(Xn.prototype,qn);var mi=1,li=2,oi=3,ei=4,fi=9,gi=10,yi=11,pi=12;function $i(si){return si<4352?!1:si>=4352&&si<=4447||si>=4515&&si<=4519||si>=4602&&si<=4607||si>=9001&&si<=9002||si>=11904&&si<=11929||si>=11931&&si<=12019||si>=12032&&si<=12245||si>=12272&&si<=12283||si>=12288&&si<=12350||si>=12353&&si<=12438||si>=12441&&si<=12543||si>=12549&&si<=12589||si>=12593&&si<=12686||si>=12688&&si<=12730||si>=12736&&si<=12771||si>=12784&&si<=12830||si>=12832&&si<=12871||si>=12880&&si<=13054||si>=13056&&si<=19903||si>=19968&&si<=42124||si>=42128&&si<=42182||si>=43360&&si<=43388||si>=44032&&si<=55203||si>=55216&&si<=55238||si>=55243&&si<=55291||si>=63744&&si<=64255||si>=65040&&si<=65049||si>=65072&&si<=65106||si>=65108&&si<=65126||si>=65128&&si<=65131||si>=65281&&si<=65376||si>=65504&&si<=65510}_n("./edit_session/folding").Folding.call(Xn.prototype),_n("./edit_session/bracket_match").BracketMatch.call(Xn.prototype),Hn.defineOptions(Xn.prototype,"session",{wrap:{set:function(si){if(!si||si=="off"?si=!1:si=="free"?si=!0:si=="printMargin"?si=-1:typeof si=="string"&&(si=parseInt(si,10)||!1),this.$wrap!=si)if(this.$wrap=si,!si)this.setUseWrapMode(!1);else{var ti=typeof si=="number"?si:null;this.setWrapLimitRange(ti,ti),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(si){si=si=="auto"?this.$mode.type!="text":si!="text",si!=this.$wrapAsCode&&(this.$wrapAsCode=si,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(si){this.$useWorker=si,this.$stopWorker(),si&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(si){si=parseInt(si),si>0&&this.$tabSize!==si&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=si,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(si){this.setFoldStyle(si)},handlesSet:!0},overwrite:{set:function(si){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(si){this.doc.setNewLineMode(si)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(si){this.setMode(si)},get:function(){return this.$modeId},handlesSet:!0}}),kn.EditSession=Xn}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(_n,kn,Wn){var zn=_n("./lib/lang"),Kn=_n("./lib/oop"),Qn=_n("./range").Range,Hn=function(){function Nn(){this.$options={}}return Nn.prototype.set=function(Dn){return Kn.mixin(this.$options,Dn),this},Nn.prototype.getOptions=function(){return zn.copyObject(this.$options)},Nn.prototype.setOptions=function(Dn){this.$options=Dn},Nn.prototype.find=function(Dn){var In=this.$options,Bn=this.$matchIterator(Dn,In);if(!Bn)return!1;var Ln=null;return Bn.forEach(function(Pn,Zn,Jn,Xn){return Ln=new Qn(Pn,Zn,Jn,Xn),Zn==Xn&&In.start&&In.start.start&&In.skipCurrent!=!1&&Ln.isEqual(In.start)?(Ln=null,!1):!0}),Ln},Nn.prototype.findAll=function(Dn){var In=this.$options;if(!In.needle)return[];this.$assembleRegExp(In);var Bn=In.range,Ln=Bn?Dn.getLines(Bn.start.row,Bn.end.row):Dn.doc.getAllLines(),Pn=[],Zn=In.re;if(In.$isMultiLine){var Jn=Zn.length,Xn=Ln.length-Jn,mi;e:for(var li=Zn.offset||0;li<=Xn;li++){for(var oi=0;oi<Jn;oi++)if(Ln[li+oi].search(Zn[oi])==-1)continue e;var ei=Ln[li],fi=Ln[li+Jn-1],gi=ei.length-ei.match(Zn[0])[0].length,yi=fi.match(Zn[Jn-1])[0].length;mi&&mi.end.row===li&&mi.end.column>gi||(Pn.push(mi=new Qn(li,gi,li+Jn-1,yi)),Jn>2&&(li=li+Jn-2))}}else for(var pi=0;pi<Ln.length;pi++)for(var $i=zn.getMatchOffsets(Ln[pi],Zn),oi=0;oi<$i.length;oi++){var si=$i[oi];Pn.push(new Qn(pi,si.offset,pi,si.offset+si.length))}if(Bn){for(var ti=Bn.start.column,ai=Bn.end.column,pi=0,oi=Pn.length-1;pi<oi&&Pn[pi].start.column<ti&&Pn[pi].start.row==0;)pi++;for(var vi=Bn.end.row-Bn.start.row;pi<oi&&Pn[oi].end.column>ai&&Pn[oi].end.row==vi;)oi--;for(Pn=Pn.slice(pi,oi+1),pi=0,oi=Pn.length;pi<oi;pi++)Pn[pi].start.row+=Bn.start.row,Pn[pi].end.row+=Bn.start.row}return Pn},Nn.prototype.replace=function(Dn,In){var Bn=this.$options,Ln=this.$assembleRegExp(Bn);if(Bn.$isMultiLine)return In;if(Ln){var Pn=Ln.exec(Dn);if(!Pn||Pn[0].length!=Dn.length)return null;if(Bn.regExp||(In=In.replace(/\$/g,"$$$$")),In=Dn.replace(Ln,In),Bn.preserveCase){In=In.split("");for(var Zn=Math.min(Dn.length,Dn.length);Zn--;){var Jn=Dn[Zn];Jn&&Jn.toLowerCase()!=Jn?In[Zn]=In[Zn].toUpperCase():In[Zn]=In[Zn].toLowerCase()}In=In.join("")}return In}},Nn.prototype.$assembleRegExp=function(Dn,In){if(Dn.needle instanceof RegExp)return Dn.re=Dn.needle;var Bn=Dn.needle;if(!Dn.needle)return Dn.re=!1;Dn.regExp||(Bn=zn.escapeRegExp(Bn));var Ln=Dn.caseSensitive?"gm":"gmi";try{new RegExp(Bn,"u"),Dn.$supportsUnicodeFlag=!0,Ln+="u"}catch{Dn.$supportsUnicodeFlag=!1}if(Dn.wholeWord&&(Bn=qn(Bn,Dn)),Dn.$isMultiLine=!In&&/[\n\r]/.test(Bn),Dn.$isMultiLine)return Dn.re=this.$assembleMultilineRegExp(Bn,Ln);try{var Pn=new RegExp(Bn,Ln)}catch{Pn=!1}return Dn.re=Pn},Nn.prototype.$assembleMultilineRegExp=function(Dn,In){for(var Bn=Dn.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),Ln=[],Pn=0;Pn<Bn.length;Pn++)try{Ln.push(new RegExp(Bn[Pn],In))}catch{return!1}return Ln},Nn.prototype.$matchIterator=function(Dn,In){var Bn=this.$assembleRegExp(In);if(!Bn)return!1;var Ln=In.backwards==!0,Pn=In.skipCurrent!=!1,Zn=Bn.unicode,Jn=In.range,Xn=In.start;Xn||(Xn=Jn?Jn[Ln?"end":"start"]:Dn.selection.getRange()),Xn.start&&(Xn=Xn[Pn!=Ln?"end":"start"]);var mi=Jn?Jn.start.row:0,li=Jn?Jn.end.row:Dn.getLength()-1;if(Ln)var oi=function(gi){var yi=Xn.row;if(!fi(yi,Xn.column,gi)){for(yi--;yi>=mi;yi--)if(fi(yi,Number.MAX_VALUE,gi))return;if(In.wrap!=!1){for(yi=li,mi=Xn.row;yi>=mi;yi--)if(fi(yi,Number.MAX_VALUE,gi))return}}};else var oi=function(gi){var yi=Xn.row;if(!fi(yi,Xn.column,gi)){for(yi=yi+1;yi<=li;yi++)if(fi(yi,0,gi))return;if(In.wrap!=!1){for(yi=mi,li=Xn.row;yi<=li;yi++)if(fi(yi,0,gi))return}}};if(In.$isMultiLine)var ei=Bn.length,fi=function(gi,yi,pi){var $i=Ln?gi-ei+1:gi;if(!($i<0||$i+ei>Dn.getLength())){var si=Dn.getLine($i),ti=si.search(Bn[0]);if(!(!Ln&&ti<yi||ti===-1)){for(var ai=1;ai<ei;ai++)if(si=Dn.getLine($i+ai),si.search(Bn[ai])==-1)return;var vi=si.match(Bn[ei-1])[0].length;if(!(Ln&&vi>yi)&&pi($i,ti,$i+ei-1,vi))return!0}}};else if(Ln)var fi=function(gi,yi,pi){var $i=Dn.getLine(gi),si=[],ti,ai=0;for(Bn.lastIndex=0;ti=Bn.exec($i);){var vi=ti[0].length;if(ai=ti.index,!vi){if(ai>=$i.length)break;Bn.lastIndex=ai+=zn.skipEmptyMatch($i,ai,Zn)}if(ti.index+vi>yi)break;si.push(ti.index,vi)}for(var wi=si.length-1;wi>=0;wi-=2){var xi=si[wi-1],vi=si[wi];if(pi(gi,xi,gi,xi+vi))return!0}};else var fi=function(gi,yi,pi){var $i=Dn.getLine(gi),si,ti;for(Bn.lastIndex=yi;ti=Bn.exec($i);){var ai=ti[0].length;if(si=ti.index,pi(gi,si,gi,si+ai))return!0;if(!ai&&(Bn.lastIndex=si+=zn.skipEmptyMatch($i,si,Zn),si>=$i.length))return!1}};return{forEach:oi}},Nn}();function qn(Nn,Dn){var In=zn.supportsLookbehind();function Bn(Jn,Xn){Xn===void 0&&(Xn=!0);var mi=In&&Dn.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return mi.test(Jn)||Dn.regExp?In&&Dn.$supportsUnicodeFlag?Xn?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var Ln=Array.from(Nn),Pn=Ln[0],Zn=Ln[Ln.length-1];return Bn(Pn)+Nn+Bn(Zn,!1)}kn.Search=Hn}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var In=function(Bn,Ln){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pn,Zn){Pn.__proto__=Zn}||function(Pn,Zn){for(var Jn in Zn)Object.prototype.hasOwnProperty.call(Zn,Jn)&&(Pn[Jn]=Zn[Jn])},In(Bn,Ln)};return function(Bn,Ln){if(typeof Ln!="function"&&Ln!==null)throw new TypeError("Class extends value "+String(Ln)+" is not a constructor or null");In(Bn,Ln);function Pn(){this.constructor=Bn}Bn.prototype=Ln===null?Object.create(Ln):(Pn.prototype=Ln.prototype,new Pn)}}(),Kn=_n("../lib/keys"),Qn=_n("../lib/useragent"),Hn=Kn.KEY_MODS,qn=function(){function In(Bn,Ln){this.$init(Bn,Ln,!1)}return In.prototype.$init=function(Bn,Ln,Pn){this.platform=Ln||(Qn.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(Bn),this.$singleCommand=Pn},In.prototype.addCommand=function(Bn){this.commands[Bn.name]&&this.removeCommand(Bn),this.commands[Bn.name]=Bn,Bn.bindKey&&this._buildKeyHash(Bn)},In.prototype.removeCommand=function(Bn,Ln){var Pn=Bn&&(typeof Bn=="string"?Bn:Bn.name);Bn=this.commands[Pn],Ln||delete this.commands[Pn];var Zn=this.commandKeyBinding;for(var Jn in Zn){var Xn=Zn[Jn];if(Xn==Bn)delete Zn[Jn];else if(Array.isArray(Xn)){var mi=Xn.indexOf(Bn);mi!=-1&&(Xn.splice(mi,1),Xn.length==1&&(Zn[Jn]=Xn[0]))}}},In.prototype.bindKey=function(Bn,Ln,Pn){if(typeof Bn=="object"&&Bn&&(Pn==null&&(Pn=Bn.position),Bn=Bn[this.platform]),!!Bn){if(typeof Ln=="function")return this.addCommand({exec:Ln,bindKey:Bn,name:Ln.name||Bn});Bn.split("|").forEach(function(Zn){var Jn="";if(Zn.indexOf(" ")!=-1){var Xn=Zn.split(/\s+/);Zn=Xn.pop(),Xn.forEach(function(oi){var ei=this.parseKeys(oi),fi=Hn[ei.hashId]+ei.key;Jn+=(Jn?" ":"")+fi,this._addCommandToBinding(Jn,"chainKeys")},this),Jn+=" "}var mi=this.parseKeys(Zn),li=Hn[mi.hashId]+mi.key;this._addCommandToBinding(Jn+li,Ln,Pn)},this)}},In.prototype._addCommandToBinding=function(Bn,Ln,Pn){var Zn=this.commandKeyBinding,Jn;if(!Ln)delete Zn[Bn];else if(!Zn[Bn]||this.$singleCommand)Zn[Bn]=Ln;else{Array.isArray(Zn[Bn])?(Jn=Zn[Bn].indexOf(Ln))!=-1&&Zn[Bn].splice(Jn,1):Zn[Bn]=[Zn[Bn]],typeof Pn!="number"&&(Pn=Nn(Ln));var Xn=Zn[Bn];for(Jn=0;Jn<Xn.length;Jn++){var mi=Xn[Jn],li=Nn(mi);if(li>Pn)break}Xn.splice(Jn,0,Ln)}},In.prototype.addCommands=function(Bn){Bn&&Object.keys(Bn).forEach(function(Ln){var Pn=Bn[Ln];if(Pn){if(typeof Pn=="string")return this.bindKey(Pn,Ln);typeof Pn=="function"&&(Pn={exec:Pn}),typeof Pn=="object"&&(Pn.name||(Pn.name=Ln),this.addCommand(Pn))}},this)},In.prototype.removeCommands=function(Bn){Object.keys(Bn).forEach(function(Ln){this.removeCommand(Bn[Ln])},this)},In.prototype.bindKeys=function(Bn){Object.keys(Bn).forEach(function(Ln){this.bindKey(Ln,Bn[Ln])},this)},In.prototype._buildKeyHash=function(Bn){this.bindKey(Bn.bindKey,Bn)},In.prototype.parseKeys=function(Bn){var Ln=Bn.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(li){return li}),Pn=Ln.pop(),Zn=Kn[Pn];if(Kn.FUNCTION_KEYS[Zn])Pn=Kn.FUNCTION_KEYS[Zn].toLowerCase();else if(Ln.length){if(Ln.length==1&&Ln[0]=="shift")return{key:Pn.toUpperCase(),hashId:-1}}else return{key:Pn,hashId:-1};for(var Jn=0,Xn=Ln.length;Xn--;){var mi=Kn.KEY_MODS[Ln[Xn]];if(mi==null)return typeof console<"u"&&console.error("invalid modifier "+Ln[Xn]+" in "+Bn),!1;Jn|=mi}return{key:Pn,hashId:Jn}},In.prototype.findKeyCommand=function(Bn,Ln){var Pn=Hn[Bn]+Ln;return this.commandKeyBinding[Pn]},In.prototype.handleKeyboard=function(Bn,Ln,Pn,Zn){if(!(Zn<0)){var Jn=Hn[Ln]+Pn,Xn=this.commandKeyBinding[Jn];return Bn.$keyChain&&(Bn.$keyChain+=" "+Jn,Xn=this.commandKeyBinding[Bn.$keyChain]||Xn),Xn&&(Xn=="chainKeys"||Xn[Xn.length-1]=="chainKeys")?(Bn.$keyChain=Bn.$keyChain||Jn,{command:"null"}):(Bn.$keyChain&&((!Ln||Ln==4)&&Pn.length==1?Bn.$keyChain=Bn.$keyChain.slice(0,-Jn.length-1):(Ln==-1||Zn>0)&&(Bn.$keyChain="")),{command:Xn})}},In.prototype.getStatusText=function(Bn,Ln){return Ln.$keyChain||""},In}();function Nn(In){return typeof In=="object"&&In.bindKey&&In.bindKey.position||(In.isDefault?-100:0)}var Dn=function(In){zn(Bn,In);function Bn(Ln,Pn){var Zn=In.call(this,Ln,Pn)||this;return Zn.$singleCommand=!0,Zn}return Bn}(qn);Dn.call=function(In,Bn,Ln){qn.prototype.$init.call(In,Bn,Ln,!0)},qn.call=function(In,Bn,Ln){qn.prototype.$init.call(In,Bn,Ln,!1)},kn.HashHandler=Dn,kn.MultiHashHandler=qn}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var Nn=function(Dn,In){return Nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bn,Ln){Bn.__proto__=Ln}||function(Bn,Ln){for(var Pn in Ln)Object.prototype.hasOwnProperty.call(Ln,Pn)&&(Bn[Pn]=Ln[Pn])},Nn(Dn,In)};return function(Dn,In){if(typeof In!="function"&&In!==null)throw new TypeError("Class extends value "+String(In)+" is not a constructor or null");Nn(Dn,In);function Bn(){this.constructor=Dn}Dn.prototype=In===null?Object.create(In):(Bn.prototype=In.prototype,new Bn)}}(),Kn=_n("../lib/oop"),Qn=_n("../keyboard/hash_handler").MultiHashHandler,Hn=_n("../lib/event_emitter").EventEmitter,qn=function(Nn){zn(Dn,Nn);function Dn(In,Bn){var Ln=Nn.call(this,Bn,In)||this;return Ln.byName=Ln.commands,Ln.setDefaultHandler("exec",function(Pn){return Pn.args?Pn.command.exec(Pn.editor,Pn.args,Pn.event,!1):Pn.command.exec(Pn.editor,{},Pn.event,!0)}),Ln}return Dn.prototype.exec=function(In,Bn,Ln){if(Array.isArray(In)){for(var Pn=In.length;Pn--;)if(this.exec(In[Pn],Bn,Ln))return!0;return!1}if(typeof In=="string"&&(In=this.commands[In]),!this.canExecute(In,Bn))return!1;var Zn={editor:Bn,command:In,args:Ln};return Zn.returnValue=this._emit("exec",Zn),this._signal("afterExec",Zn),Zn.returnValue!==!1},Dn.prototype.canExecute=function(In,Bn){return typeof In=="string"&&(In=this.commands[In]),!(!In||Bn&&Bn.$readOnly&&!In.readOnly||this.$checkCommandState!=!1&&In.isAvailable&&!In.isAvailable(Bn))},Dn.prototype.toggleRecording=function(In){if(!this.$inReplay)return In&&In._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(Bn){this.macro.push([Bn.command,Bn.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},Dn.prototype.replay=function(In){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(In);try{this.$inReplay=!0,this.macro.forEach(function(Bn){typeof Bn=="string"?this.exec(Bn,In):this.exec(Bn[0],In,Bn[1])},this)}finally{this.$inReplay=!1}}},Dn.prototype.trimMacro=function(In){return In.map(function(Bn){return typeof Bn[0]!="string"&&(Bn[0]=Bn[0].name),Bn[1]||(Bn=Bn[0]),Bn})},Dn}(Qn);Kn.implement(qn.prototype,Hn),kn.CommandManager=qn}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(_n,kn,Wn){var zn=_n("../lib/lang"),Kn=_n("../config"),Qn=_n("../range").Range;function Hn(Nn,Dn){return{win:Nn,mac:Dn}}kn.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:Hn("Ctrl-,","Command-,"),exec:function(Nn){Kn.loadModule("ace/ext/settings_menu",function(Dn){Dn.init(Nn),Nn.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:Hn("Alt-E","F4"),exec:function(Nn){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(Nn,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:Hn("Alt-Shift-E","Shift-F4"),exec:function(Nn){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(Nn,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:Hn("Ctrl-A","Command-A"),exec:function(Nn){Nn.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:Hn(null,"Ctrl-L"),exec:function(Nn){Nn.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:Hn("Ctrl-L","Command-L"),exec:function(Nn,Dn){typeof Dn=="number"&&!isNaN(Dn)&&Nn.gotoLine(Dn),Nn.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:Hn("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(Nn){Nn.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:Hn("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(Nn){Nn.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:Hn("F2","F2"),exec:function(Nn){Nn.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:Hn("Alt-F2","Alt-F2"),exec:function(Nn){Nn.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:Hn(null,"Ctrl-Command-Option-0"),exec:function(Nn){Nn.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:Hn(null,"Ctrl-Command-Option-0"),exec:function(Nn){Nn.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:Hn("Alt-0","Command-Option-0"),exec:function(Nn){Nn.session.foldAll(),Nn.session.unfold(Nn.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:Hn("Alt-Shift-0","Command-Option-Shift-0"),exec:function(Nn){Nn.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:Hn("Ctrl-K","Command-G"),exec:function(Nn){Nn.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:Hn("Ctrl-Shift-K","Command-Shift-G"),exec:function(Nn){Nn.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:Hn("Alt-K","Ctrl-G"),exec:function(Nn){Nn.selection.isEmpty()?Nn.selection.selectWord():Nn.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:Hn("Alt-Shift-K","Ctrl-Shift-G"),exec:function(Nn){Nn.selection.isEmpty()?Nn.selection.selectWord():Nn.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:Hn("Ctrl-F","Command-F"),exec:function(Nn){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(Nn)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(Nn){Nn.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:Hn("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(Nn){Nn.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:Hn("Ctrl-Home","Command-Home|Command-Up"),exec:function(Nn){Nn.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:Hn("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(Nn){Nn.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:Hn("Up","Up|Ctrl-P"),exec:function(Nn,Dn){Nn.navigateUp(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:Hn("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(Nn){Nn.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:Hn("Ctrl-End","Command-End|Command-Down"),exec:function(Nn){Nn.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:Hn("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(Nn){Nn.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:Hn("Down","Down|Ctrl-N"),exec:function(Nn,Dn){Nn.navigateDown(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:Hn("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(Nn){Nn.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:Hn("Ctrl-Left","Option-Left"),exec:function(Nn){Nn.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:Hn("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(Nn){Nn.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:Hn("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(Nn){Nn.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:Hn("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(Nn){Nn.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:Hn("Left","Left|Ctrl-B"),exec:function(Nn,Dn){Nn.navigateLeft(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:Hn("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(Nn){Nn.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:Hn("Ctrl-Right","Option-Right"),exec:function(Nn){Nn.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:Hn("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(Nn){Nn.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:Hn("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(Nn){Nn.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:Hn("Shift-Right","Shift-Right"),exec:function(Nn){Nn.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:Hn("Right","Right|Ctrl-F"),exec:function(Nn,Dn){Nn.navigateRight(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(Nn){Nn.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:Hn(null,"Option-PageDown"),exec:function(Nn){Nn.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:Hn("PageDown","PageDown|Ctrl-V"),exec:function(Nn){Nn.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(Nn){Nn.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:Hn(null,"Option-PageUp"),exec:function(Nn){Nn.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(Nn){Nn.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:Hn("Ctrl-Up",null),exec:function(Nn){Nn.renderer.scrollBy(0,-2*Nn.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:Hn("Ctrl-Down",null),exec:function(Nn){Nn.renderer.scrollBy(0,2*Nn.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(Nn){Nn.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(Nn){Nn.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:Hn("Ctrl-Alt-E","Command-Option-E"),exec:function(Nn){Nn.commands.toggleRecording(Nn)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:Hn("Ctrl-Shift-E","Command-Shift-E"),exec:function(Nn){Nn.commands.replay(Nn)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:Hn("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(Nn){Nn.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:Hn("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(Nn){Nn.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:Hn("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(Nn){Nn.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:Hn(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(Nn){},readOnly:!0},{name:"cut",description:"Cut",exec:function(Nn){var Dn=Nn.$copyWithEmptySelection&&Nn.selection.isEmpty(),In=Dn?Nn.selection.getLineRange():Nn.selection.getRange();Nn._emit("cut",In),In.isEmpty()||Nn.session.remove(In),Nn.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(Nn,Dn){Nn.$handlePaste(Dn)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:Hn("Ctrl-D","Command-D"),exec:function(Nn){Nn.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:Hn("Ctrl-Shift-D","Command-Shift-D"),exec:function(Nn){Nn.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:Hn("Ctrl-Alt-S","Command-Alt-S"),exec:function(Nn){Nn.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:Hn("Ctrl-/","Command-/"),exec:function(Nn){Nn.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:Hn("Ctrl-Shift-/","Command-Shift-/"),exec:function(Nn){Nn.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:Hn("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(Nn){Nn.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:Hn("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(Nn){Nn.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:Hn("Ctrl-H","Command-Option-F"),exec:function(Nn){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(Nn,!0)})}},{name:"undo",description:"Undo",bindKey:Hn("Ctrl-Z","Command-Z"),exec:function(Nn){Nn.undo()}},{name:"redo",description:"Redo",bindKey:Hn("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(Nn){Nn.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:Hn("Alt-Shift-Up","Command-Option-Up"),exec:function(Nn){Nn.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:Hn("Alt-Up","Option-Up"),exec:function(Nn){Nn.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:Hn("Alt-Shift-Down","Command-Option-Down"),exec:function(Nn){Nn.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:Hn("Alt-Down","Option-Down"),exec:function(Nn){Nn.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:Hn("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(Nn){Nn.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:Hn("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(Nn){Nn.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:Hn("Shift-Delete",null),exec:function(Nn){if(Nn.selection.isEmpty())Nn.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:Hn("Alt-Backspace","Command-Backspace"),exec:function(Nn){Nn.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:Hn("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(Nn){Nn.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:Hn("Ctrl-Shift-Backspace",null),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.start.column=0,Nn.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:Hn("Ctrl-Shift-Delete",null),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.end.column=Number.MAX_VALUE,Nn.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:Hn("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(Nn){Nn.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:Hn("Ctrl-Delete","Alt-Delete"),exec:function(Nn){Nn.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:Hn("Shift-Tab","Shift-Tab"),exec:function(Nn){Nn.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:Hn("Tab","Tab"),exec:function(Nn){Nn.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:Hn("Ctrl-[","Ctrl-["),exec:function(Nn){Nn.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:Hn("Ctrl-]","Ctrl-]"),exec:function(Nn){Nn.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(Nn,Dn){Nn.insert(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(Nn,Dn){Nn.insert(zn.stringRepeat(Dn.text||"",Dn.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:Hn(null,"Ctrl-O"),exec:function(Nn){Nn.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:Hn("Alt-Shift-X","Ctrl-T"),exec:function(Nn){Nn.transposeLetters()},multiSelectAction:function(Nn){Nn.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:Hn("Ctrl-U","Ctrl-U"),exec:function(Nn){Nn.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:Hn("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(Nn){Nn.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:Hn(null,null),exec:function(Nn){Nn.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:Hn("Ctrl-Shift-L","Command-Shift-L"),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.start.column=Dn.end.column=0,Dn.end.row++,Nn.selection.setRange(Dn,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:Hn("Ctrl+F3","F3"),exec:function(Nn){Nn.openLink()}},{name:"joinlines",description:"Join lines",bindKey:Hn(null,null),exec:function(Nn){for(var Dn=Nn.selection.isBackwards(),In=Dn?Nn.selection.getSelectionLead():Nn.selection.getSelectionAnchor(),Bn=Dn?Nn.selection.getSelectionAnchor():Nn.selection.getSelectionLead(),Ln=Nn.session.doc.getLine(In.row).length,Pn=Nn.session.doc.getTextRange(Nn.selection.getRange()),Zn=Pn.replace(/\n\s*/," ").length,Jn=Nn.session.doc.getLine(In.row),Xn=In.row+1;Xn<=Bn.row+1;Xn++){var mi=zn.stringTrimLeft(zn.stringTrimRight(Nn.session.doc.getLine(Xn)));mi.length!==0&&(mi=" "+mi),Jn+=mi}Bn.row+1<Nn.session.doc.getLength()-1&&(Jn+=Nn.session.doc.getNewLineCharacter()),Nn.clearSelection(),Nn.session.doc.replace(new Qn(In.row,0,Bn.row+2,0),Jn),Zn>0?(Nn.selection.moveCursorTo(In.row,In.column),Nn.selection.selectTo(In.row,In.column+Zn)):(Ln=Nn.session.doc.getLine(In.row).length>Ln?Ln+1:Ln,Nn.selection.moveCursorTo(In.row,Ln))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:Hn(null,null),exec:function(Nn){var Dn=Nn.session.doc.getLength()-1,In=Nn.session.doc.getLine(Dn).length,Bn=Nn.selection.rangeList.ranges,Ln=[];Bn.length<1&&(Bn=[Nn.selection.getRange()]);for(var Pn=0;Pn<Bn.length;Pn++)Pn==Bn.length-1&&(Bn[Pn].end.row===Dn&&Bn[Pn].end.column===In||Ln.push(new Qn(Bn[Pn].end.row,Bn[Pn].end.column,Dn,In))),Pn===0?Bn[Pn].start.row===0&&Bn[Pn].start.column===0||Ln.push(new Qn(0,0,Bn[Pn].start.row,Bn[Pn].start.column)):Ln.push(new Qn(Bn[Pn-1].end.row,Bn[Pn-1].end.column,Bn[Pn].start.row,Bn[Pn].start.column));Nn.exitMultiSelectMode(),Nn.clearSelection();for(var Pn=0;Pn<Ln.length;Pn++)Nn.selection.addRange(Ln[Pn],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(Nn){Nn.selection.clearSelection(),Nn.navigateLineEnd(),Nn.insert(`
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(Nn){Nn.selection.clearSelection();var Dn=Nn.getCursorPosition();Nn.selection.moveTo(Dn.row-1,Number.MAX_VALUE),Nn.insert(`
|
202
|
+
`),Dn.row===0&&Nn.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(Nn){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),Nn.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:Hn("F1","F1"),exec:function(Nn){Nn.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:Hn(null,null),exec:function(Nn){Nn.prompt({$type:"modes"})},readOnly:!0}];for(var qn=1;qn<9;qn++)kn.commands.push({name:"foldToLevel"+qn,description:"Fold To Level "+qn,level:qn,exec:function(Nn){Nn.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(_n,kn,Wn){var zn=_n("../lib/keys"),Kn=_n("../mouse/default_gutter_handler").GutterTooltip,Qn=function(){function qn(Nn){this.editor=Nn,this.gutterLayer=Nn.renderer.$gutterLayer,this.element=Nn.renderer.$gutter,this.lines=Nn.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new Kn(this.editor)}return qn.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))},qn.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))},qn.prototype.$onGutterKeyDown=function(Nn){if(this.annotationTooltip.isOpen){Nn.preventDefault(),Nn.keyCode===zn.escape&&this.annotationTooltip.hideTooltip();return}if(Nn.target===this.element){if(Nn.keyCode!=zn.enter)return;Nn.preventDefault();var Dn=this.editor.getCursorPosition().row;this.editor.isRowVisible(Dn)||this.editor.scrollToLine(Dn,!0,!0),setTimeout((function(){var In=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),Bn=this.$findNearestFoldWidget(In),Ln=this.$findNearestAnnotation(In);if(!(Bn===null&&Ln===null)){if(Bn===null&&Ln!==null){this.activeRowIndex=Ln,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(Bn!==null&&Ln===null){this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(Ln-In)<Math.abs(Bn-In)){this.activeRowIndex=Ln,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(Nn),setTimeout((function(){this.editor._signal("gutterkeydown",new Hn(Nn,this))}).bind(this),10)},qn.prototype.$handleGutterKeyboardInteraction=function(Nn){if(Nn.keyCode===zn.tab){Nn.preventDefault();return}if(Nn.keyCode===zn.escape){Nn.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(Nn.keyCode===zn.up){switch(Nn.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(Nn.keyCode===zn.down){switch(Nn.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(Nn.keyCode===zn.left){Nn.preventDefault(),this.$switchLane("annotation");return}if(Nn.keyCode===zn.right){Nn.preventDefault(),this.$switchLane("fold");return}if(Nn.keyCode===zn.enter||Nn.keyCode===zn.space){switch(Nn.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var Dn=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),Nn),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==Dn&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(Dn),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var In=this.lines.cells[this.activeRowIndex].element.childNodes[2],Bn=In.getBoundingClientRect(),Ln=this.annotationTooltip.getElement().style;Ln.left=Bn.right+"px",Ln.top=Bn.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},qn.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()},qn.prototype.$isFoldWidgetVisible=function(Nn){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(Nn)),In=this.$getFoldWidget(Nn).style.display!=="none";return Dn&&In},qn.prototype.$isAnnotationVisible=function(Nn){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(Nn)),In=this.$getAnnotation(Nn).style.display!=="none";return Dn&&In},qn.prototype.$getFoldWidget=function(Nn){var Dn=this.lines.get(Nn),In=Dn.element;return In.childNodes[1]},qn.prototype.$getAnnotation=function(Nn){var Dn=this.lines.get(Nn),In=Dn.element;return In.childNodes[2]},qn.prototype.$findNearestFoldWidget=function(Nn){if(this.$isFoldWidgetVisible(Nn))return Nn;for(var Dn=0;Nn-Dn>0||Nn+Dn<this.lines.getLength()-1;){if(Dn++,Nn-Dn>=0&&this.$isFoldWidgetVisible(Nn-Dn))return Nn-Dn;if(Nn+Dn<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(Nn+Dn))return Nn+Dn}return null},qn.prototype.$findNearestAnnotation=function(Nn){if(this.$isAnnotationVisible(Nn))return Nn;for(var Dn=0;Nn-Dn>0||Nn+Dn<this.lines.getLength()-1;){if(Dn++,Nn-Dn>=0&&this.$isAnnotationVisible(Nn-Dn))return Nn-Dn;if(Nn+Dn<=this.lines.getLength()-1&&this.$isAnnotationVisible(Nn+Dn))return Nn+Dn}return null},qn.prototype.$focusFoldWidget=function(Nn){if(Nn!=null){var Dn=this.$getFoldWidget(Nn);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},qn.prototype.$focusAnnotation=function(Nn){if(Nn!=null){var Dn=this.$getAnnotation(Nn);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},qn.prototype.$blurFoldWidget=function(Nn){var Dn=this.$getFoldWidget(Nn);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},qn.prototype.$blurAnnotation=function(Nn){var Dn=this.$getAnnotation(Nn);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},qn.prototype.$moveFoldWidgetUp=function(){for(var Nn=this.activeRowIndex;Nn>0;)if(Nn--,this.$isFoldWidgetVisible(Nn)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusFoldWidget(this.activeRowIndex);return}},qn.prototype.$moveFoldWidgetDown=function(){for(var Nn=this.activeRowIndex;Nn<this.lines.getLength()-1;)if(Nn++,this.$isFoldWidgetVisible(Nn)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusFoldWidget(this.activeRowIndex);return}},qn.prototype.$moveAnnotationUp=function(){for(var Nn=this.activeRowIndex;Nn>0;)if(Nn--,this.$isAnnotationVisible(Nn)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusAnnotation(this.activeRowIndex);return}},qn.prototype.$moveAnnotationDown=function(){for(var Nn=this.activeRowIndex;Nn<this.lines.getLength()-1;)if(Nn++,this.$isAnnotationVisible(Nn)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusAnnotation(this.activeRowIndex);return}},qn.prototype.$switchLane=function(Nn){switch(Nn){case"annotation":if(this.activeLane==="annotation")break;var Dn=this.$findNearestAnnotation(this.activeRowIndex);if(Dn==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Dn,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var In=this.$findNearestFoldWidget(this.activeRowIndex);if(In==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=In,this.$focusFoldWidget(this.activeRowIndex);break}},qn.prototype.$rowIndexToRow=function(Nn){var Dn=this.lines.get(Nn);return Dn?Dn.row:null},qn.prototype.$rowToRowIndex=function(Nn){for(var Dn=0;Dn<this.lines.getLength();Dn++){var In=this.lines.get(Dn);if(In.row==Nn)return Dn}return null},qn}();kn.GutterKeyboardHandler=Qn;var Hn=function(){function qn(Nn,Dn){this.gutterKeyboardHandler=Dn,this.domEvent=Nn}return qn.prototype.getKey=function(){return zn.keyCodeToString(this.domEvent.keyCode)},qn.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},qn.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},qn.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},qn}();kn.GutterKeyboardEvent=Hn}),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(_n,kn,Wn){var zn=this&&this.__values||function(si){var ti=typeof Symbol=="function"&&Symbol.iterator,ai=ti&&si[ti],vi=0;if(ai)return ai.call(si);if(si&&typeof si.length=="number")return{next:function(){return si&&vi>=si.length&&(si=void 0),{value:si&&si[vi++],done:!si}}};throw new TypeError(ti?"Object is not iterable.":"Symbol.iterator is not defined.")},Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),Hn=_n("./lib/lang"),qn=_n("./lib/useragent"),Nn=_n("./keyboard/textinput").TextInput,Dn=_n("./mouse/mouse_handler").MouseHandler,In=_n("./mouse/fold_handler").FoldHandler,Bn=_n("./keyboard/keybinding").KeyBinding,Ln=_n("./edit_session").EditSession,Pn=_n("./search").Search,Zn=_n("./range").Range,Jn=_n("./lib/event_emitter").EventEmitter,Xn=_n("./commands/command_manager").CommandManager,mi=_n("./commands/default_commands").commands,li=_n("./config"),oi=_n("./token_iterator").TokenIterator,ei=_n("./keyboard/gutter_handler").GutterKeyboardHandler,fi=_n("./config").nls,gi=_n("./clipboard"),yi=_n("./lib/keys"),pi=function(){function si(ti,ai,vi){this.session,this.$toDestroy=[];var wi=ti.getContainerElement();this.container=wi,this.renderer=ti,this.id="editor"+ ++si.$uid,this.commands=new Xn(qn.isMac?"mac":"win",mi),typeof document=="object"&&(this.textInput=new Nn(ti.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new Dn(this),new In(this)),this.keyBinding=new Bn(this),this.$search=new Pn().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=Hn.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(xi,Si){Si._$emitInputEvent.schedule(31)}),this.setSession(ai||vi&&vi.session||new Ln("")),li.resetOptions(this),vi&&this.setOptions(vi),li._signal("editor",this)}return si.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},si.prototype.startOperation=function(ti){this.session.startOperation(ti)},si.prototype.endOperation=function(ti){this.session.endOperation(ti)},si.prototype.onStartOperation=function(ti){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,ti||(this.previousCommand=null)},si.prototype.onEndOperation=function(ti){if(this.curOp&&this.session){if(ti&&ti.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var ai=this.curOp.command,vi=ai&&ai.scrollIntoView;if(vi){switch(vi){case"center-animate":vi="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var wi=this.selection.getRange(),xi=this.renderer.layerConfig;(wi.start.row>=xi.lastRow||wi.end.row<=xi.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}vi=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},si.prototype.$historyTracker=function(ti){if(this.$mergeUndoDeltas){var ai=this.prevOp,vi=this.$mergeableCommands,wi=ai.command&&ti.command.name==ai.command.name;if(ti.command.name=="insertstring"){var xi=ti.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),wi=wi&&this.mergeNextCommand&&(!/\s/.test(xi)||/\s/.test(ai.args)),this.mergeNextCommand=!0}else wi=wi&&vi.indexOf(ti.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(wi=!1),wi?this.session.mergeUndoDeltas=!0:vi.indexOf(ti.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},si.prototype.setKeyboardHandler=function(ti,ai){if(ti&&typeof ti=="string"&&ti!="ace"){this.$keybindingId=ti;var vi=this;li.loadModule(["keybinding",ti],function(wi){vi.$keybindingId==ti&&vi.keyBinding.setKeyboardHandler(wi&&wi.handler),ai&&ai()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(ti),ai&&ai()},si.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},si.prototype.setSession=function(ti){if(this.session!=ti){this.curOp&&this.endOperation(),this.curOp={};var ai=this.session;if(ai){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 vi=this.session.getSelection();vi.off("changeCursor",this.$onCursorChange),vi.off("changeSelection",this.$onSelectionChange)}this.session=ti,ti?(this.$onDocumentChange=this.onDocumentChange.bind(this),ti.on("change",this.$onDocumentChange),this.renderer.setSession(ti),this.$onChangeMode=this.onChangeMode.bind(this),ti.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),ti.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),ti.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),ti.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),ti.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),ti.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=ti.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(ti)),this._signal("changeSession",{session:ti,oldSession:ai}),this.curOp=null,ai&&ai._signal("changeEditor",{oldEditor:this}),ai&&(ai.$editor=null),ti&&ti._signal("changeEditor",{editor:this}),ti&&(ti.$editor=this),ti&&!ti.destroyed&&ti.bgTokenizer.scheduleStart()}},si.prototype.getSession=function(){return this.session},si.prototype.setValue=function(ti,ai){return this.session.doc.setValue(ti),ai?ai==1?this.navigateFileEnd():ai==-1&&this.navigateFileStart():this.selectAll(),ti},si.prototype.getValue=function(){return this.session.getValue()},si.prototype.getSelection=function(){return this.selection},si.prototype.resize=function(ti){this.renderer.onResize(ti)},si.prototype.setTheme=function(ti,ai){this.renderer.setTheme(ti,ai)},si.prototype.getTheme=function(){return this.renderer.getTheme()},si.prototype.setStyle=function(ti){this.renderer.setStyle(ti)},si.prototype.unsetStyle=function(ti){this.renderer.unsetStyle(ti)},si.prototype.getFontSize=function(){return this.getOption("fontSize")||Qn.computedStyle(this.container).fontSize},si.prototype.setFontSize=function(ti){this.setOption("fontSize",ti)},si.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var ti=this;this.$highlightPending=!0,setTimeout(function(){ti.$highlightPending=!1;var ai=ti.session;if(!(!ai||ai.destroyed)){ai.$bracketHighlight&&(ai.$bracketHighlight.markerIds.forEach(function(Ii){ai.removeMarker(Ii)}),ai.$bracketHighlight=null);var vi=ti.getCursorPosition(),wi=ti.getKeyboardHandler(),xi=wi&&wi.$getDirectionForHighlight&&wi.$getDirectionForHighlight(ti),Si=ai.getMatchingBracketRanges(vi,xi);if(!Si){var Ei=new oi(ai,vi.row,vi.column),Ni=Ei.getCurrentToken();if(Ni&&/\b(?:tag-open|tag-name)/.test(Ni.type)){var Ri=ai.getMatchingTags(vi);Ri&&(Si=[Ri.openTagName.isEmpty()?Ri.openTag:Ri.openTagName,Ri.closeTagName.isEmpty()?Ri.closeTag:Ri.closeTagName])}}if(!Si&&ai.$mode.getMatching&&(Si=ai.$mode.getMatching(ti.session)),!Si){ti.getHighlightIndentGuides()&&ti.renderer.$textLayer.$highlightIndentGuide();return}var Fi="ace_bracket";Array.isArray(Si)?Si.length==1&&(Fi="ace_error_bracket"):Si=[Si],Si.length==2&&(Zn.comparePoints(Si[0].end,Si[1].start)==0?Si=[Zn.fromPoints(Si[0].start,Si[1].end)]:Zn.comparePoints(Si[0].start,Si[1].end)==0&&(Si=[Zn.fromPoints(Si[1].start,Si[0].end)])),ai.$bracketHighlight={ranges:Si,markerIds:Si.map(function(Ii){return ai.addMarker(Ii,Fi,"text")})},ti.getHighlightIndentGuides()&&ti.renderer.$textLayer.$highlightIndentGuide()}},50)}},si.prototype.focus=function(){this.textInput.focus()},si.prototype.isFocused=function(){return this.textInput.isFocused()},si.prototype.blur=function(){this.textInput.blur()},si.prototype.onFocus=function(ti){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",ti))},si.prototype.onBlur=function(ti){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",ti))},si.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},si.prototype.onDocumentChange=function(ti){var ai=this.session.$useWrapMode,vi=ti.start.row==ti.end.row?ti.end.row:1/0;this.renderer.updateLines(ti.start.row,vi,ai),this._signal("change",ti),this.$cursorChange()},si.prototype.onTokenizerUpdate=function(ti){var ai=ti.data;this.renderer.updateLines(ai.first,ai.last)},si.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},si.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},si.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},si.prototype.$updateHighlightActiveLine=function(){var ti=this.getSession(),ai;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(ai=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(ai=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(ai=!1)),ti.$highlightLineMarker&&!ai)ti.removeMarker(ti.$highlightLineMarker.id),ti.$highlightLineMarker=null;else if(!ti.$highlightLineMarker&&ai){var vi=new Zn(ai.row,ai.column,ai.row,1/0);vi.id=ti.addMarker(vi,"ace_active-line","screenLine"),ti.$highlightLineMarker=vi}else ai&&(ti.$highlightLineMarker.start.row=ai.row,ti.$highlightLineMarker.end.row=ai.row,ti.$highlightLineMarker.start.column=ai.column,ti._signal("changeBackMarker"))},si.prototype.onSelectionChange=function(ti){var ai=this.session;if(ai.$selectionMarker&&ai.removeMarker(ai.$selectionMarker),ai.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var vi=this.selection.getRange(),wi=this.getSelectionStyle();ai.$selectionMarker=ai.addMarker(vi,"ace_selection",wi)}var xi=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(xi),this._signal("changeSelection")},si.prototype.$getSelectionHighLightRegexp=function(){var ti=this.session,ai=this.getSelectionRange();if(!(ai.isEmpty()||ai.isMultiLine())){var vi=ai.start.column,wi=ai.end.column,xi=ti.getLine(ai.start.row),Si=xi.substring(vi,wi);if(!(Si.length>5e3||!/[\w\d]/.test(Si))){var Ei=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Si}),Ni=xi.substring(vi-1,wi+1);if(Ei.test(Ni))return Ei}}},si.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},si.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},si.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},si.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},si.prototype.onChangeMode=function(ti){this.renderer.updateText(),this._emit("changeMode",ti)},si.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},si.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},si.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},si.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},si.prototype.getCopyText=function(){var ti=this.getSelectedText(),ai=this.session.doc.getNewLineCharacter(),vi=!1;if(!ti&&this.$copyWithEmptySelection){vi=!0;for(var wi=this.selection.getAllRanges(),xi=0;xi<wi.length;xi++){var Si=wi[xi];xi&&wi[xi-1].start.row==Si.start.row||(ti+=this.session.getLine(Si.start.row)+ai)}}var Ei={text:ti};return this._signal("copy",Ei),gi.lineMode=vi?Ei.text:!1,Ei.text},si.prototype.onCopy=function(){this.commands.exec("copy",this)},si.prototype.onCut=function(){this.commands.exec("cut",this)},si.prototype.onPaste=function(ti,ai){var vi={text:ti,event:ai};this.commands.exec("paste",this,vi)},si.prototype.$handlePaste=function(ti){typeof ti=="string"&&(ti={text:ti}),this._signal("paste",ti);var ai=ti.text,vi=ai===gi.lineMode,wi=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)vi?wi.insert({row:this.selection.lead.row,column:0},ai):this.insert(ai);else if(vi)this.selection.rangeList.ranges.forEach(function(Fi){wi.insert({row:Fi.start.row,column:0},ai)});else{var xi=ai.split(/\r\n|\r|\n/),Si=this.selection.rangeList.ranges,Ei=xi.length==2&&(!xi[0]||!xi[1]);if(xi.length!=Si.length||Ei)return this.commands.exec("insertstring",this,ai);for(var Ni=Si.length;Ni--;){var Ri=Si[Ni];Ri.isEmpty()||wi.remove(Ri),wi.insert(Ri.start,xi[Ni])}}},si.prototype.execCommand=function(ti,ai){return this.commands.exec(ti,this,ai)},si.prototype.insert=function(ti,ai){var vi=this.session,wi=vi.getMode(),xi=this.getCursorPosition();if(this.getBehavioursEnabled()&&!ai){var Si=wi.transformAction(vi.getState(xi.row),"insertion",this,vi,ti);Si&&(ti!==Si.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),ti=Si.text)}if(ti==" "&&(ti=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&ti.indexOf(`
|
203
|
+
`)==-1){var Ei=Zn.fromPoints(xi,xi);Ei.end.column+=ti.length,this.session.remove(Ei)}}else{var Ei=this.getSelectionRange();xi=this.session.remove(Ei),this.clearSelection()}if(ti==`
|
204
|
+
`||ti==`\r
|
205
|
+
`){var Ii=vi.getLine(xi.row);if(xi.column>Ii.search(/\S|$/)){var Ni=Ii.substr(xi.column).search(/\S|$/);vi.doc.removeInLine(xi.row,xi.column,xi.column+Ni)}}this.clearSelection();var Ri=xi.column,Fi=vi.getState(xi.row),Ii=vi.getLine(xi.row),Bi=wi.checkOutdent(Fi,Ii,ti);if(vi.insert(xi,ti),Si&&Si.selection&&(Si.selection.length==2?this.selection.setSelectionRange(new Zn(xi.row,Ri+Si.selection[0],xi.row,Ri+Si.selection[1])):this.selection.setSelectionRange(new Zn(xi.row+Si.selection[0],Si.selection[1],xi.row+Si.selection[2],Si.selection[3]))),this.$enableAutoIndent){if(vi.getDocument().isNewLine(ti)){var Gi=wi.getNextLineIndent(Fi,Ii.slice(0,xi.column),vi.getTabString());vi.insert({row:xi.row+1,column:0},Gi)}Bi&&wi.autoOutdent(Fi,vi,xi.row)}},si.prototype.autoIndent=function(){for(var ti=this.session,ai=ti.getMode(),vi=this.selection.isEmpty()?[new Zn(0,0,ti.doc.getLength()-1,0)]:this.selection.getAllRanges(),wi="",xi="",Si="",Ei=ti.getTabString(),Ni=0;Ni<vi.length;Ni++)for(var Ri=vi[Ni].start.row,Fi=vi[Ni].end.row,Ii=Ri;Ii<=Fi;Ii++){Ii>0&&(wi=ti.getState(Ii-1),xi=ti.getLine(Ii-1),Si=ai.getNextLineIndent(wi,xi,Ei));var Bi=ti.getLine(Ii),Gi=ai.$getIndent(Bi);if(Si!==Gi){if(Gi.length>0){var Pi=new Zn(Ii,0,Ii,Gi.length);ti.remove(Pi)}Si.length>0&&ti.insert({row:Ii,column:0},Si)}ai.autoOutdent(wi,ti,Ii)}},si.prototype.onTextInput=function(ti,ai){if(!ai)return this.keyBinding.onTextInput(ti);this.startOperation({command:{name:"insertstring"}});var vi=this.applyComposition.bind(this,ti,ai);this.selection.rangeCount?this.forEachSelection(vi):vi(),this.endOperation()},si.prototype.applyComposition=function(ti,ai){if(ai.extendLeft||ai.extendRight){var vi=this.selection.getRange();vi.start.column-=ai.extendLeft,vi.end.column+=ai.extendRight,vi.start.column<0&&(vi.start.row--,vi.start.column+=this.session.getLine(vi.start.row).length+1),this.selection.setRange(vi),!ti&&!vi.isEmpty()&&this.remove()}if((ti||!this.selection.isEmpty())&&this.insert(ti,!0),ai.restoreStart||ai.restoreEnd){var vi=this.selection.getRange();vi.start.column-=ai.restoreStart,vi.end.column-=ai.restoreEnd,this.selection.setRange(vi)}},si.prototype.onCommandKey=function(ti,ai,vi){return this.keyBinding.onCommandKey(ti,ai,vi)},si.prototype.setOverwrite=function(ti){this.session.setOverwrite(ti)},si.prototype.getOverwrite=function(){return this.session.getOverwrite()},si.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},si.prototype.setScrollSpeed=function(ti){this.setOption("scrollSpeed",ti)},si.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},si.prototype.setDragDelay=function(ti){this.setOption("dragDelay",ti)},si.prototype.getDragDelay=function(){return this.getOption("dragDelay")},si.prototype.setSelectionStyle=function(ti){this.setOption("selectionStyle",ti)},si.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},si.prototype.setHighlightActiveLine=function(ti){this.setOption("highlightActiveLine",ti)},si.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},si.prototype.setHighlightGutterLine=function(ti){this.setOption("highlightGutterLine",ti)},si.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},si.prototype.setHighlightSelectedWord=function(ti){this.setOption("highlightSelectedWord",ti)},si.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},si.prototype.setAnimatedScroll=function(ti){this.renderer.setAnimatedScroll(ti)},si.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},si.prototype.setShowInvisibles=function(ti){this.renderer.setShowInvisibles(ti)},si.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},si.prototype.setDisplayIndentGuides=function(ti){this.renderer.setDisplayIndentGuides(ti)},si.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},si.prototype.setHighlightIndentGuides=function(ti){this.renderer.setHighlightIndentGuides(ti)},si.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},si.prototype.setShowPrintMargin=function(ti){this.renderer.setShowPrintMargin(ti)},si.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},si.prototype.setPrintMarginColumn=function(ti){this.renderer.setPrintMarginColumn(ti)},si.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},si.prototype.setReadOnly=function(ti){this.setOption("readOnly",ti)},si.prototype.getReadOnly=function(){return this.getOption("readOnly")},si.prototype.setBehavioursEnabled=function(ti){this.setOption("behavioursEnabled",ti)},si.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},si.prototype.setWrapBehavioursEnabled=function(ti){this.setOption("wrapBehavioursEnabled",ti)},si.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},si.prototype.setShowFoldWidgets=function(ti){this.setOption("showFoldWidgets",ti)},si.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},si.prototype.setFadeFoldWidgets=function(ti){this.setOption("fadeFoldWidgets",ti)},si.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},si.prototype.remove=function(ti){this.selection.isEmpty()&&(ti=="left"?this.selection.selectLeft():this.selection.selectRight());var ai=this.getSelectionRange();if(this.getBehavioursEnabled()){var vi=this.session,wi=vi.getState(ai.start.row),xi=vi.getMode().transformAction(wi,"deletion",this,vi,ai);if(ai.end.column===0){var Si=vi.getTextRange(ai);if(Si[Si.length-1]==`
|
206
|
+
`){var Ei=vi.getLine(ai.end.row);/^\s+$/.test(Ei)&&(ai.end.column=Ei.length)}}xi&&(ai=xi)}this.session.remove(ai),this.clearSelection()},si.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var ti=this.getSelectionRange();ti.start.column==ti.end.column&&ti.start.row==ti.end.row&&(ti.end.column=0,ti.end.row++),this.session.remove(ti),this.clearSelection()},si.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var ti=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(ti)},si.prototype.setGhostText=function(ti,ai){this.renderer.setGhostText(ti,ai)},si.prototype.removeGhostText=function(){this.renderer.removeGhostText()},si.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var ti=this.getCursorPosition(),ai=ti.column;if(ai!==0){var vi=this.session.getLine(ti.row),wi,xi;ai<vi.length?(wi=vi.charAt(ai)+vi.charAt(ai-1),xi=new Zn(ti.row,ai-1,ti.row,ai+1)):(wi=vi.charAt(ai-1)+vi.charAt(ai-2),xi=new Zn(ti.row,ai-2,ti.row,ai)),this.session.replace(xi,wi),this.session.selection.moveToPosition(xi.end)}}},si.prototype.toLowerCase=function(){var ti=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var ai=this.getSelectionRange(),vi=this.session.getTextRange(ai);this.session.replace(ai,vi.toLowerCase()),this.selection.setSelectionRange(ti)},si.prototype.toUpperCase=function(){var ti=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var ai=this.getSelectionRange(),vi=this.session.getTextRange(ai);this.session.replace(ai,vi.toUpperCase()),this.selection.setSelectionRange(ti)},si.prototype.indent=function(){var ti=this.session,ai=this.getSelectionRange();if(ai.start.row<ai.end.row){var vi=this.$getSelectedRows();ti.indentRows(vi.first,vi.last," ");return}else if(ai.start.column<ai.end.column){var wi=ti.getTextRange(ai);if(!/^\s+$/.test(wi)){var vi=this.$getSelectedRows();ti.indentRows(vi.first,vi.last," ");return}}var xi=ti.getLine(ai.start.row),Si=ai.start,Ei=ti.getTabSize(),Ni=ti.documentToScreenColumn(Si.row,Si.column);if(this.session.getUseSoftTabs())var Ri=Ei-Ni%Ei,Fi=Hn.stringRepeat(" ",Ri);else{for(var Ri=Ni%Ei;xi[ai.start.column-1]==" "&&Ri;)ai.start.column--,Ri--;this.selection.setSelectionRange(ai),Fi=" "}return this.insert(Fi)},si.prototype.blockIndent=function(){var ti=this.$getSelectedRows();this.session.indentRows(ti.first,ti.last," ")},si.prototype.blockOutdent=function(){var ti=this.session.getSelection();this.session.outdentRows(ti.getRange())},si.prototype.sortLines=function(){for(var ti=this.$getSelectedRows(),ai=this.session,vi=[],wi=ti.first;wi<=ti.last;wi++)vi.push(ai.getLine(wi));vi.sort(function(Ei,Ni){return Ei.toLowerCase()<Ni.toLowerCase()?-1:Ei.toLowerCase()>Ni.toLowerCase()?1:0});for(var xi=new Zn(0,0,0,0),wi=ti.first;wi<=ti.last;wi++){var Si=ai.getLine(wi);xi.start.row=wi,xi.end.row=wi,xi.end.column=Si.length,ai.replace(xi,vi[wi-ti.first])}},si.prototype.toggleCommentLines=function(){var ti=this.session.getState(this.getCursorPosition().row),ai=this.$getSelectedRows();this.session.getMode().toggleCommentLines(ti,this.session,ai.first,ai.last)},si.prototype.toggleBlockComment=function(){var ti=this.getCursorPosition(),ai=this.session.getState(ti.row),vi=this.getSelectionRange();this.session.getMode().toggleBlockComment(ai,this.session,vi,ti)},si.prototype.getNumberAt=function(ti,ai){var vi=/[\-]?[0-9]+(?:\.[0-9]+)?/g;vi.lastIndex=0;for(var wi=this.session.getLine(ti);vi.lastIndex<ai;){var xi=vi.exec(wi);if(xi.index<=ai&&xi.index+xi[0].length>=ai){var Si={value:xi[0],start:xi.index,end:xi.index+xi[0].length};return Si}}return null},si.prototype.modifyNumber=function(ti){var ai=this.selection.getCursor().row,vi=this.selection.getCursor().column,wi=new Zn(ai,vi-1,ai,vi),xi=this.session.getTextRange(wi);if(!isNaN(parseFloat(xi))&&isFinite(xi)){var Si=this.getNumberAt(ai,vi);if(Si){var Ei=Si.value.indexOf(".")>=0?Si.start+Si.value.indexOf(".")+1:Si.end,Ni=Si.start+Si.value.length-Ei,Ri=parseFloat(Si.value);Ri*=Math.pow(10,Ni),Ei!==Si.end&&vi<Ei?ti*=Math.pow(10,Si.end-vi-1):ti*=Math.pow(10,Si.end-vi),Ri+=ti,Ri/=Math.pow(10,Ni);var Fi=Ri.toFixed(Ni),Ii=new Zn(ai,Si.start,ai,Si.end);this.session.replace(Ii,Fi),this.moveCursorTo(ai,Math.max(Si.start+1,vi+Fi.length-Si.value.length))}}else this.toggleWord()},si.prototype.toggleWord=function(){var ti=this.selection.getCursor().row,ai=this.selection.getCursor().column;this.selection.selectWord();var vi=this.getSelectedText(),wi=this.selection.getWordRange().start.column,xi=vi.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Si=ai-wi-1;Si<0&&(Si=0);var Ei=0,Ni=0,Ri=this;vi.match(/[A-Za-z0-9_]+/)&&xi.forEach(function(or,yr){Ni=Ei+or.length,Si>=Ei&&Si<=Ni&&(vi=or,Ri.selection.clearSelection(),Ri.moveCursorTo(ti,Ei+wi),Ri.selection.selectTo(ti,Ni+wi)),Ei=Ni});for(var Fi=this.$toggleWordPairs,Ii,Bi=0;Bi<Fi.length;Bi++)for(var Gi=Fi[Bi],Pi=0;Pi<=1;Pi++){var Zi=+!Pi,lr=vi.match(new RegExp("^\\s?_?("+Hn.escapeRegExp(Gi[Pi])+")\\s?$","i"));if(lr){var gr=vi.match(new RegExp("([_]|^|\\s)("+Hn.escapeRegExp(lr[1])+")($|\\s)","g"));gr&&(Ii=vi.replace(new RegExp(Hn.escapeRegExp(Gi[Pi]),"i"),function(or){var yr=Gi[Zi];return or.toUpperCase()==or?yr=yr.toUpperCase():or.charAt(0).toUpperCase()==or.charAt(0)&&(yr=yr.substr(0,0)+Gi[Zi].charAt(0).toUpperCase()+yr.substr(1)),yr}),this.insert(Ii),Ii="")}}},si.prototype.findLinkAt=function(ti,ai){var vi,wi,xi=this.session.getLine(ti),Si=xi.split(/((?:https?|ftp):\/\/[\S]+)/),Ei=ai;Ei<0&&(Ei=0);var Ni=0,Ri=0,Fi;try{for(var Ii=zn(Si),Bi=Ii.next();!Bi.done;Bi=Ii.next()){var Gi=Bi.value;if(Ri=Ni+Gi.length,Ei>=Ni&&Ei<=Ri&&Gi.match(/((?:https?|ftp):\/\/[\S]+)/)){Fi=Gi.replace(/[\s:.,'";}\]]+$/,"");break}Ni=Ri}}catch(Pi){vi={error:Pi}}finally{try{Bi&&!Bi.done&&(wi=Ii.return)&&wi.call(Ii)}finally{if(vi)throw vi.error}}return Fi},si.prototype.openLink=function(){var ti=this.selection.getCursor(),ai=this.findLinkAt(ti.row,ti.column);return ai&&window.open(ai,"_blank"),ai!=null},si.prototype.removeLines=function(){var ti=this.$getSelectedRows();this.session.removeFullLines(ti.first,ti.last),this.clearSelection()},si.prototype.duplicateSelection=function(){var ti=this.selection,ai=this.session,vi=ti.getRange(),wi=ti.isBackwards();if(vi.isEmpty()){var xi=vi.start.row;ai.duplicateLines(xi,xi)}else{var Si=wi?vi.start:vi.end,Ei=ai.insert(Si,ai.getTextRange(vi));vi.start=Si,vi.end=Ei,ti.setSelectionRange(vi,wi)}},si.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},si.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},si.prototype.moveText=function(ti,ai,vi){return this.session.moveText(ti,ai,vi)},si.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},si.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},si.prototype.$moveLines=function(ti,ai){var vi,wi,xi=this.selection;if(!xi.inMultiSelectMode||this.inVirtualSelectionMode){var Si=xi.toOrientedRange();vi=this.$getSelectedRows(Si),wi=this.session.$moveLines(vi.first,vi.last,ai?0:ti),ai&&ti==-1&&(wi=0),Si.moveBy(wi,0),xi.fromOrientedRange(Si)}else{var Ei=xi.rangeList.ranges;xi.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Ni=0,Ri=0,Fi=Ei.length,Ii=0;Ii<Fi;Ii++){var Bi=Ii;Ei[Ii].moveBy(Ni,0),vi=this.$getSelectedRows(Ei[Ii]);for(var Gi=vi.first,Pi=vi.last;++Ii<Fi;){Ri&&Ei[Ii].moveBy(Ri,0);var Zi=this.$getSelectedRows(Ei[Ii]);if(ai&&Zi.first!=Pi||!ai&&Zi.first>Pi+1)break;Pi=Zi.last}for(Ii--,Ni=this.session.$moveLines(Gi,Pi,ai?0:ti),ai&&ti==-1&&(Bi=Ii+1);Bi<=Ii;)Ei[Bi].moveBy(Ni,0),Bi++;ai||(Ni=0),Ri+=Ni}xi.fromOrientedRange(xi.ranges[0]),xi.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},si.prototype.$getSelectedRows=function(ti){return ti=(ti||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(ti.start.row),last:this.session.getRowFoldEnd(ti.end.row)}},si.prototype.onCompositionStart=function(ti){this.renderer.showComposition(ti)},si.prototype.onCompositionUpdate=function(ti){this.renderer.setCompositionText(ti)},si.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},si.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},si.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},si.prototype.isRowVisible=function(ti){return ti>=this.getFirstVisibleRow()&&ti<=this.getLastVisibleRow()},si.prototype.isRowFullyVisible=function(ti){return ti>=this.renderer.getFirstFullyVisibleRow()&&ti<=this.renderer.getLastFullyVisibleRow()},si.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},si.prototype.$moveByPage=function(ti,ai){var vi=this.renderer,wi=this.renderer.layerConfig,xi=ti*Math.floor(wi.height/wi.lineHeight);ai===!0?this.selection.$moveSelection(function(){this.moveCursorBy(xi,0)}):ai===!1&&(this.selection.moveCursorBy(xi,0),this.selection.clearSelection());var Si=vi.scrollTop;vi.scrollBy(0,xi*wi.lineHeight),ai!=null&&vi.scrollCursorIntoView(null,.5),vi.animateScrolling(Si)},si.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},si.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},si.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},si.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},si.prototype.scrollPageDown=function(){this.$moveByPage(1)},si.prototype.scrollPageUp=function(){this.$moveByPage(-1)},si.prototype.scrollToRow=function(ti){this.renderer.scrollToRow(ti)},si.prototype.scrollToLine=function(ti,ai,vi,wi){this.renderer.scrollToLine(ti,ai,vi,wi)},si.prototype.centerSelection=function(){var ti=this.getSelectionRange(),ai={row:Math.floor(ti.start.row+(ti.end.row-ti.start.row)/2),column:Math.floor(ti.start.column+(ti.end.column-ti.start.column)/2)};this.renderer.alignCursor(ai,.5)},si.prototype.getCursorPosition=function(){return this.selection.getCursor()},si.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},si.prototype.getSelectionRange=function(){return this.selection.getRange()},si.prototype.selectAll=function(){this.selection.selectAll()},si.prototype.clearSelection=function(){this.selection.clearSelection()},si.prototype.moveCursorTo=function(ti,ai){this.selection.moveCursorTo(ti,ai)},si.prototype.moveCursorToPosition=function(ti){this.selection.moveCursorToPosition(ti)},si.prototype.jumpToMatching=function(ti,ai){var vi=this.getCursorPosition(),wi=new oi(this.session,vi.row,vi.column),xi=wi.getCurrentToken(),Si=0;xi&&xi.type.indexOf("tag-name")!==-1&&(xi=wi.stepBackward());var Ei=xi||wi.stepForward();if(Ei){var Ni,Ri=!1,Fi={},Ii=vi.column-Ei.start,Bi,Gi={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Ei.value.match(/[{}()\[\]]/g)){for(;Ii<Ei.value.length&&!Ri;Ii++)if(Gi[Ei.value[Ii]])switch(Bi=Gi[Ei.value[Ii]]+"."+Ei.type.replace("rparen","lparen"),isNaN(Fi[Bi])&&(Fi[Bi]=0),Ei.value[Ii]){case"(":case"[":case"{":Fi[Bi]++;break;case")":case"]":case"}":Fi[Bi]--,Fi[Bi]===-1&&(Ni="bracket",Ri=!0);break}}else Ei.type.indexOf("tag-name")!==-1&&(isNaN(Fi[Ei.value])&&(Fi[Ei.value]=0),xi.value==="<"&&Si>1?Fi[Ei.value]++:xi.value==="</"&&Fi[Ei.value]--,Fi[Ei.value]===-1&&(Ni="tag",Ri=!0));Ri||(xi=Ei,Si++,Ei=wi.stepForward(),Ii=0)}while(Ei&&!Ri);if(Ni){var Pi,Zi;if(Ni==="bracket")Pi=this.session.getBracketRange(vi),Pi||(Pi=new Zn(wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()+Ii-1,wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()+Ii-1),Zi=Pi.start,(ai||Zi.row===vi.row&&Math.abs(Zi.column-vi.column)<2)&&(Pi=this.session.getBracketRange(Zi)));else if(Ni==="tag"){if(!Ei||Ei.type.indexOf("tag-name")===-1)return;if(Pi=new Zn(wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()-2,wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()-2),Pi.compare(vi.row,vi.column)===0){var lr=this.session.getMatchingTags(vi);lr&&(lr.openTag.contains(vi.row,vi.column)?(Pi=lr.closeTag,Zi=Pi.start):(Pi=lr.openTag,lr.closeTag.start.row===vi.row&&lr.closeTag.start.column===vi.column?Zi=Pi.end:Zi=Pi.start))}Zi=Zi||Pi.start}Zi=Pi&&Pi.cursor||Zi,Zi&&(ti?Pi&&ai?this.selection.setRange(Pi):Pi&&Pi.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Zi.row,Zi.column):this.selection.moveTo(Zi.row,Zi.column))}}},si.prototype.gotoLine=function(ti,ai,vi){this.selection.clearSelection(),this.session.unfold({row:ti-1,column:ai||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(ti-1,ai||0),this.isRowFullyVisible(ti-1)||this.scrollToLine(ti-1,!0,vi)},si.prototype.navigateTo=function(ti,ai){this.selection.moveTo(ti,ai)},si.prototype.navigateUp=function(ti){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var ai=this.selection.anchor.getPosition();return this.moveCursorToPosition(ai)}this.selection.clearSelection(),this.selection.moveCursorBy(-ti||-1,0)},si.prototype.navigateDown=function(ti){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var ai=this.selection.anchor.getPosition();return this.moveCursorToPosition(ai)}this.selection.clearSelection(),this.selection.moveCursorBy(ti||1,0)},si.prototype.navigateLeft=function(ti){if(this.selection.isEmpty())for(ti=ti||1;ti--;)this.selection.moveCursorLeft();else{var ai=this.getSelectionRange().start;this.moveCursorToPosition(ai)}this.clearSelection()},si.prototype.navigateRight=function(ti){if(this.selection.isEmpty())for(ti=ti||1;ti--;)this.selection.moveCursorRight();else{var ai=this.getSelectionRange().end;this.moveCursorToPosition(ai)}this.clearSelection()},si.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},si.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},si.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},si.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},si.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},si.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},si.prototype.replace=function(ti,ai){ai&&this.$search.set(ai);var vi=this.$search.find(this.session),wi=0;return vi&&(this.$tryReplace(vi,ti)&&(wi=1),this.selection.setSelectionRange(vi),this.renderer.scrollSelectionIntoView(vi.start,vi.end)),wi},si.prototype.replaceAll=function(ti,ai){ai&&this.$search.set(ai);var vi=this.$search.findAll(this.session),wi=0;if(!vi.length)return wi;var xi=this.getSelectionRange();this.selection.moveTo(0,0);for(var Si=vi.length-1;Si>=0;--Si)this.$tryReplace(vi[Si],ti)&&wi++;return this.selection.setSelectionRange(xi),wi},si.prototype.$tryReplace=function(ti,ai){var vi=this.session.getTextRange(ti);return ai=this.$search.replace(vi,ai),ai!==null?(ti.end=this.session.replace(ti,ai),ti):null},si.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},si.prototype.find=function(ti,ai,vi){ai||(ai={}),typeof ti=="string"||ti instanceof RegExp?ai.needle=ti:typeof ti=="object"&&Kn.mixin(ai,ti);var wi=this.selection.getRange();ai.needle==null&&(ti=this.session.getTextRange(wi)||this.$search.$options.needle,ti||(wi=this.session.getWordRange(wi.start.row,wi.start.column),ti=this.session.getTextRange(wi)),this.$search.set({needle:ti})),this.$search.set(ai),ai.start||this.$search.set({start:wi});var xi=this.$search.find(this.session);if(ai.preventScroll)return xi;if(xi)return this.revealRange(xi,vi),xi;ai.backwards?wi.start=wi.end:wi.end=wi.start,this.selection.setRange(wi)},si.prototype.findNext=function(ti,ai){this.find({skipCurrent:!0,backwards:!1},ti,ai)},si.prototype.findPrevious=function(ti,ai){this.find(ti,{skipCurrent:!0,backwards:!0},ai)},si.prototype.revealRange=function(ti,ai){this.session.unfold(ti),this.selection.setSelectionRange(ti);var vi=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(ti.start,ti.end,.5),ai!==!1&&this.renderer.animateScrolling(vi)},si.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},si.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},si.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(ti){ti.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()},si.prototype.setAutoScrollEditorIntoView=function(ti){if(ti){var ai,vi=this,wi=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var xi=this.$scrollAnchor;xi.style.cssText="position:absolute",this.container.insertBefore(xi,this.container.firstChild);var Si=this.on("changeSelection",function(){wi=!0}),Ei=this.renderer.on("beforeRender",function(){wi&&(ai=vi.renderer.container.getBoundingClientRect())}),Ni=this.renderer.on("afterRender",function(){if(wi&&ai&&(vi.isFocused()||vi.searchBox&&vi.searchBox.isFocused())){var Ri=vi.renderer,Fi=Ri.$cursorLayer.$pixelPos,Ii=Ri.layerConfig,Bi=Fi.top-Ii.offset;Fi.top>=0&&Bi+ai.top<0?wi=!0:Fi.top<Ii.height&&Fi.top+ai.top+Ii.lineHeight>window.innerHeight?wi=!1:wi=null,wi!=null&&(xi.style.top=Bi+"px",xi.style.left=Fi.left+"px",xi.style.height=Ii.lineHeight+"px",xi.scrollIntoView(wi)),wi=ai=null}});this.setAutoScrollEditorIntoView=function(Ri){Ri||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Si),this.renderer.off("afterRender",Ni),this.renderer.off("beforeRender",Ei))}}},si.prototype.$resetCursorStyle=function(){var ti=this.$cursorStyle||"ace",ai=this.renderer.$cursorLayer;ai&&(ai.setSmoothBlinking(/smooth/.test(ti)),ai.isBlinking=!this.$readOnly&&ti!="wide",Qn.setCssClass(ai.element,"ace_slim-cursors",/slim/.test(ti)))},si.prototype.prompt=function(ti,ai,vi){var wi=this;li.loadModule("ace/ext/prompt",function(xi){xi.prompt(wi,ti,ai,vi)})},si}();pi.$uid=0,pi.prototype.curOp=null,pi.prototype.prevOp={},pi.prototype.$mergeableCommands=["backspace","del","insertstring"],pi.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"],["&&","||"],["==","!="]],Kn.implement(pi.prototype,Jn),li.defineOptions(pi.prototype,"editor",{selectionStyle:{set:function(si){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:si})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(si){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(si){this.textInput.setReadOnly(si),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(si){this.textInput.setCopyWithEmptySelection(si)},initialValue:!1},cursorStyle:{set:function(si){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(si){this.setAutoScrollEditorIntoView(si)}},keyboardHandler:{set:function(si){this.setKeyboardHandler(si)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(si){this.session.setValue(si)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(si){this.setSession(si)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(si){this.renderer.$gutterLayer.setShowLineNumbers(si),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),si&&this.$relativeLineNumbers?$i.attach(this):$i.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(si){this.$showLineNumbers&&si?$i.attach(this):$i.detach(this)}},placeholder:{set:function(si){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var ti=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(ti&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),Qn.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!ti&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),Qn.addCssClass(this.container,"ace_hasPlaceholder");var ai=Qn.createElement("div");ai.className="ace_placeholder",ai.textContent=this.$placeholder||"",this.renderer.placeholderNode=ai,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!ti&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(si){var ti={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(wi){wi.blur(),wi.renderer.scroller.focus()},readOnly:!0},ai=function(wi){if(wi.target==this.renderer.scroller&&wi.keyCode===yi.enter){wi.preventDefault();var xi=this.getCursorPosition().row;this.isRowVisible(xi)||this.scrollToLine(xi,!0,!0),this.focus()}},vi;si?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(qn.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",fi("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",fi("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",ai.bind(this)),this.commands.addCommand(ti),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",fi("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",fi("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),vi||(vi=new ei(this)),vi.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",ai.bind(this)),this.commands.removeCommand(ti),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),vi&&vi.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(si){this.$textInputAriaLabel=si},initialValue:""},enableMobileMenu:{set:function(si){this.$enableMobileMenu=si},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 $i={getText:function(si,ti){return(Math.abs(si.selection.lead.row-ti)||ti+1+(ti<9?"·":""))+""},getWidth:function(si,ti,ai){return Math.max(ti.toString().length,(ai.lastRow+1).toString().length,2)*ai.characterWidth},update:function(si,ti){ti.renderer.$loop.schedule(ti.renderer.CHANGE_GUTTER)},attach:function(si){si.renderer.$gutterLayer.$renderer=this,si.on("changeSelection",this.update),this.update(null,si)},detach:function(si){si.renderer.$gutterLayer.$renderer==this&&(si.renderer.$gutterLayer.$renderer=null),si.off("changeSelection",this.update),this.update(null,si)}};kn.Editor=pi}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=function(){function Qn(Hn,qn){this.element=Hn,this.canvasHeight=qn||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return Qn.prototype.moveContainer=function(Hn){zn.translate(this.element,0,-(Hn.firstRowScreen*Hn.lineHeight%this.canvasHeight)-Hn.offset*this.$offsetCoefficient)},Qn.prototype.pageChanged=function(Hn,qn){return Math.floor(Hn.firstRowScreen*Hn.lineHeight/this.canvasHeight)!==Math.floor(qn.firstRowScreen*qn.lineHeight/this.canvasHeight)},Qn.prototype.computeLineTop=function(Hn,qn,Nn){var Dn=qn.firstRowScreen*qn.lineHeight,In=Math.floor(Dn/this.canvasHeight),Bn=Nn.documentToScreenRow(Hn,0)*qn.lineHeight;return Bn-In*this.canvasHeight},Qn.prototype.computeLineHeight=function(Hn,qn,Nn){return qn.lineHeight*Nn.getRowLineCount(Hn)},Qn.prototype.getLength=function(){return this.cells.length},Qn.prototype.get=function(Hn){return this.cells[Hn]},Qn.prototype.shift=function(){this.$cacheCell(this.cells.shift())},Qn.prototype.pop=function(){this.$cacheCell(this.cells.pop())},Qn.prototype.push=function(Hn){if(Array.isArray(Hn)){this.cells.push.apply(this.cells,Hn);for(var qn=zn.createFragment(this.element),Nn=0;Nn<Hn.length;Nn++)qn.appendChild(Hn[Nn].element);this.element.appendChild(qn)}else this.cells.push(Hn),this.element.appendChild(Hn.element)},Qn.prototype.unshift=function(Hn){if(Array.isArray(Hn)){this.cells.unshift.apply(this.cells,Hn);for(var qn=zn.createFragment(this.element),Nn=0;Nn<Hn.length;Nn++)qn.appendChild(Hn[Nn].element);this.element.firstChild?this.element.insertBefore(qn,this.element.firstChild):this.element.appendChild(qn)}else this.cells.unshift(Hn),this.element.insertAdjacentElement("afterbegin",Hn.element)},Qn.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},Qn.prototype.$cacheCell=function(Hn){Hn&&(Hn.element.remove(),this.cellCache.push(Hn))},Qn.prototype.createCell=function(Hn,qn,Nn,Dn){var In=this.cellCache.pop();if(!In){var Bn=zn.createElement("div");Dn&&Dn(Bn),this.element.appendChild(Bn),In={element:Bn,text:"",row:Hn}}return In.row=Hn,In},Qn}();kn.Lines=Kn}),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(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=_n("../lib/oop"),Qn=_n("../lib/lang"),Hn=_n("../lib/event_emitter").EventEmitter,qn=_n("./lines").Lines,Nn=_n("../config").nls,Dn=function(){function Bn(Ln){this.element=zn.createElement("div"),this.element.className="ace_layer ace_gutter-layer",Ln.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new qn(this.element),this.$lines.$offsetCoefficient=1}return Bn.prototype.setSession=function(Ln){this.session&&this.session.off("change",this.$updateAnnotations),this.session=Ln,Ln&&Ln.on("change",this.$updateAnnotations)},Bn.prototype.addGutterDecoration=function(Ln,Pn){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(Ln,Pn)},Bn.prototype.removeGutterDecoration=function(Ln,Pn){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(Ln,Pn)},Bn.prototype.setAnnotations=function(Ln){this.$annotations=[];for(var Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.row,Xn=this.$annotations[Jn];Xn||(Xn=this.$annotations[Jn]={text:[],type:[],displayText:[]});var mi=Zn.text,li=Zn.text,oi=Zn.type;mi=mi?Qn.escapeHTML(mi):Zn.html||"",li=li||Zn.html||"",Xn.text.indexOf(mi)===-1&&(Xn.text.push(mi),Xn.type.push(oi),Xn.displayText.push(li));var ei=Zn.className;ei?Xn.className=ei:oi==="error"?Xn.className=" ace_error":oi==="security"&&!/\bace_error\b/.test(Xn.className)?Xn.className=" ace_security":oi==="warning"&&!/\bace_(error|security)\b/.test(Xn.className)?Xn.className=" ace_warning":oi==="info"&&!Xn.className?Xn.className=" ace_info":oi==="hint"&&!Xn.className&&(Xn.className=" ace_hint")}},Bn.prototype.$updateAnnotations=function(Ln){if(this.$annotations.length){var Pn=Ln.start.row,Zn=Ln.end.row-Pn;if(Zn!==0)if(Ln.action=="remove")this.$annotations.splice(Pn,Zn+1,null);else{var Jn=new Array(Zn+1);Jn.unshift(Pn,1),this.$annotations.splice.apply(this.$annotations,Jn)}}},Bn.prototype.update=function(Ln){this.config=Ln;var Pn=this.session,Zn=Ln.firstRow,Jn=Math.min(Ln.lastRow+Ln.gutterOffset,Pn.getLength()-1);this.oldLastRow=Jn,this.config=Ln,this.$lines.moveContainer(Ln),this.$updateCursorRow();for(var Xn=Pn.getNextFoldLine(Zn),mi=Xn?Xn.start.row:1/0,li=null,oi=-1,ei=Zn;;){if(ei>mi&&(ei=Xn.end.row+1,Xn=Pn.getNextFoldLine(ei,Xn),mi=Xn?Xn.start.row:1/0),ei>Jn){for(;this.$lines.getLength()>oi+1;)this.$lines.pop();break}li=this.$lines.get(++oi),li?li.row=ei:(li=this.$lines.createCell(ei,Ln,this.session,In),this.$lines.push(li)),this.$renderCell(li,Ln,Xn,ei),ei++}this._signal("afterRender"),this.$updateGutterWidth(Ln)},Bn.prototype.$updateGutterWidth=function(Ln){var Pn=this.session,Zn=Pn.gutterRenderer||this.$renderer,Jn=Pn.$firstLineNumber,Xn=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||Pn.$useWrapMode)&&(Xn=Pn.getLength()+Jn-1);var mi=Zn?Zn.getWidth(Pn,Xn,Ln):Xn.toString().length*Ln.characterWidth,li=this.$padding||this.$computePadding();mi+=li.left+li.right,mi!==this.gutterWidth&&!isNaN(mi)&&(this.gutterWidth=mi,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",mi))},Bn.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var Ln=this.session.selection.getCursor();this.$cursorRow!==Ln.row&&(this.$cursorRow=Ln.row)}},Bn.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var Ln=this.session.selection.cursor.row;if(this.$cursorRow=Ln,!(this.$cursorCell&&this.$cursorCell.row==Ln)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var Pn=this.$lines.cells;this.$cursorCell=null;for(var Zn=0;Zn<Pn.length;Zn++){var Jn=Pn[Zn];if(Jn.row>=this.$cursorRow){if(Jn.row>this.$cursorRow){var Xn=this.session.getFoldLine(this.$cursorRow);if(Zn>0&&Xn&&Xn.start.row==Pn[Zn-1].row)Jn=Pn[Zn-1];else break}Jn.element.className="ace_gutter-active-line "+Jn.element.className,this.$cursorCell=Jn;break}}}}},Bn.prototype.scrollLines=function(Ln){var Pn=this.config;if(this.config=Ln,this.$updateCursorRow(),this.$lines.pageChanged(Pn,Ln))return this.update(Ln);this.$lines.moveContainer(Ln);var Zn=Math.min(Ln.lastRow+Ln.gutterOffset,this.session.getLength()-1),Jn=this.oldLastRow;if(this.oldLastRow=Zn,!Pn||Jn<Ln.firstRow)return this.update(Ln);if(Zn<Pn.firstRow)return this.update(Ln);if(Pn.firstRow<Ln.firstRow)for(var Xn=this.session.getFoldedRowCount(Pn.firstRow,Ln.firstRow-1);Xn>0;Xn--)this.$lines.shift();if(Jn>Zn)for(var Xn=this.session.getFoldedRowCount(Zn+1,Jn);Xn>0;Xn--)this.$lines.pop();Ln.firstRow<Pn.firstRow&&this.$lines.unshift(this.$renderLines(Ln,Ln.firstRow,Pn.firstRow-1)),Zn>Jn&&this.$lines.push(this.$renderLines(Ln,Jn+1,Zn)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(Ln)},Bn.prototype.$renderLines=function(Ln,Pn,Zn){for(var Jn=[],Xn=Pn,mi=this.session.getNextFoldLine(Xn),li=mi?mi.start.row:1/0;Xn>li&&(Xn=mi.end.row+1,mi=this.session.getNextFoldLine(Xn,mi),li=mi?mi.start.row:1/0),!(Xn>Zn);){var oi=this.$lines.createCell(Xn,Ln,this.session,In);this.$renderCell(oi,Ln,mi,Xn),Jn.push(oi),Xn++}return Jn},Bn.prototype.$renderCell=function(Ln,Pn,Zn,Jn){var Xn=Ln.element,mi=this.session,li=Xn.childNodes[0],oi=Xn.childNodes[1],ei=Xn.childNodes[2],fi=ei.firstChild,gi=mi.$firstLineNumber,yi=mi.$breakpoints,pi=mi.$decorations,$i=mi.gutterRenderer||this.$renderer,si=this.$showFoldWidgets&&mi.foldWidgets,ti=Zn?Zn.start.row:Number.MAX_VALUE,ai=Pn.lineHeight+"px",vi=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",wi=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",xi=($i?$i.getText(mi,Jn):Jn+gi).toString();if(this.$highlightGutterLine&&(Jn==this.$cursorRow||Zn&&Jn<this.$cursorRow&&Jn>=ti&&this.$cursorRow<=Zn.end.row)&&(vi+="ace_gutter-active-line ",this.$cursorCell!=Ln&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=Ln)),yi[Jn]&&(vi+=yi[Jn]),pi[Jn]&&(vi+=pi[Jn]),this.$annotations[Jn]&&Jn!==ti&&(vi+=this.$annotations[Jn].className),si){var Si=si[Jn];Si==null&&(Si=si[Jn]=mi.getFoldWidget(Jn))}if(Si){var Ei="ace_fold-widget ace_"+Si,Ni=Si=="start"&&Jn==ti&&Jn<Zn.end.row;if(Ni){Ei+=" ace_closed";for(var Ri="",Fi=!1,Ii=Jn+1;Ii<=Zn.end.row;Ii++)if(this.$annotations[Ii]){if(this.$annotations[Ii].className===" ace_error"){Fi=!0,Ri=" ace_error_fold";break}this.$annotations[Ii].className===" ace_security"?(Fi=!0,Ri=" ace_security_fold"):this.$annotations[Ii].className===" ace_warning"&&Ri!==" ace_security_fold"&&(Fi=!0,Ri=" ace_warning_fold")}vi+=Ri}else Ei+=" ace_open";oi.className!=Ei&&(oi.className=Ei),zn.setStyle(oi.style,"height",ai),zn.setStyle(oi.style,"display","inline-block"),oi.setAttribute("role","button"),oi.setAttribute("tabindex","-1");var Bi=mi.getFoldWidgetRange(Jn);Bi?oi.setAttribute("aria-label",Nn("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Bi.start.row+1,Bi.end.row+1])):Zn?oi.setAttribute("aria-label",Nn("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[Zn.start.row+1,Zn.end.row+1])):oi.setAttribute("aria-label",Nn("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[Jn+1])),Ni?(oi.setAttribute("aria-expanded","false"),oi.setAttribute("title",Nn("gutter.code-folding.closed.title","Unfold code"))):(oi.setAttribute("aria-expanded","true"),oi.setAttribute("title",Nn("gutter.code-folding.open.title","Fold code")))}else oi&&(zn.setStyle(oi.style,"display","none"),oi.setAttribute("tabindex","0"),oi.removeAttribute("role"),oi.removeAttribute("aria-label"));if(Fi&&this.$showFoldedAnnotations){ei.className="ace_gutter_annotation",fi.className=wi,fi.className+=Ri,zn.setStyle(fi.style,"height",ai),zn.setStyle(ei.style,"display","block"),zn.setStyle(ei.style,"height",ai);var Gi;switch(Ri){case" ace_error_fold":Gi=Nn("gutter.annotation.aria-label.error","Error, read annotations row $0",[xi]);break;case" ace_security_fold":Gi=Nn("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[xi]);break;case" ace_warning_fold":Gi=Nn("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[xi]);break}ei.setAttribute("aria-label",Gi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else if(this.$annotations[Jn]){ei.className="ace_gutter_annotation",fi.className=wi,this.$useSvgGutterIcons?fi.className+=this.$annotations[Jn].className:Xn.classList.add(this.$annotations[Jn].className.replace(" ","")),zn.setStyle(fi.style,"height",ai),zn.setStyle(ei.style,"display","block"),zn.setStyle(ei.style,"height",ai);var Gi;switch(this.$annotations[Jn].className){case" ace_error":Gi=Nn("gutter.annotation.aria-label.error","Error, read annotations row $0",[xi]);break;case" ace_security":Gi=Nn("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[xi]);break;case" ace_warning":Gi=Nn("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[xi]);break;case" ace_info":Gi=Nn("gutter.annotation.aria-label.info","Info, read annotations row $0",[xi]);break;case" ace_hint":Gi=Nn("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[xi]);break}ei.setAttribute("aria-label",Gi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else zn.setStyle(ei.style,"display","none"),ei.removeAttribute("aria-label"),ei.removeAttribute("role"),ei.setAttribute("tabindex","0");return xi!==li.data&&(li.data=xi),Xn.className!=vi&&(Xn.className=vi),zn.setStyle(Ln.element.style,"height",this.$lines.computeLineHeight(Jn,Pn,mi)+"px"),zn.setStyle(Ln.element.style,"top",this.$lines.computeLineTop(Jn,Pn,mi)+"px"),Ln.text=xi,ei.style.display==="none"&&oi.style.display==="none"?Ln.element.setAttribute("aria-hidden",!0):Ln.element.setAttribute("aria-hidden",!1),Ln},Bn.prototype.setHighlightGutterLine=function(Ln){this.$highlightGutterLine=Ln},Bn.prototype.setShowLineNumbers=function(Ln){this.$renderer=!Ln&&{getWidth:function(){return 0},getText:function(){return""}}},Bn.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},Bn.prototype.setShowFoldWidgets=function(Ln){Ln?zn.addCssClass(this.element,"ace_folding-enabled"):zn.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=Ln,this.$padding=null},Bn.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},Bn.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var Ln=zn.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(Ln.borderLeftWidth)||0)+(parseInt(Ln.paddingLeft)||0)+1,this.$padding.right=(parseInt(Ln.borderRightWidth)||0)+(parseInt(Ln.paddingRight)||0),this.$padding},Bn.prototype.getRegion=function(Ln){var Pn=this.$padding||this.$computePadding(),Zn=this.element.getBoundingClientRect();if(Ln.x<Pn.left+Zn.left)return"markers";if(this.$showFoldWidgets&&Ln.x>Zn.right-Pn.right)return"foldWidgets"},Bn}();Dn.prototype.$fixedWidth=!1,Dn.prototype.$highlightGutterLine=!0,Dn.prototype.$renderer="",Dn.prototype.$showLineNumbers=!0,Dn.prototype.$showFoldWidgets=!0,Kn.implement(Dn.prototype,Hn);function In(Bn){var Ln=document.createTextNode("");Bn.appendChild(Ln);var Pn=zn.createElement("span");Bn.appendChild(Pn);var Zn=zn.createElement("span");Bn.appendChild(Zn);var Jn=zn.createElement("span");return Zn.appendChild(Jn),Bn}kn.Gutter=Dn}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("../range").Range,Kn=_n("../lib/dom"),Qn=function(){function qn(Nn){this.element=Kn.createElement("div"),this.element.className="ace_layer ace_marker-layer",Nn.appendChild(this.element)}return qn.prototype.setPadding=function(Nn){this.$padding=Nn},qn.prototype.setSession=function(Nn){this.session=Nn},qn.prototype.setMarkers=function(Nn){this.markers=Nn},qn.prototype.elt=function(Nn,Dn){var In=this.i!=-1&&this.element.childNodes[this.i];In?this.i++:(In=document.createElement("div"),this.element.appendChild(In),this.i=-1),In.style.cssText=Dn,In.className=Nn},qn.prototype.update=function(Nn){if(Nn){this.config=Nn,this.i=0;var Dn;for(var In in this.markers){var Bn=this.markers[In];if(!Bn.range){Bn.update(Dn,this,this.session,Nn);continue}var Ln=Bn.range.clipRows(Nn.firstRow,Nn.lastRow);if(!Ln.isEmpty())if(Ln=Ln.toScreenRange(this.session),Bn.renderer){var Pn=this.$getTop(Ln.start.row,Nn),Zn=this.$padding+Ln.start.column*Nn.characterWidth;Bn.renderer(Dn,Ln,Zn,Pn,Nn)}else Bn.type=="fullLine"?this.drawFullLineMarker(Dn,Ln,Bn.clazz,Nn):Bn.type=="screenLine"?this.drawScreenLineMarker(Dn,Ln,Bn.clazz,Nn):Ln.isMultiLine()?Bn.type=="text"?this.drawTextMarker(Dn,Ln,Bn.clazz,Nn):this.drawMultiLineMarker(Dn,Ln,Bn.clazz,Nn):this.drawSingleLineMarker(Dn,Ln,Bn.clazz+" ace_start ace_br15",Nn)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},qn.prototype.$getTop=function(Nn,Dn){return(Nn-Dn.firstRowScreen)*Dn.lineHeight},qn.prototype.drawTextMarker=function(Nn,Dn,In,Bn,Ln){for(var Pn=this.session,Zn=Dn.start.row,Jn=Dn.end.row,Xn=Zn,mi=0,li=0,oi=Pn.getScreenLastRowColumn(Xn),ei=new zn(Xn,Dn.start.column,Xn,li);Xn<=Jn;Xn++)ei.start.row=ei.end.row=Xn,ei.start.column=Xn==Zn?Dn.start.column:Pn.getRowWrapIndent(Xn),ei.end.column=oi,mi=li,li=oi,oi=Xn+1<Jn?Pn.getScreenLastRowColumn(Xn+1):Xn==Jn?0:Dn.end.column,this.drawSingleLineMarker(Nn,ei,In+(Xn==Zn?" ace_start":"")+" ace_br"+Hn(Xn==Zn||Xn==Zn+1&&Dn.start.column,mi<li,li>oi,Xn==Jn),Bn,Xn==Jn?0:1,Ln)},qn.prototype.drawMultiLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$padding,Zn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),Xn=Pn+Dn.start.column*Bn.characterWidth;if(Ln=Ln||"",this.session.$bidiHandler.isBidiRow(Dn.start.row)){var mi=Dn.clone();mi.end.row=mi.start.row,mi.end.column=this.session.getLine(mi.start.row).length,this.drawBidiSingleLineMarker(Nn,mi,In+" ace_br1 ace_start",Bn,null,Ln)}else this.elt(In+" ace_br1 ace_start","height:"+Zn+"px;right:"+Pn+"px;top:"+Jn+"px;left:"+Xn+"px;"+(Ln||""));if(this.session.$bidiHandler.isBidiRow(Dn.end.row)){var mi=Dn.clone();mi.start.row=mi.end.row,mi.start.column=0,this.drawBidiSingleLineMarker(Nn,mi,In+" ace_br12",Bn,null,Ln)}else{Jn=this.$getTop(Dn.end.row,Bn);var li=Dn.end.column*Bn.characterWidth;this.elt(In+" ace_br12","height:"+Zn+"px;width:"+li+"px;top:"+Jn+"px;left:"+Pn+"px;"+(Ln||""))}if(Zn=(Dn.end.row-Dn.start.row-1)*Bn.lineHeight,!(Zn<=0)){Jn=this.$getTop(Dn.start.row+1,Bn);var oi=(Dn.start.column?1:0)|(Dn.end.column?0:8);this.elt(In+(oi?" ace_br"+oi:""),"height:"+Zn+"px;right:"+Pn+"px;top:"+Jn+"px;left:"+Pn+"px;"+(Ln||""))}},qn.prototype.drawSingleLineMarker=function(Nn,Dn,In,Bn,Ln,Pn){if(this.session.$bidiHandler.isBidiRow(Dn.start.row))return this.drawBidiSingleLineMarker(Nn,Dn,In,Bn,Ln,Pn);var Zn=Bn.lineHeight,Jn=(Dn.end.column+(Ln||0)-Dn.start.column)*Bn.characterWidth,Xn=this.$getTop(Dn.start.row,Bn),mi=this.$padding+Dn.start.column*Bn.characterWidth;this.elt(In,"height:"+Zn+"px;width:"+Jn+"px;top:"+Xn+"px;left:"+mi+"px;"+(Pn||""))},qn.prototype.drawBidiSingleLineMarker=function(Nn,Dn,In,Bn,Ln,Pn){var Zn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),Xn=this.$padding,mi=this.session.$bidiHandler.getSelections(Dn.start.column,Dn.end.column);mi.forEach(function(li){this.elt(In,"height:"+Zn+"px;width:"+(li.width+(Ln||0))+"px;top:"+Jn+"px;left:"+(Xn+li.left)+"px;"+(Pn||""))},this)},qn.prototype.drawFullLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$getTop(Dn.start.row,Bn),Zn=Bn.lineHeight;Dn.start.row!=Dn.end.row&&(Zn+=this.$getTop(Dn.end.row,Bn)-Pn),this.elt(In,"height:"+Zn+"px;top:"+Pn+"px;left:0;right:0;"+(Ln||""))},qn.prototype.drawScreenLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$getTop(Dn.start.row,Bn),Zn=Bn.lineHeight;this.elt(In,"height:"+Zn+"px;top:"+Pn+"px;left:0;right:0;"+(Ln||""))},qn}();Qn.prototype.$padding=0;function Hn(qn,Nn,Dn,In){return(qn?1:0)|(Nn?2:0)|(Dn?4:0)|(In?8:0)}kn.Marker=Qn}),ace.define("ace/layer/text_util",["require","exports","module"],function(_n,kn,Wn){var zn=new Set(["text","rparen","lparen"]);kn.isTextToken=function(Kn){return zn.has(Kn)}}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/dom"),Qn=_n("../lib/lang"),Hn=_n("./lines").Lines,qn=_n("../lib/event_emitter").EventEmitter,Nn=_n("../config").nls,Dn=_n("./text_util").isTextToken,In=function(){function Bn(Ln){this.dom=Kn,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",Ln.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new Hn(this.element)}return Bn.prototype.$updateEolChar=function(){var Ln=this.session.doc,Pn=Ln.getNewLineCharacter()==`
|
208
|
+
`&&Ln.getNewLineMode()!="windows",Zn=Pn?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=Zn)return this.EOL_CHAR=Zn,!0},Bn.prototype.setPadding=function(Ln){this.$padding=Ln,this.element.style.margin="0 "+Ln+"px"},Bn.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},Bn.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},Bn.prototype.$setFontMetrics=function(Ln){this.$fontMetrics=Ln,this.$fontMetrics.on("changeCharacterSize",(function(Pn){this._signal("changeCharacterSize",Pn)}).bind(this)),this.$pollSizeChanges()},Bn.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},Bn.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},Bn.prototype.setSession=function(Ln){this.session=Ln,Ln&&this.$computeTabString()},Bn.prototype.setShowInvisibles=function(Ln){return this.showInvisibles==Ln?!1:(this.showInvisibles=Ln,typeof Ln=="string"?(this.showSpaces=/tab/i.test(Ln),this.showTabs=/space/i.test(Ln),this.showEOL=/eol/i.test(Ln)):this.showSpaces=this.showTabs=this.showEOL=Ln,this.$computeTabString(),!0)},Bn.prototype.setDisplayIndentGuides=function(Ln){return this.displayIndentGuides==Ln?!1:(this.displayIndentGuides=Ln,this.$computeTabString(),!0)},Bn.prototype.setHighlightIndentGuides=function(Ln){return this.$highlightIndentGuides===Ln?!1:(this.$highlightIndentGuides=Ln,Ln)},Bn.prototype.$computeTabString=function(){var Ln=this.session.getTabSize();this.tabSize=Ln;for(var Pn=this.$tabStrings=[0],Zn=1;Zn<Ln+1;Zn++)if(this.showTabs){var Jn=this.dom.createElement("span");Jn.className="ace_invisible ace_invisible_tab",Jn.textContent=Qn.stringRepeat(this.TAB_CHAR,Zn),Pn.push(Jn)}else Pn.push(this.dom.createTextNode(Qn.stringRepeat(" ",Zn),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var Xn="ace_indent-guide",mi=this.showSpaces?" ace_invisible ace_invisible_space":"",li=this.showSpaces?Qn.stringRepeat(this.SPACE_CHAR,this.tabSize):Qn.stringRepeat(" ",this.tabSize),oi=this.showTabs?" ace_invisible ace_invisible_tab":"",ei=this.showTabs?Qn.stringRepeat(this.TAB_CHAR,this.tabSize):li,Jn=this.dom.createElement("span");Jn.className=Xn+mi,Jn.textContent=li,this.$tabStrings[" "]=Jn;var Jn=this.dom.createElement("span");Jn.className=Xn+oi,Jn.textContent=ei,this.$tabStrings[" "]=Jn}},Bn.prototype.updateLines=function(Ln,Pn,Zn){if(this.config.lastRow!=Ln.lastRow||this.config.firstRow!=Ln.firstRow)return this.update(Ln);this.config=Ln;for(var Jn=Math.max(Pn,Ln.firstRow),Xn=Math.min(Zn,Ln.lastRow),mi=this.element.childNodes,li=0,oi=Ln.firstRow;oi<Jn;oi++){var ei=this.session.getFoldLine(oi);if(ei)if(ei.containsRow(Jn)){Jn=ei.start.row;break}else oi=ei.end.row;li++}for(var fi=!1,oi=Jn,ei=this.session.getNextFoldLine(oi),gi=ei?ei.start.row:1/0;oi>gi&&(oi=ei.end.row+1,ei=this.session.getNextFoldLine(oi,ei),gi=ei?ei.start.row:1/0),!(oi>Xn);){var yi=mi[li++];if(yi){this.dom.removeChildren(yi),this.$renderLine(yi,oi,oi==gi?ei:!1),fi&&(yi.style.top=this.$lines.computeLineTop(oi,Ln,this.session)+"px");var pi=Ln.lineHeight*this.session.getRowLength(oi)+"px";yi.style.height!=pi&&(fi=!0,yi.style.height=pi)}oi++}if(fi)for(;li<this.$lines.cells.length;){var $i=this.$lines.cells[li++];$i.element.style.top=this.$lines.computeLineTop($i.row,Ln,this.session)+"px"}},Bn.prototype.scrollLines=function(Ln){var Pn=this.config;if(this.config=Ln,this.$lines.pageChanged(Pn,Ln))return this.update(Ln);this.$lines.moveContainer(Ln);var Zn=Ln.lastRow,Jn=Pn?Pn.lastRow:-1;if(!Pn||Jn<Ln.firstRow)return this.update(Ln);if(Zn<Pn.firstRow)return this.update(Ln);if(!Pn||Pn.lastRow<Ln.firstRow)return this.update(Ln);if(Ln.lastRow<Pn.firstRow)return this.update(Ln);if(Pn.firstRow<Ln.firstRow)for(var Xn=this.session.getFoldedRowCount(Pn.firstRow,Ln.firstRow-1);Xn>0;Xn--)this.$lines.shift();if(Pn.lastRow>Ln.lastRow)for(var Xn=this.session.getFoldedRowCount(Ln.lastRow+1,Pn.lastRow);Xn>0;Xn--)this.$lines.pop();Ln.firstRow<Pn.firstRow&&this.$lines.unshift(this.$renderLinesFragment(Ln,Ln.firstRow,Pn.firstRow-1)),Ln.lastRow>Pn.lastRow&&this.$lines.push(this.$renderLinesFragment(Ln,Pn.lastRow+1,Ln.lastRow)),this.$highlightIndentGuide()},Bn.prototype.$renderLinesFragment=function(Ln,Pn,Zn){for(var Jn=[],Xn=Pn,mi=this.session.getNextFoldLine(Xn),li=mi?mi.start.row:1/0;Xn>li&&(Xn=mi.end.row+1,mi=this.session.getNextFoldLine(Xn,mi),li=mi?mi.start.row:1/0),!(Xn>Zn);){var oi=this.$lines.createCell(Xn,Ln,this.session),ei=oi.element;this.dom.removeChildren(ei),Kn.setStyle(ei.style,"height",this.$lines.computeLineHeight(Xn,Ln,this.session)+"px"),Kn.setStyle(ei.style,"top",this.$lines.computeLineTop(Xn,Ln,this.session)+"px"),this.$renderLine(ei,Xn,Xn==li?mi:!1),this.$useLineGroups()?ei.className="ace_line_group":ei.className="ace_line",Jn.push(oi),Xn++}return Jn},Bn.prototype.update=function(Ln){this.$lines.moveContainer(Ln),this.config=Ln;for(var Pn=Ln.firstRow,Zn=Ln.lastRow,Jn=this.$lines;Jn.getLength();)Jn.pop();Jn.push(this.$renderLinesFragment(Ln,Pn,Zn))},Bn.prototype.$renderToken=function(Ln,Pn,Zn,Jn){for(var Xn=this,mi=/(\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,li=this.dom.createFragment(this.element),oi,ei=0;oi=mi.exec(Jn);){var fi=oi[1],gi=oi[2],yi=oi[3],pi=oi[4],$i=oi[5];if(!(!Xn.showSpaces&&gi)){var si=ei!=oi.index?Jn.slice(ei,oi.index):"";if(ei=oi.index+oi[0].length,si&&li.appendChild(this.dom.createTextNode(si,this.element)),fi){var ti=Xn.session.getScreenTabSize(Pn+oi.index);li.appendChild(Xn.$tabStrings[ti].cloneNode(!0)),Pn+=ti-1}else if(gi)if(Xn.showSpaces){var ai=this.dom.createElement("span");ai.className="ace_invisible ace_invisible_space",ai.textContent=Qn.stringRepeat(Xn.SPACE_CHAR,gi.length),li.appendChild(ai)}else li.appendChild(this.dom.createTextNode(gi,this.element));else if(yi){var ai=this.dom.createElement("span");ai.className="ace_invisible ace_invisible_space ace_invalid",ai.textContent=Qn.stringRepeat(Xn.SPACE_CHAR,yi.length),li.appendChild(ai)}else if(pi){Pn+=1;var ai=this.dom.createElement("span");ai.style.width=Xn.config.characterWidth*2+"px",ai.className=Xn.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",ai.textContent=Xn.showSpaces?Xn.SPACE_CHAR:pi,li.appendChild(ai)}else if($i){Pn+=1;var ai=this.dom.createElement("span");ai.style.width=Xn.config.characterWidth*2+"px",ai.className="ace_cjk",ai.textContent=$i,li.appendChild(ai)}}}if(li.appendChild(this.dom.createTextNode(ei?Jn.slice(ei):Jn,this.element)),Dn(Zn.type))Ln.appendChild(li);else{var vi="ace_"+Zn.type.replace(/\./g," ace_"),ai=this.dom.createElement("span");Zn.type=="fold"&&(ai.style.width=Zn.value.length*this.config.characterWidth+"px",ai.setAttribute("title",Nn("inline-fold.closed.title","Unfold code"))),ai.className=vi,ai.appendChild(li),Ln.appendChild(ai)}return Pn+Jn.length},Bn.prototype.renderIndentGuide=function(Ln,Pn,Zn){var Jn=Pn.search(this.$indentGuideRe);if(Jn<=0||Jn>=Zn)return Pn;if(Pn[0]==" "){Jn-=Jn%this.tabSize;for(var Xn=Jn/this.tabSize,mi=0;mi<Xn;mi++)Ln.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),Pn.substr(Jn)}else if(Pn[0]==" "){for(var mi=0;mi<Jn;mi++)Ln.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),Pn.substr(Jn)}return this.$highlightIndentGuide(),Pn},Bn.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var Ln=this.session.doc.$lines;if(Ln){var Pn=this.session.selection.getCursor(),Zn=/^\s*/.exec(this.session.doc.getLine(Pn.row))[0].length,Jn=Math.floor(Zn/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:Jn,start:Pn.row};var Xn=this.session.$bracketHighlight;if(Xn){for(var mi=this.session.$bracketHighlight.ranges,li=0;li<mi.length;li++)if(Pn.row!==mi[li].start.row){this.$highlightIndentGuideMarker.end=mi[li].start.row,Pn.row>mi[li].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&Ln[Pn.row]!==""&&Pn.column===Ln[Pn.row].length){this.$highlightIndentGuideMarker.dir=1;for(var li=Pn.row+1;li<Ln.length;li++){var oi=Ln[li],ei=/^\s*/.exec(oi)[0].length;if(oi!==""&&(this.$highlightIndentGuideMarker.end=li,ei<=Zn))break}}this.$renderHighlightIndentGuide()}}},Bn.prototype.$clearActiveIndentGuide=function(){for(var Ln=this.$lines.cells,Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.element.childNodes;if(Jn.length>0){for(var Xn=0;Xn<Jn.length;Xn++)if(Jn[Xn].classList&&Jn[Xn].classList.contains("ace_indent-guide-active")){Jn[Xn].classList.remove("ace_indent-guide-active");break}}}},Bn.prototype.$setIndentGuideActive=function(Ln,Pn){var Zn=this.session.doc.getLine(Ln.row);if(Zn!==""){var Jn=Ln.element.childNodes;if(Jn){var Xn=Jn[Pn-1];Xn&&Xn.classList&&Xn.classList.contains("ace_indent-guide")&&Xn.classList.add("ace_indent-guide-active")}}},Bn.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var Ln=this.$lines.cells;this.$clearActiveIndentGuide();var Pn=this.$highlightIndentGuideMarker.indentLevel;if(Pn!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var Zn=0;Zn<Ln.length;Zn++){var Jn=Ln[Zn];if(this.$highlightIndentGuideMarker.end&&Jn.row>=this.$highlightIndentGuideMarker.start+1){if(Jn.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,Pn)}}else for(var Zn=Ln.length-1;Zn>=0;Zn--){var Jn=Ln[Zn];if(this.$highlightIndentGuideMarker.end&&Jn.row<this.$highlightIndentGuideMarker.start){if(Jn.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,Pn)}}}},Bn.prototype.$createLineElement=function(Ln){var Pn=this.dom.createElement("div");return Pn.className="ace_line",Pn.style.height=this.config.lineHeight+"px",Pn},Bn.prototype.$renderWrappedLine=function(Ln,Pn,Zn){var Jn=0,Xn=0,mi=Zn[0],li=0,oi=this.$createLineElement();Ln.appendChild(oi);for(var ei=0;ei<Pn.length;ei++){var fi=Pn[ei],gi=fi.value;if(ei==0&&this.displayIndentGuides){if(Jn=gi.length,gi=this.renderIndentGuide(oi,gi,mi),!gi)continue;Jn-=gi.length}if(Jn+gi.length<mi)li=this.$renderToken(oi,li,fi,gi),Jn+=gi.length;else{for(;Jn+gi.length>=mi;)li=this.$renderToken(oi,li,fi,gi.substring(0,mi-Jn)),gi=gi.substring(mi-Jn),Jn=mi,oi=this.$createLineElement(),Ln.appendChild(oi),oi.appendChild(this.dom.createTextNode(Qn.stringRepeat(" ",Zn.indent),this.element)),Xn++,li=0,mi=Zn[Xn]||Number.MAX_VALUE;gi.length!=0&&(Jn+=gi.length,li=this.$renderToken(oi,li,fi,gi))}}Zn[Zn.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(oi,li,null,"",!0)},Bn.prototype.$renderSimpleLine=function(Ln,Pn){for(var Zn=0,Jn=0;Jn<Pn.length;Jn++){var Xn=Pn[Jn],mi=Xn.value;if(!(Jn==0&&this.displayIndentGuides&&(mi=this.renderIndentGuide(Ln,mi),!mi))){if(Zn+mi.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(Ln,Zn,Xn,mi);Zn=this.$renderToken(Ln,Zn,Xn,mi)}}},Bn.prototype.$renderOverflowMessage=function(Ln,Pn,Zn,Jn,Xn){Zn&&this.$renderToken(Ln,Pn,Zn,Jn.slice(0,this.MAX_LINE_LENGTH-Pn));var mi=this.dom.createElement("span");mi.className="ace_inline_button ace_keyword ace_toggle_wrap",mi.textContent=Xn?"<hide>":"<click to see more...>",Ln.appendChild(mi)},Bn.prototype.$renderLine=function(Ln,Pn,Zn){if(!Zn&&Zn!=!1&&(Zn=this.session.getFoldLine(Pn)),Zn)var Jn=this.$getFoldLineTokens(Pn,Zn);else var Jn=this.session.getTokens(Pn);var Xn=Ln;if(Jn.length){var mi=this.session.getRowSplitData(Pn);if(mi&&mi.length){this.$renderWrappedLine(Ln,Jn,mi);var Xn=Ln.lastChild}else{var Xn=Ln;this.$useLineGroups()&&(Xn=this.$createLineElement(),Ln.appendChild(Xn)),this.$renderSimpleLine(Xn,Jn)}}else this.$useLineGroups()&&(Xn=this.$createLineElement(),Ln.appendChild(Xn));if(this.showEOL&&Xn){Zn&&(Pn=Zn.end.row);var li=this.dom.createElement("span");li.className="ace_invisible ace_invisible_eol",li.textContent=Pn==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,Xn.appendChild(li)}},Bn.prototype.$getFoldLineTokens=function(Ln,Pn){var Zn=this.session,Jn=[];function Xn(li,oi,ei){for(var fi=0,gi=0;gi+li[fi].value.length<oi;)if(gi+=li[fi].value.length,fi++,fi==li.length)return;if(gi!=oi){var yi=li[fi].value.substring(oi-gi);yi.length>ei-oi&&(yi=yi.substring(0,ei-oi)),Jn.push({type:li[fi].type,value:yi}),gi=oi+yi.length,fi+=1}for(;gi<ei&&fi<li.length;){var yi=li[fi].value;yi.length+gi>ei?Jn.push({type:li[fi].type,value:yi.substring(0,ei-gi)}):Jn.push(li[fi]),gi+=yi.length,fi+=1}}var mi=Zn.getTokens(Ln);return Pn.walk(function(li,oi,ei,fi,gi){li!=null?Jn.push({type:"fold",value:li}):(gi&&(mi=Zn.getTokens(oi)),mi.length&&Xn(mi,fi,ei))},Pn.end.row,this.session.getLine(Pn.end.row).length),Jn},Bn.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},Bn}();In.prototype.EOF_CHAR="¶",In.prototype.EOL_CHAR_LF="¬",In.prototype.EOL_CHAR_CRLF="¤",In.prototype.EOL_CHAR=In.prototype.EOL_CHAR_LF,In.prototype.TAB_CHAR="—",In.prototype.SPACE_CHAR="·",In.prototype.$padding=0,In.prototype.MAX_LINE_LENGTH=1e4,In.prototype.showInvisibles=!1,In.prototype.showSpaces=!1,In.prototype.showTabs=!1,In.prototype.showEOL=!1,In.prototype.displayIndentGuides=!0,In.prototype.$highlightIndentGuides=!0,In.prototype.$tabStrings=[],In.prototype.destroy={},In.prototype.onChangeTabSize=In.prototype.$computeTabString,zn.implement(In.prototype,qn),kn.Text=In}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=function(){function Qn(Hn){this.element=zn.createElement("div"),this.element.className="ace_layer ace_cursor-layer",Hn.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),zn.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return Qn.prototype.$updateOpacity=function(Hn){for(var qn=this.cursors,Nn=qn.length;Nn--;)zn.setStyle(qn[Nn].style,"opacity",Hn?"":"0")},Qn.prototype.$startCssAnimation=function(){for(var Hn=this.cursors,qn=Hn.length;qn--;)Hn[qn].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&zn.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},Qn.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,zn.removeCssClass(this.element,"ace_animate-blinking")},Qn.prototype.setPadding=function(Hn){this.$padding=Hn},Qn.prototype.setSession=function(Hn){this.session=Hn},Qn.prototype.setBlinking=function(Hn){Hn!=this.isBlinking&&(this.isBlinking=Hn,this.restartTimer())},Qn.prototype.setBlinkInterval=function(Hn){Hn!=this.blinkInterval&&(this.blinkInterval=Hn,this.restartTimer())},Qn.prototype.setSmoothBlinking=function(Hn){Hn!=this.smoothBlinking&&(this.smoothBlinking=Hn,zn.setCssClass(this.element,"ace_smooth-blinking",Hn),this.$updateCursors(!0),this.restartTimer())},Qn.prototype.addCursor=function(){var Hn=zn.createElement("div");return Hn.className="ace_cursor",this.element.appendChild(Hn),this.cursors.push(Hn),Hn},Qn.prototype.removeCursor=function(){if(this.cursors.length>1){var Hn=this.cursors.pop();return Hn.parentNode.removeChild(Hn),Hn}},Qn.prototype.hideCursor=function(){this.isVisible=!1,zn.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Qn.prototype.showCursor=function(){this.isVisible=!0,zn.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Qn.prototype.restartTimer=function(){var Hn=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,zn.removeCssClass(this.element,"ace_smooth-blinking")),Hn(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&zn.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),zn.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var qn=(function(){this.timeoutId=setTimeout(function(){Hn(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){Hn(!0),qn()},this.blinkInterval),qn()}},Qn.prototype.getPixelPosition=function(Hn,qn){if(!this.config||!this.session)return{left:0,top:0};Hn||(Hn=this.session.selection.getCursor());var Nn=this.session.documentToScreenPosition(Hn),Dn=this.$padding+(this.session.$bidiHandler.isBidiRow(Nn.row,Hn.row)?this.session.$bidiHandler.getPosLeft(Nn.column):Nn.column*this.config.characterWidth),In=(Nn.row-(qn?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:Dn,top:In}},Qn.prototype.isCursorInView=function(Hn,qn){return Hn.top>=0&&Hn.top<qn.maxHeight},Qn.prototype.update=function(Hn){this.config=Hn;var qn=this.session.$selectionMarkers,Nn=0,Dn=0;(qn===void 0||qn.length===0)&&(qn=[{cursor:null}]);for(var Nn=0,In=qn.length;Nn<In;Nn++){var Bn=this.getPixelPosition(qn[Nn].cursor,!0);if(!((Bn.top>Hn.height+Hn.offset||Bn.top<0)&&Nn>1)){var Ln=this.cursors[Dn++]||this.addCursor(),Pn=Ln.style;this.drawCursor?this.drawCursor(Ln,Bn,Hn,qn[Nn],this.session):this.isCursorInView(Bn,Hn)?(zn.setStyle(Pn,"display","block"),zn.translate(Ln,Bn.left,Bn.top),zn.setStyle(Pn,"width",Math.round(Hn.characterWidth)+"px"),zn.setStyle(Pn,"height",Hn.lineHeight+"px")):zn.setStyle(Pn,"display","none")}}for(;this.cursors.length>Dn;)this.removeCursor();var Zn=this.session.getOverwrite();this.$setOverwrite(Zn),this.$pixelPos=Bn,this.restartTimer()},Qn.prototype.$setOverwrite=function(Hn){Hn!=this.overwrite&&(this.overwrite=Hn,Hn?zn.addCssClass(this.element,"ace_overwrite-cursors"):zn.removeCssClass(this.element,"ace_overwrite-cursors"))},Qn.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},Qn}();Kn.prototype.$padding=0,Kn.prototype.drawCursor=null,kn.Cursor=Kn}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var Ln=function(Pn,Zn){return Ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jn,Xn){Jn.__proto__=Xn}||function(Jn,Xn){for(var mi in Xn)Object.prototype.hasOwnProperty.call(Xn,mi)&&(Jn[mi]=Xn[mi])},Ln(Pn,Zn)};return function(Pn,Zn){if(typeof Zn!="function"&&Zn!==null)throw new TypeError("Class extends value "+String(Zn)+" is not a constructor or null");Ln(Pn,Zn);function Jn(){this.constructor=Pn}Pn.prototype=Zn===null?Object.create(Zn):(Jn.prototype=Zn.prototype,new Jn)}}(),Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),Hn=_n("./lib/event"),qn=_n("./lib/event_emitter").EventEmitter,Nn=32768,Dn=function(){function Ln(Pn,Zn){this.element=Qn.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+Zn,this.inner=Qn.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),Pn.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Hn.addListener(this.element,"scroll",this.onScroll.bind(this)),Hn.addListener(this.element,"mousedown",Hn.preventDefault)}return Ln.prototype.setVisible=function(Pn){this.element.style.display=Pn?"":"none",this.isVisible=Pn,this.coeff=1},Ln}();Kn.implement(Dn.prototype,qn);var In=function(Ln){zn(Pn,Ln);function Pn(Zn,Jn){var Xn=Ln.call(this,Zn,"-v")||this;return Xn.scrollTop=0,Xn.scrollHeight=0,Jn.$scrollbarWidth=Xn.width=Qn.scrollbarWidth(Zn.ownerDocument),Xn.inner.style.width=Xn.element.style.width=(Xn.width||15)+5+"px",Xn.$minWidth=0,Xn}return Pn.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var Zn=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-Zn)/(this.coeff-Zn)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},Pn.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Pn.prototype.setHeight=function(Zn){this.element.style.height=Zn+"px"},Pn.prototype.setScrollHeight=function(Zn){this.scrollHeight=Zn,Zn>Nn?(this.coeff=Nn/Zn,Zn=Nn):this.coeff!=1&&(this.coeff=1),this.inner.style.height=Zn+"px"},Pn.prototype.setScrollTop=function(Zn){this.scrollTop!=Zn&&(this.skipEvent=!0,this.scrollTop=Zn,this.element.scrollTop=Zn*this.coeff)},Pn}(Dn);In.prototype.setInnerHeight=In.prototype.setScrollHeight;var Bn=function(Ln){zn(Pn,Ln);function Pn(Zn,Jn){var Xn=Ln.call(this,Zn,"-h")||this;return Xn.scrollLeft=0,Xn.height=Jn.$scrollbarWidth,Xn.inner.style.height=Xn.element.style.height=(Xn.height||15)+5+"px",Xn}return Pn.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},Pn.prototype.getHeight=function(){return this.isVisible?this.height:0},Pn.prototype.setWidth=function(Zn){this.element.style.width=Zn+"px"},Pn.prototype.setInnerWidth=function(Zn){this.inner.style.width=Zn+"px"},Pn.prototype.setScrollWidth=function(Zn){this.inner.style.width=Zn+"px"},Pn.prototype.setScrollLeft=function(Zn){this.scrollLeft!=Zn&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=Zn)},Pn}(Dn);kn.ScrollBar=In,kn.ScrollBarV=In,kn.ScrollBarH=Bn,kn.VScrollBar=In,kn.HScrollBar=Bn}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(_n,kn,Wn){var zn=this&&this.__extends||function(){var Bn=function(Ln,Pn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Zn,Jn){Zn.__proto__=Jn}||function(Zn,Jn){for(var Xn in Jn)Object.prototype.hasOwnProperty.call(Jn,Xn)&&(Zn[Xn]=Jn[Xn])},Bn(Ln,Pn)};return function(Ln,Pn){if(typeof Pn!="function"&&Pn!==null)throw new TypeError("Class extends value "+String(Pn)+" is not a constructor or null");Bn(Ln,Pn);function Zn(){this.constructor=Ln}Ln.prototype=Pn===null?Object.create(Pn):(Zn.prototype=Pn.prototype,new Zn)}}(),Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),Hn=_n("./lib/event"),qn=_n("./lib/event_emitter").EventEmitter;Qn.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 Nn=function(){function Bn(Ln,Pn){this.element=Qn.createElement("div"),this.element.className="ace_sb"+Pn,this.inner=Qn.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,Ln.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Hn.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return Bn.prototype.setVisible=function(Ln){this.element.style.display=Ln?"":"none",this.isVisible=Ln,this.coeff=1},Bn}();Kn.implement(Nn.prototype,qn);var Dn=function(Bn){zn(Ln,Bn);function Ln(Pn,Zn){var Jn=Bn.call(this,Pn,"-v")||this;return Jn.scrollTop=0,Jn.scrollHeight=0,Jn.parent=Pn,Jn.width=Jn.VScrollWidth,Jn.renderer=Zn,Jn.inner.style.width=Jn.element.style.width=(Jn.width||15)+"px",Jn.$minWidth=0,Jn}return Ln.prototype.onMouseDown=function(Pn,Zn){if(Pn==="mousedown"&&!(Hn.getButton(Zn)!==0||Zn.detail===2)){if(Zn.target===this.inner){var Jn=this,Xn=Zn.clientY,mi=function(pi){Xn=pi.clientY},li=function(){clearInterval(gi)},oi=Zn.clientY,ei=this.thumbTop,fi=function(){if(Xn!==void 0){var pi=Jn.scrollTopFromThumbTop(ei+Xn-oi);pi!==Jn.scrollTop&&Jn._emit("scroll",{data:pi})}};Hn.capture(this.inner,mi,li);var gi=setInterval(fi,20);return Hn.preventDefault(Zn)}var yi=Zn.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(yi)}),Hn.preventDefault(Zn)}},Ln.prototype.getHeight=function(){return this.height},Ln.prototype.scrollTopFromThumbTop=function(Pn){var Zn=Pn*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return Zn=Zn>>0,Zn<0?Zn=0:Zn>this.pageHeight-this.viewHeight&&(Zn=this.pageHeight-this.viewHeight),Zn},Ln.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Ln.prototype.setHeight=function(Pn){this.height=Math.max(0,Pn),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},Ln.prototype.setScrollHeight=function(Pn,Zn){this.pageHeight===Pn&&!Zn||(this.pageHeight=Pn,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})))},Ln.prototype.setScrollTop=function(Pn){this.scrollTop=Pn,Pn<0&&(Pn=0),this.thumbTop=Pn*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},Ln}(Nn);Dn.prototype.setInnerHeight=Dn.prototype.setScrollHeight;var In=function(Bn){zn(Ln,Bn);function Ln(Pn,Zn){var Jn=Bn.call(this,Pn,"-h")||this;return Jn.scrollLeft=0,Jn.scrollWidth=0,Jn.height=Jn.HScrollHeight,Jn.inner.style.height=Jn.element.style.height=(Jn.height||12)+"px",Jn.renderer=Zn,Jn}return Ln.prototype.onMouseDown=function(Pn,Zn){if(Pn==="mousedown"&&!(Hn.getButton(Zn)!==0||Zn.detail===2)){if(Zn.target===this.inner){var Jn=this,Xn=Zn.clientX,mi=function(pi){Xn=pi.clientX},li=function(){clearInterval(gi)},oi=Zn.clientX,ei=this.thumbLeft,fi=function(){if(Xn!==void 0){var pi=Jn.scrollLeftFromThumbLeft(ei+Xn-oi);pi!==Jn.scrollLeft&&Jn._emit("scroll",{data:pi})}};Hn.capture(this.inner,mi,li);var gi=setInterval(fi,20);return Hn.preventDefault(Zn)}var yi=Zn.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(yi)}),Hn.preventDefault(Zn)}},Ln.prototype.getHeight=function(){return this.isVisible?this.height:0},Ln.prototype.scrollLeftFromThumbLeft=function(Pn){var Zn=Pn*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return Zn=Zn>>0,Zn<0?Zn=0:Zn>this.pageWidth-this.viewWidth&&(Zn=this.pageWidth-this.viewWidth),Zn},Ln.prototype.setWidth=function(Pn){this.width=Math.max(0,Pn),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},Ln.prototype.setScrollWidth=function(Pn,Zn){this.pageWidth===Pn&&!Zn||(this.pageWidth=Pn,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})))},Ln.prototype.setScrollLeft=function(Pn){this.scrollLeft=Pn,Pn<0&&(Pn=0),this.thumbLeft=Pn*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},Ln}(Nn);In.prototype.setInnerWidth=In.prototype.setScrollWidth,kn.ScrollBar=Dn,kn.ScrollBarV=Dn,kn.ScrollBarH=In,kn.VScrollBar=Dn,kn.HScrollBar=In}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(_n,kn,Wn){var zn=_n("./lib/event"),Kn=function(){function Qn(Hn,qn){this.onRender=Hn,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=qn||window;var Nn=this;this._flush=function(Dn){Nn.pending=!1;var In=Nn.changes;if(In&&(zn.blockIdle(100),Nn.changes=0,Nn.onRender(In)),Nn.changes){if(Nn.$recursionLimit--<0)return;Nn.schedule()}else Nn.$recursionLimit=2}}return Qn.prototype.schedule=function(Hn){this.changes=this.changes|Hn,this.changes&&!this.pending&&(zn.nextFrame(this._flush),this.pending=!0)},Qn.prototype.clear=function(Hn){var qn=this.changes;return this.changes=0,qn},Qn}();kn.RenderLoop=Kn}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/dom"),Qn=_n("../lib/lang"),Hn=_n("../lib/event"),qn=_n("../lib/useragent"),Nn=_n("../lib/event_emitter").EventEmitter,Dn=512,In=typeof ResizeObserver=="function",Bn=200,Ln=function(){function Pn(Zn){this.el=Kn.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),Zn.appendChild(this.el),this.$measureNode.textContent=Qn.stringRepeat("X",Dn),this.$characterSize={width:0,height:0},In?this.$addObserver():this.checkForSizeChanges()}return Pn.prototype.$setMeasureNodeStyles=function(Zn,Jn){Zn.width=Zn.height="auto",Zn.left=Zn.top="0px",Zn.visibility="hidden",Zn.position="absolute",Zn.whiteSpace="pre",qn.isIE<8?Zn["font-family"]="inherit":Zn.font="inherit",Zn.overflow=Jn?"hidden":"visible"},Pn.prototype.checkForSizeChanges=function(Zn){if(Zn===void 0&&(Zn=this.$measureSizes()),Zn&&(this.$characterSize.width!==Zn.width||this.$characterSize.height!==Zn.height)){this.$measureNode.style.fontWeight="bold";var Jn=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=Zn,this.charSizes=Object.create(null),this.allowBoldFonts=Jn&&Jn.width===Zn.width&&Jn.height===Zn.height,this._emit("changeCharacterSize",{data:Zn})}},Pn.prototype.$addObserver=function(){var Zn=this;this.$observer=new window.ResizeObserver(function(Jn){Zn.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},Pn.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var Zn=this;return this.$pollSizeChangesTimer=Hn.onIdle(function Jn(){Zn.checkForSizeChanges(),Hn.onIdle(Jn,500)},500)},Pn.prototype.setPolling=function(Zn){Zn?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},Pn.prototype.$measureSizes=function(Zn){var Jn={height:(Zn||this.$measureNode).clientHeight,width:(Zn||this.$measureNode).clientWidth/Dn};return Jn.width===0||Jn.height===0?null:Jn},Pn.prototype.$measureCharWidth=function(Zn){this.$main.textContent=Qn.stringRepeat(Zn,Dn);var Jn=this.$main.getBoundingClientRect();return Jn.width/Dn},Pn.prototype.getCharacterWidth=function(Zn){var Jn=this.charSizes[Zn];return Jn===void 0&&(Jn=this.charSizes[Zn]=this.$measureCharWidth(Zn)/this.$characterSize.width),Jn},Pn.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},Pn.prototype.$getZoom=function(Zn){return!Zn||!Zn.parentElement?1:(Number(window.getComputedStyle(Zn).zoom)||1)*this.$getZoom(Zn.parentElement)},Pn.prototype.$initTransformMeasureNodes=function(){var Zn=function(Jn,Xn){return["div",{style:"position: absolute;top:"+Jn+"px;left:"+Xn+"px;"}]};this.els=Kn.buildDom([Zn(0,0),Zn(Bn,0),Zn(0,Bn),Zn(Bn,Bn)],this.el)},Pn.prototype.transformCoordinates=function(Zn,Jn){if(Zn){var Xn=this.$getZoom(this.el);Zn=ei(1/Xn,Zn)}function mi(Ni,Ri,Fi){var Ii=Ni[1]*Ri[0]-Ni[0]*Ri[1];return[(-Ri[1]*Fi[0]+Ri[0]*Fi[1])/Ii,(+Ni[1]*Fi[0]-Ni[0]*Fi[1])/Ii]}function li(Ni,Ri){return[Ni[0]-Ri[0],Ni[1]-Ri[1]]}function oi(Ni,Ri){return[Ni[0]+Ri[0],Ni[1]+Ri[1]]}function ei(Ni,Ri){return[Ni*Ri[0],Ni*Ri[1]]}this.els||this.$initTransformMeasureNodes();function fi(Ni){var Ri=Ni.getBoundingClientRect();return[Ri.left,Ri.top]}var gi=fi(this.els[0]),yi=fi(this.els[1]),pi=fi(this.els[2]),$i=fi(this.els[3]),si=mi(li($i,yi),li($i,pi),li(oi(yi,pi),oi($i,gi))),ti=ei(1+si[0],li(yi,gi)),ai=ei(1+si[1],li(pi,gi));if(Jn){var vi=Jn,wi=si[0]*vi[0]/Bn+si[1]*vi[1]/Bn+1,xi=oi(ei(vi[0],ti),ei(vi[1],ai));return oi(ei(1/wi/Bn,xi),gi)}var Si=li(Zn,gi),Ei=mi(li(ti,ei(si[0],Si)),li(ai,ei(si[1],Si)),Si);return ei(Bn,Ei)},Pn}();Ln.prototype.$characterSize={width:0,height:0},zn.implement(Ln.prototype,Nn),kn.FontMetrics=Ln}),ace.define("ace/css/editor-css",["require","exports","module"],function(_n,kn,Wn){Wn.exports=`
|
247
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
248
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
249
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
250
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
251
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
252
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
253
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
254
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
255
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
256
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
257
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
258
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
259
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
260
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
261
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
262
|
+
|
263
|
+
|
264
|
+
.ace_editor {
|
265
|
+
position: relative;
|
266
|
+
overflow: hidden;
|
267
|
+
padding: 0;
|
268
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
269
|
+
direction: ltr;
|
270
|
+
text-align: left;
|
271
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
272
|
+
forced-color-adjust: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ace_scroller {
|
276
|
+
position: absolute;
|
277
|
+
overflow: hidden;
|
278
|
+
top: 0;
|
279
|
+
bottom: 0;
|
280
|
+
background-color: inherit;
|
281
|
+
-ms-user-select: none;
|
282
|
+
-moz-user-select: none;
|
283
|
+
-webkit-user-select: none;
|
284
|
+
user-select: none;
|
285
|
+
cursor: text;
|
286
|
+
}
|
287
|
+
|
288
|
+
.ace_content {
|
289
|
+
position: absolute;
|
290
|
+
box-sizing: border-box;
|
291
|
+
min-width: 100%;
|
292
|
+
contain: style size layout;
|
293
|
+
font-variant-ligatures: no-common-ligatures;
|
294
|
+
}
|
295
|
+
|
296
|
+
.ace_keyboard-focus:focus {
|
297
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
298
|
+
outline: none;
|
299
|
+
}
|
300
|
+
|
301
|
+
.ace_dragging .ace_scroller:before{
|
302
|
+
position: absolute;
|
303
|
+
top: 0;
|
304
|
+
left: 0;
|
305
|
+
right: 0;
|
306
|
+
bottom: 0;
|
307
|
+
content: '';
|
308
|
+
background: rgba(250, 250, 250, 0.01);
|
309
|
+
z-index: 1000;
|
310
|
+
}
|
311
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
312
|
+
background: rgba(0, 0, 0, 0.01);
|
313
|
+
}
|
314
|
+
|
315
|
+
.ace_gutter {
|
316
|
+
position: absolute;
|
317
|
+
overflow : hidden;
|
318
|
+
width: auto;
|
319
|
+
top: 0;
|
320
|
+
bottom: 0;
|
321
|
+
left: 0;
|
322
|
+
cursor: default;
|
323
|
+
z-index: 4;
|
324
|
+
-ms-user-select: none;
|
325
|
+
-moz-user-select: none;
|
326
|
+
-webkit-user-select: none;
|
327
|
+
user-select: none;
|
328
|
+
contain: style size layout;
|
329
|
+
}
|
330
|
+
|
331
|
+
.ace_gutter-active-line {
|
332
|
+
position: absolute;
|
333
|
+
left: 0;
|
334
|
+
right: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
.ace_scroller.ace_scroll-left:after {
|
338
|
+
content: "";
|
339
|
+
position: absolute;
|
340
|
+
top: 0;
|
341
|
+
right: 0;
|
342
|
+
bottom: 0;
|
343
|
+
left: 0;
|
344
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
345
|
+
pointer-events: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
349
|
+
position: absolute;
|
350
|
+
top: 0;
|
351
|
+
left: 0;
|
352
|
+
right: 0;
|
353
|
+
padding-left: 19px;
|
354
|
+
padding-right: 6px;
|
355
|
+
background-repeat: no-repeat;
|
356
|
+
}
|
357
|
+
|
358
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
359
|
+
margin-left: -14px;
|
360
|
+
float: left;
|
361
|
+
}
|
362
|
+
|
363
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
364
|
+
margin-left: -19px;
|
365
|
+
float: left;
|
366
|
+
}
|
367
|
+
|
368
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
369
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
370
|
+
background-repeat: no-repeat;
|
371
|
+
background-position: 2px center;
|
372
|
+
}
|
373
|
+
|
374
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
375
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
376
|
+
background-repeat: no-repeat;
|
377
|
+
background-position: 2px center;
|
378
|
+
}
|
379
|
+
|
380
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
381
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
382
|
+
background-repeat: no-repeat;
|
383
|
+
background-position: 2px center;
|
384
|
+
}
|
385
|
+
|
386
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
387
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
388
|
+
}
|
389
|
+
|
390
|
+
.ace_icon_svg.ace_error {
|
391
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
392
|
+
background-color: crimson;
|
393
|
+
}
|
394
|
+
.ace_icon_svg.ace_security {
|
395
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
396
|
+
background-color: crimson;
|
397
|
+
}
|
398
|
+
.ace_icon_svg.ace_warning {
|
399
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
400
|
+
background-color: darkorange;
|
401
|
+
}
|
402
|
+
.ace_icon_svg.ace_info {
|
403
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
404
|
+
background-color: royalblue;
|
405
|
+
}
|
406
|
+
.ace_icon_svg.ace_hint {
|
407
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
408
|
+
background-color: silver;
|
409
|
+
}
|
410
|
+
|
411
|
+
.ace_icon_svg.ace_error_fold {
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
413
|
+
background-color: crimson;
|
414
|
+
}
|
415
|
+
.ace_icon_svg.ace_security_fold {
|
416
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
417
|
+
background-color: crimson;
|
418
|
+
}
|
419
|
+
.ace_icon_svg.ace_warning_fold {
|
420
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
421
|
+
background-color: darkorange;
|
422
|
+
}
|
423
|
+
|
424
|
+
.ace_scrollbar {
|
425
|
+
contain: strict;
|
426
|
+
position: absolute;
|
427
|
+
right: 0;
|
428
|
+
bottom: 0;
|
429
|
+
z-index: 6;
|
430
|
+
}
|
431
|
+
|
432
|
+
.ace_scrollbar-inner {
|
433
|
+
position: absolute;
|
434
|
+
cursor: text;
|
435
|
+
left: 0;
|
436
|
+
top: 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
.ace_scrollbar-v{
|
440
|
+
overflow-x: hidden;
|
441
|
+
overflow-y: scroll;
|
442
|
+
top: 0;
|
443
|
+
}
|
444
|
+
|
445
|
+
.ace_scrollbar-h {
|
446
|
+
overflow-x: scroll;
|
447
|
+
overflow-y: hidden;
|
448
|
+
left: 0;
|
449
|
+
}
|
450
|
+
|
451
|
+
.ace_print-margin {
|
452
|
+
position: absolute;
|
453
|
+
height: 100%;
|
454
|
+
}
|
455
|
+
|
456
|
+
.ace_text-input {
|
457
|
+
position: absolute;
|
458
|
+
z-index: 0;
|
459
|
+
width: 0.5em;
|
460
|
+
height: 1em;
|
461
|
+
opacity: 0;
|
462
|
+
background: transparent;
|
463
|
+
-moz-appearance: none;
|
464
|
+
appearance: none;
|
465
|
+
border: none;
|
466
|
+
resize: none;
|
467
|
+
outline: none;
|
468
|
+
overflow: hidden;
|
469
|
+
font: inherit;
|
470
|
+
padding: 0 1px;
|
471
|
+
margin: 0 -1px;
|
472
|
+
contain: strict;
|
473
|
+
-ms-user-select: text;
|
474
|
+
-moz-user-select: text;
|
475
|
+
-webkit-user-select: text;
|
476
|
+
user-select: text;
|
477
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
478
|
+
white-space: pre!important;
|
479
|
+
}
|
480
|
+
.ace_text-input.ace_composition {
|
481
|
+
background: transparent;
|
482
|
+
color: inherit;
|
483
|
+
z-index: 1000;
|
484
|
+
opacity: 1;
|
485
|
+
}
|
486
|
+
.ace_composition_placeholder { color: transparent }
|
487
|
+
.ace_composition_marker {
|
488
|
+
border-bottom: 1px solid;
|
489
|
+
position: absolute;
|
490
|
+
border-radius: 0;
|
491
|
+
margin-top: 1px;
|
492
|
+
}
|
493
|
+
|
494
|
+
[ace_nocontext=true] {
|
495
|
+
transform: none!important;
|
496
|
+
filter: none!important;
|
497
|
+
clip-path: none!important;
|
498
|
+
mask : none!important;
|
499
|
+
contain: none!important;
|
500
|
+
perspective: none!important;
|
501
|
+
mix-blend-mode: initial!important;
|
502
|
+
z-index: auto;
|
503
|
+
}
|
504
|
+
|
505
|
+
.ace_layer {
|
506
|
+
z-index: 1;
|
507
|
+
position: absolute;
|
508
|
+
overflow: hidden;
|
509
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
510
|
+
word-wrap: normal;
|
511
|
+
white-space: pre;
|
512
|
+
height: 100%;
|
513
|
+
width: 100%;
|
514
|
+
box-sizing: border-box;
|
515
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
516
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
517
|
+
pointer-events: none;
|
518
|
+
}
|
519
|
+
|
520
|
+
.ace_gutter-layer {
|
521
|
+
position: relative;
|
522
|
+
width: auto;
|
523
|
+
text-align: right;
|
524
|
+
pointer-events: auto;
|
525
|
+
height: 1000000px;
|
526
|
+
contain: style size layout;
|
527
|
+
}
|
528
|
+
|
529
|
+
.ace_text-layer {
|
530
|
+
font: inherit !important;
|
531
|
+
position: absolute;
|
532
|
+
height: 1000000px;
|
533
|
+
width: 1000000px;
|
534
|
+
contain: style size layout;
|
535
|
+
}
|
536
|
+
|
537
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
538
|
+
contain: style size layout;
|
539
|
+
position: absolute;
|
540
|
+
top: 0;
|
541
|
+
left: 0;
|
542
|
+
right: 0;
|
543
|
+
}
|
544
|
+
|
545
|
+
.ace_hidpi .ace_text-layer,
|
546
|
+
.ace_hidpi .ace_gutter-layer,
|
547
|
+
.ace_hidpi .ace_content,
|
548
|
+
.ace_hidpi .ace_gutter {
|
549
|
+
contain: strict;
|
550
|
+
}
|
551
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
552
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
553
|
+
contain: strict;
|
554
|
+
}
|
555
|
+
|
556
|
+
.ace_cjk {
|
557
|
+
display: inline-block;
|
558
|
+
text-align: center;
|
559
|
+
}
|
560
|
+
|
561
|
+
.ace_cursor-layer {
|
562
|
+
z-index: 4;
|
563
|
+
}
|
564
|
+
|
565
|
+
.ace_cursor {
|
566
|
+
z-index: 4;
|
567
|
+
position: absolute;
|
568
|
+
box-sizing: border-box;
|
569
|
+
border-left: 2px solid;
|
570
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
571
|
+
transform: translatez(0);
|
572
|
+
}
|
573
|
+
|
574
|
+
.ace_multiselect .ace_cursor {
|
575
|
+
border-left-width: 1px;
|
576
|
+
}
|
577
|
+
|
578
|
+
.ace_slim-cursors .ace_cursor {
|
579
|
+
border-left-width: 1px;
|
580
|
+
}
|
581
|
+
|
582
|
+
.ace_overwrite-cursors .ace_cursor {
|
583
|
+
border-left-width: 0;
|
584
|
+
border-bottom: 1px solid;
|
585
|
+
}
|
586
|
+
|
587
|
+
.ace_hidden-cursors .ace_cursor {
|
588
|
+
opacity: 0.2;
|
589
|
+
}
|
590
|
+
|
591
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
592
|
+
opacity: 0;
|
593
|
+
}
|
594
|
+
|
595
|
+
.ace_smooth-blinking .ace_cursor {
|
596
|
+
transition: opacity 0.18s;
|
597
|
+
}
|
598
|
+
|
599
|
+
.ace_animate-blinking .ace_cursor {
|
600
|
+
animation-duration: 1000ms;
|
601
|
+
animation-timing-function: step-end;
|
602
|
+
animation-name: blink-ace-animate;
|
603
|
+
animation-iteration-count: infinite;
|
604
|
+
}
|
605
|
+
|
606
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
607
|
+
animation-duration: 1000ms;
|
608
|
+
animation-timing-function: ease-in-out;
|
609
|
+
animation-name: blink-ace-animate-smooth;
|
610
|
+
}
|
611
|
+
|
612
|
+
@keyframes blink-ace-animate {
|
613
|
+
from, to { opacity: 1; }
|
614
|
+
60% { opacity: 0; }
|
615
|
+
}
|
616
|
+
|
617
|
+
@keyframes blink-ace-animate-smooth {
|
618
|
+
from, to { opacity: 1; }
|
619
|
+
45% { opacity: 1; }
|
620
|
+
60% { opacity: 0; }
|
621
|
+
85% { opacity: 0; }
|
622
|
+
}
|
623
|
+
|
624
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
625
|
+
position: absolute;
|
626
|
+
z-index: 3;
|
627
|
+
}
|
628
|
+
|
629
|
+
.ace_marker-layer .ace_selection {
|
630
|
+
position: absolute;
|
631
|
+
z-index: 5;
|
632
|
+
}
|
633
|
+
|
634
|
+
.ace_marker-layer .ace_bracket {
|
635
|
+
position: absolute;
|
636
|
+
z-index: 6;
|
637
|
+
}
|
638
|
+
|
639
|
+
.ace_marker-layer .ace_error_bracket {
|
640
|
+
position: absolute;
|
641
|
+
border-bottom: 1px solid #DE5555;
|
642
|
+
border-radius: 0;
|
643
|
+
}
|
644
|
+
|
645
|
+
.ace_marker-layer .ace_active-line {
|
646
|
+
position: absolute;
|
647
|
+
z-index: 2;
|
648
|
+
}
|
649
|
+
|
650
|
+
.ace_marker-layer .ace_selected-word {
|
651
|
+
position: absolute;
|
652
|
+
z-index: 4;
|
653
|
+
box-sizing: border-box;
|
654
|
+
}
|
655
|
+
|
656
|
+
.ace_line .ace_fold {
|
657
|
+
box-sizing: border-box;
|
658
|
+
|
659
|
+
display: inline-block;
|
660
|
+
height: 11px;
|
661
|
+
margin-top: -2px;
|
662
|
+
vertical-align: middle;
|
663
|
+
|
664
|
+
background-image:
|
665
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
666
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
667
|
+
background-repeat: no-repeat, repeat-x;
|
668
|
+
background-position: center center, top left;
|
669
|
+
color: transparent;
|
670
|
+
|
671
|
+
border: 1px solid black;
|
672
|
+
border-radius: 2px;
|
673
|
+
|
674
|
+
cursor: pointer;
|
675
|
+
pointer-events: auto;
|
676
|
+
}
|
677
|
+
|
678
|
+
.ace_dark .ace_fold {
|
679
|
+
}
|
680
|
+
|
681
|
+
.ace_fold:hover{
|
682
|
+
background-image:
|
683
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
684
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
685
|
+
}
|
686
|
+
|
687
|
+
.ace_tooltip {
|
688
|
+
background-color: #f5f5f5;
|
689
|
+
border: 1px solid gray;
|
690
|
+
border-radius: 1px;
|
691
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
692
|
+
color: black;
|
693
|
+
max-width: 100%;
|
694
|
+
padding: 3px 4px;
|
695
|
+
position: fixed;
|
696
|
+
z-index: 999999;
|
697
|
+
box-sizing: border-box;
|
698
|
+
cursor: default;
|
699
|
+
white-space: pre-wrap;
|
700
|
+
word-wrap: break-word;
|
701
|
+
line-height: normal;
|
702
|
+
font-style: normal;
|
703
|
+
font-weight: normal;
|
704
|
+
letter-spacing: normal;
|
705
|
+
pointer-events: none;
|
706
|
+
overflow: auto;
|
707
|
+
max-width: min(60em, 66vw);
|
708
|
+
overscroll-behavior: contain;
|
709
|
+
}
|
710
|
+
.ace_tooltip pre {
|
711
|
+
white-space: pre-wrap;
|
712
|
+
}
|
713
|
+
|
714
|
+
.ace_tooltip.ace_dark {
|
715
|
+
background-color: #636363;
|
716
|
+
color: #fff;
|
717
|
+
}
|
718
|
+
|
719
|
+
.ace_tooltip:focus {
|
720
|
+
outline: 1px solid #5E9ED6;
|
721
|
+
}
|
722
|
+
|
723
|
+
.ace_icon {
|
724
|
+
display: inline-block;
|
725
|
+
width: 18px;
|
726
|
+
vertical-align: top;
|
727
|
+
}
|
728
|
+
|
729
|
+
.ace_icon_svg {
|
730
|
+
display: inline-block;
|
731
|
+
width: 12px;
|
732
|
+
vertical-align: top;
|
733
|
+
-webkit-mask-repeat: no-repeat;
|
734
|
+
-webkit-mask-size: 12px;
|
735
|
+
-webkit-mask-position: center;
|
736
|
+
}
|
737
|
+
|
738
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
739
|
+
padding-right: 13px;
|
740
|
+
}
|
741
|
+
|
742
|
+
.ace_fold-widget {
|
743
|
+
box-sizing: border-box;
|
744
|
+
|
745
|
+
margin: 0 -12px 0 1px;
|
746
|
+
display: none;
|
747
|
+
width: 11px;
|
748
|
+
vertical-align: top;
|
749
|
+
|
750
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
751
|
+
background-repeat: no-repeat;
|
752
|
+
background-position: center;
|
753
|
+
|
754
|
+
border-radius: 3px;
|
755
|
+
|
756
|
+
border: 1px solid transparent;
|
757
|
+
cursor: pointer;
|
758
|
+
}
|
759
|
+
|
760
|
+
.ace_folding-enabled .ace_fold-widget {
|
761
|
+
display: inline-block;
|
762
|
+
}
|
763
|
+
|
764
|
+
.ace_fold-widget.ace_end {
|
765
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
766
|
+
}
|
767
|
+
|
768
|
+
.ace_fold-widget.ace_closed {
|
769
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
770
|
+
}
|
771
|
+
|
772
|
+
.ace_fold-widget:hover {
|
773
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
775
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
776
|
+
}
|
777
|
+
|
778
|
+
.ace_fold-widget:active {
|
779
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
780
|
+
background-color: rgba(0, 0, 0, 0.05);
|
781
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
782
|
+
}
|
2
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(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=_n("../lib/oop"),Qn=_n("../lib/event_emitter").EventEmitter,Hn=function(){function qn(Nn,Dn){this.canvas=zn.createElement("canvas"),this.renderer=Dn,this.pixelRatio=1,this.maxHeight=Dn.layerConfig.maxHeight,this.lineHeight=Dn.layerConfig.lineHeight,this.canvasHeight=Nn.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=Nn.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)"},Nn.element.appendChild(this.canvas)}return qn.prototype.$updateDecorators=function(Nn){var Dn=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(Nn){this.maxHeight=Nn.maxHeight,this.lineHeight=Nn.lineHeight,this.canvasHeight=Nn.height;var In=(Nn.lastRow+1)*this.lineHeight;In<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var Bn=this.canvas.getContext("2d");function Ln($i,si){return $i.priority<si.priority?-1:$i.priority>si.priority?1:0}var Pn=this.renderer.session.$annotations;if(Bn.clearRect(0,0,this.canvas.width,this.canvas.height),Pn){var Zn={info:1,warning:2,error:3};Pn.forEach(function($i){$i.priority=Zn[$i.type]||null}),Pn=Pn.sort(Ln);for(var Jn=this.renderer.session.$foldData,Xn=0;Xn<Pn.length;Xn++){var mi=Pn[Xn].row,li=this.compensateFoldRows(mi,Jn),oi=Math.round((mi-li)*this.lineHeight*this.heightRatio),ei=Math.round((mi-li)*this.lineHeight*this.heightRatio),fi=Math.round(((mi-li)*this.lineHeight+this.lineHeight)*this.heightRatio),gi=fi-ei;if(gi<this.minDecorationHeight){var yi=(ei+fi)/2|0;yi<this.halfMinDecorationHeight?yi=this.halfMinDecorationHeight:yi+this.halfMinDecorationHeight>this.canvasHeight&&(yi=this.canvasHeight-this.halfMinDecorationHeight),ei=Math.round(yi-this.halfMinDecorationHeight),fi=Math.round(yi+this.halfMinDecorationHeight)}Bn.fillStyle=Dn[Pn[Xn].type]||null,Bn.fillRect(0,oi,this.canvasWidth,fi-ei)}}var pi=this.renderer.session.selection.getCursor();if(pi){var li=this.compensateFoldRows(pi.row,Jn),oi=Math.round((pi.row-li)*this.lineHeight*this.heightRatio);Bn.fillStyle="rgba(0, 0, 0, 0.5)",Bn.fillRect(0,oi,this.canvasWidth,2)}},qn.prototype.compensateFoldRows=function(Nn,Dn){var In=0;if(Dn&&Dn.length>0)for(var Bn=0;Bn<Dn.length;Bn++)Nn>Dn[Bn].start.row&&Nn<Dn[Bn].end.row?In+=Nn-Dn[Bn].start.row:Nn>=Dn[Bn].end.row&&(In+=Dn[Bn].end.row-Dn[Bn].start.row);return In},qn}();Kn.implement(Hn.prototype,Qn),kn.Decorator=Hn}),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(_n,kn,Wn){var zn=_n("./lib/oop"),Kn=_n("./lib/dom"),Qn=_n("./lib/lang"),Hn=_n("./config"),qn=_n("./layer/gutter").Gutter,Nn=_n("./layer/marker").Marker,Dn=_n("./layer/text").Text,In=_n("./layer/cursor").Cursor,Bn=_n("./scrollbar").HScrollBar,Ln=_n("./scrollbar").VScrollBar,Pn=_n("./scrollbar_custom").HScrollBar,Zn=_n("./scrollbar_custom").VScrollBar,Jn=_n("./renderloop").RenderLoop,Xn=_n("./layer/font_metrics").FontMetrics,mi=_n("./lib/event_emitter").EventEmitter,li=_n("./css/editor-css"),oi=_n("./layer/decorators").Decorator,ei=_n("./lib/useragent"),fi=_n("./layer/text_util").isTextToken;Kn.importCssString(li,"ace_editor.css",!1);var gi=function(){function yi(pi,$i){var si=this;this.container=pi||Kn.createElement("div"),Kn.addCssClass(this.container,"ace_editor"),Kn.HI_DPI&&Kn.addCssClass(this.container,"ace_hidpi"),this.setTheme($i),Hn.get("useStrictCSP")==null&&Hn.set("useStrictCSP",!1),this.$gutter=Kn.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=Kn.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=Kn.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new qn(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new Nn(this.content);var ti=this.$textLayer=new Dn(this.content);this.canvas=ti.element,this.$markerFront=new Nn(this.content),this.$cursorLayer=new In(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new Ln(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.on("scroll",function(ai){si.$scrollAnimation||si.session.setScrollTop(ai.data-si.scrollMargin.top)}),this.scrollBarH.on("scroll",function(ai){si.$scrollAnimation||si.session.setScrollLeft(ai.data-si.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Xn(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(ai){si.updateCharacterSize(),si.onResize(!0,si.gutterWidth,si.$size.width,si.$size.height),si._signal("changeCharacterSize",ai)}),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=!ei.isIOS,this.$loop=new Jn(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),Hn.resetOptions(this),Hn._signal("renderer",this)}return yi.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(),Kn.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},yi.prototype.setSession=function(pi){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=pi,pi&&this.scrollMargin.top&&pi.getScrollTop()<=0&&pi.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(pi),this.$markerBack.setSession(pi),this.$markerFront.setSession(pi),this.$gutterLayer.setSession(pi),this.$textLayer.setSession(pi),pi&&(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))},yi.prototype.updateLines=function(pi,$i,si){if($i===void 0&&($i=1/0),this.$changedLines?(this.$changedLines.firstRow>pi&&(this.$changedLines.firstRow=pi),this.$changedLines.lastRow<$i&&(this.$changedLines.lastRow=$i)):this.$changedLines={firstRow:pi,lastRow:$i},this.$changedLines.lastRow<this.layerConfig.firstRow)if(si)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},yi.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},yi.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},yi.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},yi.prototype.updateFull=function(pi){pi?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},yi.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},yi.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},yi.prototype.onResize=function(pi,$i,si,ti){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=pi?1:0;var ai=this.container;ti||(ti=ai.clientHeight||ai.scrollHeight),!ti&&this.$maxLines&&this.lineHeight>1&&(!ai.style.height||ai.style.height=="0px")&&(ai.style.height="1px",ti=ai.clientHeight||ai.scrollHeight),si||(si=ai.clientWidth||ai.scrollWidth);var vi=this.$updateCachedSize(pi,$i,si,ti);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!si&&!ti)return this.resizing=0;pi&&(this.$gutterLayer.$padding=null),pi?this.$renderChanges(vi|this.$changes,!0):this.$loop.schedule(vi|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},yi.prototype.$updateCachedSize=function(pi,$i,si,ti){ti-=this.$extraHeight||0;var ai=0,vi=this.$size,wi={width:vi.width,height:vi.height,scrollerHeight:vi.scrollerHeight,scrollerWidth:vi.scrollerWidth};if(ti&&(pi||vi.height!=ti)&&(vi.height=ti,ai|=this.CHANGE_SIZE,vi.scrollerHeight=vi.height,this.$horizScroll&&(vi.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(vi.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",ai=ai|this.CHANGE_SCROLL),si&&(pi||vi.width!=si)){ai|=this.CHANGE_SIZE,vi.width=si,$i==null&&($i=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=$i,Kn.setStyle(this.scrollBarH.element.style,"left",$i+"px"),Kn.setStyle(this.scroller.style,"left",$i+this.margin.left+"px"),vi.scrollerWidth=Math.max(0,si-$i-this.scrollBarV.getWidth()-this.margin.h),Kn.setStyle(this.$gutter.style,"left",this.margin.left+"px");var xi=this.scrollBarV.getWidth()+"px";Kn.setStyle(this.scrollBarH.element.style,"right",xi),Kn.setStyle(this.scroller.style,"right",xi),Kn.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(vi.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||pi)&&(ai|=this.CHANGE_FULL)}return vi.$dirty=!si||!ti,ai&&this._signal("resize",wi),ai},yi.prototype.onGutterResize=function(pi){var $i=this.$showGutter?pi:0;$i!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,$i,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()},yi.prototype.adjustWrapLimit=function(){var pi=this.$size.scrollerWidth-this.$padding*2,$i=Math.floor(pi/this.characterWidth);return this.session.adjustWrapLimit($i,this.$showPrintMargin&&this.$printMarginColumn)},yi.prototype.setAnimatedScroll=function(pi){this.setOption("animatedScroll",pi)},yi.prototype.getAnimatedScroll=function(){return this.$animatedScroll},yi.prototype.setShowInvisibles=function(pi){this.setOption("showInvisibles",pi),this.session.$bidiHandler.setShowInvisibles(pi)},yi.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},yi.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},yi.prototype.setDisplayIndentGuides=function(pi){this.setOption("displayIndentGuides",pi)},yi.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},yi.prototype.setHighlightIndentGuides=function(pi){this.setOption("highlightIndentGuides",pi)},yi.prototype.setShowPrintMargin=function(pi){this.setOption("showPrintMargin",pi)},yi.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},yi.prototype.setPrintMarginColumn=function(pi){this.setOption("printMarginColumn",pi)},yi.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},yi.prototype.getShowGutter=function(){return this.getOption("showGutter")},yi.prototype.setShowGutter=function(pi){return this.setOption("showGutter",pi)},yi.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},yi.prototype.setFadeFoldWidgets=function(pi){this.setOption("fadeFoldWidgets",pi)},yi.prototype.setHighlightGutterLine=function(pi){this.setOption("highlightGutterLine",pi)},yi.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},yi.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var pi=Kn.createElement("div");pi.className="ace_layer ace_print-margin-layer",this.$printMarginEl=Kn.createElement("div"),this.$printMarginEl.className="ace_print-margin",pi.appendChild(this.$printMarginEl),this.content.insertBefore(pi,this.content.firstChild)}var $i=this.$printMarginEl.style;$i.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",$i.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},yi.prototype.getContainerElement=function(){return this.container},yi.prototype.getMouseEventTarget=function(){return this.scroller},yi.prototype.getTextAreaContainer=function(){return this.container},yi.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var pi=this.textarea.style,$i=this.$composition;if(!this.$keepTextAreaAtCursor&&!$i){Kn.translate(this.textarea,-100,0);return}var si=this.$cursorLayer.$pixelPos;if(si){$i&&$i.markerRange&&(si=this.$cursorLayer.getPixelPosition($i.markerRange.start,!0));var ti=this.layerConfig,ai=si.top,vi=si.left;ai-=ti.offset;var wi=$i&&$i.useTextareaForIME||ei.isMobile?this.lineHeight:1;if(ai<0||ai>ti.height-wi){Kn.translate(this.textarea,0,0);return}var xi=1,Si=this.$size.height-wi;if(!$i)ai+=this.lineHeight;else if($i.useTextareaForIME){var Ei=this.textarea.value;xi=this.characterWidth*this.session.$getStringScreenWidth(Ei)[0]}else ai+=this.lineHeight+2;vi-=this.scrollLeft,vi>this.$size.scrollerWidth-xi&&(vi=this.$size.scrollerWidth-xi),vi+=this.gutterWidth+this.margin.left,Kn.setStyle(pi,"height",wi+"px"),Kn.setStyle(pi,"width",xi+"px"),Kn.translate(this.textarea,Math.min(vi,this.$size.scrollerWidth-xi),Math.min(ai,Si))}}},yi.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},yi.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},yi.prototype.getLastFullyVisibleRow=function(){var pi=this.layerConfig,$i=pi.lastRow,si=this.session.documentToScreenRow($i,0)*pi.lineHeight;return si-this.session.getScrollTop()>pi.height-pi.lineHeight?$i-1:$i},yi.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},yi.prototype.setPadding=function(pi){this.$padding=pi,this.$textLayer.setPadding(pi),this.$cursorLayer.setPadding(pi),this.$markerFront.setPadding(pi),this.$markerBack.setPadding(pi),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},yi.prototype.setScrollMargin=function(pi,$i,si,ti){var ai=this.scrollMargin;ai.top=pi|0,ai.bottom=$i|0,ai.right=ti|0,ai.left=si|0,ai.v=ai.top+ai.bottom,ai.h=ai.left+ai.right,ai.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-ai.top),this.updateFull()},yi.prototype.setMargin=function(pi,$i,si,ti){var ai=this.margin;ai.top=pi|0,ai.bottom=$i|0,ai.right=ti|0,ai.left=si|0,ai.v=ai.top+ai.bottom,ai.h=ai.left+ai.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},yi.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},yi.prototype.setHScrollBarAlwaysVisible=function(pi){this.setOption("hScrollBarAlwaysVisible",pi)},yi.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},yi.prototype.setVScrollBarAlwaysVisible=function(pi){this.setOption("vScrollBarAlwaysVisible",pi)},yi.prototype.$updateScrollBarV=function(){var pi=this.layerConfig.maxHeight,$i=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(pi-=($i-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>pi-$i&&(pi=this.scrollTop+$i,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(pi+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},yi.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},yi.prototype.freeze=function(){this.$frozen=!0},yi.prototype.unfreeze=function(){this.$frozen=!1},yi.prototype.$renderChanges=function(pi,$i){if(this.$changes&&(pi|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!pi&&!$i){this.$changes|=pi;return}if(this.$size.$dirty)return this.$changes|=pi,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",pi),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var si=this.layerConfig;if(pi&this.CHANGE_FULL||pi&this.CHANGE_SIZE||pi&this.CHANGE_TEXT||pi&this.CHANGE_LINES||pi&this.CHANGE_SCROLL||pi&this.CHANGE_H_SCROLL){if(pi|=this.$computeLayerConfig()|this.$loop.clear(),si.firstRow!=this.layerConfig.firstRow&&si.firstRowScreen==this.layerConfig.firstRowScreen){var ti=this.scrollTop+(si.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;ti>0&&(this.scrollTop=ti,pi=pi|this.CHANGE_SCROLL,pi|=this.$computeLayerConfig()|this.$loop.clear())}si=this.layerConfig,this.$updateScrollBarV(),pi&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),Kn.translate(this.content,-this.scrollLeft,-si.offset);var ai=si.width+2*this.$padding+"px",vi=si.minHeight+"px";Kn.setStyle(this.content.style,"width",ai),Kn.setStyle(this.content.style,"height",vi)}if(pi&this.CHANGE_H_SCROLL&&(Kn.translate(this.content,-this.scrollLeft,-si.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),pi&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(si),this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si),this.$markerBack.update(si),this.$markerFront.update(si),this.$cursorLayer.update(si),this.$moveTextAreaToCursor(),this._signal("afterRender",pi);return}if(pi&this.CHANGE_SCROLL){this.$changedLines=null,pi&this.CHANGE_TEXT||pi&this.CHANGE_LINES?this.$textLayer.update(si):this.$textLayer.scrollLines(si),this.$showGutter&&(pi&this.CHANGE_GUTTER||pi&this.CHANGE_LINES?this.$gutterLayer.update(si):this.$gutterLayer.scrollLines(si)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si),this.$markerBack.update(si),this.$markerFront.update(si),this.$cursorLayer.update(si),this.$moveTextAreaToCursor(),this._signal("afterRender",pi);return}pi&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(si),this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_LINES?((this.$updateLines()||pi&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_TEXT||pi&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)),pi&this.CHANGE_CURSOR&&(this.$cursorLayer.update(si),this.$moveTextAreaToCursor()),pi&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(si),pi&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(si),this._signal("afterRender",pi)},yi.prototype.$autosize=function(){var pi=this.session.getScreenLength()*this.lineHeight,$i=this.$maxLines*this.lineHeight,si=Math.min($i,Math.max((this.$minLines||1)*this.lineHeight,pi))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(si+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&si>this.$maxPixelHeight&&(si=this.$maxPixelHeight);var ti=si<=2*this.lineHeight,ai=!ti&&pi>$i;if(si!=this.desiredHeight||this.$size.height!=this.desiredHeight||ai!=this.$vScroll){ai!=this.$vScroll&&(this.$vScroll=ai,this.scrollBarV.setVisible(ai));var vi=this.container.clientWidth;this.container.style.height=si+"px",this.$updateCachedSize(!0,this.$gutterWidth,vi,si),this.desiredHeight=si,this._signal("autosize")}},yi.prototype.$computeLayerConfig=function(){var pi=this.session,$i=this.$size,si=$i.height<=2*this.lineHeight,ti=this.session.getScreenLength(),ai=ti*this.lineHeight,vi=this.$getLongestLine(),wi=!si&&(this.$hScrollBarAlwaysVisible||$i.scrollerWidth-vi-2*this.$padding<0),xi=this.$horizScroll!==wi;xi&&(this.$horizScroll=wi,this.scrollBarH.setVisible(wi));var Si=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Ei=$i.scrollerHeight+this.lineHeight,Ni=!this.$maxLines&&this.$scrollPastEnd?($i.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;ai+=Ni;var Ri=this.scrollMargin;this.session.setScrollTop(Math.max(-Ri.top,Math.min(this.scrollTop,ai-$i.scrollerHeight+Ri.bottom))),this.session.setScrollLeft(Math.max(-Ri.left,Math.min(this.scrollLeft,vi+2*this.$padding-$i.scrollerWidth+Ri.right)));var Fi=!si&&(this.$vScrollBarAlwaysVisible||$i.scrollerHeight-ai+Ni<0||this.scrollTop>Ri.top),Ii=Si!==Fi;Ii&&(this.$vScroll=Fi,this.scrollBarV.setVisible(Fi));var Bi=this.scrollTop%this.lineHeight,Gi=Math.ceil(Ei/this.lineHeight)-1,Pi=Math.max(0,Math.round((this.scrollTop-Bi)/this.lineHeight)),Zi=Pi+Gi,lr,gr,or=this.lineHeight;Pi=pi.screenToDocumentRow(Pi,0);var yr=pi.getFoldLine(Pi);yr&&(Pi=yr.start.row),lr=pi.documentToScreenRow(Pi,0),gr=pi.getRowLength(Pi)*or,Zi=Math.min(pi.screenToDocumentRow(Zi,0),pi.getLength()-1),Ei=$i.scrollerHeight+pi.getRowLength(Zi)*or+gr,Bi=this.scrollTop-lr*or;var io=0;return(this.layerConfig.width!=vi||xi)&&(io=this.CHANGE_H_SCROLL),(xi||Ii)&&(io|=this.$updateCachedSize(!0,this.gutterWidth,$i.width,$i.height),this._signal("scrollbarVisibilityChanged"),Ii&&(vi=this.$getLongestLine())),this.layerConfig={width:vi,padding:this.$padding,firstRow:Pi,firstRowScreen:lr,lastRow:Zi,lineHeight:or,characterWidth:this.characterWidth,minHeight:Ei,maxHeight:ai,offset:Bi,gutterOffset:or?Math.max(0,Math.ceil((Bi+$i.height-$i.scrollerHeight)/or)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(vi-this.$padding),io},yi.prototype.$updateLines=function(){if(this.$changedLines){var pi=this.$changedLines.firstRow,$i=this.$changedLines.lastRow;this.$changedLines=null;var si=this.layerConfig;if(!(pi>si.lastRow+1)&&!($i<si.firstRow)){if($i===1/0){this.$showGutter&&this.$gutterLayer.update(si),this.$textLayer.update(si);return}return this.$textLayer.updateLines(si,pi,$i),!0}}},yi.prototype.$getLongestLine=function(){var pi=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(pi+=1),this.$textLayer&&pi>this.$textLayer.MAX_LINE_LENGTH&&(pi=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(pi*this.characterWidth))},yi.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},yi.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},yi.prototype.addGutterDecoration=function(pi,$i){this.$gutterLayer.addGutterDecoration(pi,$i)},yi.prototype.removeGutterDecoration=function(pi,$i){this.$gutterLayer.removeGutterDecoration(pi,$i)},yi.prototype.updateBreakpoints=function(pi){this._rows=pi,this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.setAnnotations=function(pi){this.$gutterLayer.setAnnotations(pi),this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},yi.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},yi.prototype.showCursor=function(){this.$cursorLayer.showCursor()},yi.prototype.scrollSelectionIntoView=function(pi,$i,si){this.scrollCursorIntoView(pi,si),this.scrollCursorIntoView($i,si)},yi.prototype.scrollCursorIntoView=function(pi,$i,si){if(this.$size.scrollerHeight!==0){var ti=this.$cursorLayer.getPixelPosition(pi),ai=ti.left,vi=ti.top,wi=si&&si.top||0,xi=si&&si.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var Si=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Si+wi>vi?($i&&Si+wi>vi+this.lineHeight&&(vi-=$i*this.$size.scrollerHeight),vi===0&&(vi=-this.scrollMargin.top),this.session.setScrollTop(vi)):Si+this.$size.scrollerHeight-xi<vi+this.lineHeight&&($i&&Si+this.$size.scrollerHeight-xi<vi-this.lineHeight&&(vi+=$i*this.$size.scrollerHeight),this.session.setScrollTop(vi+this.lineHeight+xi-this.$size.scrollerHeight));var Ei=this.scrollLeft,Ni=2*this.layerConfig.characterWidth;ai-Ni<Ei?(ai-=Ni,ai<this.$padding+Ni&&(ai=-this.scrollMargin.left),this.session.setScrollLeft(ai)):(ai+=Ni,Ei+this.$size.scrollerWidth<ai+this.characterWidth?this.session.setScrollLeft(Math.round(ai+this.characterWidth-this.$size.scrollerWidth)):Ei<=this.$padding&&ai-Ei<this.characterWidth&&this.session.setScrollLeft(0))}},yi.prototype.getScrollTop=function(){return this.session.getScrollTop()},yi.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},yi.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},yi.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},yi.prototype.scrollToRow=function(pi){this.session.setScrollTop(pi*this.lineHeight)},yi.prototype.alignCursor=function(pi,$i){typeof pi=="number"&&(pi={row:pi,column:0});var si=this.$cursorLayer.getPixelPosition(pi),ti=this.$size.scrollerHeight-this.lineHeight,ai=si.top-ti*($i||0);return this.session.setScrollTop(ai),ai},yi.prototype.$calcSteps=function(pi,$i){var si=0,ti=this.STEPS,ai=[],vi=function(wi,xi,Si){return Si*(Math.pow(wi-1,3)+1)+xi};for(si=0;si<ti;++si)ai.push(vi(si/this.STEPS,pi,$i-pi));return ai},yi.prototype.scrollToLine=function(pi,$i,si,ti){var ai=this.$cursorLayer.getPixelPosition({row:pi,column:0}),vi=ai.top;$i&&(vi-=this.$size.scrollerHeight/2);var wi=this.scrollTop;this.session.setScrollTop(vi),si!==!1&&this.animateScrolling(wi,ti)},yi.prototype.animateScrolling=function(pi,$i){var si=this.scrollTop;if(!this.$animatedScroll)return;var ti=this;if(pi==si)return;if(this.$scrollAnimation){var ai=this.$scrollAnimation.steps;if(ai.length&&(pi=ai[0],pi==si))return}var vi=ti.$calcSteps(pi,si);this.$scrollAnimation={from:pi,to:si,steps:vi},clearInterval(this.$timer),ti.session.setScrollTop(vi.shift()),ti.session.$scrollTop=si;function wi(){ti.$timer=clearInterval(ti.$timer),ti.$scrollAnimation=null,ti.$stopAnimation=!1,$i&&$i()}this.$timer=setInterval(function(){if(ti.$stopAnimation){wi();return}if(!ti.session)return clearInterval(ti.$timer);vi.length?(ti.session.setScrollTop(vi.shift()),ti.session.$scrollTop=si):si!=null?(ti.session.$scrollTop=-1,ti.session.setScrollTop(si),si=null):wi()},10)},yi.prototype.scrollToY=function(pi){this.scrollTop!==pi&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=pi)},yi.prototype.scrollToX=function(pi){this.scrollLeft!==pi&&(this.scrollLeft=pi),this.$loop.schedule(this.CHANGE_H_SCROLL)},yi.prototype.scrollTo=function(pi,$i){this.session.setScrollTop($i),this.session.setScrollLeft(pi)},yi.prototype.scrollBy=function(pi,$i){$i&&this.session.setScrollTop(this.session.getScrollTop()+$i),pi&&this.session.setScrollLeft(this.session.getScrollLeft()+pi)},yi.prototype.isScrollableBy=function(pi,$i){if($i<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||$i>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||pi<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||pi>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},yi.prototype.pixelToScreenCoordinates=function(pi,$i){var si;if(this.$hasCssTransforms){si={top:0,left:0};var ti=this.$fontMetrics.transformCoordinates([pi,$i]);pi=ti[1]-this.gutterWidth-this.margin.left,$i=ti[0]}else si=this.scroller.getBoundingClientRect();var ai=pi+this.scrollLeft-si.left-this.$padding,vi=ai/this.characterWidth,wi=Math.floor(($i+this.scrollTop-si.top)/this.lineHeight),xi=this.$blockCursor?Math.floor(vi):Math.round(vi);return{row:wi,column:xi,side:vi-xi>0?1:-1,offsetX:ai}},yi.prototype.screenToTextCoordinates=function(pi,$i){var si;if(this.$hasCssTransforms){si={top:0,left:0};var ti=this.$fontMetrics.transformCoordinates([pi,$i]);pi=ti[1]-this.gutterWidth-this.margin.left,$i=ti[0]}else si=this.scroller.getBoundingClientRect();var ai=pi+this.scrollLeft-si.left-this.$padding,vi=ai/this.characterWidth,wi=this.$blockCursor?Math.floor(vi):Math.round(vi),xi=Math.floor(($i+this.scrollTop-si.top)/this.lineHeight);return this.session.screenToDocumentPosition(xi,Math.max(wi,0),ai)},yi.prototype.textToScreenCoordinates=function(pi,$i){var si=this.scroller.getBoundingClientRect(),ti=this.session.documentToScreenPosition(pi,$i),ai=this.$padding+(this.session.$bidiHandler.isBidiRow(ti.row,pi)?this.session.$bidiHandler.getPosLeft(ti.column):Math.round(ti.column*this.characterWidth)),vi=ti.row*this.lineHeight;return{pageX:si.left+ai-this.scrollLeft,pageY:si.top+vi-this.scrollTop}},yi.prototype.visualizeFocus=function(){Kn.addCssClass(this.container,"ace_focus")},yi.prototype.visualizeBlur=function(){Kn.removeCssClass(this.container,"ace_focus")},yi.prototype.showComposition=function(pi){this.$composition=pi,pi.cssText||(pi.cssText=this.textarea.style.cssText),pi.useTextareaForIME==null&&(pi.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(Kn.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):pi.markerId=this.session.addMarker(pi.markerRange,"ace_composition_marker","text")},yi.prototype.setCompositionText=function(pi){var $i=this.session.selection.cursor;this.addToken(pi,"composition_placeholder",$i.row,$i.column),this.$moveTextAreaToCursor()},yi.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),Kn.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var pi=this.session.selection.cursor;this.removeExtraToken(pi.row,pi.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},yi.prototype.setGhostText=function(pi,$i){var si=this.session.selection.cursor,ti=$i||{row:si.row,column:si.column};this.removeGhostText();var ai=this.$calculateWrappedTextChunks(pi,ti);this.addToken(ai[0].text,"ghost_text",ti.row,ti.column),this.$ghostText={text:pi,position:{row:ti.row,column:ti.column}};var vi=Kn.createElement("div");if(ai.length>1){var wi=this.hideTokensAfterPosition(ti.row,ti.column),xi;ai.slice(1).forEach(function(Ii){var Bi=Kn.createElement("div"),Gi=Kn.createElement("span");Gi.className="ace_ghost_text",Ii.wrapped&&(Bi.className="ghost_text_line_wrapped"),Ii.text.length===0&&(Ii.text=" "),Gi.appendChild(Kn.createTextNode(Ii.text)),Bi.appendChild(Gi),vi.appendChild(Bi),xi=Bi}),wi.forEach(function(Ii){var Bi=Kn.createElement("span");fi(Ii.type)||(Bi.className="ace_"+Ii.type.replace(/\./g," ace_")),Bi.appendChild(Kn.createTextNode(Ii.value)),xi.appendChild(Bi)}),this.$ghostTextWidget={el:vi,row:ti.row,column:ti.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var Si=this.$cursorLayer.getPixelPosition(ti,!0),Ei=this.container,Ni=Ei.getBoundingClientRect().height,Ri=ai.length*this.lineHeight,Fi=Ri<Ni-Si.top;if(Fi)return;Ri<Ni?this.scrollBy(0,(ai.length-1)*this.lineHeight):this.scrollToRow(ti.row)}},yi.prototype.$calculateWrappedTextChunks=function(pi,$i){var si=this.$size.scrollerWidth-this.$padding*2,ti=Math.floor(si/this.characterWidth)-2;ti=ti<=0?60:ti;for(var ai=pi.split(/\r?\n/),vi=[],wi=0;wi<ai.length;wi++){var xi=this.session.$getDisplayTokens(ai[wi],$i.column),Si=this.session.$computeWrapSplits(xi,ti,this.session.$tabSize);if(Si.length>0){var Ei=0;Si.push(ai[wi].length);for(var Ni=0;Ni<Si.length;Ni++){var Ri=ai[wi].slice(Ei,Si[Ni]);vi.push({text:Ri,wrapped:!0}),Ei=Si[Ni]}}else vi.push({text:ai[wi],wrapped:!1})}return vi},yi.prototype.removeGhostText=function(){if(this.$ghostText){var pi=this.$ghostText.position;this.removeExtraToken(pi.row,pi.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},yi.prototype.addToken=function(pi,$i,si,ti){var ai=this.session;ai.bgTokenizer.lines[si]=null;var vi={type:$i,value:pi},wi=ai.getTokens(si);if(ti==null||!wi.length)wi.push(vi);else for(var xi=0,Si=0;Si<wi.length;Si++){var Ei=wi[Si];if(xi+=Ei.value.length,ti<=xi){var Ni=Ei.value.length-(xi-ti),Ri=Ei.value.slice(0,Ni),Fi=Ei.value.slice(Ni);wi.splice(Si,1,{type:Ei.type,value:Ri},vi,{type:Ei.type,value:Fi});break}}this.updateLines(si,si)},yi.prototype.hideTokensAfterPosition=function(pi,$i){for(var si=this.session.getTokens(pi),ti=0,ai=!1,vi=[],wi=0;wi<si.length;wi++){var xi=si[wi];if(ti+=xi.value.length,xi.type!=="ghost_text"){if(ai){vi.push({type:xi.type,value:xi.value}),xi.type="hidden_token";continue}ti===$i&&(ai=!0)}}return this.updateLines(pi,pi),vi},yi.prototype.removeExtraToken=function(pi,$i){this.session.bgTokenizer.lines[pi]=null,this.updateLines(pi,pi)},yi.prototype.setTheme=function(pi,$i){var si=this;if(this.$themeId=pi,si._dispatchEvent("themeChange",{theme:pi}),!pi||typeof pi=="string"){var ti=pi||this.$options.theme.initialValue;Hn.loadModule(["theme",ti],ai)}else ai(pi);function ai(vi){if(si.$themeId!=pi)return $i&&$i();if(!vi||!vi.cssClass)throw new Error("couldn't load module "+pi+" or it didn't call define");vi.$id&&(si.$themeId=vi.$id),Kn.importCssString(vi.cssText,vi.cssClass,si.container),si.theme&&Kn.removeCssClass(si.container,si.theme.cssClass);var wi="padding"in vi?vi.padding:"padding"in(si.theme||{})?4:si.$padding;si.$padding&&wi!=si.$padding&&si.setPadding(wi),si.$theme=vi.cssClass,si.theme=vi,Kn.addCssClass(si.container,vi.cssClass),Kn.setCssClass(si.container,"ace_dark",vi.isDark),si.$size&&(si.$size.width=0,si.$updateSizeAsync()),si._dispatchEvent("themeLoaded",{theme:vi}),$i&&$i(),ei.isSafari&&si.scroller&&(si.scroller.style.background="red",si.scroller.style.background="")}},yi.prototype.getTheme=function(){return this.$themeId},yi.prototype.setStyle=function(pi,$i){Kn.setCssClass(this.container,pi,$i!==!1)},yi.prototype.unsetStyle=function(pi){Kn.removeCssClass(this.container,pi)},yi.prototype.setCursorStyle=function(pi){Kn.setStyle(this.scroller.style,"cursor",pi)},yi.prototype.setMouseCursor=function(pi){Kn.setStyle(this.scroller.style,"cursor",pi)},yi.prototype.attachToShadowRoot=function(){Kn.importCssString(li,"ace_editor.css",this.container)},yi.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},yi.prototype.$updateCustomScrollbar=function(pi){var $i=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,pi===!0?(this.scrollBarV=new Zn(this.container,this),this.scrollBarH=new Pn(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollTop(si.data-$i.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollLeft(si.data-$i.scrollMargin.left)}),this.$scrollDecorator=new oi(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new Ln(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollTop(si.data-$i.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollLeft(si.data-$i.scrollMargin.left)}))},yi.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var pi=this;this.$resizeTimer=Qn.delayedCall(function(){pi.destroyed||pi.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function($i){var si=$i[0].contentRect.width,ti=$i[0].contentRect.height;Math.abs(pi.$size.width-si)>1||Math.abs(pi.$size.height-ti)>1?pi.$resizeTimer.delay():pi.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},yi}();gi.prototype.CHANGE_CURSOR=1,gi.prototype.CHANGE_MARKER=2,gi.prototype.CHANGE_GUTTER=4,gi.prototype.CHANGE_SCROLL=8,gi.prototype.CHANGE_LINES=16,gi.prototype.CHANGE_TEXT=32,gi.prototype.CHANGE_SIZE=64,gi.prototype.CHANGE_MARKER_BACK=128,gi.prototype.CHANGE_MARKER_FRONT=256,gi.prototype.CHANGE_FULL=512,gi.prototype.CHANGE_H_SCROLL=1024,gi.prototype.$changes=0,gi.prototype.$padding=null,gi.prototype.$frozen=!1,gi.prototype.STEPS=8,zn.implement(gi.prototype,mi),Hn.defineOptions(gi.prototype,"renderer",{useResizeObserver:{set:function(yi){!yi&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):yi&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(yi){this.$textLayer.setShowInvisibles(yi)&&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(yi){typeof yi=="number"&&(this.$printMarginColumn=yi),this.$showPrintMargin=!!yi,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(yi){this.$gutter.style.display=yi?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(yi){this.$gutterLayer.$useSvgGutterIcons=yi},initialValue:!1},showFoldedAnnotations:{set:function(yi){this.$gutterLayer.$showFoldedAnnotations=yi},initialValue:!1},fadeFoldWidgets:{set:function(yi){Kn.setCssClass(this.$gutter,"ace_fade-fold-widgets",yi)},initialValue:!1},showFoldWidgets:{set:function(yi){this.$gutterLayer.setShowFoldWidgets(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(yi){this.$textLayer.setDisplayIndentGuides(yi)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(yi){this.$textLayer.setHighlightIndentGuides(yi)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(yi){this.$gutterLayer.setHighlightGutterLine(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(yi){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(yi){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(yi){typeof yi=="number"&&(yi=yi+"px"),this.container.style.fontSize=yi,this.updateFontSize()},initialValue:12},fontFamily:{set:function(yi){this.container.style.fontFamily=yi,this.updateFontSize()}},maxLines:{set:function(yi){this.updateFull()}},minLines:{set:function(yi){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(yi){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(yi){yi=+yi||0,this.$scrollPastEnd!=yi&&(this.$scrollPastEnd=yi,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(yi){this.$gutterLayer.$fixedWidth=!!yi,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(yi){this.$updateCustomScrollbar(yi)},initialValue:!1},theme:{set:function(yi){this.setTheme(yi)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!ei.isMobile&&!ei.isIE}}),kn.VirtualRenderer=gi}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/net"),Qn=_n("../lib/event_emitter").EventEmitter,Hn=_n("../config");function qn(Bn){var Ln="importScripts('"+Kn.qualifyURL(Bn)+"');";try{return new Blob([Ln],{type:"application/javascript"})}catch{var Pn=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,Zn=new Pn;return Zn.append(Ln),Zn.getBlob("application/javascript")}}function Nn(Bn){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(Hn.get("loadWorkerFromBlob")){var Ln=qn(Bn),Pn=window.URL||window.webkitURL,Zn=Pn.createObjectURL(Ln);return new Worker(Zn)}return new Worker(Bn)}var Dn=function(Bn){Bn.postMessage||(Bn=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=Bn,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(){zn.implement(this,Qn),this.$createWorkerFromOldConfig=function(Bn,Ln,Pn,Zn,Jn){if(_n.nameToUrl&&!_n.toUrl&&(_n.toUrl=_n.nameToUrl),Hn.get("packaged")||!_n.toUrl)Zn=Zn||Hn.moduleUrl(Ln,"worker");else{var Xn=this.$normalizePath;Zn=Zn||Xn(_n.toUrl("ace/worker/worker.js",null,"_"));var mi={};Bn.forEach(function(li){mi[li]=Xn(_n.toUrl(li,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=Nn(Zn),Jn&&this.send("importScripts",Jn),this.$worker.postMessage({init:!0,tlns:mi,module:Ln,classname:Pn}),this.$worker},this.onMessage=function(Bn){var Ln=Bn.data;switch(Ln.type){case"event":this._signal(Ln.name,{data:Ln.data});break;case"call":var Pn=this.callbacks[Ln.id];Pn&&(Pn(Ln.data),delete this.callbacks[Ln.id]);break;case"error":this.reportError(Ln.data);break;case"log":window.console&&console.log&&console.log.apply(console,Ln.data);break}},this.reportError=function(Bn){window.console&&console.error&&console.error(Bn)},this.$normalizePath=function(Bn){return Kn.qualifyURL(Bn)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(Bn){Bn.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(Bn,Ln){this.$worker.postMessage({command:Bn,args:Ln})},this.call=function(Bn,Ln,Pn){if(Pn){var Zn=this.callbackId++;this.callbacks[Zn]=Pn,Ln.push(Zn)}this.send(Bn,Ln)},this.emit=function(Bn,Ln){try{Ln.data&&Ln.data.err&&(Ln.data.err={message:Ln.data.err.message,stack:Ln.data.err.stack,code:Ln.data.err.code}),this.$worker&&this.$worker.postMessage({event:Bn,data:{data:Ln.data}})}catch(Pn){console.error(Pn.stack)}},this.attachToDocument=function(Bn){this.$doc&&this.terminate(),this.$doc=Bn,this.call("setValue",[Bn.getValue()]),Bn.on("change",this.changeListener,!0)},this.changeListener=function(Bn){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),Bn.action=="insert"?this.deltaQueue.push(Bn.start,Bn.lines):this.deltaQueue.push(Bn.start,Bn.end)},this.$sendDeltaQueue=function(){var Bn=this.deltaQueue;Bn&&(this.deltaQueue=null,Bn.length>50&&Bn.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:Bn}))}}).call(Dn.prototype);var In=function(Bn,Ln,Pn){var Zn=null,Jn=!1,Xn=Object.create(Qn),mi=[],li=new Dn({messageBuffer:mi,terminate:function(){},postMessage:function(ei){mi.push(ei),Zn&&(Jn?setTimeout(oi):oi())}});li.setEmitSync=function(ei){Jn=ei};var oi=function(){var ei=mi.shift();ei.command?Zn[ei.command].apply(Zn,ei.args):ei.event&&Xn._signal(ei.event,ei.data)};return Xn.postMessage=function(ei){li.onMessage({data:ei})},Xn.callback=function(ei,fi){this.postMessage({type:"call",id:fi,data:ei})},Xn.emit=function(ei,fi){this.postMessage({type:"event",name:ei,data:fi})},Hn.loadModule(["worker",Ln],function(ei){for(Zn=new ei[Pn](Xn);mi.length;)oi()}),li};kn.UIWorkerClient=In,kn.WorkerClient=Dn,kn.createWorker=Nn}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(_n,kn,Wn){var zn=_n("./range").Range,Kn=_n("./lib/event_emitter").EventEmitter,Qn=_n("./lib/oop"),Hn=function(){function qn(Nn,Dn,In,Bn,Ln,Pn){var Zn=this;this.length=Dn,this.session=Nn,this.doc=Nn.getDocument(),this.mainClass=Ln,this.othersClass=Pn,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=Bn,this.$onCursorChange=function(){setTimeout(function(){Zn.onCursorChange()})},this.$pos=In;var Jn=Nn.getUndoManager().$undoStack||Nn.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Jn.length,this.setup(),Nn.selection.on("changeCursor",this.$onCursorChange)}return qn.prototype.setup=function(){var Nn=this,Dn=this.doc,In=this.session;this.selectionBefore=In.selection.toJSON(),In.selection.inMultiSelectMode&&In.selection.toSingleRange(),this.pos=Dn.createAnchor(this.$pos.row,this.$pos.column);var Bn=this.pos;Bn.$insertRight=!0,Bn.detach(),Bn.markerId=In.addMarker(new zn(Bn.row,Bn.column,Bn.row,Bn.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(Ln){var Pn=Dn.createAnchor(Ln.row,Ln.column);Pn.$insertRight=!0,Pn.detach(),Nn.others.push(Pn)}),In.setUndoSelect(!1)},qn.prototype.showOtherMarkers=function(){if(!this.othersActive){var Nn=this.session,Dn=this;this.othersActive=!0,this.others.forEach(function(In){In.markerId=Nn.addMarker(new zn(In.row,In.column,In.row,In.column+Dn.length),Dn.othersClass,null,!1)})}},qn.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var Nn=0;Nn<this.others.length;Nn++)this.session.removeMarker(this.others[Nn].markerId)}},qn.prototype.onUpdate=function(Nn){if(this.$updating)return this.updateAnchors(Nn);var Dn=Nn;if(Dn.start.row===Dn.end.row&&Dn.start.row===this.pos.row){this.$updating=!0;var In=Nn.action==="insert"?Dn.end.column-Dn.start.column:Dn.start.column-Dn.end.column,Bn=Dn.start.column>=this.pos.column&&Dn.start.column<=this.pos.column+this.length+1,Ln=Dn.start.column-this.pos.column;if(this.updateAnchors(Nn),Bn&&(this.length+=In),Bn&&!this.session.$fromUndo){if(Nn.action==="insert")for(var Pn=this.others.length-1;Pn>=0;Pn--){var Zn=this.others[Pn],Jn={row:Zn.row,column:Zn.column+Ln};this.doc.insertMergedLines(Jn,Nn.lines)}else if(Nn.action==="remove")for(var Pn=this.others.length-1;Pn>=0;Pn--){var Zn=this.others[Pn],Jn={row:Zn.row,column:Zn.column+Ln};this.doc.remove(new zn(Jn.row,Jn.column,Jn.row,Jn.column-In))}}this.$updating=!1,this.updateMarkers()}},qn.prototype.updateAnchors=function(Nn){this.pos.onChange(Nn);for(var Dn=this.others.length;Dn--;)this.others[Dn].onChange(Nn);this.updateMarkers()},qn.prototype.updateMarkers=function(){if(!this.$updating){var Nn=this,Dn=this.session,In=function(Ln,Pn){Dn.removeMarker(Ln.markerId),Ln.markerId=Dn.addMarker(new zn(Ln.row,Ln.column,Ln.row,Ln.column+Nn.length),Pn,null,!1)};In(this.pos,this.mainClass);for(var Bn=this.others.length;Bn--;)In(this.others[Bn],this.othersClass)}},qn.prototype.onCursorChange=function(Nn){if(!(this.$updating||!this.session)){var Dn=this.session.selection.getCursor();Dn.row===this.pos.row&&Dn.column>=this.pos.column&&Dn.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",Nn)):(this.hideOtherMarkers(),this._emit("cursorLeave",Nn))}},qn.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},qn.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var Nn=this.session.getUndoManager(),Dn=(Nn.$undoStack||Nn.$undostack).length-this.$undoStackDepth,In=0;In<Dn;In++)Nn.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},qn}();Qn.implement(Hn.prototype,Kn),kn.PlaceHolder=Hn}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(_n,kn,Wn){var zn=_n("../lib/event"),Kn=_n("../lib/useragent");function Qn(qn,Nn){return qn.row==Nn.row&&qn.column==Nn.column}function Hn(qn){var Nn=qn.domEvent,Dn=Nn.altKey,In=Nn.shiftKey,Bn=Nn.ctrlKey,Ln=qn.getAccelKey(),Pn=qn.getButton();if(Bn&&Kn.isMac&&(Pn=Nn.button),qn.editor.inMultiSelectMode&&Pn==2){qn.editor.textInput.onContextMenu(qn.domEvent);return}if(!Bn&&!Dn&&!Ln){Pn===0&&qn.editor.inMultiSelectMode&&qn.editor.exitMultiSelectMode();return}if(Pn===0){var Zn=qn.editor,Jn=Zn.selection,Xn=Zn.inMultiSelectMode,mi=qn.getDocumentPosition(),li=Jn.getCursor(),oi=qn.inSelection()||Jn.isEmpty()&&Qn(mi,li),ei=qn.x,fi=qn.y,gi=function(Ri){ei=Ri.clientX,fi=Ri.clientY},yi=Zn.session,pi=Zn.renderer.pixelToScreenCoordinates(ei,fi),$i=pi,si;if(Zn.$mouseHandler.$enableJumpToDef)Bn&&Dn||Ln&&Dn?si=In?"block":"add":Dn&&Zn.$blockSelectEnabled&&(si="block");else if(Ln&&!Dn){if(si="add",!Xn&&In)return}else Dn&&Zn.$blockSelectEnabled&&(si="block");if(si&&Kn.isMac&&Nn.ctrlKey&&Zn.$mouseHandler.cancelContextMenu(),si=="add"){if(!Xn&&oi)return;if(!Xn){var ti=Jn.toOrientedRange();Zn.addSelectionMarker(ti)}var ai=Jn.rangeList.rangeAtPoint(mi);Zn.inVirtualSelectionMode=!0,In&&(ai=null,ti=Jn.ranges[0]||ti,Zn.removeSelectionMarker(ti)),Zn.once("mouseup",function(){var Ri=Jn.toOrientedRange();ai&&Ri.isEmpty()&&Qn(ai.cursor,Ri.cursor)?Jn.substractPoint(Ri.cursor):(In?Jn.substractPoint(ti.cursor):ti&&(Zn.removeSelectionMarker(ti),Jn.addRange(ti)),Jn.addRange(Ri)),Zn.inVirtualSelectionMode=!1})}else if(si=="block"){qn.stop(),Zn.inVirtualSelectionMode=!0;var vi,wi=[],xi=function(){var Ri=Zn.renderer.pixelToScreenCoordinates(ei,fi),Fi=yi.screenToDocumentPosition(Ri.row,Ri.column,Ri.offsetX);Qn($i,Ri)&&Qn(Fi,Jn.lead)||($i=Ri,Zn.selection.moveToPosition(Fi),Zn.renderer.scrollCursorIntoView(),Zn.removeSelectionMarkers(wi),wi=Jn.rectangularRangeBlock($i,pi),Zn.$mouseHandler.$clickSelection&&wi.length==1&&wi[0].isEmpty()&&(wi[0]=Zn.$mouseHandler.$clickSelection.clone()),wi.forEach(Zn.addSelectionMarker,Zn),Zn.updateSelectionMarkers())};Xn&&!Ln?Jn.toSingleRange():!Xn&&Ln&&(vi=Jn.toOrientedRange(),Zn.addSelectionMarker(vi)),In?pi=yi.documentToScreenPosition(Jn.lead):Jn.moveToPosition(mi),$i={row:-1,column:-1};var Si=function(Ri){xi(),clearInterval(Ni),Zn.removeSelectionMarkers(wi),wi.length||(wi=[Jn.toOrientedRange()]),vi&&(Zn.removeSelectionMarker(vi),Jn.toSingleRange(vi));for(var Fi=0;Fi<wi.length;Fi++)Jn.addRange(wi[Fi]);Zn.inVirtualSelectionMode=!1,Zn.$mouseHandler.$clickSelection=null},Ei=xi;zn.capture(Zn.container,gi,Si);var Ni=setInterval(function(){Ei()},20);return qn.preventDefault()}}}kn.onMouseDown=Hn}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(_n,kn,Wn){kn.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(Kn){Kn.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(Kn){Kn.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(Kn){Kn.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(Kn){Kn.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(Kn){Kn.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(Kn){Kn.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(Kn){Kn.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(Kn){Kn.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(Kn){Kn.multiSelect.rangeCount>1?Kn.multiSelect.joinSelections():Kn.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(Kn){Kn.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(Kn){Kn.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(Kn){Kn.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],kn.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(Kn){Kn.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(Kn){return Kn&&Kn.inMultiSelectMode}}];var zn=_n("../keyboard/hash_handler").HashHandler;kn.keyboardHandler=new zn(kn.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(_n,kn,Wn){var zn=_n("./range_list").RangeList,Kn=_n("./range").Range,Qn=_n("./selection").Selection,Hn=_n("./mouse/multi_select_handler").onMouseDown,qn=_n("./lib/event"),Nn=_n("./lib/lang"),Dn=_n("./commands/multi_select_commands");kn.commands=Dn.defaultCommands.concat(Dn.multiSelectCommands);var In=_n("./search").Search,Bn=new In;function Ln(li,oi,ei){return Bn.$options.wrap=!0,Bn.$options.needle=oi,Bn.$options.backwards=ei==-1,Bn.find(li)}var Pn=_n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(Pn.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(li,oi){if(li){if(!this.inMultiSelectMode&&this.rangeCount===0){var ei=this.toOrientedRange();if(this.rangeList.add(ei),this.rangeList.add(li),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),oi||this.fromOrientedRange(li);this.rangeList.removeAll(),this.rangeList.add(ei),this.$onAddRange(ei)}li.cursor||(li.cursor=li.end);var fi=this.rangeList.add(li);return this.$onAddRange(li),fi.length&&this.$onRemoveRange(fi),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),oi||this.fromOrientedRange(li)}},this.toSingleRange=function(li){li=li||this.ranges[0];var oi=this.rangeList.removeAll();oi.length&&this.$onRemoveRange(oi),li&&this.fromOrientedRange(li)},this.substractPoint=function(li){var oi=this.rangeList.substractPoint(li);if(oi)return this.$onRemoveRange(oi),oi[0]},this.mergeOverlappingRanges=function(){var li=this.rangeList.merge();li.length&&this.$onRemoveRange(li)},this.$onAddRange=function(li){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(li),this._signal("addRange",{range:li})},this.$onRemoveRange=function(li){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var oi=this.rangeList.ranges.pop();li.push(oi),this.rangeCount=0}for(var ei=li.length;ei--;){var fi=this.ranges.indexOf(li[ei]);this.ranges.splice(fi,1)}this._signal("removeRange",{ranges:li}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),oi=oi||this.ranges[0],oi&&!oi.isEqual(this.getRange())&&this.fromOrientedRange(oi)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new zn,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var li=this.ranges.length?this.ranges:[this.getRange()],oi=[],ei=0;ei<li.length;ei++){var fi=li[ei],gi=fi.start.row,yi=fi.end.row;if(gi===yi)oi.push(fi.clone());else{for(oi.push(new Kn(gi,fi.start.column,gi,this.session.getLine(gi).length));++gi<yi;)oi.push(this.getLineRange(gi,!0));oi.push(new Kn(yi,0,yi,fi.end.column))}ei==0&&!this.isBackwards()&&(oi=oi.reverse())}this.toSingleRange();for(var ei=oi.length;ei--;)this.addRange(oi[ei])},this.joinSelections=function(){var li=this.rangeList.ranges,oi=li[li.length-1],ei=Kn.fromPoints(li[0].start,oi.end);this.toSingleRange(),this.setSelectionRange(ei,oi.cursor==oi.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var li=this.rangeList.ranges,oi=li[li.length-1],ei=Kn.fromPoints(li[0].start,oi.end);this.toSingleRange(),this.setSelectionRange(ei,oi.cursor==oi.start)}else{var fi=this.session.documentToScreenPosition(this.cursor),gi=this.session.documentToScreenPosition(this.anchor),yi=this.rectangularRangeBlock(fi,gi);yi.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(li,oi,ei){var fi=[],gi=li.column<oi.column;if(gi)var yi=li.column,pi=oi.column,$i=li.offsetX,si=oi.offsetX;else var yi=oi.column,pi=li.column,$i=oi.offsetX,si=li.offsetX;var ti=li.row<oi.row;if(ti)var ai=li.row,vi=oi.row;else var ai=oi.row,vi=li.row;yi<0&&(yi=0),ai<0&&(ai=0),ai==vi&&(ei=!0);for(var wi,xi=ai;xi<=vi;xi++){var Si=Kn.fromPoints(this.session.screenToDocumentPosition(xi,yi,$i),this.session.screenToDocumentPosition(xi,pi,si));if(Si.isEmpty()){if(wi&&Jn(Si.end,wi))break;wi=Si.end}Si.cursor=gi?Si.start:Si.end,fi.push(Si)}if(ti&&fi.reverse(),!ei){for(var Ei=fi.length-1;fi[Ei].isEmpty()&&Ei>0;)Ei--;if(Ei>0)for(var Ni=0;fi[Ni].isEmpty();)Ni++;for(var Ri=Ei;Ri>=Ni;Ri--)fi[Ri].isEmpty()&&fi.splice(Ri,1)}return fi}}).call(Qn.prototype);var Zn=_n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(li){li.cursor||(li.cursor=li.end);var oi=this.getSelectionStyle();return li.marker=this.session.addMarker(li,"ace_selection",oi),this.session.$selectionMarkers.push(li),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,li},this.removeSelectionMarker=function(li){if(li.marker){this.session.removeMarker(li.marker);var oi=this.session.$selectionMarkers.indexOf(li);oi!=-1&&this.session.$selectionMarkers.splice(oi,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(li){for(var oi=this.session.$selectionMarkers,ei=li.length;ei--;){var fi=li[ei];if(fi.marker){this.session.removeMarker(fi.marker);var gi=oi.indexOf(fi);gi!=-1&&oi.splice(gi,1)}}this.session.selectionMarkerCount=oi.length},this.$onAddRange=function(li){this.addSelectionMarker(li.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(li){this.removeSelectionMarkers(li.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(li){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(Dn.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(li){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(Dn.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(li){var oi=li.command,ei=li.editor;if(ei.multiSelect){if(oi.multiSelectAction)oi.multiSelectAction=="forEach"?fi=ei.forEachSelection(oi,li.args):oi.multiSelectAction=="forEachLine"?fi=ei.forEachSelection(oi,li.args,!0):oi.multiSelectAction=="single"?(ei.exitMultiSelectMode(),fi=oi.exec(ei,li.args||{})):fi=oi.multiSelectAction(ei,li.args||{});else{var fi=oi.exec(ei,li.args||{});ei.multiSelect.addRange(ei.multiSelect.toOrientedRange()),ei.multiSelect.mergeOverlappingRanges()}return fi}},this.forEachSelection=function(li,oi,ei){if(!this.inVirtualSelectionMode){var fi=ei&&ei.keepOrder,gi=ei==!0||ei&&ei.$byLines,yi=this.session,pi=this.selection,$i=pi.rangeList,si=(fi?pi:$i).ranges,ti;if(!si.length)return li.exec?li.exec(this,oi||{}):li(this,oi||{});var ai=pi._eventRegistry;pi._eventRegistry={};var vi=new Qn(yi);this.inVirtualSelectionMode=!0;for(var wi=si.length;wi--;){if(gi)for(;wi>0&&si[wi].start.row==si[wi-1].end.row;)wi--;vi.fromOrientedRange(si[wi]),vi.index=wi,this.selection=yi.selection=vi;var xi=li.exec?li.exec(this,oi||{}):li(this,oi||{});!ti&&xi!==void 0&&(ti=xi),vi.toOrientedRange(si[wi])}vi.detach(),this.selection=yi.selection=pi,this.inVirtualSelectionMode=!1,pi._eventRegistry=ai,pi.mergeOverlappingRanges(),pi.ranges[0]&&pi.fromOrientedRange(pi.ranges[0]);var Si=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Si&&Si.from==Si.to&&this.renderer.animateScrolling(Si.from),ti}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var li="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var oi=this.multiSelect.rangeList.ranges,ei=[],fi=0;fi<oi.length;fi++)ei.push(this.session.getTextRange(oi[fi]));var gi=this.session.getDocument().getNewLineCharacter();li=ei.join(gi),li.length==(ei.length-1)*gi.length&&(li="")}else this.selection.isEmpty()||(li=this.session.getTextRange(this.getSelectionRange()));return li},this.$checkMultiselectChange=function(li,oi){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var ei=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&oi==this.multiSelect.anchor)return;var fi=oi==this.multiSelect.anchor?ei.cursor==ei.start?ei.end:ei.start:ei.cursor;fi.row!=oi.row||this.session.$clipPositionToDocument(fi.row,fi.column).column!=oi.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(li,oi,ei){if(oi=oi||{},oi.needle=li||oi.needle,oi.needle==null){var fi=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();oi.needle=this.session.getTextRange(fi)}this.$search.set(oi);var gi=this.$search.findAll(this.session);if(!gi.length)return 0;var yi=this.multiSelect;ei||yi.toSingleRange(gi[0]);for(var pi=gi.length;pi--;)yi.addRange(gi[pi],!0);return fi&&yi.rangeList.rangeAtPoint(fi.start)&&yi.addRange(fi,!0),gi.length},this.selectMoreLines=function(li,oi){var ei=this.selection.toOrientedRange(),fi=ei.cursor==ei.end,gi=this.session.documentToScreenPosition(ei.cursor);this.selection.$desiredColumn&&(gi.column=this.selection.$desiredColumn);var yi=this.session.screenToDocumentPosition(gi.row+li,gi.column);if(ei.isEmpty())var $i=yi;else var pi=this.session.documentToScreenPosition(fi?ei.end:ei.start),$i=this.session.screenToDocumentPosition(pi.row+li,pi.column);if(fi){var si=Kn.fromPoints(yi,$i);si.cursor=si.start}else{var si=Kn.fromPoints($i,yi);si.cursor=si.end}if(si.desiredColumn=gi.column,!this.selection.inMultiSelectMode)this.selection.addRange(ei);else if(oi)var ti=ei.cursor;this.selection.addRange(si),ti&&this.selection.substractPoint(ti)},this.transposeSelections=function(li){for(var oi=this.session,ei=oi.multiSelect,fi=ei.ranges,gi=fi.length;gi--;){var yi=fi[gi];if(yi.isEmpty()){var pi=oi.getWordRange(yi.start.row,yi.start.column);yi.start.row=pi.start.row,yi.start.column=pi.start.column,yi.end.row=pi.end.row,yi.end.column=pi.end.column}}ei.mergeOverlappingRanges();for(var $i=[],gi=fi.length;gi--;){var yi=fi[gi];$i.unshift(oi.getTextRange(yi))}li<0?$i.unshift($i.pop()):$i.push($i.shift());for(var gi=fi.length;gi--;){var yi=fi[gi],si=yi.clone();oi.replace(yi,$i[gi]),yi.start.row=si.start.row,yi.start.column=si.start.column}ei.fromOrientedRange(ei.ranges[0])},this.selectMore=function(li,oi,ei){var fi=this.session,gi=fi.multiSelect,yi=gi.toOrientedRange();if(!(yi.isEmpty()&&(yi=fi.getWordRange(yi.start.row,yi.start.column),yi.cursor=li==-1?yi.start:yi.end,this.multiSelect.addRange(yi),ei))){var pi=fi.getTextRange(yi),$i=Ln(fi,pi,li);$i&&($i.cursor=li==-1?$i.start:$i.end,this.session.unfold($i),this.multiSelect.addRange($i),this.renderer.scrollCursorIntoView(null,.5)),oi&&this.multiSelect.substractPoint(yi.cursor)}},this.alignCursors=function(){var li=this.session,oi=li.multiSelect,ei=oi.ranges,fi=-1,gi=ei.filter(function(Ei){if(Ei.cursor.row==fi)return!0;fi=Ei.cursor.row});if(!ei.length||gi.length==ei.length-1){var yi=this.selection.getRange(),pi=yi.start.row,$i=yi.end.row,si=pi==$i;if(si){var ti=this.session.getLength(),ai;do ai=this.session.getLine($i);while(/[=:]/.test(ai)&&++$i<ti);do ai=this.session.getLine(pi);while(/[=:]/.test(ai)&&--pi>0);pi<0&&(pi=0),$i>=ti&&($i=ti-1)}var vi=this.session.removeFullLines(pi,$i);vi=this.$reAlignText(vi,si),this.session.insert({row:pi,column:0},vi.join(`
|
936
|
+
`)+`
|
937
|
+
`),si||(yi.start.column=0,yi.end.column=vi[vi.length-1].length),this.selection.setRange(yi)}else{gi.forEach(function(Ei){oi.substractPoint(Ei.cursor)});var wi=0,xi=1/0,Si=ei.map(function(Ei){var Ni=Ei.cursor,Ri=li.getLine(Ni.row),Fi=Ri.substr(Ni.column).search(/\S/g);return Fi==-1&&(Fi=0),Ni.column>wi&&(wi=Ni.column),Fi<xi&&(xi=Fi),Fi});ei.forEach(function(Ei,Ni){var Ri=Ei.cursor,Fi=wi-Ri.column,Ii=Si[Ni]-xi;Fi>Ii?li.insert(Ri,Nn.stringRepeat(" ",Fi-Ii)):li.remove(new Kn(Ri.row,Ri.column,Ri.row,Ri.column-Fi+Ii)),Ei.start.column=Ei.end.column=wi,Ei.start.row=Ei.end.row=Ri.row,Ei.cursor=Ei.end}),oi.fromOrientedRange(ei[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(li,oi){var ei=!0,fi=!0,gi,yi,pi;return li.map(function(vi){var wi=vi.match(/(\s*)(.*?)(\s*)([=:].*)/);return wi?gi==null?(gi=wi[1].length,yi=wi[2].length,pi=wi[3].length,wi):(gi+yi+pi!=wi[1].length+wi[2].length+wi[3].length&&(fi=!1),gi!=wi[1].length&&(ei=!1),gi>wi[1].length&&(gi=wi[1].length),yi<wi[2].length&&(yi=wi[2].length),pi>wi[3].length&&(pi=wi[3].length),wi):[vi]}).map(oi?si:ei?fi?ti:si:ai);function $i(vi){return Nn.stringRepeat(" ",vi)}function si(vi){return vi[2]?$i(gi)+vi[2]+$i(yi-vi[2].length+pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}function ti(vi){return vi[2]?$i(gi+yi-vi[2].length)+vi[2]+$i(pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}function ai(vi){return vi[2]?$i(gi)+vi[2]+$i(pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}}}).call(Zn.prototype);function Jn(li,oi){return li.row==oi.row&&li.column==oi.column}kn.onSessionChange=function(li){var oi=li.session;oi&&!oi.multiSelect&&(oi.$selectionMarkers=[],oi.selection.$initRangeList(),oi.multiSelect=oi.selection),this.multiSelect=oi&&oi.multiSelect;var ei=li.oldSession;ei&&(ei.multiSelect.off("addRange",this.$onAddRange),ei.multiSelect.off("removeRange",this.$onRemoveRange),ei.multiSelect.off("multiSelect",this.$onMultiSelect),ei.multiSelect.off("singleSelect",this.$onSingleSelect),ei.multiSelect.lead.off("change",this.$checkMultiselectChange),ei.multiSelect.anchor.off("change",this.$checkMultiselectChange)),oi&&(oi.multiSelect.on("addRange",this.$onAddRange),oi.multiSelect.on("removeRange",this.$onRemoveRange),oi.multiSelect.on("multiSelect",this.$onMultiSelect),oi.multiSelect.on("singleSelect",this.$onSingleSelect),oi.multiSelect.lead.on("change",this.$checkMultiselectChange),oi.multiSelect.anchor.on("change",this.$checkMultiselectChange)),oi&&this.inMultiSelectMode!=oi.selection.inMultiSelectMode&&(oi.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function Xn(li){li.$multiselectOnSessionChange||(li.$onAddRange=li.$onAddRange.bind(li),li.$onRemoveRange=li.$onRemoveRange.bind(li),li.$onMultiSelect=li.$onMultiSelect.bind(li),li.$onSingleSelect=li.$onSingleSelect.bind(li),li.$multiselectOnSessionChange=kn.onSessionChange.bind(li),li.$checkMultiselectChange=li.$checkMultiselectChange.bind(li),li.$multiselectOnSessionChange(li),li.on("changeSession",li.$multiselectOnSessionChange),li.on("mousedown",Hn),li.commands.addCommands(Dn.defaultCommands),mi(li))}function mi(li){if(!li.textInput)return;var oi=li.textInput.getElement(),ei=!1;qn.addListener(oi,"keydown",function(gi){var yi=gi.keyCode==18&&!(gi.ctrlKey||gi.shiftKey||gi.metaKey);li.$blockSelectEnabled&&yi?ei||(li.renderer.setMouseCursor("crosshair"),ei=!0):ei&&fi()},li),qn.addListener(oi,"keyup",fi,li),qn.addListener(oi,"blur",fi,li);function fi(gi){ei&&(li.renderer.setMouseCursor(""),ei=!1)}}kn.MultiSelect=Xn,_n("./config").defineOptions(Zn.prototype,"editor",{enableMultiselect:{set:function(li){Xn(this),li?this.on("mousedown",Hn):this.off("mousedown",Hn)},value:!0},enableBlockSelect:{set:function(li){this.$blockSelectEnabled=li},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("../../range").Range,Kn=kn.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(Qn,Hn,qn){var Nn=Qn.getLine(qn);return this.foldingStartMarker.test(Nn)?"start":Hn=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(Nn)?"end":""},this.getFoldWidgetRange=function(Qn,Hn,qn){return null},this.indentationBlock=function(Qn,Hn,qn){var Nn=/\S/,Dn=Qn.getLine(Hn),In=Dn.search(Nn);if(In!=-1){for(var Bn=qn||Dn.length,Ln=Qn.getLength(),Pn=Hn,Zn=Hn;++Hn<Ln;){var Jn=Qn.getLine(Hn).search(Nn);if(Jn!=-1){if(Jn<=In){var Xn=Qn.getTokenAt(Hn,0);if(!Xn||Xn.type!=="string")break}Zn=Hn}}if(Zn>Pn){var mi=Qn.getLine(Zn).length;return new zn(Pn,Bn,Zn,mi)}}},this.openingBracketBlock=function(Qn,Hn,qn,Nn,Dn){var In={row:qn,column:Nn+1},Bn=Qn.$findClosingBracket(Hn,In,Dn);if(Bn){var Ln=Qn.foldWidgets[Bn.row];return Ln==null&&(Ln=Qn.getFoldWidget(Bn.row)),Ln=="start"&&Bn.row>In.row&&(Bn.row--,Bn.column=Qn.getLine(Bn.row).length),zn.fromPoints(In,Bn)}},this.closingBracketBlock=function(Qn,Hn,qn,Nn,Dn){var In={row:qn,column:Nn},Bn=Qn.$findOpeningBracket(Hn,In);if(Bn)return Bn.column++,In.column--,zn.fromPoints(Bn,In)}}).call(Kn.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=_n("../range").Range,Qn=_n("../config").nls;function Hn(Nn,Dn,In){for(var Bn=0,Ln=Nn.length-1;Bn<=Ln;){var Pn=Bn+Ln>>1,Zn=In(Dn,Nn[Pn]);if(Zn>0)Bn=Pn+1;else if(Zn<0)Ln=Pn-1;else return Pn}return-(Bn+1)}function qn(Nn,Dn,In){var Bn=Nn.getAnnotations().sort(Kn.comparePoints);if(Bn.length){var Ln=Hn(Bn,{row:Dn,column:-1},Kn.comparePoints);Ln<0&&(Ln=-Ln-1),Ln>=Bn.length?Ln=In>0?0:Bn.length-1:Ln===0&&In<0&&(Ln=Bn.length-1);var Pn=Bn[Ln];if(!(!Pn||!In)){if(Pn.row===Dn){do Pn=Bn[Ln+=In];while(Pn&&Pn.row===Dn);if(!Pn)return Bn.slice()}var Zn=[];Dn=Pn.row;do Zn[In<0?"unshift":"push"](Pn),Pn=Bn[Ln+=In];while(Pn&&Pn.row==Dn);return Zn.length&&Zn}}}kn.showErrorMarker=function(Nn,Dn){var In=Nn.session,Bn=Nn.getCursorPosition(),Ln=Bn.row,Pn=In.widgetManager.getWidgetsAtRow(Ln).filter(function(gi){return gi.type=="errorMarker"})[0];Pn?Pn.destroy():Ln-=Dn;var Zn=qn(In,Ln,Dn),Jn;if(Zn){var Xn=Zn[0];Bn.column=(Xn.pos&&typeof Xn.column!="number"?Xn.pos.sc:Xn.column)||0,Bn.row=Xn.row,Jn=Nn.renderer.$gutterLayer.$annotations[Bn.row]}else{if(Pn)return;Jn={displayText:[Qn("error-marker.good-state","Looks good!")],className:"ace_ok"}}Nn.session.unfold(Bn.row),Nn.selection.moveToPosition(Bn);var mi={row:Bn.row,fixedWidth:!0,coverGutter:!0,el:zn.createElement("div"),type:"errorMarker"},li=mi.el.appendChild(zn.createElement("div")),oi=mi.el.appendChild(zn.createElement("div"));oi.className="error_widget_arrow "+Jn.className;var ei=Nn.renderer.$cursorLayer.getPixelPosition(Bn).left;oi.style.left=ei+Nn.renderer.gutterWidth-5+"px",mi.el.className="error_widget_wrapper",li.className="error_widget "+Jn.className,Jn.displayText.forEach(function(gi,yi){li.appendChild(zn.createTextNode(gi)),yi<Jn.displayText.length-1&&li.appendChild(zn.createElement("br"))}),li.appendChild(zn.createElement("div"));var fi=function(gi,yi,pi){if(yi===0&&(pi==="esc"||pi==="return"))return mi.destroy(),{command:"null"}};mi.destroy=function(){Nn.$mouseHandler.isMousePressed||(Nn.keyBinding.removeKeyboardHandler(fi),In.widgetManager.removeLineWidget(mi),Nn.off("changeSelection",mi.destroy),Nn.off("changeSession",mi.destroy),Nn.off("mouseup",mi.destroy),Nn.off("change",mi.destroy))},Nn.keyBinding.addKeyboardHandler(fi),Nn.on("changeSelection",mi.destroy),Nn.on("changeSession",mi.destroy),Nn.on("mouseup",mi.destroy),Nn.on("change",mi.destroy),Nn.session.widgetManager.addLineWidget(mi),mi.el.onmousedown=Nn.focus.bind(Nn),Nn.renderer.scrollCursorIntoView(null,.5,{bottom:mi.el.offsetHeight})},zn.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(_n,kn,Wn){_n("./loader_build")(kn);var zn=_n("./lib/dom"),Kn=_n("./range").Range,Qn=_n("./editor").Editor,Hn=_n("./edit_session").EditSession,qn=_n("./undomanager").UndoManager,Nn=_n("./virtual_renderer").VirtualRenderer;_n("./worker/worker_client"),_n("./keyboard/hash_handler"),_n("./placeholder"),_n("./multi_select"),_n("./mode/folding/fold_mode"),_n("./theme/textmate"),_n("./ext/error_marker"),kn.config=_n("./config"),kn.edit=function(In,Bn){if(typeof In=="string"){var Ln=In;if(In=document.getElementById(Ln),!In)throw new Error("ace.edit can't find div #"+Ln)}if(In&&In.env&&In.env.editor instanceof Qn)return In.env.editor;var Pn="";if(In&&/input|textarea/i.test(In.tagName)){var Zn=In;Pn=Zn.value,In=zn.createElement("pre"),Zn.parentNode.replaceChild(In,Zn)}else In&&(Pn=In.textContent,In.innerHTML="");var Jn=kn.createEditSession(Pn),Xn=new Qn(new Nn(In),Jn,Bn),mi={document:Jn,editor:Xn,onResize:Xn.resize.bind(Xn,null)};return Zn&&(mi.textarea=Zn),Xn.on("destroy",function(){mi.editor.container.env=null}),Xn.container.env=Xn.env=mi,Xn},kn.createEditSession=function(In,Bn){var Ln=new Hn(In,Bn);return Ln.setUndoManager(new qn),Ln},kn.Range=Kn,kn.Editor=Qn,kn.EditSession=Hn,kn.UndoManager=qn,kn.VirtualRenderer=Nn;var Dn=kn.config.version;kn.version=Dn}),function(){ace.require(["ace/ace"],function(_n){_n&&(_n.config.init(!0),_n.define=ace.define);var kn=function(){return this}();!kn&&typeof window<"u"&&(kn=window),!kn&&typeof self<"u"&&(kn=self),kn.ace||(kn.ace=_n);for(var Wn in _n)_n.hasOwnProperty(Wn)&&(kn.ace[Wn]=_n[Wn]);kn.ace.default=kn.ace,e&&(e.exports=kn.ace)})}()}(uc)),uc.exports}Yb();var hc={exports:{}},Fd;function Zb(){return Fd||(Fd=1,function(e,vn){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};kn.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},kn.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},kn.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var Hn=kn.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},qn=kn.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},Nn=kn.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},Dn=kn.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},In=kn.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},Bn=kn.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},Ln=kn.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},Pn=kn.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},Zn=function(){var Jn="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",Xn="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",mi="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",li="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",oi=this.$keywords=this.createKeywordMapper({keyword:Xn,"constant.language":mi,"variable.language":li,"support.function":Jn,"invalid.deprecated":"debugger"},"identifier"),ei=`\\\\(?: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})*})`,fi={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:ei},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:ei},{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(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},Pn,{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\\?(?:"+ei+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},In,Bn,Qn,Hn,Ln,qn,Nn,Dn,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:oi,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(gi,yi,pi){var $i=gi[2]=="-"||gi[2]=="~"?"indentedHeredoc":"heredoc",si=gi.split(this.splitRegex);return pi.push($i,si[3]),[{type:"constant",value:si[1]},{type:"string",value:si[2]},{type:"support.class",value:si[3]},{type:"string",value:si[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(gi,yi,pi){return gi===pi[1]?(pi.shift(),pi.shift(),this.next=pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(gi,yi,pi){return gi===pi[1]?(pi.shift(),pi.shift(),this.next=pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(gi,yi){return yi[0]==="heredoc"||yi[0]==="indentedHeredoc"?yi[0]:gi}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(gi,yi,pi){return this.next="",gi=="}"&&pi.length>1&&pi[1]!="start"&&(pi.shift(),this.next=pi.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(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"string"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(gi,yi,pi){return pi.length&&gi[0]===fi[pi[0]]?(pi.shift(),this.next=pi.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()};zn.inherits(Zn,Kn),kn.RubyHighlightRules=Zn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,Hn){return/^\s+$/.test(Qn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Qn,Hn){var qn=Qn.getLine(Hn),Nn=qn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:Hn,column:Dn});if(!In||In.row==Hn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new zn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=_n("../../range").Range,Hn=_n("../../token_iterator").TokenIterator,qn=kn.FoldMode=function(){};zn.inherits(qn,Kn),(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(Nn,Dn,In){var Bn=Nn.getLine(In),Ln=this.foldingStartMarker.test(Bn),Pn=this.foldingStopMarker.test(Bn);if(Ln&&!Pn){var Zn=Bn.match(this.foldingStartMarker);if(Zn[1]){if((Zn[1]=="if"||Zn[1]=="else"||Zn[1]=="while"||Zn[1]=="until"||Zn[1]=="unless")&&(Zn[1]=="else"&&/^\s*else\s*$/.test(Bn)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(Bn)===!1)||Zn[1]=="when"&&/\sthen\s/.test(Bn)===!0)return;if(Nn.getTokenAt(In,Zn.index+2).type==="keyword")return"start"}else if(!Zn[3]||Nn.getTokenAt(In,Zn.index+1).type==="comment.multiline")return"start"}if(Dn!="markbeginend"||!Pn||Ln&&Pn)return"";var Zn=Bn.match(this.foldingStopMarker);if(Zn[3]==="end"){if(Nn.getTokenAt(In,Zn.index+1).type==="keyword")return"end"}else if(!Zn[1]||Nn.getTokenAt(In,Zn.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(Nn,Dn,In){var Bn=Nn.doc.getLine(In),Ln=this.foldingStartMarker.exec(Bn);if(Ln)return Ln[1]||Ln[3]?this.rubyBlock(Nn,In,Ln.index+2):this.openingBracketBlock(Nn,"{",In,Ln.index);var Ln=this.foldingStopMarker.exec(Bn);if(Ln)return Ln[3]==="end"&&Nn.getTokenAt(In,Ln.index+1).type==="keyword"?this.rubyBlock(Nn,In,Ln.index+1):Ln[1]==="=end"&&Nn.getTokenAt(In,Ln.index+1).type==="comment.multiline"?this.rubyBlock(Nn,In,Ln.index+1):this.closingBracketBlock(Nn,"}",In,Ln.index+Ln[0].length)},this.rubyBlock=function(Nn,Dn,In,Bn){var Ln=new Hn(Nn,Dn,In),Pn=Ln.getCurrentToken();if(!(!Pn||Pn.type!="keyword"&&Pn.type!="comment.multiline")){var Zn=Pn.value,Jn=Nn.getLine(Dn);switch(Pn.value){case"if":case"unless":case"while":case"until":var Xn=new RegExp("^\\s*"+Pn.value);if(!Xn.test(Jn))return;var mi=this.indentKeywords[Zn];break;case"when":if(/\sthen\s/.test(Jn))return;case"elsif":case"rescue":case"ensure":var mi=1;break;case"else":var Xn=new RegExp("^\\s*"+Pn.value+"\\s*$");if(!Xn.test(Jn))return;var mi=1;break;default:var mi=this.indentKeywords[Zn]}var li=[Zn];if(mi){var oi=mi===-1?Nn.getLine(Dn-1).length:Nn.getLine(Dn).length,ei=Dn,fi=[];if(fi.push(Ln.getCurrentTokenRange()),Ln.step=mi===-1?Ln.stepBackward:Ln.stepForward,Pn.type=="comment.multiline"){for(;Pn=Ln.step();)if(Pn.type==="comment.multiline"){if(mi==1){if(oi=6,Pn.value=="=end")break}else if(Pn.value=="=begin")break}}else for(;Pn=Ln.step();){var gi=!1;if(Pn.type==="keyword"){var yi=mi*this.indentKeywords[Pn.value];switch(Jn=Nn.getLine(Ln.getCurrentTokenRow()),Pn.value){case"do":for(var pi=Ln.$tokenIndex-1;pi>=0;pi--){var $i=Ln.$rowTokens[pi];if($i&&($i.value=="while"||$i.value=="until"||$i.value=="for")){yi=0;break}}break;case"else":var Xn=new RegExp("^\\s*"+Pn.value+"\\s*$");(!Xn.test(Jn)||Zn=="case")&&(yi=0,gi=!0);break;case"if":case"unless":case"while":case"until":var Xn=new RegExp("^\\s*"+Pn.value);Xn.test(Jn)||(yi=0,gi=!0);break;case"when":(/\sthen\s/.test(Jn)||Zn=="case")&&(yi=0,gi=!0)}if(yi>0)li.unshift(Pn.value);else if(yi<=0&&gi===!1){if(li.shift(),!li.length&&((Zn=="while"||Zn=="until"||Zn=="for")&&Pn.value!="do"||Pn.value=="do"&&mi==-1&&yi!=0||Pn.value!="do"))break;yi===0&&li.unshift(Pn.value)}}}if(!Pn)return null;if(Bn)return fi.push(Ln.getCurrentTokenRange()),fi;var Dn=Ln.getCurrentTokenRow();if(mi===-1){if(Pn.type==="comment.multiline")var si=6;else var si=Nn.getLine(Dn).length;return new Qn(Dn,si,ei-1,oi)}return new Qn(ei,oi,Dn-1,Nn.getLine(Dn-1).length)}}}}).call(qn.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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./ruby_highlight_rules").RubyHighlightRules,Hn=_n("./matching_brace_outdent").MatchingBraceOutdent,qn=_n("../range").Range,Nn=_n("./folding/ruby").FoldMode,Dn=function(){this.HighlightRules=Qn,this.$outdent=new Hn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new Nn,this.indentKeywords=this.foldingRules.indentKeywords};zn.inherits(Dn,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[]\s*$/),mi=Bn.match(/^\s*(class|def|module)\s.*$/),li=Bn.match(/.*do(\s*|\s+\|.*\|\s*)$/),oi=Bn.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(Xn||mi||li||oi)&&(Pn+=Ln)}return Pn},this.checkOutdent=function(In,Bn,Ln){return/^\s+(end|else|rescue|ensure)$/.test(Bn+Ln)||this.$outdent.checkOutdent(Bn,Ln)},this.autoOutdent=function(In,Bn,Ln){var Pn=Bn.getLine(Ln);if(/}/.test(Pn))return this.$outdent.autoOutdent(Bn,Ln);var Zn=this.$getIndent(Pn),Jn=Bn.getLine(Ln-1),Xn=this.$getIndent(Jn),mi=Bn.getTabString();Xn.length<=Zn.length&&Zn.slice(-mi.length)==mi&&Bn.remove(new qn(Ln,Zn.length-mi.length,Ln,Zn.length))},this.getMatching=function(In,Bn,Ln){if(Bn==null){var Pn=In.selection.lead;Ln=Pn.column,Bn=Pn.row}var Zn=In.getTokenAt(Bn,Ln);if(Zn&&Zn.value in this.indentKeywords)return this.foldingRules.rubyBlock(In,Bn,Ln,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(Dn.prototype),kn.Mode=Dn}),function(){ace.require(["ace/mode/ruby"],function(_n){e&&(e.exports=_n)})}()}(hc)),hc.exports}Zb();var dc={exports:{}},Wd;function Qb(){return Wd||(Wd=1,function(e,vn){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(){var Hn="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",qn="True|False|None|NotImplemented|Ellipsis|__debug__",Nn="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",Dn=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":Nn,"variable.language":"self|cls","constant.language":qn,keyword:Hn},"identifier"),In="[uU]?",Bn="[rR]",Ln="[fF]",Pn="(?:[rR][fF]|[fF][rR])",Zn="(?:(?:[1-9]\\d*)|(?:0))",Jn="(?:0[oO]?[0-7]+)",Xn="(?:0[xX][\\dA-Fa-f]+)",mi="(?:0[bB][01]+)",li="(?:"+Zn+"|"+Jn+"|"+Xn+"|"+mi+")",oi="(?:[eE][+-]?\\d+)",ei="(?:\\.\\d+)",fi="(?:\\d+)",gi="(?:(?:"+fi+"?"+ei+")|(?:"+fi+"\\.))",yi="(?:(?:"+gi+"|"+fi+")"+oi+")",pi="(?:"+yi+"|"+gi+")",$i=`\\\\(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:In+'"{3}',next:"qqstring3"},{token:"string",regex:In+'"(?=.)',next:"qqstring"},{token:"string",regex:In+"'{3}",next:"qstring3"},{token:"string",regex:In+"'(?=.)",next:"qstring"},{token:"string",regex:Bn+'"{3}',next:"rawqqstring3"},{token:"string",regex:Bn+'"(?=.)',next:"rawqqstring"},{token:"string",regex:Bn+"'{3}",next:"rawqstring3"},{token:"string",regex:Bn+"'(?=.)",next:"rawqstring"},{token:"string",regex:Ln+'"{3}',next:"fqqstring3"},{token:"string",regex:Ln+'"(?=.)',next:"fqqstring"},{token:"string",regex:Ln+"'{3}",next:"fqstring3"},{token:"string",regex:Ln+"'(?=.)",next:"fqstring"},{token:"string",regex:Pn+'"{3}',next:"rfqqstring3"},{token:"string",regex:Pn+'"(?=.)',next:"rfqqstring"},{token:"string",regex:Pn+"'{3}",next:"rfqstring3"},{token:"string",regex:Pn+"'(?=.)",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:$i},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:$i},{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:$i},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:$i},{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:"(?:"+pi+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:pi},{token:"constant.numeric",regex:li+"[lL]\\b"},{token:"constant.numeric",regex:li+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:Dn,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};zn.inherits(Qn,Kn),kn.PythonHighlightRules=Qn}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=kn.FoldMode=function(Hn){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+Hn+")(?:\\s*)(?:#.*)?$")};zn.inherits(Qn,Kn),(function(){this.getFoldWidgetRange=function(Hn,qn,Nn){var Dn=Hn.getLine(Nn),In=Dn.match(this.foldingStartMarker);if(In)return In[1]?this.openingBracketBlock(Hn,In[1],Nn,In.index):In[2]?this.indentationBlock(Hn,Nn,In.index+In[2].length):this.indentationBlock(Hn,Nn)}}).call(Qn.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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./python_highlight_rules").PythonHighlightRules,Hn=_n("./folding/pythonic").FoldMode,qn=_n("../range").Range,Nn=function(){this.HighlightRules=Qn,this.foldingRules=new Hn("\\:"),this.$behaviour=this.$defaultBehaviour};zn.inherits(Nn,Kn),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[:]\s*$/);Xn&&(Pn+=Ln)}return Pn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(In,Bn,Ln){if(Ln!==`\r
|
971
|
+
`&&Ln!=="\r"&&Ln!==`
|
972
|
+
`)return!1;var Pn=this.getTokenizer().getLineTokens(Bn.trim(),In).tokens;if(!Pn)return!1;do var Zn=Pn.pop();while(Zn&&(Zn.type=="comment"||Zn.type=="text"&&Zn.value.match(/^\s+$/)));return Zn?Zn.type=="keyword"&&Dn[Zn.value]:!1},this.autoOutdent=function(In,Bn,Ln){Ln+=1;var Pn=this.$getIndent(Bn.getLine(Ln)),Zn=Bn.getTabString();Pn.slice(-Zn.length)==Zn&&Bn.remove(new qn(Ln,Pn.length-Zn.length,Ln,Pn.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(Nn.prototype),kn.Mode=Nn}),function(){ace.require(["ace/mode/python"],function(_n){e&&(e.exports=_n)})}()}(dc)),dc.exports}Qb();var fc={exports:{}},Pd;function Xb(){return Pd||(Pd=1,function(e,vn){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=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"}]}};zn.inherits(Qn,Kn),kn.JsonHighlightRules=Qn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,Hn){return/^\s+$/.test(Qn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Qn,Hn){var qn=Qn.getLine(Hn),Nn=qn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:Hn,column:Dn});if(!In||In.row==Hn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new zn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("../../range").Range,Qn=_n("./fold_mode").FoldMode,Hn=kn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end)))};zn.inherits(Hn,Qn),(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(qn,Nn,Dn){var In=qn.getLine(Dn);if(this.singleLineBlockCommentRe.test(In)&&!this.startRegionRe.test(In)&&!this.tripleStarBlockCommentRe.test(In))return"";var Bn=this._getFoldWidgetBase(qn,Nn,Dn);return!Bn&&this.startRegionRe.test(In)?"start":Bn},this.getFoldWidgetRange=function(qn,Nn,Dn,In){var Bn=qn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(qn,Bn,Dn);var Ln=Bn.match(this.foldingStartMarker);if(Ln){var Pn=Ln.index;if(Ln[1])return this.openingBracketBlock(qn,Ln[1],Dn,Pn);var Zn=qn.getCommentFoldRange(Dn,Pn+Ln[0].length,1);return Zn&&!Zn.isMultiLine()&&(In?Zn=this.getSectionRange(qn,Dn):Nn!="all"&&(Zn=null)),Zn}if(Nn!=="markbegin"){var Ln=Bn.match(this.foldingStopMarker);if(Ln){var Pn=Ln.index+Ln[0].length;return Ln[1]?this.closingBracketBlock(qn,Ln[1],Dn,Pn):qn.getCommentFoldRange(Dn,Pn,-1)}}},this.getSectionRange=function(qn,Nn){var Dn=qn.getLine(Nn),In=Dn.search(/\S/),Bn=Nn,Ln=Dn.length;Nn+=1;for(var Pn=Nn,Zn=qn.getLength();++Nn<Zn;){Dn=qn.getLine(Nn);var Jn=Dn.search(/\S/);if(Jn!==-1){if(In>Jn)break;var Xn=this.getFoldWidgetRange(qn,"all",Nn);if(Xn){if(Xn.start.row<=Bn)break;if(Xn.isMultiLine())Nn=Xn.end.row;else if(In==Jn)break}Pn=Nn}}return new Kn(Bn,Ln,Pn,qn.getLine(Pn).length)},this.getCommentRegionBlock=function(qn,Nn,Dn){for(var In=Nn.search(/\s*$/),Bn=qn.getLength(),Ln=Dn,Pn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Zn=1;++Dn<Bn;){Nn=qn.getLine(Dn);var Jn=Pn.exec(Nn);if(Jn&&(Jn[1]?Zn--:Zn++,!Zn))break}var Xn=Dn;if(Xn>Ln)return new Kn(Ln,In,Xn,Nn.length)}}).call(Hn.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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./json_highlight_rules").JsonHighlightRules,Hn=_n("./matching_brace_outdent").MatchingBraceOutdent,qn=_n("./folding/cstyle").FoldMode,Nn=_n("../worker/worker_client").WorkerClient,Dn=function(){this.HighlightRules=Qn,this.$outdent=new Hn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new qn};zn.inherits(Dn,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn);if(In=="start"){var Zn=Bn.match(/^.*[\{\(\[]\s*$/);Zn&&(Pn+=Ln)}return Pn},this.checkOutdent=function(In,Bn,Ln){return this.$outdent.checkOutdent(Bn,Ln)},this.autoOutdent=function(In,Bn,Ln){this.$outdent.autoOutdent(Bn,Ln)},this.createWorker=function(In){var Bn=new Nn(["ace"],"ace/mode/json_worker","JsonWorker");return Bn.attachToDocument(In.getDocument()),Bn.on("annotate",function(Ln){In.setAnnotations(Ln.data)}),Bn.on("terminate",function(){In.clearAnnotations()}),Bn},this.$id="ace/mode/json"}).call(Dn.prototype),kn.Mode=Dn}),function(){ace.require(["ace/mode/json"],function(_n){e&&(e.exports=_n)})}()}(fc)),fc.exports}Xb();var pc={exports:{}},Bd;function Jb(){return Bd||(Bd=1,function(e,vn){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop");_n("../lib/lang");var Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.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",Hn=kn.supportFunction="rgb|rgba|url|attr|counter|counters",qn=kn.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",Nn=kn.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",Dn=kn.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",In=kn.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",Bn=kn.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",Ln=kn.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",Pn=function(){var Zn=this.createKeywordMapper({"support.function":Hn,"support.constant":qn,"support.type":Qn,"support.constant.color":Nn,"support.constant.fonts":Dn},"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:In},{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:"("+In+")(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:In},{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:Bn},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:Ln},{include:"url"},{token:Zn,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()};zn.inherits(Pn,Kn),kn.CssHighlightRules=Pn}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=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|$)"},Qn.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};zn.inherits(Qn,Kn),Qn.getTagRule=function(Hn){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},Qn.getStartRule=function(Hn){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:Hn}},Qn.getEndRule=function(Hn){return{token:"comment.doc",regex:"\\*\\/",next:Hn}},kn.JsDocCommentHighlightRules=Qn}),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(_n,kn,Wn){function zn(){var In=Nn.replace("\\d","\\d\\-"),Bn={onMatch:function(Pn,Zn,Jn){var Xn=Pn.charAt(1)=="/"?2:1;return Xn==1?(Zn!=this.nextState?Jn.unshift(this.next,this.nextState,0):Jn.unshift(this.next),Jn[2]++):Xn==2&&Zn==this.nextState&&(Jn[1]--,(!Jn[1]||Jn[1]<0)&&(Jn.shift(),Jn.shift())),[{type:"meta.tag.punctuation."+(Xn==1?"":"end-")+"tag-open.xml",value:Pn.slice(0,Xn)},{type:"meta.tag.tag-name.xml",value:Pn.substr(Xn)}]},regex:"</?(?:"+In+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(Bn);var Ln={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[Ln,Bn,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(Pn,Zn,Jn){return Zn==Jn[0]&&Jn.shift(),Pn.length==2&&(Jn[0]==this.nextState&&Jn[1]--,(!Jn[1]||Jn[1]<0)&&Jn.splice(0,2)),this.next=Jn[0]||"start",[{type:this.token,value:Pn}]},nextState:"jsx"},Ln,Kn("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:In},{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"}]},Bn],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function Kn(In){return[{token:"comment",regex:/\/\*/,next:[Hn.getTagRule(),{token:"comment",regex:"\\*\\/",next:In||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[Hn.getTagRule(),{token:"comment",regex:"$|^",next:In||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var Qn=_n("../lib/oop"),Hn=_n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,qn=_n("./text_highlight_rules").TextHighlightRules,Nn="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",Dn=function(In){var Bn={"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"},Ln=this.createKeywordMapper(Bn,"identifier"),Pn="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",Zn="\\\\(?: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]?|.)",Jn="(function)(\\s*)(\\*?)",Xn={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(Bn).join("|")+"\\b)"+Nn+")(\\s*)(\\()"};this.$rules={no_regex:[Hn.getStartRule("doc-start"),Kn("no_regex"),Xn,{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:"("+Nn+")(\\s*)(=)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+Nn+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+Nn+")(\\s*)(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+Pn+")\\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:Ln,regex:Nn},{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:Jn+"(\\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:Nn},{regex:"",token:"empty",next:"no_regex"}],start:[Hn.getStartRule("doc-start"),Kn("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:[Kn("function_arguments"),{token:"variable.parameter",regex:Nn},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:Zn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:Zn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!In||!In.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(mi,li,oi){if(this.next=mi=="{"?this.nextState:"",mi=="{"&&oi.length)oi.unshift("start",li);else if(mi=="}"&&oi.length&&(oi.shift(),this.next=oi.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return mi=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:Zn},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+Nn+")(\\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"}),(!In||In.jsx!=0)&&zn.call(this)),this.embedRules(Hn,"doc-",[Hn.getEndRule("no_regex")]),this.normalizeRules()};Qn.inherits(Dn,qn),kn.JavaScriptHighlightRules=Dn}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(Hn){var qn="[_: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:"(<\\?)("+qn+")",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:qn},{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:"(<\\!)("+qn+")",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:"(?:(<)|(</))((?:"+qn+":)?"+qn+")",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:qn},{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===Qn&&this.normalizeRules()};(function(){this.embedTagRules=function(Hn,qn,Nn){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+Nn+".tag-name.xml"],regex:"(<)("+Nn+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:qn+"start"}]}),this.$rules[Nn+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(Dn,In,Bn){return Bn.splice(0),this.token}}],this.embedRules(Hn,qn,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+Nn+".tag-name.xml"],regex:"(</)("+Nn+"(?=\\s|>|$))",next:Nn+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(Kn.prototype),zn.inherits(Qn,Kn),kn.XmlHighlightRules=Qn}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./css_highlight_rules").CssHighlightRules,Hn=_n("./javascript_highlight_rules").JavaScriptHighlightRules,qn=_n("./xml_highlight_rules").XmlHighlightRules,Nn=Kn.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"}),Dn=function(){qn.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(In,Bn){var Ln=Nn[Bn];return["meta.tag.punctuation."+(In=="<"?"":"end-")+"tag-open.xml","meta.tag"+(Ln?"."+Ln:"")+".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(Qn,"css-","style"),this.embedTagRules(new Hn({jsx:!1}).getRules(),"js-","script"),this.constructor===Dn&&this.normalizeRules()};zn.inherits(Dn,qn),kn.HtmlHighlightRules=Dn}),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(_n,kn,Wn){var zn=_n("../config").$modes,Kn=_n("../lib/oop"),Qn=_n("../lib/lang"),Hn=_n("./text_highlight_rules").TextHighlightRules,qn=_n("./html_highlight_rules").HtmlHighlightRules,Nn=function(In){return"(?:[^"+Qn.escapeRegExp(In)+"\\\\]|\\\\.)*"},Dn=function(){qn.call(this);var In={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(Ln,Pn,Zn,Jn){var Xn=Ln.match(/^(\s*)([`~]+)(.*)/),mi=/[\w-]+|$/.exec(Xn[3])[0];return zn[mi]||(mi=""),Zn.unshift("githubblock",[],[Xn[1],Xn[2],mi],Pn),this.token},next:"githubblock"},Bn=[{token:"support.function",regex:".*",onMatch:function(Ln,Pn,Zn,Jn){var Xn=Zn[1],mi=Zn[2][0],li=Zn[2][1],oi=Zn[2][2],ei=/^(\s*)(`+|~+)\s*$/.exec(Ln);if(ei&&ei[1].length<mi.length+3&&ei[2].length>=li.length&&ei[2][0]==li[0])return Zn.splice(0,3),this.next=Zn.shift(),this.token;if(this.next="",oi&&zn[oi]){var fi=zn[oi].getTokenizer().getLineTokens(Ln,Xn.slice(0));return Zn[1]=fi.state,fi.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(Ln){return"markup.heading."+Ln.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},In,{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:"(\\[)("+Nn("]")+")(\\]\\s*\\[)("+Nn("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+Nn("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+Nn('"')+'"\\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},In,{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:Bn}),this.normalizeRules()};Kn.inherits(Dn,Hn),kn.MarkdownHighlightRules=Dn}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=_n("../../range").Range,Hn=kn.FoldMode=function(){};zn.inherits(Hn,Kn),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(qn,Nn,Dn){var In=qn.getLine(Dn);return this.foldingStartMarker.test(In)?In[0]=="`"&&qn.bgTokenizer.getState(Dn)=="start"?"end":"start":""},this.getFoldWidgetRange=function(qn,Nn,Dn){function In(gi){return mi=qn.getTokens(gi)[0],mi&&mi.type.lastIndexOf(li,0)===0}function Bn(){var gi=mi.value[0];return gi=="="?6:gi=="-"?5:7-mi.value.search(/[^#]|$/)}var Ln=qn.getLine(Dn),Pn=Ln.length,Zn=qn.getLength(),Jn=Dn,Xn=Dn;if(Ln.match(this.foldingStartMarker)){if(Ln[0]=="`"){if(qn.bgTokenizer.getState(Dn)!=="start"){for(;++Dn<Zn&&(Ln=qn.getLine(Dn),!(Ln[0]=="`"&Ln.substring(0,3)=="```")););return new Qn(Jn,Pn,Dn,0)}for(;Dn-- >0&&(Ln=qn.getLine(Dn),!(Ln[0]=="`"&Ln.substring(0,3)=="```")););return new Qn(Dn,Ln.length,Jn,0)}var mi,li="markup.heading";if(In(Dn)){for(var oi=Bn();++Dn<Zn;)if(In(Dn)){var ei=Bn();if(ei>=oi)break}if(Xn=Dn-(!mi||["=","-"].indexOf(mi.value[0])==-1?1:2),Xn>Jn)for(;Xn>Jn&&/^\s*$/.test(qn.getLine(Xn));)Xn--;if(Xn>Jn){var fi=qn.getLine(Xn).length;return new Qn(Jn,Pn,Xn,fi)}}}}}).call(Hn.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,Wn){var zn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,Hn){return/^\s+$/.test(Qn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Qn,Hn){var qn=Qn.getLine(Hn),Nn=qn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:Hn,column:Dn});if(!In||In.row==Hn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new zn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(_n,kn,Wn){function zn(Nn,Dn){return Nn&&Nn.type.lastIndexOf(Dn+".xml")>-1}var Kn=_n("../../lib/oop"),Qn=_n("../behaviour").Behaviour,Hn=_n("../../token_iterator").TokenIterator,qn=function(){this.add("string_dquotes","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln=='"'||Ln=="'"){var Pn=Ln,Zn=Bn.doc.getTextRange(In.getSelectionRange());if(Zn!==""&&Zn!=="'"&&Zn!='"'&&In.getWrapBehavioursEnabled())return{text:Pn+Zn+Pn,selection:!1};var Jn=In.getCursorPosition(),Xn=Bn.doc.getLine(Jn.row),mi=Xn.substring(Jn.column,Jn.column+1),li=new Hn(Bn,Jn.row,Jn.column),oi=li.getCurrentToken();if(mi==Pn&&(zn(oi,"attribute-value")||zn(oi,"string")))return{text:"",selection:[1,1]};if(oi||(oi=li.stepBackward()),!oi)return;for(;zn(oi,"tag-whitespace")||zn(oi,"whitespace");)oi=li.stepBackward();var ei=!mi||mi.match(/\s/);if(zn(oi,"attribute-equals")&&(ei||mi==">")||zn(oi,"decl-attribute-equals")&&(ei||mi=="?"))return{text:Pn+Pn,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(Nn,Dn,In,Bn,Ln){var Pn=Bn.doc.getTextRange(Ln);if(!Ln.isMultiLine()&&(Pn=='"'||Pn=="'")){var Zn=Bn.doc.getLine(Ln.start.row),Jn=Zn.substring(Ln.start.column+1,Ln.start.column+2);if(Jn==Pn)return Ln.end.column++,Ln}}),this.add("autoclosing","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln==">"){var Pn=In.getSelectionRange().start,Zn=new Hn(Bn,Pn.row,Pn.column),Jn=Zn.getCurrentToken()||Zn.stepBackward();if(!Jn||!(zn(Jn,"tag-name")||zn(Jn,"tag-whitespace")||zn(Jn,"attribute-name")||zn(Jn,"attribute-equals")||zn(Jn,"attribute-value"))||zn(Jn,"reference.attribute-value"))return;if(zn(Jn,"attribute-value")){var Xn=Zn.getCurrentTokenColumn()+Jn.value.length;if(Pn.column<Xn)return;if(Pn.column==Xn){var mi=Zn.stepForward();if(mi&&zn(mi,"attribute-value"))return;Zn.stepBackward()}}if(/^\s*>/.test(Bn.getLine(Pn.row).slice(Pn.column)))return;for(;!zn(Jn,"tag-name");)if(Jn=Zn.stepBackward(),Jn.value=="<"){Jn=Zn.stepForward();break}var li=Zn.getCurrentTokenRow(),oi=Zn.getCurrentTokenColumn();if(zn(Zn.stepBackward(),"end-tag-open"))return;var ei=Jn.value;return li==Pn.row&&(ei=ei.substring(0,Pn.column-oi)),this.voidElements&&this.voidElements.hasOwnProperty(ei.toLowerCase())?void 0:{text:"></"+ei+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln==`
|
973
|
+
`){var Pn=In.getCursorPosition(),Zn=Bn.getLine(Pn.row),Jn=new Hn(Bn,Pn.row,Pn.column),Xn=Jn.getCurrentToken();if(zn(Xn,"")&&Xn.type.indexOf("tag-close")!==-1){if(Xn.value=="/>")return;for(;Xn&&Xn.type.indexOf("tag-name")===-1;)Xn=Jn.stepBackward();if(!Xn)return;var mi=Xn.value,li=Jn.getCurrentTokenRow();if(Xn=Jn.stepBackward(),!Xn||Xn.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[mi]||!this.voidElements){var oi=Bn.getTokenAt(Pn.row,Pn.column+1),Zn=Bn.getLine(li),ei=this.$getIndent(Zn),fi=ei+Bn.getTabString();return oi&&oi.value==="</"?{text:`
|
974
|
+
`+fi+`
|
975
|
+
`+ei,selection:[1,fi.length,1,fi.length]}:{text:`
|
976
|
+
`+fi}}}}})};Kn.inherits(qn,Qn),kn.XmlBehaviour=qn}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("../../token_iterator").TokenIterator,Qn=_n("../behaviour/cstyle").CstyleBehaviour,Hn=_n("../behaviour/xml").XmlBehaviour,qn=function(){var Nn=new Hn({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(Nn),this.inherit(Qn),this.add("autoclosing-fragment","insertion",function(Dn,In,Bn,Ln,Pn){if(Pn==">"){var Zn=Bn.getSelectionRange().start,Jn=new Kn(Ln,Zn.row,Zn.column),Xn=Jn.getCurrentToken()||Jn.stepBackward();if(!Xn)return;if(Xn.value=="<")return{text:"></>",selection:[1,1]}}})};zn.inherits(qn,Qn),kn.JavaScriptBehaviour=qn}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,Wn){function zn(Dn,In){return Dn.type.lastIndexOf(In+".xml")>-1}var Kn=_n("../../lib/oop"),Qn=_n("../../range").Range,Hn=_n("./fold_mode").FoldMode,qn=kn.FoldMode=function(Dn,In){Hn.call(this),this.voidElements=Dn||{},this.optionalEndTags=Kn.mixin({},this.voidElements),In&&Kn.mixin(this.optionalEndTags,In)};Kn.inherits(qn,Hn);var Nn=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(Dn,In,Bn){var Ln=this._getFirstTagInLine(Dn,Bn);return Ln?Ln.closing||!Ln.tagName&&Ln.selfClosing?In==="markbeginend"?"end":"":!Ln.tagName||Ln.selfClosing||this.voidElements.hasOwnProperty(Ln.tagName.toLowerCase())||this._findEndTagInLine(Dn,Bn,Ln.tagName,Ln.end.column)?"":"start":this.getCommentFoldWidget(Dn,Bn)},this.getCommentFoldWidget=function(Dn,In){return/comment/.test(Dn.getState(In))&&/<!-/.test(Dn.getLine(In))?"start":""},this._getFirstTagInLine=function(Dn,In){for(var Bn=Dn.getTokens(In),Ln=new Nn,Pn=0;Pn<Bn.length;Pn++){var Zn=Bn[Pn];if(zn(Zn,"tag-open")){if(Ln.end.column=Ln.start.column+Zn.value.length,Ln.closing=zn(Zn,"end-tag-open"),Zn=Bn[++Pn],!Zn)return null;if(Ln.tagName=Zn.value,Zn.value===""){if(Zn=Bn[++Pn],!Zn)return null;Ln.tagName=Zn.value}for(Ln.end.column+=Zn.value.length,Pn++;Pn<Bn.length;Pn++)if(Zn=Bn[Pn],Ln.end.column+=Zn.value.length,zn(Zn,"tag-close")){Ln.selfClosing=Zn.value=="/>";break}return Ln}if(zn(Zn,"tag-close"))return Ln.selfClosing=Zn.value=="/>",Ln;Ln.start.column+=Zn.value.length}return null},this._findEndTagInLine=function(Dn,In,Bn,Ln){for(var Pn=Dn.getTokens(In),Zn=0,Jn=0;Jn<Pn.length;Jn++){var Xn=Pn[Jn];if(Zn+=Xn.value.length,!(Zn<Ln-1)&&zn(Xn,"end-tag-open")&&(Xn=Pn[Jn+1],zn(Xn,"tag-name")&&Xn.value===""&&(Xn=Pn[Jn+2]),Xn&&Xn.value==Bn))return!0}return!1},this.getFoldWidgetRange=function(Dn,In,Bn){var Ln=this._getFirstTagInLine(Dn,Bn);if(!Ln)return this.getCommentFoldWidget(Dn,Bn)&&Dn.getCommentFoldRange(Bn,Dn.getLine(Bn).length);var Pn=Dn.getMatchingTags({row:Bn,column:0});if(Pn)return new Qn(Pn.openTag.end.row,Pn.openTag.end.column,Pn.closeTag.start.row,Pn.closeTag.start.column)}}).call(qn.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("../../range").Range,Qn=_n("./fold_mode").FoldMode,Hn=kn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end)))};zn.inherits(Hn,Qn),(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(qn,Nn,Dn){var In=qn.getLine(Dn);if(this.singleLineBlockCommentRe.test(In)&&!this.startRegionRe.test(In)&&!this.tripleStarBlockCommentRe.test(In))return"";var Bn=this._getFoldWidgetBase(qn,Nn,Dn);return!Bn&&this.startRegionRe.test(In)?"start":Bn},this.getFoldWidgetRange=function(qn,Nn,Dn,In){var Bn=qn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(qn,Bn,Dn);var Ln=Bn.match(this.foldingStartMarker);if(Ln){var Pn=Ln.index;if(Ln[1])return this.openingBracketBlock(qn,Ln[1],Dn,Pn);var Zn=qn.getCommentFoldRange(Dn,Pn+Ln[0].length,1);return Zn&&!Zn.isMultiLine()&&(In?Zn=this.getSectionRange(qn,Dn):Nn!="all"&&(Zn=null)),Zn}if(Nn!=="markbegin"){var Ln=Bn.match(this.foldingStopMarker);if(Ln){var Pn=Ln.index+Ln[0].length;return Ln[1]?this.closingBracketBlock(qn,Ln[1],Dn,Pn):qn.getCommentFoldRange(Dn,Pn,-1)}}},this.getSectionRange=function(qn,Nn){var Dn=qn.getLine(Nn),In=Dn.search(/\S/),Bn=Nn,Ln=Dn.length;Nn+=1;for(var Pn=Nn,Zn=qn.getLength();++Nn<Zn;){Dn=qn.getLine(Nn);var Jn=Dn.search(/\S/);if(Jn!==-1){if(In>Jn)break;var Xn=this.getFoldWidgetRange(qn,"all",Nn);if(Xn){if(Xn.start.row<=Bn)break;if(Xn.isMultiLine())Nn=Xn.end.row;else if(In==Jn)break}Pn=Nn}}return new Kn(Bn,Ln,Pn,qn.getLine(Pn).length)},this.getCommentRegionBlock=function(qn,Nn,Dn){for(var In=Nn.search(/\s*$/),Bn=qn.getLength(),Ln=Dn,Pn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Zn=1;++Dn<Bn;){Nn=qn.getLine(Dn);var Jn=Pn.exec(Nn);if(Jn&&(Jn[1]?Zn--:Zn++,!Zn))break}var Xn=Dn;if(Xn>Ln)return new Kn(Ln,In,Xn,Nn.length)}}).call(Hn.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./xml").FoldMode,Qn=_n("./cstyle").FoldMode,Hn=kn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end))),this.xmlFoldMode=new Kn};zn.inherits(Hn,Qn),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(qn,Nn,Dn){var In=this.getFoldWidgetBase(qn,Nn,Dn);return In||this.xmlFoldMode.getFoldWidget(qn,Nn,Dn)},this.getFoldWidgetRange=function(qn,Nn,Dn,In){var Bn=this.getFoldWidgetRangeBase(qn,Nn,Dn,In);return Bn||this.xmlFoldMode.getFoldWidgetRange(qn,Nn,Dn)}}).call(Hn.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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./javascript_highlight_rules").JavaScriptHighlightRules,Hn=_n("./matching_brace_outdent").MatchingBraceOutdent,qn=_n("../worker/worker_client").WorkerClient,Nn=_n("./behaviour/javascript").JavaScriptBehaviour,Dn=_n("./folding/javascript").FoldMode,In=function(){this.HighlightRules=Qn,this.$outdent=new Hn,this.$behaviour=new Nn,this.foldingRules=new Dn};zn.inherits(In,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(Bn,Ln,Pn){var Zn=this.$getIndent(Ln),Jn=this.getTokenizer().getLineTokens(Ln,Bn),Xn=Jn.tokens,mi=Jn.state;if(Xn.length&&Xn[Xn.length-1].type=="comment")return Zn;if(Bn=="start"||Bn=="no_regex"){var li=Ln.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);li&&(Zn+=Pn)}else if(Bn=="doc-start"&&(mi=="start"||mi=="no_regex"))return"";return Zn},this.checkOutdent=function(Bn,Ln,Pn){return this.$outdent.checkOutdent(Ln,Pn)},this.autoOutdent=function(Bn,Ln,Pn){this.$outdent.autoOutdent(Ln,Pn)},this.createWorker=function(Bn){var Ln=new qn(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return Ln.attachToDocument(Bn.getDocument()),Ln.on("annotate",function(Pn){Bn.setAnnotations(Pn.data)}),Ln.on("terminate",function(){Bn.clearAnnotations()}),Ln},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(In.prototype),kn.Mode=In}),ace.define("ace/mode/css_completions",["require","exports","module"],function(_n,kn,Wn){var zn={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}},Kn=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var Qn=document.createElement("c").style;for(var Hn in Qn)if(typeof Qn[Hn]=="string"){var qn=Hn.replace(/[A-Z]/g,function(Nn){return"-"+Nn.toLowerCase()});zn.hasOwnProperty(qn)||(zn[qn]=1)}}this.completionsDefined=!0},this.getCompletions=function(Qn,Hn,qn,Nn){if(this.completionsDefined||this.defineCompletions(),Qn==="ruleset"||Hn.$mode.$id=="ace/mode/scss"){var Dn=Hn.getLine(qn.row).substr(0,qn.column),In=/\([^)]*$/.test(Dn);return In&&(Dn=Dn.substr(Dn.lastIndexOf("(")+1)),/:[^;]+$/.test(Dn)?this.getPropertyValueCompletions(Qn,Hn,qn,Nn):this.getPropertyCompletions(Qn,Hn,qn,Nn,In)}return[]},this.getPropertyCompletions=function(Qn,Hn,qn,Nn,Dn){Dn=Dn||!1;var In=Object.keys(zn);return In.map(function(Bn){return{caption:Bn,snippet:Bn+": $0"+(Dn?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(Qn,Hn,qn,Nn){var Dn=Hn.getLine(qn.row).substr(0,qn.column),In=(/([\w\-]+):[^:]*$/.exec(Dn)||{})[1];if(!In)return[];var Bn=[];return In in zn&&typeof zn[In]=="object"&&(Bn=Object.keys(zn[In])),Bn.map(function(Ln){return{caption:Ln,snippet:Ln,meta:"property value",score:1e6}})}}).call(Kn.prototype),kn.CssCompletions=Kn}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(_n,kn,Wn){var zn=_n("../../lib/oop");_n("../behaviour").Behaviour;var Kn=_n("./cstyle").CstyleBehaviour,Qn=_n("../../token_iterator").TokenIterator,Hn=function(){this.inherit(Kn),this.add("colon","insertion",function(qn,Nn,Dn,In,Bn){if(Bn===":"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=new Qn(In,Ln.row,Ln.column),Zn=Pn.getCurrentToken();if(Zn&&Zn.value.match(/\s+/)&&(Zn=Pn.stepBackward()),Zn&&Zn.type==="support.type"){var Jn=In.doc.getLine(Ln.row),Xn=Jn.substring(Ln.column,Ln.column+1);if(Xn===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(Jn.substring(Ln.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(qn,Nn,Dn,In,Bn){var Ln=In.doc.getTextRange(Bn);if(!Bn.isMultiLine()&&Ln===":"){var Pn=Dn.getCursorPosition(),Zn=new Qn(In,Pn.row,Pn.column),Jn=Zn.getCurrentToken();if(Jn&&Jn.value.match(/\s+/)&&(Jn=Zn.stepBackward()),Jn&&Jn.type==="support.type"){var Xn=In.doc.getLine(Bn.start.row),mi=Xn.substring(Bn.end.column,Bn.end.column+1);if(mi===";")return Bn.end.column++,Bn}}}),this.add("semicolon","insertion",function(qn,Nn,Dn,In,Bn){if(Bn===";"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=In.doc.getLine(Ln.row),Zn=Pn.substring(Ln.column,Ln.column+1);if(Zn===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(qn,Nn,Dn,In,Bn){if(Bn==="!"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=In.doc.getLine(Ln.row);if(/^\s*(;|}|$)/.test(Pn.substring(Ln.column)))return{text:"!important",selection:[10,10]}}})};zn.inherits(Hn,Kn),kn.CssBehaviour=Hn}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./css_highlight_rules").CssHighlightRules,Hn=_n("./matching_brace_outdent").MatchingBraceOutdent,qn=_n("../worker/worker_client").WorkerClient,Nn=_n("./css_completions").CssCompletions,Dn=_n("./behaviour/css").CssBehaviour,In=_n("./folding/cstyle").FoldMode,Bn=function(){this.HighlightRules=Qn,this.$outdent=new Hn,this.$behaviour=new Dn,this.$completer=new Nn,this.foldingRules=new In};zn.inherits(Bn,Kn),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(Ln,Pn,Zn){var Jn=this.$getIndent(Pn),Xn=this.getTokenizer().getLineTokens(Pn,Ln).tokens;if(Xn.length&&Xn[Xn.length-1].type=="comment")return Jn;var mi=Pn.match(/^.*\{\s*$/);return mi&&(Jn+=Zn),Jn},this.checkOutdent=function(Ln,Pn,Zn){return this.$outdent.checkOutdent(Pn,Zn)},this.autoOutdent=function(Ln,Pn,Zn){this.$outdent.autoOutdent(Pn,Zn)},this.getCompletions=function(Ln,Pn,Zn,Jn){return this.$completer.getCompletions(Ln,Pn,Zn,Jn)},this.createWorker=function(Ln){var Pn=new qn(["ace"],"ace/mode/css_worker","Worker");return Pn.attachToDocument(Ln.getDocument()),Pn.on("annotate",function(Zn){Ln.setAnnotations(Zn.data)}),Pn.on("terminate",function(){Ln.clearAnnotations()}),Pn},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(Bn.prototype),kn.Mode=Bn}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=kn.FoldMode=function(Hn,qn){this.defaultMode=Hn,this.subModes=qn};zn.inherits(Qn,Kn),(function(){this.$getMode=function(Hn){typeof Hn!="string"&&(Hn=Hn[0]);for(var qn in this.subModes)if(Hn.indexOf(qn)===0)return this.subModes[qn];return null},this.$tryMode=function(Hn,qn,Nn,Dn){var In=this.$getMode(Hn);return In?In.getFoldWidget(qn,Nn,Dn):""},this.getFoldWidget=function(Hn,qn,Nn){return this.$tryMode(Hn.getState(Nn-1),Hn,qn,Nn)||this.$tryMode(Hn.getState(Nn),Hn,qn,Nn)||this.defaultMode.getFoldWidget(Hn,qn,Nn)},this.getFoldWidgetRange=function(Hn,qn,Nn){var Dn=this.$getMode(Hn.getState(Nn-1));return(!Dn||!Dn.getFoldWidget(Hn,qn,Nn))&&(Dn=this.$getMode(Hn.getState(Nn))),(!Dn||!Dn.getFoldWidget(Hn,qn,Nn))&&(Dn=this.defaultMode),Dn.getFoldWidgetRange(Hn,qn,Nn)}}).call(Qn.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(_n,kn,Wn){var zn=_n("../../lib/oop"),Kn=_n("./mixed").FoldMode,Qn=_n("./xml").FoldMode,Hn=_n("./cstyle").FoldMode,qn=kn.FoldMode=function(Nn,Dn){Kn.call(this,new Qn(Nn,Dn),{"js-":new Hn,"css-":new Hn})};zn.inherits(qn,Kn)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(_n,kn,Wn){function zn(Pn,Zn){return Pn.type.lastIndexOf(Zn+".xml")>-1}function Kn(Pn,Zn){for(var Jn=new Hn(Pn,Zn.row,Zn.column),Xn=Jn.getCurrentToken();Xn&&!zn(Xn,"tag-name");)Xn=Jn.stepBackward();if(Xn)return Xn.value}function Qn(Pn,Zn){for(var Jn=new Hn(Pn,Zn.row,Zn.column),Xn=Jn.getCurrentToken();Xn&&!zn(Xn,"attribute-name");)Xn=Jn.stepBackward();if(Xn)return Xn.value}var Hn=_n("../token_iterator").TokenIterator,qn=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],Nn=["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"],Dn=qn.concat(Nn),In={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:{}},Bn=Object.keys(In),Ln=function(){};(function(){this.getCompletions=function(Pn,Zn,Jn,Xn){var mi=Zn.getTokenAt(Jn.row,Jn.column);if(!mi)return[];if(zn(mi,"tag-name")||zn(mi,"tag-open")||zn(mi,"end-tag-open"))return this.getTagCompletions(Pn,Zn,Jn,Xn);if(zn(mi,"tag-whitespace")||zn(mi,"attribute-name"))return this.getAttributeCompletions(Pn,Zn,Jn,Xn);if(zn(mi,"attribute-value"))return this.getAttributeValueCompletions(Pn,Zn,Jn,Xn);var li=Zn.getLine(Jn.row).substr(0,Jn.column);return/&[a-z]*$/i.test(li)?this.getHTMLEntityCompletions(Pn,Zn,Jn,Xn):[]},this.getTagCompletions=function(Pn,Zn,Jn,Xn){return Bn.map(function(mi){return{value:mi,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(Pn,Zn,Jn,Xn){var mi=Kn(Zn,Jn);if(!mi)return[];var li=Dn;return mi in In&&(li=li.concat(Object.keys(In[mi]))),li.map(function(oi){return{caption:oi,snippet:oi+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(Pn,Zn,Jn,Xn){var mi=Kn(Zn,Jn),li=Qn(Zn,Jn);if(!mi)return[];var oi=[];return mi in In&&li in In[mi]&&typeof In[mi][li]=="object"&&(oi=Object.keys(In[mi][li])),oi.map(function(ei){return{caption:ei,snippet:ei,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(Pn,Zn,Jn,Xn){var mi=["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 mi.map(function(li){return{caption:li,snippet:li,meta:"html entity",score:1e6}})}}).call(Ln.prototype),kn.HtmlCompletions=Ln}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./text").Mode,Hn=_n("./javascript").Mode,qn=_n("./css").Mode,Nn=_n("./html_highlight_rules").HtmlHighlightRules,Dn=_n("./behaviour/xml").XmlBehaviour,In=_n("./folding/html").FoldMode,Bn=_n("./html_completions").HtmlCompletions,Ln=_n("../worker/worker_client").WorkerClient,Pn=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],Zn=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],Jn=function(Xn){this.fragmentContext=Xn&&Xn.fragmentContext,this.HighlightRules=Nn,this.$behaviour=new Dn,this.$completer=new Bn,this.createModeDelegates({"js-":Hn,"css-":qn}),this.foldingRules=new In(this.voidElements,Kn.arrayToMap(Zn))};zn.inherits(Jn,Qn),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=Kn.arrayToMap(Pn),this.getNextLineIndent=function(Xn,mi,li){return this.$getIndent(mi)},this.checkOutdent=function(Xn,mi,li){return!1},this.getCompletions=function(Xn,mi,li,oi){return this.$completer.getCompletions(Xn,mi,li,oi)},this.createWorker=function(Xn){if(this.constructor==Jn){var mi=new Ln(["ace"],"ace/mode/html_worker","Worker");return mi.attachToDocument(Xn.getDocument()),this.fragmentContext&&mi.call("setOptions",[{context:this.fragmentContext}]),mi.on("error",function(li){Xn.setAnnotations(li.data)}),mi.on("terminate",function(){Xn.clearAnnotations()}),mi}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(Jn.prototype),kn.Mode=Jn}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.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",Hn=kn.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",qn=function(){var Nn=this.createKeywordMapper({keyword:Qn,"support.function.builtin":Hn,"invalid.deprecated":"debugger"},"identifier"),Dn="(?:(?:[1-9]\\d*)|(?:0))",In="(?:\\.\\d+)",Bn="(?:\\d+)",Ln="(?:(?:"+Bn+"?"+In+")|(?:"+Bn+"\\.))",Pn="(?:(?:"+Ln+"|"+Bn+"))",Zn="(?:"+Pn+"|"+Ln+")",Jn="(?:&"+Bn+")",Xn="[a-zA-Z_][a-zA-Z0-9_]*",mi="(?:"+Xn+"(?==))",li="(?:\\$(?:SHLVL|\\$|\\!|\\?))",oi="(?:"+Xn+"\\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(ei,fi,gi){var yi=ei[2]=="-"?"indentedHeredoc":"heredoc",pi=ei.split(this.splitRegex);return gi.push(yi,pi[4]),[{type:"constant",value:pi[1]},{type:"text",value:pi[2]},{type:"string",value:pi[3]},{type:"support.class",value:pi[4]},{type:"string",value:pi[5]}]},rules:{heredoc:[{onMatch:function(ei,fi,gi){return ei===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(ei,fi,gi){return ei===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(ei,fi){return fi[0]==="heredoc"||fi[0]==="indentedHeredoc"?fi[0]:ei}},{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:li},{token:"variable",regex:mi},{include:"variables"},{token:"support.function",regex:oi},{token:"support.function",regex:Jn},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:Zn},{token:"constant.numeric",regex:Dn+"\\b"},{token:Nn,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()};zn.inherits(qn,Kn),kn.ShHighlightRules=qn}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./sh_highlight_rules").ShHighlightRules,Hn=_n("../range").Range,qn=_n("./folding/cstyle").FoldMode,Nn=function(){this.HighlightRules=Qn,this.foldingRules=new qn,this.$behaviour=this.$defaultBehaviour};zn.inherits(Nn,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[:]\s*$/);Xn&&(Pn+=Ln)}return Pn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(In,Bn,Ln){if(Ln!==`\r
|
977
|
+
`&&Ln!=="\r"&&Ln!==`
|
978
|
+
`)return!1;var Pn=this.getTokenizer().getLineTokens(Bn.trim(),In).tokens;if(!Pn)return!1;do var Zn=Pn.pop();while(Zn&&(Zn.type=="comment"||Zn.type=="text"&&Zn.value.match(/^\s+$/)));return Zn?Zn.type=="keyword"&&Dn[Zn.value]:!1},this.autoOutdent=function(In,Bn,Ln){Ln+=1;var Pn=this.$getIndent(Bn.getLine(Ln)),Zn=Bn.getTabString();Pn.slice(-Zn.length)==Zn&&Bn.remove(new Hn(Ln,Pn.length-Zn.length,Ln,Pn.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(Nn.prototype),kn.Mode=Nn}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./text").Mode,Hn=_n("./xml_highlight_rules").XmlHighlightRules,qn=_n("./behaviour/xml").XmlBehaviour,Nn=_n("./folding/xml").FoldMode,Dn=_n("../worker/worker_client").WorkerClient,In=function(){this.HighlightRules=Hn,this.$behaviour=new qn,this.foldingRules=new Nn};zn.inherits(In,Qn),(function(){this.voidElements=Kn.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(Bn){var Ln=new Dn(["ace"],"ace/mode/xml_worker","Worker");return Ln.attachToDocument(Bn.getDocument()),Ln.on("error",function(Pn){Bn.setAnnotations(Pn.data)}),Ln.on("terminate",function(){Bn.clearAnnotations()}),Ln},this.$id="ace/mode/xml"}).call(In.prototype),kn.Mode=In}),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(_n,kn,Wn){var zn=_n("../lib/oop"),Kn=_n("./behaviour/cstyle").CstyleBehaviour,Qn=_n("./text").Mode,Hn=_n("./markdown_highlight_rules").MarkdownHighlightRules,qn=_n("./folding/markdown").FoldMode,Nn=function(){this.HighlightRules=Hn,this.createModeDelegates({javascript:_n("./javascript").Mode,html:_n("./html").Mode,bash:_n("./sh").Mode,sh:_n("./sh").Mode,xml:_n("./xml").Mode,css:_n("./css").Mode}),this.foldingRules=new qn,this.$behaviour=new Kn({braces:!0})};zn.inherits(Nn,Qn),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(Dn,In,Bn){if(Dn=="listblock"){var Ln=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(In);if(!Ln)return"";var Pn=Ln[2];return Pn||(Pn=parseInt(Ln[3],10)+1+"."),Ln[1]+Pn+Ln[4]}return this.$getIndent(In)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(Nn.prototype),kn.Mode=Nn}),function(){ace.require(["ace/mode/markdown"],function(_n){e&&(e.exports=_n)})}()}(pc)),pc.exports}Jb();var gc={exports:{}},zd;function ex(){return zd||(zd=1,function(e,vn){ace.define("ace/theme/twilight-css",["require","exports","module"],function(_n,kn,Wn){Wn.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(_n,kn,Wn){kn.isDark=!0,kn.cssClass="ace-twilight",kn.cssText=_n("./twilight-css");var zn=_n("../lib/dom");zn.importCssString(kn.cssText,kn.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(_n){e&&(e.exports=_n)})}()}(gc)),gc.exports}ex();var mc={exports:{}},Hd;function tx(){return Hd||(Hd=1,function(e,vn){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(_n,kn,Wn){function zn(ei){var fi=new Date().toLocaleString("en-us",ei);return fi.length==1?"0"+fi:fi}var Kn=_n("./lib/dom"),Qn=_n("./lib/oop"),Hn=_n("./lib/event_emitter").EventEmitter,qn=_n("./lib/lang"),Nn=_n("./range").Range,Dn=_n("./range_list").RangeList,In=_n("./keyboard/hash_handler").HashHandler,Bn=_n("./tokenizer").Tokenizer,Ln=_n("./clipboard"),Pn={CURRENT_WORD:function(ei){return ei.session.getTextRange(ei.session.getWordRange())},SELECTION:function(ei,fi,gi){var yi=ei.session.getTextRange();return gi?yi.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+gi+"$1"):yi},CURRENT_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row)},PREV_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row-1)},LINE_INDEX:function(ei){return ei.getCursorPosition().row},LINE_NUMBER:function(ei){return ei.getCursorPosition().row+1},SOFT_TABS:function(ei){return ei.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(ei){return ei.session.getTabSize()},CLIPBOARD:function(ei){return Ln.getText&&Ln.getText()},FILENAME:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0]},FILENAME_BASE:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(ei){return this.FILEPATH(ei).replace(/[^/\\]*$/,"")},FILEPATH:function(ei){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(ei){var fi=ei.session.$mode||{};return fi.blockComment&&fi.blockComment.start||""},BLOCK_COMMENT_END:function(ei){var fi=ei.session.$mode||{};return fi.blockComment&&fi.blockComment.end||""},LINE_COMMENT:function(ei){var fi=ei.session.$mode||{};return fi.lineCommentStart||""},CURRENT_YEAR:zn.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:zn.bind(null,{year:"2-digit"}),CURRENT_MONTH:zn.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:zn.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:zn.bind(null,{month:"short"}),CURRENT_DATE:zn.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:zn.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:zn.bind(null,{weekday:"short"}),CURRENT_HOUR:zn.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:zn.bind(null,{minute:"2-digit"}),CURRENT_SECOND:zn.bind(null,{second:"2-digit"})};Pn.SELECTED_TEXT=Pn.SELECTION;var Zn=function(){function ei(){this.snippetMap={},this.snippetNameMap={},this.variables=Pn}return ei.prototype.getTokenizer=function(){return ei.$tokenizer||this.createTokenizer()},ei.prototype.createTokenizer=function(){function fi(pi){return pi=pi.substr(1),/^\d+$/.test(pi)?[{tabstopId:parseInt(pi,10)}]:[{text:pi}]}function gi(pi){return"(?:[^\\\\"+pi+"]|\\\\.)"}var yi={regex:"/("+gi("/")+"+)/",onMatch:function(pi,$i,si){var ti=si[0];return ti.fmtString=!0,ti.guard=pi.slice(1,-1),ti.flag="",""},next:"formatString"};return ei.$tokenizer=new Bn({start:[{regex:/\\./,onMatch:function(pi,$i,si){var ti=pi[1];return(ti=="}"&&si.length||"`$\\".indexOf(ti)!=-1)&&(pi=ti),[pi]}},{regex:/}/,onMatch:function(pi,$i,si){return[si.length?si.shift():pi]}},{regex:/\$(?:\d+|\w+)/,onMatch:fi},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(pi,$i,si){var ti=fi(pi.substr(1));return si.unshift(ti[0]),ti},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+gi("\\|")+"*\\|",onMatch:function(pi,$i,si){var ti=pi.slice(1,-1).replace(/\\[,|\\]|,/g,function(ai){return ai.length==2?ai[1]:"\0"}).split("\0").map(function(ai){return{value:ai}});return si[0].choices=ti,[ti[0]]},next:"start"},yi,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(pi,$i,si){return si.length&&si[0].expectElse?(si[0].expectElse=!1,si[0].ifEnd={elseEnd:si[0]},[si[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(pi,$i,si){var ti=pi[1];return ti=="}"&&si.length||"`$\\".indexOf(ti)!=-1?pi=ti:ti=="n"?pi=`
|
1110
|
+
`:ti=="t"?pi=" ":"ulULE".indexOf(ti)!=-1&&(pi={changeCase:ti,local:ti>"a"}),[pi]}},{regex:"/\\w*}",onMatch:function(pi,$i,si){var ti=si.shift();return ti&&(ti.flag=pi.slice(1,-1)),this.next=ti&&ti.tabstopId?"start":"",[ti||pi]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(pi,$i,si){return[{text:pi.slice(1)}]}},{regex:/\${\w+/,onMatch:function(pi,$i,si){var ti={text:pi.slice(2)};return si.unshift(ti),[ti]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(pi,$i,si){var ti=si.shift();return this.next=ti&&ti.tabstopId?"start":"",[ti||pi]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(pi,$i,si){var ti=si[0];return ti.formatFunction=pi.slice(2,-1),[si.shift()]},next:"formatString"},yi,{regex:/:[\?\-+]?/,onMatch:function(pi,$i,si){pi[1]=="+"&&(si[0].ifEnd=si[0]),pi[1]=="?"&&(si[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),ei.$tokenizer},ei.prototype.tokenizeTmSnippet=function(fi,gi){return this.getTokenizer().getLineTokens(fi,gi).tokens.map(function(yi){return yi.value||yi})},ei.prototype.getVariableValue=function(fi,gi,yi){if(/^\d+$/.test(gi))return(this.variables.__||{})[gi]||"";if(/^[A-Z]\d+$/.test(gi))return(this.variables[gi[0]+"__"]||{})[gi.substr(1)]||"";if(gi=gi.replace(/^TM_/,""),!this.variables.hasOwnProperty(gi))return"";var pi=this.variables[gi];return typeof pi=="function"&&(pi=this.variables[gi](fi,gi,yi)),pi??""},ei.prototype.tmStrFormat=function(fi,gi,yi){if(!gi.fmt)return fi;var pi=gi.flag||"",$i=gi.guard;$i=new RegExp($i,pi.replace(/[^gim]/g,""));var si=typeof gi.fmt=="string"?this.tokenizeTmSnippet(gi.fmt,"formatString"):gi.fmt,ti=this,ai=fi.replace($i,function(){var vi=ti.variables.__;ti.variables.__=[].slice.call(arguments);for(var wi=ti.resolveVariables(si,yi),xi="E",Si=0;Si<wi.length;Si++){var Ei=wi[Si];if(typeof Ei=="object")if(wi[Si]="",Ei.changeCase&&Ei.local){var Ni=wi[Si+1];Ni&&typeof Ni=="string"&&(Ei.changeCase=="u"?wi[Si]=Ni[0].toUpperCase():wi[Si]=Ni[0].toLowerCase(),wi[Si+1]=Ni.substr(1))}else Ei.changeCase&&(xi=Ei.changeCase);else xi=="U"?wi[Si]=Ei.toUpperCase():xi=="L"&&(wi[Si]=Ei.toLowerCase())}return ti.variables.__=vi,wi.join("")});return ai},ei.prototype.tmFormatFunction=function(fi,gi,yi){return gi.formatFunction=="upcase"?fi.toUpperCase():gi.formatFunction=="downcase"?fi.toLowerCase():fi},ei.prototype.resolveVariables=function(fi,gi){function yi(xi){var Si=fi.indexOf(xi,ti+1);Si!=-1&&(ti=Si)}for(var pi=[],$i="",si=!0,ti=0;ti<fi.length;ti++){var ai=fi[ti];if(typeof ai=="string"){pi.push(ai),ai==`
|
1111
|
+
`?(si=!0,$i=""):si&&($i=/^\t*/.exec(ai)[0],si=/\S/.test(ai));continue}if(ai){if(si=!1,ai.fmtString){var vi=fi.indexOf(ai,ti+1);vi==-1&&(vi=fi.length),ai.fmt=fi.slice(ti+1,vi),ti=vi}if(ai.text){var wi=this.getVariableValue(gi,ai.text,$i)+"";ai.fmtString&&(wi=this.tmStrFormat(wi,ai,gi)),ai.formatFunction&&(wi=this.tmFormatFunction(wi,ai,gi)),wi&&!ai.ifEnd?(pi.push(wi),yi(ai)):!wi&&ai.ifEnd&&yi(ai.ifEnd)}else ai.elseEnd?yi(ai.elseEnd):(ai.tabstopId!=null||ai.changeCase!=null)&&pi.push(ai)}}return pi},ei.prototype.getDisplayTextForSnippet=function(fi,gi){var yi=Jn.call(this,fi,gi);return yi.text},ei.prototype.insertSnippetForSelection=function(fi,gi,yi){yi===void 0&&(yi={});var pi=Jn.call(this,fi,gi,yi),$i=fi.getSelectionRange(),si=fi.session.replace($i,pi.text),ti=new Xn(fi),ai=fi.inVirtualSelectionMode&&fi.selection.index;ti.addTabstops(pi.tabstops,$i.start,si,ai)},ei.prototype.insertSnippet=function(fi,gi,yi){yi===void 0&&(yi={});var pi=this;if(fi.inVirtualSelectionMode)return pi.insertSnippetForSelection(fi,gi,yi);fi.forEachSelection(function(){pi.insertSnippetForSelection(fi,gi,yi)},null,{keepOrder:!0}),fi.tabstopManager&&fi.tabstopManager.tabNext()},ei.prototype.$getScope=function(fi){var gi=fi.session.$mode.$id||"";if(gi=gi.split("/").pop(),gi==="html"||gi==="php"){gi==="php"&&!fi.session.$mode.inlinePhp&&(gi="html");var yi=fi.getCursorPosition(),pi=fi.session.getState(yi.row);typeof pi=="object"&&(pi=pi[0]),pi.substring&&(pi.substring(0,3)=="js-"?gi="javascript":pi.substring(0,4)=="css-"?gi="css":pi.substring(0,4)=="php-"&&(gi="php"))}return gi},ei.prototype.getActiveScopes=function(fi){var gi=this.$getScope(fi),yi=[gi],pi=this.snippetMap;return pi[gi]&&pi[gi].includeScopes&&yi.push.apply(yi,pi[gi].includeScopes),yi.push("_"),yi},ei.prototype.expandWithTab=function(fi,gi){var yi=this,pi=fi.forEachSelection(function(){return yi.expandSnippetForSelection(fi,gi)},null,{keepOrder:!0});return pi&&fi.tabstopManager&&fi.tabstopManager.tabNext(),pi},ei.prototype.expandSnippetForSelection=function(fi,gi){var yi=fi.getCursorPosition(),pi=fi.session.getLine(yi.row),$i=pi.substring(0,yi.column),si=pi.substr(yi.column),ti=this.snippetMap,ai;return this.getActiveScopes(fi).some(function(vi){var wi=ti[vi];return wi&&(ai=this.findMatchingSnippet(wi,$i,si)),!!ai},this),ai?(gi&&gi.dryRun||(fi.session.doc.removeInLine(yi.row,yi.column-ai.replaceBefore.length,yi.column+ai.replaceAfter.length),this.variables.M__=ai.matchBefore,this.variables.T__=ai.matchAfter,this.insertSnippetForSelection(fi,ai.content),this.variables.M__=this.variables.T__=null),!0):!1},ei.prototype.findMatchingSnippet=function(fi,gi,yi){for(var pi=fi.length;pi--;){var $i=fi[pi];if(!($i.startRe&&!$i.startRe.test(gi))&&!($i.endRe&&!$i.endRe.test(yi))&&!(!$i.startRe&&!$i.endRe))return $i.matchBefore=$i.startRe?$i.startRe.exec(gi):[""],$i.matchAfter=$i.endRe?$i.endRe.exec(yi):[""],$i.replaceBefore=$i.triggerRe?$i.triggerRe.exec(gi)[0]:"",$i.replaceAfter=$i.endTriggerRe?$i.endTriggerRe.exec(yi)[0]:"",$i}},ei.prototype.register=function(fi,gi){function yi(vi){return vi&&!/^\^?\(.*\)\$?$|^\\b$/.test(vi)&&(vi="(?:"+vi+")"),vi||""}function pi(vi,wi,xi){return vi=yi(vi),wi=yi(wi),vi=wi+vi,vi&&vi[vi.length-1]!="$"&&(vi+="$"),new RegExp(vi)}function $i(vi){vi.scope||(vi.scope=gi||"_"),gi=vi.scope,si[gi]||(si[gi]=[],ti[gi]={});var wi=ti[gi];if(vi.name){var xi=wi[vi.name];xi&&ai.unregister(xi),wi[vi.name]=vi}si[gi].push(vi),vi.prefix&&(vi.tabTrigger=vi.prefix),!vi.content&&vi.body&&(vi.content=Array.isArray(vi.body)?vi.body.join(`
|
1112
|
+
`):vi.body),vi.tabTrigger&&!vi.trigger&&(!vi.guard&&/^\w/.test(vi.tabTrigger)&&(vi.guard="\\b"),vi.trigger=qn.escapeRegExp(vi.tabTrigger)),!(!vi.trigger&&!vi.guard&&!vi.endTrigger&&!vi.endGuard)&&(vi.startRe=pi(vi.trigger,vi.guard),vi.triggerRe=new RegExp(vi.trigger),vi.endRe=pi(vi.endTrigger,vi.endGuard),vi.endTriggerRe=new RegExp(vi.endTrigger))}var si=this.snippetMap,ti=this.snippetNameMap,ai=this;fi||(fi=[]),Array.isArray(fi)?fi.forEach($i):Object.keys(fi).forEach(function(vi){$i(fi[vi])}),this._signal("registerSnippets",{scope:gi})},ei.prototype.unregister=function(fi,gi){function yi(si){var ti=$i[si.scope||gi];if(ti&&ti[si.name]){delete ti[si.name];var ai=pi[si.scope||gi],vi=ai&&ai.indexOf(si);vi>=0&&ai.splice(vi,1)}}var pi=this.snippetMap,$i=this.snippetNameMap;fi.content?yi(fi):Array.isArray(fi)&&fi.forEach(yi)},ei.prototype.parseSnippetFile=function(fi){fi=fi.replace(/\r/g,"");for(var gi=[],yi={},pi=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,$i;$i=pi.exec(fi);){if($i[1])try{yi=JSON.parse($i[1]),gi.push(yi)}catch{}if($i[4])yi.content=$i[4].replace(/^\t/gm,""),gi.push(yi),yi={};else{var si=$i[2],ti=$i[3];if(si=="regex"){var ai=/\/((?:[^\/\\]|\\.)*)|$/g;yi.guard=ai.exec(ti)[1],yi.trigger=ai.exec(ti)[1],yi.endTrigger=ai.exec(ti)[1],yi.endGuard=ai.exec(ti)[1]}else si=="snippet"?(yi.tabTrigger=ti.match(/^\S*/)[0],yi.name||(yi.name=ti)):si&&(yi[si]=ti)}}return gi},ei.prototype.getSnippetByName=function(fi,gi){var yi=this.snippetNameMap,pi;return this.getActiveScopes(gi).some(function($i){var si=yi[$i];return si&&(pi=si[fi]),!!pi},this),pi},ei}();Qn.implement(Zn.prototype,Hn);var Jn=function(ei,fi,gi){function yi(Pi){for(var Zi=[],lr=0;lr<Pi.length;lr++){var gr=Pi[lr];if(typeof gr=="object"){if(wi[gr.tabstopId])continue;var or=Pi.lastIndexOf(gr,lr-1);gr=Zi[or]||{tabstopId:gr.tabstopId}}Zi[lr]=gr}return Zi}gi===void 0&&(gi={});var pi=ei.getCursorPosition(),$i=ei.session.getLine(pi.row),si=ei.session.getTabString(),ti=$i.match(/^\s*/)[0];pi.column<ti.length&&(ti=ti.slice(0,pi.column)),fi=fi.replace(/\r/g,"");var ai=this.tokenizeTmSnippet(fi);ai=this.resolveVariables(ai,ei),ai=ai.map(function(Pi){return Pi==`
|
1113
|
+
`&&!gi.excludeExtraIndent?Pi+ti:typeof Pi=="string"?Pi.replace(/\t/g,si):Pi});var vi=[];ai.forEach(function(Pi,Zi){if(typeof Pi=="object"){var lr=Pi.tabstopId,gr=vi[lr];if(gr||(gr=vi[lr]=[],gr.index=lr,gr.value="",gr.parents={}),gr.indexOf(Pi)===-1){Pi.choices&&!gr.choices&&(gr.choices=Pi.choices),gr.push(Pi);var or=ai.indexOf(Pi,Zi+1);if(or!==-1){var yr=ai.slice(Zi+1,or),io=yr.some(function(Po){return typeof Po=="object"});io&&!gr.value?gr.value=yr:yr.length&&(!gr.value||typeof gr.value!="string")&&(gr.value=yr.join(""))}}}}),vi.forEach(function(Pi){Pi.length=0});for(var wi={},xi=0;xi<ai.length;xi++){var Si=ai[xi];if(typeof Si=="object"){var Ei=Si.tabstopId,Ni=vi[Ei],Ri=ai.indexOf(Si,xi+1);if(wi[Ei]){wi[Ei]===Si&&(delete wi[Ei],Object.keys(wi).forEach(function(Pi){Ni.parents[Pi]=!0}));continue}wi[Ei]=Si;var Fi=Ni.value;typeof Fi!="string"?Fi=yi(Fi):Si.fmt&&(Fi=this.tmStrFormat(Fi,Si,ei)),ai.splice.apply(ai,[xi+1,Math.max(0,Ri-xi)].concat(Fi,Si)),Ni.indexOf(Si)===-1&&Ni.push(Si)}}var Ii=0,Bi=0,Gi="";return ai.forEach(function(Pi){if(typeof Pi=="string"){var Zi=Pi.split(`
|
1114
|
+
`);Zi.length>1?(Bi=Zi[Zi.length-1].length,Ii+=Zi.length-1):Bi+=Pi.length,Gi+=Pi}else Pi&&(Pi.start?Pi.end={row:Ii,column:Bi}:Pi.start={row:Ii,column:Bi})}),{text:Gi,tabstops:vi,tokens:ai}},Xn=function(){function ei(fi){if(this.index=0,this.ranges=[],this.tabstops=[],fi.tabstopManager)return fi.tabstopManager;fi.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=qn.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(fi)}return ei.prototype.attach=function(fi){this.$openTabstops=null,this.selectedTabstop=null,this.editor=fi,this.session=fi.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)},ei.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},ei.prototype.onChange=function(fi){for(var gi=fi.action[0]=="r",yi=this.selectedTabstop||{},pi=yi.parents||{},$i=this.tabstops.slice(),si=0;si<$i.length;si++){var ti=$i[si],ai=ti==yi||pi[ti.index];if(ti.rangeList.$bias=ai?0:1,fi.action=="remove"&&ti!==yi){var vi=ti.parents&&ti.parents[yi.index],wi=ti.rangeList.pointIndex(fi.start,vi);wi=wi<0?-wi-1:wi+1;var xi=ti.rangeList.pointIndex(fi.end,vi);xi=xi<0?-xi-1:xi-1;for(var Si=ti.rangeList.ranges.slice(wi,xi),Ei=0;Ei<Si.length;Ei++)this.removeRange(Si[Ei])}ti.rangeList.$onChange(fi)}var Ni=this.session;!this.$inChange&&gi&&Ni.getLength()==1&&!Ni.getValue()&&this.detach()},ei.prototype.updateLinkedFields=function(){var fi=this.selectedTabstop;if(!(!fi||!fi.hasLinkedRanges||!fi.firstNonLinked)){this.$inChange=!0;for(var gi=this.session,yi=gi.getTextRange(fi.firstNonLinked),pi=0;pi<fi.length;pi++){var $i=fi[pi];if($i.linked){var si=$i.original,ti=kn.snippetManager.tmStrFormat(yi,si,this.editor);gi.replace($i,ti)}}this.$inChange=!1}},ei.prototype.onAfterExec=function(fi){fi.command&&!fi.command.readOnly&&this.updateLinkedFields()},ei.prototype.onChangeSelection=function(){if(this.editor){for(var fi=this.editor.selection.lead,gi=this.editor.selection.anchor,yi=this.editor.selection.isEmpty(),pi=0;pi<this.ranges.length;pi++)if(!this.ranges[pi].linked){var $i=this.ranges[pi].contains(fi.row,fi.column),si=yi||this.ranges[pi].contains(gi.row,gi.column);if($i&&si)return}this.detach()}},ei.prototype.onChangeSession=function(){this.detach()},ei.prototype.tabNext=function(fi){var gi=this.tabstops.length,yi=this.index+(fi||1);yi=Math.min(Math.max(yi,1),gi),yi==gi&&(yi=0),this.selectTabstop(yi),this.updateTabstopMarkers(),yi===0&&this.detach()},ei.prototype.selectTabstop=function(fi){this.$openTabstops=null;var gi=this.tabstops[this.index];if(gi&&this.addTabstopMarkers(gi),this.index=fi,gi=this.tabstops[this.index],!(!gi||!gi.length)){this.selectedTabstop=gi;var yi=gi.firstNonLinked||gi;if(gi.choices&&(yi.cursor=yi.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(yi);else{var pi=this.editor.multiSelect;pi.toSingleRange(yi);for(var $i=0;$i<gi.length;$i++)gi.hasLinkedRanges&&gi[$i].linked||pi.addRange(gi[$i].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},ei.prototype.addTabstops=function(fi,gi,yi){var pi=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!fi[0]){var $i=Nn.fromPoints(yi,yi);li($i.start,gi),li($i.end,gi),fi[0]=[$i],fi[0].index=0}var si=this.index,ti=[si+1,0],ai=this.ranges,vi=this.snippetId=(this.snippetId||0)+1;fi.forEach(function(wi,xi){var Si=this.$openTabstops[xi]||wi;Si.snippetId=vi;for(var Ei=0;Ei<wi.length;Ei++){var Ni=wi[Ei],Ri=Nn.fromPoints(Ni.start,Ni.end||Ni.start);mi(Ri.start,gi),mi(Ri.end,gi),Ri.original=Ni,Ri.tabstop=Si,ai.push(Ri),Si!=wi?Si.unshift(Ri):Si[Ei]=Ri,Ni.fmtString||Si.firstNonLinked&&pi?(Ri.linked=!0,Si.hasLinkedRanges=!0):Si.firstNonLinked||(Si.firstNonLinked=Ri)}Si.firstNonLinked||(Si.hasLinkedRanges=!1),Si===wi&&(ti.push(Si),this.$openTabstops[xi]=Si),this.addTabstopMarkers(Si),Si.rangeList=Si.rangeList||new Dn,Si.rangeList.$bias=0,Si.rangeList.addList(Si)},this),ti.length>2&&(this.tabstops.length&&ti.push(ti.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,ti))},ei.prototype.addTabstopMarkers=function(fi){var gi=this.session;fi.forEach(function(yi){yi.markerId||(yi.markerId=gi.addMarker(yi,"ace_snippet-marker","text"))})},ei.prototype.removeTabstopMarkers=function(fi){var gi=this.session;fi.forEach(function(yi){gi.removeMarker(yi.markerId),yi.markerId=null})},ei.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var fi=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&fi--,this.tabstops.forEach(function(gi){gi.snippetId===fi?this.addTabstopMarkers(gi):this.removeTabstopMarkers(gi)},this)}},ei.prototype.removeRange=function(fi){var gi=fi.tabstop.indexOf(fi);gi!=-1&&fi.tabstop.splice(gi,1),gi=this.ranges.indexOf(fi),gi!=-1&&this.ranges.splice(gi,1),gi=fi.tabstop.rangeList.ranges.indexOf(fi),gi!=-1&&fi.tabstop.splice(gi,1),this.session.removeMarker(fi.markerId),fi.tabstop.length||(gi=this.tabstops.indexOf(fi.tabstop),gi!=-1&&this.tabstops.splice(gi,1),this.tabstops.length||this.detach())},ei}();Xn.prototype.keyboardHandler=new In,Xn.prototype.keyboardHandler.bindKeys({Tab:function(ei){kn.snippetManager&&kn.snippetManager.expandWithTab(ei)||(ei.tabstopManager.tabNext(1),ei.renderer.scrollCursorIntoView())},"Shift-Tab":function(ei){ei.tabstopManager.tabNext(-1),ei.renderer.scrollCursorIntoView()},Esc:function(ei){ei.tabstopManager.detach()}});var mi=function(ei,fi){ei.row==0&&(ei.column+=fi.column),ei.row+=fi.row},li=function(ei,fi){ei.row==fi.row&&(ei.column-=fi.column),ei.row-=fi.row};Kn.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),kn.snippetManager=new Zn;var oi=_n("./editor").Editor;(function(){this.insertSnippet=function(ei,fi){return kn.snippetManager.insertSnippet(this,ei,fi)},this.expandSnippet=function(ei){return kn.snippetManager.expandWithTab(this,ei)}}).call(oi.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(_n,kn,Wn){var zn=_n("../virtual_renderer").VirtualRenderer,Kn=_n("../editor").Editor,Qn=_n("../range").Range,Hn=_n("../lib/event"),qn=_n("../lib/lang"),Nn=_n("../lib/dom"),Dn=_n("../config").nls,In=_n("./../lib/useragent"),Bn=function(mi){return"suggest-aria-id:".concat(mi)},Ln=In.isSafari?"menu":"listbox",Pn=In.isSafari?"menuitem":"option",Zn=In.isSafari?"aria-current":"aria-selected",Jn=function(mi){var li=new zn(mi);li.$maxLines=4;var oi=new Kn(li);return oi.setHighlightActiveLine(!1),oi.setShowPrintMargin(!1),oi.renderer.setShowGutter(!1),oi.renderer.setHighlightGutterLine(!1),oi.$mouseHandler.$focusTimeout=0,oi.$highlightTagPending=!0,oi},Xn=function(){function mi(li){var oi=Nn.createElement("div"),ei=Jn(oi);li&&li.appendChild(oi),oi.style.display="none",ei.renderer.content.style.cursor="default",ei.renderer.setStyle("ace_autocomplete"),ei.renderer.$textLayer.element.setAttribute("role",Ln),ei.renderer.$textLayer.element.setAttribute("aria-roledescription",Dn("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),ei.renderer.$textLayer.element.setAttribute("aria-label",Dn("autocomplete.popup.aria-label","Autocomplete suggestions")),ei.renderer.textarea.setAttribute("aria-hidden","true"),ei.setOption("displayIndentGuides",!1),ei.setOption("dragDelay",150);var fi=function(){};ei.focus=fi,ei.$isFocused=!0,ei.renderer.$cursorLayer.restartTimer=fi,ei.renderer.$cursorLayer.element.style.opacity="0",ei.renderer.$maxLines=8,ei.renderer.$keepTextAreaAtCursor=!1,ei.setHighlightActiveLine(!1),ei.session.highlight(""),ei.session.$searchHighlight.clazz="ace_highlight-marker",ei.on("mousedown",function(ai){var vi=ai.getDocumentPosition();ei.selection.moveToPosition(vi),pi.start.row=pi.end.row=vi.row,ai.stop()});var gi,yi=new Qn(-1,0,-1,1/0),pi=new Qn(-1,0,-1,1/0);pi.id=ei.session.addMarker(pi,"ace_active-line","fullLine"),ei.setSelectOnHover=function(ai){ai?yi.id&&(ei.session.removeMarker(yi.id),yi.id=null):yi.id=ei.session.addMarker(yi,"ace_line-hover","fullLine")},ei.setSelectOnHover(!1),ei.on("mousemove",function(ai){if(!gi){gi=ai;return}if(!(gi.x==ai.x&&gi.y==ai.y)){gi=ai,gi.scrollTop=ei.renderer.scrollTop,ei.isMouseOver=!0;var vi=gi.getDocumentPosition().row;yi.start.row!=vi&&(yi.id||ei.setRow(vi),si(vi))}}),ei.renderer.on("beforeRender",function(){if(gi&&yi.start.row!=-1){gi.$pos=null;var ai=gi.getDocumentPosition().row;yi.id||ei.setRow(ai),si(ai,!0)}}),ei.renderer.on("afterRender",function(){var ai=ei.getRow(),vi=ei.renderer.$textLayer,wi=vi.element.childNodes[ai-vi.config.firstRow],xi=document.activeElement;if(wi!==ei.selectedNode&&ei.selectedNode&&(Nn.removeCssClass(ei.selectedNode,"ace_selected"),xi.removeAttribute("aria-activedescendant"),ei.selectedNode.removeAttribute(Zn),ei.selectedNode.removeAttribute("id")),ei.selectedNode=wi,wi){Nn.addCssClass(wi,"ace_selected");var Si=Bn(ai);wi.id=Si,vi.element.setAttribute("aria-activedescendant",Si),xi.setAttribute("aria-activedescendant",Si),wi.setAttribute("role",Pn),wi.setAttribute("aria-roledescription",Dn("autocomplete.popup.item.aria-roledescription","item")),wi.setAttribute("aria-label",ei.getData(ai).caption||ei.getData(ai).value),wi.setAttribute("aria-setsize",ei.data.length),wi.setAttribute("aria-posinset",ai+1),wi.setAttribute("aria-describedby","doc-tooltip"),wi.setAttribute(Zn,"true")}});var $i=function(){si(-1)},si=function(ai,vi){ai!==yi.start.row&&(yi.start.row=yi.end.row=ai,vi||ei.session._emit("changeBackMarker"),ei._emit("changeHoverMarker"))};ei.getHoveredRow=function(){return yi.start.row},Hn.addListener(ei.container,"mouseout",function(){ei.isMouseOver=!1,$i()}),ei.on("hide",$i),ei.on("changeSelection",$i),ei.session.doc.getLength=function(){return ei.data.length},ei.session.doc.getLine=function(ai){var vi=ei.data[ai];return typeof vi=="string"?vi:vi&&vi.value||""};var ti=ei.session.bgTokenizer;return ti.$tokenizeRow=function(ai){function vi(Pi,Zi){Pi&&xi.push({type:(wi.className||"")+(Zi||""),value:Pi})}var wi=ei.data[ai],xi=[];if(!wi)return xi;typeof wi=="string"&&(wi={value:wi});for(var Si=wi.caption||wi.value||wi.name,Ei=Si.toLowerCase(),Ni=(ei.filterText||"").toLowerCase(),Ri=0,Fi=0,Ii=0;Ii<=Ni.length;Ii++)if(Ii!=Fi&&(wi.matchMask&1<<Ii||Ii==Ni.length)){var Bi=Ni.slice(Fi,Ii);Fi=Ii;var Gi=Ei.indexOf(Bi,Ri);if(Gi==-1)continue;vi(Si.slice(Ri,Gi),""),Ri=Gi+Bi.length,vi(Si.slice(Gi,Ri),"completion-highlight")}return vi(Si.slice(Ri,Si.length),""),xi.push({type:"completion-spacer",value:" "}),wi.meta&&xi.push({type:"completion-meta",value:wi.meta}),wi.message&&xi.push({type:"completion-message",value:wi.message}),xi},ti.$updateOnChange=fi,ti.start=fi,ei.session.$computeWidth=function(){return this.screenWidth=0},ei.isOpen=!1,ei.isTopdown=!1,ei.autoSelect=!0,ei.filterText="",ei.isMouseOver=!1,ei.data=[],ei.setData=function(ai,vi){ei.filterText=vi||"",ei.setValue(qn.stringRepeat(`
|
1122
|
+
`,ai.length),-1),ei.data=ai||[],ei.setRow(0)},ei.getData=function(ai){return ei.data[ai]},ei.getRow=function(){return pi.start.row},ei.setRow=function(ai){ai=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,ai)),pi.start.row!=ai&&(ei.selection.clearSelection(),pi.start.row=pi.end.row=ai||0,ei.session._emit("changeBackMarker"),ei.moveCursorTo(ai||0,0),ei.isOpen&&ei._signal("select"))},ei.on("changeSelection",function(){ei.isOpen&&ei.setRow(ei.selection.lead.row),ei.renderer.scrollCursorIntoView()}),ei.hide=function(){this.container.style.display="none",ei.anchorPos=null,ei.anchor=null,ei.isOpen&&(ei.isOpen=!1,this._signal("hide"))},ei.tryShow=function(ai,vi,wi,xi){if(!xi&&ei.isOpen&&ei.anchorPos&&ei.anchor&&ei.anchorPos.top===ai.top&&ei.anchorPos.left===ai.left&&ei.anchor===wi)return!0;var Si=this.container,Ei=window.innerHeight,Ni=window.innerWidth,Ri=this.renderer,Fi=Ri.$maxLines*vi*1.4,Ii={top:0,bottom:0,left:0},Bi=Ei-ai.top-3*this.$borderSize-vi,Gi=ai.top-3*this.$borderSize;wi||(Gi<=Bi||Bi>=Fi?wi="bottom":wi="top"),wi==="top"?(Ii.bottom=ai.top-this.$borderSize,Ii.top=Ii.bottom-Fi):wi==="bottom"&&(Ii.top=ai.top+vi+this.$borderSize,Ii.bottom=Ii.top+Fi);var Pi=Ii.top>=0&&Ii.bottom<=Ei;if(!xi&&!Pi)return!1;Pi?Ri.$maxPixelHeight=null:wi==="top"?Ri.$maxPixelHeight=Gi:Ri.$maxPixelHeight=Bi,wi==="top"?(Si.style.top="",Si.style.bottom=Ei-Ii.bottom+"px",ei.isTopdown=!1):(Si.style.top=Ii.top+"px",Si.style.bottom="",ei.isTopdown=!0),Si.style.display="";var Zi=ai.left;return Zi+Si.offsetWidth>Ni&&(Zi=Ni-Si.offsetWidth),Si.style.left=Zi+"px",Si.style.right="",ei.isOpen||(ei.isOpen=!0,this._signal("show"),gi=null),ei.anchorPos=ai,ei.anchor=wi,!0},ei.show=function(ai,vi,wi){this.tryShow(ai,vi,wi?"bottom":void 0,!0)},ei.goTo=function(ai){var vi=this.getRow(),wi=this.session.getLength()-1;switch(ai){case"up":vi=vi<=0?wi:vi-1;break;case"down":vi=vi>=wi?-1:vi+1;break;case"start":vi=0;break;case"end":vi=wi}this.setRow(vi)},ei.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},ei.$imageSize=0,ei.$borderSize=1,ei}return mi}();Nn.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),kn.AcePopup=Xn,kn.$singleLineEditor=Jn,kn.getAriaId=Bn}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(_n,kn,Wn){var zn=function(){function Kn(Qn){this.editor=Qn,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return Kn.prototype.setScreenReaderContent=function(Qn){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var qn=this.popup.getRow(),Nn=this.popup.renderer.$textLayer,Dn=Nn.element.childNodes[qn-Nn.config.firstRow];if(Dn){for(var In="doc-tooltip ",Bn=0;Bn<this._lines.length;Bn++)In+="ace-inline-screenreader-line-".concat(Bn," ");Dn.setAttribute("aria-describedby",In)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=Qn.split(/\r\n|\r|\n/);var Hn=this.createCodeBlock();this.screenReaderDiv.appendChild(Hn)},Kn.prototype.destroy=function(){this.screenReaderDiv.remove()},Kn.prototype.createCodeBlock=function(){var Qn=document.createElement("pre");Qn.setAttribute("id","ace-inline-screenreader");for(var Hn=0;Hn<this._lines.length;Hn++){var qn=document.createElement("code");qn.setAttribute("id","ace-inline-screenreader-line-".concat(Hn));var Nn=document.createTextNode(this._lines[Hn]);qn.appendChild(Nn),Qn.appendChild(qn)}return Qn},Kn}();kn.AceInlineScreenReader=zn}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(_n,kn,Wn){var zn=_n("../snippets").snippetManager,Kn=_n("./inline_screenreader").AceInlineScreenReader,Qn=function(){function Hn(){this.editor=null}return Hn.prototype.show=function(qn,Nn,Dn){if(Dn=Dn||"",qn&&this.editor&&this.editor!==qn&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!qn||!Nn)return!1;this.inlineScreenReader||(this.inlineScreenReader=new Kn(qn));var In=Nn.snippet?zn.getDisplayTextForSnippet(qn,Nn.snippet):Nn.value;return Nn.hideInlinePreview||!In||!In.startsWith(Dn)?!1:(this.editor=qn,this.inlineScreenReader.setScreenReaderContent(In),In=In.slice(Dn.length),In===""?qn.removeGhostText():qn.setGhostText(In),!0)},Hn.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},Hn.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},Hn.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},Hn}();kn.AceInline=Qn}),ace.define("ace/autocomplete/util",["require","exports","module"],function(_n,kn,Wn){kn.parForEach=function(Kn,Qn,Hn){var qn=0,Nn=Kn.length;Nn===0&&Hn();for(var Dn=0;Dn<Nn;Dn++)Qn(Kn[Dn],function(In,Bn){qn++,qn===Nn&&Hn(In,Bn)})};var zn=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;kn.retrievePrecedingIdentifier=function(Kn,Qn,Hn){Hn=Hn||zn;for(var qn=[],Nn=Qn-1;Nn>=0&&Hn.test(Kn[Nn]);Nn--)qn.push(Kn[Nn]);return qn.reverse().join("")},kn.retrieveFollowingIdentifier=function(Kn,Qn,Hn){Hn=Hn||zn;for(var qn=[],Nn=Qn;Nn<Kn.length&&Hn.test(Kn[Nn]);Nn++)qn.push(Kn[Nn]);return qn},kn.getCompletionPrefix=function(Kn){var Qn=Kn.getCursorPosition(),Hn=Kn.session.getLine(Qn.row),qn;return Kn.completers.forEach((function(Nn){Nn.identifierRegexps&&Nn.identifierRegexps.forEach((function(Dn){!qn&&Dn&&(qn=this.retrievePrecedingIdentifier(Hn,Qn.column,Dn))}).bind(this))}).bind(this)),qn||this.retrievePrecedingIdentifier(Hn,Qn.column)},kn.triggerAutocomplete=function(Kn,Hn){var Hn=Hn??Kn.session.getPrecedingCharacter();return Kn.completers.some(function(qn){if(qn.triggerCharacters&&Array.isArray(qn.triggerCharacters))return qn.triggerCharacters.includes(Hn)})}}),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(_n,kn,Wn){var zn=_n("./keyboard/hash_handler").HashHandler,Kn=_n("./autocomplete/popup").AcePopup,Qn=_n("./autocomplete/inline").AceInline,Hn=_n("./autocomplete/popup").getAriaId,qn=_n("./autocomplete/util"),Nn=_n("./lib/lang"),Dn=_n("./lib/dom"),In=_n("./snippets").snippetManager,Bn=_n("./config"),Ln=_n("./lib/event"),Pn=_n("./lib/scroll").preventParentScroll,Zn=function(li,oi){oi.completer&&oi.completer.destroy()},Jn=function(){function li(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new zn,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=Nn.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=Nn.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=Nn.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=Nn.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=Nn.delayedCall((function(){var oi=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!oi||this.editor.completers.length===0||(this.completions=new mi(li.completionsForLoading),this.openPopup(this.editor,oi.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(li,"completionsForLoading",{get:function(){return[{caption:Bn.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),li.prototype.$init=function(){return this.popup=new Kn(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(oi){this.insertMatch(),oi.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)),Ln.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},li.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new Qn,this.inlineRenderer},li.prototype.getPopup=function(){return this.popup||this.$init()},li.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},li.prototype.$seen=function(oi){!this.hasSeen.has(oi)&&oi&&oi.completer&&oi.completer.onSeen&&typeof oi.completer.onSeen=="function"&&(oi.completer.onSeen(this.editor,oi),this.hasSeen.add(oi))},li.prototype.$onPopupChange=function(oi){if(this.inlineRenderer&&this.inlineEnabled){var ei=oi?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(ei),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)},li.prototype.$updateGhostText=function(oi){var ei=this.base.row,fi=this.base.column,gi=this.editor.getCursorPosition().column,yi=this.editor.session.getLine(ei).slice(fi,gi);this.inlineRenderer.show(this.editor,oi,yi)?this.$seen(oi):this.inlineRenderer.hide()},li.prototype.$onPopupRender=function(){var oi=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var ei=this.popup.getFirstVisibleRow();ei<=this.popup.getLastVisibleRow();ei++){var fi=this.popup.getData(ei);fi&&(!oi||fi.hideInlinePreview)&&this.$seen(fi)}},li.prototype.$onPopupShow=function(oi){this.$onPopupChange(oi),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},li.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var oi=this.editor.container.parentNode,ei=[];oi;)ei.push(oi),oi.addEventListener("scroll",this.onLayoutChange,{passive:!0}),oi=oi.parentNode;this.$elements=ei}},li.prototype.unObserveLayoutChanges=function(){var oi=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(ei){ei.removeEventListener("scroll",oi.onLayoutChange,{passive:!0})}),this.$elements=null},li.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},li.prototype.$updatePopupPosition=function(){var oi=this.editor,ei=oi.renderer,fi=ei.layerConfig.lineHeight,gi=ei.$cursorLayer.getPixelPosition(this.base,!0);gi.left-=this.popup.getTextLeftOffset();var yi=oi.container.getBoundingClientRect();gi.top+=yi.top-ei.layerConfig.offset,gi.left+=yi.left-oi.renderer.scrollLeft,gi.left+=ei.gutterWidth;var pi={top:gi.top,left:gi.left};ei.$ghostText&&ei.$ghostTextWidget&&this.base.row===ei.$ghostText.position.row&&(pi.top+=ei.$ghostTextWidget.el.offsetHeight);var $i=oi.container.getBoundingClientRect().bottom-fi,si=$i<pi.top?{top:$i,left:pi.left}:pi;this.popup.tryShow(si,fi,"bottom")||this.popup.tryShow(gi,fi,"top")||this.popup.show(gi,fi)},li.prototype.openPopup=function(oi,ei,fi){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var gi=this.popup.getRow(),yi=this.popup.data[gi];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:Hn(this.popup.getRow()),inline:this.inlineEnabled}),oi.keyBinding.addKeyboardHandler(this.keyboardHandler);var pi;this.stickySelection&&(pi=this.popup.data.indexOf(yi)),(!pi||pi===-1)&&(pi=0),this.popup.setRow(this.autoSelect?pi:-1),pi===gi&&yi!==this.completions.filtered[pi]&&this.$onPopupChange();var $i=this.inlineRenderer&&this.inlineEnabled;if(pi===gi&&$i){var si=this.popup.getData(this.popup.getRow());this.$updateGhostText(si)}fi||(this.popup.setTheme(oi.getTheme()),this.popup.setFontSize(oi.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},li.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()},li.prototype.changeListener=function(oi){var ei=this.editor.selection.lead;(ei.row!=this.base.row||ei.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},li.prototype.blurListener=function(oi){var ei=document.activeElement,fi=this.editor.textInput.getElement(),gi=oi.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(oi.relatedTarget),yi=this.popup&&this.popup.container;ei!=fi&&ei.parentNode!=yi&&!gi&&ei!=this.tooltipNode&&oi.relatedTarget!=fi&&this.detach()},li.prototype.mousedownListener=function(oi){this.detach()},li.prototype.mousewheelListener=function(oi){this.popup&&!this.popup.isMouseOver&&this.detach()},li.prototype.mouseOutListener=function(oi){this.popup.isOpen&&this.$updatePopupPosition()},li.prototype.goTo=function(oi){this.popup.goTo(oi)},li.prototype.insertMatch=function(oi,ei){if(oi||(oi=this.popup.getData(this.popup.getRow())),!oi)return!1;if(oi.value==="")return this.detach();var fi=this.completions,gi=this.getCompletionProvider().insertMatch(this.editor,oi,fi.filterText,ei);return this.completions==fi&&this.detach(),gi},li.prototype.showPopup=function(oi,ei){this.editor&&this.detach(),this.activated=!0,this.editor=oi,oi.completer!=this&&(oi.completer&&oi.completer.detach(),oi.completer=this),oi.on("changeSelection",this.changeListener),oi.on("blur",this.blurListener),oi.on("mousedown",this.mousedownListener),oi.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,ei)},li.prototype.getCompletionProvider=function(oi){return this.completionProvider||(this.completionProvider=new Xn(oi)),this.completionProvider},li.prototype.gatherCompletions=function(oi,ei){return this.getCompletionProvider().gatherCompletions(oi,ei)},li.prototype.updateCompletions=function(oi,ei){if(oi&&this.base&&this.completions){var gi=this.editor.getCursorPosition(),yi=this.editor.session.getTextRange({start:this.base,end:gi});if(yi==this.completions.filterText)return;if(this.completions.setFilter(yi),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==yi&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,yi,oi);return}if(ei&&ei.matches){var gi=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(gi.row,gi.column),this.base.$insertRight=!0,this.completions=new mi(ei.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",oi)}var fi=this.editor.getSession(),gi=this.editor.getCursorPosition(),yi=qn.getCompletionPrefix(this.editor);this.base=fi.doc.createAnchor(gi.row,gi.column-yi.length),this.base.$insertRight=!0;var pi={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:yi,pos:gi}).provideCompletions(this.editor,pi,(function($i,si,ti){var ai=si.filtered,vi=qn.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),ti){if(!ai.length){var wi=!this.autoShown&&this.emptyMessage;if(typeof wi=="function"&&(wi=this.emptyMessage(vi)),wi){var xi=[{caption:wi,value:""}];this.completions=new mi(xi),this.openPopup(this.editor,vi,oi),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(ai.length==1&&ai[0].value==vi&&!ai[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&ai.length==1)return this.insertMatch(ai[0])}this.completions=!ti&&this.showLoadingState?new mi(li.completionsForLoading.concat(ai),si.filterText):si,this.openPopup(this.editor,vi,oi),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!ti)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},li.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},li.prototype.updateDocTooltip=function(){var oi=this.popup,ei=this.completions.filtered,fi=ei&&(ei[oi.getHoveredRow()]||ei[oi.getRow()]),gi=null;if(!fi||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var yi=this.editor.completers.length,pi=0;pi<yi;pi++){var $i=this.editor.completers[pi];if($i.getDocTooltip&&fi.completerId===$i.id){gi=$i.getDocTooltip(fi);break}}if(!gi&&typeof fi!="string"&&(gi=fi),typeof gi=="string"&&(gi={docText:gi}),!gi||!gi.docHTML&&!gi.docText)return this.hideDocTooltip();this.showDocTooltip(gi)},li.prototype.showDocTooltip=function(oi){this.tooltipNode||(this.tooltipNode=Dn.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",Pn));var ei=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(ei.isDark?"ace_dark ":"")+(ei.cssClass||"");var fi=this.tooltipNode;oi.docHTML?fi.innerHTML=oi.docHTML:oi.docText&&(fi.textContent=oi.docText),fi.parentNode||this.popup.container.appendChild(this.tooltipNode);var gi=this.popup,yi=gi.container.getBoundingClientRect();fi.style.top=gi.container.style.top,fi.style.bottom=gi.container.style.bottom,fi.style.display="block",window.innerWidth-yi.right<320?yi.left<320?gi.isTopdown?(fi.style.top=yi.bottom+"px",fi.style.left=yi.left+"px",fi.style.right="",fi.style.bottom=""):(fi.style.top=gi.container.offsetTop-fi.offsetHeight+"px",fi.style.left=yi.left+"px",fi.style.right="",fi.style.bottom=""):(fi.style.right=window.innerWidth-yi.left+"px",fi.style.left=""):(fi.style.left=yi.right+1+"px",fi.style.right="")},li.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var oi=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==oi&&this.editor.focus(),this.tooltipNode=null,oi.parentNode&&oi.parentNode.removeChild(oi)}},li.prototype.onTooltipClick=function(oi){for(var ei=oi.target;ei&&ei!=this.tooltipNode;){if(ei.nodeName=="A"&&ei.href){ei.rel="noreferrer",ei.target="_blank";break}ei=ei.parentNode}},li.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var oi=this.popup.container;oi&&oi.parentNode&&oi.parentNode.removeChild(oi)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",Zn),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},li.for=function(oi){return oi.completer instanceof li||(oi.completer&&(oi.completer.destroy(),oi.completer=null),Bn.get("sharedPopups")?(li.$sharedInstance||(li.$sharedInstance=new li),oi.completer=li.$sharedInstance):(oi.completer=new li,oi.once("destroy",Zn))),oi.completer},li}();Jn.prototype.commands={Up:function(li){li.completer.goTo("up")},Down:function(li){li.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(li){li.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(li){li.completer.goTo("end")},Esc:function(li){li.completer.detach()},Return:function(li){return li.completer.insertMatch()},"Shift-Return":function(li){li.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(li){var oi=li.completer.insertMatch();if(oi||li.tabstopManager)return oi;li.completer.goTo("down")},Backspace:function(li){li.execCommand("backspace");var oi=qn.getCompletionPrefix(li);!oi&&li.completer&&li.completer.detach()},PageUp:function(li){li.completer.popup.gotoPageUp()},PageDown:function(li){li.completer.popup.gotoPageDown()}},Jn.startCommand={name:"startAutocomplete",exec:function(li,oi){var ei=Jn.for(li);ei.autoInsert=!1,ei.autoSelect=!0,ei.autoShown=!1,ei.showPopup(li,oi),ei.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var Xn=function(){function li(oi){this.initialPosition=oi,this.active=!0}return li.prototype.insertByIndex=function(oi,ei,fi){return!this.completions||!this.completions.filtered?!1:this.insertMatch(oi,this.completions.filtered[ei],fi)},li.prototype.insertMatch=function(oi,ei,fi){if(!ei)return!1;if(oi.startOperation({command:{name:"insertMatch"}}),ei.completer&&ei.completer.insertMatch)ei.completer.insertMatch(oi,ei);else{if(!this.completions)return!1;var gi=this.completions.filterText.length,yi=0;if(ei.range&&ei.range.start.row===ei.range.end.row&&(gi-=this.initialPosition.prefix.length,gi+=this.initialPosition.pos.column-ei.range.start.column,yi+=ei.range.end.column-this.initialPosition.pos.column),gi||yi){var pi;oi.selection.getAllRanges?pi=oi.selection.getAllRanges():pi=[oi.getSelectionRange()];for(var $i=0,si;si=pi[$i];$i++)si.start.column-=gi,si.end.column+=yi,oi.session.remove(si)}ei.snippet?In.insertSnippet(oi,ei.snippet):this.$insertString(oi,ei),ei.completer&&ei.completer.onInsert&&typeof ei.completer.onInsert=="function"&&ei.completer.onInsert(oi,ei),ei.command&&ei.command==="startAutocomplete"&&oi.execCommand(ei.command)}return oi.endOperation(),!0},li.prototype.$insertString=function(oi,ei){var fi=ei.value||ei;oi.execCommand("insertstring",fi)},li.prototype.gatherCompletions=function(oi,ei){var fi=oi.getSession(),gi=oi.getCursorPosition(),yi=qn.getCompletionPrefix(oi),pi=[];this.completers=oi.completers;var $i=oi.completers.length;return oi.completers.forEach(function(si,ti){si.getCompletions(oi,fi,gi,yi,function(ai,vi){si.hideInlinePreview&&(vi=vi.map(function(wi){return Object.assign(wi,{hideInlinePreview:si.hideInlinePreview})})),!ai&&vi&&(pi=pi.concat(vi)),ei(null,{prefix:qn.getCompletionPrefix(oi),matches:pi,finished:--$i===0})})}),!0},li.prototype.provideCompletions=function(oi,ei,fi){var gi=(function(si){var ti=si.prefix,ai=si.matches;this.completions=new mi(ai),ei.exactMatch&&(this.completions.exactMatch=!0),ei.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(ti),(si.finished||this.completions.filtered.length)&&fi(null,this.completions,si.finished)}).bind(this),yi=!0,pi=null;if(this.gatherCompletions(oi,(function(si,ti){if(this.active){si&&(fi(si,[],!0),this.detach());var ai=ti.prefix;if(ai.indexOf(ti.prefix)===0){if(yi){pi=ti;return}gi(ti)}}}).bind(this)),yi=!1,pi){var $i=pi;pi=null,gi($i)}},li.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(oi){typeof oi.cancel=="function"&&oi.cancel()})},li}(),mi=function(){function li(oi,ei){this.all=oi,this.filtered=oi,this.filterText=ei||"",this.exactMatch=!1,this.ignoreCaption=!1}return li.prototype.setFilter=function(oi){if(oi.length>this.filterText&&oi.lastIndexOf(this.filterText,0)===0)var ei=this.filtered;else var ei=this.all;this.filterText=oi,ei=this.filterCompletions(ei,this.filterText),ei=ei.sort(function(gi,yi){return yi.exactMatch-gi.exactMatch||yi.$score-gi.$score||(gi.caption||gi.value).localeCompare(yi.caption||yi.value)});var fi=null;ei=ei.filter(function(gi){var yi=gi.snippet||gi.caption||gi.value;return yi===fi?!1:(fi=yi,!0)}),this.filtered=ei},li.prototype.filterCompletions=function(oi,ei){var fi=[],gi=ei.toUpperCase(),yi=ei.toLowerCase();e:for(var pi=0,$i;$i=oi[pi];pi++){var si=!this.ignoreCaption&&$i.caption||$i.value||$i.snippet;if(si){var ti=-1,ai=0,vi=0,wi,xi;if(this.exactMatch){if(ei!==si.substr(0,ei.length))continue e}else{var Si=si.toLowerCase().indexOf(yi);if(Si>-1)vi=Si;else for(var Ei=0;Ei<ei.length;Ei++){var Ni=si.indexOf(yi[Ei],ti+1),Ri=si.indexOf(gi[Ei],ti+1);if(wi=Ni>=0&&(Ri<0||Ni<Ri)?Ni:Ri,wi<0)continue e;xi=wi-ti-1,xi>0&&(ti===-1&&(vi+=10),vi+=xi,ai|=1<<Ei),ti=wi}}$i.matchMask=ai,$i.exactMatch=vi?0:1,$i.$score=($i.score||0)-vi,fi.push($i)}}return fi},li}();kn.Autocomplete=Jn,kn.CompletionProvider=Xn,kn.FilteredList=mi}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(_n,kn,Wn){function zn(qn,Nn){var Dn=qn.getTextRange(Qn.fromPoints({row:0,column:0},Nn));return Dn.split(Hn).length-1}function Kn(qn,Nn){var Dn=zn(qn,Nn),In=qn.getValue().split(Hn),Bn=Object.create(null),Ln=In[Dn];return In.forEach(function(Pn,Zn){if(!(!Pn||Pn===Ln)){var Jn=Math.abs(Dn-Zn),Xn=In.length-Jn;Bn[Pn]?Bn[Pn]=Math.max(Xn,Bn[Pn]):Bn[Pn]=Xn}}),Bn}var Qn=_n("../range").Range,Hn=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;kn.getCompletions=function(qn,Nn,Dn,In,Bn){var Ln=Kn(Nn,Dn),Pn=Object.keys(Ln);Bn(null,Pn.map(function(Zn){return{caption:Zn,value:Zn,score:Ln[Zn],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(_n,kn,Wn){var zn=_n("../snippets").snippetManager,Kn=_n("../autocomplete").Autocomplete,Qn=_n("../config"),Hn=_n("../lib/lang"),qn=_n("../autocomplete/util"),Nn=_n("../autocomplete/text_completer"),Dn={getCompletions:function(gi,yi,pi,$i,si){if(yi.$mode.completer)return yi.$mode.completer.getCompletions(gi,yi,pi,$i,si);var ti=gi.session.getState(pi.row),ai=yi.$mode.getCompletions(ti,yi,pi,$i);ai=ai.map(function(vi){return vi.completerId=Dn.id,vi}),si(null,ai)},id:"keywordCompleter"},In=function(gi){var yi={};return gi.replace(/\${(\d+)(:(.*?))?}/g,function(pi,$i,si,ti){return yi[$i]=ti||""}).replace(/\$(\d+?)/g,function(pi,$i){return yi[$i]})},Bn={getCompletions:function(gi,yi,pi,$i,si){var ti=[],ai=yi.getTokenAt(pi.row,pi.column);ai&&ai.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?ti.push("html-tag"):ti=zn.getActiveScopes(gi);var vi=zn.snippetMap,wi=[];ti.forEach(function(xi){for(var Si=vi[xi]||[],Ei=Si.length;Ei--;){var Ni=Si[Ei],Ri=Ni.name||Ni.tabTrigger;Ri&&wi.push({caption:Ri,snippet:Ni.content,meta:Ni.tabTrigger&&!Ni.name?Ni.tabTrigger+"⇥ ":"snippet",completerId:Bn.id})}},this),si(null,wi)},getDocTooltip:function(gi){gi.snippet&&!gi.docHTML&&(gi.docHTML=["<b>",Hn.escapeHTML(gi.caption),"</b>","<hr></hr>",Hn.escapeHTML(In(gi.snippet))].join(""))},id:"snippetCompleter"},Ln=[Bn,Nn,Dn];kn.setCompleters=function(gi){Ln.length=0,gi&&Ln.push.apply(Ln,gi)},kn.addCompleter=function(gi){Ln.push(gi)},kn.textCompleter=Nn,kn.keyWordCompleter=Dn,kn.snippetCompleter=Bn;var Pn={name:"expandSnippet",exec:function(gi){return zn.expandWithTab(gi)},bindKey:"Tab"},Zn=function(gi,yi){Jn(yi.session.$mode)},Jn=function(gi){typeof gi=="string"&&(gi=Qn.$modes[gi]),gi&&(zn.files||(zn.files={}),Xn(gi.$id,gi.snippetFileId),gi.modes&&gi.modes.forEach(Jn))},Xn=function(gi,yi){!yi||!gi||zn.files[gi]||(zn.files[gi]={},Qn.loadModule(yi,function(pi){pi&&(zn.files[gi]=pi,!pi.snippets&&pi.snippetText&&(pi.snippets=zn.parseSnippetFile(pi.snippetText)),zn.register(pi.snippets||[],pi.scope),pi.includeScopes&&(zn.snippetMap[pi.scope].includeScopes=pi.includeScopes,pi.includeScopes.forEach(function($i){Jn("ace/mode/"+$i)})))}))},mi=function(gi){var yi=gi.editor,pi=yi.completer&&yi.completer.activated;if(gi.command.name==="backspace")pi&&!qn.getCompletionPrefix(yi)&&yi.completer.detach();else if(gi.command.name==="insertstring"&&!pi){li=gi;var $i=gi.editor.$liveAutocompletionDelay;$i?oi.delay($i):ei(gi)}},li,oi=Hn.delayedCall(function(){ei(li)},0),ei=function(gi){var yi=gi.editor,pi=qn.getCompletionPrefix(yi),$i=gi.args,si=qn.triggerAutocomplete(yi,$i);if(pi&&pi.length>=yi.$liveAutocompletionThreshold||si){var ti=Kn.for(yi);ti.autoShown=!0,ti.showPopup(yi)}},fi=_n("../editor").Editor;_n("../config").defineOptions(fi.prototype,"editor",{enableBasicAutocompletion:{set:function(gi){gi?(this.completers||(this.completers=Array.isArray(gi)?gi:Ln),this.commands.addCommand(Kn.startCommand)):this.commands.removeCommand(Kn.startCommand)},value:!1},enableLiveAutocompletion:{set:function(gi){gi?(this.completers||(this.completers=Array.isArray(gi)?gi:Ln),this.commands.on("afterExec",mi)):this.commands.off("afterExec",mi)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(gi){gi?(this.commands.addCommand(Pn),this.on("changeMode",Zn),Zn(null,this)):(this.commands.removeCommand(Pn),this.off("changeMode",Zn))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(_n){e&&(e.exports=_n)})}()}(mc)),mc.exports}tx();var vc={exports:{}},Ud;function nx(){return Ud||(Ud=1,function(e,vn){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(_n,kn,Wn){Wn.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(_n,kn,Wn){var zn=_n("../lib/dom"),Kn=_n("../lib/lang"),Qn=_n("../lib/event"),Hn=_n("./searchbox-css"),qn=_n("../keyboard/hash_handler").HashHandler,Nn=_n("../lib/keys"),Dn=_n("../config").nls,In=999;zn.importCssString(Hn,"ace_searchbox",!1);var Bn=function(){function Zn(Jn,Xn,mi){this.activeInput;var li=zn.createElement("div");zn.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:Dn("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"},Dn("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:Dn("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},Dn("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},Dn("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:Dn("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:Dn("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:Dn("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:Dn("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:Dn("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],li),this.element=li.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(Jn),zn.importCssString(Hn,"ace_searchbox",Jn.container)}return Zn.prototype.setEditor=function(Jn){Jn.searchBox=this,Jn.renderer.scroller.appendChild(this.element),this.editor=Jn},Zn.prototype.setSession=function(Jn){this.searchRange=null,this.$syncOptions(!0)},Zn.prototype.$initElements=function(Jn){this.searchBox=Jn.querySelector(".ace_search_form"),this.replaceBox=Jn.querySelector(".ace_replace_form"),this.searchOption=Jn.querySelector("[action=searchInSelection]"),this.replaceOption=Jn.querySelector("[action=toggleReplace]"),this.regExpOption=Jn.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=Jn.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=Jn.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=Jn.querySelector(".ace_search_counter")},Zn.prototype.$init=function(){var Jn=this.element;this.$initElements(Jn);var Xn=this;Qn.addListener(Jn,"mousedown",function(mi){setTimeout(function(){Xn.activeInput.focus()},0),Qn.stopPropagation(mi)}),Qn.addListener(Jn,"click",function(mi){var li=mi.target||mi.srcElement,oi=li.getAttribute("action");oi&&Xn[oi]?Xn[oi]():Xn.$searchBarKb.commands[oi]&&Xn.$searchBarKb.commands[oi].exec(Xn),Qn.stopPropagation(mi)}),Qn.addCommandKeyListener(Jn,function(mi,li,oi){var ei=Nn.keyCodeToString(oi),fi=Xn.$searchBarKb.findKeyCommand(li,ei);fi&&fi.exec&&(fi.exec(Xn),Qn.stopEvent(mi))}),this.$onChange=Kn.delayedCall(function(){Xn.find(!1,!1)}),Qn.addListener(this.searchInput,"input",function(){Xn.$onChange.schedule(20)}),Qn.addListener(this.searchInput,"focus",function(){Xn.activeInput=Xn.searchInput,Xn.searchInput.value&&Xn.highlight()}),Qn.addListener(this.replaceInput,"focus",function(){Xn.activeInput=Xn.replaceInput,Xn.searchInput.value&&Xn.highlight()})},Zn.prototype.setSearchRange=function(Jn){this.searchRange=Jn,Jn?this.searchRangeMarker=this.editor.session.addMarker(Jn,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},Zn.prototype.$syncOptions=function(Jn){zn.setCssClass(this.replaceOption,"checked",this.searchRange),zn.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",zn.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),zn.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),zn.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var Xn=this.editor.getReadOnly();this.replaceOption.style.display=Xn?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!Xn?"":"none",this.find(!1,!1,Jn)},Zn.prototype.highlight=function(Jn){this.editor.session.highlight(Jn||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},Zn.prototype.find=function(Jn,Xn,mi){var li=this.editor.find(this.searchInput.value,{skipCurrent:Jn,backwards:Xn,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:mi,range:this.searchRange}),oi=!li&&this.searchInput.value;zn.setCssClass(this.searchBox,"ace_nomatch",oi),this.editor._emit("findSearchBox",{match:!oi}),this.highlight(),this.updateCounter()},Zn.prototype.updateCounter=function(){var Jn=this.editor,Xn=Jn.$search.$options.re,mi=Xn.unicode,li=0,oi=0;if(Xn){var ei=this.searchRange?Jn.session.getTextRange(this.searchRange):Jn.getValue(),fi=Jn.session.doc.positionToIndex(Jn.selection.anchor);this.searchRange&&(fi-=Jn.session.doc.positionToIndex(this.searchRange.start));for(var gi=Xn.lastIndex=0,yi;(yi=Xn.exec(ei))&&(li++,gi=yi.index,gi<=fi&&oi++,!(li>In||!yi[0]&&(Xn.lastIndex=gi+=Kn.skipEmptyMatch(ei,gi,mi),gi>=ei.length))););}this.searchCounter.textContent=Dn("search-box.search-counter","$0 of $1",[oi,li>In?In+"+":li])},Zn.prototype.findNext=function(){this.find(!0,!1)},Zn.prototype.findPrev=function(){this.find(!0,!0)},Zn.prototype.findAll=function(){var Jn=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),Xn=!Jn&&this.searchInput.value;zn.setCssClass(this.searchBox,"ace_nomatch",Xn),this.editor._emit("findSearchBox",{match:!Xn}),this.highlight(),this.hide()},Zn.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},Zn.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},Zn.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},Zn.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()},Zn.prototype.show=function(Jn,Xn){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=Xn,Jn&&(this.searchInput.value=Jn),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},Zn.prototype.isFocused=function(){var Jn=document.activeElement;return Jn==this.searchInput||Jn==this.replaceInput},Zn}(),Ln=new qn;Ln.bindKeys({"Ctrl-f|Command-f":function(Zn){var Jn=Zn.isReplace=!Zn.isReplace;Zn.replaceBox.style.display=Jn?"":"none",Zn.replaceOption.checked=!1,Zn.$syncOptions(),Zn.searchInput.focus()},"Ctrl-H|Command-Option-F":function(Zn){Zn.editor.getReadOnly()||(Zn.replaceOption.checked=!0,Zn.$syncOptions(),Zn.replaceInput.focus())},"Ctrl-G|Command-G":function(Zn){Zn.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(Zn){Zn.findPrev()},esc:function(Zn){setTimeout(function(){Zn.hide()})},Return:function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replace(),Zn.findNext()},"Shift-Return":function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replace(),Zn.findPrev()},"Alt-Return":function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replaceAll(),Zn.findAll()},Tab:function(Zn){(Zn.activeInput==Zn.replaceInput?Zn.searchInput:Zn.replaceInput).focus()}}),Ln.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(Zn){Zn.regExpOption.checked=!Zn.regExpOption.checked,Zn.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(Zn){Zn.caseSensitiveOption.checked=!Zn.caseSensitiveOption.checked,Zn.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(Zn){Zn.wholeWordOption.checked=!Zn.wholeWordOption.checked,Zn.$syncOptions()}},{name:"toggleReplace",exec:function(Zn){Zn.replaceOption.checked=!Zn.replaceOption.checked,Zn.$syncOptions()}},{name:"searchInSelection",exec:function(Zn){Zn.searchOption.checked=!Zn.searchRange,Zn.setSearchRange(Zn.searchOption.checked&&Zn.editor.getSelectionRange()),Zn.$syncOptions()}}]);var Pn=new qn([{bindKey:"Esc",name:"closeSearchBar",exec:function(Zn){Zn.searchBox.hide()}}]);Bn.prototype.$searchBarKb=Ln,Bn.prototype.$closeSearchBarKb=Pn,kn.SearchBox=Bn,kn.Search=function(Zn,Jn){var Xn=Zn.searchBox||new Bn(Zn);Xn.show(Zn.session.getTextRange(),Jn)}}),function(){ace.require(["ace/ext/searchbox"],function(_n){e&&(e.exports=_n)})}()}(vc)),vc.exports}nx();var ix=Object.defineProperty,rx=(e,vn,_n)=>vn in e?ix(e,vn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):e[vn]=_n,Lr=(e,vn,_n)=>rx(e,vn+"",_n);function Mp(e,vn){return function(){return e.apply(vn,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:Cu}=Object,Va=(e=>vn=>{const _n=ox.call(vn);return e[_n]||(e[_n]=_n.slice(8,-1).toLowerCase())})(Object.create(null)),di=e=>(e=e.toLowerCase(),vn=>Va(vn)===e),ja=e=>vn=>typeof vn===e,{isArray:yo}=Array,xs=ja("undefined");function sx(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lp=di("ArrayBuffer");function ax(e){let vn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?vn=ArrayBuffer.isView(e):vn=e&&e.buffer&&Lp(e.buffer),vn}const lx=ja("string"),Vn=ja("function"),Rp=ja("number"),Ga=e=>e!==null&&typeof e=="object",cx=e=>e===!0||e===!1,Ia=e=>{if(Va(e)!=="object")return!1;const vn=Cu(e);return(vn===null||vn===Object.prototype||Object.getPrototypeOf(vn)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ux=di("Date"),hx=di("File"),dx=di("Blob"),fx=di("FileList"),px=e=>Ga(e)&&Vn(e.pipe),gx=e=>{let vn;return e&&(typeof FormData=="function"&&e instanceof FormData||Vn(e.append)&&((vn=Va(e))==="formdata"||vn==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},mx=di("URLSearchParams"),[vx,yx,wx,bx]=["ReadableStream","Request","Response","Headers"].map(di),xx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ss(e,vn,{allOwnKeys:_n=!1}={}){if(e===null||typeof e>"u")return;let kn,Wn;if(typeof e!="object"&&(e=[e]),yo(e))for(kn=0,Wn=e.length;kn<Wn;kn++)vn.call(null,e[kn],kn,e);else{const zn=_n?Object.getOwnPropertyNames(e):Object.keys(e),Kn=zn.length;let Qn;for(kn=0;kn<Kn;kn++)Qn=zn[kn],vn.call(null,e[Qn],Qn,e)}}function Ep(e,vn){vn=vn.toLowerCase();const _n=Object.keys(e);let kn=_n.length,Wn;for(;kn-- >0;)if(Wn=_n[kn],vn===Wn.toLowerCase())return Wn;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ip=e=>!xs(e)&&e!==Or;function au(){const{caseless:e}=Ip(this)&&this||{},vn={},_n=(kn,Wn)=>{const zn=e&&Ep(vn,Wn)||Wn;Ia(vn[zn])&&Ia(kn)?vn[zn]=au(vn[zn],kn):Ia(kn)?vn[zn]=au({},kn):yo(kn)?vn[zn]=kn.slice():vn[zn]=kn};for(let kn=0,Wn=arguments.length;kn<Wn;kn++)arguments[kn]&&Ss(arguments[kn],_n);return vn}const _x=(e,vn,_n,{allOwnKeys:kn}={})=>(Ss(vn,(Wn,zn)=>{_n&&Vn(Wn)?e[zn]=Mp(Wn,_n):e[zn]=Wn},{allOwnKeys:kn}),e),Sx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kx=(e,vn,_n,kn)=>{e.prototype=Object.create(vn.prototype,kn),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:vn.prototype}),_n&&Object.assign(e.prototype,_n)},Cx=(e,vn,_n,kn)=>{let Wn,zn,Kn;const Qn={};if(vn=vn||{},e==null)return vn;do{for(Wn=Object.getOwnPropertyNames(e),zn=Wn.length;zn-- >0;)Kn=Wn[zn],(!kn||kn(Kn,e,vn))&&!Qn[Kn]&&(vn[Kn]=e[Kn],Qn[Kn]=!0);e=_n!==!1&&Cu(e)}while(e&&(!_n||_n(e,vn))&&e!==Object.prototype);return vn},Ax=(e,vn,_n)=>{e=String(e),(_n===void 0||_n>e.length)&&(_n=e.length),_n-=vn.length;const kn=e.indexOf(vn,_n);return kn!==-1&&kn===_n},$x=e=>{if(!e)return null;if(yo(e))return e;let vn=e.length;if(!Rp(vn))return null;const _n=new Array(vn);for(;vn-- >0;)_n[vn]=e[vn];return _n},Tx=(e=>vn=>e&&vn instanceof e)(typeof Uint8Array<"u"&&Cu(Uint8Array)),Mx=(e,vn)=>{const _n=(e&&e[Symbol.iterator]).call(e);let kn;for(;(kn=_n.next())&&!kn.done;){const Wn=kn.value;vn.call(e,Wn[0],Wn[1])}},Lx=(e,vn)=>{let _n;const kn=[];for(;(_n=e.exec(vn))!==null;)kn.push(_n);return kn},Rx=di("HTMLFormElement"),Ex=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(vn,_n,kn){return _n.toUpperCase()+kn}),Vd=(({hasOwnProperty:e})=>(vn,_n)=>e.call(vn,_n))(Object.prototype),Ix=di("RegExp"),Op=(e,vn)=>{const _n=Object.getOwnPropertyDescriptors(e),kn={};Ss(_n,(Wn,zn)=>{let Kn;(Kn=vn(Wn,zn,e))!==!1&&(kn[zn]=Kn||Wn)}),Object.defineProperties(e,kn)},Ox=e=>{Op(e,(vn,_n)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(_n)!==-1)return!1;const kn=e[_n];if(Vn(kn)){if(vn.enumerable=!1,"writable"in vn){vn.writable=!1;return}vn.set||(vn.set=()=>{throw Error("Can not rewrite read-only method '"+_n+"'")})}})},Dx=(e,vn)=>{const _n={},kn=Wn=>{Wn.forEach(zn=>{_n[zn]=!0})};return yo(e)?kn(e):kn(String(e).split(vn)),_n},Nx=()=>{},Fx=(e,vn)=>e!=null&&Number.isFinite(e=+e)?e:vn,yc="abcdefghijklmnopqrstuvwxyz",jd="0123456789",Dp={DIGIT:jd,ALPHA:yc,ALPHA_DIGIT:yc+yc.toUpperCase()+jd},Wx=(e=16,vn=Dp.ALPHA_DIGIT)=>{let _n="";const{length:kn}=vn;for(;e--;)_n+=vn[Math.random()*kn|0];return _n};function Px(e){return!!(e&&Vn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bx=e=>{const vn=new Array(10),_n=(kn,Wn)=>{if(Ga(kn)){if(vn.indexOf(kn)>=0)return;if(!("toJSON"in kn)){vn[Wn]=kn;const zn=yo(kn)?[]:{};return Ss(kn,(Kn,Qn)=>{const Hn=_n(Kn,Wn+1);!xs(Hn)&&(zn[Qn]=Hn)}),vn[Wn]=void 0,zn}}return kn};return _n(e,0)},zx=di("AsyncFunction"),Hx=e=>e&&(Ga(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),Np=((e,vn)=>e?setImmediate:vn?((_n,kn)=>(Or.addEventListener("message",({source:Wn,data:zn})=>{Wn===Or&&zn===_n&&kn.length&&kn.shift()()},!1),Wn=>{kn.push(Wn),Or.postMessage(_n,"*")}))(`axios@${Math.random()}`,[]):_n=>setTimeout(_n))(typeof setImmediate=="function",Vn(Or.postMessage)),Ux=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Np,ue$4={isArray:yo,isArrayBuffer:Lp,isBuffer:sx,isFormData:gx,isArrayBufferView:ax,isString:lx,isNumber:Rp,isBoolean:cx,isObject:Ga,isPlainObject:Ia,isReadableStream:vx,isRequest:yx,isResponse:wx,isHeaders:bx,isUndefined:xs,isDate:ux,isFile:hx,isBlob:dx,isRegExp:Ix,isFunction:Vn,isStream:px,isURLSearchParams:mx,isTypedArray:Tx,isFileList:fx,forEach:Ss,merge:au,extend:_x,trim:xx,stripBOM:Sx,inherits:kx,toFlatObject:Cx,kindOf:Va,kindOfTest:di,endsWith:Ax,toArray:$x,forEachEntry:Mx,matchAll:Lx,isHTMLForm:Rx,hasOwnProperty:Vd,hasOwnProp:Vd,reduceDescriptors:Op,freezeMethods:Ox,toObjectSet:Dx,toCamelCase:Ex,noop:Nx,toFiniteNumber:Fx,findKey:Ep,global:Or,isContextDefined:Ip,ALPHABET:Dp,generateString:Wx,isSpecCompliantForm:Px,toJSONObject:Bx,isAsyncFn:zx,isThenable:Hx,setImmediate:Np,asap:Ux};function Ye$3(e,vn,_n,kn,Wn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",vn&&(this.code=vn),_n&&(this.config=_n),kn&&(this.request=kn),Wn&&(this.response=Wn,this.status=Wn.status?Wn.status:null)}ue$4.inherits(Ye$3,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$4.toJSONObject(this.config),code:this.code,status:this.status}}});const Fp=Ye$3.prototype,Wp={};["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(e=>{Wp[e]={value:e}}),Object.defineProperties(Ye$3,Wp),Object.defineProperty(Fp,"isAxiosError",{value:!0}),Ye$3.from=(e,vn,_n,kn,Wn,zn)=>{const Kn=Object.create(Fp);return ue$4.toFlatObject(e,Kn,function(Qn){return Qn!==Error.prototype},Qn=>Qn!=="isAxiosError"),Ye$3.call(Kn,e.message,vn,_n,kn,Wn),Kn.cause=e,Kn.name=e.name,zn&&Object.assign(Kn,zn),Kn};const Vx=null;function lu(e){return ue$4.isPlainObject(e)||ue$4.isArray(e)}function Pp(e){return ue$4.endsWith(e,"[]")?e.slice(0,-2):e}function Gd(e,vn,_n){return e?e.concat(vn).map(function(kn,Wn){return kn=Pp(kn),!_n&&Wn?"["+kn+"]":kn}).join(_n?".":""):vn}function jx(e){return ue$4.isArray(e)&&!e.some(lu)}const Gx=ue$4.toFlatObject(ue$4,{},null,function(e){return/^is[A-Z]/.test(e)});function Ka(e,vn,_n){if(!ue$4.isObject(e))throw new TypeError("target must be an object");vn=vn||new FormData,_n=ue$4.toFlatObject(_n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Ln){return!ue$4.isUndefined(Ln[Bn])});const kn=_n.metaTokens,Wn=_n.visitor||qn,zn=_n.dots,Kn=_n.indexes,Qn=(_n.Blob||typeof Blob<"u"&&Blob)&&ue$4.isSpecCompliantForm(vn);if(!ue$4.isFunction(Wn))throw new TypeError("visitor must be a function");function Hn(Bn){if(Bn===null)return"";if(ue$4.isDate(Bn))return Bn.toISOString();if(!Qn&&ue$4.isBlob(Bn))throw new Ye$3("Blob is not supported. Use a Buffer instead.");return ue$4.isArrayBuffer(Bn)||ue$4.isTypedArray(Bn)?Qn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function qn(Bn,Ln,Pn){let Zn=Bn;if(Bn&&!Pn&&typeof Bn=="object"){if(ue$4.endsWith(Ln,"{}"))Ln=kn?Ln:Ln.slice(0,-2),Bn=JSON.stringify(Bn);else if(ue$4.isArray(Bn)&&jx(Bn)||(ue$4.isFileList(Bn)||ue$4.endsWith(Ln,"[]"))&&(Zn=ue$4.toArray(Bn)))return Ln=Pp(Ln),Zn.forEach(function(Jn,Xn){!(ue$4.isUndefined(Jn)||Jn===null)&&vn.append(Kn===!0?Gd([Ln],Xn,zn):Kn===null?Ln:Ln+"[]",Hn(Jn))}),!1}return lu(Bn)?!0:(vn.append(Gd(Pn,Ln,zn),Hn(Bn)),!1)}const Nn=[],Dn=Object.assign(Gx,{defaultVisitor:qn,convertValue:Hn,isVisitable:lu});function In(Bn,Ln){if(!ue$4.isUndefined(Bn)){if(Nn.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Ln.join("."));Nn.push(Bn),ue$4.forEach(Bn,function(Pn,Zn){(!(ue$4.isUndefined(Pn)||Pn===null)&&Wn.call(vn,Pn,ue$4.isString(Zn)?Zn.trim():Zn,Ln,Dn))===!0&&In(Pn,Ln?Ln.concat(Zn):[Zn])}),Nn.pop()}}if(!ue$4.isObject(e))throw new TypeError("data must be an object");return In(e),vn}function Kd(e){const vn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(_n){return vn[_n]})}function Au(e,vn){this._pairs=[],e&&Ka(e,this,vn)}const Bp=Au.prototype;Bp.append=function(e,vn){this._pairs.push([e,vn])},Bp.toString=function(e){const vn=e?function(_n){return e.call(this,_n,Kd)}:Kd;return this._pairs.map(function(_n){return vn(_n[0])+"="+vn(_n[1])},"").join("&")};function Kx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(e,vn,_n){if(!vn)return e;const kn=_n&&_n.encode||Kx;ue$4.isFunction(_n)&&(_n={serialize:_n});const Wn=_n&&_n.serialize;let zn;if(Wn?zn=Wn(vn,_n):zn=ue$4.isURLSearchParams(vn)?vn.toString():new Au(vn,_n).toString(kn),zn){const Kn=e.indexOf("#");Kn!==-1&&(e=e.slice(0,Kn)),e+=(e.indexOf("?")===-1?"?":"&")+zn}return e}class qd{constructor(){this.handlers=[]}use(vn,_n,kn){return this.handlers.push({fulfilled:vn,rejected:_n,synchronous:kn?kn.synchronous:!1,runWhen:kn?kn.runWhen:null}),this.handlers.length-1}eject(vn){this.handlers[vn]&&(this.handlers[vn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(vn){ue$4.forEach(this.handlers,function(_n){_n!==null&&vn(_n)})}}const Hp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qx=typeof URLSearchParams<"u"?URLSearchParams:Au,Yx=typeof FormData<"u"?FormData:null,Zx=typeof Blob<"u"?Blob:null,Qx={isBrowser:!0,classes:{URLSearchParams:qx,FormData:Yx,Blob:Zx},protocols:["http","https","file","blob","url","data"]},$u=typeof window<"u"&&typeof document<"u",cu=typeof navigator=="object"&&navigator||void 0,Xx=$u&&(!cu||["ReactNative","NativeScript","NS"].indexOf(cu.product)<0),Jx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",e1=$u&&window.location.href||"http://localhost",t1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$u,hasStandardBrowserEnv:Xx,hasStandardBrowserWebWorkerEnv:Jx,navigator:cu,origin:e1},Symbol.toStringTag,{value:"Module"})),bn$1={...t1,...Qx};function n1(e,vn){return Ka(e,new bn$1.classes.URLSearchParams,Object.assign({visitor:function(_n,kn,Wn,zn){return bn$1.isNode&&ue$4.isBuffer(_n)?(this.append(kn,_n.toString("base64")),!1):zn.defaultVisitor.apply(this,arguments)}},vn))}function i1(e){return ue$4.matchAll(/\w+|\[(\w*)]/g,e).map(vn=>vn[0]==="[]"?"":vn[1]||vn[0])}function r1(e){const vn={},_n=Object.keys(e);let kn;const Wn=_n.length;let zn;for(kn=0;kn<Wn;kn++)zn=_n[kn],vn[zn]=e[zn];return vn}function Up(e){function vn(_n,kn,Wn,zn){let Kn=_n[zn++];if(Kn==="__proto__")return!0;const Qn=Number.isFinite(+Kn),Hn=zn>=_n.length;return Kn=!Kn&&ue$4.isArray(Wn)?Wn.length:Kn,Hn?(ue$4.hasOwnProp(Wn,Kn)?Wn[Kn]=[Wn[Kn],kn]:Wn[Kn]=kn,!Qn):((!Wn[Kn]||!ue$4.isObject(Wn[Kn]))&&(Wn[Kn]=[]),vn(_n,kn,Wn[Kn],zn)&&ue$4.isArray(Wn[Kn])&&(Wn[Kn]=r1(Wn[Kn])),!Qn)}if(ue$4.isFormData(e)&&ue$4.isFunction(e.entries)){const _n={};return ue$4.forEachEntry(e,(kn,Wn)=>{vn(i1(kn),Wn,_n,0)}),_n}return null}function o1(e,vn,_n){if(ue$4.isString(e))try{return(vn||JSON.parse)(e),ue$4.trim(e)}catch(kn){if(kn.name!=="SyntaxError")throw kn}return(0,JSON.stringify)(e)}const ks={transitional:Hp,adapter:["xhr","http","fetch"],transformRequest:[function(e,vn){const _n=vn.getContentType()||"",kn=_n.indexOf("application/json")>-1,Wn=ue$4.isObject(e);if(Wn&&ue$4.isHTMLForm(e)&&(e=new FormData(e)),ue$4.isFormData(e))return kn?JSON.stringify(Up(e)):e;if(ue$4.isArrayBuffer(e)||ue$4.isBuffer(e)||ue$4.isStream(e)||ue$4.isFile(e)||ue$4.isBlob(e)||ue$4.isReadableStream(e))return e;if(ue$4.isArrayBufferView(e))return e.buffer;if(ue$4.isURLSearchParams(e))return vn.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let zn;if(Wn){if(_n.indexOf("application/x-www-form-urlencoded")>-1)return n1(e,this.formSerializer).toString();if((zn=ue$4.isFileList(e))||_n.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return Ka(zn?{"files[]":e}:e,Kn&&new Kn,this.formSerializer)}}return Wn||kn?(vn.setContentType("application/json",!1),o1(e)):e}],transformResponse:[function(e){const vn=this.transitional||ks.transitional,_n=vn&&vn.forcedJSONParsing,kn=this.responseType==="json";if(ue$4.isResponse(e)||ue$4.isReadableStream(e))return e;if(e&&ue$4.isString(e)&&(_n&&!this.responseType||kn)){const Wn=!(vn&&vn.silentJSONParsing)&&kn;try{return JSON.parse(e)}catch(zn){if(Wn)throw zn.name==="SyntaxError"?Ye$3.from(zn,Ye$3.ERR_BAD_RESPONSE,this,null,this.response):zn}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn$1.classes.FormData,Blob:bn$1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue$4.forEach(["delete","get","head","post","put","patch"],e=>{ks.headers[e]={}});const s1=ue$4.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"]),a1=e=>{const vn={};let _n,kn,Wn;return e&&e.split(`
|
1376
|
+
`).forEach(function(zn){Wn=zn.indexOf(":"),_n=zn.substring(0,Wn).trim().toLowerCase(),kn=zn.substring(Wn+1).trim(),!(!_n||vn[_n]&&s1[_n])&&(_n==="set-cookie"?vn[_n]?vn[_n].push(kn):vn[_n]=[kn]:vn[_n]=vn[_n]?vn[_n]+", "+kn:kn)}),vn},Yd=Symbol("internals");function us(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:ue$4.isArray(e)?e.map(Oa):String(e)}function l1(e){const vn=Object.create(null),_n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let kn;for(;kn=_n.exec(e);)vn[kn[1]]=kn[2];return vn}const c1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wc(e,vn,_n,kn,Wn){if(ue$4.isFunction(kn))return kn.call(this,vn,_n);if(Wn&&(vn=_n),!!ue$4.isString(vn)){if(ue$4.isString(kn))return vn.indexOf(kn)!==-1;if(ue$4.isRegExp(kn))return kn.test(vn)}}function u1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(vn,_n,kn)=>_n.toUpperCase()+kn)}function h1(e,vn){const _n=ue$4.toCamelCase(" "+vn);["get","set","has"].forEach(kn=>{Object.defineProperty(e,kn+_n,{value:function(Wn,zn,Kn){return this[kn].call(this,vn,Wn,zn,Kn)},configurable:!0})})}class Fn{constructor(vn){vn&&this.set(vn)}set(vn,_n,kn){const Wn=this;function zn(Qn,Hn,qn){const Nn=us(Hn);if(!Nn)throw new Error("header name must be a non-empty string");const Dn=ue$4.findKey(Wn,Nn);(!Dn||Wn[Dn]===void 0||qn===!0||qn===void 0&&Wn[Dn]!==!1)&&(Wn[Dn||Hn]=Oa(Qn))}const Kn=(Qn,Hn)=>ue$4.forEach(Qn,(qn,Nn)=>zn(qn,Nn,Hn));if(ue$4.isPlainObject(vn)||vn instanceof this.constructor)Kn(vn,_n);else if(ue$4.isString(vn)&&(vn=vn.trim())&&!c1(vn))Kn(a1(vn),_n);else if(ue$4.isHeaders(vn))for(const[Qn,Hn]of vn.entries())zn(Hn,Qn,kn);else vn!=null&&zn(_n,vn,kn);return this}get(vn,_n){if(vn=us(vn),vn){const kn=ue$4.findKey(this,vn);if(kn){const Wn=this[kn];if(!_n)return Wn;if(_n===!0)return l1(Wn);if(ue$4.isFunction(_n))return _n.call(this,Wn,kn);if(ue$4.isRegExp(_n))return _n.exec(Wn);throw new TypeError("parser must be boolean|regexp|function")}}}has(vn,_n){if(vn=us(vn),vn){const kn=ue$4.findKey(this,vn);return!!(kn&&this[kn]!==void 0&&(!_n||wc(this,this[kn],kn,_n)))}return!1}delete(vn,_n){const kn=this;let Wn=!1;function zn(Kn){if(Kn=us(Kn),Kn){const Qn=ue$4.findKey(kn,Kn);Qn&&(!_n||wc(kn,kn[Qn],Qn,_n))&&(delete kn[Qn],Wn=!0)}}return ue$4.isArray(vn)?vn.forEach(zn):zn(vn),Wn}clear(vn){const _n=Object.keys(this);let kn=_n.length,Wn=!1;for(;kn--;){const zn=_n[kn];(!vn||wc(this,this[zn],zn,vn,!0))&&(delete this[zn],Wn=!0)}return Wn}normalize(vn){const _n=this,kn={};return ue$4.forEach(this,(Wn,zn)=>{const Kn=ue$4.findKey(kn,zn);if(Kn){_n[Kn]=Oa(Wn),delete _n[zn];return}const Qn=vn?u1(zn):String(zn).trim();Qn!==zn&&delete _n[zn],_n[Qn]=Oa(Wn),kn[Qn]=!0}),this}concat(...vn){return this.constructor.concat(this,...vn)}toJSON(vn){const _n=Object.create(null);return ue$4.forEach(this,(kn,Wn)=>{kn!=null&&kn!==!1&&(_n[Wn]=vn&&ue$4.isArray(kn)?kn.join(", "):kn)}),_n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([vn,_n])=>vn+": "+_n).join(`
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(vn){return vn instanceof this?vn:new this(vn)}static concat(vn,..._n){const kn=new this(vn);return _n.forEach(Wn=>kn.set(Wn)),kn}static accessor(vn){const _n=(this[Yd]=this[Yd]={accessors:{}}).accessors,kn=this.prototype;function Wn(zn){const Kn=us(zn);_n[Kn]||(h1(kn,zn),_n[Kn]=!0)}return ue$4.isArray(vn)?vn.forEach(Wn):Wn(vn),this}}Fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue$4.reduceDescriptors(Fn.prototype,({value:e},vn)=>{let _n=vn[0].toUpperCase()+vn.slice(1);return{get:()=>e,set(kn){this[_n]=kn}}}),ue$4.freezeMethods(Fn);function bc(e,vn){const _n=this||ks,kn=vn||_n,Wn=Fn.from(kn.headers);let zn=kn.data;return ue$4.forEach(e,function(Kn){zn=Kn.call(_n,zn,Wn.normalize(),vn?vn.status:void 0)}),Wn.normalize(),zn}function Vp(e){return!!(e&&e.__CANCEL__)}function wo(e,vn,_n){Ye$3.call(this,e??"canceled",Ye$3.ERR_CANCELED,vn,_n),this.name="CanceledError"}ue$4.inherits(wo,Ye$3,{__CANCEL__:!0});function jp(e,vn,_n){const kn=_n.config.validateStatus;!_n.status||!kn||kn(_n.status)?e(_n):vn(new Ye$3("Request failed with status code "+_n.status,[Ye$3.ERR_BAD_REQUEST,Ye$3.ERR_BAD_RESPONSE][Math.floor(_n.status/100)-4],_n.config,_n.request,_n))}function d1(e){const vn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return vn&&vn[1]||""}function f1(e,vn){e=e||10;const _n=new Array(e),kn=new Array(e);let Wn=0,zn=0,Kn;return vn=vn!==void 0?vn:1e3,function(Qn){const Hn=Date.now(),qn=kn[zn];Kn||(Kn=Hn),_n[Wn]=Qn,kn[Wn]=Hn;let Nn=zn,Dn=0;for(;Nn!==Wn;)Dn+=_n[Nn++],Nn=Nn%e;if(Wn=(Wn+1)%e,Wn===zn&&(zn=(zn+1)%e),Hn-Kn<vn)return;const In=qn&&Hn-qn;return In?Math.round(Dn*1e3/In):void 0}}function p1(e,vn){let _n=0,kn=1e3/vn,Wn,zn;const Kn=(Qn,Hn=Date.now())=>{_n=Hn,Wn=null,zn&&(clearTimeout(zn),zn=null),e.apply(null,Qn)};return[(...Qn)=>{const Hn=Date.now(),qn=Hn-_n;qn>=kn?Kn(Qn,Hn):(Wn=Qn,zn||(zn=setTimeout(()=>{zn=null,Kn(Wn)},kn-qn)))},()=>Wn&&Kn(Wn)]}const Wa=(e,vn,_n=3)=>{let kn=0;const Wn=f1(50,250);return p1(zn=>{const Kn=zn.loaded,Qn=zn.lengthComputable?zn.total:void 0,Hn=Kn-kn,qn=Wn(Hn),Nn=Kn<=Qn;kn=Kn;const Dn={loaded:Kn,total:Qn,progress:Qn?Kn/Qn:void 0,bytes:Hn,rate:qn||void 0,estimated:qn&&Qn&&Nn?(Qn-Kn)/qn:void 0,event:zn,lengthComputable:Qn!=null,[vn?"download":"upload"]:!0};e(Dn)},_n)},Zd=(e,vn)=>{const _n=e!=null;return[kn=>vn[0]({lengthComputable:_n,total:e,loaded:kn}),vn[1]]},Qd=e=>(...vn)=>ue$4.asap(()=>e(...vn)),g1=bn$1.hasStandardBrowserEnv?((e,vn)=>_n=>(_n=new URL(_n,bn$1.origin),e.protocol===_n.protocol&&e.host===_n.host&&(vn||e.port===_n.port)))(new URL(bn$1.origin),bn$1.navigator&&/(msie|trident)/i.test(bn$1.navigator.userAgent)):()=>!0,m1=bn$1.hasStandardBrowserEnv?{write(e,vn,_n,kn,Wn,zn){const Kn=[e+"="+encodeURIComponent(vn)];ue$4.isNumber(_n)&&Kn.push("expires="+new Date(_n).toGMTString()),ue$4.isString(kn)&&Kn.push("path="+kn),ue$4.isString(Wn)&&Kn.push("domain="+Wn),zn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(e){const vn=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return vn?decodeURIComponent(vn[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function y1(e,vn){return vn?e.replace(/\/?\/$/,"")+"/"+vn.replace(/^\/+/,""):e}function Gp(e,vn){return e&&!v1(vn)?y1(e,vn):vn}const Xd=e=>e instanceof Fn?{...e}:e;function Fr(e,vn){vn=vn||{};const _n={};function kn(qn,Nn,Dn,In){return ue$4.isPlainObject(qn)&&ue$4.isPlainObject(Nn)?ue$4.merge.call({caseless:In},qn,Nn):ue$4.isPlainObject(Nn)?ue$4.merge({},Nn):ue$4.isArray(Nn)?Nn.slice():Nn}function Wn(qn,Nn,Dn,In){if(ue$4.isUndefined(Nn)){if(!ue$4.isUndefined(qn))return kn(void 0,qn,Dn,In)}else return kn(qn,Nn,Dn,In)}function zn(qn,Nn){if(!ue$4.isUndefined(Nn))return kn(void 0,Nn)}function Kn(qn,Nn){if(ue$4.isUndefined(Nn)){if(!ue$4.isUndefined(qn))return kn(void 0,qn)}else return kn(void 0,Nn)}function Qn(qn,Nn,Dn){if(Dn in vn)return kn(qn,Nn);if(Dn in e)return kn(void 0,qn)}const Hn={url:zn,method:zn,data:zn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Qn,headers:(qn,Nn,Dn)=>Wn(Xd(qn),Xd(Nn),Dn,!0)};return ue$4.forEach(Object.keys(Object.assign({},e,vn)),function(qn){const Nn=Hn[qn]||Wn,Dn=Nn(e[qn],vn[qn],qn);ue$4.isUndefined(Dn)&&Nn!==Qn||(_n[qn]=Dn)}),_n}const Kp=e=>{const vn=Fr({},e);let{data:_n,withXSRFToken:kn,xsrfHeaderName:Wn,xsrfCookieName:zn,headers:Kn,auth:Qn}=vn;vn.headers=Kn=Fn.from(Kn),vn.url=zp(Gp(vn.baseURL,vn.url),e.params,e.paramsSerializer),Qn&&Kn.set("Authorization","Basic "+btoa((Qn.username||"")+":"+(Qn.password?unescape(encodeURIComponent(Qn.password)):"")));let Hn;if(ue$4.isFormData(_n)){if(bn$1.hasStandardBrowserEnv||bn$1.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((Hn=Kn.getContentType())!==!1){const[qn,...Nn]=Hn?Hn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([qn||"multipart/form-data",...Nn].join("; "))}}if(bn$1.hasStandardBrowserEnv&&(kn&&ue$4.isFunction(kn)&&(kn=kn(vn)),kn||kn!==!1&&g1(vn.url))){const qn=Wn&&zn&&m1.read(zn);qn&&Kn.set(Wn,qn)}return vn},w1=typeof XMLHttpRequest<"u",b1=w1&&function(e){return new Promise(function(vn,_n){const kn=Kp(e);let Wn=kn.data;const zn=Fn.from(kn.headers).normalize();let{responseType:Kn,onUploadProgress:Qn,onDownloadProgress:Hn}=kn,qn,Nn,Dn,In,Bn;function Ln(){In&&In(),Bn&&Bn(),kn.cancelToken&&kn.cancelToken.unsubscribe(qn),kn.signal&&kn.signal.removeEventListener("abort",qn)}let Pn=new XMLHttpRequest;Pn.open(kn.method.toUpperCase(),kn.url,!0),Pn.timeout=kn.timeout;function Zn(){if(!Pn)return;const Xn=Fn.from("getAllResponseHeaders"in Pn&&Pn.getAllResponseHeaders()),mi={data:!Kn||Kn==="text"||Kn==="json"?Pn.responseText:Pn.response,status:Pn.status,statusText:Pn.statusText,headers:Xn,config:e,request:Pn};jp(function(li){vn(li),Ln()},function(li){_n(li),Ln()},mi),Pn=null}"onloadend"in Pn?Pn.onloadend=Zn:Pn.onreadystatechange=function(){!Pn||Pn.readyState!==4||Pn.status===0&&!(Pn.responseURL&&Pn.responseURL.indexOf("file:")===0)||setTimeout(Zn)},Pn.onabort=function(){Pn&&(_n(new Ye$3("Request aborted",Ye$3.ECONNABORTED,e,Pn)),Pn=null)},Pn.onerror=function(){_n(new Ye$3("Network Error",Ye$3.ERR_NETWORK,e,Pn)),Pn=null},Pn.ontimeout=function(){let Xn=kn.timeout?"timeout of "+kn.timeout+"ms exceeded":"timeout exceeded";const mi=kn.transitional||Hp;kn.timeoutErrorMessage&&(Xn=kn.timeoutErrorMessage),_n(new Ye$3(Xn,mi.clarifyTimeoutError?Ye$3.ETIMEDOUT:Ye$3.ECONNABORTED,e,Pn)),Pn=null},Wn===void 0&&zn.setContentType(null),"setRequestHeader"in Pn&&ue$4.forEach(zn.toJSON(),function(Xn,mi){Pn.setRequestHeader(mi,Xn)}),ue$4.isUndefined(kn.withCredentials)||(Pn.withCredentials=!!kn.withCredentials),Kn&&Kn!=="json"&&(Pn.responseType=kn.responseType),Hn&&([Dn,Bn]=Wa(Hn,!0),Pn.addEventListener("progress",Dn)),Qn&&Pn.upload&&([Nn,In]=Wa(Qn),Pn.upload.addEventListener("progress",Nn),Pn.upload.addEventListener("loadend",In)),(kn.cancelToken||kn.signal)&&(qn=Xn=>{Pn&&(_n(!Xn||Xn.type?new wo(null,e,Pn):Xn),Pn.abort(),Pn=null)},kn.cancelToken&&kn.cancelToken.subscribe(qn),kn.signal&&(kn.signal.aborted?qn():kn.signal.addEventListener("abort",qn)));const Jn=d1(kn.url);if(Jn&&bn$1.protocols.indexOf(Jn)===-1){_n(new Ye$3("Unsupported protocol "+Jn+":",Ye$3.ERR_BAD_REQUEST,e));return}Pn.send(Wn||null)})},x1=(e,vn)=>{const{length:_n}=e=e?e.filter(Boolean):[];if(vn||_n){let kn=new AbortController,Wn;const zn=function(qn){if(!Wn){Wn=!0,Qn();const Nn=qn instanceof Error?qn:this.reason;kn.abort(Nn instanceof Ye$3?Nn:new wo(Nn instanceof Error?Nn.message:Nn))}};let Kn=vn&&setTimeout(()=>{Kn=null,zn(new Ye$3(`timeout ${vn} of ms exceeded`,Ye$3.ETIMEDOUT))},vn);const Qn=()=>{e&&(Kn&&clearTimeout(Kn),Kn=null,e.forEach(qn=>{qn.unsubscribe?qn.unsubscribe(zn):qn.removeEventListener("abort",zn)}),e=null)};e.forEach(qn=>qn.addEventListener("abort",zn));const{signal:Hn}=kn;return Hn.unsubscribe=()=>ue$4.asap(Qn),Hn}},_1=function*(e,vn){let _n=e.byteLength;if(_n<vn){yield e;return}let kn=0,Wn;for(;kn<_n;)Wn=kn+vn,yield e.slice(kn,Wn),kn=Wn},S1=async function*(e,vn){for await(const _n of k1(e))yield*_1(_n,vn)},k1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const vn=e.getReader();try{for(;;){const{done:_n,value:kn}=await vn.read();if(_n)break;yield kn}}finally{await vn.cancel()}},Jd=(e,vn,_n,kn)=>{const Wn=S1(e,vn);let zn=0,Kn,Qn=Hn=>{Kn||(Kn=!0,kn&&kn(Hn))};return new ReadableStream({async pull(Hn){try{const{done:qn,value:Nn}=await Wn.next();if(qn){Qn(),Hn.close();return}let Dn=Nn.byteLength;if(_n){let In=zn+=Dn;_n(In)}Hn.enqueue(new Uint8Array(Nn))}catch(qn){throw Qn(qn),qn}},cancel(Hn){return Qn(Hn),Wn.return()}},{highWaterMark:2})},qa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=qa&&typeof ReadableStream=="function",C1=qa&&(typeof TextEncoder=="function"?(e=>vn=>e.encode(vn))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Yp=(e,...vn)=>{try{return!!e(...vn)}catch{return!1}},A1=qp&&Yp(()=>{let e=!1;const vn=new Request(bn$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!vn}),ef=64*1024,uu=qp&&Yp(()=>ue$4.isReadableStream(new Response("").body)),Pa={stream:uu&&(e=>e.body)};qa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(vn=>{!Pa[vn]&&(Pa[vn]=ue$4.isFunction(e[vn])?_n=>_n[vn]():(_n,kn)=>{throw new Ye$3(`Response type '${vn}' is not supported`,Ye$3.ERR_NOT_SUPPORT,kn)})})})(new Response);const $1=async e=>{if(e==null)return 0;if(ue$4.isBlob(e))return e.size;if(ue$4.isSpecCompliantForm(e))return(await new Request(bn$1.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ue$4.isArrayBufferView(e)||ue$4.isArrayBuffer(e))return e.byteLength;if(ue$4.isURLSearchParams(e)&&(e=e+""),ue$4.isString(e))return(await C1(e)).byteLength},T1=async(e,vn)=>ue$4.toFiniteNumber(e.getContentLength())??$1(vn),M1=qa&&(async e=>{let{url:vn,method:_n,data:kn,signal:Wn,cancelToken:zn,timeout:Kn,onDownloadProgress:Qn,onUploadProgress:Hn,responseType:qn,headers:Nn,withCredentials:Dn="same-origin",fetchOptions:In}=Kp(e);qn=qn?(qn+"").toLowerCase():"text";let Bn=x1([Wn,zn&&zn.toAbortSignal()],Kn),Ln;const Pn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Zn;try{if(Hn&&A1&&_n!=="get"&&_n!=="head"&&(Zn=await T1(Nn,kn))!==0){let oi=new Request(vn,{method:"POST",body:kn,duplex:"half"}),ei;if(ue$4.isFormData(kn)&&(ei=oi.headers.get("content-type"))&&Nn.setContentType(ei),oi.body){const[fi,gi]=Zd(Zn,Wa(Qd(Hn)));kn=Jd(oi.body,ef,fi,gi)}}ue$4.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Ln=new Request(vn,{...In,signal:Bn,method:_n.toUpperCase(),headers:Nn.normalize().toJSON(),body:kn,duplex:"half",credentials:Jn?Dn:void 0});let Xn=await fetch(Ln);const mi=uu&&(qn==="stream"||qn==="response");if(uu&&(Qn||mi&&Pn)){const oi={};["status","statusText","headers"].forEach(yi=>{oi[yi]=Xn[yi]});const ei=ue$4.toFiniteNumber(Xn.headers.get("content-length")),[fi,gi]=Qn&&Zd(ei,Wa(Qd(Qn),!0))||[];Xn=new Response(Jd(Xn.body,ef,fi,()=>{gi&&gi(),Pn&&Pn()}),oi)}qn=qn||"text";let li=await Pa[ue$4.findKey(Pa,qn)||"text"](Xn,e);return!mi&&Pn&&Pn(),await new Promise((oi,ei)=>{jp(oi,ei,{data:li,headers:Fn.from(Xn.headers),status:Xn.status,statusText:Xn.statusText,config:e,request:Ln})})}catch(Jn){throw Pn&&Pn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new Ye$3("Network Error",Ye$3.ERR_NETWORK,e,Ln),{cause:Jn.cause||Jn}):Ye$3.from(Jn,Jn&&Jn.code,e,Ln)}}),hu={http:Vx,xhr:b1,fetch:M1};ue$4.forEach(hu,(e,vn)=>{if(e){try{Object.defineProperty(e,"name",{value:vn})}catch{}Object.defineProperty(e,"adapterName",{value:vn})}});const tf=e=>`- ${e}`,L1=e=>ue$4.isFunction(e)||e===null||e===!1,Zp={getAdapter:e=>{e=ue$4.isArray(e)?e:[e];const{length:vn}=e;let _n,kn;const Wn={};for(let zn=0;zn<vn;zn++){_n=e[zn];let Kn;if(kn=_n,!L1(_n)&&(kn=hu[(Kn=String(_n)).toLowerCase()],kn===void 0))throw new Ye$3(`Unknown adapter '${Kn}'`);if(kn)break;Wn[Kn||"#"+zn]=kn}if(!kn){const zn=Object.entries(Wn).map(([Qn,Hn])=>`adapter ${Qn} `+(Hn===!1?"is not supported by the environment":"is not available in the build"));let Kn=vn?zn.length>1?`since :
|
1378
|
+
`+zn.map(tf).join(`
|
1379
|
+
`):" "+tf(zn[0]):"as no adapter specified";throw new Ye$3("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return kn},adapters:hu};function xc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wo(null,e)}function nf(e){return xc(e),e.headers=Fn.from(e.headers),e.data=bc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||ks.adapter)(e).then(function(vn){return xc(e),vn.data=bc.call(e,e.transformResponse,vn),vn.headers=Fn.from(vn.headers),vn},function(vn){return Vp(vn)||(xc(e),vn&&vn.response&&(vn.response.data=bc.call(e,e.transformResponse,vn.response),vn.response.headers=Fn.from(vn.response.headers))),Promise.reject(vn)})}const Qp="1.7.9",Ya={};["object","boolean","number","function","string","symbol"].forEach((e,vn)=>{Ya[e]=function(_n){return typeof _n===e||"a"+(vn<1?"n ":" ")+e}});const rf={};Ya.transitional=function(e,vn,_n){function kn(Wn,zn){return"[Axios v"+Qp+"] Transitional option '"+Wn+"'"+zn+(_n?". "+_n:"")}return(Wn,zn,Kn)=>{if(e===!1)throw new Ye$3(kn(zn," has been removed"+(vn?" in "+vn:"")),Ye$3.ERR_DEPRECATED);return vn&&!rf[zn]&&(rf[zn]=!0,console.warn(kn(zn," has been deprecated since v"+vn+" and will be removed in the near future"))),e?e(Wn,zn,Kn):!0}},Ya.spelling=function(e){return(vn,_n)=>(console.warn(`${_n} is likely a misspelling of ${e}`),!0)};function R1(e,vn,_n){if(typeof e!="object")throw new Ye$3("options must be an object",Ye$3.ERR_BAD_OPTION_VALUE);const kn=Object.keys(e);let Wn=kn.length;for(;Wn-- >0;){const zn=kn[Wn],Kn=vn[zn];if(Kn){const Qn=e[zn],Hn=Qn===void 0||Kn(Qn,zn,e);if(Hn!==!0)throw new Ye$3("option "+zn+" must be "+Hn,Ye$3.ERR_BAD_OPTION_VALUE);continue}if(_n!==!0)throw new Ye$3("Unknown option "+zn,Ye$3.ERR_BAD_OPTION)}}const Da={assertOptions:R1,validators:Ya},ki=Da.validators;class Dr{constructor(vn){this.defaults=vn,this.interceptors={request:new qd,response:new qd}}async request(vn,_n){try{return await this._request(vn,_n)}catch(kn){if(kn instanceof Error){let Wn={};Error.captureStackTrace?Error.captureStackTrace(Wn):Wn=new Error;const zn=Wn.stack?Wn.stack.replace(/^.+\n/,""):"";try{kn.stack?zn&&!String(kn.stack).endsWith(zn.replace(/^.+\n.+\n/,""))&&(kn.stack+=`
|
1380
|
+
`+zn):kn.stack=zn}catch{}}throw kn}}_request(vn,_n){typeof vn=="string"?(_n=_n||{},_n.url=vn):_n=vn||{},_n=Fr(this.defaults,_n);const{transitional:kn,paramsSerializer:Wn,headers:zn}=_n;kn!==void 0&&Da.assertOptions(kn,{silentJSONParsing:ki.transitional(ki.boolean),forcedJSONParsing:ki.transitional(ki.boolean),clarifyTimeoutError:ki.transitional(ki.boolean)},!1),Wn!=null&&(ue$4.isFunction(Wn)?_n.paramsSerializer={serialize:Wn}:Da.assertOptions(Wn,{encode:ki.function,serialize:ki.function},!0)),Da.assertOptions(_n,{baseUrl:ki.spelling("baseURL"),withXsrfToken:ki.spelling("withXSRFToken")},!0),_n.method=(_n.method||this.defaults.method||"get").toLowerCase();let Kn=zn&&ue$4.merge(zn.common,zn[_n.method]);zn&&ue$4.forEach(["delete","get","head","post","put","patch","common"],Ln=>{delete zn[Ln]}),_n.headers=Fn.concat(Kn,zn);const Qn=[];let Hn=!0;this.interceptors.request.forEach(function(Ln){typeof Ln.runWhen=="function"&&Ln.runWhen(_n)===!1||(Hn=Hn&&Ln.synchronous,Qn.unshift(Ln.fulfilled,Ln.rejected))});const qn=[];this.interceptors.response.forEach(function(Ln){qn.push(Ln.fulfilled,Ln.rejected)});let Nn,Dn=0,In;if(!Hn){const Ln=[nf.bind(this),void 0];for(Ln.unshift.apply(Ln,Qn),Ln.push.apply(Ln,qn),In=Ln.length,Nn=Promise.resolve(_n);Dn<In;)Nn=Nn.then(Ln[Dn++],Ln[Dn++]);return Nn}In=Qn.length;let Bn=_n;for(Dn=0;Dn<In;){const Ln=Qn[Dn++],Pn=Qn[Dn++];try{Bn=Ln(Bn)}catch(Zn){Pn.call(this,Zn);break}}try{Nn=nf.call(this,Bn)}catch(Ln){return Promise.reject(Ln)}for(Dn=0,In=qn.length;Dn<In;)Nn=Nn.then(qn[Dn++],qn[Dn++]);return Nn}getUri(vn){vn=Fr(this.defaults,vn);const _n=Gp(vn.baseURL,vn.url);return zp(_n,vn.params,vn.paramsSerializer)}}ue$4.forEach(["delete","get","head","options"],function(e){Dr.prototype[e]=function(vn,_n){return this.request(Fr(_n||{},{method:e,url:vn,data:(_n||{}).data}))}}),ue$4.forEach(["post","put","patch"],function(e){function vn(_n){return function(kn,Wn,zn){return this.request(Fr(zn||{},{method:e,headers:_n?{"Content-Type":"multipart/form-data"}:{},url:kn,data:Wn}))}}Dr.prototype[e]=vn(),Dr.prototype[e+"Form"]=vn(!0)});class Tu{constructor(vn){if(typeof vn!="function")throw new TypeError("executor must be a function.");let _n;this.promise=new Promise(function(Wn){_n=Wn});const kn=this;this.promise.then(Wn=>{if(!kn._listeners)return;let zn=kn._listeners.length;for(;zn-- >0;)kn._listeners[zn](Wn);kn._listeners=null}),this.promise.then=Wn=>{let zn;const Kn=new Promise(Qn=>{kn.subscribe(Qn),zn=Qn}).then(Wn);return Kn.cancel=function(){kn.unsubscribe(zn)},Kn},vn(function(Wn,zn,Kn){kn.reason||(kn.reason=new wo(Wn,zn,Kn),_n(kn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(vn){if(this.reason){vn(this.reason);return}this._listeners?this._listeners.push(vn):this._listeners=[vn]}unsubscribe(vn){if(!this._listeners)return;const _n=this._listeners.indexOf(vn);_n!==-1&&this._listeners.splice(_n,1)}toAbortSignal(){const vn=new AbortController,_n=kn=>{vn.abort(kn)};return this.subscribe(_n),vn.signal.unsubscribe=()=>this.unsubscribe(_n),vn.signal}static source(){let vn;return{token:new Tu(function(_n){vn=_n}),cancel:vn}}}function E1(e){return function(vn){return e.apply(null,vn)}}function I1(e){return ue$4.isObject(e)&&e.isAxiosError===!0}const du={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(du).forEach(([e,vn])=>{du[vn]=e});function Xp(e){const vn=new Dr(e),_n=Mp(Dr.prototype.request,vn);return ue$4.extend(_n,Dr.prototype,vn,{allOwnKeys:!0}),ue$4.extend(_n,vn,null,{allOwnKeys:!0}),_n.create=function(kn){return Xp(Fr(e,kn))},_n}const Qt$1=Xp(ks);Qt$1.Axios=Dr,Qt$1.CanceledError=wo,Qt$1.CancelToken=Tu,Qt$1.isCancel=Vp,Qt$1.VERSION=Qp,Qt$1.toFormData=Ka,Qt$1.AxiosError=Ye$3,Qt$1.Cancel=Qt$1.CanceledError,Qt$1.all=function(e){return Promise.all(e)},Qt$1.spread=E1,Qt$1.isAxiosError=I1,Qt$1.mergeConfig=Fr,Qt$1.AxiosHeaders=Fn,Qt$1.formToJSON=e=>Up(ue$4.isHTMLForm(e)?new FormData(e):e),Qt$1.getAdapter=Zp.getAdapter,Qt$1.HttpStatusCode=du,Qt$1.default=Qt$1;const Mu=Qt$1.create({baseURL:location.origin,timeout:6e4,params:{}});Mu.interceptors.response.use(e=>e,e=>{var vn,_n,kn,Wn,zn,Kn,Qn,Hn,qn,Nn,Dn;if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(Ln){Ln&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let In=`HTTP ${e.response.status} - `;(vn=e.response)!=null&&vn.statusText&&(In+=`${e.response.statusText} `),(kn=(_n=e.response)==null?void 0:_n.config)!=null&&kn.data&&(In+=`${e.response.config.data} `),(zn=(Wn=e.response)==null?void 0:Wn.data)!=null&&zn.message?In+=`${e.response.data.message}`:(Qn=(Kn=e.response)==null?void 0:Kn.data)!=null&&Qn.exception?In+=`${e.response.data.exception}`:(Nn=(qn=(Hn=e.response)==null?void 0:Hn.data)==null?void 0:qn.error)!=null&&Nn.message?(e.response.data.error.class&&(In+=`${e.response.data.error.class} `),In+=`${e.response.data.error.message}`):In+=`${(Dn=e.response)==null?void 0:Dn.data}`;const{$cosmosNotify:Bn}=window;throw Bn&&Bn.serious({title:"Network error",body:In}),e}else throw e});const Ta=async function(e,vn,{data:_n,params:kn={},headers:Wn,noAuth:zn=!1,noScope:Kn=!1,onUploadProgress:Qn=!1}={}){if(!zn){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}Wn.Authorization=localStorage.openc3Token}return Wn.manual=!0,!Kn&&!kn.scope&&(kn.scope=window.openc3Scope),Mu({method:e,url:vn,data:_n,params:kn,headers:Wn,onUploadProgress:Qn})},fu={Accept:"application/json"},of={...fu,"Content-Type":"application/json"},Ok={get:function(e,{params:vn,headers:_n=fu,noScope:kn,noAuth:Wn,onUploadProgress:zn}={}){return Ta("get",e,{params:vn,headers:_n,noScope:kn,noAuth:Wn,onUploadProgress:zn})},put:function(e,{data:vn,params:_n,headers:kn=of,noScope:Wn,noAuth:zn,onUploadProgress:Kn}={}){return Ta("put",e,{data:vn,params:_n,headers:kn,noScope:Wn,noAuth:zn,onUploadProgress:Kn})},post:function(e,{data:vn,params:_n,headers:kn=of,noScope:Wn,noAuth:zn,onUploadProgress:Kn}={}){return Ta("post",e,{data:vn,params:_n,headers:kn,noScope:Wn,noAuth:zn,onUploadProgress:Kn})},delete:function(e,{params:vn,headers:_n=fu,noScope:kn,noAuth:Wn,onUploadProgress:zn}={}){return Ta("delete",e,{params:vn,headers:_n,noScope:kn,noAuth:Wn,onUploadProgress:zn})}};var Na={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Ft$1={log(...e){this.enabled&&(e.push(Date.now()),Na.logger.log("[ActionCable]",...e))}};const ps=()=>new Date().getTime(),Ma=e=>(ps()-e)/1e3;class Za{constructor(vn){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=vn,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=ps(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=ps(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=ps()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Ft$1.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=ps(),Ft$1.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:vn,reconnectionBackoffRate:_n}=this.constructor,kn=Math.pow(1+_n,Math.min(this.reconnectAttempts,10)),Wn=(this.reconnectAttempts===0?1:_n)*Math.random();return vn*1e3*kn*(1+Wn)}reconnectIfStale(){this.connectionIsStale()&&(Ft$1.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Ma(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Ft$1.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Ma(this.disconnectedAt)} s`):(Ft$1.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Ma(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Ma(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Ft$1.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Za.staleThreshold=6,Za.reconnectionBackoffRate=.15;var Jp={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:hs,protocols:pu}=Jp,O1=pu.slice(0,pu.length-1),sf=[].indexOf;class Lu{constructor(vn){this.open=this.open.bind(this),this.consumer=vn,this.subscriptions=this.consumer.subscriptions,this.monitor=new Za(this),this.disconnected=!0}send(vn){return this.isOpen()?(this.webSocket.send(JSON.stringify(vn)),!0):!1}open(){if(this.isActive())return Ft$1.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const vn=[...pu,...this.consumer.subprotocols||[]];return Ft$1.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${vn}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Na.WebSocket(this.consumer.url,vn),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:vn}={allowReconnect:!0}){if(vn||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Ft$1.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(vn){Ft$1.log("Failed to reopen WebSocket",vn)}finally{Ft$1.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 sf.call(O1,this.getProtocol())>=0}isState(...vn){return sf.call(vn,this.getState())>=0}getState(){if(this.webSocket){for(let vn in Na.WebSocket)if(Na.WebSocket[vn]===this.webSocket.readyState)return vn.toLowerCase()}return null}installEventHandlers(){for(let vn in this.events){const _n=this.events[vn].bind(this);this.webSocket[`on${vn}`]=_n}}uninstallEventHandlers(){for(let vn in this.events)this.webSocket[`on${vn}`]=function(){}}}Lu.reopenDelay=500,Lu.prototype.events={message(e){if(!this.isProtocolSupported())return;const{identifier:vn,message:_n,reason:kn,reconnect:Wn,type:zn}=JSON.parse(e.data);switch(zn){case hs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case hs.disconnect:return Ft$1.log(`Disconnecting. Reason: ${kn}`),this.close({allowReconnect:Wn});case hs.ping:return this.monitor.recordPing();case hs.confirmation:return this.subscriptions.confirmSubscription(vn),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(vn,"connected",{reconnected:!0})):this.subscriptions.notify(vn,"connected",{reconnected:!1});case hs.rejection:return this.subscriptions.reject(vn);default:return this.subscriptions.notify(vn,"received",_n)}},open(){if(Ft$1.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Ft$1.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(e){if(Ft$1.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Ft$1.log("WebSocket onerror event")}};const D1=function(e,vn){if(vn!=null)for(let _n in vn){const kn=vn[_n];e[_n]=kn}return e};class N1{constructor(vn,_n={},kn){this.consumer=vn,this.identifier=JSON.stringify(_n),D1(this,kn)}perform(vn,_n={}){return _n.action=vn,this.send(_n)}send(vn){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(vn)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class F1{constructor(vn){this.subscriptions=vn,this.pendingSubscriptions=[]}guarantee(vn){this.pendingSubscriptions.indexOf(vn)==-1?(Ft$1.log(`SubscriptionGuarantor guaranteeing ${vn.identifier}`),this.pendingSubscriptions.push(vn)):Ft$1.log(`SubscriptionGuarantor already guaranteeing ${vn.identifier}`),this.startGuaranteeing()}forget(vn){Ft$1.log(`SubscriptionGuarantor forgetting ${vn.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(_n=>_n!==vn)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(vn=>{Ft$1.log(`SubscriptionGuarantor resubscribing ${vn.identifier}`),this.subscriptions.subscribe(vn)})},500)}}class W1{constructor(vn){this.consumer=vn,this.guarantor=new F1(this),this.subscriptions=[]}create(vn,_n){const kn=vn,Wn=typeof kn=="object"?kn:{channel:kn},zn=new N1(this.consumer,Wn,_n);return this.add(zn)}add(vn){return this.subscriptions.push(vn),this.consumer.ensureActiveConnection(),this.notify(vn,"initialized"),this.subscribe(vn),vn}remove(vn){return this.forget(vn),this.findAll(vn.identifier).length||this.sendCommand(vn,"unsubscribe"),vn}reject(vn){return this.findAll(vn).map(_n=>(this.forget(_n),this.notify(_n,"rejected"),_n))}forget(vn){return this.guarantor.forget(vn),this.subscriptions=this.subscriptions.filter(_n=>_n!==vn),vn}findAll(vn){return this.subscriptions.filter(_n=>_n.identifier===vn)}reload(){return this.subscriptions.map(vn=>this.subscribe(vn))}notifyAll(vn,..._n){return this.subscriptions.map(kn=>this.notify(kn,vn,..._n))}notify(vn,_n,...kn){let Wn;return typeof vn=="string"?Wn=this.findAll(vn):Wn=[vn],Wn.map(zn=>typeof zn[_n]=="function"?zn[_n](...kn):void 0)}subscribe(vn){this.sendCommand(vn,"subscribe")&&this.guarantor.guarantee(vn)}confirmSubscription(vn){Ft$1.log(`Subscription confirmed ${vn}`),this.findAll(vn).map(_n=>this.guarantor.forget(_n))}sendCommand(vn,_n){const{identifier:kn}=vn;return this.consumer.send({command:_n,identifier:kn})}}class P1{constructor(vn){this._url=vn,this.subscriptions=new W1(this),this.connection=new Lu(this),this.subprotocols=[]}get url(){return B1(this._url)}send(vn){return this.connection.send(vn)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(vn){this.subprotocols=[...this.subprotocols,vn]}}function B1(e){if(typeof e=="function"&&(e=e()),e&&!/^wss?:/i.test(e)){const vn=document.createElement("a");return vn.href=e,vn.href=vn.href,vn.protocol=vn.protocol.replace("http","ws"),vn.href}else return e}function z1(e=H1("url")||Jp.default_mount_path){return new P1(e)}function H1(e){const vn=document.head.querySelector(`meta[name='action-cable-${e}']`);if(vn)return vn.getAttribute("content")}Za.staleThreshold=10;let Dk=class{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,vn,_n={},kn={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(Wn=>{if(Wn&&OpenC3Auth.setTokens(),this._cable==null){let zn=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=z1(zn)}return this._cable.subscriptions.create({channel:e,...kn},_n)})}recordPing(){this._cable.connection.monitor.recordPing()}};class af{constructor(vn,_n,kn="",Wn=""){this.keyword=vn.keyword,this.parameters=vn.parameters,this.filename=vn.filename,this.line=vn.line,this.lineNumber=vn.lineNumber,this.message=_n,this.usage=kn,this.url=Wn}}class Wk{constructor(){Lr(this,"id",1)}async exec(vn,_n,kn={},Wn={},zn=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return kn.scope=window.openc3Scope,Wn.manual=!0,(await Mu.post("/openc3-api/api",{jsonrpc:"2.0",method:vn,params:_n,id:this.id,keyword_params:kn},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...Wn},timeout:zn})).data.result}catch(Kn){let Qn=new Error;throw Kn.response?(Qn.name=Kn.response.data.error.data.class,Qn.message=Kn.response.data.error.data.message,Qn.object=Kn.response.data.error):Kn.request?(Qn.name="Request error",Qn.message="Request error, no response received"):Qn.name="Unknown error",Qn}}decode_openc3_type(vn){if(vn!==null&&typeof vn=="object"&&vn.json_class=="Float"&&vn.raw){if(vn.raw=="NaN")return NaN;if(vn.raw=="Infinity")return 1/0;if(vn.raw=="-Infinity")return-1/0}return null}encode_openc3_type(vn){return Number.isNaN(vn)?{json_class:"Float",raw:"NaN"}:vn==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:vn==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(vn=>{vn&&(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(vn){return this.exec("set_offline_access",[vn])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(vn,_n){return this.exec("map_target_to_interface",[vn,_n])}connect_interface(vn,..._n){return _n.length>0?this.exec("connect_interface",[vn,..._n]):this.exec("connect_interface",[vn])}disconnect_interface(vn){return this.exec("disconnect_interface",[vn])}interface_cmd(vn,_n,...kn){return this.exec("interface_cmd",[vn,_n,...kn])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(vn){return this.exec("connect_router",[vn])}disconnect_router(vn){return this.exec("disconnect_router",[vn])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(vn){return this.exec("get_tlm_cnts",[vn])}get_item(vn,_n,kn){return this.exec("get_item",[vn,_n,kn])}get_param(vn,_n,kn){return this.exec("get_param",[vn,_n,kn])}get_parameter(vn,_n,kn){return this.exec("get_param",[vn,_n,kn])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(vn){return this.exec("set_limits_set",[vn])}get_target(vn){return this.exec("get_target",[vn])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(vn,_n){return this.exec("get_tlm",[vn,_n])}get_telemetry(vn,_n){return this.exec("get_tlm",[vn,_n])}get_all_tlm(vn){return this.exec("get_all_tlm",[vn])}get_all_telemetry(vn){return this.exec("get_all_tlm",[vn])}get_all_tlm_names(vn,_n=!1){return this.exec("get_all_tlm_names",[vn],{hidden:_n})}get_all_telemetry_names(vn){return this.exec("get_all_tlm_names",[vn])}async get_tlm_packet(vn,_n,kn,Wn=30){const zn=await this.exec("get_tlm_packet",[vn,_n],{type:kn,stale_time:Wn});if(zn!=null){let Kn=zn.length,Qn=null;for(let Hn=0;Hn<Kn;Hn++)Qn=this.decode_openc3_type(zn[Hn][1]),Qn!==null&&(zn[Hn][1]=Qn)}return zn}get_packet_derived_items(vn,_n){return this.exec("get_packet_derived_items",[vn,_n])}get_tlm_buffer(vn,_n){return this.exec("get_tlm_buffer",[vn,_n])}async get_tlm_values(vn,_n=30,kn=null){let Wn={stale_time:_n};kn!==null&&(Wn.cache_timeout=kn);const zn=await this.exec("get_tlm_values",[vn],Wn,{},1e4);let Kn=zn[0].length,Qn=null;for(let Hn=0;Hn<Kn;Hn++)Qn=this.decode_openc3_type(zn[0][Hn]),Qn!==null&&(zn[0][Hn]=Qn);return zn}get_limits(vn,_n,kn){return this.exec("get_limits",[vn,_n,kn])}async tlm(vn,_n,kn,Wn="CONVERTED"){let zn=null;if(_n===void 0)zn=await this.exec("tlm",[vn]);else if(kn===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(_n))zn=await this.exec("tlm",[vn],{type:_n});else{let Qn=new Error;throw Qn.name="TypeError",Qn.message=`Invalid data type ${_n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,Qn}else zn=await this.exec("tlm",[vn,_n,kn],{type:Wn});let Kn=this.decode_openc3_type(zn);return Kn!==null&&(zn=Kn),zn}async inject_tlm(vn,_n,kn=null,Wn="CONVERTED"){data=await this.exec("inject_tlm",[vn,_n,kn],{type:Wn})}set_tlm(vn,_n,kn,Wn){return this.exec("set_tlm",[vn,_n,kn],{type:Wn})}override_tlm(vn,_n,kn,Wn){return this.exec("override_tlm",[vn,_n,kn],{type:Wn})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(vn,_n,kn,Wn){return this.exec("normalize_tlm",[vn,_n,kn],{type:Wn})}get_all_cmds(vn){return this.exec("get_all_cmds",[vn])}get_all_commands(vn){return this.exec("get_all_cmds",[vn])}get_all_cmd_names(vn,_n=!1){return this.exec("get_all_cmd_names",[vn],{hidden:_n})}get_all_command_names(vn){return this.exec("get_all_cmd_names",[vn])}get_cmd(vn,_n){return this.exec("get_cmd",[vn,_n])}get_command(vn,_n){return this.exec("get_cmd",[vn,_n])}get_cmd_cnts(vn){return this.exec("get_cmd_cnts",[vn])}get_cmd_value(vn,_n,kn,Wn="CONVERTED"){return this.exec("get_cmd_value",[vn,_n,kn,Wn])}get_cmd_buffer(vn,_n){return this.exec("get_cmd_buffer",[vn,_n])}_cmd(vn,_n,kn,Wn,zn){let Kn=null;for(let Qn in Wn)Object.prototype.hasOwnProperty.call(Wn,Qn)&&(Kn=this.encode_openc3_type(Wn[Qn]),Kn!==null&&(Wn[Qn]=Kn));return this.exec(vn,[_n,kn,Wn],{},zn)}get_cmd_hazardous(vn,_n,kn,Wn={}){return _n===void 0?this.exec("get_cmd_hazardous",vn,{},Wn):this._cmd("get_cmd_hazardous",vn,_n,kn,Wn)}cmd(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd",vn,{},Wn):this._cmd("cmd",vn,_n,kn,Wn)}cmd_no_range_check(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_no_range_check",vn,{},Wn):this._cmd("cmd_no_range_check",vn,_n,kn,Wn)}cmd_raw(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_raw",vn,{},Wn):this._cmd("cmd_raw",vn,_n,kn,Wn)}cmd_raw_no_range_check(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_raw_no_range_check",vn,{},Wn):this._cmd("cmd_raw_no_range_check",vn,_n,kn,Wn)}cmd_no_hazardous_check(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_no_hazardous_check",vn,{},Wn):this._cmd("cmd_no_hazardous_check",vn,_n,kn,Wn)}cmd_no_checks(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_no_checks",vn,{},Wn):this._cmd("cmd_no_checks",vn,_n,kn,Wn)}cmd_raw_no_hazardous_check(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_raw_no_hazardous_check",vn,{},Wn):this._cmd("cmd_raw_no_hazardous_check",vn,_n,kn,Wn)}cmd_raw_no_checks(vn,_n,kn,Wn={}){return _n===void 0?this.exec("cmd_raw_no_checks",vn,{},Wn):this._cmd("cmd_raw_no_checks",vn,_n,kn,Wn)}build_cmd(vn,_n,kn){return _n===void 0?this.exec("build_cmd",vn):this._cmd("build_cmd",vn,_n,kn)}build_command(vn,_n,kn){return _n===void 0?this.exec("build_cmd",vn):this._cmd("build_cmd",vn,_n,kn)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(vn,_n){return this.exec("send_raw",[vn,_n])}list_configs(vn){return this.exec("list_configs",[vn])}load_config(vn,_n){return this.exec("load_config",[vn,_n])}save_config(vn,_n,kn){return this.exec("save_config",[vn,_n,kn])}delete_config(vn,_n){return this.exec("delete_config",[vn,_n])}enable_limits(vn,_n,kn){return this.exec("enable_limits",[vn,_n,kn])}disable_limits(vn,_n,kn){return this.exec("disable_limits",[vn,_n,kn])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(vn){return this.exec("get_overall_limits_state",[vn])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(vn){return this.exec("get_setting",[vn])}get_settings(vn){return this.exec("get_settings",vn)}set_setting(vn,_n){return this.exec("set_setting",[vn,_n])}save_setting(vn,_n){return this.exec("set_setting",[vn,_n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(vn){if(window.isSecureContext){const _n=new TextEncoder().encode(vn),kn=await crypto.subtle.digest("SHA-256",_n),Wn=new Uint8Array(kn);return Array.from(Wn).map(zn=>zn.toString(16).padStart(2,"0")).join("")}}}const U1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let e=0;e<this.currentPackets.length;e++)if(this.currentPackets[e].mode==="RAW")return!0;return!1},hasDecom:function(){for(let e=0;e<this.currentPackets.length;e++)if(this.currentPackets[e].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(e){this.$emit("config",e)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(e){this.latestData=e}}};var gs={exports:{}};/**
|
3
1381
|
* @license
|
4
1382
|
* Lodash <https://lodash.com/>
|
5
1383
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
6
1384
|
* Released under MIT license <https://lodash.com/license>
|
7
1385
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
8
1386
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
9
|
-
*/t=n.nmd(t),function(){var i,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,d=2,v=4,g=1,m=2,y=1,w=2,_=4,b=8,x=16,A=32,S=64,C=128,k=256,O=512,E=30,P="...",R=800,T=16,j=1,M=2,L=3,I=1/0,D=9007199254740991,U=17976931348623157e292,$=NaN,W=4294967295,N=W-1,z=W>>>1,B=[["ary",C],["bind",y],["bindKey",w],["curry",b],["curryRight",x],["flip",O],["partial",A],["partialRight",S],["rearg",k]],q="[object Arguments]",F="[object Array]",H="[object AsyncFunction]",Q="[object Boolean]",Y="[object Date]",G="[object DOMException]",X="[object Error]",V="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",K="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",ot="[object Set]",at="[object String]",ut="[object Symbol]",st="[object Undefined]",ct="[object WeakMap]",lt="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",pt="[object Float32Array]",dt="[object Float64Array]",vt="[object Int8Array]",gt="[object Int16Array]",mt="[object Int32Array]",yt="[object Uint8Array]",wt="[object Uint8ClampedArray]",_t="[object Uint16Array]",bt="[object Uint32Array]",xt=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ct=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,Ot=RegExp(Ct.source),Et=RegExp(kt.source),Pt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,It=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(It.source),Ut=/^\s+/,$t=/\s/,Wt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Bt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qt=/[()=,{}\[\]\/\s]/,Ft=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Jt=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",oe=ne+re+ie,ae="\\u2700-\\u27bf",ue="a-z\\xdf-\\xf6\\xf8-\\xff",se="\\xac\\xb1\\xd7\\xf7",ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",le="\\u2000-\\u206f",fe=" \\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",he="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",de=se+ce+le+fe,ve="['’]",ge="["+ee+"]",me="["+de+"]",ye="["+oe+"]",we="\\d+",_e="["+ae+"]",be="["+ue+"]",xe="[^"+ee+de+we+ae+ue+he+"]",Ae="\\ud83c[\\udffb-\\udfff]",Se="(?:"+ye+"|"+Ae+")",Ce="[^"+ee+"]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="["+he+"]",Pe="\\u200d",Re="(?:"+be+"|"+xe+")",Te="(?:"+Ee+"|"+xe+")",je="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Me="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Le=Se+"?",Ie="["+pe+"]?",De="(?:"+Pe+"(?:"+[Ce,ke,Oe].join("|")+")"+Ie+Le+")*",Ue="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=Ie+Le+De,Ne="(?:"+[_e,ke,Oe].join("|")+")"+We,ze="(?:"+[Ce+ye+"?",ye,ke,Oe,ge].join("|")+")",Be=RegExp(ve,"g"),qe=RegExp(ye,"g"),Fe=RegExp(Ae+"(?="+Ae+")|"+ze+We,"g"),He=RegExp([Ee+"?"+be+"+"+je+"(?="+[me,Ee,"$"].join("|")+")",Te+"+"+Me+"(?="+[me,Ee+Re,"$"].join("|")+")",Ee+"?"+Re+"+"+je,Ee+"+"+Me,$e,Ue,we,Ne].join("|"),"g"),Qe=RegExp("["+Pe+ee+oe+pe+"]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ge=["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"],Xe=-1,Ve={};Ve[pt]=Ve[dt]=Ve[vt]=Ve[gt]=Ve[mt]=Ve[yt]=Ve[wt]=Ve[_t]=Ve[bt]=!0,Ve[q]=Ve[F]=Ve[ft]=Ve[Q]=Ve[ht]=Ve[Y]=Ve[X]=Ve[V]=Ve[Z]=Ve[K]=Ve[et]=Ve[it]=Ve[ot]=Ve[at]=Ve[ct]=!1;var Je={};Je[q]=Je[F]=Je[ft]=Je[ht]=Je[Q]=Je[Y]=Je[pt]=Je[dt]=Je[vt]=Je[gt]=Je[mt]=Je[Z]=Je[K]=Je[et]=Je[it]=Je[ot]=Je[at]=Je[ut]=Je[yt]=Je[wt]=Je[_t]=Je[bt]=!0,Je[X]=Je[V]=Je[ct]=!1;var Ze={À:"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"},Ke={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,un=on||an||Function("return this")(),sn=e&&!e.nodeType&&e,cn=sn&&t&&!t.nodeType&&t,ln=cn&&cn.exports===sn,fn=ln&&on.process,hn=function(){try{var t=cn&&cn.require&&cn.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),pn=hn&&hn.isArrayBuffer,dn=hn&&hn.isDate,vn=hn&&hn.isMap,gn=hn&&hn.isRegExp,mn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function wn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _n(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}function bn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function xn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function An(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function Sn(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Cn(t,e){var n=null==t?0:t.length;return!!n&&Un(t,e,0)>-1}function kn(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function On(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function En(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function Pn(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Rn(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function Tn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var jn=zn("length");function Mn(t){return t.split("")}function Ln(t){return t.match(Bt)||[]}function In(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Dn(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function Un(t,e,n){return e===e?pr(t,e,n):Dn(t,Wn,n)}function $n(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Wn(t){return t!==t}function Nn(t,e){var n=null==t?0:t.length;return n?Hn(t,e)/n:$}function zn(t){return function(e){return null==e?i:e[t]}}function Bn(t){return function(e){return null==t?i:t[e]}}function qn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Fn(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Hn(t,e){var n,r=-1,o=t.length;while(++r<o){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function Qn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Yn(t,e){return On(e,(function(e){return[e,t[e]]}))}function Gn(t){return t?t.slice(0,mr(t)+1).replace(Ut,""):t}function Xn(t){return function(e){return t(e)}}function Vn(t,e){return On(e,(function(e){return t[e]}))}function Jn(t,e){return t.has(e)}function Zn(t,e){var n=-1,r=t.length;while(++n<r&&Un(e,t[n],0)>-1);return n}function Kn(t,e){var n=t.length;while(n--&&Un(e,t[n],0)>-1);return n}function tr(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var er=Bn(Ze),nr=Bn(Ke);function rr(t){return"\\"+en[t]}function ir(t,e){return null==t?i:t[e]}function or(t){return Qe.test(t)}function ar(t){return Ye.test(t)}function ur(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function sr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function cr(t,e){return function(n){return t(e(n))}}function lr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n];a!==e&&a!==h||(t[n]=h,o[i++]=n)}return o}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function pr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function dr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function vr(t){return or(t)?wr(t):jn(t)}function gr(t){return or(t)?_r(t):Mn(t)}function mr(t){var e=t.length;while(e--&&$t.test(t.charAt(e)));return e}var yr=Bn(tn);function wr(t){var e=Fe.lastIndex=0;while(Fe.test(t))++e;return e}function _r(t){return t.match(Fe)||[]}function br(t){return t.match(He)||[]}var xr=function t(e){e=null==e?un:Ar.defaults(un.Object(),e,Ar.pick(un,Ge));var n=e.Array,r=e.Date,$t=e.Error,Bt=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ae=n.prototype,ue=Bt.prototype,se=ne.prototype,ce=e["__core-js_shared__"],le=ue.toString,fe=se.hasOwnProperty,he=0,pe=function(){var t=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=se.toString,ve=le.call(ne),ge=un._,me=re("^"+le.call(fe).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=ln?e.Buffer:i,we=e.Symbol,_e=e.Uint8Array,be=ye?ye.allocUnsafe:i,xe=cr(ne.getPrototypeOf,ne),Ae=ne.create,Se=se.propertyIsEnumerable,Ce=ae.splice,ke=we?we.isConcatSpreadable:i,Oe=we?we.iterator:i,Ee=we?we.toStringTag:i,Pe=function(){try{var t=Ya(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Re=e.clearTimeout!==un.clearTimeout&&e.clearTimeout,Te=r&&r.now!==un.Date.now&&r.now,je=e.setTimeout!==un.setTimeout&&e.setTimeout,Me=ee.ceil,Le=ee.floor,Ie=ne.getOwnPropertySymbols,De=ye?ye.isBuffer:i,Ue=e.isFinite,$e=ae.join,We=cr(ne.keys,ne),Ne=ee.max,ze=ee.min,Fe=r.now,He=e.parseInt,Qe=ee.random,Ye=ae.reverse,Ze=Ya(e,"DataView"),Ke=Ya(e,"Map"),tn=Ya(e,"Promise"),en=Ya(e,"Set"),on=Ya(e,"WeakMap"),an=Ya(ne,"create"),sn=on&&new on,cn={},fn=ju(Ze),hn=ju(Ke),jn=ju(tn),Mn=ju(en),Bn=ju(on),pr=we?we.prototype:i,wr=pr?pr.valueOf:i,_r=pr?pr.toString:i;function xr(t){if(Cl(t)&&!sl(t)&&!(t instanceof Or)){if(t instanceof kr)return t;if(fe.call(t,"__wrapped__"))return Lu(t)}return new kr(t)}var Sr=function(){function t(){}return function(e){if(!Sl(e))return{};if(Ae)return Ae(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Cr(){}function kr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Or(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function Er(){var t=new Or(this.__wrapped__);return t.__actions__=ia(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ia(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ia(this.__views__),t}function Pr(){if(this.__filtered__){var t=new Or(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Rr(){var t=this.__wrapped__.value(),e=this.__dir__,n=sl(t),r=e<0,i=n?t.length:0,o=Za(0,i,this.__views__),a=o.start,u=o.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,h=0,p=ze(s,this.__takeCount__);if(!n||!r&&i==s&&p==s)return Wo(t,this.__actions__);var d=[];t:while(s--&&h<p){c+=e;var v=-1,g=t[c];while(++v<f){var m=l[v],y=m.iteratee,w=m.type,_=y(g);if(w==M)g=_;else if(!_){if(w==j)continue t;break t}}d[h++]=g}return d}function Tr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function jr(){this.__data__=an?an(null):{},this.size=0}function Mr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Lr(t){var e=this.__data__;if(an){var n=e[t];return n===l?i:n}return fe.call(e,t)?e[t]:i}function Ir(t){var e=this.__data__;return an?e[t]!==i:fe.call(e,t)}function Dr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&e===i?l:e,this}function Ur(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function $r(){this.__data__=[],this.size=0}function Wr(t){var e=this.__data__,n=li(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ce.call(e,n,1),--this.size,!0}function Nr(t){var e=this.__data__,n=li(e,t);return n<0?i:e[n][1]}function zr(t){return li(this.__data__,t)>-1}function Br(t,e){var n=this.__data__,r=li(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function qr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Fr(){this.size=0,this.__data__={hash:new Tr,map:new(Ke||Ur),string:new Tr}}function Hr(t){var e=Ha(this,t)["delete"](t);return this.size-=e?1:0,e}function Qr(t){return Ha(this,t).get(t)}function Yr(t){return Ha(this,t).has(t)}function Gr(t,e){var n=Ha(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Xr(t){var e=-1,n=null==t?0:t.length;this.__data__=new qr;while(++e<n)this.add(t[e])}function Vr(t){return this.__data__.set(t,l),this}function Jr(t){return this.__data__.has(t)}function Zr(t){var e=this.__data__=new Ur(t);this.size=e.size}function Kr(){this.__data__=new Ur,this.size=0}function ti(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function ei(t){return this.__data__.get(t)}function ni(t){return this.__data__.has(t)}function ri(t,e){var n=this.__data__;if(n instanceof Ur){var r=n.__data__;if(!Ke||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qr(r)}return n.set(t,e),this.size=n.size,this}function ii(t,e){var n=sl(t),r=!n&&ul(t),i=!n&&!r&&pl(t),o=!n&&!r&&!i&&Nl(t),a=n||r||i||o,u=a?Qn(t.length,ie):[],s=u.length;for(var c in t)!e&&!fe.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||au(c,s))||u.push(c);return u}function oi(t){var e=t.length;return e?t[yo(0,e-1)]:i}function ai(t,e){return Pu(ia(t),gi(e,0,t.length))}function ui(t){return Pu(ia(t))}function si(t,e,n){(n!==i&&!il(t[e],n)||n===i&&!(e in t))&&di(t,e,n)}function ci(t,e,n){var r=t[e];fe.call(t,e)&&il(r,n)&&(n!==i||e in t)||di(t,e,n)}function li(t,e){var n=t.length;while(n--)if(il(t[n][0],e))return n;return-1}function fi(t,e,n,r){return xi(t,(function(t,i,o){e(r,t,n(t),o)})),r}function hi(t,e){return t&&oa(e,Af(e),t)}function pi(t,e){return t&&oa(e,Sf(e),t)}function di(t,e,n){"__proto__"==e&&Pe?Pe(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function vi(t,e){var r=-1,o=e.length,a=n(o),u=null==t;while(++r<o)a[r]=u?i:mf(t,e[r]);return a}function gi(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function mi(t,e,n,r,o,a){var u,s=e&p,c=e&d,l=e&v;if(n&&(u=o?n(t,r,o,a):n(t)),u!==i)return u;if(!Sl(t))return t;var f=sl(t);if(f){if(u=eu(t),!s)return ia(t,u)}else{var h=Ja(t),g=h==V||h==J;if(pl(t))return Go(t,s);if(h==et||h==q||g&&!o){if(u=c||g?{}:nu(t),!s)return c?ua(t,pi(u,t)):aa(t,hi(u,t))}else{if(!Je[h])return o?t:{};u=ru(t,h,s)}}a||(a=new Zr);var m=a.get(t);if(m)return m;a.set(t,u),Ul(t)?t.forEach((function(r){u.add(mi(r,e,n,r,t,a))})):kl(t)&&t.forEach((function(r,i){u.set(i,mi(r,e,n,i,t,a))}));var y=l?c?Na:Wa:c?Sf:Af,w=f?i:y(t);return bn(w||t,(function(r,i){w&&(i=r,r=t[i]),ci(u,i,mi(r,e,n,i,t,a))})),u}function yi(t){var e=Af(t);return function(n){return wi(n,t,e)}}function wi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var o=n[r],a=e[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function _i(t,e,n){if("function"!=typeof t)throw new oe(s);return Cu((function(){t.apply(i,n)}),e)}function bi(t,e,n,r){var i=-1,o=Cn,u=!0,s=t.length,c=[],l=e.length;if(!s)return c;n&&(e=On(e,Xn(n))),r?(o=kn,u=!1):e.length>=a&&(o=Jn,u=!1,e=new Xr(e));t:while(++i<s){var f=t[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,u&&h===h){var p=l;while(p--)if(e[p]===h)continue t;c.push(f)}else o(e,h,r)||c.push(f)}return c}xr.templateSettings={escape:Pt,evaluate:Rt,interpolate:Tt,variable:"",imports:{_:xr}},xr.prototype=Cr.prototype,xr.prototype.constructor=xr,kr.prototype=Sr(Cr.prototype),kr.prototype.constructor=kr,Or.prototype=Sr(Cr.prototype),Or.prototype.constructor=Or,Tr.prototype.clear=jr,Tr.prototype["delete"]=Mr,Tr.prototype.get=Lr,Tr.prototype.has=Ir,Tr.prototype.set=Dr,Ur.prototype.clear=$r,Ur.prototype["delete"]=Wr,Ur.prototype.get=Nr,Ur.prototype.has=zr,Ur.prototype.set=Br,qr.prototype.clear=Fr,qr.prototype["delete"]=Hr,qr.prototype.get=Qr,qr.prototype.has=Yr,qr.prototype.set=Gr,Xr.prototype.add=Xr.prototype.push=Vr,Xr.prototype.has=Jr,Zr.prototype.clear=Kr,Zr.prototype["delete"]=ti,Zr.prototype.get=ei,Zr.prototype.has=ni,Zr.prototype.set=ri;var xi=la(Ti),Ai=la(ji,!0);function Si(t,e){var n=!0;return xi(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function Ci(t,e,n){var r=-1,o=t.length;while(++r<o){var a=t[r],u=e(a);if(null!=u&&(s===i?u===u&&!Wl(u):n(u,s)))var s=u,c=a}return c}function ki(t,e,n,r){var o=t.length;n=Gl(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:Gl(r),r<0&&(r+=o),r=n>r?0:Xl(r);while(n<r)t[n++]=e;return t}function Oi(t,e){var n=[];return xi(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Ei(t,e,n,r,i){var o=-1,a=t.length;n||(n=ou),i||(i=[]);while(++o<a){var u=t[o];e>0&&n(u)?e>1?Ei(u,e-1,n,r,i):En(i,u):r||(i[i.length]=u)}return i}var Pi=fa(),Ri=fa(!0);function Ti(t,e){return t&&Pi(t,e,Af)}function ji(t,e){return t&&Ri(t,e,Af)}function Mi(t,e){return Sn(e,(function(e){return bl(t[e])}))}function Li(t,e){e=Fo(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Tu(e[n++])];return n&&n==r?t:i}function Ii(t,e,n){var r=e(t);return sl(t)?r:En(r,n(t))}function Di(t){return null==t?t===i?st:tt:Ee&&Ee in ne(t)?Ga(t):wu(t)}function Ui(t,e){return t>e}function $i(t,e){return null!=t&&fe.call(t,e)}function Wi(t,e){return null!=t&&e in ne(t)}function Ni(t,e,n){return t>=ze(e,n)&&t<Ne(e,n)}function zi(t,e,r){var o=r?kn:Cn,a=t[0].length,u=t.length,s=u,c=n(u),l=1/0,f=[];while(s--){var h=t[s];s&&e&&(h=On(h,Xn(e))),l=ze(h.length,l),c[s]=!r&&(e||a>=120&&h.length>=120)?new Xr(s&&h):i}h=t[0];var p=-1,d=c[0];t:while(++p<a&&f.length<l){var v=h[p],g=e?e(v):v;if(v=r||0!==v?v:0,!(d?Jn(d,g):o(f,g,r))){s=u;while(--s){var m=c[s];if(!(m?Jn(m,g):o(t[s],g,r)))continue t}d&&d.push(g),f.push(v)}}return f}function Bi(t,e,n,r){return Ti(t,(function(t,i,o){e(r,n(t),i,o)})),r}function qi(t,e,n){e=Fo(e,t),t=bu(t,e);var r=null==t?t:t[Tu(os(e))];return null==r?i:wn(r,t,n)}function Fi(t){return Cl(t)&&Di(t)==q}function Hi(t){return Cl(t)&&Di(t)==ft}function Qi(t){return Cl(t)&&Di(t)==Y}function Yi(t,e,n,r,i){return t===e||(null==t||null==e||!Cl(t)&&!Cl(e)?t!==t&&e!==e:Gi(t,e,n,r,Yi,i))}function Gi(t,e,n,r,i,o){var a=sl(t),u=sl(e),s=a?F:Ja(t),c=u?F:Ja(e);s=s==q?et:s,c=c==q?et:c;var l=s==et,f=c==et,h=s==c;if(h&&pl(t)){if(!pl(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new Zr),a||Nl(t)?Ia(t,e,n,r,i,o):Da(t,e,s,n,r,i,o);if(!(n&g)){var p=l&&fe.call(t,"__wrapped__"),d=f&&fe.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,m=d?e.value():e;return o||(o=new Zr),i(v,m,n,r,o)}}return!!h&&(o||(o=new Zr),Ua(t,e,n,r,i,o))}function Xi(t){return Cl(t)&&Ja(t)==Z}function Vi(t,e,n,r){var o=n.length,a=o,u=!r;if(null==t)return!a;t=ne(t);while(o--){var s=n[o];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++o<a){s=n[o];var c=s[0],l=t[c],f=s[1];if(u&&s[2]){if(l===i&&!(c in t))return!1}else{var h=new Zr;if(r)var p=r(l,f,c,t,e,h);if(!(p===i?Yi(f,l,g|m,r,h):p))return!1}}return!0}function Ji(t){if(!Sl(t)||fu(t))return!1;var e=bl(t)?me:Xt;return e.test(ju(t))}function Zi(t){return Cl(t)&&Di(t)==it}function Ki(t){return Cl(t)&&Ja(t)==ot}function to(t){return Cl(t)&&Al(t.length)&&!!Ve[Di(t)]}function eo(t){return"function"==typeof t?t:null==t?Th:"object"==typeof t?sl(t)?uo(t[0],t[1]):ao(t):Fh(t)}function no(t){if(!pu(t))return We(t);var e=[];for(var n in ne(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ro(t){if(!Sl(t))return yu(t);var e=pu(t),n=[];for(var r in t)("constructor"!=r||!e&&fe.call(t,r))&&n.push(r);return n}function io(t,e){return t<e}function oo(t,e){var r=-1,i=ll(t)?n(t.length):[];return xi(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function ao(t){var e=Qa(t);return 1==e.length&&e[0][2]?vu(e[0][0],e[0][1]):function(n){return n===t||Vi(n,t,e)}}function uo(t,e){return su(t)&&du(e)?vu(Tu(t),e):function(n){var r=mf(n,t);return r===i&&r===e?wf(n,t):Yi(e,r,g|m)}}function so(t,e,n,r,o){t!==e&&Pi(e,(function(a,u){if(o||(o=new Zr),Sl(a))co(t,e,u,n,so,r,o);else{var s=r?r(Au(t,u),a,u+"",t,e,o):i;s===i&&(s=a),si(t,u,s)}}),Sf)}function co(t,e,n,r,o,a,u){var s=Au(t,n),c=Au(e,n),l=u.get(c);if(l)si(t,n,l);else{var f=a?a(s,c,n+"",t,e,u):i,h=f===i;if(h){var p=sl(c),d=!p&&pl(c),v=!p&&!d&&Nl(c);f=c,p||d||v?sl(s)?f=s:fl(s)?f=ia(s):d?(h=!1,f=Go(c,!0)):v?(h=!1,f=Ko(c,!0)):f=[]:Ll(c)||ul(c)?(f=s,ul(s)?f=Jl(s):Sl(s)&&!bl(s)||(f=nu(c))):h=!1}h&&(u.set(c,f),o(f,c,r,a,u),u["delete"](c)),si(t,n,f)}}function lo(t,e){var n=t.length;if(n)return e+=e<0?n:0,au(e,n)?t[e]:i}function fo(t,e,n){e=e.length?On(e,(function(t){return sl(t)?function(e){return Li(e,1===t.length?t[0]:t)}:t})):[Th];var r=-1;e=On(e,Xn(Fa()));var i=oo(t,(function(t,n,i){var o=On(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Fn(i,(function(t,e){return ea(t,e,n)}))}function ho(t,e){return po(t,e,(function(e,n){return wf(t,n)}))}function po(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var a=e[r],u=Li(t,a);n(u,a)&&So(o,Fo(a,t),u)}return o}function vo(t){return function(e){return Li(e,t)}}function go(t,e,n,r){var i=r?$n:Un,o=-1,a=e.length,u=t;t===e&&(e=ia(e)),n&&(u=On(t,Xn(n)));while(++o<a){var s=0,c=e[o],l=n?n(c):c;while((s=i(u,l,s,r))>-1)u!==t&&Ce.call(u,s,1),Ce.call(t,s,1)}return t}function mo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;au(i)?Ce.call(t,i,1):Do(t,i)}}return t}function yo(t,e){return t+Le(Qe()*(e-t+1))}function wo(t,e,r,i){var o=-1,a=Ne(Me((e-t)/(r||1)),0),u=n(a);while(a--)u[i?a:++o]=t,t+=r;return u}function _o(t,e){var n="";if(!t||e<1||e>D)return n;do{e%2&&(n+=t),e=Le(e/2),e&&(t+=t)}while(e);return n}function bo(t,e){return ku(_u(t,e,Th),t+"")}function xo(t){return oi(Bf(t))}function Ao(t,e){var n=Bf(t);return Pu(n,gi(e,0,n.length))}function So(t,e,n,r){if(!Sl(t))return t;e=Fo(e,t);var o=-1,a=e.length,u=a-1,s=t;while(null!=s&&++o<a){var c=Tu(e[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var f=s[c];l=r?r(f,c,s):i,l===i&&(l=Sl(f)?f:au(e[o+1])?[]:{})}ci(s,c,l),s=s[c]}return t}var Co=sn?function(t,e){return sn.set(t,e),t}:Th,ko=Pe?function(t,e){return Pe(t,"toString",{configurable:!0,enumerable:!1,value:Oh(e),writable:!0})}:Th;function Oo(t){return Pu(Bf(t))}function Eo(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var a=n(o);while(++i<o)a[i]=t[i+e];return a}function Po(t,e){var n;return xi(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Ro(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=z){while(r<i){var o=r+i>>>1,a=t[o];null!==a&&!Wl(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return To(t,e,Th,n)}function To(t,e,n,r){var o=0,a=null==t?0:t.length;if(0===a)return 0;e=n(e);var u=e!==e,s=null===e,c=Wl(e),l=e===i;while(o<a){var f=Le((o+a)/2),h=n(t[f]),p=h!==i,d=null===h,v=h===h,g=Wl(h);if(u)var m=r||v;else m=l?v&&(r||p):s?v&&p&&(r||!d):c?v&&p&&!d&&(r||!g):!d&&!g&&(r?h<=e:h<e);m?o=f+1:a=f}return ze(a,N)}function jo(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n],u=e?e(a):a;if(!n||!il(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function Mo(t){return"number"==typeof t?t:Wl(t)?$:+t}function Lo(t){if("string"==typeof t)return t;if(sl(t))return On(t,Lo)+"";if(Wl(t))return _r?_r.call(t):"";var e=t+"";return"0"==e&&1/t==-I?"-0":e}function Io(t,e,n){var r=-1,i=Cn,o=t.length,u=!0,s=[],c=s;if(n)u=!1,i=kn;else if(o>=a){var l=e?null:Pa(t);if(l)return fr(l);u=!1,i=Jn,c=new Xr}else c=e?[]:s;t:while(++r<o){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,u&&h===h){var p=c.length;while(p--)if(c[p]===h)continue t;e&&c.push(h),s.push(f)}else i(c,h,n)||(c!==s&&c.push(h),s.push(f))}return s}function Do(t,e){return e=Fo(e,t),t=bu(t,e),null==t||delete t[Tu(os(e))]}function Uo(t,e,n,r){return So(t,e,n(Li(t,e)),r)}function $o(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Eo(t,r?0:o,r?o+1:i):Eo(t,r?o+1:0,r?i:o)}function Wo(t,e){var n=t;return n instanceof Or&&(n=n.value()),Pn(e,(function(t,e){return e.func.apply(e.thisArg,En([t],e.args))}),n)}function No(t,e,r){var i=t.length;if(i<2)return i?Io(t[0]):[];var o=-1,a=n(i);while(++o<i){var u=t[o],s=-1;while(++s<i)s!=o&&(a[o]=bi(a[o]||u,t[s],e,r))}return Io(Ei(a,1),e,r)}function zo(t,e,n){var r=-1,o=t.length,a=e.length,u={};while(++r<o){var s=r<a?e[r]:i;n(u,t[r],s)}return u}function Bo(t){return fl(t)?t:[]}function qo(t){return"function"==typeof t?t:Th}function Fo(t,e){return sl(t)?t:su(t,e)?[t]:Ru(Kl(t))}var Ho=bo;function Qo(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:Eo(t,e,n)}var Yo=Re||function(t){return un.clearTimeout(t)};function Go(t,e){if(e)return t.slice();var n=t.length,r=be?be(n):new t.constructor(n);return t.copy(r),r}function Xo(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function Vo(t,e){var n=e?Xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Jo(t){var e=new t.constructor(t.source,Qt.exec(t));return e.lastIndex=t.lastIndex,e}function Zo(t){return wr?ne(wr.call(t)):{}}function Ko(t,e){var n=e?Xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ta(t,e){if(t!==e){var n=t!==i,r=null===t,o=t===t,a=Wl(t),u=e!==i,s=null===e,c=e===e,l=Wl(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&t<e||l&&n&&o&&!r&&!a||s&&n&&o||!u&&o||!c)return-1}return 0}function ea(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;while(++r<a){var s=ta(i[r],o[r]);if(s){if(r>=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}function na(t,e,r,i){var o=-1,a=t.length,u=r.length,s=-1,c=e.length,l=Ne(a-u,0),f=n(c+l),h=!i;while(++s<c)f[s]=e[s];while(++o<u)(h||o<a)&&(f[r[o]]=t[o]);while(l--)f[s++]=t[o++];return f}function ra(t,e,r,i){var o=-1,a=t.length,u=-1,s=r.length,c=-1,l=e.length,f=Ne(a-s,0),h=n(f+l),p=!i;while(++o<f)h[o]=t[o];var d=o;while(++c<l)h[d+c]=e[c];while(++u<s)(p||o<a)&&(h[d+r[u]]=t[o++]);return h}function ia(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function oa(t,e,n,r){var o=!n;n||(n={});var a=-1,u=e.length;while(++a<u){var s=e[a],c=r?r(n[s],t[s],s,n,t):i;c===i&&(c=t[s]),o?di(n,s,c):ci(n,s,c)}return n}function aa(t,e){return oa(t,Xa(t),e)}function ua(t,e){return oa(t,Va(t),e)}function sa(t,e){return function(n,r){var i=sl(n)?_n:fi,o=e?e():{};return i(n,t,Fa(r,2),o)}}function ca(t){return bo((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,u=o>2?n[2]:i;a=t.length>3&&"function"==typeof a?(o--,a):i,u&&uu(n[0],n[1],u)&&(a=o<3?i:a,o=1),e=ne(e);while(++r<o){var s=n[r];s&&t(e,s,r,a)}return e}))}function la(t,e){return function(n,r){if(null==n)return n;if(!ll(n))return t(n,r);var i=n.length,o=e?i:-1,a=ne(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(t){return function(e,n,r){var i=-1,o=ne(e),a=r(e),u=a.length;while(u--){var s=a[t?u:++i];if(!1===n(o[s],s,o))break}return e}}function ha(t,e,n){var r=e&y,i=va(t);function o(){var e=this&&this!==un&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function pa(t){return function(e){e=Kl(e);var n=or(e)?gr(e):i,r=n?n[0]:e.charAt(0),o=n?Qo(n,1).join(""):e.slice(1);return r[t]()+o}}function da(t){return function(e){return Pn(xh(Xf(e).replace(Be,"")),t,"")}}function va(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Sr(t.prototype),r=t.apply(n,e);return Sl(r)?r:n}}function ga(t,e,r){var o=va(t);function a(){var u=arguments.length,s=n(u),c=u,l=qa(a);while(c--)s[c]=arguments[c];var f=u<3&&s[0]!==l&&s[u-1]!==l?[]:lr(s,l);if(u-=f.length,u<r)return Oa(t,e,wa,a.placeholder,i,s,f,i,i,r-u);var h=this&&this!==un&&this instanceof a?o:t;return wn(h,this,s)}return a}function ma(t){return function(e,n,r){var o=ne(e);if(!ll(e)){var a=Fa(n,3);e=Af(e),n=function(t){return a(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[a?e[u]:u]:i}}function ya(t){return $a((function(e){var n=e.length,r=n,o=kr.prototype.thru;t&&e.reverse();while(r--){var a=e[r];if("function"!=typeof a)throw new oe(s);if(o&&!u&&"wrapper"==Ba(a))var u=new kr([],!0)}r=u?r:n;while(++r<n){a=e[r];var c=Ba(a),l="wrapper"==c?za(a):i;u=l&&lu(l[0])&&l[1]==(C|b|A|k)&&!l[4].length&&1==l[9]?u[Ba(l[0])].apply(u,l[3]):1==a.length&&lu(a)?u[c]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&sl(r))return u.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function wa(t,e,r,o,a,u,s,c,l,f){var h=e&C,p=e&y,d=e&w,v=e&(b|x),g=e&O,m=d?i:va(t);function _(){var i=arguments.length,y=n(i),w=i;while(w--)y[w]=arguments[w];if(v)var b=qa(_),x=tr(y,b);if(o&&(y=na(y,o,a,v)),u&&(y=ra(y,u,s,v)),i-=x,v&&i<f){var A=lr(y,b);return Oa(t,e,wa,_.placeholder,r,y,A,c,l,f-i)}var S=p?r:this,C=d?S[t]:t;return i=y.length,c?y=xu(y,c):g&&i>1&&y.reverse(),h&&l<i&&(y.length=l),this&&this!==un&&this instanceof _&&(C=m||va(C)),C.apply(S,y)}return _}function _a(t,e){return function(n,r){return Bi(n,t,e(r),{})}}function ba(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Mo(n),r=Mo(r)),o=t(n,r)}return o}}function xa(t){return $a((function(e){return e=On(e,Xn(Fa())),bo((function(n){var r=this;return t(e,(function(t){return wn(t,r,n)}))}))}))}function Aa(t,e){e=e===i?" ":Lo(e);var n=e.length;if(n<2)return n?_o(e,t):e;var r=_o(e,Me(t/vr(e)));return or(e)?Qo(gr(r),0,t).join(""):r.slice(0,t)}function Sa(t,e,r,i){var o=e&y,a=va(t);function u(){var e=-1,s=arguments.length,c=-1,l=i.length,f=n(l+s),h=this&&this!==un&&this instanceof u?a:t;while(++c<l)f[c]=i[c];while(s--)f[c++]=arguments[++e];return wn(h,o?r:this,f)}return u}function Ca(t){return function(e,n,r){return r&&"number"!=typeof r&&uu(e,n,r)&&(n=r=i),e=Yl(e),n===i?(n=e,e=0):n=Yl(n),r=r===i?e<n?1:-1:Yl(r),wo(e,n,r,t)}}function ka(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vl(e),n=Vl(n)),t(e,n)}}function Oa(t,e,n,r,o,a,u,s,c,l){var f=e&b,h=f?u:i,p=f?i:u,d=f?a:i,v=f?i:a;e|=f?A:S,e&=~(f?S:A),e&_||(e&=~(y|w));var g=[t,e,o,d,h,v,p,s,c,l],m=n.apply(i,g);return lu(t)&&Su(m,g),m.placeholder=r,Ou(m,t,e)}function Ea(t){var e=ee[t];return function(t,n){if(t=Vl(t),n=null==n?0:ze(Gl(n),292),n&&Ue(t)){var r=(Kl(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Kl(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Pa=en&&1/fr(new en([,-0]))[1]==I?function(t){return new en(t)}:Wh;function Ra(t){return function(e){var n=Ja(e);return n==Z?sr(e):n==ot?hr(e):Yn(e,t(e))}}function Ta(t,e,n,r,o,a,u,c){var l=e&w;if(!l&&"function"!=typeof t)throw new oe(s);var f=r?r.length:0;if(f||(e&=~(A|S),r=o=i),u=u===i?u:Ne(Gl(u),0),c=c===i?c:Gl(c),f-=o?o.length:0,e&S){var h=r,p=o;r=o=i}var d=l?i:za(t),v=[t,e,n,r,o,h,p,a,u,c];if(d&&mu(v,d),t=v[0],e=v[1],n=v[2],r=v[3],o=v[4],c=v[9]=v[9]===i?l?0:t.length:Ne(v[9]-f,0),!c&&e&(b|x)&&(e&=~(b|x)),e&&e!=y)g=e==b||e==x?ga(t,e,c):e!=A&&e!=(y|A)||o.length?wa.apply(i,v):Sa(t,e,n,r);else var g=ha(t,e,n);var m=d?Co:Su;return Ou(m(g,v),t,e)}function ja(t,e,n,r){return t===i||il(t,se[n])&&!fe.call(r,n)?e:t}function Ma(t,e,n,r,o,a){return Sl(t)&&Sl(e)&&(a.set(e,t),so(t,e,i,Ma,a),a["delete"](e)),t}function La(t){return Ll(t)?i:t}function Ia(t,e,n,r,o,a){var u=n&g,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var h=-1,p=!0,d=n&m?new Xr:i;a.set(t,e),a.set(e,t);while(++h<s){var v=t[h],y=e[h];if(r)var w=u?r(y,v,h,e,t,a):r(v,y,h,t,e,a);if(w!==i){if(w)continue;p=!1;break}if(d){if(!Tn(e,(function(t,e){if(!Jn(d,e)&&(v===t||o(v,t,n,r,a)))return d.push(e)}))){p=!1;break}}else if(v!==y&&!o(v,y,n,r,a)){p=!1;break}}return a["delete"](t),a["delete"](e),p}function Da(t,e,n,r,i,o,a){switch(n){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new _e(t),new _e(e)));case Q:case Y:case K:return il(+t,+e);case X:return t.name==e.name&&t.message==e.message;case it:case at:return t==e+"";case Z:var u=sr;case ot:var s=r&g;if(u||(u=fr),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;r|=m,a.set(t,e);var l=Ia(u(t),u(e),r,i,o,a);return a["delete"](t),l;case ut:if(wr)return wr.call(t)==wr.call(e)}return!1}function Ua(t,e,n,r,o,a){var u=n&g,s=Wa(t),c=s.length,l=Wa(e),f=l.length;if(c!=f&&!u)return!1;var h=c;while(h--){var p=s[h];if(!(u?p in e:fe.call(e,p)))return!1}var d=a.get(t),v=a.get(e);if(d&&v)return d==e&&v==t;var m=!0;a.set(t,e),a.set(e,t);var y=u;while(++h<c){p=s[h];var w=t[p],_=e[p];if(r)var b=u?r(_,w,p,e,t,a):r(w,_,p,t,e,a);if(!(b===i?w===_||o(w,_,n,r,a):b)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var x=t.constructor,A=e.constructor;x==A||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof A&&A instanceof A||(m=!1)}return a["delete"](t),a["delete"](e),m}function $a(t){return ku(_u(t,i,Gu),t+"")}function Wa(t){return Ii(t,Af,Xa)}function Na(t){return Ii(t,Sf,Va)}var za=sn?function(t){return sn.get(t)}:Wh;function Ba(t){var e=t.name+"",n=cn[e],r=fe.call(cn,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function qa(t){var e=fe.call(xr,"placeholder")?xr:t;return e.placeholder}function Fa(){var t=xr.iteratee||jh;return t=t===jh?eo:t,arguments.length?t(arguments[0],arguments[1]):t}function Ha(t,e){var n=t.__data__;return cu(e)?n["string"==typeof e?"string":"hash"]:n.map}function Qa(t){var e=Af(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,du(i)]}return e}function Ya(t,e){var n=ir(t,e);return Ji(n)?n:i}function Ga(t){var e=fe.call(t,Ee),n=t[Ee];try{t[Ee]=i;var r=!0}catch(a){}var o=de.call(t);return r&&(e?t[Ee]=n:delete t[Ee]),o}var Xa=Ie?function(t){return null==t?[]:(t=ne(t),Sn(Ie(t),(function(e){return Se.call(t,e)})))}:Gh,Va=Ie?function(t){var e=[];while(t)En(e,Xa(t)),t=xe(t);return e}:Gh,Ja=Di;function Za(t,e,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ze(e,t+a);break;case"takeRight":t=Ne(t,e-a);break}}return{start:t,end:e}}function Ka(t){var e=t.match(Nt);return e?e[1].split(zt):[]}function tu(t,e,n){e=Fo(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Tu(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Al(i)&&au(a,i)&&(sl(t)||ul(t)))}function eu(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function nu(t){return"function"!=typeof t.constructor||pu(t)?{}:Sr(xe(t))}function ru(t,e,n){var r=t.constructor;switch(e){case ft:return Xo(t);case Q:case Y:return new r(+t);case ht:return Vo(t,n);case pt:case dt:case vt:case gt:case mt:case yt:case wt:case _t:case bt:return Ko(t,n);case Z:return new r;case K:case at:return new r(t);case it:return Jo(t);case ot:return new r;case ut:return Zo(t)}}function iu(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Wt,"{\n/* [wrapped with "+e+"] */\n")}function ou(t){return sl(t)||ul(t)||!!(ke&&t&&t[ke])}function au(t,e){var n=typeof t;return e=null==e?D:e,!!e&&("number"==n||"symbol"!=n&&Jt.test(t))&&t>-1&&t%1==0&&t<e}function uu(t,e,n){if(!Sl(n))return!1;var r=typeof e;return!!("number"==r?ll(n)&&au(e,n.length):"string"==r&&e in n)&&il(n[e],t)}function su(t,e){if(sl(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Wl(t))||(Mt.test(t)||!jt.test(t)||null!=e&&t in ne(e))}function cu(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function lu(t){var e=Ba(t),n=xr[e];if("function"!=typeof n||!(e in Or.prototype))return!1;if(t===n)return!0;var r=za(n);return!!r&&t===r[0]}function fu(t){return!!pe&&pe in t}(Ze&&Ja(new Ze(new ArrayBuffer(1)))!=ht||Ke&&Ja(new Ke)!=Z||tn&&Ja(tn.resolve())!=nt||en&&Ja(new en)!=ot||on&&Ja(new on)!=ct)&&(Ja=function(t){var e=Di(t),n=e==et?t.constructor:i,r=n?ju(n):"";if(r)switch(r){case fn:return ht;case hn:return Z;case jn:return nt;case Mn:return ot;case Bn:return ct}return e});var hu=ce?bl:Xh;function pu(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||se;return t===n}function du(t){return t===t&&!Sl(t)}function vu(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in ne(n)))}}function gu(t){var e=Nc(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function mu(t,e){var n=t[1],r=e[1],i=n|r,o=i<(y|w|C),a=r==C&&n==b||r==C&&n==k&&t[7].length<=e[8]||r==(C|k)&&e[7].length<=e[8]&&n==b;if(!o&&!a)return t;r&y&&(t[2]=e[2],i|=n&y?0:_);var u=e[3];if(u){var s=t[3];t[3]=s?na(s,u,e[4]):u,t[4]=s?lr(t[3],h):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?ra(s,u,e[6]):u,t[6]=s?lr(t[5],h):e[6]),u=e[7],u&&(t[7]=u),r&C&&(t[8]=null==t[8]?e[8]:ze(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function yu(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function wu(t){return de.call(t)}function _u(t,e,r){return e=Ne(e===i?t.length-1:e,0),function(){var i=arguments,o=-1,a=Ne(i.length-e,0),u=n(a);while(++o<a)u[o]=i[e+o];o=-1;var s=n(e+1);while(++o<e)s[o]=i[o];return s[e]=r(u),wn(t,this,s)}}function bu(t,e){return e.length<2?t:Li(t,Eo(e,0,-1))}function xu(t,e){var n=t.length,r=ze(e.length,n),o=ia(t);while(r--){var a=e[r];t[r]=au(a,n)?o[a]:i}return t}function Au(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Su=Eu(Co),Cu=je||function(t,e){return un.setTimeout(t,e)},ku=Eu(ko);function Ou(t,e,n){var r=e+"";return ku(t,iu(r,Mu(Ka(r),n)))}function Eu(t){var e=0,n=0;return function(){var r=Fe(),o=T-(r-n);if(n=r,o>0){if(++e>=R)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Pu(t,e){var n=-1,r=t.length,o=r-1;e=e===i?r:e;while(++n<e){var a=yo(n,o),u=t[a];t[a]=t[n],t[n]=u}return t.length=e,t}var Ru=gu((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lt,(function(t,n,r,i){e.push(r?i.replace(Ft,"$1"):n||t)})),e}));function Tu(t){if("string"==typeof t||Wl(t))return t;var e=t+"";return"0"==e&&1/t==-I?"-0":e}function ju(t){if(null!=t){try{return le.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Mu(t,e){return bn(B,(function(n){var r="_."+n[0];e&n[1]&&!Cn(t,r)&&t.push(r)})),t.sort()}function Lu(t){if(t instanceof Or)return t.clone();var e=new kr(t.__wrapped__,t.__chain__);return e.__actions__=ia(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Iu(t,e,r){e=(r?uu(t,e,r):e===i)?1:Ne(Gl(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];var a=0,u=0,s=n(Me(o/e));while(a<o)s[u++]=Eo(t,a,a+=e);return s}function Du(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function Uu(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return En(sl(r)?ia(r):[r],Ei(e,1))}var $u=bo((function(t,e){return fl(t)?bi(t,Ei(e,1,fl,!0)):[]})),Wu=bo((function(t,e){var n=os(e);return fl(n)&&(n=i),fl(t)?bi(t,Ei(e,1,fl,!0),Fa(n,2)):[]})),Nu=bo((function(t,e){var n=os(e);return fl(n)&&(n=i),fl(t)?bi(t,Ei(e,1,fl,!0),i,n):[]}));function zu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Gl(e),Eo(t,e<0?0:e,r)):[]}function Bu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Gl(e),e=r-e,Eo(t,0,e<0?0:e)):[]}function qu(t,e){return t&&t.length?$o(t,Fa(e,3),!0,!0):[]}function Fu(t,e){return t&&t.length?$o(t,Fa(e,3),!0):[]}function Hu(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&uu(t,e,n)&&(n=0,r=i),ki(t,e,n,r)):[]}function Qu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Gl(n);return i<0&&(i=Ne(r+i,0)),Dn(t,Fa(e,3),i)}function Yu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Gl(n),o=n<0?Ne(r+o,0):ze(o,r-1)),Dn(t,Fa(e,3),o,!0)}function Gu(t){var e=null==t?0:t.length;return e?Ei(t,1):[]}function Xu(t){var e=null==t?0:t.length;return e?Ei(t,I):[]}function Vu(t,e){var n=null==t?0:t.length;return n?(e=e===i?1:Gl(e),Ei(t,e)):[]}function Ju(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Zu(t){return t&&t.length?t[0]:i}function Ku(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Gl(n);return i<0&&(i=Ne(r+i,0)),Un(t,e,i)}function ts(t){var e=null==t?0:t.length;return e?Eo(t,0,-1):[]}var es=bo((function(t){var e=On(t,Bo);return e.length&&e[0]===t[0]?zi(e):[]})),ns=bo((function(t){var e=os(t),n=On(t,Bo);return e===os(n)?e=i:n.pop(),n.length&&n[0]===t[0]?zi(n,Fa(e,2)):[]})),rs=bo((function(t){var e=os(t),n=On(t,Bo);return e="function"==typeof e?e:i,e&&n.pop(),n.length&&n[0]===t[0]?zi(n,i,e):[]}));function is(t,e){return null==t?"":$e.call(t,e)}function os(t){var e=null==t?0:t.length;return e?t[e-1]:i}function as(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=Gl(n),o=o<0?Ne(r+o,0):ze(o,r-1)),e===e?dr(t,e,o):Dn(t,Wn,o,!0)}function us(t,e){return t&&t.length?lo(t,Gl(e)):i}var ss=bo(cs);function cs(t,e){return t&&t.length&&e&&e.length?go(t,e):t}function ls(t,e,n){return t&&t.length&&e&&e.length?go(t,e,Fa(n,2)):t}function fs(t,e,n){return t&&t.length&&e&&e.length?go(t,e,i,n):t}var hs=$a((function(t,e){var n=null==t?0:t.length,r=vi(t,e);return mo(t,On(e,(function(t){return au(t,n)?+t:t})).sort(ta)),r}));function ps(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=Fa(e,3);while(++r<o){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return mo(t,i),n}function ds(t){return null==t?t:Ye.call(t)}function vs(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&uu(t,e,n)?(e=0,n=r):(e=null==e?0:Gl(e),n=n===i?r:Gl(n)),Eo(t,e,n)):[]}function gs(t,e){return Ro(t,e)}function ms(t,e,n){return To(t,e,Fa(n,2))}function ys(t,e){var n=null==t?0:t.length;if(n){var r=Ro(t,e);if(r<n&&il(t[r],e))return r}return-1}function ws(t,e){return Ro(t,e,!0)}function _s(t,e,n){return To(t,e,Fa(n,2),!0)}function bs(t,e){var n=null==t?0:t.length;if(n){var r=Ro(t,e,!0)-1;if(il(t[r],e))return r}return-1}function xs(t){return t&&t.length?jo(t):[]}function As(t,e){return t&&t.length?jo(t,Fa(e,2)):[]}function Ss(t){var e=null==t?0:t.length;return e?Eo(t,1,e):[]}function Cs(t,e,n){return t&&t.length?(e=n||e===i?1:Gl(e),Eo(t,0,e<0?0:e)):[]}function ks(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Gl(e),e=r-e,Eo(t,e<0?0:e,r)):[]}function Os(t,e){return t&&t.length?$o(t,Fa(e,3),!1,!0):[]}function Es(t,e){return t&&t.length?$o(t,Fa(e,3)):[]}var Ps=bo((function(t){return Io(Ei(t,1,fl,!0))})),Rs=bo((function(t){var e=os(t);return fl(e)&&(e=i),Io(Ei(t,1,fl,!0),Fa(e,2))})),Ts=bo((function(t){var e=os(t);return e="function"==typeof e?e:i,Io(Ei(t,1,fl,!0),i,e)}));function js(t){return t&&t.length?Io(t):[]}function Ms(t,e){return t&&t.length?Io(t,Fa(e,2)):[]}function Ls(t,e){return e="function"==typeof e?e:i,t&&t.length?Io(t,i,e):[]}function Is(t){if(!t||!t.length)return[];var e=0;return t=Sn(t,(function(t){if(fl(t))return e=Ne(t.length,e),!0})),Qn(e,(function(e){return On(t,zn(e))}))}function Ds(t,e){if(!t||!t.length)return[];var n=Is(t);return null==e?n:On(n,(function(t){return wn(e,i,t)}))}var Us=bo((function(t,e){return fl(t)?bi(t,e):[]})),$s=bo((function(t){return No(Sn(t,fl))})),Ws=bo((function(t){var e=os(t);return fl(e)&&(e=i),No(Sn(t,fl),Fa(e,2))})),Ns=bo((function(t){var e=os(t);return e="function"==typeof e?e:i,No(Sn(t,fl),i,e)})),zs=bo(Is);function Bs(t,e){return zo(t||[],e||[],ci)}function qs(t,e){return zo(t||[],e||[],So)}var Fs=bo((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,Ds(t,n)}));function Hs(t){var e=xr(t);return e.__chain__=!0,e}function Qs(t,e){return e(t),t}function Ys(t,e){return e(t)}var Gs=$a((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return vi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Or&&au(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ys,args:[o],thisArg:i}),new kr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));function Xs(){return Hs(this)}function Vs(){return new kr(this.value(),this.__chain__)}function Js(){this.__values__===i&&(this.__values__=Ql(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}}function Zs(){return this}function Ks(t){var e,n=this;while(n instanceof Cr){var r=Lu(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e}function tc(){var t=this.__wrapped__;if(t instanceof Or){var e=t;return this.__actions__.length&&(e=new Or(this)),e=e.reverse(),e.__actions__.push({func:Ys,args:[ds],thisArg:i}),new kr(e,this.__chain__)}return this.thru(ds)}function ec(){return Wo(this.__wrapped__,this.__actions__)}var nc=sa((function(t,e,n){fe.call(t,n)?++t[n]:di(t,n,1)}));function rc(t,e,n){var r=sl(t)?An:Si;return n&&uu(t,e,n)&&(e=i),r(t,Fa(e,3))}function ic(t,e){var n=sl(t)?Sn:Oi;return n(t,Fa(e,3))}var oc=ma(Qu),ac=ma(Yu);function uc(t,e){return Ei(gc(t,e),1)}function sc(t,e){return Ei(gc(t,e),I)}function cc(t,e,n){return n=n===i?1:Gl(n),Ei(gc(t,e),n)}function lc(t,e){var n=sl(t)?bn:xi;return n(t,Fa(e,3))}function fc(t,e){var n=sl(t)?xn:Ai;return n(t,Fa(e,3))}var hc=sa((function(t,e,n){fe.call(t,n)?t[n].push(e):di(t,n,[e])}));function pc(t,e,n,r){t=ll(t)?t:Bf(t),n=n&&!r?Gl(n):0;var i=t.length;return n<0&&(n=Ne(i+n,0)),$l(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Un(t,e,n)>-1}var dc=bo((function(t,e,r){var i=-1,o="function"==typeof e,a=ll(t)?n(t.length):[];return xi(t,(function(t){a[++i]=o?wn(e,t,r):qi(t,e,r)})),a})),vc=sa((function(t,e,n){di(t,n,e)}));function gc(t,e){var n=sl(t)?On:oo;return n(t,Fa(e,3))}function mc(t,e,n,r){return null==t?[]:(sl(e)||(e=null==e?[]:[e]),n=r?i:n,sl(n)||(n=null==n?[]:[n]),fo(t,e,n))}var yc=sa((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function wc(t,e,n){var r=sl(t)?Pn:qn,i=arguments.length<3;return r(t,Fa(e,4),n,i,xi)}function _c(t,e,n){var r=sl(t)?Rn:qn,i=arguments.length<3;return r(t,Fa(e,4),n,i,Ai)}function bc(t,e){var n=sl(t)?Sn:Oi;return n(t,zc(Fa(e,3)))}function xc(t){var e=sl(t)?oi:xo;return e(t)}function Ac(t,e,n){e=(n?uu(t,e,n):e===i)?1:Gl(e);var r=sl(t)?ai:Ao;return r(t,e)}function Sc(t){var e=sl(t)?ui:Oo;return e(t)}function Cc(t){if(null==t)return 0;if(ll(t))return $l(t)?vr(t):t.length;var e=Ja(t);return e==Z||e==ot?t.size:no(t).length}function kc(t,e,n){var r=sl(t)?Tn:Po;return n&&uu(t,e,n)&&(e=i),r(t,Fa(e,3))}var Oc=bo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uu(t,e[0],e[1])?e=[]:n>2&&uu(e[0],e[1],e[2])&&(e=[e[0]]),fo(t,Ei(e,1),[])})),Ec=Te||function(){return un.Date.now()};function Pc(t,e){if("function"!=typeof e)throw new oe(s);return t=Gl(t),function(){if(--t<1)return e.apply(this,arguments)}}function Rc(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ta(t,C,i,i,i,i,e)}function Tc(t,e){var n;if("function"!=typeof e)throw new oe(s);return t=Gl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var jc=bo((function(t,e,n){var r=y;if(n.length){var i=lr(n,qa(jc));r|=A}return Ta(t,r,e,n,i)})),Mc=bo((function(t,e,n){var r=y|w;if(n.length){var i=lr(n,qa(Mc));r|=A}return Ta(e,r,t,n,i)}));function Lc(t,e,n){e=n?i:e;var r=Ta(t,b,i,i,i,i,i,e);return r.placeholder=Lc.placeholder,r}function Ic(t,e,n){e=n?i:e;var r=Ta(t,x,i,i,i,i,i,e);return r.placeholder=Ic.placeholder,r}function Dc(t,e,n){var r,o,a,u,c,l,f=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new oe(s);function v(e){var n=r,a=o;return r=o=i,f=e,u=t.apply(a,n),u}function g(t){return f=t,c=Cu(w,e),h?v(t):u}function m(t){var n=t-l,r=t-f,i=e-n;return p?ze(i,a-r):i}function y(t){var n=t-l,r=t-f;return l===i||n>=e||n<0||p&&r>=a}function w(){var t=Ec();if(y(t))return _(t);c=Cu(w,m(t))}function _(t){return c=i,d&&r?v(t):(r=o=i,u)}function b(){c!==i&&Yo(c),f=0,r=l=o=c=i}function x(){return c===i?u:_(Ec())}function A(){var t=Ec(),n=y(t);if(r=arguments,o=this,l=t,n){if(c===i)return g(l);if(p)return Yo(c),c=Cu(w,e),v(l)}return c===i&&(c=Cu(w,e)),u}return e=Vl(e)||0,Sl(n)&&(h=!!n.leading,p="maxWait"in n,a=p?Ne(Vl(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),A.cancel=b,A.flush=x,A}var Uc=bo((function(t,e){return _i(t,1,e)})),$c=bo((function(t,e,n){return _i(t,Vl(e)||0,n)}));function Wc(t){return Ta(t,O)}function Nc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Nc.Cache||qr),n}function zc(t){if("function"!=typeof t)throw new oe(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Bc(t){return Tc(2,t)}Nc.Cache=qr;var qc=Ho((function(t,e){e=1==e.length&&sl(e[0])?On(e[0],Xn(Fa())):On(Ei(e,1),Xn(Fa()));var n=e.length;return bo((function(r){var i=-1,o=ze(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return wn(t,this,r)}))})),Fc=bo((function(t,e){var n=lr(e,qa(Fc));return Ta(t,A,i,e,n)})),Hc=bo((function(t,e){var n=lr(e,qa(Hc));return Ta(t,S,i,e,n)})),Qc=$a((function(t,e){return Ta(t,k,i,i,i,e)}));function Yc(t,e){if("function"!=typeof t)throw new oe(s);return e=e===i?e:Gl(e),bo(t,e)}function Gc(t,e){if("function"!=typeof t)throw new oe(s);return e=null==e?0:Ne(Gl(e),0),bo((function(n){var r=n[e],i=Qo(n,0,e);return r&&En(i,r),wn(t,this,i)}))}function Xc(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(s);return Sl(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Dc(t,e,{leading:r,maxWait:e,trailing:i})}function Vc(t){return Rc(t,1)}function Jc(t,e){return Fc(qo(e),t)}function Zc(){if(!arguments.length)return[];var t=arguments[0];return sl(t)?t:[t]}function Kc(t){return mi(t,v)}function tl(t,e){return e="function"==typeof e?e:i,mi(t,v,e)}function el(t){return mi(t,p|v)}function nl(t,e){return e="function"==typeof e?e:i,mi(t,p|v,e)}function rl(t,e){return null==e||wi(t,e,Af(e))}function il(t,e){return t===e||t!==t&&e!==e}var ol=ka(Ui),al=ka((function(t,e){return t>=e})),ul=Fi(function(){return arguments}())?Fi:function(t){return Cl(t)&&fe.call(t,"callee")&&!Se.call(t,"callee")},sl=n.isArray,cl=pn?Xn(pn):Hi;function ll(t){return null!=t&&Al(t.length)&&!bl(t)}function fl(t){return Cl(t)&&ll(t)}function hl(t){return!0===t||!1===t||Cl(t)&&Di(t)==Q}var pl=De||Xh,dl=dn?Xn(dn):Qi;function vl(t){return Cl(t)&&1===t.nodeType&&!Ll(t)}function gl(t){if(null==t)return!0;if(ll(t)&&(sl(t)||"string"==typeof t||"function"==typeof t.splice||pl(t)||Nl(t)||ul(t)))return!t.length;var e=Ja(t);if(e==Z||e==ot)return!t.size;if(pu(t))return!no(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function ml(t,e){return Yi(t,e)}function yl(t,e,n){n="function"==typeof n?n:i;var r=n?n(t,e):i;return r===i?Yi(t,e,i,n):!!r}function wl(t){if(!Cl(t))return!1;var e=Di(t);return e==X||e==G||"string"==typeof t.message&&"string"==typeof t.name&&!Ll(t)}function _l(t){return"number"==typeof t&&Ue(t)}function bl(t){if(!Sl(t))return!1;var e=Di(t);return e==V||e==J||e==H||e==rt}function xl(t){return"number"==typeof t&&t==Gl(t)}function Al(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D}function Sl(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Cl(t){return null!=t&&"object"==typeof t}var kl=vn?Xn(vn):Xi;function Ol(t,e){return t===e||Vi(t,e,Qa(e))}function El(t,e,n){return n="function"==typeof n?n:i,Vi(t,e,Qa(e),n)}function Pl(t){return Ml(t)&&t!=+t}function Rl(t){if(hu(t))throw new $t(u);return Ji(t)}function Tl(t){return null===t}function jl(t){return null==t}function Ml(t){return"number"==typeof t||Cl(t)&&Di(t)==K}function Ll(t){if(!Cl(t)||Di(t)!=et)return!1;var e=xe(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&le.call(n)==ve}var Il=gn?Xn(gn):Zi;function Dl(t){return xl(t)&&t>=-D&&t<=D}var Ul=mn?Xn(mn):Ki;function $l(t){return"string"==typeof t||!sl(t)&&Cl(t)&&Di(t)==at}function Wl(t){return"symbol"==typeof t||Cl(t)&&Di(t)==ut}var Nl=yn?Xn(yn):to;function zl(t){return t===i}function Bl(t){return Cl(t)&&Ja(t)==ct}function ql(t){return Cl(t)&&Di(t)==lt}var Fl=ka(io),Hl=ka((function(t,e){return t<=e}));function Ql(t){if(!t)return[];if(ll(t))return $l(t)?gr(t):ia(t);if(Oe&&t[Oe])return ur(t[Oe]());var e=Ja(t),n=e==Z?sr:e==ot?fr:Bf;return n(t)}function Yl(t){if(!t)return 0===t?t:0;if(t=Vl(t),t===I||t===-I){var e=t<0?-1:1;return e*U}return t===t?t:0}function Gl(t){var e=Yl(t),n=e%1;return e===e?n?e-n:e:0}function Xl(t){return t?gi(Gl(t),0,W):0}function Vl(t){if("number"==typeof t)return t;if(Wl(t))return $;if(Sl(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Sl(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Gn(t);var n=Gt.test(t);return n||Vt.test(t)?rn(t.slice(2),n?2:8):Yt.test(t)?$:+t}function Jl(t){return oa(t,Sf(t))}function Zl(t){return t?gi(Gl(t),-D,D):0===t?t:0}function Kl(t){return null==t?"":Lo(t)}var tf=ca((function(t,e){if(pu(e)||ll(e))oa(e,Af(e),t);else for(var n in e)fe.call(e,n)&&ci(t,n,e[n])})),ef=ca((function(t,e){oa(e,Sf(e),t)})),nf=ca((function(t,e,n,r){oa(e,Sf(e),t,r)})),rf=ca((function(t,e,n,r){oa(e,Af(e),t,r)})),of=$a(vi);function af(t,e){var n=Sr(t);return null==e?n:hi(n,e)}var uf=bo((function(t,e){t=ne(t);var n=-1,r=e.length,o=r>2?e[2]:i;o&&uu(e[0],e[1],o)&&(r=1);while(++n<r){var a=e[n],u=Sf(a),s=-1,c=u.length;while(++s<c){var l=u[s],f=t[l];(f===i||il(f,se[l])&&!fe.call(t,l))&&(t[l]=a[l])}}return t})),sf=bo((function(t){return t.push(i,Ma),wn(Ef,i,t)}));function cf(t,e){return In(t,Fa(e,3),Ti)}function lf(t,e){return In(t,Fa(e,3),ji)}function ff(t,e){return null==t?t:Pi(t,Fa(e,3),Sf)}function hf(t,e){return null==t?t:Ri(t,Fa(e,3),Sf)}function pf(t,e){return t&&Ti(t,Fa(e,3))}function df(t,e){return t&&ji(t,Fa(e,3))}function vf(t){return null==t?[]:Mi(t,Af(t))}function gf(t){return null==t?[]:Mi(t,Sf(t))}function mf(t,e,n){var r=null==t?i:Li(t,e);return r===i?n:r}function yf(t,e){return null!=t&&tu(t,e,$i)}function wf(t,e){return null!=t&&tu(t,e,Wi)}var _f=_a((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=n}),Oh(Th)),bf=_a((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),fe.call(t,e)?t[e].push(n):t[e]=[n]}),Fa),xf=bo(qi);function Af(t){return ll(t)?ii(t):no(t)}function Sf(t){return ll(t)?ii(t,!0):ro(t)}function Cf(t,e){var n={};return e=Fa(e,3),Ti(t,(function(t,r,i){di(n,e(t,r,i),t)})),n}function kf(t,e){var n={};return e=Fa(e,3),Ti(t,(function(t,r,i){di(n,r,e(t,r,i))})),n}var Of=ca((function(t,e,n){so(t,e,n)})),Ef=ca((function(t,e,n,r){so(t,e,n,r)})),Pf=$a((function(t,e){var n={};if(null==t)return n;var r=!1;e=On(e,(function(e){return e=Fo(e,t),r||(r=e.length>1),e})),oa(t,Na(t),n),r&&(n=mi(n,p|d|v,La));var i=e.length;while(i--)Do(n,e[i]);return n}));function Rf(t,e){return jf(t,zc(Fa(e)))}var Tf=$a((function(t,e){return null==t?{}:ho(t,e)}));function jf(t,e){if(null==t)return{};var n=On(Na(t),(function(t){return[t]}));return e=Fa(e),po(t,n,(function(t,n){return e(t,n[0])}))}function Mf(t,e,n){e=Fo(e,t);var r=-1,o=e.length;o||(o=1,t=i);while(++r<o){var a=null==t?i:t[Tu(e[r])];a===i&&(r=o,a=n),t=bl(a)?a.call(t):a}return t}function Lf(t,e,n){return null==t?t:So(t,e,n)}function If(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:So(t,e,n,r)}var Df=Ra(Af),Uf=Ra(Sf);function $f(t,e,n){var r=sl(t),i=r||pl(t)||Nl(t);if(e=Fa(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Sl(t)&&bl(o)?Sr(xe(t)):{}}return(i?bn:Ti)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Wf(t,e){return null==t||Do(t,e)}function Nf(t,e,n){return null==t?t:Uo(t,e,qo(n))}function zf(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Uo(t,e,qo(n),r)}function Bf(t){return null==t?[]:Vn(t,Af(t))}function qf(t){return null==t?[]:Vn(t,Sf(t))}function Ff(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=Vl(n),n=n===n?n:0),e!==i&&(e=Vl(e),e=e===e?e:0),gi(Vl(t),e,n)}function Hf(t,e,n){return e=Yl(e),n===i?(n=e,e=0):n=Yl(n),t=Vl(t),Ni(t,e,n)}function Qf(t,e,n){if(n&&"boolean"!=typeof n&&uu(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=Yl(t),e===i?(e=t,t=0):e=Yl(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Qe();return ze(t+o*(e-t+nn("1e-"+((o+"").length-1))),e)}return yo(t,e)}var Yf=da((function(t,e,n){return e=e.toLowerCase(),t+(n?Gf(e):e)}));function Gf(t){return bh(Kl(t).toLowerCase())}function Xf(t){return t=Kl(t),t&&t.replace(Zt,er).replace(qe,"")}function Vf(t,e,n){t=Kl(t),e=Lo(e);var r=t.length;n=n===i?r:gi(Gl(n),0,r);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function Jf(t){return t=Kl(t),t&&Et.test(t)?t.replace(kt,nr):t}function Zf(t){return t=Kl(t),t&&Dt.test(t)?t.replace(It,"\\$&"):t}var Kf=da((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),th=da((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),eh=pa("toLowerCase");function nh(t,e,n){t=Kl(t),e=Gl(e);var r=e?vr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Aa(Le(i),n)+t+Aa(Me(i),n)}function rh(t,e,n){t=Kl(t),e=Gl(e);var r=e?vr(t):0;return e&&r<e?t+Aa(e-r,n):t}function ih(t,e,n){t=Kl(t),e=Gl(e);var r=e?vr(t):0;return e&&r<e?Aa(e-r,n)+t:t}function oh(t,e,n){return n||null==e?e=0:e&&(e=+e),He(Kl(t).replace(Ut,""),e||0)}function ah(t,e,n){return e=(n?uu(t,e,n):e===i)?1:Gl(e),_o(Kl(t),e)}function uh(){var t=arguments,e=Kl(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var sh=da((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function ch(t,e,n){return n&&"number"!=typeof n&&uu(t,e,n)&&(e=n=i),n=n===i?W:n>>>0,n?(t=Kl(t),t&&("string"==typeof e||null!=e&&!Il(e))&&(e=Lo(e),!e&&or(t))?Qo(gr(t),0,n):t.split(e,n)):[]}var lh=da((function(t,e,n){return t+(n?" ":"")+bh(e)}));function fh(t,e,n){return t=Kl(t),n=null==n?0:gi(Gl(n),0,t.length),e=Lo(e),t.slice(n,n+e.length)==e}function hh(t,e,n){var r=xr.templateSettings;n&&uu(t,e,n)&&(e=i),t=Kl(t),e=nf({},e,r,ja);var o,a,u=nf({},e.imports,r.imports,ja),s=Af(u),l=Vn(u,s),f=0,h=e.interpolate||Kt,p="__p += '",d=re((e.escape||Kt).source+"|"+h.source+"|"+(h===Tt?Ht:Kt).source+"|"+(e.evaluate||Kt).source+"|$","g"),v="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";t.replace(d,(function(e,n,r,i,u,s){return r||(r=i),p+=t.slice(f,s).replace(te,rr),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=s+e.length,e})),p+="';\n";var g=fe.call(e,"variable")&&e.variable;if(g){if(qt.test(g))throw new $t(c)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(xt,""):p).replace(At,"$1").replace(St,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ah((function(){return Bt(s,v+"return "+p).apply(i,l)}));if(m.source=p,wl(m))throw m;return m}function ph(t){return Kl(t).toLowerCase()}function dh(t){return Kl(t).toUpperCase()}function vh(t,e,n){if(t=Kl(t),t&&(n||e===i))return Gn(t);if(!t||!(e=Lo(e)))return t;var r=gr(t),o=gr(e),a=Zn(r,o),u=Kn(r,o)+1;return Qo(r,a,u).join("")}function gh(t,e,n){if(t=Kl(t),t&&(n||e===i))return t.slice(0,mr(t)+1);if(!t||!(e=Lo(e)))return t;var r=gr(t),o=Kn(r,gr(e))+1;return Qo(r,0,o).join("")}function mh(t,e,n){if(t=Kl(t),t&&(n||e===i))return t.replace(Ut,"");if(!t||!(e=Lo(e)))return t;var r=gr(t),o=Zn(r,gr(e));return Qo(r,o).join("")}function yh(t,e){var n=E,r=P;if(Sl(e)){var o="separator"in e?e.separator:o;n="length"in e?Gl(e.length):n,r="omission"in e?Lo(e.omission):r}t=Kl(t);var a=t.length;if(or(t)){var u=gr(t);a=u.length}if(n>=a)return t;var s=n-vr(r);if(s<1)return r;var c=u?Qo(u,0,s).join(""):t.slice(0,s);if(o===i)return c+r;if(u&&(s+=c.length-s),Il(o)){if(t.slice(s).search(o)){var l,f=c;o.global||(o=re(o.source,Kl(Qt.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var h=l.index;c=c.slice(0,h===i?s:h)}}else if(t.indexOf(Lo(o),s)!=s){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function wh(t){return t=Kl(t),t&&Ot.test(t)?t.replace(Ct,yr):t}var _h=da((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),bh=pa("toUpperCase");function xh(t,e,n){return t=Kl(t),e=n?i:e,e===i?ar(t)?br(t):Ln(t):t.match(e)||[]}var Ah=bo((function(t,e){try{return wn(t,i,e)}catch(n){return wl(n)?n:new $t(n)}})),Sh=$a((function(t,e){return bn(e,(function(e){e=Tu(e),di(t,e,jc(t[e],t))})),t}));function Ch(t){var e=null==t?0:t.length,n=Fa();return t=e?On(t,(function(t){if("function"!=typeof t[1])throw new oe(s);return[n(t[0]),t[1]]})):[],bo((function(n){var r=-1;while(++r<e){var i=t[r];if(wn(i[0],this,n))return wn(i[1],this,n)}}))}function kh(t){return yi(mi(t,p))}function Oh(t){return function(){return t}}function Eh(t,e){return null==t||t!==t?e:t}var Ph=ya(),Rh=ya(!0);function Th(t){return t}function jh(t){return eo("function"==typeof t?t:mi(t,p))}function Mh(t){return ao(mi(t,p))}function Lh(t,e){return uo(t,mi(e,p))}var Ih=bo((function(t,e){return function(n){return qi(n,t,e)}})),Dh=bo((function(t,e){return function(n){return qi(t,n,e)}}));function Uh(t,e,n){var r=Af(e),i=Mi(e,r);null!=n||Sl(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Mi(e,Af(e)));var o=!(Sl(n)&&"chain"in n)||!!n.chain,a=bl(t);return bn(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,En([this.value()],arguments))})})),t}function $h(){return un._===this&&(un._=ge),this}function Wh(){}function Nh(t){return t=Gl(t),bo((function(e){return lo(e,t)}))}var zh=xa(On),Bh=xa(An),qh=xa(Tn);function Fh(t){return su(t)?zn(Tu(t)):vo(t)}function Hh(t){return function(e){return null==t?i:Li(t,e)}}var Qh=Ca(),Yh=Ca(!0);function Gh(){return[]}function Xh(){return!1}function Vh(){return{}}function Jh(){return""}function Zh(){return!0}function Kh(t,e){if(t=Gl(t),t<1||t>D)return[];var n=W,r=ze(t,W);e=Fa(e),t-=W;var i=Qn(r,e);while(++n<t)e(n);return i}function tp(t){return sl(t)?On(t,Tu):Wl(t)?[t]:ia(Ru(Kl(t)))}function ep(t){var e=++he;return Kl(t)+e}var np=ba((function(t,e){return t+e}),0),rp=Ea("ceil"),ip=ba((function(t,e){return t/e}),1),op=Ea("floor");function ap(t){return t&&t.length?Ci(t,Th,Ui):i}function up(t,e){return t&&t.length?Ci(t,Fa(e,2),Ui):i}function sp(t){return Nn(t,Th)}function cp(t,e){return Nn(t,Fa(e,2))}function lp(t){return t&&t.length?Ci(t,Th,io):i}function fp(t,e){return t&&t.length?Ci(t,Fa(e,2),io):i}var hp=ba((function(t,e){return t*e}),1),pp=Ea("round"),dp=ba((function(t,e){return t-e}),0);function vp(t){return t&&t.length?Hn(t,Th):0}function gp(t,e){return t&&t.length?Hn(t,Fa(e,2)):0}return xr.after=Pc,xr.ary=Rc,xr.assign=tf,xr.assignIn=ef,xr.assignInWith=nf,xr.assignWith=rf,xr.at=of,xr.before=Tc,xr.bind=jc,xr.bindAll=Sh,xr.bindKey=Mc,xr.castArray=Zc,xr.chain=Hs,xr.chunk=Iu,xr.compact=Du,xr.concat=Uu,xr.cond=Ch,xr.conforms=kh,xr.constant=Oh,xr.countBy=nc,xr.create=af,xr.curry=Lc,xr.curryRight=Ic,xr.debounce=Dc,xr.defaults=uf,xr.defaultsDeep=sf,xr.defer=Uc,xr.delay=$c,xr.difference=$u,xr.differenceBy=Wu,xr.differenceWith=Nu,xr.drop=zu,xr.dropRight=Bu,xr.dropRightWhile=qu,xr.dropWhile=Fu,xr.fill=Hu,xr.filter=ic,xr.flatMap=uc,xr.flatMapDeep=sc,xr.flatMapDepth=cc,xr.flatten=Gu,xr.flattenDeep=Xu,xr.flattenDepth=Vu,xr.flip=Wc,xr.flow=Ph,xr.flowRight=Rh,xr.fromPairs=Ju,xr.functions=vf,xr.functionsIn=gf,xr.groupBy=hc,xr.initial=ts,xr.intersection=es,xr.intersectionBy=ns,xr.intersectionWith=rs,xr.invert=_f,xr.invertBy=bf,xr.invokeMap=dc,xr.iteratee=jh,xr.keyBy=vc,xr.keys=Af,xr.keysIn=Sf,xr.map=gc,xr.mapKeys=Cf,xr.mapValues=kf,xr.matches=Mh,xr.matchesProperty=Lh,xr.memoize=Nc,xr.merge=Of,xr.mergeWith=Ef,xr.method=Ih,xr.methodOf=Dh,xr.mixin=Uh,xr.negate=zc,xr.nthArg=Nh,xr.omit=Pf,xr.omitBy=Rf,xr.once=Bc,xr.orderBy=mc,xr.over=zh,xr.overArgs=qc,xr.overEvery=Bh,xr.overSome=qh,xr.partial=Fc,xr.partialRight=Hc,xr.partition=yc,xr.pick=Tf,xr.pickBy=jf,xr.property=Fh,xr.propertyOf=Hh,xr.pull=ss,xr.pullAll=cs,xr.pullAllBy=ls,xr.pullAllWith=fs,xr.pullAt=hs,xr.range=Qh,xr.rangeRight=Yh,xr.rearg=Qc,xr.reject=bc,xr.remove=ps,xr.rest=Yc,xr.reverse=ds,xr.sampleSize=Ac,xr.set=Lf,xr.setWith=If,xr.shuffle=Sc,xr.slice=vs,xr.sortBy=Oc,xr.sortedUniq=xs,xr.sortedUniqBy=As,xr.split=ch,xr.spread=Gc,xr.tail=Ss,xr.take=Cs,xr.takeRight=ks,xr.takeRightWhile=Os,xr.takeWhile=Es,xr.tap=Qs,xr.throttle=Xc,xr.thru=Ys,xr.toArray=Ql,xr.toPairs=Df,xr.toPairsIn=Uf,xr.toPath=tp,xr.toPlainObject=Jl,xr.transform=$f,xr.unary=Vc,xr.union=Ps,xr.unionBy=Rs,xr.unionWith=Ts,xr.uniq=js,xr.uniqBy=Ms,xr.uniqWith=Ls,xr.unset=Wf,xr.unzip=Is,xr.unzipWith=Ds,xr.update=Nf,xr.updateWith=zf,xr.values=Bf,xr.valuesIn=qf,xr.without=Us,xr.words=xh,xr.wrap=Jc,xr.xor=$s,xr.xorBy=Ws,xr.xorWith=Ns,xr.zip=zs,xr.zipObject=Bs,xr.zipObjectDeep=qs,xr.zipWith=Fs,xr.entries=Df,xr.entriesIn=Uf,xr.extend=ef,xr.extendWith=nf,Uh(xr,xr),xr.add=np,xr.attempt=Ah,xr.camelCase=Yf,xr.capitalize=Gf,xr.ceil=rp,xr.clamp=Ff,xr.clone=Kc,xr.cloneDeep=el,xr.cloneDeepWith=nl,xr.cloneWith=tl,xr.conformsTo=rl,xr.deburr=Xf,xr.defaultTo=Eh,xr.divide=ip,xr.endsWith=Vf,xr.eq=il,xr.escape=Jf,xr.escapeRegExp=Zf,xr.every=rc,xr.find=oc,xr.findIndex=Qu,xr.findKey=cf,xr.findLast=ac,xr.findLastIndex=Yu,xr.findLastKey=lf,xr.floor=op,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=hf,xr.forOwn=pf,xr.forOwnRight=df,xr.get=mf,xr.gt=ol,xr.gte=al,xr.has=yf,xr.hasIn=wf,xr.head=Zu,xr.identity=Th,xr.includes=pc,xr.indexOf=Ku,xr.inRange=Hf,xr.invoke=xf,xr.isArguments=ul,xr.isArray=sl,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=hl,xr.isBuffer=pl,xr.isDate=dl,xr.isElement=vl,xr.isEmpty=gl,xr.isEqual=ml,xr.isEqualWith=yl,xr.isError=wl,xr.isFinite=_l,xr.isFunction=bl,xr.isInteger=xl,xr.isLength=Al,xr.isMap=kl,xr.isMatch=Ol,xr.isMatchWith=El,xr.isNaN=Pl,xr.isNative=Rl,xr.isNil=jl,xr.isNull=Tl,xr.isNumber=Ml,xr.isObject=Sl,xr.isObjectLike=Cl,xr.isPlainObject=Ll,xr.isRegExp=Il,xr.isSafeInteger=Dl,xr.isSet=Ul,xr.isString=$l,xr.isSymbol=Wl,xr.isTypedArray=Nl,xr.isUndefined=zl,xr.isWeakMap=Bl,xr.isWeakSet=ql,xr.join=is,xr.kebabCase=Kf,xr.last=os,xr.lastIndexOf=as,xr.lowerCase=th,xr.lowerFirst=eh,xr.lt=Fl,xr.lte=Hl,xr.max=ap,xr.maxBy=up,xr.mean=sp,xr.meanBy=cp,xr.min=lp,xr.minBy=fp,xr.stubArray=Gh,xr.stubFalse=Xh,xr.stubObject=Vh,xr.stubString=Jh,xr.stubTrue=Zh,xr.multiply=hp,xr.nth=us,xr.noConflict=$h,xr.noop=Wh,xr.now=Ec,xr.pad=nh,xr.padEnd=rh,xr.padStart=ih,xr.parseInt=oh,xr.random=Qf,xr.reduce=wc,xr.reduceRight=_c,xr.repeat=ah,xr.replace=uh,xr.result=Mf,xr.round=pp,xr.runInContext=t,xr.sample=xc,xr.size=Cc,xr.snakeCase=sh,xr.some=kc,xr.sortedIndex=gs,xr.sortedIndexBy=ms,xr.sortedIndexOf=ys,xr.sortedLastIndex=ws,xr.sortedLastIndexBy=_s,xr.sortedLastIndexOf=bs,xr.startCase=lh,xr.startsWith=fh,xr.subtract=dp,xr.sum=vp,xr.sumBy=gp,xr.template=hh,xr.times=Kh,xr.toFinite=Yl,xr.toInteger=Gl,xr.toLength=Xl,xr.toLower=ph,xr.toNumber=Vl,xr.toSafeInteger=Zl,xr.toString=Kl,xr.toUpper=dh,xr.trim=vh,xr.trimEnd=gh,xr.trimStart=mh,xr.truncate=yh,xr.unescape=wh,xr.uniqueId=ep,xr.upperCase=_h,xr.upperFirst=bh,xr.each=lc,xr.eachRight=fc,xr.first=Zu,Uh(xr,function(){var t={};return Ti(xr,(function(e,n){fe.call(xr.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),xr.VERSION=o,bn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){xr[t].placeholder=xr})),bn(["drop","take"],(function(t,e){Or.prototype[t]=function(n){n=n===i?1:Ne(Gl(n),0);var r=this.__filtered__&&!e?new Or(this):this.clone();return r.__filtered__?r.__takeCount__=ze(n,r.__takeCount__):r.__views__.push({size:ze(n,W),type:t+(r.__dir__<0?"Right":"")}),r},Or.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),bn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==j||n==L;Or.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fa(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),bn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Or.prototype[t]=function(){return this[n](1).value()[0]}})),bn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Or.prototype[t]=function(){return this.__filtered__?new Or(this):this[n](1)}})),Or.prototype.compact=function(){return this.filter(Th)},Or.prototype.find=function(t){return this.filter(t).head()},Or.prototype.findLast=function(t){return this.reverse().find(t)},Or.prototype.invokeMap=bo((function(t,e){return"function"==typeof t?new Or(this):this.map((function(n){return qi(n,t,e)}))})),Or.prototype.reject=function(t){return this.filter(zc(Fa(t)))},Or.prototype.slice=function(t,e){t=Gl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Or(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(e=Gl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Or.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Or.prototype.toArray=function(){return this.take(W)},Ti(Or.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=xr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(xr.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof Or,c=u[0],l=s||sl(e),f=function(t){var e=o.apply(xr,En([t],u));return r&&h?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var h=this.__chain__,p=!!this.__actions__.length,d=a&&!h,v=s&&!p;if(!a&&l){e=v?e:new Or(this);var g=t.apply(e,u);return g.__actions__.push({func:Ys,args:[f],thisArg:i}),new kr(g,h)}return d&&v?t.apply(this,u):(g=this.thru(f),d?r?g.value()[0]:g.value():g)})})),bn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);xr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(sl(i)?i:[],t)}return this[n]((function(n){return e.apply(sl(n)?n:[],t)}))}})),Ti(Or.prototype,(function(t,e){var n=xr[e];if(n){var r=n.name+"";fe.call(cn,r)||(cn[r]=[]),cn[r].push({name:e,func:n})}})),cn[wa(i,w).name]=[{name:"wrapper",func:i}],Or.prototype.clone=Er,Or.prototype.reverse=Pr,Or.prototype.value=Rr,xr.prototype.at=Gs,xr.prototype.chain=Xs,xr.prototype.commit=Vs,xr.prototype.next=Js,xr.prototype.plant=Ks,xr.prototype.reverse=tc,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=ec,xr.prototype.first=xr.prototype.head,Oe&&(xr.prototype[Oe]=Zs),xr},Ar=xr();un._=Ar,r=function(){return Ar}.call(e,n,e,t),r===i||(t.exports=r)}.call(this)},2003:(t,e,n)=>{var r=n(7211);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4825).A;i("ddc393e0",r,!0,{sourceMap:!1,shadowMode:!1})},4162:(t,e,n)=>{var r=n(8921);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4825).A;i("6132c87d",r,!0,{sourceMap:!1,shadowMode:!1})},4825:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],u=o[1],s=o[2],c=o[3],l={id:t+":"+i,css:u,media:s,sourceMap:c};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}n.d(e,{A:()=>d});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,c=!1,l=function(){},f=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,e,n,i){c=n,f=i||{};var a=r(t,e);return v(a),function(e){for(var n=[],i=0;i<a.length;i++){var u=a[i],s=o[u.id];s.refs--,n.push(s)}e?(a=r(t,e),v(a)):a=[];for(i=0;i<n.length;i++){s=n[i];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete o[s.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+h+'~="'+t.id+'"]');if(r){if(c)return l;r.parentNode.removeChild(r)}if(p){var i=s++;r=u||(u=g()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=g(),e=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function _(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),f.ssrId&&t.setAttribute(h,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},4977:(t,e,n)=>{"use strict";var r=n(4188),i=n(3174),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},4121:(t,e,n)=>{"use strict";var r=n(6712),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},5458:(t,e,n)=>{"use strict";var r=n(4282),i=n(7065),o=n(4466).f,a=r("unscopables"),u=Array.prototype;void 0===u[a]&&o(u,a,{configurable:!0,value:i(null)}),t.exports=function(t){u[a][t]=!0}},286:(t,e,n)=>{"use strict";var r=n(4578),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},3770:(t,e,n)=>{"use strict";var r=n(831),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},6859:(t,e,n)=>{"use strict";var r=n(5821),i=n(9944),o=n(3628),a=n(4412),u=n(8146),s=n(866),c=n(9389),l=n(4417),f=n(2350),h=n(9874),p=Array;t.exports=function(t){var e=o(t),n=s(this),d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,d>2?arguments[2]:void 0));var m,y,w,_,b,x,A=h(e),S=0;if(!A||this===p&&u(A))for(m=c(e),y=n?new this(m):p(m);m>S;S++)x=g?v(e[S],S):e[S],l(y,S,x);else for(y=n?new this:[],_=f(e,A),b=_.next;!(w=i(b,_)).done;S++)x=g?a(_,v,[w.value,S],!0):w.value,l(y,S,x);return y.length=S,y}},1458:(t,e,n)=>{"use strict";var r=n(380),i=n(675),o=n(9389),a=function(t){return function(e,n,a){var u=r(e),s=o(u);if(0===s)return!t&&-1;var c,l=i(a,s);if(t&&n!==n){while(s>l)if(c=u[l++],c!==c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},7825:(t,e,n)=>{"use strict";var r=n(6881);t.exports=r([].slice)},9295:(t,e,n)=>{"use strict";var r=n(7825),i=Math.floor,o=function(t,e){var n=t.length;if(n<8){var a,u,s=1;while(s<n){u=s,a=t[s];while(u&&e(t[u-1],a)>0)t[u]=t[--u];u!==s++&&(t[u]=a)}}else{var c=i(n/2),l=o(r(t,0,c),e),f=o(r(t,c),e),h=l.length,p=f.length,d=0,v=0;while(d<h||v<p)t[d+v]=d<h&&v<p?e(l[d],f[v])<=0?l[d++]:f[v++]:d<h?l[d++]:f[v++]}return t};t.exports=o},4412:(t,e,n)=>{"use strict";var r=n(3770),i=n(8500);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){i(t,"throw",a)}}},8689:(t,e,n)=>{"use strict";var r=n(6881),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},5438:(t,e,n)=>{"use strict";var r=n(9345),i=n(4188),o=n(8689),a=n(4282),u=a("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=s(t),u))?n:c?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},8657:(t,e,n)=>{"use strict";var r=n(4418),i=n(3168),o=n(9304),a=n(4466);t.exports=function(t,e,n){for(var u=i(e),s=a.f,c=o.f,l=0;l<u.length;l++){var f=u[l];r(t,f)||n&&r(n,f)||s(t,f,c(e,f))}}},680:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6224:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},8088:(t,e,n)=>{"use strict";var r=n(6893),i=n(4466),o=n(9123);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9123:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4417:(t,e,n)=>{"use strict";var r=n(6893),i=n(4466),o=n(9123);t.exports=function(t,e,n){r?i.f(t,e,o(0,n)):t[e]=n}},997:(t,e,n)=>{"use strict";var r=n(4530),i=n(4466);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},7509:(t,e,n)=>{"use strict";var r=n(4188),i=n(4466),o=n(4530),a=n(4798);t.exports=function(t,e,n,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:e;if(r(n)&&o(n,c,u),u.global)s?t[e]=n:a(e,n);else{try{u.unsafe?t[e]&&(s=!0):delete t[e]}catch(l){}s?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},4320:(t,e,n)=>{"use strict";var r=n(7509);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},4798:(t,e,n)=>{"use strict";var r=n(9117),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6893:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5926:(t,e,n)=>{"use strict";var r=n(9117),i=n(831),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8015:t=>{"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},1274:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8060:(t,e,n)=>{"use strict";var r=n(9117),i=r.navigator,o=i&&i.userAgent;t.exports=o?String(o):""},3008:(t,e,n)=>{"use strict";var r,i,o=n(9117),a=n(8060),u=o.process,s=o.Deno,c=u&&u.versions||s&&s.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},7308:(t,e,n)=>{"use strict";var r=n(6881),i=Error,o=r("".replace),a=function(t){return String(new i(t).stack)}("zxcasd"),u=/\n\s*at [^:]*:[^\n]*/,s=u.test(a);t.exports=function(t,e){if(s&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,u,"");return t}},5613:(t,e,n)=>{"use strict";var r=n(9117),i=n(9304).f,o=n(8088),a=n(7509),u=n(4798),s=n(8657),c=n(8489);t.exports=function(t,e){var n,l,f,h,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||u(v,{}):r[v]&&r[v].prototype,l)for(f in e){if(p=e[f],t.dontCallGetSet?(d=i(l,f),h=d&&d.value):h=l[f],n=c(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;s(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(l,f,p,t)}}},5234:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},5821:(t,e,n)=>{"use strict";var r=n(5691),i=n(4977),o=n(9055),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},9055:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9944:(t,e,n)=>{"use strict";var r=n(9055),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},2735:(t,e,n)=>{"use strict";var r=n(6893),i=n(4418),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=i(o,"name"),s=u&&"something"===function(){}.name,c=u&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:c}},1025:(t,e,n)=>{"use strict";var r=n(6881),i=n(4977);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},5691:(t,e,n)=>{"use strict";var r=n(8689),i=n(6881);t.exports=function(t){if("Function"===r(t))return i(t)}},6881:(t,e,n)=>{"use strict";var r=n(9055),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},5604:(t,e,n)=>{"use strict";var r=n(9117),i=n(4188),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},9874:(t,e,n)=>{"use strict";var r=n(5438),i=n(2913),o=n(4318),a=n(9164),u=n(4282),s=u("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},2350:(t,e,n)=>{"use strict";var r=n(9944),i=n(4977),o=n(3770),a=n(3174),u=n(9874),s=TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(i(n))return o(r(n,t));throw new s(a(t)+" is not iterable")}},2913:(t,e,n)=>{"use strict";var r=n(4977),i=n(4318);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},9117:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4418:(t,e,n)=>{"use strict";var r=n(6881),i=n(3628),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7588:t=>{"use strict";t.exports={}},7458:(t,e,n)=>{"use strict";var r=n(5604);t.exports=r("document","documentElement")},9622:(t,e,n)=>{"use strict";var r=n(6893),i=n(5234),o=n(5926);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7568:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(8689),a=Object,u=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?u(t,""):a(t)}:a},4166:(t,e,n)=>{"use strict";var r=n(4188),i=n(831),o=n(5054);t.exports=function(t,e,n){var a,u;return o&&r(a=e.constructor)&&a!==n&&i(u=a.prototype)&&u!==n.prototype&&o(t,u),t}},3029:(t,e,n)=>{"use strict";var r=n(6881),i=n(4188),o=n(2694),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},3086:(t,e,n)=>{"use strict";var r,i,o,a=n(5945),u=n(9117),s=n(831),c=n(8088),l=n(4418),f=n(2694),h=n(168),p=n(7588),d="Object already initialized",v=u.TypeError,g=u.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var w=f.state||(f.state=new g);w.get=w.get,w.has=w.has,w.set=w.set,r=function(t,e){if(w.has(t))throw new v(d);return e.facade=t,w.set(t,e),e},i=function(t){return w.get(t)||{}},o=function(t){return w.has(t)}}else{var _=h("state");p[_]=!0,r=function(t,e){if(l(t,_))throw new v(d);return e.facade=t,c(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},o=function(t){return l(t,_)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},8146:(t,e,n)=>{"use strict";var r=n(4282),i=n(9164),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4188:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},866:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(4188),a=n(5438),u=n(5604),s=n(3029),c=function(){},l=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),p=!f.test(c),d=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,s(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},8489:(t,e,n)=>{"use strict";var r=n(5234),i=n(4188),o=/#|\.prototype\./,a=function(t,e){var n=s[u(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4318:t=>{"use strict";t.exports=function(t){return null===t||void 0===t}},831:(t,e,n)=>{"use strict";var r=n(4188);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6712:(t,e,n)=>{"use strict";var r=n(831);t.exports=function(t){return r(t)||null===t}},1942:t=>{"use strict";t.exports=!1},6032:(t,e,n)=>{"use strict";var r=n(5604),i=n(4188),o=n(4578),a=n(9809),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,u(t))}},8500:(t,e,n)=>{"use strict";var r=n(9944),i=n(3770),o=n(2913);t.exports=function(t,e,n){var a,u;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(s){u=!0,a=s}if("throw"===e)throw n;if(u)throw a;return i(a),n}},9383:(t,e,n)=>{"use strict";var r=n(2037).IteratorPrototype,i=n(7065),o=n(9123),a=n(3754),u=n(9164),s=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),u[l]=s,t}},3217:(t,e,n)=>{"use strict";var r=n(5613),i=n(9944),o=n(1942),a=n(2735),u=n(4188),s=n(9383),c=n(1786),l=n(5054),f=n(3754),h=n(8088),p=n(7509),d=n(4282),v=n(9164),g=n(2037),m=a.PROPER,y=a.CONFIGURABLE,w=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,b=d("iterator"),x="keys",A="values",S="entries",C=function(){return this};t.exports=function(t,e,n,a,d,g,k){s(n,e,a);var O,E,P,R=function(t){if(t===d&&I)return I;if(!_&&t&&t in M)return M[t];switch(t){case x:return function(){return new n(this,t)};case A:return function(){return new n(this,t)};case S:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",j=!1,M=t.prototype,L=M[b]||M["@@iterator"]||d&&M[d],I=!_&&L||R(d),D="Array"===e&&M.entries||L;if(D&&(O=c(D.call(new t)),O!==Object.prototype&&O.next&&(o||c(O)===w||(l?l(O,w):u(O[b])||p(O,b,C)),f(O,T,!0,!0),o&&(v[T]=C))),m&&d===A&&L&&L.name!==A&&(!o&&y?h(M,"name",A):(j=!0,I=function(){return i(L,this)})),d)if(E={values:R(A),keys:g?I:R(x),entries:R(S)},k)for(P in E)(_||j||!(P in M))&&p(M,P,E[P]);else r({target:e,proto:!0,forced:_||j},E);return o&&!k||M[b]===I||p(M,b,I,{name:d}),v[e]=I,E}},2037:(t,e,n)=>{"use strict";var r,i,o,a=n(5234),u=n(4188),s=n(831),c=n(7065),l=n(1786),f=n(7509),h=n(4282),p=n(1942),d=h("iterator"),v=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):v=!0);var g=!s(r)||a((function(){var t={};return r[d].call(t)!==t}));g?r={}:p&&(r=c(r)),u(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},9164:t=>{"use strict";t.exports={}},9389:(t,e,n)=>{"use strict";var r=n(7611);t.exports=function(t){return r(t.length)}},4530:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(4188),a=n(4418),u=n(6893),s=n(2735).CONFIGURABLE,c=n(3029),l=n(3086),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),y=u&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),w=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||s&&t.name!==e)&&(u?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=f(t);return a(r,"source")||(r.source=m(w,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return o(this)&&h(this).source||c(this)}),"toString")},142:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},9866:(t,e,n)=>{"use strict";var r=n(2618);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},9456:(t,e,n)=>{"use strict";var r=n(6893),i=n(6881),o=n(9944),a=n(5234),u=n(7137),s=n(156),c=n(4416),l=n(3628),f=n(7568),h=Object.assign,p=Object.defineProperty,d=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==h({},t)[n]||u(h({},e)).join("")!==i}))?function(t,e){var n=l(t),i=arguments.length,a=1,h=s.f,p=c.f;while(i>a){var v,g=f(arguments[a++]),m=h?d(u(g),h(g)):u(g),y=m.length,w=0;while(y>w)v=m[w++],r&&!o(p,g,v)||(n[v]=g[v])}return n}:h},7065:(t,e,n)=>{"use strict";var r,i=n(3770),o=n(30),a=n(1274),u=n(7588),s=n(7458),c=n(5926),l=n(168),f=">",h="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return h+d+f+t+h+"/"+d+f},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&r?y(r):w():y(r);var t=a.length;while(t--)delete _[p][a[t]];return _()};u[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=_(),void 0===e?n:o.f(n,e)}},30:(t,e,n)=>{"use strict";var r=n(6893),i=n(3315),o=n(4466),a=n(3770),u=n(380),s=n(7137);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=u(e),i=s(e),c=i.length,l=0;while(c>l)o.f(t,n=i[l++],r[n]);return t}},4466:(t,e,n)=>{"use strict";var r=n(6893),i=n(9622),o=n(3315),a=n(3770),u=n(2344),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=u(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=u(e),a(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9304:(t,e,n)=>{"use strict";var r=n(6893),i=n(9944),o=n(4416),a=n(9123),u=n(380),s=n(2344),c=n(4418),l=n(9622),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=s(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},5629:(t,e,n)=>{"use strict";var r=n(1843),i=n(1274),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},156:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},1786:(t,e,n)=>{"use strict";var r=n(4418),i=n(4188),o=n(3628),a=n(168),u=n(680),s=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var e=o(t);if(r(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},4578:(t,e,n)=>{"use strict";var r=n(6881);t.exports=r({}.isPrototypeOf)},1843:(t,e,n)=>{"use strict";var r=n(6881),i=n(4418),o=n(380),a=n(1458).indexOf,u=n(7588),s=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(u,n)&&i(r,n)&&s(l,n);while(e.length>c)i(r,n=e[c++])&&(~a(l,n)||s(l,n));return l}},7137:(t,e,n)=>{"use strict";var r=n(1843),i=n(1274);t.exports=Object.keys||function(t){return r(t,i)}},4416:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},5054:(t,e,n)=>{"use strict";var r=n(1025),i=n(831),o=n(9509),a=n(4121);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(u){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},2287:(t,e,n)=>{"use strict";var r=n(9944),i=n(4188),o=n(831),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&i(n=t.toString)&&!o(u=r(n,t)))return u;if(i(n=t.valueOf)&&!o(u=r(n,t)))return u;if("string"!==e&&i(n=t.toString)&&!o(u=r(n,t)))return u;throw new a("Can't convert object to primitive value")}},3168:(t,e,n)=>{"use strict";var r=n(5604),i=n(6881),o=n(5629),a=n(156),u=n(3770),s=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=a.f;return n?s(e,n(t)):e}},9509:(t,e,n)=>{"use strict";var r=n(4318),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},5268:(t,e,n)=>{"use strict";var r=n(9117),i=n(6893),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return r[t];var e=o(r,t);return e&&e.value}},3754:(t,e,n)=>{"use strict";var r=n(4466).f,i=n(4418),o=n(4282),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},168:(t,e,n)=>{"use strict";var r=n(746),i=n(6209),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},2694:(t,e,n)=>{"use strict";var r=n(1942),i=n(9117),o=n(4798),a="__core-js_shared__",u=t.exports=i[a]||o(a,{});(u.versions||(u.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},746:(t,e,n)=>{"use strict";var r=n(2694);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4212:(t,e,n)=>{"use strict";var r=n(6881),i=n(6744),o=n(2618),a=n(9509),u=r("".charAt),s=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),p=f.length;return h<0||h>=p?t?"":void 0:(r=s(f,h),r<55296||r>56319||h+1===p||(l=s(f,h+1))<56320||l>57343?t?u(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},6294:(t,e,n)=>{"use strict";var r=n(6881),i=2147483647,o=36,a=1,u=26,s=38,c=700,l=72,f=128,h="-",p=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",g=o-a,m=RangeError,y=r(d.exec),w=Math.floor,_=String.fromCharCode,b=r("".charCodeAt),x=r([].join),A=r([].push),S=r("".replace),C=r("".split),k=r("".toLowerCase),O=function(t){var e=[],n=0,r=t.length;while(n<r){var i=b(t,n++);if(i>=55296&&i<=56319&&n<r){var o=b(t,n++);56320===(64512&o)?A(e,((1023&i)<<10)+(1023&o)+65536):(A(e,i),n--)}else A(e,i)}return e},E=function(t){return t+22+75*(t<26)},P=function(t,e,n){var r=0;t=n?w(t/c):t>>1,t+=w(t/e);while(t>g*u>>1)t=w(t/g),r+=o;return w(r+(g+1)*t/(t+s))},R=function(t){var e=[];t=O(t);var n,r,s=t.length,c=f,p=0,d=l;for(n=0;n<t.length;n++)r=t[n],r<128&&A(e,_(r));var g=e.length,y=g;g&&A(e,h);while(y<s){var b=i;for(n=0;n<t.length;n++)r=t[n],r>=c&&r<b&&(b=r);var S=y+1;if(b-c>w((i-p)/S))throw new m(v);for(p+=(b-c)*S,c=b,n=0;n<t.length;n++){if(r=t[n],r<c&&++p>i)throw new m(v);if(r===c){var C=p,k=o;while(1){var R=k<=d?a:k>=d+u?u:k-d;if(C<R)break;var T=C-R,j=o-R;A(e,_(E(R+T%j))),C=w(T/j),k+=o}A(e,_(E(C))),d=P(p,S,y===g),p=0,y++}}p++,c++}return x(e,"")};t.exports=function(t){var e,n,r=[],i=C(S(k(t),d,"."),".");for(e=0;e<i.length;e++)n=i[e],A(r,y(p,n)?"xn--"+R(n):n);return x(r,".")}},8944:(t,e,n)=>{"use strict";var r=n(3008),i=n(5234),o=n(9117),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},675:(t,e,n)=>{"use strict";var r=n(6744),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},380:(t,e,n)=>{"use strict";var r=n(7568),i=n(9509);t.exports=function(t){return r(i(t))}},6744:(t,e,n)=>{"use strict";var r=n(142);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7611:(t,e,n)=>{"use strict";var r=n(6744),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},3628:(t,e,n)=>{"use strict";var r=n(9509),i=Object;t.exports=function(t){return i(r(t))}},290:(t,e,n)=>{"use strict";var r=n(9944),i=n(831),o=n(6032),a=n(2913),u=n(2287),s=n(4282),c=TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,s=a(t,l);if(s){if(void 0===e&&(e="default"),n=r(s,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},2344:(t,e,n)=>{"use strict";var r=n(290),i=n(6032);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},9345:(t,e,n)=>{"use strict";var r=n(4282),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},2618:(t,e,n)=>{"use strict";var r=n(5438),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},3174:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},6209:(t,e,n)=>{"use strict";var r=n(6881),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},6301:(t,e,n)=>{"use strict";var r=n(5234),i=n(4282),o=n(6893),a=n(1942),u=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),r+=n+t})),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},9809:(t,e,n)=>{"use strict";var r=n(8944);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3315:(t,e,n)=>{"use strict";var r=n(6893),i=n(5234);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9445:t=>{"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},5945:(t,e,n)=>{"use strict";var r=n(9117),i=n(4188),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},4282:(t,e,n)=>{"use strict";var r=n(9117),i=n(746),o=n(4418),a=n(6209),u=n(8944),s=n(9809),c=r.Symbol,l=i("wks"),f=s?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=u&&o(c,t)?c[t]:f("Symbol."+t)),l[t]}},3873:(t,e,n)=>{"use strict";var r=n(380),i=n(5458),o=n(9164),a=n(3086),u=n(4466).f,s=n(3217),c=n(6224),l=n(1942),f=n(6893),h="Array Iterator",p=a.set,d=a.getterFor(h);t.exports=s(Array,"Array",(function(t,e){p(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(g){}},3536:(t,e,n)=>{"use strict";var r=n(5613),i=n(6881),o=n(675),a=RangeError,u=String.fromCharCode,s=String.fromCodePoint,c=i([].join),l=!!s&&1!==s.length;r({target:"String",stat:!0,arity:1,forced:l},{fromCodePoint:function(t){var e,n=[],r=arguments.length,i=0;while(r>i){if(e=+arguments[i++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");n[i]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},1011:(t,e,n)=>{"use strict";var r=n(4212).charAt,i=n(2618),o=n(3086),a=n(3217),u=n(6224),s="String Iterator",c=o.set,l=o.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?u(void 0,!0):(t=r(n,i),e.index+=t.length,u(t,!1))}))},7182:(t,e,n)=>{"use strict";var r=n(5613),i=n(9117),o=n(5604),a=n(9123),u=n(4466).f,s=n(4418),c=n(286),l=n(4166),f=n(9866),h=n(8015),p=n(7308),d=n(6893),v=n(1942),g="DOMException",m=o("Error"),y=o(g),w=function(){c(this,_);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new y(e,n),i=new m(e);return i.name=g,u(r,"stack",a(1,p(i.stack,1))),l(r,this,w),r},_=w.prototype=y.prototype,b="stack"in new m(g),x="stack"in new y(1,2),A=y&&d&&Object.getOwnPropertyDescriptor(i,g),S=!!A&&!(A.writable&&A.configurable),C=b&&!S&&!x;r({global:!0,constructor:!0,forced:v||C},{DOMException:C?w:y});var k=o(g),O=k.prototype;if(O.constructor!==k)for(var E in v||u(O,"constructor",a(1,k)),h)if(s(h,E)){var P=h[E],R=P.s;s(k,R)||u(k,R,a(6,P.c))}},1615:(t,e,n)=>{"use strict";n(3873),n(3536);var r=n(5613),i=n(9117),o=n(5268),a=n(5604),u=n(9944),s=n(6881),c=n(6893),l=n(6301),f=n(7509),h=n(997),p=n(4320),d=n(3754),v=n(9383),g=n(3086),m=n(286),y=n(4188),w=n(4418),_=n(5821),b=n(5438),x=n(3770),A=n(831),S=n(2618),C=n(7065),k=n(9123),O=n(2350),E=n(9874),P=n(6224),R=n(9445),T=n(4282),j=n(9295),M=T("iterator"),L="URLSearchParams",I=L+"Iterator",D=g.set,U=g.getterFor(L),$=g.getterFor(I),W=o("fetch"),N=o("Request"),z=o("Headers"),B=N&&N.prototype,q=z&&z.prototype,F=i.TypeError,H=i.encodeURIComponent,Q=String.fromCharCode,Y=a("String","fromCodePoint"),G=parseInt,X=s("".charAt),V=s([].join),J=s([].push),Z=s("".replace),K=s([].shift),tt=s([].splice),et=s("".split),nt=s("".slice),rt=s(/./.exec),it=/\+/g,ot="�",at=/^[0-9a-f]+$/i,ut=function(t,e){var n=nt(t,e,e+2);return rt(at,n)?G(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&0!==(t&n);n>>=1)e++;return e},ct=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3];break}return e>1114111?null:e},lt=function(t){t=Z(t,it," ");var e=t.length,n="",r=0;while(r<e){var i=X(t,r);if("%"===i){if("%"===X(t,r+1)||r+3>e){n+="%",r++;continue}var o=ut(t,r+1);if(o!==o){n+=i,r++;continue}r+=2;var a=st(o);if(0===a)i=Q(o);else{if(1===a||a>4){n+=ot,r++;continue}var u=[o],s=1;while(s<a){if(r++,r+3>e||"%"!==X(t,r))break;var c=ut(t,r+1);if(c!==c){r+=3;break}if(c>191||c<128)break;J(u,c),r+=2,s++}if(u.length!==a){n+=ot;continue}var l=ct(u);null===l?n+=ot:i=Y(l)}}n+=i,r++}return n},ft=/[!'()~]|%20/g,ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pt=function(t){return ht[t]},dt=function(t){return Z(H(t),ft,pt)},vt=v((function(t,e){D(this,{type:I,target:U(t).entries,index:0,kind:e})}),L,(function(){var t=$(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,P(void 0,!0);var r=e[n];switch(t.kind){case"keys":return P(r.key,!1);case"values":return P(r.value,!1)}return P([r.key,r.value],!1)}),!0),gt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?nt(t,1):t:S(t)))};gt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,a,s,c=this.entries,l=E(t);if(l){e=O(t,l),n=e.next;while(!(r=u(n,e)).done){if(i=O(x(r.value)),o=i.next,(a=u(o,i)).done||(s=u(o,i)).done||!u(o,i).done)throw new F("Expected sequence with length 2");J(c,{key:S(a.value),value:S(s.value)})}}else for(var f in t)w(t,f)&&J(c,{key:f,value:S(t[f])})},parseQuery:function(t){if(t){var e,n,r=this.entries,i=et(t,"&"),o=0;while(o<i.length)e=i[o++],e.length&&(n=et(e,"="),J(r,{key:lt(K(n)),value:lt(V(n,"="))}))}},serialize:function(){var t,e=this.entries,n=[],r=0;while(r<e.length)t=e[r++],J(n,dt(t.key)+"="+dt(t.value));return V(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){m(this,yt);var t=arguments.length>0?arguments[0]:void 0,e=D(this,new gt(t));c||(this.size=e.entries.length)},yt=mt.prototype;if(p(yt,{append:function(t,e){var n=U(this);R(arguments.length,2),J(n.entries,{key:S(t),value:S(e)}),c||this.length++,n.updateURL()},delete:function(t){var e=U(this),n=R(arguments.length,1),r=e.entries,i=S(t),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),u=0;while(u<r.length){var s=r[u];if(s.key!==i||void 0!==a&&s.value!==a)u++;else if(tt(r,u,1),void 0!==a)break}c||(this.size=r.length),e.updateURL()},get:function(t){var e=U(this).entries;R(arguments.length,1);for(var n=S(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=U(this).entries;R(arguments.length,1);for(var n=S(t),r=[],i=0;i<e.length;i++)e[i].key===n&&J(r,e[i].value);return r},has:function(t){var e=U(this).entries,n=R(arguments.length,1),r=S(t),i=n<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;while(a<e.length){var u=e[a++];if(u.key===r&&(void 0===o||u.value===o))return!0}return!1},set:function(t,e){var n=U(this);R(arguments.length,1);for(var r,i=n.entries,o=!1,a=S(t),u=S(e),s=0;s<i.length;s++)r=i[s],r.key===a&&(o?tt(i,s--,1):(o=!0,r.value=u));o||J(i,{key:a,value:u}),c||(this.size=i.length),n.updateURL()},sort:function(){var t=U(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){var e,n=U(this).entries,r=_(t,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)e=n[i++],r(e.value,e.key,this)},keys:function(){return new vt(this,"keys")},values:function(){return new vt(this,"values")},entries:function(){return new vt(this,"entries")}},{enumerable:!0}),f(yt,M,yt.entries,{name:"entries"}),f(yt,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),c&&h(yt,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),d(mt,L),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:mt}),!l&&y(z)){var wt=s(q.has),_t=s(q.set),bt=function(t){if(A(t)){var e,n=t.body;if(b(n)===L)return e=t.headers?new z(t.headers):new z,wt(e,"content-type")||_t(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(t,{body:k(0,S(n)),headers:k(0,e)})}return t};if(y(W)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return W(t,arguments.length>1?bt(arguments[1]):{})}}),y(N)){var xt=function(t){return m(this,B),new N(t,arguments.length>1?bt(arguments[1]):{})};B.constructor=xt,xt.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:mt,getState:U}},1412:(t,e,n)=>{"use strict";var r=n(7509),i=n(6881),o=n(2618),a=n(9445),u=URLSearchParams,s=u.prototype,c=i(s.append),l=i(s["delete"]),f=i(s.forEach),h=i([].push),p=new u("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(s,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){h(r,{key:e,value:t})})),a(e,1);var i,u=o(t),s=o(n),p=0,d=0,v=!1,g=r.length;while(p<g)i=r[p++],v||i.key===u?(v=!0,l(this,i.key)):d++;while(d<g)i=r[d++],i.key===u&&i.value===s||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},1883:(t,e,n)=>{"use strict";var r=n(7509),i=n(6881),o=n(2618),a=n(9445),u=URLSearchParams,s=u.prototype,c=i(s.getAll),l=i(s.has),f=new u("a=1");!f.has("a",2)&&f.has("a",void 0)||r(s,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=c(this,t);a(e,1);var i=o(n),u=0;while(u<r.length)if(r[u++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},4397:(t,e,n)=>{"use strict";n(1615)},7905:(t,e,n)=>{"use strict";var r=n(6893),i=n(6881),o=n(997),a=URLSearchParams.prototype,u=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return u(this,(function(){t++})),t},configurable:!0,enumerable:!0})},495:(t,e,n)=>{"use strict";n(1011);var r,i=n(5613),o=n(6893),a=n(6301),u=n(9117),s=n(5821),c=n(6881),l=n(7509),f=n(997),h=n(286),p=n(4418),d=n(9456),v=n(6859),g=n(7825),m=n(4212).codeAt,y=n(6294),w=n(2618),_=n(3754),b=n(9445),x=n(1615),A=n(3086),S=A.set,C=A.getterFor("URL"),k=x.URLSearchParams,O=x.getState,E=u.URL,P=u.TypeError,R=u.parseInt,T=Math.floor,j=Math.pow,M=c("".charAt),L=c(/./.exec),I=c([].join),D=c(1..toString),U=c([].pop),$=c([].push),W=c("".replace),N=c([].shift),z=c("".split),B=c("".slice),q=c("".toLowerCase),F=c([].unshift),H="Invalid authority",Q="Invalid scheme",Y="Invalid host",G="Invalid port",X=/[a-z]/i,V=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,K=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,rt=/[\0\t\n\r #/:<>?@[\\\]^|]/,it=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,ut=function(t){var e,n,r,i,o,a,u,s=z(t,".");if(s.length&&""===s[s.length-1]&&s.length--,e=s.length,e>4)return t;for(n=[],r=0;r<e;r++){if(i=s[r],""===i)return t;if(o=10,i.length>1&&"0"===M(i,0)&&(o=L(Z,i)?16:8,i=B(i,8===o?1:2)),""===i)a=0;else{if(!L(10===o?tt:8===o?K:et,i))return t;a=R(i,o)}$(n,a)}for(r=0;r<e;r++)if(a=n[r],r===e-1){if(a>=j(256,5-e))return null}else if(a>255)return null;for(u=U(n),r=0;r<n.length;r++)u+=n[r]*j(256,3-r);return u},st=function(t){var e,n,r,i,o,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return M(t,f)};if(":"===h()){if(":"!==M(t,1))return;f+=2,c++,l=c}while(h()){if(8===c)return;if(":"!==h()){e=n=0;while(n<4&&L(et,h()))e=16*e+R(h(),16),f++,n++;if("."===h()){if(0===n)return;if(f-=n,c>6)return;r=0;while(h()){if(i=null,r>0){if(!("."===h()&&r<4))return;f++}if(!L(J,h()))return;while(L(J,h())){if(o=R(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}s[c]=256*s[c]+i,r++,2!==r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;s[c++]=e}else{if(null!==l)return;f++,c++,l=c}}if(null!==l){a=c-l,c=7;while(0!==c&&a>0)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u}else if(8!==c)return;return s},ct=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:e},lt=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)F(e,t%256),t=T(t/256);return I(e,".")}if("object"==typeof t){for(e="",r=ct(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=D(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ft={},ht=d({},ft,{" ":1,'"':1,"<":1,">":1,"`":1}),pt=d({},ht,{"#":1,"?":1,"{":1,"}":1}),dt=d({},pt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),vt=function(t,e){var n=m(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mt=function(t,e){var n;return 2===t.length&&L(X,M(t,0))&&(":"===(n=M(t,1))||!e&&"|"===n)},yt=function(t){var e;return t.length>1&&mt(B(t,0,2))&&(2===t.length||"/"===(e=M(t,2))||"\\"===e||"?"===e||"#"===e)},wt=function(t){return"."===t||"%2e"===q(t)},_t=function(t){return t=q(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},bt={},xt={},At={},St={},Ct={},kt={},Ot={},Et={},Pt={},Rt={},Tt={},jt={},Mt={},Lt={},It={},Dt={},Ut={},$t={},Wt={},Nt={},zt={},Bt=function(t,e,n){var r,i,o,a=w(t);if(e){if(i=this.parse(a),i)throw new P(i);this.searchParams=null}else{if(void 0!==n&&(r=new Bt(n,!0)),i=this.parse(a,null,r),i)throw new P(i);o=O(new k),o.bindURL(this),this.searchParams=o}};Bt.prototype={type:"URL",parse:function(t,e,n){var i,o,a,u,s=this,c=e||bt,l=0,f="",h=!1,d=!1,m=!1;t=w(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=W(t,it,""),t=W(t,ot,"$1")),t=W(t,at,""),i=v(t);while(l<=i.length){switch(o=i[l],c){case bt:if(!o||!L(X,o)){if(e)return Q;c=At;continue}f+=q(o),c=xt;break;case xt:if(o&&(L(V,o)||"+"===o||"-"===o||"."===o))f+=q(o);else{if(":"!==o){if(e)return Q;f="",c=At,l=0;continue}if(e&&(s.isSpecial()!==p(gt,f)||"file"===f&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=f,e)return void(s.isSpecial()&>[s.scheme]===s.port&&(s.port=null));f="","file"===s.scheme?c=Lt:s.isSpecial()&&n&&n.scheme===s.scheme?c=St:s.isSpecial()?c=Et:"/"===i[l+1]?(c=Ct,l++):(s.cannotBeABaseURL=!0,$(s.path,""),c=Wt)}break;case At:if(!n||n.cannotBeABaseURL&&"#"!==o)return Q;if(n.cannotBeABaseURL&&"#"===o){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,c=zt;break}c="file"===n.scheme?Lt:kt;continue;case St:if("/"!==o||"/"!==i[l+1]){c=kt;continue}c=Pt,l++;break;case Ct:if("/"===o){c=Rt;break}c=$t;continue;case kt:if(s.scheme=n.scheme,o===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===o||"\\"===o&&s.isSpecial())c=Ot;else if("?"===o)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",c=Nt;else{if("#"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,c=$t;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",c=zt}break;case Ot:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,c=$t;continue}c=Rt}else c=Pt;break;case Et:if(c=Pt,"/"!==o||"/"!==M(f,l+1))continue;l++;break;case Pt:if("/"!==o&&"\\"!==o){c=Rt;continue}break;case Rt:if("@"===o){h&&(f="%40"+f),h=!0,a=v(f);for(var y=0;y<a.length;y++){var _=a[y];if(":"!==_||m){var b=vt(_,dt);m?s.password+=b:s.username+=b}else m=!0}f=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(h&&""===f)return H;l-=v(f).length+1,f="",c=Tt}else f+=o;break;case Tt:case jt:if(e&&"file"===s.scheme){c=Dt;continue}if(":"!==o||d){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(s.isSpecial()&&""===f)return Y;if(e&&""===f&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(f),u)return u;if(f="",c=Ut,e)return;continue}"["===o?d=!0:"]"===o&&(d=!1),f+=o}else{if(""===f)return Y;if(u=s.parseHost(f),u)return u;if(f="",c=Mt,e===jt)return}break;case Mt:if(!L(J,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()||e){if(""!==f){var x=R(f,10);if(x>65535)return G;s.port=s.isSpecial()&&x===gt[s.scheme]?null:x,f=""}if(e)return;c=Ut;continue}return G}f+=o;break;case Lt:if(s.scheme="file","/"===o||"\\"===o)c=It;else{if(!n||"file"!==n.scheme){c=$t;continue}switch(o){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",c=Nt;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",c=zt;break;default:yt(I(g(i,l),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),c=$t;continue}}break;case It:if("/"===o||"\\"===o){c=Dt;break}n&&"file"===n.scheme&&!yt(I(g(i,l),""))&&(mt(n.path[0],!0)?$(s.path,n.path[0]):s.host=n.host),c=$t;continue;case Dt:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&mt(f))c=$t;else if(""===f){if(s.host="",e)return;c=Ut}else{if(u=s.parseHost(f),u)return u;if("localhost"===s.host&&(s.host=""),e)return;f="",c=Ut}continue}f+=o;break;case Ut:if(s.isSpecial()){if(c=$t,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(c=$t,"/"!==o))continue}else s.fragment="",c=zt;else s.query="",c=Nt;break;case $t:if(o===r||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(_t(f)?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||$(s.path,"")):wt(f)?"/"===o||"\\"===o&&s.isSpecial()||$(s.path,""):("file"===s.scheme&&!s.path.length&&mt(f)&&(s.host&&(s.host=""),f=M(f,0)+":"),$(s.path,f)),f="","file"===s.scheme&&(o===r||"?"===o||"#"===o))while(s.path.length>1&&""===s.path[0])N(s.path);"?"===o?(s.query="",c=Nt):"#"===o&&(s.fragment="",c=zt)}else f+=vt(o,pt);break;case Wt:"?"===o?(s.query="",c=Nt):"#"===o?(s.fragment="",c=zt):o!==r&&(s.path[0]+=vt(o,ft));break;case Nt:e||"#"!==o?o!==r&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":vt(o,ft)):(s.fragment="",c=zt);break;case zt:o!==r&&(s.fragment+=vt(o,ht));break}l++}},parseHost:function(t){var e,n,r;if("["===M(t,0)){if("]"!==M(t,t.length-1))return Y;if(e=st(B(t,1,-1)),!e)return Y;this.host=e}else if(this.isSpecial()){if(t=y(t),L(nt,t))return Y;if(e=ut(t),null===e)return Y;this.host=e}else{if(L(rt,t))return Y;for(e="",n=v(t),r=0;r<n.length;r++)e+=vt(n[r],ft);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(gt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&mt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=lt(i),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+I(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(t){var e=this.parse(t);if(e)throw new P(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new qt(t.path[0]).origin}catch(n){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+lt(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(w(t)+":",bt)},getUsername:function(){return this.username},setUsername:function(t){var e=v(w(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=vt(e[n],dt)}},getPassword:function(){return this.password},setPassword:function(t){var e=v(w(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=vt(e[n],dt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?lt(t):lt(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Tt)},getHostname:function(){var t=this.host;return null===t?"":lt(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,jt)},getPort:function(){var t=this.port;return null===t?"":w(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(t=w(t),""===t?this.port=null:this.parse(t,Mt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+I(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ut))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){t=w(t),""===t?this.query=null:("?"===M(t,0)&&(t=B(t,1)),this.query="",this.parse(t,Nt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){t=w(t),""!==t?("#"===M(t,0)&&(t=B(t,1)),this.fragment="",this.parse(t,zt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qt=function(t){var e=h(this,Ft),n=b(arguments.length,1)>1?arguments[1]:void 0,r=S(e,new Bt(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Ft=qt.prototype,Ht=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Ft,"href",Ht("serialize","setHref")),f(Ft,"origin",Ht("getOrigin")),f(Ft,"protocol",Ht("getProtocol","setProtocol")),f(Ft,"username",Ht("getUsername","setUsername")),f(Ft,"password",Ht("getPassword","setPassword")),f(Ft,"host",Ht("getHost","setHost")),f(Ft,"hostname",Ht("getHostname","setHostname")),f(Ft,"port",Ht("getPort","setPort")),f(Ft,"pathname",Ht("getPathname","setPathname")),f(Ft,"search",Ht("getSearch","setSearch")),f(Ft,"searchParams",Ht("getSearchParams")),f(Ft,"hash",Ht("getHash","setHash"))),l(Ft,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(Ft,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),E){var Qt=E.createObjectURL,Yt=E.revokeObjectURL;Qt&&l(qt,"createObjectURL",s(Qt,E)),Yt&&l(qt,"revokeObjectURL",s(Yt,E))}_(qt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:qt})},3165:(t,e,n)=>{"use strict";n(495)},4541:(t,e,n)=>{"use strict";var r=n(5613),i=n(9944);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}(()=>{n.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return n.d(e,{a:e}),e}})(),(()=>{n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(()=>{n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})(),(()=>{n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{n.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t)})(),(()=>{n.p=""})();var r={};return(()=>{"use strict";if(n.d(r,{default:()=>Zt}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}function i(){var t="/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewerquaternionWidget.vue",e="ad33f77e15bbf348c8df63cb5ca30f8381f1c844",n=new Function("return this")(),r="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewerquaternionWidget.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:271}},4:{start:{line:1,column:241},end:{line:1,column:267}},5:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:228},end:{line:1,column:229}},loc:{start:{line:1,column:241},end:{line:1,column:267}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ad33f77e15bbf348c8df63cb5ca30f8381f1c844"},a=n[r]||(n[r]={});a[t]&&a[t].hash===e||(a[t]=o);var u=a[t];return i=function(){return u},u}i(),i().s[0]++;var o=function(){i().f[0]++;var t=(i().s[1]++,this),e=(i().s[2]++,t._self._c);return i().s[3]++,e("history-component",{ref:"history",attrs:{config:t.currentConfig,packets:t.currentPackets,calculatePacketText:t.calculatePacketText},on:{config:e=>(i().f[1]++,i().s[4]++,t.currentConfig=e)}})},a=(i().s[5]++,[]),u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pa-2"},[e("v-row",{staticClass:"mb-2",attrs:{dense:""}},[e("v-col",{attrs:{cols:"4"}},[e("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"history-component-search"},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),e("v-col",{staticClass:"mt-1",attrs:{cols:"8"}},[e("v-slider",{attrs:{"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-t.currentConfig.history,max:0,"hide-details":""},on:{mousedown:t.pause,"click:prepend":t.stepBackward,"click:append":t.stepForward},model:{value:t.pauseOffset,callback:function(e){t.pauseOffset=e},expression:"pauseOffset"}})],1)],1),t._v(" "),e("v-row",{attrs:{dense:"","no-gutters":""}},[e("v-col",[e("div",{staticClass:"text-area-container"},[e("v-textarea",{attrs:{value:t.displayText,rows:t.rows,"no-resize":"",readonly:"",solo:"",flat:"","hide-details":"","data-test":"history-component-text-area"}}),t._v(" "),e("div",{staticClass:"floating-buttons"},[e("v-menu",{attrs:{"close-on-content-click":!1,"min-width":700,"nudge-left":710,"nudge-top":250},scopedSlots:t._u([{key:"activator",fn:function({on:n,attrs:r}){return[e("v-btn",t._g(t._b({staticClass:"ml-2",attrs:{color:"secondary",fab:"",small:"","data-test":"history-component-open-settings"}},"v-btn",r,!1),n),[e("v-icon",[t._v("$astro-settings")])],1)]}}])},[t._v(" "),e("v-card",[e("v-card-title",{attrs:{"data-test":"display-settings-card"}},[t._v("\n Display settings\n ")]),t._v(" "),e("v-card-text",[e("v-row",[e("v-col",[e("v-switch",{attrs:{label:"Show timestamp",dense:"","hide-details":"","data-test":"history-component-settings-show-timestamp"},model:{value:t.currentConfig.showTimestamp,callback:function(e){t.$set(t.currentConfig,"showTimestamp",e)},expression:"currentConfig.showTimestamp"}}),t._v(" "),t.hasRaw?e("v-switch",{attrs:{label:"Show ASCII",dense:"","hide-details":"","data-test":"history-component-settings-show-ascii"},model:{value:t.currentConfig.showAscii,callback:function(e){t.$set(t.currentConfig,"showAscii",e)},expression:"currentConfig.showAscii"}}):t._e(),t._v(" "),t.hasRaw?e("v-switch",{attrs:{label:"Show line address",dense:"","hide-details":"","data-test":"history-component-settings-show-address"},model:{value:t.currentConfig.showLineAddress,callback:function(e){t.$set(t.currentConfig,"showLineAddress",e)},expression:"currentConfig.showLineAddress"}}):t._e()],1),t._v(" "),e("v-col",[e("v-radio-group",{attrs:{label:"Print newest to the"},model:{value:t.currentConfig.newestAtTop,callback:function(e){t.$set(t.currentConfig,"newestAtTop",e)},expression:"currentConfig.newestAtTop"}},[e("v-radio",{attrs:{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}}),t._v(" "),e("v-radio",{attrs:{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"}})],1)],1),t._v(" "),e("v-col",[e("v-text-field",{attrs:{label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[t.rules.required,t.rules.min],"data-test":"history-component-settings-history"},model:{value:t.currentConfig.history,callback:function(e){t.$set(t.currentConfig,"history",e)},expression:"currentConfig.history"}}),t._v(" "),t.hasRaw?e("v-text-field",{attrs:{label:"Bytes per line",type:"number",min:"1",rules:[t.rules.required,t.rules.min],"data-test":"history-component-settings-num-bytes"},model:{value:t.currentConfig.bytesPerLine,callback:function(e){t.$set(t.currentConfig,"bytesPerLine",e)},expression:"currentConfig.bytesPerLine"}}):t._e(),t._v(" "),e("v-text-field",{attrs:{label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${t.currentConfig.history}`,"persistent-hint":"",rules:[t.rules.required,t.rules.min,t.rules.max],"data-test":"history-component-settings-num-packets"},model:{value:t.currentConfig.packetsToShow,callback:function(e){t.$set(t.currentConfig,"packetsToShow",e)},expression:"currentConfig.packetsToShow"}})],1)],1)],1)],1)],1),t._v(" "),e("v-btn",{staticClass:"ml-2",attrs:{color:"secondary",fab:"",small:"","data-test":"history-component-download"},on:{click:t.download}},[e("v-icon",[t._v("mdi-file-download")])],1),t._v(" "),e("v-btn",{staticClass:"ml-2",class:{pulse:t.paused},attrs:{color:"primary",fab:"","data-test":"history-component-play-pause"},on:{click:t.togglePlayPause}},[t.paused?e("v-icon",{attrs:{large:""}},[t._v("mdi-play")]):e("v-icon",{attrs:{large:""}},[t._v("mdi-pause")])],1)],1)],1)])],1)],1)},s=[],c=(n(7182),n(3165),n(4541),n(4397),n(1412),n(1883),n(7905),n(5250)),l=n.n(c);const f={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"}},h=(t,e,n)=>{let r;const i=f[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function p(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}const d={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m={date:p({formats:d,defaultWidth:"full"}),time:p({formats:v,defaultWidth:"full"}),dateTime:p({formats:g,defaultWidth:"full"})},y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},w=(t,e,n,r)=>y[t];function _(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if("formatting"===r&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=n?.width?String(n.width):e;i=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=n?.width?String(n.width):t.defaultWidth;i=t.values[r]||t.values[e]}const o=t.argumentCallback?t.argumentCallback(e):e;return i[o]}}const b={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},x={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},A={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"]},S={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"]},C={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"}},k={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"}},O=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},E={ordinalNumber:O,era:_({values:b,defaultWidth:"wide"}),quarter:_({values:x,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_({values:A,defaultWidth:"wide"}),day:_({values:S,defaultWidth:"wide"}),dayPeriod:_({values:C,defaultWidth:"wide",formattingValues:k,defaultFormattingWidth:"wide"})};function P(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;const a=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?T(u,(t=>t.test(a))):R(u,(t=>t.test(a)));let c;c=t.valueCallback?t.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;const l=e.slice(a.length);return{value:c,rest:l}}}function R(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function T(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function j(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],o=e.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const u=e.slice(i.length);return{value:a,rest:u}}}const M=/^(\d+)(th|st|nd|rd)?/i,L=/\d+/i,I={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},D={any:[/^b/i,/^(a|c)/i]},U={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$={any:[/1/i,/2/i,/3/i,/4/i]},W={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},N={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]},z={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},B={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]},q={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},F={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}},H={ordinalNumber:j({matchPattern:M,parsePattern:L,valueCallback:t=>parseInt(t,10)}),era:P({matchPatterns:I,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"any"}),quarter:P({matchPatterns:U,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any",valueCallback:t=>t+1}),month:P({matchPatterns:W,defaultMatchWidth:"wide",parsePatterns:N,defaultParseWidth:"any"}),day:P({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),dayPeriod:P({matchPatterns:q,defaultMatchWidth:"any",parsePatterns:F,defaultParseWidth:"any"})},Q={code:"en-US",formatDistance:h,formatLong:m,formatRelative:w,localize:E,match:H,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Y={};function G(){return Y}Math.pow(10,8);const X=6048e5,V=864e5,J=Symbol.for("constructDateFrom");function Z(t,e){return"function"===typeof t?t(e):t&&"object"===typeof t&&J in t?t[J](e):t instanceof Date?new t.constructor(e):new Date(e)}function K(t,e){return Z(e||t,t)}function tt(t){const e=K(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function et(t,...e){const n=Z.bind(null,t||e.find((t=>"object"===typeof t)));return e.map(n)}function nt(t,e){const n=K(t,e?.in);return n.setHours(0,0,0,0),n}function rt(t,e,n){const[r,i]=et(n?.in,t,e),o=nt(r),a=nt(i),u=+o-tt(o),s=+a-tt(a);return Math.round((u-s)/V)}function it(t,e){const n=K(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ot(t,e){const n=K(t,e?.in),r=rt(n,it(n)),i=r+1;return i}function at(t,e){const n=G(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function ut(t,e){return at(t,{...e,weekStartsOn:1})}function st(t,e){const n=K(t,e?.in),r=n.getFullYear(),i=Z(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ut(i),a=Z(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const u=ut(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function ct(t,e){const n=st(t,e),r=Z(e?.in||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ut(r)}function lt(t,e){const n=K(t,e?.in),r=+ut(n)-+ct(n);return Math.round(r/X)+1}function ft(t,e){const n=K(t,e?.in),r=n.getFullYear(),i=G(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=Z(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const u=at(a,e),s=Z(e?.in||t,0);s.setFullYear(r,0,o),s.setHours(0,0,0,0);const c=at(s,e);return+n>=+u?r+1:+n>=+c?r:r-1}function ht(t,e){const n=G(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ft(t,e),o=Z(e?.in||t,0);o.setFullYear(i,0,r),o.setHours(0,0,0,0);const a=at(o,e);return a}function pt(t,e){const n=K(t,e?.in),r=+at(n,e)-+ht(n,e);return Math.round(r/X)+1}function dt(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const vt={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return dt("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):dt(n+1,2)},d(t,e){return dt(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h(t,e){return dt(t.getHours()%12||12,e.length)},H(t,e){return dt(t.getHours(),e.length)},m(t,e){return dt(t.getMinutes(),e.length)},s(t,e){return dt(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return dt(i,e.length)}},gt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mt={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return vt.y(t,e)},Y:function(t,e,n,r){const i=ft(t,r),o=i>0?i:1-i;if("YY"===e){const t=o%100;return dt(t,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):dt(o,e.length)},R:function(t,e){const n=st(t);return dt(n,e.length)},u:function(t,e){const n=t.getFullYear();return dt(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return dt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return dt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return vt.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return dt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=pt(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):dt(i,e.length)},I:function(t,e,n){const r=lt(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):dt(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):vt.d(t,e)},D:function(t,e,n){const r=ot(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):dt(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return dt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return dt(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return dt(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(i=12===r?gt.noon:0===r?gt.midnight:r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(i=r>=17?gt.evening:r>=12?gt.afternoon:r>=4?gt.morning:gt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return vt.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):vt.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):dt(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):dt(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):vt.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):vt.s(t,e)},S:function(t,e){return vt.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return wt(r);case"XXXX":case"XX":return _t(r);case"XXXXX":case"XXX":default:return _t(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return wt(r);case"xxxx":case"xx":return _t(r);case"xxxxx":case"xxx":default:return _t(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+yt(r,":");case"OOOO":default:return"GMT"+_t(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+yt(r,":");case"zzzz":default:return"GMT"+_t(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return dt(r,e.length)},T:function(t,e,n){return dt(+t,e.length)}};function yt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+dt(o,2)}function wt(t,e){if(t%60===0){const e=t>0?"-":"+";return e+dt(Math.abs(t)/60,2)}return _t(t,e)}function _t(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=dt(Math.trunc(r/60),2),o=dt(r%60,2);return n+i+e+o}const bt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},xt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},At=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return bt(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",bt(r,e)).replace("{{time}}",xt(i,e))},St={p:xt,P:At},Ct=/^D+$/,kt=/^Y+$/,Ot=["D","DD","YY","YYYY"];function Et(t){return Ct.test(t)}function Pt(t){return kt.test(t)}function Rt(t,e,n){const r=Tt(t,e,n);if(console.warn(r),Ot.includes(t))throw new RangeError(r)}function Tt(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function jt(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function Mt(t){return!(!jt(t)&&"number"!==typeof t||isNaN(+K(t)))}const Lt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,It=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dt=/^'([^]*?)'?$/,Ut=/''/g,$t=/[a-zA-Z]/;function Wt(t,e,n){const r=G(),i=n?.locale??r.locale??Q,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=K(t,n?.in);if(!Mt(u))throw new RangeError("Invalid time value");let s=e.match(It).map((t=>{const e=t[0];if("p"===e||"P"===e){const n=St[e];return n(t,i.formatLong)}return t})).join("").match(Lt).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:Nt(t)};if(mt[e])return{isToken:!0,value:t};if(e.match($t))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));i.localize.preprocessor&&(s=i.localize.preprocessor(u,s));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return s.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&Pt(o)||!n?.useAdditionalDayOfYearTokens&&Et(o))&&Rt(o,e,String(t));const a=mt[o[0]];return a(u,o,i.localize,c)})).join("")}function Nt(t){const e=t.match(Dt);return e?e[1].replace(Ut,"'"):t}const zt={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let t=0;t<this.currentPackets.length;t++)if("RAW"===this.currentPackets[t].mode)return!0;return!1},hasDecom:function(){for(let t=0;t<this.currentPackets.length;t++)if("DECOM"===this.currentPackets[t].mode)return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(t){this.$emit("config",t)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(t){this.latestData=t}}},Bt={props:["calculatePacketText"],mixins:[zt],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:t=>!!t||"Required.",min:t=>t>=1||"Minimum: 1",max:t=>parseInt(t)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(t){t.forEach((t=>{"buffer"in t&&(t.buffer=atob(t.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=t,this.paused||this.rebuildDisplayText()}))},paused:function(t){t?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:l().debounce((function(){this.rebuildDisplayText()}),300)},created:function(){const t={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...t,...this.currentConfig}},methods:{rebuildDisplayText:function(){let t=this.paused?this.pausedHistory:this.history;const e=this.paused?this.pausedAt:this.historyPointer;if(t=t.filter((t=>t)).slice(e+1,this.currentConfig.history).concat(t.slice(0,e+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const e=Math.max(t.length+this.pauseOffset,1);t=t.slice(0,e)}const n=Math.max(this.currentConfig.packetsToShow,1);t=t.slice(-n),this.currentConfig.newestAtTop&&(t=t.reverse());let r="\n";null!==this.filterText&&(r+="\n"),this.displayText=t.join(r),this.rows=this.displayText.split("\n").length},matchesSearch:function(t){return null===this.filterText?t:t.split("\n").filter((t=>t.toLowerCase().includes(this.filterText.toLowerCase()))).join("\n")},download:function(){const t=new Blob([this.displayText],{type:"text/plain"}),e=document.createElement("a");let n=URL.createObjectURL(t);e.href=n,e.setAttribute("download",`${Wt(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),e.click(),window.URL.revokeObjectURL(n)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},qt=Bt;n(2003),n(4162);function Ft(t,e,n,r,i,o,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=u?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}var Ht=Ft(qt,u,s,!1,null,"01803198",null);const Qt=Ht.exports;function Yt(){var t="/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewerquaternionWidget.vue",e="59d7953f398f3bed9d799da5f78885e927504a79",n=new Function("return this")(),r="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewerquaternionWidget.vue",statementMap:{0:{start:{line:13,column:6},end:{line:13,column:41}},1:{start:{line:18,column:17},end:{line:18,column:19}},2:{start:{line:19,column:6},end:{line:28,column:7}},3:{start:{line:20,column:29},end:{line:20,column:52}},4:{start:{line:21,column:32},end:{line:21,column:64}},5:{start:{line:22,column:29},end:{line:22,column:65}},6:{start:{line:23,column:24},end:{line:23,column:72}},7:{start:{line:24,column:8},end:{line:24,column:63}},8:{start:{line:25,column:8},end:{line:25,column:57}},9:{start:{line:26,column:8},end:{line:26,column:69}},10:{start:{line:27,column:8},end:{line:27,column:36}},11:{start:{line:29,column:6},end:{line:66,column:7}},12:{start:{line:30,column:8},end:{line:30,column:78}},13:{start:{line:32,column:16},end:{line:32,column:28}},14:{start:{line:33,column:16},end:{line:33,column:28}},15:{start:{line:34,column:16},end:{line:34,column:28}},16:{start:{line:35,column:16},end:{line:35,column:28}},17:{start:{line:36,column:8},end:{line:65,column:9}},18:{start:{line:42,column:10},end:{line:42,column:70}},19:{start:{line:44,column:10},end:{line:44,column:30}},20:{start:{line:45,column:10},end:{line:45,column:30}},21:{start:{line:46,column:10},end:{line:46,column:30}},22:{start:{line:47,column:10},end:{line:47,column:30}},23:{start:{line:49,column:26},end:{line:51,column:11}},24:{start:{line:52,column:10},end:{line:52,column:38}},25:{start:{line:53,column:10},end:{line:53,column:38}},26:{start:{line:54,column:21},end:{line:54,column:48}},27:{start:{line:55,column:10},end:{line:55,column:38}},28:{start:{line:56,column:21},end:{line:56,column:48}},29:{start:{line:57,column:10},end:{line:57,column:38}},30:{start:{line:58,column:21},end:{line:58,column:48}},31:{start:{line:59,column:10},end:{line:59,column:29}},32:{start:{line:60,column:10},end:{line:60,column:52}},33:{start:{line:61,column:10},end:{line:61,column:46}},34:{start:{line:62,column:10},end:{line:62,column:46}},35:{start:{line:63,column:10},end:{line:63,column:46}},36:{start:{line:64,column:10},end:{line:64,column:43}},37:{start:{line:67,column:6},end:{line:67,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:16},end:{line:12,column:17}},loc:{start:{line:12,column:32},end:{line:14,column:5}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:25},end:{line:17,column:26}},loc:{start:{line:17,column:43},end:{line:68,column:5}},line:17}},branchMap:{0:{loc:{start:{line:19,column:6},end:{line:28,column:7}},type:"if",locations:[{start:{line:19,column:6},end:{line:28,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:19},1:{loc:{start:{line:29,column:6},end:{line:66,column:7}},type:"if",locations:[{start:{line:29,column:6},end:{line:66,column:7}},{start:{line:31,column:13},end:{line:66,column:7}}],line:29},2:{loc:{start:{line:36,column:8},end:{line:65,column:9}},type:"if",locations:[{start:{line:36,column:8},end:{line:65,column:9}},{start:{line:43,column:15},end:{line:65,column:9}}],line:36},3:{loc:{start:{line:37,column:10},end:{line:40,column:25}},type:"binary-expr",locations:[{start:{line:37,column:10},end:{line:37,column:25}},{start:{line:38,column:10},end:{line:38,column:25}},{start:{line:39,column:10},end:{line:39,column:25}},{start:{line:40,column:10},end:{line:40,column:25}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0,0]},inputSourceMap:{version:3,sources:["DataviewerquaternionWidget.vue"],names:[],mappings:";AAiCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"DataviewerquaternionWidget.vue",sourceRoot:"src",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <history-component\n ref=\"history\"\n :config=\"currentConfig\"\n :packets=\"currentPackets\"\n :calculatePacketText=\"calculatePacketText\"\n @config=\"(config) => (currentConfig = config)\"\n ></history-component>\n</template>\n\n<script>\nimport HistoryComponent from '@openc3/tool-common/src/components/dataviewer/HistoryComponent'\nimport Component from '@openc3/tool-common/src/components/dataviewer/Component'\n\nexport default {\n mixins: [Component],\n components: {\n HistoryComponent,\n },\n watch: {\n // Hook the HistoryComponent's receive method to our latestData being updated\n latestData: function (data) {\n this.$refs['history'].receive(data)\n },\n },\n methods: {\n calculatePacketText: function (packet) {\n let text = ''\n if (this.currentConfig.showTimestamp) {\n const milliseconds = packet.__time / 1000000\n const receivedSeconds = (milliseconds / 1000).toFixed(7)\n const receivedDate = new Date(milliseconds).toISOString()\n let timestamp = '********************************************\\n'\n timestamp += `* Received seconds: ${receivedSeconds}\\n`\n timestamp += `* Received time: ${receivedDate}\\n`\n timestamp += '********************************************\\n'\n text = `${timestamp}${text}`\n }\n if ('buffer' in packet) {\n text += 'This only works on DECOM packets with Q1, Q2, Q3, Q4 fields.'\n } else {\n let a = packet['Q1']\n let b = packet['Q2']\n let c = packet['Q3']\n let d = packet['Q4']\n if (\n a === undefined ||\n b === undefined ||\n c === undefined ||\n d === undefined\n ) {\n text += \"Couldn't find Q1, Q1, Q3, Q4 in the packet fields.\"\n } else {\n text += `Q1: ${a}\\n`\n text += `Q2: ${b}\\n`\n text += `Q3: ${c}\\n`\n text += `Q4: ${d}\\n`\n // You'd probably want to do the magnitude as a TLM item conversion\n let magnitude = Math.sqrt(\n Math.pow(a, 2) + Math.pow(b, 2) + Math.pow(c, 2) + Math.pow(d, 2),\n )\n a = a.toString().padStart(9)\n b = b.toString().padStart(9)\n let negB = (-b).toString().padStart(9)\n c = c.toString().padStart(9)\n let negC = (-c).toString().padStart(9)\n d = d.toString().padStart(9)\n let negD = (-d).toString().padStart(9)\n text += `Matrix:\\n`\n text += `[${a} ${negB} ${negC} ${negD}]\\n`\n text += `[${b} ${a} ${negD} ${c}]\\n`\n text += `[${c} ${d} ${a} ${negB}]\\n`\n text += `[${d} ${negC} ${b} ${a}]\\n`\n text += `Magnitude: ${magnitude}`\n }\n }\n return text\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"59d7953f398f3bed9d799da5f78885e927504a79"},o=n[r]||(n[r]={});o[t]&&o[t].hash===e||(o[t]=i);var a=o[t];return Yt=function(){return a},a}Yt();const Gt={mixins:[zt],components:{HistoryComponent:Qt},watch:{latestData:function(t){Yt().f[0]++,Yt().s[0]++,this.$refs["history"].receive(t)}},methods:{calculatePacketText:function(t){Yt().f[1]++;let e=(Yt().s[1]++,"");if(Yt().s[2]++,this.currentConfig.showTimestamp){Yt().b[0][0]++;const n=(Yt().s[3]++,t.__time/1e6),r=(Yt().s[4]++,(n/1e3).toFixed(7)),i=(Yt().s[5]++,new Date(n).toISOString());let o=(Yt().s[6]++,"********************************************\n");Yt().s[7]++,o+=`* Received seconds: ${r}\n`,Yt().s[8]++,o+=`* Received time: ${i}\n`,Yt().s[9]++,o+="********************************************\n",Yt().s[10]++,e=`${o}${e}`}else Yt().b[0][1]++;if(Yt().s[11]++,"buffer"in t)Yt().b[1][0]++,Yt().s[12]++,e+="This only works on DECOM packets with Q1, Q2, Q3, Q4 fields.";else{Yt().b[1][1]++;let n=(Yt().s[13]++,t["Q1"]),r=(Yt().s[14]++,t["Q2"]),i=(Yt().s[15]++,t["Q3"]),o=(Yt().s[16]++,t["Q4"]);if(Yt().s[17]++,Yt().b[3][0]++,void 0===n||(Yt().b[3][1]++,void 0===r)||(Yt().b[3][2]++,void 0===i)||(Yt().b[3][3]++,void 0===o))Yt().b[2][0]++,Yt().s[18]++,e+="Couldn't find Q1, Q1, Q3, Q4 in the packet fields.";else{Yt().b[2][1]++,Yt().s[19]++,e+=`Q1: ${n}\n`,Yt().s[20]++,e+=`Q2: ${r}\n`,Yt().s[21]++,e+=`Q3: ${i}\n`,Yt().s[22]++,e+=`Q4: ${o}\n`;let t=(Yt().s[23]++,Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2)+Math.pow(o,2)));Yt().s[24]++,n=n.toString().padStart(9),Yt().s[25]++,r=r.toString().padStart(9);let a=(Yt().s[26]++,(-r).toString().padStart(9));Yt().s[27]++,i=i.toString().padStart(9);let u=(Yt().s[28]++,(-i).toString().padStart(9));Yt().s[29]++,o=o.toString().padStart(9);let s=(Yt().s[30]++,(-o).toString().padStart(9));Yt().s[31]++,e+="Matrix:\n",Yt().s[32]++,e+=`[${n} ${a} ${u} ${s}]\n`,Yt().s[33]++,e+=`[${r} ${n} ${s} ${i}]\n`,Yt().s[34]++,e+=`[${i} ${o} ${n} ${a}]\n`,Yt().s[35]++,e+=`[${o} ${u} ${r} ${n}]\n`,Yt().s[36]++,e+=`Magnitude: ${t}`}}return Yt().s[37]++,e}}},Xt=Gt;var Vt=Ft(Xt,o,a,!1,null,null,null);const Jt=Vt.exports,Zt=Jt})(),r=r["default"],r})()));
|
10
|
-
|
1387
|
+
*/var V1=gs.exports,lf;function j1(){return lf||(lf=1,function(e,vn){(function(){var _n,kn="4.17.21",Wn=200,zn="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Kn="Expected a function",Qn="Invalid `variable` option passed into `_.template`",Hn="__lodash_hash_undefined__",qn=500,Nn="__lodash_placeholder__",Dn=1,In=2,Bn=4,Ln=1,Pn=2,Zn=1,Jn=2,Xn=4,mi=8,li=16,oi=32,ei=64,fi=128,gi=256,yi=512,pi=30,$i="...",si=800,ti=16,ai=1,vi=2,wi=3,xi=1/0,Si=9007199254740991,Ei=17976931348623157e292,Ni=NaN,Ri=4294967295,Fi=Ri-1,Ii=Ri>>>1,Bi=[["ary",fi],["bind",Zn],["bindKey",Jn],["curry",mi],["curryRight",li],["flip",yi],["partial",oi],["partialRight",ei],["rearg",gi]],Gi="[object Arguments]",Pi="[object Array]",Zi="[object AsyncFunction]",lr="[object Boolean]",gr="[object Date]",or="[object DOMException]",yr="[object Error]",io="[object Function]",Po="[object GeneratorFunction]",lo="[object Map]",So="[object Number]",Xo="[object Null]",Do="[object Object]",Uo="[object Promise]",va="[object Proxy]",ss="[object RegExp]",Ko="[object Set]",Mr="[object String]",Br="[object Symbol]",Zo="[object Undefined]",Hr="[object WeakMap]",Ji="[object WeakSet]",xr="[object ArrayBuffer]",kr="[object DataView]",Gr="[object Float32Array]",Yr="[object Float64Array]",$o="[object Int8Array]",ko="[object Int16Array]",oo="[object Int32Array]",so="[object Uint8Array]",eo="[object Uint8ClampedArray]",Ho="[object Uint16Array]",Ns="[object Uint32Array]",ol=/\b__p \+= '';/g,js=/\b(__p \+=) '' \+/g,lh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ch=/&(?:amp|lt|gt|quot|#39);/g,qh=/[&<>"']/g,Jg=RegExp(ch.source),Xg=RegExp(qh.source),em=/<%-([\s\S]+?)%>/g,tm=/<%([\s\S]+?)%>/g,Ar=/<%=([\s\S]+?)%>/g,sl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ms=/^\w*$/,ya=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,$l=RegExp(wa.source),Rs=/^\s+/,xl=/\s/,_l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yh=/\{\n\/\* \[wrapped with (.+)\] \*/,Kh=/,? & /,nm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,im=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,rm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kl=/\w*$/,Zh=/^[-+]0x[0-9a-f]+$/i,ba=/^0b[01]+$/i,as=/^\[object .+?Constructor\]$/,ns=/^0o[0-7]+$/i,is=/^(?:0|[1-9]\d*)$/,rc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Is=/($^)/,zl=/['\n\r\u2028\u2029\\]/g,Hl="\\ud800-\\udfff",uh="\\u0300-\\u036f",oc="\\ufe20-\\ufe2f",Sl="\\u20d0-\\u20ff",sc=uh+oc+Sl,ac="\\u2700-\\u27bf",lc="a-z\\xdf-\\xf6\\xf8-\\xff",hh="\\xac\\xb1\\xd7\\xf7",dh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ph="\\u2000-\\u206f",gh=" \\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",ia="A-Z\\xc0-\\xd6\\xd8-\\xde",fh="\\ufe0e\\ufe0f",mh=hh+dh+ph+gh,Wl="['’]",Qh="["+Hl+"]",Jh="["+mh+"]",cc="["+sc+"]",Xh="\\d+",ed="["+ac+"]",vh="["+lc+"]",td="[^"+Hl+mh+Xh+ac+lc+ia+"]",Gu="\\ud83c[\\udffb-\\udfff]",yh="(?:"+cc+"|"+Gu+")",jl="[^"+Hl+"]",Cl="(?:\\ud83c[\\udde6-\\uddff]){2}",wh="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+ia+"]",nd="\\u200d",id="(?:"+vh+"|"+td+")",om="(?:"+$a+"|"+td+")",ll="(?:"+Wl+"(?:d|ll|m|re|s|t|ve))?",Ul="(?:"+Wl+"(?:D|LL|M|RE|S|T|VE))?",qu=yh+"?",Tl="["+fh+"]?",sm="(?:"+nd+"(?:"+[jl,Cl,wh].join("|")+")"+Tl+qu+")*",Ml="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",am="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bh=Tl+qu+sm,$h="(?:"+[ed,Cl,wh].join("|")+")"+bh,xh="(?:"+[jl+cc+"?",cc,Cl,wh,Qh].join("|")+")",_h=RegExp(Wl,"g"),Al=RegExp(cc,"g"),xa=RegExp(Gu+"(?="+Gu+")|"+xh+bh,"g"),rd=RegExp([$a+"?"+vh+"+"+ll+"(?="+[Jh,$a,"$"].join("|")+")",om+"+"+Ul+"(?="+[Jh,$a+id,"$"].join("|")+")",$a+"?"+id+"+"+ll,$a+"+"+Ul,am,Ml,Xh,$h].join("|"),"g"),od=RegExp("["+nd+Hl+sc+fh+"]"),El=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ll=["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"],sd=-1,Io={};Io[Gr]=Io[Yr]=Io[$o]=Io[ko]=Io[oo]=Io[so]=Io[eo]=Io[Ho]=Io[Ns]=!0,Io[Gi]=Io[Pi]=Io[xr]=Io[lr]=Io[kr]=Io[gr]=Io[yr]=Io[io]=Io[lo]=Io[So]=Io[Do]=Io[ss]=Io[Ko]=Io[Mr]=Io[Hr]=!1;var Vr={};Vr[Gi]=Vr[Pi]=Vr[xr]=Vr[kr]=Vr[lr]=Vr[gr]=Vr[Gr]=Vr[Yr]=Vr[$o]=Vr[ko]=Vr[oo]=Vr[lo]=Vr[So]=Vr[Do]=Vr[ss]=Vr[Ko]=Vr[Mr]=Vr[Br]=Vr[so]=Vr[eo]=Vr[Ho]=Vr[Ns]=!0,Vr[yr]=Vr[io]=Vr[Hr]=!1;var Fo={À:"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"},_a={"&":"&","<":"<",">":">",'"':""","'":"'"},ls={"&":"&","<":"<",">":">",""":'"',"'":"'"},rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},os=parseFloat,Oo=parseInt,cl=typeof hr=="object"&&hr&&hr.Object===Object&&hr,Yu=typeof self=="object"&&self&&self.Object===Object&&self,cs=cl||Yu||Function("return this")(),ra=vn&&!vn.nodeType&&vn,As=ra&&!0&&e&&!e.nodeType&&e,ad=As&&As.exports===ra,kh=ad&&cl.process,Us=function(){try{var ji=As&&As.require&&As.require("util").types;return ji||kh&&kh.binding&&kh.binding("util")}catch{}}(),ld=Us&&Us.isArrayBuffer,oa=Us&&Us.isDate,da=Us&&Us.isMap,ka=Us&&Us.isRegExp,ul=Us&&Us.isSet,cd=Us&&Us.isTypedArray;function Wo(ji,Qi,Ki){switch(Ki.length){case 0:return ji.call(Qi);case 1:return ji.call(Qi,Ki[0]);case 2:return ji.call(Qi,Ki[0],Ki[1]);case 3:return ji.call(Qi,Ki[0],Ki[1],Ki[2])}return ji.apply(Qi,Ki)}function lm(ji,Qi,Ki,wr){for(var Tr=-1,Zr=ji==null?0:ji.length;++Tr<Zr;){var Eo=ji[Tr];Qi(wr,Eo,Ki(Eo),ji)}return wr}function Ps(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr&&Qi(ji[Ki],Ki,ji)!==!1;);return ji}function ud(ji,Qi){for(var Ki=ji==null?0:ji.length;Ki--&&Qi(ji[Ki],Ki,ji)!==!1;);return ji}function Nl(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr;)if(!Qi(ji[Ki],Ki,ji))return!1;return!0}function Gs(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length,Tr=0,Zr=[];++Ki<wr;){var Eo=ji[Ki];Qi(Eo,Ki,ji)&&(Zr[Tr++]=Eo)}return Zr}function Ku(ji,Qi){var Ki=ji==null?0:ji.length;return!!Ki&&hl(ji,Qi,0)>-1}function Gl(ji,Qi,Ki){for(var wr=-1,Tr=ji==null?0:ji.length;++wr<Tr;)if(Ki(Qi,ji[wr]))return!0;return!1}function zo(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length,Tr=Array(wr);++Ki<wr;)Tr[Ki]=Qi(ji[Ki],Ki,ji);return Tr}function Ds(ji,Qi){for(var Ki=-1,wr=Qi.length,Tr=ji.length;++Ki<wr;)ji[Tr+Ki]=Qi[Ki];return ji}function sa(ji,Qi,Ki,wr){var Tr=-1,Zr=ji==null?0:ji.length;for(wr&&Zr&&(Ki=ji[++Tr]);++Tr<Zr;)Ki=Qi(Ki,ji[Tr],Tr,ji);return Ki}function ql(ji,Qi,Ki,wr){var Tr=ji==null?0:ji.length;for(wr&&Tr&&(Ki=ji[--Tr]);Tr--;)Ki=Qi(Ki,ji[Tr],Tr,ji);return Ki}function Zu(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr;)if(Qi(ji[Ki],Ki,ji))return!0;return!1}var Sh=Eh("length");function Ch(ji){return ji.split("")}function Qu(ji){return ji.match(nm)||[]}function Th(ji,Qi,Ki){var wr;return Ki(ji,function(Tr,Zr,Eo){if(Qi(Tr,Zr,Eo))return wr=Zr,!1}),wr}function Yl(ji,Qi,Ki,wr){for(var Tr=ji.length,Zr=Ki+(wr?1:-1);wr?Zr--:++Zr<Tr;)if(Qi(ji[Zr],Zr,ji))return Zr;return-1}function hl(ji,Qi,Ki){return Qi===Qi?Kr(ji,Qi,Ki):Yl(ji,Mh,Ki)}function hd(ji,Qi,Ki,wr){for(var Tr=Ki-1,Zr=ji.length;++Tr<Zr;)if(wr(ji[Tr],Qi))return Tr;return-1}function Mh(ji){return ji!==ji}function Ah(ji,Qi){var Ki=ji==null?0:ji.length;return Ki?Il(ji,Qi)/Ki:Ni}function Eh(ji){return function(Qi){return Qi==null?_n:Qi[ji]}}function Ju(ji){return function(Qi){return ji==null?_n:ji[Qi]}}function Lh(ji,Qi,Ki,wr,Tr){return Tr(ji,function(Zr,Eo,Jr){Ki=wr?(wr=!1,Zr):Qi(Ki,Zr,Eo,Jr)}),Ki}function Rl(ji,Qi){var Ki=ji.length;for(ji.sort(Qi);Ki--;)ji[Ki]=ji[Ki].value;return ji}function Il(ji,Qi){for(var Ki,wr=-1,Tr=ji.length;++wr<Tr;){var Zr=Qi(ji[wr]);Zr!==_n&&(Ki=Ki===_n?Zr:Ki+Zr)}return Ki}function Qo(ji,Qi){for(var Ki=-1,wr=Array(ji);++Ki<ji;)wr[Ki]=Qi(Ki);return wr}function dd(ji,Qi){return zo(Qi,function(Ki){return[Ki,ji[Ki]]})}function Go(ji){return ji&&ji.slice(0,Qr(ji)+1).replace(Rs,"")}function Os(ji){return function(Qi){return ji(Qi)}}function Kl(ji,Qi){return zo(Qi,function(Ki){return ji[Ki]})}function pa(ji,Qi){return ji.has(Qi)}function pd(ji,Qi){for(var Ki=-1,wr=ji.length;++Ki<wr&&hl(Qi,ji[Ki],0)>-1;);return Ki}function gd(ji,Qi){for(var Ki=ji.length;Ki--&&hl(Qi,ji[Ki],0)>-1;);return Ki}function Nh(ji,Qi){for(var Ki=ji.length,wr=0;Ki--;)ji[Ki]===Qi&&++wr;return wr}var _i=Ju(Fo),Mi=Ju(_a);function Di(ji){return"\\"+rs[ji]}function Oi(ji,Qi){return ji==null?_n:ji[Qi]}function Wi(ji){return od.test(ji)}function Yi(ji){return El.test(ji)}function Xi(ji){for(var Qi,Ki=[];!(Qi=ji.next()).done;)Ki.push(Qi.value);return Ki}function fr(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr,Tr){Ki[++Qi]=[Tr,wr]}),Ki}function mr(ji,Qi){return function(Ki){return ji(Qi(Ki))}}function vr(ji,Qi){for(var Ki=-1,wr=ji.length,Tr=0,Zr=[];++Ki<wr;){var Eo=ji[Ki];(Eo===Qi||Eo===Nn)&&(ji[Ki]=Nn,Zr[Tr++]=Ki)}return Zr}function br(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr){Ki[++Qi]=wr}),Ki}function _r(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr){Ki[++Qi]=[wr,wr]}),Ki}function Kr(ji,Qi,Ki){for(var wr=Ki-1,Tr=ji.length;++wr<Tr;)if(ji[wr]===Qi)return wr;return-1}function No(ji,Qi,Ki){for(var wr=Ki+1;wr--;)if(ji[wr]===Qi)return wr;return wr}function to(ji){return Wi(ji)?Ao(ji):Sh(ji)}function qr(ji){return Wi(ji)?qo(ji):Ch(ji)}function Qr(ji){for(var Qi=ji.length;Qi--&&xl.test(ji.charAt(Qi)););return Qi}var Sr=Ju(ls);function Ao(ji){for(var Qi=xa.lastIndex=0;xa.test(ji);)++Qi;return Qi}function qo(ji){return ji.match(xa)||[]}function jo(ji){return ji.match(rd)||[]}var Vo=function ji(Qi){Qi=Qi==null?cs:Bo.defaults(cs.Object(),Qi,Bo.pick(cs,Ll));var Ki=Qi.Array,wr=Qi.Date,Tr=Qi.Error,Zr=Qi.Function,Eo=Qi.Math,Jr=Qi.Object,$s=Qi.RegExp,Fs=Qi.String,Cs=Qi.TypeError,Js=Ki.prototype,qs=Zr.prototype,Xu=Jr.prototype,fd=Qi["__core-js_shared__"],md=qs.toString,Ro=Xu.hasOwnProperty,Gy=0,nv=function(){var Mn=/[^.]+$/.exec(fd&&fd.keys&&fd.keys.IE_PROTO||"");return Mn?"Symbol(src)_1."+Mn:""}(),vd=Xu.toString,qy=md.call(Jr),Yy=cs._,Ky=$s("^"+md.call(Ro).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yd=ad?Qi.Buffer:_n,Dl=Qi.Symbol,wd=Qi.Uint8Array,iv=yd?yd.allocUnsafe:_n,bd=mr(Jr.getPrototypeOf,Jr),rv=Jr.create,ov=Xu.propertyIsEnumerable,$d=Js.splice,sv=Dl?Dl.isConcatSpreadable:_n,Rh=Dl?Dl.iterator:_n,Zl=Dl?Dl.toStringTag:_n,xd=function(){try{var Mn=tc(Jr,"defineProperty");return Mn({},"",{}),Mn}catch{}}(),Zy=Qi.clearTimeout!==cs.clearTimeout&&Qi.clearTimeout,Qy=wr&&wr.now!==cs.Date.now&&wr.now,Jy=Qi.setTimeout!==cs.setTimeout&&Qi.setTimeout,_d=Eo.ceil,kd=Eo.floor,cm=Jr.getOwnPropertySymbols,Xy=yd?yd.isBuffer:_n,av=Qi.isFinite,ew=Js.join,tw=mr(Jr.keys,Jr),Ts=Eo.max,Vs=Eo.min,nw=wr.now,iw=Qi.parseInt,lv=Eo.random,rw=Js.reverse,um=tc(Qi,"DataView"),Ih=tc(Qi,"Map"),hm=tc(Qi,"Promise"),eh=tc(Qi,"Set"),Dh=tc(Qi,"WeakMap"),Oh=tc(Jr,"create"),Sd=Dh&&new Dh,th={},ow=nc(um),sw=nc(Ih),aw=nc(hm),lw=nc(eh),cw=nc(Dh),Cd=Dl?Dl.prototype:_n,Vh=Cd?Cd.valueOf:_n,cv=Cd?Cd.toString:_n;function Ai(Mn){if(Jo(Mn)&&!Xr(Mn)&&!(Mn instanceof To)){if(Mn instanceof aa)return Mn;if(Ro.call(Mn,"__wrapped__"))return uy(Mn)}return new aa(Mn)}var nh=function(){function Mn(){}return function(Yn){if(!Yo(Yn))return{};if(rv)return rv(Yn);Mn.prototype=Yn;var ci=new Mn;return Mn.prototype=_n,ci}}();function Td(){}function aa(Mn,Yn){this.__wrapped__=Mn,this.__actions__=[],this.__chain__=!!Yn,this.__index__=0,this.__values__=_n}Ai.templateSettings={escape:em,evaluate:tm,interpolate:Ar,variable:"",imports:{_:Ai}},Ai.prototype=Td.prototype,Ai.prototype.constructor=Ai,aa.prototype=nh(Td.prototype),aa.prototype.constructor=aa;function To(Mn){this.__wrapped__=Mn,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ri,this.__views__=[]}function uw(){var Mn=new To(this.__wrapped__);return Mn.__actions__=Ys(this.__actions__),Mn.__dir__=this.__dir__,Mn.__filtered__=this.__filtered__,Mn.__iteratees__=Ys(this.__iteratees__),Mn.__takeCount__=this.__takeCount__,Mn.__views__=Ys(this.__views__),Mn}function hw(){if(this.__filtered__){var Mn=new To(this);Mn.__dir__=-1,Mn.__filtered__=!0}else Mn=this.clone(),Mn.__dir__*=-1;return Mn}function dw(){var Mn=this.__wrapped__.value(),Yn=this.__dir__,ci=Xr(Mn),bi=Yn<0,Ti=ci?Mn.length:0,Li=k0(0,Ti,this.__views__),Vi=Li.start,zi=Li.end,qi=zi-Vi,ir=bi?zi:Vi-1,ar=this.__iteratees__,pr=ar.length,$r=0,Cr=Vs(qi,this.__takeCount__);if(!ci||!bi&&Ti==qi&&Cr==qi)return Rv(Mn,this.__actions__);var jr=[];e:for(;qi--&&$r<Cr;){ir+=Yn;for(var ro=-1,Ur=Mn[ir];++ro<pr;){var Co=ar[ro],Mo=Co.iteratee,ta=Co.type,Ws=Mo(Ur);if(ta==vi)Ur=Ws;else if(!Ws){if(ta==ai)continue e;break e}}jr[$r++]=Ur}return jr}To.prototype=nh(Td.prototype),To.prototype.constructor=To;function Ql(Mn){var Yn=-1,ci=Mn==null?0:Mn.length;for(this.clear();++Yn<ci;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function pw(){this.__data__=Oh?Oh(null):{},this.size=0}function gw(Mn){var Yn=this.has(Mn)&&delete this.__data__[Mn];return this.size-=Yn?1:0,Yn}function fw(Mn){var Yn=this.__data__;if(Oh){var ci=Yn[Mn];return ci===Hn?_n:ci}return Ro.call(Yn,Mn)?Yn[Mn]:_n}function mw(Mn){var Yn=this.__data__;return Oh?Yn[Mn]!==_n:Ro.call(Yn,Mn)}function vw(Mn,Yn){var ci=this.__data__;return this.size+=this.has(Mn)?0:1,ci[Mn]=Oh&&Yn===_n?Hn:Yn,this}Ql.prototype.clear=pw,Ql.prototype.delete=gw,Ql.prototype.get=fw,Ql.prototype.has=mw,Ql.prototype.set=vw;function dl(Mn){var Yn=-1,ci=Mn==null?0:Mn.length;for(this.clear();++Yn<ci;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function yw(){this.__data__=[],this.size=0}function ww(Mn){var Yn=this.__data__,ci=Md(Yn,Mn);if(ci<0)return!1;var bi=Yn.length-1;return ci==bi?Yn.pop():$d.call(Yn,ci,1),--this.size,!0}function bw(Mn){var Yn=this.__data__,ci=Md(Yn,Mn);return ci<0?_n:Yn[ci][1]}function $w(Mn){return Md(this.__data__,Mn)>-1}function xw(Mn,Yn){var ci=this.__data__,bi=Md(ci,Mn);return bi<0?(++this.size,ci.push([Mn,Yn])):ci[bi][1]=Yn,this}dl.prototype.clear=yw,dl.prototype.delete=ww,dl.prototype.get=bw,dl.prototype.has=$w,dl.prototype.set=xw;function pl(Mn){var Yn=-1,ci=Mn==null?0:Mn.length;for(this.clear();++Yn<ci;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function _w(){this.size=0,this.__data__={hash:new Ql,map:new(Ih||dl),string:new Ql}}function kw(Mn){var Yn=Hg(this,Mn).delete(Mn);return this.size-=Yn?1:0,Yn}function Sw(Mn){return Hg(this,Mn).get(Mn)}function Cw(Mn){return Hg(this,Mn).has(Mn)}function Tw(Mn,Yn){var ci=Hg(this,Mn),bi=ci.size;return ci.set(Mn,Yn),this.size+=ci.size==bi?0:1,this}pl.prototype.clear=_w,pl.prototype.delete=kw,pl.prototype.get=Sw,pl.prototype.has=Cw,pl.prototype.set=Tw;function Jl(Mn){var Yn=-1,ci=Mn==null?0:Mn.length;for(this.__data__=new pl;++Yn<ci;)this.add(Mn[Yn])}function Mw(Mn){return this.__data__.set(Mn,Hn),this}function Aw(Mn){return this.__data__.has(Mn)}Jl.prototype.add=Jl.prototype.push=Mw,Jl.prototype.has=Aw;function ga(Mn){var Yn=this.__data__=new dl(Mn);this.size=Yn.size}function Ew(){this.__data__=new dl,this.size=0}function Lw(Mn){var Yn=this.__data__,ci=Yn.delete(Mn);return this.size=Yn.size,ci}function Nw(Mn){return this.__data__.get(Mn)}function Rw(Mn){return this.__data__.has(Mn)}function Iw(Mn,Yn){var ci=this.__data__;if(ci instanceof dl){var bi=ci.__data__;if(!Ih||bi.length<Wn-1)return bi.push([Mn,Yn]),this.size=++ci.size,this;ci=this.__data__=new pl(bi)}return ci.set(Mn,Yn),this.size=ci.size,this}ga.prototype.clear=Ew,ga.prototype.delete=Lw,ga.prototype.get=Nw,ga.prototype.has=Rw,ga.prototype.set=Iw;function uv(Mn,Yn){var ci=Xr(Mn),bi=!ci&&ic(Mn),Ti=!ci&&!bi&&Fl(Mn),Li=!ci&&!bi&&!Ti&&sh(Mn),Vi=ci||bi||Ti||Li,zi=Vi?Qo(Mn.length,Fs):[],qi=zi.length;for(var ir in Mn)(Yn||Ro.call(Mn,ir))&&!(Vi&&(ir=="length"||Ti&&(ir=="offset"||ir=="parent")||Li&&(ir=="buffer"||ir=="byteLength"||ir=="byteOffset")||vl(ir,qi)))&&zi.push(ir);return zi}function hv(Mn){var Yn=Mn.length;return Yn?Mn[xm(0,Yn-1)]:_n}function Dw(Mn,Yn){return Wg(Ys(Mn),Xl(Yn,0,Mn.length))}function Ow(Mn){return Wg(Ys(Mn))}function dm(Mn,Yn,ci){(ci!==_n&&!fa(Mn[Yn],ci)||ci===_n&&!(Yn in Mn))&&gl(Mn,Yn,ci)}function Bh(Mn,Yn,ci){var bi=Mn[Yn];(!(Ro.call(Mn,Yn)&&fa(bi,ci))||ci===_n&&!(Yn in Mn))&&gl(Mn,Yn,ci)}function Md(Mn,Yn){for(var ci=Mn.length;ci--;)if(fa(Mn[ci][0],Yn))return ci;return-1}function Vw(Mn,Yn,ci,bi){return Ol(Mn,function(Ti,Li,Vi){Yn(bi,Ti,ci(Ti),Vi)}),bi}function dv(Mn,Yn){return Mn&&Ca(Yn,Es(Yn),Mn)}function Bw(Mn,Yn){return Mn&&Ca(Yn,Zs(Yn),Mn)}function gl(Mn,Yn,ci){Yn=="__proto__"&&xd?xd(Mn,Yn,{configurable:!0,enumerable:!0,value:ci,writable:!0}):Mn[Yn]=ci}function pm(Mn,Yn){for(var ci=-1,bi=Yn.length,Ti=Ki(bi),Li=Mn==null;++ci<bi;)Ti[ci]=Li?_n:qm(Mn,Yn[ci]);return Ti}function Xl(Mn,Yn,ci){return Mn===Mn&&(ci!==_n&&(Mn=Mn<=ci?Mn:ci),Yn!==_n&&(Mn=Mn>=Yn?Mn:Yn)),Mn}function la(Mn,Yn,ci,bi,Ti,Li){var Vi,zi=Yn&Dn,qi=Yn&In,ir=Yn&Bn;if(ci&&(Vi=Ti?ci(Mn,bi,Ti,Li):ci(Mn)),Vi!==_n)return Vi;if(!Yo(Mn))return Mn;var ar=Xr(Mn);if(ar){if(Vi=C0(Mn),!zi)return Ys(Mn,Vi)}else{var pr=Bs(Mn),$r=pr==io||pr==Po;if(Fl(Mn))return Ov(Mn,zi);if(pr==Do||pr==Gi||$r&&!Ti){if(Vi=qi||$r?{}:ty(Mn),!zi)return qi?f0(Mn,Bw(Vi,Mn)):g0(Mn,dv(Vi,Mn))}else{if(!Vr[pr])return Ti?Mn:{};Vi=T0(Mn,pr,zi)}}Li||(Li=new ga);var Cr=Li.get(Mn);if(Cr)return Cr;Li.set(Mn,Vi),Ey(Mn)?Mn.forEach(function(Ur){Vi.add(la(Ur,Yn,ci,Ur,Mn,Li))}):My(Mn)&&Mn.forEach(function(Ur,Co){Vi.set(Co,la(Ur,Yn,ci,Co,Mn,Li))});var jr=ir?qi?Rm:Nm:qi?Zs:Es,ro=ar?_n:jr(Mn);return Ps(ro||Mn,function(Ur,Co){ro&&(Co=Ur,Ur=Mn[Co]),Bh(Vi,Co,la(Ur,Yn,ci,Co,Mn,Li))}),Vi}function Pw(Mn){var Yn=Es(Mn);return function(ci){return pv(ci,Mn,Yn)}}function pv(Mn,Yn,ci){var bi=ci.length;if(Mn==null)return!bi;for(Mn=Jr(Mn);bi--;){var Ti=ci[bi],Li=Yn[Ti],Vi=Mn[Ti];if(Vi===_n&&!(Ti in Mn)||!Li(Vi))return!1}return!0}function gv(Mn,Yn,ci){if(typeof Mn!="function")throw new Cs(Kn);return Uh(function(){Mn.apply(_n,ci)},Yn)}function Ph(Mn,Yn,ci,bi){var Ti=-1,Li=Ku,Vi=!0,zi=Mn.length,qi=[],ir=Yn.length;if(!zi)return qi;ci&&(Yn=zo(Yn,Os(ci))),bi?(Li=Gl,Vi=!1):Yn.length>=Wn&&(Li=pa,Vi=!1,Yn=new Jl(Yn));e:for(;++Ti<zi;){var ar=Mn[Ti],pr=ci==null?ar:ci(ar);if(ar=bi||ar!==0?ar:0,Vi&&pr===pr){for(var $r=ir;$r--;)if(Yn[$r]===pr)continue e;qi.push(ar)}else Li(Yn,pr,bi)||qi.push(ar)}return qi}var Ol=zv(Sa),fv=zv(fm,!0);function Fw(Mn,Yn){var ci=!0;return Ol(Mn,function(bi,Ti,Li){return ci=!!Yn(bi,Ti,Li),ci}),ci}function Ad(Mn,Yn,ci){for(var bi=-1,Ti=Mn.length;++bi<Ti;){var Li=Mn[bi],Vi=Yn(Li);if(Vi!=null&&(zi===_n?Vi===Vi&&!ea(Vi):ci(Vi,zi)))var zi=Vi,qi=Li}return qi}function zw(Mn,Yn,ci,bi){var Ti=Mn.length;for(ci=no(ci),ci<0&&(ci=-ci>Ti?0:Ti+ci),bi=bi===_n||bi>Ti?Ti:no(bi),bi<0&&(bi+=Ti),bi=ci>bi?0:Ny(bi);ci<bi;)Mn[ci++]=Yn;return Mn}function mv(Mn,Yn){var ci=[];return Ol(Mn,function(bi,Ti,Li){Yn(bi,Ti,Li)&&ci.push(bi)}),ci}function Ls(Mn,Yn,ci,bi,Ti){var Li=-1,Vi=Mn.length;for(ci||(ci=A0),Ti||(Ti=[]);++Li<Vi;){var zi=Mn[Li];Yn>0&&ci(zi)?Yn>1?Ls(zi,Yn-1,ci,bi,Ti):Ds(Ti,zi):bi||(Ti[Ti.length]=zi)}return Ti}var gm=Hv(),vv=Hv(!0);function Sa(Mn,Yn){return Mn&&gm(Mn,Yn,Es)}function fm(Mn,Yn){return Mn&&vv(Mn,Yn,Es)}function Ed(Mn,Yn){return Gs(Yn,function(ci){return yl(Mn[ci])})}function ec(Mn,Yn){Yn=Bl(Yn,Mn);for(var ci=0,bi=Yn.length;Mn!=null&&ci<bi;)Mn=Mn[Aa(Yn[ci++])];return ci&&ci==bi?Mn:_n}function yv(Mn,Yn,ci){var bi=Yn(Mn);return Xr(Mn)?bi:Ds(bi,ci(Mn))}function zs(Mn){return Mn==null?Mn===_n?Zo:Xo:Zl&&Zl in Jr(Mn)?_0(Mn):O0(Mn)}function mm(Mn,Yn){return Mn>Yn}function Hw(Mn,Yn){return Mn!=null&&Ro.call(Mn,Yn)}function Ww(Mn,Yn){return Mn!=null&&Yn in Jr(Mn)}function jw(Mn,Yn,ci){return Mn>=Vs(Yn,ci)&&Mn<Ts(Yn,ci)}function vm(Mn,Yn,ci){for(var bi=ci?Gl:Ku,Ti=Mn[0].length,Li=Mn.length,Vi=Li,zi=Ki(Li),qi=1/0,ir=[];Vi--;){var ar=Mn[Vi];Vi&&Yn&&(ar=zo(ar,Os(Yn))),qi=Vs(ar.length,qi),zi[Vi]=!ci&&(Yn||Ti>=120&&ar.length>=120)?new Jl(Vi&&ar):_n}ar=Mn[0];var pr=-1,$r=zi[0];e:for(;++pr<Ti&&ir.length<qi;){var Cr=ar[pr],jr=Yn?Yn(Cr):Cr;if(Cr=ci||Cr!==0?Cr:0,!($r?pa($r,jr):bi(ir,jr,ci))){for(Vi=Li;--Vi;){var ro=zi[Vi];if(!(ro?pa(ro,jr):bi(Mn[Vi],jr,ci)))continue e}$r&&$r.push(jr),ir.push(Cr)}}return ir}function Uw(Mn,Yn,ci,bi){return Sa(Mn,function(Ti,Li,Vi){Yn(bi,ci(Ti),Li,Vi)}),bi}function Fh(Mn,Yn,ci){Yn=Bl(Yn,Mn),Mn=oy(Mn,Yn);var bi=Mn==null?Mn:Mn[Aa(ua(Yn))];return bi==null?_n:Wo(bi,Mn,ci)}function wv(Mn){return Jo(Mn)&&zs(Mn)==Gi}function Gw(Mn){return Jo(Mn)&&zs(Mn)==xr}function qw(Mn){return Jo(Mn)&&zs(Mn)==gr}function zh(Mn,Yn,ci,bi,Ti){return Mn===Yn?!0:Mn==null||Yn==null||!Jo(Mn)&&!Jo(Yn)?Mn!==Mn&&Yn!==Yn:Yw(Mn,Yn,ci,bi,zh,Ti)}function Yw(Mn,Yn,ci,bi,Ti,Li){var Vi=Xr(Mn),zi=Xr(Yn),qi=Vi?Pi:Bs(Mn),ir=zi?Pi:Bs(Yn);qi=qi==Gi?Do:qi,ir=ir==Gi?Do:ir;var ar=qi==Do,pr=ir==Do,$r=qi==ir;if($r&&Fl(Mn)){if(!Fl(Yn))return!1;Vi=!0,ar=!1}if($r&&!ar)return Li||(Li=new ga),Vi||sh(Mn)?Jv(Mn,Yn,ci,bi,Ti,Li):$0(Mn,Yn,qi,ci,bi,Ti,Li);if(!(ci&Ln)){var Cr=ar&&Ro.call(Mn,"__wrapped__"),jr=pr&&Ro.call(Yn,"__wrapped__");if(Cr||jr){var ro=Cr?Mn.value():Mn,Ur=jr?Yn.value():Yn;return Li||(Li=new ga),Ti(ro,Ur,ci,bi,Li)}}return $r?(Li||(Li=new ga),x0(Mn,Yn,ci,bi,Ti,Li)):!1}function Kw(Mn){return Jo(Mn)&&Bs(Mn)==lo}function ym(Mn,Yn,ci,bi){var Ti=ci.length,Li=Ti,Vi=!bi;if(Mn==null)return!Li;for(Mn=Jr(Mn);Ti--;){var zi=ci[Ti];if(Vi&&zi[2]?zi[1]!==Mn[zi[0]]:!(zi[0]in Mn))return!1}for(;++Ti<Li;){zi=ci[Ti];var qi=zi[0],ir=Mn[qi],ar=zi[1];if(Vi&&zi[2]){if(ir===_n&&!(qi in Mn))return!1}else{var pr=new ga;if(bi)var $r=bi(ir,ar,qi,Mn,Yn,pr);if(!($r===_n?zh(ar,ir,Ln|Pn,bi,pr):$r))return!1}}return!0}function bv(Mn){if(!Yo(Mn)||L0(Mn))return!1;var Yn=yl(Mn)?Ky:as;return Yn.test(nc(Mn))}function Zw(Mn){return Jo(Mn)&&zs(Mn)==ss}function Qw(Mn){return Jo(Mn)&&Bs(Mn)==Ko}function Jw(Mn){return Jo(Mn)&&Kg(Mn.length)&&!!Io[zs(Mn)]}function $v(Mn){return typeof Mn=="function"?Mn:Mn==null?Qs:typeof Mn=="object"?Xr(Mn)?kv(Mn[0],Mn[1]):_v(Mn):Wy(Mn)}function wm(Mn){if(!jh(Mn))return tw(Mn);var Yn=[];for(var ci in Jr(Mn))Ro.call(Mn,ci)&&ci!="constructor"&&Yn.push(ci);return Yn}function Xw(Mn){if(!Yo(Mn))return D0(Mn);var Yn=jh(Mn),ci=[];for(var bi in Mn)bi=="constructor"&&(Yn||!Ro.call(Mn,bi))||ci.push(bi);return ci}function bm(Mn,Yn){return Mn<Yn}function xv(Mn,Yn){var ci=-1,bi=Ks(Mn)?Ki(Mn.length):[];return Ol(Mn,function(Ti,Li,Vi){bi[++ci]=Yn(Ti,Li,Vi)}),bi}function _v(Mn){var Yn=Dm(Mn);return Yn.length==1&&Yn[0][2]?iy(Yn[0][0],Yn[0][1]):function(ci){return ci===Mn||ym(ci,Mn,Yn)}}function kv(Mn,Yn){return Vm(Mn)&&ny(Yn)?iy(Aa(Mn),Yn):function(ci){var bi=qm(ci,Mn);return bi===_n&&bi===Yn?Ym(ci,Mn):zh(Yn,bi,Ln|Pn)}}function Ld(Mn,Yn,ci,bi,Ti){Mn!==Yn&&gm(Yn,function(Li,Vi){if(Ti||(Ti=new ga),Yo(Li))e0(Mn,Yn,Vi,ci,Ld,bi,Ti);else{var zi=bi?bi(Pm(Mn,Vi),Li,Vi+"",Mn,Yn,Ti):_n;zi===_n&&(zi=Li),dm(Mn,Vi,zi)}},Zs)}function e0(Mn,Yn,ci,bi,Ti,Li,Vi){var zi=Pm(Mn,ci),qi=Pm(Yn,ci),ir=Vi.get(qi);if(ir){dm(Mn,ci,ir);return}var ar=Li?Li(zi,qi,ci+"",Mn,Yn,Vi):_n,pr=ar===_n;if(pr){var $r=Xr(qi),Cr=!$r&&Fl(qi),jr=!$r&&!Cr&&sh(qi);ar=qi,$r||Cr||jr?Xr(zi)?ar=zi:es(zi)?ar=Ys(zi):Cr?(pr=!1,ar=Ov(qi,!0)):jr?(pr=!1,ar=Vv(qi,!0)):ar=[]:Gh(qi)||ic(qi)?(ar=zi,ic(zi)?ar=Ry(zi):(!Yo(zi)||yl(zi))&&(ar=ty(qi))):pr=!1}pr&&(Vi.set(qi,ar),Ti(ar,qi,bi,Li,Vi),Vi.delete(qi)),dm(Mn,ci,ar)}function Sv(Mn,Yn){var ci=Mn.length;if(ci)return Yn+=Yn<0?ci:0,vl(Yn,ci)?Mn[Yn]:_n}function Cv(Mn,Yn,ci){Yn.length?Yn=zo(Yn,function(Li){return Xr(Li)?function(Vi){return ec(Vi,Li.length===1?Li[0]:Li)}:Li}):Yn=[Qs];var bi=-1;Yn=zo(Yn,Os(zr()));var Ti=xv(Mn,function(Li,Vi,zi){var qi=zo(Yn,function(ir){return ir(Li)});return{criteria:qi,index:++bi,value:Li}});return Rl(Ti,function(Li,Vi){return p0(Li,Vi,ci)})}function t0(Mn,Yn){return Tv(Mn,Yn,function(ci,bi){return Ym(Mn,bi)})}function Tv(Mn,Yn,ci){for(var bi=-1,Ti=Yn.length,Li={};++bi<Ti;){var Vi=Yn[bi],zi=ec(Mn,Vi);ci(zi,Vi)&&Hh(Li,Bl(Vi,Mn),zi)}return Li}function n0(Mn){return function(Yn){return ec(Yn,Mn)}}function $m(Mn,Yn,ci,bi){var Ti=bi?hd:hl,Li=-1,Vi=Yn.length,zi=Mn;for(Mn===Yn&&(Yn=Ys(Yn)),ci&&(zi=zo(Mn,Os(ci)));++Li<Vi;)for(var qi=0,ir=Yn[Li],ar=ci?ci(ir):ir;(qi=Ti(zi,ar,qi,bi))>-1;)zi!==Mn&&$d.call(zi,qi,1),$d.call(Mn,qi,1);return Mn}function Mv(Mn,Yn){for(var ci=Mn?Yn.length:0,bi=ci-1;ci--;){var Ti=Yn[ci];if(ci==bi||Ti!==Li){var Li=Ti;vl(Ti)?$d.call(Mn,Ti,1):Sm(Mn,Ti)}}return Mn}function xm(Mn,Yn){return Mn+kd(lv()*(Yn-Mn+1))}function i0(Mn,Yn,ci,bi){for(var Ti=-1,Li=Ts(_d((Yn-Mn)/(ci||1)),0),Vi=Ki(Li);Li--;)Vi[bi?Li:++Ti]=Mn,Mn+=ci;return Vi}function _m(Mn,Yn){var ci="";if(!Mn||Yn<1||Yn>Si)return ci;do Yn%2&&(ci+=Mn),Yn=kd(Yn/2),Yn&&(Mn+=Mn);while(Yn);return ci}function ao(Mn,Yn){return Fm(ry(Mn,Yn,Qs),Mn+"")}function r0(Mn){return hv(ah(Mn))}function o0(Mn,Yn){var ci=ah(Mn);return Wg(ci,Xl(Yn,0,ci.length))}function Hh(Mn,Yn,ci,bi){if(!Yo(Mn))return Mn;Yn=Bl(Yn,Mn);for(var Ti=-1,Li=Yn.length,Vi=Li-1,zi=Mn;zi!=null&&++Ti<Li;){var qi=Aa(Yn[Ti]),ir=ci;if(qi==="__proto__"||qi==="constructor"||qi==="prototype")return Mn;if(Ti!=Vi){var ar=zi[qi];ir=bi?bi(ar,qi,zi):_n,ir===_n&&(ir=Yo(ar)?ar:vl(Yn[Ti+1])?[]:{})}Bh(zi,qi,ir),zi=zi[qi]}return Mn}var Av=Sd?function(Mn,Yn){return Sd.set(Mn,Yn),Mn}:Qs,s0=xd?function(Mn,Yn){return xd(Mn,"toString",{configurable:!0,enumerable:!1,value:Zm(Yn),writable:!0})}:Qs;function a0(Mn){return Wg(ah(Mn))}function ca(Mn,Yn,ci){var bi=-1,Ti=Mn.length;Yn<0&&(Yn=-Yn>Ti?0:Ti+Yn),ci=ci>Ti?Ti:ci,ci<0&&(ci+=Ti),Ti=Yn>ci?0:ci-Yn>>>0,Yn>>>=0;for(var Li=Ki(Ti);++bi<Ti;)Li[bi]=Mn[bi+Yn];return Li}function l0(Mn,Yn){var ci;return Ol(Mn,function(bi,Ti,Li){return ci=Yn(bi,Ti,Li),!ci}),!!ci}function Rd(Mn,Yn,ci){var bi=0,Ti=Mn==null?bi:Mn.length;if(typeof Yn=="number"&&Yn===Yn&&Ti<=Ii){for(;bi<Ti;){var Li=bi+Ti>>>1,Vi=Mn[Li];Vi!==null&&!ea(Vi)&&(ci?Vi<=Yn:Vi<Yn)?bi=Li+1:Ti=Li}return Ti}return km(Mn,Yn,Qs,ci)}function km(Mn,Yn,ci,bi){var Ti=0,Li=Mn==null?0:Mn.length;if(Li===0)return 0;Yn=ci(Yn);for(var Vi=Yn!==Yn,zi=Yn===null,qi=ea(Yn),ir=Yn===_n;Ti<Li;){var ar=kd((Ti+Li)/2),pr=ci(Mn[ar]),$r=pr!==_n,Cr=pr===null,jr=pr===pr,ro=ea(pr);if(Vi)var Ur=bi||jr;else ir?Ur=jr&&(bi||$r):zi?Ur=jr&&$r&&(bi||!Cr):qi?Ur=jr&&$r&&!Cr&&(bi||!ro):Cr||ro?Ur=!1:Ur=bi?pr<=Yn:pr<Yn;Ur?Ti=ar+1:Li=ar}return Vs(Li,Fi)}function Ev(Mn,Yn){for(var ci=-1,bi=Mn.length,Ti=0,Li=[];++ci<bi;){var Vi=Mn[ci],zi=Yn?Yn(Vi):Vi;if(!ci||!fa(zi,qi)){var qi=zi;Li[Ti++]=Vi===0?0:Vi}}return Li}function Lv(Mn){return typeof Mn=="number"?Mn:ea(Mn)?Ni:+Mn}function Xs(Mn){if(typeof Mn=="string")return Mn;if(Xr(Mn))return zo(Mn,Xs)+"";if(ea(Mn))return cv?cv.call(Mn):"";var Yn=Mn+"";return Yn=="0"&&1/Mn==-xi?"-0":Yn}function Vl(Mn,Yn,ci){var bi=-1,Ti=Ku,Li=Mn.length,Vi=!0,zi=[],qi=zi;if(ci)Vi=!1,Ti=Gl;else if(Li>=Wn){var ir=Yn?null:w0(Mn);if(ir)return br(ir);Vi=!1,Ti=pa,qi=new Jl}else qi=Yn?[]:zi;e:for(;++bi<Li;){var ar=Mn[bi],pr=Yn?Yn(ar):ar;if(ar=ci||ar!==0?ar:0,Vi&&pr===pr){for(var $r=qi.length;$r--;)if(qi[$r]===pr)continue e;Yn&&qi.push(pr),zi.push(ar)}else Ti(qi,pr,ci)||(qi!==zi&&qi.push(pr),zi.push(ar))}return zi}function Sm(Mn,Yn){return Yn=Bl(Yn,Mn),Mn=oy(Mn,Yn),Mn==null||delete Mn[Aa(ua(Yn))]}function Nv(Mn,Yn,ci,bi){return Hh(Mn,Yn,ci(ec(Mn,Yn)),bi)}function Id(Mn,Yn,ci,bi){for(var Ti=Mn.length,Li=bi?Ti:-1;(bi?Li--:++Li<Ti)&&Yn(Mn[Li],Li,Mn););return ci?ca(Mn,bi?0:Li,bi?Li+1:Ti):ca(Mn,bi?Li+1:0,bi?Ti:Li)}function Rv(Mn,Yn){var ci=Mn;return ci instanceof To&&(ci=ci.value()),sa(Yn,function(bi,Ti){return Ti.func.apply(Ti.thisArg,Ds([bi],Ti.args))},ci)}function Cm(Mn,Yn,ci){var bi=Mn.length;if(bi<2)return bi?Vl(Mn[0]):[];for(var Ti=-1,Li=Ki(bi);++Ti<bi;)for(var Vi=Mn[Ti],zi=-1;++zi<bi;)zi!=Ti&&(Li[Ti]=Ph(Li[Ti]||Vi,Mn[zi],Yn,ci));return Vl(Ls(Li,1),Yn,ci)}function Iv(Mn,Yn,ci){for(var bi=-1,Ti=Mn.length,Li=Yn.length,Vi={};++bi<Ti;){var zi=bi<Li?Yn[bi]:_n;ci(Vi,Mn[bi],zi)}return Vi}function Tm(Mn){return es(Mn)?Mn:[]}function Mm(Mn){return typeof Mn=="function"?Mn:Qs}function Bl(Mn,Yn){return Xr(Mn)?Mn:Vm(Mn,Yn)?[Mn]:cy(Lo(Mn))}var c0=ao;function Pl(Mn,Yn,ci){var bi=Mn.length;return ci=ci===_n?bi:ci,!Yn&&ci>=bi?Mn:ca(Mn,Yn,ci)}var Dv=Zy||function(Mn){return cs.clearTimeout(Mn)};function Ov(Mn,Yn){if(Yn)return Mn.slice();var ci=Mn.length,bi=iv?iv(ci):new Mn.constructor(ci);return Mn.copy(bi),bi}function Am(Mn){var Yn=new Mn.constructor(Mn.byteLength);return new wd(Yn).set(new wd(Mn)),Yn}function u0(Mn,Yn){var ci=Yn?Am(Mn.buffer):Mn.buffer;return new Mn.constructor(ci,Mn.byteOffset,Mn.byteLength)}function h0(Mn){var Yn=new Mn.constructor(Mn.source,kl.exec(Mn));return Yn.lastIndex=Mn.lastIndex,Yn}function d0(Mn){return Vh?Jr(Vh.call(Mn)):{}}function Vv(Mn,Yn){var ci=Yn?Am(Mn.buffer):Mn.buffer;return new Mn.constructor(ci,Mn.byteOffset,Mn.length)}function Bv(Mn,Yn){if(Mn!==Yn){var ci=Mn!==_n,bi=Mn===null,Ti=Mn===Mn,Li=ea(Mn),Vi=Yn!==_n,zi=Yn===null,qi=Yn===Yn,ir=ea(Yn);if(!zi&&!ir&&!Li&&Mn>Yn||Li&&Vi&&qi&&!zi&&!ir||bi&&Vi&&qi||!ci&&qi||!Ti)return 1;if(!bi&&!Li&&!ir&&Mn<Yn||ir&&ci&&Ti&&!bi&&!Li||zi&&ci&&Ti||!Vi&&Ti||!qi)return-1}return 0}function p0(Mn,Yn,ci){for(var bi=-1,Ti=Mn.criteria,Li=Yn.criteria,Vi=Ti.length,zi=ci.length;++bi<Vi;){var qi=Bv(Ti[bi],Li[bi]);if(qi){if(bi>=zi)return qi;var ir=ci[bi];return qi*(ir=="desc"?-1:1)}}return Mn.index-Yn.index}function Pv(Mn,Yn,ci,bi){for(var Ti=-1,Li=Mn.length,Vi=ci.length,zi=-1,qi=Yn.length,ir=Ts(Li-Vi,0),ar=Ki(qi+ir),pr=!bi;++zi<qi;)ar[zi]=Yn[zi];for(;++Ti<Vi;)(pr||Ti<Li)&&(ar[ci[Ti]]=Mn[Ti]);for(;ir--;)ar[zi++]=Mn[Ti++];return ar}function Fv(Mn,Yn,ci,bi){for(var Ti=-1,Li=Mn.length,Vi=-1,zi=ci.length,qi=-1,ir=Yn.length,ar=Ts(Li-zi,0),pr=Ki(ar+ir),$r=!bi;++Ti<ar;)pr[Ti]=Mn[Ti];for(var Cr=Ti;++qi<ir;)pr[Cr+qi]=Yn[qi];for(;++Vi<zi;)($r||Ti<Li)&&(pr[Cr+ci[Vi]]=Mn[Ti++]);return pr}function Ys(Mn,Yn){var ci=-1,bi=Mn.length;for(Yn||(Yn=Ki(bi));++ci<bi;)Yn[ci]=Mn[ci];return Yn}function Ca(Mn,Yn,ci,bi){var Ti=!ci;ci||(ci={});for(var Li=-1,Vi=Yn.length;++Li<Vi;){var zi=Yn[Li],qi=bi?bi(ci[zi],Mn[zi],zi,ci,Mn):_n;qi===_n&&(qi=Mn[zi]),Ti?gl(ci,zi,qi):Bh(ci,zi,qi)}return ci}function g0(Mn,Yn){return Ca(Mn,Om(Mn),Yn)}function f0(Mn,Yn){return Ca(Mn,Xv(Mn),Yn)}function Dd(Mn,Yn){return function(ci,bi){var Ti=Xr(ci)?lm:Vw,Li=Yn?Yn():{};return Ti(ci,Mn,zr(bi,2),Li)}}function ih(Mn){return ao(function(Yn,ci){var bi=-1,Ti=ci.length,Li=Ti>1?ci[Ti-1]:_n,Vi=Ti>2?ci[2]:_n;for(Li=Mn.length>3&&typeof Li=="function"?(Ti--,Li):_n,Vi&&Hs(ci[0],ci[1],Vi)&&(Li=Ti<3?_n:Li,Ti=1),Yn=Jr(Yn);++bi<Ti;){var zi=ci[bi];zi&&Mn(Yn,zi,bi,Li)}return Yn})}function zv(Mn,Yn){return function(ci,bi){if(ci==null)return ci;if(!Ks(ci))return Mn(ci,bi);for(var Ti=ci.length,Li=Yn?Ti:-1,Vi=Jr(ci);(Yn?Li--:++Li<Ti)&&bi(Vi[Li],Li,Vi)!==!1;);return ci}}function Hv(Mn){return function(Yn,ci,bi){for(var Ti=-1,Li=Jr(Yn),Vi=bi(Yn),zi=Vi.length;zi--;){var qi=Vi[Mn?zi:++Ti];if(ci(Li[qi],qi,Li)===!1)break}return Yn}}function m0(Mn,Yn,ci){var bi=Yn&Zn,Ti=Wh(Mn);function Li(){var Vi=this&&this!==cs&&this instanceof Li?Ti:Mn;return Vi.apply(bi?ci:this,arguments)}return Li}function Wv(Mn){return function(Yn){Yn=Lo(Yn);var ci=Wi(Yn)?qr(Yn):_n,bi=ci?ci[0]:Yn.charAt(0),Ti=ci?Pl(ci,1).join(""):Yn.slice(1);return bi[Mn]()+Ti}}function rh(Mn){return function(Yn){return sa(zy(Fy(Yn).replace(_h,"")),Mn,"")}}function Wh(Mn){return function(){var Yn=arguments;switch(Yn.length){case 0:return new Mn;case 1:return new Mn(Yn[0]);case 2:return new Mn(Yn[0],Yn[1]);case 3:return new Mn(Yn[0],Yn[1],Yn[2]);case 4:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3]);case 5:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4]);case 6:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4],Yn[5]);case 7:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4],Yn[5],Yn[6])}var ci=nh(Mn.prototype),bi=Mn.apply(ci,Yn);return Yo(bi)?bi:ci}}function v0(Mn,Yn,ci){var bi=Wh(Mn);function Ti(){for(var Li=arguments.length,Vi=Ki(Li),zi=Li,qi=oh(Ti);zi--;)Vi[zi]=arguments[zi];var ir=Li<3&&Vi[0]!==qi&&Vi[Li-1]!==qi?[]:vr(Vi,qi);if(Li-=ir.length,Li<ci)return Yv(Mn,Yn,Od,Ti.placeholder,_n,Vi,ir,_n,_n,ci-Li);var ar=this&&this!==cs&&this instanceof Ti?bi:Mn;return Wo(ar,this,Vi)}return Ti}function jv(Mn){return function(Yn,ci,bi){var Ti=Jr(Yn);if(!Ks(Yn)){var Li=zr(ci,3);Yn=Es(Yn),ci=function(zi){return Li(Ti[zi],zi,Ti)}}var Vi=Mn(Yn,ci,bi);return Vi>-1?Ti[Li?Yn[Vi]:Vi]:_n}}function Uv(Mn){return ml(function(Yn){var ci=Yn.length,bi=ci,Ti=aa.prototype.thru;for(Mn&&Yn.reverse();bi--;){var Li=Yn[bi];if(typeof Li!="function")throw new Cs(Kn);if(Ti&&!Vi&&zg(Li)=="wrapper")var Vi=new aa([],!0)}for(bi=Vi?bi:ci;++bi<ci;){Li=Yn[bi];var zi=zg(Li),qi=zi=="wrapper"?Im(Li):_n;qi&&Bm(qi[0])&&qi[1]==(fi|mi|oi|gi)&&!qi[4].length&&qi[9]==1?Vi=Vi[zg(qi[0])].apply(Vi,qi[3]):Vi=Li.length==1&&Bm(Li)?Vi[zi]():Vi.thru(Li)}return function(){var ir=arguments,ar=ir[0];if(Vi&&ir.length==1&&Xr(ar))return Vi.plant(ar).value();for(var pr=0,$r=ci?Yn[pr].apply(this,ir):ar;++pr<ci;)$r=Yn[pr].call(this,$r);return $r}})}function Od(Mn,Yn,ci,bi,Ti,Li,Vi,zi,qi,ir){var ar=Yn&fi,pr=Yn&Zn,$r=Yn&Jn,Cr=Yn&(mi|li),jr=Yn&yi,ro=$r?_n:Wh(Mn);function Ur(){for(var Co=arguments.length,Mo=Ki(Co),ta=Co;ta--;)Mo[ta]=arguments[ta];if(Cr)var Ws=oh(Ur),na=Nh(Mo,Ws);if(bi&&(Mo=Pv(Mo,bi,Ti,Cr)),Li&&(Mo=Fv(Mo,Li,Vi,Cr)),Co-=na,Cr&&Co<ir){var ts=vr(Mo,Ws);return Yv(Mn,Yn,Od,Ur.placeholder,ci,Mo,ts,zi,qi,ir-Co)}var ma=pr?ci:this,bl=$r?ma[Mn]:Mn;return Co=Mo.length,zi?Mo=V0(Mo,zi):jr&&Co>1&&Mo.reverse(),ar&&qi<Co&&(Mo.length=qi),this&&this!==cs&&this instanceof Ur&&(bl=ro||Wh(bl)),bl.apply(ma,Mo)}return Ur}function Gv(Mn,Yn){return function(ci,bi){return Uw(ci,Mn,Yn(bi),{})}}function Vg(Mn,Yn){return function(ci,bi){var Ti;if(ci===_n&&bi===_n)return Yn;if(ci!==_n&&(Ti=ci),bi!==_n){if(Ti===_n)return bi;typeof ci=="string"||typeof bi=="string"?(ci=Xs(ci),bi=Xs(bi)):(ci=Lv(ci),bi=Lv(bi)),Ti=Mn(ci,bi)}return Ti}}function Em(Mn){return ml(function(Yn){return Yn=zo(Yn,Os(zr())),ao(function(ci){var bi=this;return Mn(Yn,function(Ti){return Wo(Ti,bi,ci)})})})}function Bg(Mn,Yn){Yn=Yn===_n?" ":Xs(Yn);var ci=Yn.length;if(ci<2)return ci?_m(Yn,Mn):Yn;var bi=_m(Yn,_d(Mn/to(Yn)));return Wi(Yn)?Pl(qr(bi),0,Mn).join(""):bi.slice(0,Mn)}function y0(Mn,Yn,ci,bi){var Ti=Yn&Zn,Li=Wh(Mn);function Vi(){for(var zi=-1,qi=arguments.length,ir=-1,ar=bi.length,pr=Ki(ar+qi),$r=this&&this!==cs&&this instanceof Vi?Li:Mn;++ir<ar;)pr[ir]=bi[ir];for(;qi--;)pr[ir++]=arguments[++zi];return Wo($r,Ti?ci:this,pr)}return Vi}function qv(Mn){return function(Yn,ci,bi){return bi&&typeof bi!="number"&&Hs(Yn,ci,bi)&&(ci=bi=_n),Yn=wl(Yn),ci===_n?(ci=Yn,Yn=0):ci=wl(ci),bi=bi===_n?Yn<ci?1:-1:wl(bi),i0(Yn,ci,bi,Mn)}}function Pg(Mn){return function(Yn,ci){return typeof Yn=="string"&&typeof ci=="string"||(Yn=ha(Yn),ci=ha(ci)),Mn(Yn,ci)}}function Yv(Mn,Yn,ci,bi,Ti,Li,Vi,zi,qi,ir){var ar=Yn&mi,pr=ar?Vi:_n,$r=ar?_n:Vi,Cr=ar?Li:_n,jr=ar?_n:Li;Yn|=ar?oi:ei,Yn&=~(ar?ei:oi),Yn&Xn||(Yn&=~(Zn|Jn));var ro=[Mn,Yn,Ti,Cr,pr,jr,$r,zi,qi,ir],Ur=ci.apply(_n,ro);return Bm(Mn)&&sy(Ur,ro),Ur.placeholder=bi,ay(Ur,Mn,Yn)}function Lm(Mn){var Yn=Eo[Mn];return function(ci,bi){if(ci=ha(ci),bi=bi==null?0:Vs(no(bi),292),bi&&av(ci)){var Ti=(Lo(ci)+"e").split("e"),Li=Yn(Ti[0]+"e"+(+Ti[1]+bi));return Ti=(Lo(Li)+"e").split("e"),+(Ti[0]+"e"+(+Ti[1]-bi))}return Yn(ci)}}var w0=eh&&1/br(new eh([,-0]))[1]==xi?function(Mn){return new eh(Mn)}:Xm;function Kv(Mn){return function(Yn){var ci=Bs(Yn);return ci==lo?fr(Yn):ci==Ko?_r(Yn):dd(Yn,Mn(Yn))}}function fl(Mn,Yn,ci,bi,Ti,Li,Vi,zi){var qi=Yn&Jn;if(!qi&&typeof Mn!="function")throw new Cs(Kn);var ir=bi?bi.length:0;if(ir||(Yn&=~(oi|ei),bi=Ti=_n),Vi=Vi===_n?Vi:Ts(no(Vi),0),zi=zi===_n?zi:no(zi),ir-=Ti?Ti.length:0,Yn&ei){var ar=bi,pr=Ti;bi=Ti=_n}var $r=qi?_n:Im(Mn),Cr=[Mn,Yn,ci,bi,Ti,ar,pr,Li,Vi,zi];if($r&&I0(Cr,$r),Mn=Cr[0],Yn=Cr[1],ci=Cr[2],bi=Cr[3],Ti=Cr[4],zi=Cr[9]=Cr[9]===_n?qi?0:Mn.length:Ts(Cr[9]-ir,0),!zi&&Yn&(mi|li)&&(Yn&=~(mi|li)),!Yn||Yn==Zn)var jr=m0(Mn,Yn,ci);else Yn==mi||Yn==li?jr=v0(Mn,Yn,zi):(Yn==oi||Yn==(Zn|oi))&&!Ti.length?jr=y0(Mn,Yn,ci,bi):jr=Od.apply(_n,Cr);var ro=$r?Av:sy;return ay(ro(jr,Cr),Mn,Yn)}function Zv(Mn,Yn,ci,bi){return Mn===_n||fa(Mn,Xu[ci])&&!Ro.call(bi,ci)?Yn:Mn}function Qv(Mn,Yn,ci,bi,Ti,Li){return Yo(Mn)&&Yo(Yn)&&(Li.set(Yn,Mn),Ld(Mn,Yn,_n,Qv,Li),Li.delete(Yn)),Mn}function b0(Mn){return Gh(Mn)?_n:Mn}function Jv(Mn,Yn,ci,bi,Ti,Li){var Vi=ci&Ln,zi=Mn.length,qi=Yn.length;if(zi!=qi&&!(Vi&&qi>zi))return!1;var ir=Li.get(Mn),ar=Li.get(Yn);if(ir&&ar)return ir==Yn&&ar==Mn;var pr=-1,$r=!0,Cr=ci&Pn?new Jl:_n;for(Li.set(Mn,Yn),Li.set(Yn,Mn);++pr<zi;){var jr=Mn[pr],ro=Yn[pr];if(bi)var Ur=Vi?bi(ro,jr,pr,Yn,Mn,Li):bi(jr,ro,pr,Mn,Yn,Li);if(Ur!==_n){if(Ur)continue;$r=!1;break}if(Cr){if(!Zu(Yn,function(Co,Mo){if(!pa(Cr,Mo)&&(jr===Co||Ti(jr,Co,ci,bi,Li)))return Cr.push(Mo)})){$r=!1;break}}else if(!(jr===ro||Ti(jr,ro,ci,bi,Li))){$r=!1;break}}return Li.delete(Mn),Li.delete(Yn),$r}function $0(Mn,Yn,ci,bi,Ti,Li,Vi){switch(ci){case kr:if(Mn.byteLength!=Yn.byteLength||Mn.byteOffset!=Yn.byteOffset)return!1;Mn=Mn.buffer,Yn=Yn.buffer;case xr:return!(Mn.byteLength!=Yn.byteLength||!Li(new wd(Mn),new wd(Yn)));case lr:case gr:case So:return fa(+Mn,+Yn);case yr:return Mn.name==Yn.name&&Mn.message==Yn.message;case ss:case Mr:return Mn==Yn+"";case lo:var zi=fr;case Ko:var qi=bi&Ln;if(zi||(zi=br),Mn.size!=Yn.size&&!qi)return!1;var ir=Vi.get(Mn);if(ir)return ir==Yn;bi|=Pn,Vi.set(Mn,Yn);var ar=Jv(zi(Mn),zi(Yn),bi,Ti,Li,Vi);return Vi.delete(Mn),ar;case Br:if(Vh)return Vh.call(Mn)==Vh.call(Yn)}return!1}function x0(Mn,Yn,ci,bi,Ti,Li){var Vi=ci&Ln,zi=Nm(Mn),qi=zi.length,ir=Nm(Yn),ar=ir.length;if(qi!=ar&&!Vi)return!1;for(var pr=qi;pr--;){var $r=zi[pr];if(!(Vi?$r in Yn:Ro.call(Yn,$r)))return!1}var Cr=Li.get(Mn),jr=Li.get(Yn);if(Cr&&jr)return Cr==Yn&&jr==Mn;var ro=!0;Li.set(Mn,Yn),Li.set(Yn,Mn);for(var Ur=Vi;++pr<qi;){$r=zi[pr];var Co=Mn[$r],Mo=Yn[$r];if(bi)var ta=Vi?bi(Mo,Co,$r,Yn,Mn,Li):bi(Co,Mo,$r,Mn,Yn,Li);if(!(ta===_n?Co===Mo||Ti(Co,Mo,ci,bi,Li):ta)){ro=!1;break}Ur||(Ur=$r=="constructor")}if(ro&&!Ur){var Ws=Mn.constructor,na=Yn.constructor;Ws!=na&&"constructor"in Mn&&"constructor"in Yn&&!(typeof Ws=="function"&&Ws instanceof Ws&&typeof na=="function"&&na instanceof na)&&(ro=!1)}return Li.delete(Mn),Li.delete(Yn),ro}function ml(Mn){return Fm(ry(Mn,_n,py),Mn+"")}function Nm(Mn){return yv(Mn,Es,Om)}function Rm(Mn){return yv(Mn,Zs,Xv)}var Im=Sd?function(Mn){return Sd.get(Mn)}:Xm;function zg(Mn){for(var Yn=Mn.name+"",ci=th[Yn],bi=Ro.call(th,Yn)?ci.length:0;bi--;){var Ti=ci[bi],Li=Ti.func;if(Li==null||Li==Mn)return Ti.name}return Yn}function oh(Mn){var Yn=Ro.call(Ai,"placeholder")?Ai:Mn;return Yn.placeholder}function zr(){var Mn=Ai.iteratee||Qm;return Mn=Mn===Qm?$v:Mn,arguments.length?Mn(arguments[0],arguments[1]):Mn}function Hg(Mn,Yn){var ci=Mn.__data__;return E0(Yn)?ci[typeof Yn=="string"?"string":"hash"]:ci.map}function Dm(Mn){for(var Yn=Es(Mn),ci=Yn.length;ci--;){var bi=Yn[ci],Ti=Mn[bi];Yn[ci]=[bi,Ti,ny(Ti)]}return Yn}function tc(Mn,Yn){var ci=Oi(Mn,Yn);return bv(ci)?ci:_n}function _0(Mn){var Yn=Ro.call(Mn,Zl),ci=Mn[Zl];try{Mn[Zl]=_n;var bi=!0}catch{}var Ti=vd.call(Mn);return bi&&(Yn?Mn[Zl]=ci:delete Mn[Zl]),Ti}var Om=cm?function(Mn){return Mn==null?[]:(Mn=Jr(Mn),Gs(cm(Mn),function(Yn){return ov.call(Mn,Yn)}))}:ev,Xv=cm?function(Mn){for(var Yn=[];Mn;)Ds(Yn,Om(Mn)),Mn=bd(Mn);return Yn}:ev,Bs=zs;(um&&Bs(new um(new ArrayBuffer(1)))!=kr||Ih&&Bs(new Ih)!=lo||hm&&Bs(hm.resolve())!=Uo||eh&&Bs(new eh)!=Ko||Dh&&Bs(new Dh)!=Hr)&&(Bs=function(Mn){var Yn=zs(Mn),ci=Yn==Do?Mn.constructor:_n,bi=ci?nc(ci):"";if(bi)switch(bi){case ow:return kr;case sw:return lo;case aw:return Uo;case lw:return Ko;case cw:return Hr}return Yn});function k0(Mn,Yn,ci){for(var bi=-1,Ti=ci.length;++bi<Ti;){var Li=ci[bi],Vi=Li.size;switch(Li.type){case"drop":Mn+=Vi;break;case"dropRight":Yn-=Vi;break;case"take":Yn=Vs(Yn,Mn+Vi);break;case"takeRight":Mn=Ts(Mn,Yn-Vi);break}}return{start:Mn,end:Yn}}function S0(Mn){var Yn=Mn.match(Yh);return Yn?Yn[1].split(Kh):[]}function ey(Mn,Yn,ci){Yn=Bl(Yn,Mn);for(var bi=-1,Ti=Yn.length,Li=!1;++bi<Ti;){var Vi=Aa(Yn[bi]);if(!(Li=Mn!=null&&ci(Mn,Vi)))break;Mn=Mn[Vi]}return Li||++bi!=Ti?Li:(Ti=Mn==null?0:Mn.length,!!Ti&&Kg(Ti)&&vl(Vi,Ti)&&(Xr(Mn)||ic(Mn)))}function C0(Mn){var Yn=Mn.length,ci=new Mn.constructor(Yn);return Yn&&typeof Mn[0]=="string"&&Ro.call(Mn,"index")&&(ci.index=Mn.index,ci.input=Mn.input),ci}function ty(Mn){return typeof Mn.constructor=="function"&&!jh(Mn)?nh(bd(Mn)):{}}function T0(Mn,Yn,ci){var bi=Mn.constructor;switch(Yn){case xr:return Am(Mn);case lr:case gr:return new bi(+Mn);case kr:return u0(Mn,ci);case Gr:case Yr:case $o:case ko:case oo:case so:case eo:case Ho:case Ns:return Vv(Mn,ci);case lo:return new bi;case So:case Mr:return new bi(Mn);case ss:return h0(Mn);case Ko:return new bi;case Br:return d0(Mn)}}function M0(Mn,Yn){var ci=Yn.length;if(!ci)return Mn;var bi=ci-1;return Yn[bi]=(ci>1?"& ":"")+Yn[bi],Yn=Yn.join(ci>2?", ":" "),Mn.replace(_l,`{
|
1388
|
+
/* [wrapped with `+Yn+`] */
|
1389
|
+
`)}function A0(Mn){return Xr(Mn)||ic(Mn)||!!(sv&&Mn&&Mn[sv])}function vl(Mn,Yn){var ci=typeof Mn;return Yn=Yn??Si,!!Yn&&(ci=="number"||ci!="symbol"&&is.test(Mn))&&Mn>-1&&Mn%1==0&&Mn<Yn}function Hs(Mn,Yn,ci){if(!Yo(ci))return!1;var bi=typeof Yn;return(bi=="number"?Ks(ci)&&vl(Yn,ci.length):bi=="string"&&Yn in ci)?fa(ci[Yn],Mn):!1}function Vm(Mn,Yn){if(Xr(Mn))return!1;var ci=typeof Mn;return ci=="number"||ci=="symbol"||ci=="boolean"||Mn==null||ea(Mn)?!0:Ms.test(Mn)||!sl.test(Mn)||Yn!=null&&Mn in Jr(Yn)}function E0(Mn){var Yn=typeof Mn;return Yn=="string"||Yn=="number"||Yn=="symbol"||Yn=="boolean"?Mn!=="__proto__":Mn===null}function Bm(Mn){var Yn=zg(Mn),ci=Ai[Yn];if(typeof ci!="function"||!(Yn in To.prototype))return!1;if(Mn===ci)return!0;var bi=Im(ci);return!!bi&&Mn===bi[0]}function L0(Mn){return!!nv&&nv in Mn}var N0=fd?yl:tv;function jh(Mn){var Yn=Mn&&Mn.constructor,ci=typeof Yn=="function"&&Yn.prototype||Xu;return Mn===ci}function ny(Mn){return Mn===Mn&&!Yo(Mn)}function iy(Mn,Yn){return function(ci){return ci==null?!1:ci[Mn]===Yn&&(Yn!==_n||Mn in Jr(ci))}}function R0(Mn){var Yn=qg(Mn,function(bi){return ci.size===qn&&ci.clear(),bi}),ci=Yn.cache;return Yn}function I0(Mn,Yn){var ci=Mn[1],bi=Yn[1],Ti=ci|bi,Li=Ti<(Zn|Jn|fi),Vi=bi==fi&&ci==mi||bi==fi&&ci==gi&&Mn[7].length<=Yn[8]||bi==(fi|gi)&&Yn[7].length<=Yn[8]&&ci==mi;if(!(Li||Vi))return Mn;bi&Zn&&(Mn[2]=Yn[2],Ti|=ci&Zn?0:Xn);var zi=Yn[3];if(zi){var qi=Mn[3];Mn[3]=qi?Pv(qi,zi,Yn[4]):zi,Mn[4]=qi?vr(Mn[3],Nn):Yn[4]}return zi=Yn[5],zi&&(qi=Mn[5],Mn[5]=qi?Fv(qi,zi,Yn[6]):zi,Mn[6]=qi?vr(Mn[5],Nn):Yn[6]),zi=Yn[7],zi&&(Mn[7]=zi),bi&fi&&(Mn[8]=Mn[8]==null?Yn[8]:Vs(Mn[8],Yn[8])),Mn[9]==null&&(Mn[9]=Yn[9]),Mn[0]=Yn[0],Mn[1]=Ti,Mn}function D0(Mn){var Yn=[];if(Mn!=null)for(var ci in Jr(Mn))Yn.push(ci);return Yn}function O0(Mn){return vd.call(Mn)}function ry(Mn,Yn,ci){return Yn=Ts(Yn===_n?Mn.length-1:Yn,0),function(){for(var bi=arguments,Ti=-1,Li=Ts(bi.length-Yn,0),Vi=Ki(Li);++Ti<Li;)Vi[Ti]=bi[Yn+Ti];Ti=-1;for(var zi=Ki(Yn+1);++Ti<Yn;)zi[Ti]=bi[Ti];return zi[Yn]=ci(Vi),Wo(Mn,this,zi)}}function oy(Mn,Yn){return Yn.length<2?Mn:ec(Mn,ca(Yn,0,-1))}function V0(Mn,Yn){for(var ci=Mn.length,bi=Vs(Yn.length,ci),Ti=Ys(Mn);bi--;){var Li=Yn[bi];Mn[bi]=vl(Li,ci)?Ti[Li]:_n}return Mn}function Pm(Mn,Yn){if(!(Yn==="constructor"&&typeof Mn[Yn]=="function")&&Yn!="__proto__")return Mn[Yn]}var sy=ly(Av),Uh=Jy||function(Mn,Yn){return cs.setTimeout(Mn,Yn)},Fm=ly(s0);function ay(Mn,Yn,ci){var bi=Yn+"";return Fm(Mn,M0(bi,B0(S0(bi),ci)))}function ly(Mn){var Yn=0,ci=0;return function(){var bi=nw(),Ti=ti-(bi-ci);if(ci=bi,Ti>0){if(++Yn>=si)return arguments[0]}else Yn=0;return Mn.apply(_n,arguments)}}function Wg(Mn,Yn){var ci=-1,bi=Mn.length,Ti=bi-1;for(Yn=Yn===_n?bi:Yn;++ci<Yn;){var Li=xm(ci,Ti),Vi=Mn[Li];Mn[Li]=Mn[ci],Mn[ci]=Vi}return Mn.length=Yn,Mn}var cy=R0(function(Mn){var Yn=[];return Mn.charCodeAt(0)===46&&Yn.push(""),Mn.replace(ya,function(ci,bi,Ti,Li){Yn.push(Ti?Li.replace(al,"$1"):bi||ci)}),Yn});function Aa(Mn){if(typeof Mn=="string"||ea(Mn))return Mn;var Yn=Mn+"";return Yn=="0"&&1/Mn==-xi?"-0":Yn}function nc(Mn){if(Mn!=null){try{return md.call(Mn)}catch{}try{return Mn+""}catch{}}return""}function B0(Mn,Yn){return Ps(Bi,function(ci){var bi="_."+ci[0];Yn&ci[1]&&!Ku(Mn,bi)&&Mn.push(bi)}),Mn.sort()}function uy(Mn){if(Mn instanceof To)return Mn.clone();var Yn=new aa(Mn.__wrapped__,Mn.__chain__);return Yn.__actions__=Ys(Mn.__actions__),Yn.__index__=Mn.__index__,Yn.__values__=Mn.__values__,Yn}function P0(Mn,Yn,ci){(ci?Hs(Mn,Yn,ci):Yn===_n)?Yn=1:Yn=Ts(no(Yn),0);var bi=Mn==null?0:Mn.length;if(!bi||Yn<1)return[];for(var Ti=0,Li=0,Vi=Ki(_d(bi/Yn));Ti<bi;)Vi[Li++]=ca(Mn,Ti,Ti+=Yn);return Vi}function F0(Mn){for(var Yn=-1,ci=Mn==null?0:Mn.length,bi=0,Ti=[];++Yn<ci;){var Li=Mn[Yn];Li&&(Ti[bi++]=Li)}return Ti}function z0(){var Mn=arguments.length;if(!Mn)return[];for(var Yn=Ki(Mn-1),ci=arguments[0],bi=Mn;bi--;)Yn[bi-1]=arguments[bi];return Ds(Xr(ci)?Ys(ci):[ci],Ls(Yn,1))}var H0=ao(function(Mn,Yn){return es(Mn)?Ph(Mn,Ls(Yn,1,es,!0)):[]}),W0=ao(function(Mn,Yn){var ci=ua(Yn);return es(ci)&&(ci=_n),es(Mn)?Ph(Mn,Ls(Yn,1,es,!0),zr(ci,2)):[]}),j0=ao(function(Mn,Yn){var ci=ua(Yn);return es(ci)&&(ci=_n),es(Mn)?Ph(Mn,Ls(Yn,1,es,!0),_n,ci):[]});function U0(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;return bi?(Yn=ci||Yn===_n?1:no(Yn),ca(Mn,Yn<0?0:Yn,bi)):[]}function G0(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;return bi?(Yn=ci||Yn===_n?1:no(Yn),Yn=bi-Yn,ca(Mn,0,Yn<0?0:Yn)):[]}function q0(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!0,!0):[]}function Y0(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!0):[]}function K0(Mn,Yn,ci,bi){var Ti=Mn==null?0:Mn.length;return Ti?(ci&&typeof ci!="number"&&Hs(Mn,Yn,ci)&&(ci=0,bi=Ti),zw(Mn,Yn,ci,bi)):[]}function hy(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=ci==null?0:no(ci);return Ti<0&&(Ti=Ts(bi+Ti,0)),Yl(Mn,zr(Yn,3),Ti)}function dy(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=bi-1;return ci!==_n&&(Ti=no(ci),Ti=ci<0?Ts(bi+Ti,0):Vs(Ti,bi-1)),Yl(Mn,zr(Yn,3),Ti,!0)}function py(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Ls(Mn,1):[]}function Z0(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Ls(Mn,xi):[]}function Q0(Mn,Yn){var ci=Mn==null?0:Mn.length;return ci?(Yn=Yn===_n?1:no(Yn),Ls(Mn,Yn)):[]}function J0(Mn){for(var Yn=-1,ci=Mn==null?0:Mn.length,bi={};++Yn<ci;){var Ti=Mn[Yn];bi[Ti[0]]=Ti[1]}return bi}function gy(Mn){return Mn&&Mn.length?Mn[0]:_n}function X0(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=ci==null?0:no(ci);return Ti<0&&(Ti=Ts(bi+Ti,0)),hl(Mn,Yn,Ti)}function eb(Mn){var Yn=Mn==null?0:Mn.length;return Yn?ca(Mn,0,-1):[]}var tb=ao(function(Mn){var Yn=zo(Mn,Tm);return Yn.length&&Yn[0]===Mn[0]?vm(Yn):[]}),nb=ao(function(Mn){var Yn=ua(Mn),ci=zo(Mn,Tm);return Yn===ua(ci)?Yn=_n:ci.pop(),ci.length&&ci[0]===Mn[0]?vm(ci,zr(Yn,2)):[]}),ib=ao(function(Mn){var Yn=ua(Mn),ci=zo(Mn,Tm);return Yn=typeof Yn=="function"?Yn:_n,Yn&&ci.pop(),ci.length&&ci[0]===Mn[0]?vm(ci,_n,Yn):[]});function rb(Mn,Yn){return Mn==null?"":ew.call(Mn,Yn)}function ua(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Mn[Yn-1]:_n}function ob(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=bi;return ci!==_n&&(Ti=no(ci),Ti=Ti<0?Ts(bi+Ti,0):Vs(Ti,bi-1)),Yn===Yn?No(Mn,Yn,Ti):Yl(Mn,Mh,Ti,!0)}function sb(Mn,Yn){return Mn&&Mn.length?Sv(Mn,no(Yn)):_n}var ab=ao(fy);function fy(Mn,Yn){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn):Mn}function lb(Mn,Yn,ci){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn,zr(ci,2)):Mn}function cb(Mn,Yn,ci){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn,_n,ci):Mn}var ub=ml(function(Mn,Yn){var ci=Mn==null?0:Mn.length,bi=pm(Mn,Yn);return Mv(Mn,zo(Yn,function(Ti){return vl(Ti,ci)?+Ti:Ti}).sort(Bv)),bi});function hb(Mn,Yn){var ci=[];if(!(Mn&&Mn.length))return ci;var bi=-1,Ti=[],Li=Mn.length;for(Yn=zr(Yn,3);++bi<Li;){var Vi=Mn[bi];Yn(Vi,bi,Mn)&&(ci.push(Vi),Ti.push(bi))}return Mv(Mn,Ti),ci}function zm(Mn){return Mn==null?Mn:rw.call(Mn)}function db(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;return bi?(ci&&typeof ci!="number"&&Hs(Mn,Yn,ci)?(Yn=0,ci=bi):(Yn=Yn==null?0:no(Yn),ci=ci===_n?bi:no(ci)),ca(Mn,Yn,ci)):[]}function pb(Mn,Yn){return Rd(Mn,Yn)}function gb(Mn,Yn,ci){return km(Mn,Yn,zr(ci,2))}function fb(Mn,Yn){var ci=Mn==null?0:Mn.length;if(ci){var bi=Rd(Mn,Yn);if(bi<ci&&fa(Mn[bi],Yn))return bi}return-1}function mb(Mn,Yn){return Rd(Mn,Yn,!0)}function vb(Mn,Yn,ci){return km(Mn,Yn,zr(ci,2),!0)}function yb(Mn,Yn){var ci=Mn==null?0:Mn.length;if(ci){var bi=Rd(Mn,Yn,!0)-1;if(fa(Mn[bi],Yn))return bi}return-1}function wb(Mn){return Mn&&Mn.length?Ev(Mn):[]}function bb(Mn,Yn){return Mn&&Mn.length?Ev(Mn,zr(Yn,2)):[]}function $b(Mn){var Yn=Mn==null?0:Mn.length;return Yn?ca(Mn,1,Yn):[]}function xb(Mn,Yn,ci){return Mn&&Mn.length?(Yn=ci||Yn===_n?1:no(Yn),ca(Mn,0,Yn<0?0:Yn)):[]}function _b(Mn,Yn,ci){var bi=Mn==null?0:Mn.length;return bi?(Yn=ci||Yn===_n?1:no(Yn),Yn=bi-Yn,ca(Mn,Yn<0?0:Yn,bi)):[]}function kb(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!1,!0):[]}function Sb(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3)):[]}var Cb=ao(function(Mn){return Vl(Ls(Mn,1,es,!0))}),Tb=ao(function(Mn){var Yn=ua(Mn);return es(Yn)&&(Yn=_n),Vl(Ls(Mn,1,es,!0),zr(Yn,2))}),Mb=ao(function(Mn){var Yn=ua(Mn);return Yn=typeof Yn=="function"?Yn:_n,Vl(Ls(Mn,1,es,!0),_n,Yn)});function Ab(Mn){return Mn&&Mn.length?Vl(Mn):[]}function Eb(Mn,Yn){return Mn&&Mn.length?Vl(Mn,zr(Yn,2)):[]}function Lb(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,Mn&&Mn.length?Vl(Mn,_n,Yn):[]}function Hm(Mn){if(!(Mn&&Mn.length))return[];var Yn=0;return Mn=Gs(Mn,function(ci){if(es(ci))return Yn=Ts(ci.length,Yn),!0}),Qo(Yn,function(ci){return zo(Mn,Eh(ci))})}function my(Mn,Yn){if(!(Mn&&Mn.length))return[];var ci=Hm(Mn);return Yn==null?ci:zo(ci,function(bi){return Wo(Yn,_n,bi)})}var Nb=ao(function(Mn,Yn){return es(Mn)?Ph(Mn,Yn):[]}),Rb=ao(function(Mn){return Cm(Gs(Mn,es))}),Ib=ao(function(Mn){var Yn=ua(Mn);return es(Yn)&&(Yn=_n),Cm(Gs(Mn,es),zr(Yn,2))}),Db=ao(function(Mn){var Yn=ua(Mn);return Yn=typeof Yn=="function"?Yn:_n,Cm(Gs(Mn,es),_n,Yn)}),Ob=ao(Hm);function Vb(Mn,Yn){return Iv(Mn||[],Yn||[],Bh)}function Bb(Mn,Yn){return Iv(Mn||[],Yn||[],Hh)}var Pb=ao(function(Mn){var Yn=Mn.length,ci=Yn>1?Mn[Yn-1]:_n;return ci=typeof ci=="function"?(Mn.pop(),ci):_n,my(Mn,ci)});function vy(Mn){var Yn=Ai(Mn);return Yn.__chain__=!0,Yn}function Fb(Mn,Yn){return Yn(Mn),Mn}function jg(Mn,Yn){return Yn(Mn)}var zb=ml(function(Mn){var Yn=Mn.length,ci=Yn?Mn[0]:0,bi=this.__wrapped__,Ti=function(Li){return pm(Li,Mn)};return Yn>1||this.__actions__.length||!(bi instanceof To)||!vl(ci)?this.thru(Ti):(bi=bi.slice(ci,+ci+(Yn?1:0)),bi.__actions__.push({func:jg,args:[Ti],thisArg:_n}),new aa(bi,this.__chain__).thru(function(Li){return Yn&&!Li.length&&Li.push(_n),Li}))});function Hb(){return vy(this)}function Wb(){return new aa(this.value(),this.__chain__)}function jb(){this.__values__===_n&&(this.__values__=Ly(this.value()));var Mn=this.__index__>=this.__values__.length,Yn=Mn?_n:this.__values__[this.__index__++];return{done:Mn,value:Yn}}function Ub(){return this}function Gb(Mn){for(var Yn,ci=this;ci instanceof Td;){var bi=uy(ci);bi.__index__=0,bi.__values__=_n,Yn?Ti.__wrapped__=bi:Yn=bi;var Ti=bi;ci=ci.__wrapped__}return Ti.__wrapped__=Mn,Yn}function qb(){var Mn=this.__wrapped__;if(Mn instanceof To){var Yn=Mn;return this.__actions__.length&&(Yn=new To(this)),Yn=Yn.reverse(),Yn.__actions__.push({func:jg,args:[zm],thisArg:_n}),new aa(Yn,this.__chain__)}return this.thru(zm)}function Kb(){return Rv(this.__wrapped__,this.__actions__)}var e$=Dd(function(Mn,Yn,ci){Ro.call(Mn,ci)?++Mn[ci]:gl(Mn,ci,1)});function t$(Mn,Yn,ci){var bi=Xr(Mn)?Nl:Fw;return ci&&Hs(Mn,Yn,ci)&&(Yn=_n),bi(Mn,zr(Yn,3))}function n$(Mn,Yn){var ci=Xr(Mn)?Gs:mv;return ci(Mn,zr(Yn,3))}var i$=jv(hy),r$=jv(dy);function o$(Mn,Yn){return Ls(Ug(Mn,Yn),1)}function s$(Mn,Yn){return Ls(Ug(Mn,Yn),xi)}function a$(Mn,Yn,ci){return ci=ci===_n?1:no(ci),Ls(Ug(Mn,Yn),ci)}function yy(Mn,Yn){var ci=Xr(Mn)?Ps:Ol;return ci(Mn,zr(Yn,3))}function wy(Mn,Yn){var ci=Xr(Mn)?ud:fv;return ci(Mn,zr(Yn,3))}var l$=Dd(function(Mn,Yn,ci){Ro.call(Mn,ci)?Mn[ci].push(Yn):gl(Mn,ci,[Yn])});function c$(Mn,Yn,ci,bi){Mn=Ks(Mn)?Mn:ah(Mn),ci=ci&&!bi?no(ci):0;var Ti=Mn.length;return ci<0&&(ci=Ts(Ti+ci,0)),Zg(Mn)?ci<=Ti&&Mn.indexOf(Yn,ci)>-1:!!Ti&&hl(Mn,Yn,ci)>-1}var u$=ao(function(Mn,Yn,ci){var bi=-1,Ti=typeof Yn=="function",Li=Ks(Mn)?Ki(Mn.length):[];return Ol(Mn,function(Vi){Li[++bi]=Ti?Wo(Yn,Vi,ci):Fh(Vi,Yn,ci)}),Li}),h$=Dd(function(Mn,Yn,ci){gl(Mn,ci,Yn)});function Ug(Mn,Yn){var ci=Xr(Mn)?zo:xv;return ci(Mn,zr(Yn,3))}function d$(Mn,Yn,ci,bi){return Mn==null?[]:(Xr(Yn)||(Yn=Yn==null?[]:[Yn]),ci=bi?_n:ci,Xr(ci)||(ci=ci==null?[]:[ci]),Cv(Mn,Yn,ci))}var p$=Dd(function(Mn,Yn,ci){Mn[ci?0:1].push(Yn)},function(){return[[],[]]});function g$(Mn,Yn,ci){var bi=Xr(Mn)?sa:Lh,Ti=arguments.length<3;return bi(Mn,zr(Yn,4),ci,Ti,Ol)}function f$(Mn,Yn,ci){var bi=Xr(Mn)?ql:Lh,Ti=arguments.length<3;return bi(Mn,zr(Yn,4),ci,Ti,fv)}function m$(Mn,Yn){var ci=Xr(Mn)?Gs:mv;return ci(Mn,Yg(zr(Yn,3)))}function v$(Mn){var Yn=Xr(Mn)?hv:r0;return Yn(Mn)}function y$(Mn,Yn,ci){(ci?Hs(Mn,Yn,ci):Yn===_n)?Yn=1:Yn=no(Yn);var bi=Xr(Mn)?Dw:o0;return bi(Mn,Yn)}function w$(Mn){var Yn=Xr(Mn)?Ow:a0;return Yn(Mn)}function b$(Mn){if(Mn==null)return 0;if(Ks(Mn))return Zg(Mn)?to(Mn):Mn.length;var Yn=Bs(Mn);return Yn==lo||Yn==Ko?Mn.size:wm(Mn).length}function $$(Mn,Yn,ci){var bi=Xr(Mn)?Zu:l0;return ci&&Hs(Mn,Yn,ci)&&(Yn=_n),bi(Mn,zr(Yn,3))}var x$=ao(function(Mn,Yn){if(Mn==null)return[];var ci=Yn.length;return ci>1&&Hs(Mn,Yn[0],Yn[1])?Yn=[]:ci>2&&Hs(Yn[0],Yn[1],Yn[2])&&(Yn=[Yn[0]]),Cv(Mn,Ls(Yn,1),[])}),Gg=Qy||function(){return cs.Date.now()};function _$(Mn,Yn){if(typeof Yn!="function")throw new Cs(Kn);return Mn=no(Mn),function(){if(--Mn<1)return Yn.apply(this,arguments)}}function by(Mn,Yn,ci){return Yn=ci?_n:Yn,Yn=Mn&&Yn==null?Mn.length:Yn,fl(Mn,fi,_n,_n,_n,_n,Yn)}function $y(Mn,Yn){var ci;if(typeof Yn!="function")throw new Cs(Kn);return Mn=no(Mn),function(){return--Mn>0&&(ci=Yn.apply(this,arguments)),Mn<=1&&(Yn=_n),ci}}var Wm=ao(function(Mn,Yn,ci){var bi=Zn;if(ci.length){var Ti=vr(ci,oh(Wm));bi|=oi}return fl(Mn,bi,Yn,ci,Ti)}),xy=ao(function(Mn,Yn,ci){var bi=Zn|Jn;if(ci.length){var Ti=vr(ci,oh(xy));bi|=oi}return fl(Yn,bi,Mn,ci,Ti)});function _y(Mn,Yn,ci){Yn=ci?_n:Yn;var bi=fl(Mn,mi,_n,_n,_n,_n,_n,Yn);return bi.placeholder=_y.placeholder,bi}function ky(Mn,Yn,ci){Yn=ci?_n:Yn;var bi=fl(Mn,li,_n,_n,_n,_n,_n,Yn);return bi.placeholder=ky.placeholder,bi}function Sy(Mn,Yn,ci){var bi,Ti,Li,Vi,zi,qi,ir=0,ar=!1,pr=!1,$r=!0;if(typeof Mn!="function")throw new Cs(Kn);Yn=ha(Yn)||0,Yo(ci)&&(ar=!!ci.leading,pr="maxWait"in ci,Li=pr?Ts(ha(ci.maxWait)||0,Yn):Li,$r="trailing"in ci?!!ci.trailing:$r);function Cr(ts){var ma=bi,bl=Ti;return bi=Ti=_n,ir=ts,Vi=Mn.apply(bl,ma),Vi}function jr(ts){return ir=ts,zi=Uh(Co,Yn),ar?Cr(ts):Vi}function ro(ts){var ma=ts-qi,bl=ts-ir,jy=Yn-ma;return pr?Vs(jy,Li-bl):jy}function Ur(ts){var ma=ts-qi,bl=ts-ir;return qi===_n||ma>=Yn||ma<0||pr&&bl>=Li}function Co(){var ts=Gg();if(Ur(ts))return Mo(ts);zi=Uh(Co,ro(ts))}function Mo(ts){return zi=_n,$r&&bi?Cr(ts):(bi=Ti=_n,Vi)}function ta(){zi!==_n&&Dv(zi),ir=0,bi=qi=Ti=zi=_n}function Ws(){return zi===_n?Vi:Mo(Gg())}function na(){var ts=Gg(),ma=Ur(ts);if(bi=arguments,Ti=this,qi=ts,ma){if(zi===_n)return jr(qi);if(pr)return Dv(zi),zi=Uh(Co,Yn),Cr(qi)}return zi===_n&&(zi=Uh(Co,Yn)),Vi}return na.cancel=ta,na.flush=Ws,na}var k$=ao(function(Mn,Yn){return gv(Mn,1,Yn)}),S$=ao(function(Mn,Yn,ci){return gv(Mn,ha(Yn)||0,ci)});function C$(Mn){return fl(Mn,yi)}function qg(Mn,Yn){if(typeof Mn!="function"||Yn!=null&&typeof Yn!="function")throw new Cs(Kn);var ci=function(){var bi=arguments,Ti=Yn?Yn.apply(this,bi):bi[0],Li=ci.cache;if(Li.has(Ti))return Li.get(Ti);var Vi=Mn.apply(this,bi);return ci.cache=Li.set(Ti,Vi)||Li,Vi};return ci.cache=new(qg.Cache||pl),ci}qg.Cache=pl;function Yg(Mn){if(typeof Mn!="function")throw new Cs(Kn);return function(){var Yn=arguments;switch(Yn.length){case 0:return!Mn.call(this);case 1:return!Mn.call(this,Yn[0]);case 2:return!Mn.call(this,Yn[0],Yn[1]);case 3:return!Mn.call(this,Yn[0],Yn[1],Yn[2])}return!Mn.apply(this,Yn)}}function T$(Mn){return $y(2,Mn)}var M$=c0(function(Mn,Yn){Yn=Yn.length==1&&Xr(Yn[0])?zo(Yn[0],Os(zr())):zo(Ls(Yn,1),Os(zr()));var ci=Yn.length;return ao(function(bi){for(var Ti=-1,Li=Vs(bi.length,ci);++Ti<Li;)bi[Ti]=Yn[Ti].call(this,bi[Ti]);return Wo(Mn,this,bi)})}),jm=ao(function(Mn,Yn){var ci=vr(Yn,oh(jm));return fl(Mn,oi,_n,Yn,ci)}),Cy=ao(function(Mn,Yn){var ci=vr(Yn,oh(Cy));return fl(Mn,ei,_n,Yn,ci)}),A$=ml(function(Mn,Yn){return fl(Mn,gi,_n,_n,_n,Yn)});function E$(Mn,Yn){if(typeof Mn!="function")throw new Cs(Kn);return Yn=Yn===_n?Yn:no(Yn),ao(Mn,Yn)}function L$(Mn,Yn){if(typeof Mn!="function")throw new Cs(Kn);return Yn=Yn==null?0:Ts(no(Yn),0),ao(function(ci){var bi=ci[Yn],Ti=Pl(ci,0,Yn);return bi&&Ds(Ti,bi),Wo(Mn,this,Ti)})}function N$(Mn,Yn,ci){var bi=!0,Ti=!0;if(typeof Mn!="function")throw new Cs(Kn);return Yo(ci)&&(bi="leading"in ci?!!ci.leading:bi,Ti="trailing"in ci?!!ci.trailing:Ti),Sy(Mn,Yn,{leading:bi,maxWait:Yn,trailing:Ti})}function R$(Mn){return by(Mn,1)}function I$(Mn,Yn){return jm(Mm(Yn),Mn)}function D$(){if(!arguments.length)return[];var Mn=arguments[0];return Xr(Mn)?Mn:[Mn]}function O$(Mn){return la(Mn,Bn)}function V$(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,la(Mn,Bn,Yn)}function B$(Mn){return la(Mn,Dn|Bn)}function P$(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,la(Mn,Dn|Bn,Yn)}function F$(Mn,Yn){return Yn==null||pv(Mn,Yn,Es(Yn))}function fa(Mn,Yn){return Mn===Yn||Mn!==Mn&&Yn!==Yn}var z$=Pg(mm),H$=Pg(function(Mn,Yn){return Mn>=Yn}),ic=wv(function(){return arguments}())?wv:function(Mn){return Jo(Mn)&&Ro.call(Mn,"callee")&&!ov.call(Mn,"callee")},Xr=Ki.isArray,W$=ld?Os(ld):Gw;function Ks(Mn){return Mn!=null&&Kg(Mn.length)&&!yl(Mn)}function es(Mn){return Jo(Mn)&&Ks(Mn)}function j$(Mn){return Mn===!0||Mn===!1||Jo(Mn)&&zs(Mn)==lr}var Fl=Xy||tv,U$=oa?Os(oa):qw;function G$(Mn){return Jo(Mn)&&Mn.nodeType===1&&!Gh(Mn)}function q$(Mn){if(Mn==null)return!0;if(Ks(Mn)&&(Xr(Mn)||typeof Mn=="string"||typeof Mn.splice=="function"||Fl(Mn)||sh(Mn)||ic(Mn)))return!Mn.length;var Yn=Bs(Mn);if(Yn==lo||Yn==Ko)return!Mn.size;if(jh(Mn))return!wm(Mn).length;for(var ci in Mn)if(Ro.call(Mn,ci))return!1;return!0}function Y$(Mn,Yn){return zh(Mn,Yn)}function K$(Mn,Yn,ci){ci=typeof ci=="function"?ci:_n;var bi=ci?ci(Mn,Yn):_n;return bi===_n?zh(Mn,Yn,_n,ci):!!bi}function Um(Mn){if(!Jo(Mn))return!1;var Yn=zs(Mn);return Yn==yr||Yn==or||typeof Mn.message=="string"&&typeof Mn.name=="string"&&!Gh(Mn)}function Z$(Mn){return typeof Mn=="number"&&av(Mn)}function yl(Mn){if(!Yo(Mn))return!1;var Yn=zs(Mn);return Yn==io||Yn==Po||Yn==Zi||Yn==va}function Ty(Mn){return typeof Mn=="number"&&Mn==no(Mn)}function Kg(Mn){return typeof Mn=="number"&&Mn>-1&&Mn%1==0&&Mn<=Si}function Yo(Mn){var Yn=typeof Mn;return Mn!=null&&(Yn=="object"||Yn=="function")}function Jo(Mn){return Mn!=null&&typeof Mn=="object"}var My=da?Os(da):Kw;function Q$(Mn,Yn){return Mn===Yn||ym(Mn,Yn,Dm(Yn))}function J$(Mn,Yn,ci){return ci=typeof ci=="function"?ci:_n,ym(Mn,Yn,Dm(Yn),ci)}function X$(Mn){return Ay(Mn)&&Mn!=+Mn}function Ek(Mn){if(N0(Mn))throw new Tr(zn);return bv(Mn)}function Lk(Mn){return Mn===null}function Nk(Mn){return Mn==null}function Ay(Mn){return typeof Mn=="number"||Jo(Mn)&&zs(Mn)==So}function Gh(Mn){if(!Jo(Mn)||zs(Mn)!=Do)return!1;var Yn=bd(Mn);if(Yn===null)return!0;var ci=Ro.call(Yn,"constructor")&&Yn.constructor;return typeof ci=="function"&&ci instanceof ci&&md.call(ci)==qy}var Gm=ka?Os(ka):Zw;function Rk(Mn){return Ty(Mn)&&Mn>=-Si&&Mn<=Si}var Ey=ul?Os(ul):Qw;function Zg(Mn){return typeof Mn=="string"||!Xr(Mn)&&Jo(Mn)&&zs(Mn)==Mr}function ea(Mn){return typeof Mn=="symbol"||Jo(Mn)&&zs(Mn)==Br}var sh=cd?Os(cd):Jw;function Ik(Mn){return Mn===_n}function Vk(Mn){return Jo(Mn)&&Bs(Mn)==Hr}function Fk(Mn){return Jo(Mn)&&zs(Mn)==Ji}var Hk=Pg(bm),jk=Pg(function(Mn,Yn){return Mn<=Yn});function Ly(Mn){if(!Mn)return[];if(Ks(Mn))return Zg(Mn)?qr(Mn):Ys(Mn);if(Rh&&Mn[Rh])return Xi(Mn[Rh]());var Yn=Bs(Mn),ci=Yn==lo?fr:Yn==Ko?br:ah;return ci(Mn)}function wl(Mn){if(!Mn)return Mn===0?Mn:0;if(Mn=ha(Mn),Mn===xi||Mn===-xi){var Yn=Mn<0?-1:1;return Yn*Ei}return Mn===Mn?Mn:0}function no(Mn){var Yn=wl(Mn),ci=Yn%1;return Yn===Yn?ci?Yn-ci:Yn:0}function Ny(Mn){return Mn?Xl(no(Mn),0,Ri):0}function ha(Mn){if(typeof Mn=="number")return Mn;if(ea(Mn))return Ni;if(Yo(Mn)){var Yn=typeof Mn.valueOf=="function"?Mn.valueOf():Mn;Mn=Yo(Yn)?Yn+"":Yn}if(typeof Mn!="string")return Mn===0?Mn:+Mn;Mn=Go(Mn);var ci=ba.test(Mn);return ci||ns.test(Mn)?Oo(Mn.slice(2),ci?2:8):Zh.test(Mn)?Ni:+Mn}function Ry(Mn){return Ca(Mn,Zs(Mn))}function Uk(Mn){return Mn?Xl(no(Mn),-Si,Si):Mn===0?Mn:0}function Lo(Mn){return Mn==null?"":Xs(Mn)}var Gk=ih(function(Mn,Yn){if(jh(Yn)||Ks(Yn)){Ca(Yn,Es(Yn),Mn);return}for(var ci in Yn)Ro.call(Yn,ci)&&Bh(Mn,ci,Yn[ci])}),Iy=ih(function(Mn,Yn){Ca(Yn,Zs(Yn),Mn)}),Qg=ih(function(Mn,Yn,ci,bi){Ca(Yn,Zs(Yn),Mn,bi)}),qk=ih(function(Mn,Yn,ci,bi){Ca(Yn,Es(Yn),Mn,bi)}),Yk=ml(pm);function Kk(Mn,Yn){var ci=nh(Mn);return Yn==null?ci:dv(ci,Yn)}var Zk=ao(function(Mn,Yn){Mn=Jr(Mn);var ci=-1,bi=Yn.length,Ti=bi>2?Yn[2]:_n;for(Ti&&Hs(Yn[0],Yn[1],Ti)&&(bi=1);++ci<bi;)for(var Li=Yn[ci],Vi=Zs(Li),zi=-1,qi=Vi.length;++zi<qi;){var ir=Vi[zi],ar=Mn[ir];(ar===_n||fa(ar,Xu[ir])&&!Ro.call(Mn,ir))&&(Mn[ir]=Li[ir])}return Mn}),Qk=ao(function(Mn){return Mn.push(_n,Qv),Wo(Dy,_n,Mn)});function Jk(Mn,Yn){return Th(Mn,zr(Yn,3),Sa)}function Xk(Mn,Yn){return Th(Mn,zr(Yn,3),fm)}function eC(Mn,Yn){return Mn==null?Mn:gm(Mn,zr(Yn,3),Zs)}function tC(Mn,Yn){return Mn==null?Mn:vv(Mn,zr(Yn,3),Zs)}function nC(Mn,Yn){return Mn&&Sa(Mn,zr(Yn,3))}function iC(Mn,Yn){return Mn&&fm(Mn,zr(Yn,3))}function rC(Mn){return Mn==null?[]:Ed(Mn,Es(Mn))}function oC(Mn){return Mn==null?[]:Ed(Mn,Zs(Mn))}function qm(Mn,Yn,ci){var bi=Mn==null?_n:ec(Mn,Yn);return bi===_n?ci:bi}function sC(Mn,Yn){return Mn!=null&&ey(Mn,Yn,Hw)}function Ym(Mn,Yn){return Mn!=null&&ey(Mn,Yn,Ww)}var aC=Gv(function(Mn,Yn,ci){Yn!=null&&typeof Yn.toString!="function"&&(Yn=vd.call(Yn)),Mn[Yn]=ci},Zm(Qs)),lC=Gv(function(Mn,Yn,ci){Yn!=null&&typeof Yn.toString!="function"&&(Yn=vd.call(Yn)),Ro.call(Mn,Yn)?Mn[Yn].push(ci):Mn[Yn]=[ci]},zr),cC=ao(Fh);function Es(Mn){return Ks(Mn)?uv(Mn):wm(Mn)}function Zs(Mn){return Ks(Mn)?uv(Mn,!0):Xw(Mn)}function uC(Mn,Yn){var ci={};return Yn=zr(Yn,3),Sa(Mn,function(bi,Ti,Li){gl(ci,Yn(bi,Ti,Li),bi)}),ci}function hC(Mn,Yn){var ci={};return Yn=zr(Yn,3),Sa(Mn,function(bi,Ti,Li){gl(ci,Ti,Yn(bi,Ti,Li))}),ci}var dC=ih(function(Mn,Yn,ci){Ld(Mn,Yn,ci)}),Dy=ih(function(Mn,Yn,ci,bi){Ld(Mn,Yn,ci,bi)}),pC=ml(function(Mn,Yn){var ci={};if(Mn==null)return ci;var bi=!1;Yn=zo(Yn,function(Li){return Li=Bl(Li,Mn),bi||(bi=Li.length>1),Li}),Ca(Mn,Rm(Mn),ci),bi&&(ci=la(ci,Dn|In|Bn,b0));for(var Ti=Yn.length;Ti--;)Sm(ci,Yn[Ti]);return ci});function gC(Mn,Yn){return Oy(Mn,Yg(zr(Yn)))}var fC=ml(function(Mn,Yn){return Mn==null?{}:t0(Mn,Yn)});function Oy(Mn,Yn){if(Mn==null)return{};var ci=zo(Rm(Mn),function(bi){return[bi]});return Yn=zr(Yn),Tv(Mn,ci,function(bi,Ti){return Yn(bi,Ti[0])})}function mC(Mn,Yn,ci){Yn=Bl(Yn,Mn);var bi=-1,Ti=Yn.length;for(Ti||(Ti=1,Mn=_n);++bi<Ti;){var Li=Mn==null?_n:Mn[Aa(Yn[bi])];Li===_n&&(bi=Ti,Li=ci),Mn=yl(Li)?Li.call(Mn):Li}return Mn}function vC(Mn,Yn,ci){return Mn==null?Mn:Hh(Mn,Yn,ci)}function yC(Mn,Yn,ci,bi){return bi=typeof bi=="function"?bi:_n,Mn==null?Mn:Hh(Mn,Yn,ci,bi)}var Vy=Kv(Es),By=Kv(Zs);function wC(Mn,Yn,ci){var bi=Xr(Mn),Ti=bi||Fl(Mn)||sh(Mn);if(Yn=zr(Yn,4),ci==null){var Li=Mn&&Mn.constructor;Ti?ci=bi?new Li:[]:Yo(Mn)?ci=yl(Li)?nh(bd(Mn)):{}:ci={}}return(Ti?Ps:Sa)(Mn,function(Vi,zi,qi){return Yn(ci,Vi,zi,qi)}),ci}function bC(Mn,Yn){return Mn==null?!0:Sm(Mn,Yn)}function $C(Mn,Yn,ci){return Mn==null?Mn:Nv(Mn,Yn,Mm(ci))}function xC(Mn,Yn,ci,bi){return bi=typeof bi=="function"?bi:_n,Mn==null?Mn:Nv(Mn,Yn,Mm(ci),bi)}function ah(Mn){return Mn==null?[]:Kl(Mn,Es(Mn))}function _C(Mn){return Mn==null?[]:Kl(Mn,Zs(Mn))}function kC(Mn,Yn,ci){return ci===_n&&(ci=Yn,Yn=_n),ci!==_n&&(ci=ha(ci),ci=ci===ci?ci:0),Yn!==_n&&(Yn=ha(Yn),Yn=Yn===Yn?Yn:0),Xl(ha(Mn),Yn,ci)}function SC(Mn,Yn,ci){return Yn=wl(Yn),ci===_n?(ci=Yn,Yn=0):ci=wl(ci),Mn=ha(Mn),jw(Mn,Yn,ci)}function CC(Mn,Yn,ci){if(ci&&typeof ci!="boolean"&&Hs(Mn,Yn,ci)&&(Yn=ci=_n),ci===_n&&(typeof Yn=="boolean"?(ci=Yn,Yn=_n):typeof Mn=="boolean"&&(ci=Mn,Mn=_n)),Mn===_n&&Yn===_n?(Mn=0,Yn=1):(Mn=wl(Mn),Yn===_n?(Yn=Mn,Mn=0):Yn=wl(Yn)),Mn>Yn){var bi=Mn;Mn=Yn,Yn=bi}if(ci||Mn%1||Yn%1){var Ti=lv();return Vs(Mn+Ti*(Yn-Mn+os("1e-"+((Ti+"").length-1))),Yn)}return xm(Mn,Yn)}var TC=rh(function(Mn,Yn,ci){return Yn=Yn.toLowerCase(),Mn+(ci?Py(Yn):Yn)});function Py(Mn){return Km(Lo(Mn).toLowerCase())}function Fy(Mn){return Mn=Lo(Mn),Mn&&Mn.replace(rc,_i).replace(Al,"")}function MC(Mn,Yn,ci){Mn=Lo(Mn),Yn=Xs(Yn);var bi=Mn.length;ci=ci===_n?bi:Xl(no(ci),0,bi);var Ti=ci;return ci-=Yn.length,ci>=0&&Mn.slice(ci,Ti)==Yn}function AC(Mn){return Mn=Lo(Mn),Mn&&Xg.test(Mn)?Mn.replace(qh,Mi):Mn}function EC(Mn){return Mn=Lo(Mn),Mn&&$l.test(Mn)?Mn.replace(wa,"\\$&"):Mn}var LC=rh(function(Mn,Yn,ci){return Mn+(ci?"-":"")+Yn.toLowerCase()}),NC=rh(function(Mn,Yn,ci){return Mn+(ci?" ":"")+Yn.toLowerCase()}),RC=Wv("toLowerCase");function IC(Mn,Yn,ci){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;if(!Yn||bi>=Yn)return Mn;var Ti=(Yn-bi)/2;return Bg(kd(Ti),ci)+Mn+Bg(_d(Ti),ci)}function DC(Mn,Yn,ci){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;return Yn&&bi<Yn?Mn+Bg(Yn-bi,ci):Mn}function OC(Mn,Yn,ci){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;return Yn&&bi<Yn?Bg(Yn-bi,ci)+Mn:Mn}function VC(Mn,Yn,ci){return ci||Yn==null?Yn=0:Yn&&(Yn=+Yn),iw(Lo(Mn).replace(Rs,""),Yn||0)}function BC(Mn,Yn,ci){return(ci?Hs(Mn,Yn,ci):Yn===_n)?Yn=1:Yn=no(Yn),_m(Lo(Mn),Yn)}function PC(){var Mn=arguments,Yn=Lo(Mn[0]);return Mn.length<3?Yn:Yn.replace(Mn[1],Mn[2])}var FC=rh(function(Mn,Yn,ci){return Mn+(ci?"_":"")+Yn.toLowerCase()});function zC(Mn,Yn,ci){return ci&&typeof ci!="number"&&Hs(Mn,Yn,ci)&&(Yn=ci=_n),ci=ci===_n?Ri:ci>>>0,ci?(Mn=Lo(Mn),Mn&&(typeof Yn=="string"||Yn!=null&&!Gm(Yn))&&(Yn=Xs(Yn),!Yn&&Wi(Mn))?Pl(qr(Mn),0,ci):Mn.split(Yn,ci)):[]}var HC=rh(function(Mn,Yn,ci){return Mn+(ci?" ":"")+Km(Yn)});function WC(Mn,Yn,ci){return Mn=Lo(Mn),ci=ci==null?0:Xl(no(ci),0,Mn.length),Yn=Xs(Yn),Mn.slice(ci,ci+Yn.length)==Yn}function jC(Mn,Yn,ci){var bi=Ai.templateSettings;ci&&Hs(Mn,Yn,ci)&&(Yn=_n),Mn=Lo(Mn),Yn=Qg({},Yn,bi,Zv);var Ti=Qg({},Yn.imports,bi.imports,Zv),Li=Es(Ti),Vi=Kl(Ti,Li),zi,qi,ir=0,ar=Yn.interpolate||Is,pr="__p += '",$r=$s((Yn.escape||Is).source+"|"+ar.source+"|"+(ar===Ar?rm:Is).source+"|"+(Yn.evaluate||Is).source+"|$","g"),Cr="//# sourceURL="+(Ro.call(Yn,"sourceURL")?(Yn.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sd+"]")+`
|
1390
|
+
`;Mn.replace($r,function(Ur,Co,Mo,ta,Ws,na){return Mo||(Mo=ta),pr+=Mn.slice(ir,na).replace(zl,Di),Co&&(zi=!0,pr+=`' +
|
1391
|
+
__e(`+Co+`) +
|
1392
|
+
'`),Ws&&(qi=!0,pr+=`';
|
1393
|
+
`+Ws+`;
|
1394
|
+
__p += '`),Mo&&(pr+=`' +
|
1395
|
+
((__t = (`+Mo+`)) == null ? '' : __t) +
|
1396
|
+
'`),ir=na+Ur.length,Ur}),pr+=`';
|
1397
|
+
`;var jr=Ro.call(Yn,"variable")&&Yn.variable;if(!jr)pr=`with (obj) {
|
1398
|
+
`+pr+`
|
1399
|
+
}
|
1400
|
+
`;else if(im.test(jr))throw new Tr(Qn);pr=(qi?pr.replace(ol,""):pr).replace(js,"$1").replace(lh,"$1;"),pr="function("+(jr||"obj")+`) {
|
1401
|
+
`+(jr?"":`obj || (obj = {});
|
1402
|
+
`)+"var __t, __p = ''"+(zi?", __e = _.escape":"")+(qi?`, __j = Array.prototype.join;
|
1403
|
+
function print() { __p += __j.call(arguments, '') }
|
1404
|
+
`:`;
|
1405
|
+
`)+pr+`return __p
|
1406
|
+
}`;var ro=Hy(function(){return Zr(Li,Cr+"return "+pr).apply(_n,Vi)});if(ro.source=pr,Um(ro))throw ro;return ro}function UC(Mn){return Lo(Mn).toLowerCase()}function GC(Mn){return Lo(Mn).toUpperCase()}function qC(Mn,Yn,ci){if(Mn=Lo(Mn),Mn&&(ci||Yn===_n))return Go(Mn);if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=qr(Mn),Ti=qr(Yn),Li=pd(bi,Ti),Vi=gd(bi,Ti)+1;return Pl(bi,Li,Vi).join("")}function YC(Mn,Yn,ci){if(Mn=Lo(Mn),Mn&&(ci||Yn===_n))return Mn.slice(0,Qr(Mn)+1);if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=qr(Mn),Ti=gd(bi,qr(Yn))+1;return Pl(bi,0,Ti).join("")}function KC(Mn,Yn,ci){if(Mn=Lo(Mn),Mn&&(ci||Yn===_n))return Mn.replace(Rs,"");if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=qr(Mn),Ti=pd(bi,qr(Yn));return Pl(bi,Ti).join("")}function ZC(Mn,Yn){var ci=pi,bi=$i;if(Yo(Yn)){var Ti="separator"in Yn?Yn.separator:Ti;ci="length"in Yn?no(Yn.length):ci,bi="omission"in Yn?Xs(Yn.omission):bi}Mn=Lo(Mn);var Li=Mn.length;if(Wi(Mn)){var Vi=qr(Mn);Li=Vi.length}if(ci>=Li)return Mn;var zi=ci-to(bi);if(zi<1)return bi;var qi=Vi?Pl(Vi,0,zi).join(""):Mn.slice(0,zi);if(Ti===_n)return qi+bi;if(Vi&&(zi+=qi.length-zi),Gm(Ti)){if(Mn.slice(zi).search(Ti)){var ir,ar=qi;for(Ti.global||(Ti=$s(Ti.source,Lo(kl.exec(Ti))+"g")),Ti.lastIndex=0;ir=Ti.exec(ar);)var pr=ir.index;qi=qi.slice(0,pr===_n?zi:pr)}}else if(Mn.indexOf(Xs(Ti),zi)!=zi){var $r=qi.lastIndexOf(Ti);$r>-1&&(qi=qi.slice(0,$r))}return qi+bi}function QC(Mn){return Mn=Lo(Mn),Mn&&Jg.test(Mn)?Mn.replace(ch,Sr):Mn}var JC=rh(function(Mn,Yn,ci){return Mn+(ci?" ":"")+Yn.toUpperCase()}),Km=Wv("toUpperCase");function zy(Mn,Yn,ci){return Mn=Lo(Mn),Yn=ci?_n:Yn,Yn===_n?Yi(Mn)?jo(Mn):Qu(Mn):Mn.match(Yn)||[]}var Hy=ao(function(Mn,Yn){try{return Wo(Mn,_n,Yn)}catch(ci){return Um(ci)?ci:new Tr(ci)}}),XC=ml(function(Mn,Yn){return Ps(Yn,function(ci){ci=Aa(ci),gl(Mn,ci,Wm(Mn[ci],Mn))}),Mn});function eT(Mn){var Yn=Mn==null?0:Mn.length,ci=zr();return Mn=Yn?zo(Mn,function(bi){if(typeof bi[1]!="function")throw new Cs(Kn);return[ci(bi[0]),bi[1]]}):[],ao(function(bi){for(var Ti=-1;++Ti<Yn;){var Li=Mn[Ti];if(Wo(Li[0],this,bi))return Wo(Li[1],this,bi)}})}function tT(Mn){return Pw(la(Mn,Dn))}function Zm(Mn){return function(){return Mn}}function nT(Mn,Yn){return Mn==null||Mn!==Mn?Yn:Mn}var iT=Uv(),rT=Uv(!0);function Qs(Mn){return Mn}function Qm(Mn){return $v(typeof Mn=="function"?Mn:la(Mn,Dn))}function oT(Mn){return _v(la(Mn,Dn))}function sT(Mn,Yn){return kv(Mn,la(Yn,Dn))}var aT=ao(function(Mn,Yn){return function(ci){return Fh(ci,Mn,Yn)}}),lT=ao(function(Mn,Yn){return function(ci){return Fh(Mn,ci,Yn)}});function Jm(Mn,Yn,ci){var bi=Es(Yn),Ti=Ed(Yn,bi);ci==null&&!(Yo(Yn)&&(Ti.length||!bi.length))&&(ci=Yn,Yn=Mn,Mn=this,Ti=Ed(Yn,Es(Yn)));var Li=!(Yo(ci)&&"chain"in ci)||!!ci.chain,Vi=yl(Mn);return Ps(Ti,function(zi){var qi=Yn[zi];Mn[zi]=qi,Vi&&(Mn.prototype[zi]=function(){var ir=this.__chain__;if(Li||ir){var ar=Mn(this.__wrapped__),pr=ar.__actions__=Ys(this.__actions__);return pr.push({func:qi,args:arguments,thisArg:Mn}),ar.__chain__=ir,ar}return qi.apply(Mn,Ds([this.value()],arguments))})}),Mn}function cT(){return cs._===this&&(cs._=Yy),this}function Xm(){}function uT(Mn){return Mn=no(Mn),ao(function(Yn){return Sv(Yn,Mn)})}var hT=Em(zo),dT=Em(Nl),pT=Em(Zu);function Wy(Mn){return Vm(Mn)?Eh(Aa(Mn)):n0(Mn)}function gT(Mn){return function(Yn){return Mn==null?_n:ec(Mn,Yn)}}var fT=qv(),mT=qv(!0);function ev(){return[]}function tv(){return!1}function vT(){return{}}function yT(){return""}function wT(){return!0}function bT(Mn,Yn){if(Mn=no(Mn),Mn<1||Mn>Si)return[];var ci=Ri,bi=Vs(Mn,Ri);Yn=zr(Yn),Mn-=Ri;for(var Ti=Qo(bi,Yn);++ci<Mn;)Yn(ci);return Ti}function $T(Mn){return Xr(Mn)?zo(Mn,Aa):ea(Mn)?[Mn]:Ys(cy(Lo(Mn)))}function xT(Mn){var Yn=++Gy;return Lo(Mn)+Yn}var _T=Vg(function(Mn,Yn){return Mn+Yn},0),kT=Lm("ceil"),ST=Vg(function(Mn,Yn){return Mn/Yn},1),CT=Lm("floor");function TT(Mn){return Mn&&Mn.length?Ad(Mn,Qs,mm):_n}function MT(Mn,Yn){return Mn&&Mn.length?Ad(Mn,zr(Yn,2),mm):_n}function AT(Mn){return Ah(Mn,Qs)}function ET(Mn,Yn){return Ah(Mn,zr(Yn,2))}function LT(Mn){return Mn&&Mn.length?Ad(Mn,Qs,bm):_n}function NT(Mn,Yn){return Mn&&Mn.length?Ad(Mn,zr(Yn,2),bm):_n}var RT=Vg(function(Mn,Yn){return Mn*Yn},1),IT=Lm("round"),DT=Vg(function(Mn,Yn){return Mn-Yn},0);function OT(Mn){return Mn&&Mn.length?Il(Mn,Qs):0}function VT(Mn,Yn){return Mn&&Mn.length?Il(Mn,zr(Yn,2)):0}return Ai.after=_$,Ai.ary=by,Ai.assign=Gk,Ai.assignIn=Iy,Ai.assignInWith=Qg,Ai.assignWith=qk,Ai.at=Yk,Ai.before=$y,Ai.bind=Wm,Ai.bindAll=XC,Ai.bindKey=xy,Ai.castArray=D$,Ai.chain=vy,Ai.chunk=P0,Ai.compact=F0,Ai.concat=z0,Ai.cond=eT,Ai.conforms=tT,Ai.constant=Zm,Ai.countBy=e$,Ai.create=Kk,Ai.curry=_y,Ai.curryRight=ky,Ai.debounce=Sy,Ai.defaults=Zk,Ai.defaultsDeep=Qk,Ai.defer=k$,Ai.delay=S$,Ai.difference=H0,Ai.differenceBy=W0,Ai.differenceWith=j0,Ai.drop=U0,Ai.dropRight=G0,Ai.dropRightWhile=q0,Ai.dropWhile=Y0,Ai.fill=K0,Ai.filter=n$,Ai.flatMap=o$,Ai.flatMapDeep=s$,Ai.flatMapDepth=a$,Ai.flatten=py,Ai.flattenDeep=Z0,Ai.flattenDepth=Q0,Ai.flip=C$,Ai.flow=iT,Ai.flowRight=rT,Ai.fromPairs=J0,Ai.functions=rC,Ai.functionsIn=oC,Ai.groupBy=l$,Ai.initial=eb,Ai.intersection=tb,Ai.intersectionBy=nb,Ai.intersectionWith=ib,Ai.invert=aC,Ai.invertBy=lC,Ai.invokeMap=u$,Ai.iteratee=Qm,Ai.keyBy=h$,Ai.keys=Es,Ai.keysIn=Zs,Ai.map=Ug,Ai.mapKeys=uC,Ai.mapValues=hC,Ai.matches=oT,Ai.matchesProperty=sT,Ai.memoize=qg,Ai.merge=dC,Ai.mergeWith=Dy,Ai.method=aT,Ai.methodOf=lT,Ai.mixin=Jm,Ai.negate=Yg,Ai.nthArg=uT,Ai.omit=pC,Ai.omitBy=gC,Ai.once=T$,Ai.orderBy=d$,Ai.over=hT,Ai.overArgs=M$,Ai.overEvery=dT,Ai.overSome=pT,Ai.partial=jm,Ai.partialRight=Cy,Ai.partition=p$,Ai.pick=fC,Ai.pickBy=Oy,Ai.property=Wy,Ai.propertyOf=gT,Ai.pull=ab,Ai.pullAll=fy,Ai.pullAllBy=lb,Ai.pullAllWith=cb,Ai.pullAt=ub,Ai.range=fT,Ai.rangeRight=mT,Ai.rearg=A$,Ai.reject=m$,Ai.remove=hb,Ai.rest=E$,Ai.reverse=zm,Ai.sampleSize=y$,Ai.set=vC,Ai.setWith=yC,Ai.shuffle=w$,Ai.slice=db,Ai.sortBy=x$,Ai.sortedUniq=wb,Ai.sortedUniqBy=bb,Ai.split=zC,Ai.spread=L$,Ai.tail=$b,Ai.take=xb,Ai.takeRight=_b,Ai.takeRightWhile=kb,Ai.takeWhile=Sb,Ai.tap=Fb,Ai.throttle=N$,Ai.thru=jg,Ai.toArray=Ly,Ai.toPairs=Vy,Ai.toPairsIn=By,Ai.toPath=$T,Ai.toPlainObject=Ry,Ai.transform=wC,Ai.unary=R$,Ai.union=Cb,Ai.unionBy=Tb,Ai.unionWith=Mb,Ai.uniq=Ab,Ai.uniqBy=Eb,Ai.uniqWith=Lb,Ai.unset=bC,Ai.unzip=Hm,Ai.unzipWith=my,Ai.update=$C,Ai.updateWith=xC,Ai.values=ah,Ai.valuesIn=_C,Ai.without=Nb,Ai.words=zy,Ai.wrap=I$,Ai.xor=Rb,Ai.xorBy=Ib,Ai.xorWith=Db,Ai.zip=Ob,Ai.zipObject=Vb,Ai.zipObjectDeep=Bb,Ai.zipWith=Pb,Ai.entries=Vy,Ai.entriesIn=By,Ai.extend=Iy,Ai.extendWith=Qg,Jm(Ai,Ai),Ai.add=_T,Ai.attempt=Hy,Ai.camelCase=TC,Ai.capitalize=Py,Ai.ceil=kT,Ai.clamp=kC,Ai.clone=O$,Ai.cloneDeep=B$,Ai.cloneDeepWith=P$,Ai.cloneWith=V$,Ai.conformsTo=F$,Ai.deburr=Fy,Ai.defaultTo=nT,Ai.divide=ST,Ai.endsWith=MC,Ai.eq=fa,Ai.escape=AC,Ai.escapeRegExp=EC,Ai.every=t$,Ai.find=i$,Ai.findIndex=hy,Ai.findKey=Jk,Ai.findLast=r$,Ai.findLastIndex=dy,Ai.findLastKey=Xk,Ai.floor=CT,Ai.forEach=yy,Ai.forEachRight=wy,Ai.forIn=eC,Ai.forInRight=tC,Ai.forOwn=nC,Ai.forOwnRight=iC,Ai.get=qm,Ai.gt=z$,Ai.gte=H$,Ai.has=sC,Ai.hasIn=Ym,Ai.head=gy,Ai.identity=Qs,Ai.includes=c$,Ai.indexOf=X0,Ai.inRange=SC,Ai.invoke=cC,Ai.isArguments=ic,Ai.isArray=Xr,Ai.isArrayBuffer=W$,Ai.isArrayLike=Ks,Ai.isArrayLikeObject=es,Ai.isBoolean=j$,Ai.isBuffer=Fl,Ai.isDate=U$,Ai.isElement=G$,Ai.isEmpty=q$,Ai.isEqual=Y$,Ai.isEqualWith=K$,Ai.isError=Um,Ai.isFinite=Z$,Ai.isFunction=yl,Ai.isInteger=Ty,Ai.isLength=Kg,Ai.isMap=My,Ai.isMatch=Q$,Ai.isMatchWith=J$,Ai.isNaN=X$,Ai.isNative=Ek,Ai.isNil=Nk,Ai.isNull=Lk,Ai.isNumber=Ay,Ai.isObject=Yo,Ai.isObjectLike=Jo,Ai.isPlainObject=Gh,Ai.isRegExp=Gm,Ai.isSafeInteger=Rk,Ai.isSet=Ey,Ai.isString=Zg,Ai.isSymbol=ea,Ai.isTypedArray=sh,Ai.isUndefined=Ik,Ai.isWeakMap=Vk,Ai.isWeakSet=Fk,Ai.join=rb,Ai.kebabCase=LC,Ai.last=ua,Ai.lastIndexOf=ob,Ai.lowerCase=NC,Ai.lowerFirst=RC,Ai.lt=Hk,Ai.lte=jk,Ai.max=TT,Ai.maxBy=MT,Ai.mean=AT,Ai.meanBy=ET,Ai.min=LT,Ai.minBy=NT,Ai.stubArray=ev,Ai.stubFalse=tv,Ai.stubObject=vT,Ai.stubString=yT,Ai.stubTrue=wT,Ai.multiply=RT,Ai.nth=sb,Ai.noConflict=cT,Ai.noop=Xm,Ai.now=Gg,Ai.pad=IC,Ai.padEnd=DC,Ai.padStart=OC,Ai.parseInt=VC,Ai.random=CC,Ai.reduce=g$,Ai.reduceRight=f$,Ai.repeat=BC,Ai.replace=PC,Ai.result=mC,Ai.round=IT,Ai.runInContext=ji,Ai.sample=v$,Ai.size=b$,Ai.snakeCase=FC,Ai.some=$$,Ai.sortedIndex=pb,Ai.sortedIndexBy=gb,Ai.sortedIndexOf=fb,Ai.sortedLastIndex=mb,Ai.sortedLastIndexBy=vb,Ai.sortedLastIndexOf=yb,Ai.startCase=HC,Ai.startsWith=WC,Ai.subtract=DT,Ai.sum=OT,Ai.sumBy=VT,Ai.template=jC,Ai.times=bT,Ai.toFinite=wl,Ai.toInteger=no,Ai.toLength=Ny,Ai.toLower=UC,Ai.toNumber=ha,Ai.toSafeInteger=Uk,Ai.toString=Lo,Ai.toUpper=GC,Ai.trim=qC,Ai.trimEnd=YC,Ai.trimStart=KC,Ai.truncate=ZC,Ai.unescape=QC,Ai.uniqueId=xT,Ai.upperCase=JC,Ai.upperFirst=Km,Ai.each=yy,Ai.eachRight=wy,Ai.first=gy,Jm(Ai,function(){var Mn={};return Sa(Ai,function(Yn,ci){Ro.call(Ai.prototype,ci)||(Mn[ci]=Yn)}),Mn}(),{chain:!1}),Ai.VERSION=kn,Ps(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Mn){Ai[Mn].placeholder=Ai}),Ps(["drop","take"],function(Mn,Yn){To.prototype[Mn]=function(ci){ci=ci===_n?1:Ts(no(ci),0);var bi=this.__filtered__&&!Yn?new To(this):this.clone();return bi.__filtered__?bi.__takeCount__=Vs(ci,bi.__takeCount__):bi.__views__.push({size:Vs(ci,Ri),type:Mn+(bi.__dir__<0?"Right":"")}),bi},To.prototype[Mn+"Right"]=function(ci){return this.reverse()[Mn](ci).reverse()}}),Ps(["filter","map","takeWhile"],function(Mn,Yn){var ci=Yn+1,bi=ci==ai||ci==wi;To.prototype[Mn]=function(Ti){var Li=this.clone();return Li.__iteratees__.push({iteratee:zr(Ti,3),type:ci}),Li.__filtered__=Li.__filtered__||bi,Li}}),Ps(["head","last"],function(Mn,Yn){var ci="take"+(Yn?"Right":"");To.prototype[Mn]=function(){return this[ci](1).value()[0]}}),Ps(["initial","tail"],function(Mn,Yn){var ci="drop"+(Yn?"":"Right");To.prototype[Mn]=function(){return this.__filtered__?new To(this):this[ci](1)}}),To.prototype.compact=function(){return this.filter(Qs)},To.prototype.find=function(Mn){return this.filter(Mn).head()},To.prototype.findLast=function(Mn){return this.reverse().find(Mn)},To.prototype.invokeMap=ao(function(Mn,Yn){return typeof Mn=="function"?new To(this):this.map(function(ci){return Fh(ci,Mn,Yn)})}),To.prototype.reject=function(Mn){return this.filter(Yg(zr(Mn)))},To.prototype.slice=function(Mn,Yn){Mn=no(Mn);var ci=this;return ci.__filtered__&&(Mn>0||Yn<0)?new To(ci):(Mn<0?ci=ci.takeRight(-Mn):Mn&&(ci=ci.drop(Mn)),Yn!==_n&&(Yn=no(Yn),ci=Yn<0?ci.dropRight(-Yn):ci.take(Yn-Mn)),ci)},To.prototype.takeRightWhile=function(Mn){return this.reverse().takeWhile(Mn).reverse()},To.prototype.toArray=function(){return this.take(Ri)},Sa(To.prototype,function(Mn,Yn){var ci=/^(?:filter|find|map|reject)|While$/.test(Yn),bi=/^(?:head|last)$/.test(Yn),Ti=Ai[bi?"take"+(Yn=="last"?"Right":""):Yn],Li=bi||/^find/.test(Yn);Ti&&(Ai.prototype[Yn]=function(){var Vi=this.__wrapped__,zi=bi?[1]:arguments,qi=Vi instanceof To,ir=zi[0],ar=qi||Xr(Vi),pr=function(Co){var Mo=Ti.apply(Ai,Ds([Co],zi));return bi&&$r?Mo[0]:Mo};ar&&ci&&typeof ir=="function"&&ir.length!=1&&(qi=ar=!1);var $r=this.__chain__,Cr=!!this.__actions__.length,jr=Li&&!$r,ro=qi&&!Cr;if(!Li&&ar){Vi=ro?Vi:new To(this);var Ur=Mn.apply(Vi,zi);return Ur.__actions__.push({func:jg,args:[pr],thisArg:_n}),new aa(Ur,$r)}return jr&&ro?Mn.apply(this,zi):(Ur=this.thru(pr),jr?bi?Ur.value()[0]:Ur.value():Ur)})}),Ps(["pop","push","shift","sort","splice","unshift"],function(Mn){var Yn=Js[Mn],ci=/^(?:push|sort|unshift)$/.test(Mn)?"tap":"thru",bi=/^(?:pop|shift)$/.test(Mn);Ai.prototype[Mn]=function(){var Ti=arguments;if(bi&&!this.__chain__){var Li=this.value();return Yn.apply(Xr(Li)?Li:[],Ti)}return this[ci](function(Vi){return Yn.apply(Xr(Vi)?Vi:[],Ti)})}}),Sa(To.prototype,function(Mn,Yn){var ci=Ai[Yn];if(ci){var bi=ci.name+"";Ro.call(th,bi)||(th[bi]=[]),th[bi].push({name:Yn,func:ci})}}),th[Od(_n,Jn).name]=[{name:"wrapper",func:_n}],To.prototype.clone=uw,To.prototype.reverse=hw,To.prototype.value=dw,Ai.prototype.at=zb,Ai.prototype.chain=Hb,Ai.prototype.commit=Wb,Ai.prototype.next=jb,Ai.prototype.plant=Gb,Ai.prototype.reverse=qb,Ai.prototype.toJSON=Ai.prototype.valueOf=Ai.prototype.value=Kb,Ai.prototype.first=Ai.prototype.head,Rh&&(Ai.prototype[Rh]=Ub),Ai},Bo=Vo();As?((As.exports=Bo)._=Bo,ra._=Bo):cs._=Bo}).call(V1)}(gs,gs.exports)),gs.exports}var G1=j1();const K1=Ua(G1),q1={props:["calculatePacketText"],mixins:[U1],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:e=>!!e||"Required.",min:e=>e>=1||"Minimum: 1",max:e=>parseInt(e)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(e){e.forEach(vn=>{"buffer"in vn&&(vn.buffer=atob(vn.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=vn,this.paused||this.rebuildDisplayText()})},paused:function(e){e?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:K1.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const e={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...e,...this.currentConfig}},methods:{rebuildDisplayText:function(){let e=this.paused?this.pausedHistory:this.history;const vn=this.paused?this.pausedAt:this.historyPointer;if(e=e.filter(Wn=>Wn).slice(vn+1,this.currentConfig.history).concat(e.slice(0,vn+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const Wn=Math.max(e.length+this.pauseOffset,1);e=e.slice(0,Wn)}const _n=Math.max(this.currentConfig.packetsToShow,1);e=e.slice(-_n),this.currentConfig.newestAtTop&&(e=e.reverse());let kn=`
|
1407
|
+
`;this.filterText!==null&&(kn+=`
|
1408
|
+
`),this.displayText=e.join(kn),this.rows=this.displayText.split(`
|
1409
|
+
`).length},matchesSearch:function(e){return this.filterText===null?e:e.split(`
|
1410
|
+
`).filter(vn=>vn.toLowerCase().includes(this.filterText.toLowerCase())).join(`
|
1411
|
+
`)},download:function(){const e=new Blob([this.displayText],{type:"text/plain"}),vn=document.createElement("a");let _n=URL.createObjectURL(e);vn.href=_n,vn.setAttribute("download",`${pe$3(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),vn.click(),window.URL.revokeObjectURL(_n)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},Y1={class:"pa-2"},Z1={class:"text-area-container"},Q1={class:"floating-buttons"};function X1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-text-field"),Qn=vue.resolveComponent("v-col"),Hn=vue.resolveComponent("v-slider"),qn=vue.resolveComponent("v-row"),Nn=vue.resolveComponent("v-textarea"),Dn=vue.resolveComponent("v-icon"),In=vue.resolveComponent("v-btn"),Bn=vue.resolveComponent("v-card-title"),Ln=vue.resolveComponent("v-switch"),Pn=vue.resolveComponent("v-radio"),Zn=vue.resolveComponent("v-radio-group"),Jn=vue.resolveComponent("v-card-text"),Xn=vue.resolveComponent("v-card"),mi=vue.resolveComponent("v-menu");return vue.openBlock(),vue.createElementBlock("div",Y1,[vue.createVNode(qn,{dense:"",class:"mb-2"},{default:vue.withCtx(()=>[vue.createVNode(Qn,{cols:"4"},{default:vue.withCtx(()=>[vue.createVNode(Kn,{modelValue:e.filterText,"onUpdate:modelValue":vn[0]||(vn[0]=li=>e.filterText=li),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),vue.createVNode(Qn,{cols:"8",class:"mt-1"},{default:vue.withCtx(()=>[vue.createVNode(Hn,{modelValue:e.pauseOffset,"onUpdate:modelValue":vn[1]||(vn[1]=li=>e.pauseOffset=li),onMousedown:zn.pause,"onClick:prepend":zn.stepBackward,"onClick:append":zn.stepForward,"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-e.currentConfig.history,max:0,"hide-details":""},null,8,["modelValue","onMousedown","onClick:prepend","onClick:append","min"])]),_:1})]),_:1}),vue.createVNode(qn,{dense:"","no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",Z1,[vue.createVNode(Nn,{"model-value":e.displayText,rows:e.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),vue.createElementVNode("div",Q1,[vue.createVNode(mi,{"close-on-content-click":!1,"min-width":700},{activator:vue.withCtx(({props:li})=>[vue.createVNode(In,vue.mergeProps({class:"ml-2",color:"secondary"},li,{icon:"",size:"small","data-test":"history-component-open-settings"}),{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>vn[9]||(vn[9]=[vue.createTextVNode("astro:settings")])),_:1})]),_:2},1040)]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{"data-test":"display-settings-card"},{default:vue.withCtx(()=>vn[10]||(vn[10]=[vue.createTextVNode(" Display settings ")])),_:1}),vue.createVNode(Jn,null,{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createVNode(Ln,{modelValue:e.currentConfig.showTimestamp,"onUpdate:modelValue":vn[2]||(vn[2]=li=>e.currentConfig.showTimestamp=li),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),e.hasRaw?(vue.openBlock(),vue.createBlock(Ln,{key:0,modelValue:e.currentConfig.showAscii,"onUpdate:modelValue":vn[3]||(vn[3]=li=>e.currentConfig.showAscii=li),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):vue.createCommentVNode("",!0),e.hasRaw?(vue.openBlock(),vue.createBlock(Ln,{key:1,modelValue:e.currentConfig.showLineAddress,"onUpdate:modelValue":vn[4]||(vn[4]=li=>e.currentConfig.showLineAddress=li),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createVNode(Zn,{modelValue:e.currentConfig.newestAtTop,"onUpdate:modelValue":vn[5]||(vn[5]=li=>e.currentConfig.newestAtTop=li),label:"Print newest to the"},{default:vue.withCtx(()=>[vue.createVNode(Pn,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),vue.createVNode(Pn,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createVNode(Kn,{modelValue:e.currentConfig.history,"onUpdate:modelValue":vn[6]||(vn[6]=li=>e.currentConfig.history=li),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[e.rules.required,e.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),e.hasRaw?(vue.openBlock(),vue.createBlock(Kn,{key:0,modelValue:e.currentConfig.bytesPerLine,"onUpdate:modelValue":vn[7]||(vn[7]=li=>e.currentConfig.bytesPerLine=li),label:"Bytes per line",type:"number",min:"1",rules:[e.rules.required,e.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):vue.createCommentVNode("",!0),vue.createVNode(Kn,{modelValue:e.currentConfig.packetsToShow,"onUpdate:modelValue":vn[8]||(vn[8]=li=>e.currentConfig.packetsToShow=li),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${e.currentConfig.history}`,"persistent-hint":"",rules:[e.rules.required,e.rules.min,e.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),vue.createVNode(In,{class:"ml-2",onClick:zn.download,color:"secondary",icon:"",size:"small","data-test":"history-component-download"},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>vn[11]||(vn[11]=[vue.createTextVNode("mdi-file-download")])),_:1})]),_:1},8,["onClick"]),vue.createVNode(In,{class:vue.normalizeClass(["ml-2",{pulse:e.paused}]),onClick:zn.togglePlayPause,color:"primary",icon:"","data-test":"history-component-play-pause"},{default:vue.withCtx(()=>[e.paused?(vue.openBlock(),vue.createBlock(Dn,{key:0,size:"large"},{default:vue.withCtx(()=>vn[12]||(vn[12]=[vue.createTextVNode("mdi-play")])),_:1})):(vue.openBlock(),vue.createBlock(Dn,{key:1,size:"large"},{default:vue.withCtx(()=>vn[13]||(vn[13]=[vue.createTextVNode("mdi-pause")])),_:1}))]),_:1},8,["class","onClick"])])])]),_:1})]),_:1})])}const Pk=s$2(q1,[["render",X1],["__scopeId","data-v-90852ac7"]]);var _c={exports:{}},cf;function J1(){return cf||(cf=1,function(e,vn){(function(){ace.require(["ace/mode/text"],function(_n){e&&(e.exports=_n)})})()}(_c)),_c.exports}J1();const e_=!0,ln$1="u-",t_="uplot",n_=ln$1+"hz",i_=ln$1+"vt",r_=ln$1+"title",o_=ln$1+"wrap",s_=ln$1+"under",a_=ln$1+"over",l_=ln$1+"axis",Ir=ln$1+"off",c_=ln$1+"select",u_=ln$1+"cursor-x",h_=ln$1+"cursor-y",d_=ln$1+"cursor-pt",f_=ln$1+"legend",p_=ln$1+"live",g_=ln$1+"inline",m_=ln$1+"series",v_=ln$1+"marker",uf=ln$1+"label",y_=ln$1+"value",ms="width",vs="height",ds="top",hf="bottom",co="left",Sc="right",Ru="#000",df=Ru+"0",ff="mousemove",pf="mousedown",kc="mouseup",gf="mouseenter",mf="mouseleave",vf="dblclick",w_="resize",b_="scroll",yf="change",Ba="dppxchange",Eu="--",bo=typeof window<"u",gu=bo?document:null,ho=bo?window:null,x_=bo?navigator:null;let dt$1,La;function mu(){let e=devicePixelRatio;dt$1!=e&&(dt$1=e,La&&yu(yf,La,mu),La=matchMedia(`(min-resolution: ${dt$1-.001}dppx) and (max-resolution: ${dt$1+.001}dppx)`),Nr(yf,La,mu),ho.dispatchEvent(new CustomEvent(Ba)))}function Un(e,vn){if(vn!=null){let _n=e.classList;!_n.contains(vn)&&_n.add(vn)}}function vu(e,vn){let _n=e.classList;_n.contains(vn)&&_n.remove(vn)}function Lt$1(e,vn,_n){e.style[vn]=_n+"px"}function ui(e,vn,_n,kn){let Wn=gu.createElement(e);return vn!=null&&Un(Wn,vn),_n!=null&&_n.insertBefore(Wn,kn),Wn}function ni(e,vn){return ui("div",e,vn)}const wf=new WeakMap;function Ci(e,vn,_n,kn,Wn){let zn="translate("+vn+"px,"+_n+"px)",Kn=wf.get(e);zn!=Kn&&(e.style.transform=zn,wf.set(e,zn),vn<0||_n<0||vn>kn||_n>Wn?Un(e,Ir):vu(e,Ir))}const bf=new WeakMap;function xf(e,vn,_n){let kn=vn+_n,Wn=bf.get(e);kn!=Wn&&(bf.set(e,kn),e.style.background=vn,e.style.borderColor=_n)}const _f=new WeakMap;function Sf(e,vn,_n,kn){let Wn=vn+""+_n,zn=_f.get(e);Wn!=zn&&(_f.set(e,Wn),e.style.height=_n+"px",e.style.width=vn+"px",e.style.marginLeft=kn?-vn/2+"px":0,e.style.marginTop=kn?-_n/2+"px":0)}const Iu={passive:!0},__={...Iu,capture:!0};function Nr(e,vn,_n,kn){vn.addEventListener(e,_n,kn?__:Iu)}function yu(e,vn,_n,kn){vn.removeEventListener(e,_n,Iu)}bo&&mu();function hi(e,vn,_n,kn){let Wn;_n=_n||0,kn=kn||vn.length-1;let zn=kn<=2147483647;for(;kn-_n>1;)Wn=zn?_n+kn>>1:jn((_n+kn)/2),vn[Wn]<e?_n=Wn:kn=Wn;return e-vn[_n]<=vn[kn]-e?_n:kn}function fo(e,vn,_n,kn){for(let Wn=kn==1?vn:_n;Wn>=vn&&Wn<=_n;Wn+=kn)if(e[Wn]!=null)return Wn;return-1}function S_(e,vn,_n,kn){let Wn=ct$1,zn=-ct$1;if(kn==1)Wn=e[vn],zn=e[_n];else if(kn==-1)Wn=e[_n],zn=e[vn];else for(let Kn=vn;Kn<=_n;Kn++){let Qn=e[Kn];Qn!=null&&(Qn<Wn&&(Wn=Qn),Qn>zn&&(zn=Qn))}return[Wn,zn]}function k_(e,vn,_n){let kn=ct$1,Wn=-ct$1;for(let zn=vn;zn<=_n;zn++){let Kn=e[zn];Kn!=null&&Kn>0&&(Kn<kn&&(kn=Kn),Kn>Wn&&(Wn=Kn))}return[kn,Wn]}function Qa(e,vn,_n,kn){let Wn=Af(e),zn=Af(vn);e==vn&&(Wn==-1?(e*=_n,vn/=_n):(e/=_n,vn*=_n));let Kn=_n==10?Hi:eg,Qn=Wn==1?jn:ii,Hn=zn==1?ii:jn,qn=Qn(Kn(an$1(e))),Nn=Hn(Kn(an$1(vn))),Dn=po(_n,qn),In=po(_n,Nn);return _n==10&&(qn<0&&(Dn=Ct$1(Dn,-qn)),Nn<0&&(In=Ct$1(In,-Nn))),kn||_n==2?(e=Dn*Wn,vn=In*zn):(e=ig(e,Dn),vn=Xa(vn,In)),[e,vn]}function Ou(e,vn,_n,kn){let Wn=Qa(e,vn,_n,kn);return e==0&&(Wn[0]=0),vn==0&&(Wn[1]=0),Wn}const Du=.1,kf={mode:3,pad:Du},ws={pad:0,soft:null,mode:0},C_={min:ws,max:ws};function za(e,vn,_n,kn){return Ja(_n)?Cf(e,vn,_n):(ws.pad=_n,ws.soft=kn?0:null,ws.mode=kn?3:0,Cf(e,vn,C_))}function ht$1(e,vn){return e??vn}function A_(e,vn,_n){for(vn=ht$1(vn,0),_n=ht$1(_n,e.length-1);vn<=_n;){if(e[vn]!=null)return!0;vn++}return!1}function Cf(e,vn,_n){let kn=_n.min,Wn=_n.max,zn=ht$1(kn.pad,0),Kn=ht$1(Wn.pad,0),Qn=ht$1(kn.hard,-ct$1),Hn=ht$1(Wn.hard,ct$1),qn=ht$1(kn.soft,ct$1),Nn=ht$1(Wn.soft,-ct$1),Dn=ht$1(kn.mode,0),In=ht$1(Wn.mode,0),Bn=vn-e,Ln=Hi(Bn),Pn=xn$1(an$1(e),an$1(vn)),Zn=Hi(Pn),Jn=an$1(Zn-Ln);(Bn<1e-24||Jn>10)&&(Bn=0,(e==0||vn==0)&&(Bn=1e-24,Dn==2&&qn!=ct$1&&(zn=0),In==2&&Nn!=-ct$1&&(Kn=0)));let Xn=Bn||Pn||1e3,mi=Hi(Xn),li=po(10,jn(mi)),oi=Xn*(Bn==0?e==0?.1:1:zn),ei=Ct$1(ig(e-oi,li/10),24),fi=e>=qn&&(Dn==1||Dn==3&&ei<=qn||Dn==2&&ei>=qn)?qn:ct$1,gi=xn$1(Qn,ei<fi&&e>=fi?fi:ri(fi,ei)),yi=Xn*(Bn==0?vn==0?.1:1:Kn),pi=Ct$1(Xa(vn+yi,li/10),24),$i=vn<=Nn&&(In==1||In==3&&pi>=Nn||In==2&&pi<=Nn)?Nn:-ct$1,si=ri(Hn,pi>$i&&vn<=$i?$i:xn$1($i,pi));return gi==si&&gi==0&&(si=100),[gi,si]}const $_=new Intl.NumberFormat(bo?x_.language:"en-US"),Nu=e=>$_.format(e),Gn=Math,Fa=Gn.PI,an$1=Gn.abs,jn=Gn.floor,sn$1=Gn.round,ii=Gn.ceil,ri=Gn.min,xn$1=Gn.max,po=Gn.pow,Af=Gn.sign,Hi=Gn.log10,eg=Gn.log2,T_=(e,vn=1)=>Gn.sinh(e)*vn,Cc=(e,vn=1)=>Gn.asinh(e/vn),ct$1=1/0;function $f(e){return(Hi((e^e>>31)-(e>>31))|0)+1}function wu(e,vn,_n){return ri(xn$1(e,vn),_n)}function lt$1(e){return typeof e=="function"?e:()=>e}const M_=()=>{},tg=e=>e,ng=(e,vn)=>vn,L_=e=>null,Tf=e=>!0,Mf=(e,vn)=>e==vn,R_=/\.\d*?(?=9{6,}|0{6,})/gm,Wr=e=>{if(og(e)||dr.has(e))return e;const vn=`${e}`,_n=vn.match(R_);if(_n==null)return e;let kn=_n[0].length-1;if(vn.indexOf("e-")!=-1){let[Wn,zn]=vn.split("e");return+`${Wr(Wn)}e${zn}`}return Ct$1(e,kn)};function Rr(e,vn){return Wr(Ct$1(Wr(e/vn))*vn)}function Xa(e,vn){return Wr(ii(Wr(e/vn))*vn)}function ig(e,vn){return Wr(jn(Wr(e/vn))*vn)}function Ct$1(e,vn=0){if(og(e))return e;let _n=10**vn,kn=e*_n*(1+Number.EPSILON);return sn$1(kn)/_n}const dr=new Map;function rg(e){return((""+e).split(".")[1]||"").length}function _s(e,vn,_n,kn){let Wn=[],zn=kn.map(rg);for(let Kn=vn;Kn<_n;Kn++){let Qn=an$1(Kn),Hn=Ct$1(po(e,Kn),Qn);for(let qn=0;qn<kn.length;qn++){let Nn=e==10?+`${kn[qn]}e${Kn}`:kn[qn]*Hn,Dn=(Kn>=0?0:Qn)+(Kn>=zn[qn]?0:zn[qn]),In=e==10?Nn:Ct$1(Nn,Dn);Wn.push(In),dr.set(In,Dn)}}return Wn}const bs={},Fu=[],go=[null,null],ur=Array.isArray,og=Number.isInteger,E_=e=>e===void 0;function Lf(e){return typeof e=="string"}function Ja(e){let vn=!1;if(e!=null){let _n=e.constructor;vn=_n==null||_n==Object}return vn}function I_(e){return e!=null&&typeof e=="object"}const O_=Object.getPrototypeOf(Uint8Array),sg="__proto__";function mo(e,vn=Ja){let _n;if(ur(e)){let kn=e.find(Wn=>Wn!=null);if(ur(kn)||vn(kn)){_n=Array(e.length);for(let Wn=0;Wn<e.length;Wn++)_n[Wn]=mo(e[Wn],vn)}else _n=e.slice()}else if(e instanceof O_)_n=e.slice();else if(vn(e)){_n={};for(let kn in e)kn!=sg&&(_n[kn]=mo(e[kn],vn))}else _n=e;return _n}function Zt$1(e){let vn=arguments;for(let _n=1;_n<vn.length;_n++){let kn=vn[_n];for(let Wn in kn)Wn!=sg&&(Ja(e[Wn])?Zt$1(e[Wn],mo(kn[Wn])):e[Wn]=mo(kn[Wn]))}return e}const D_=0,N_=1,F_=2;function W_(e,vn,_n){for(let kn=0,Wn,zn=-1;kn<vn.length;kn++){let Kn=vn[kn];if(Kn>zn){for(Wn=Kn-1;Wn>=0&&e[Wn]==null;)e[Wn--]=null;for(Wn=Kn+1;Wn<_n&&e[Wn]==null;)e[zn=Wn++]=null}}}function P_(e,vn){if(H_(e)){let Kn=e[0].slice();for(let Qn=1;Qn<e.length;Qn++)Kn.push(...e[Qn].slice(1));return U_(Kn[0])||(Kn=z_(Kn)),Kn}let _n=new Set;for(let Kn=0;Kn<e.length;Kn++){let Qn=e[Kn][0],Hn=Qn.length;for(let qn=0;qn<Hn;qn++)_n.add(Qn[qn])}let kn=[Array.from(_n).sort((Kn,Qn)=>Kn-Qn)],Wn=kn[0].length,zn=new Map;for(let Kn=0;Kn<Wn;Kn++)zn.set(kn[0][Kn],Kn);for(let Kn=0;Kn<e.length;Kn++){let Qn=e[Kn],Hn=Qn[0];for(let qn=1;qn<Qn.length;qn++){let Nn=Qn[qn],Dn=Array(Wn).fill(void 0),In=vn?vn[Kn][qn]:N_,Bn=[];for(let Ln=0;Ln<Nn.length;Ln++){let Pn=Nn[Ln],Zn=zn.get(Hn[Ln]);Pn===null?In!=D_&&(Dn[Zn]=Pn,In==F_&&Bn.push(Zn)):Dn[Zn]=Pn}W_(Dn,Bn,Wn),kn.push(Dn)}}return kn}const B_=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function z_(e){let vn=e[0],_n=vn.length,kn=Array(_n);for(let zn=0;zn<kn.length;zn++)kn[zn]=zn;kn.sort((zn,Kn)=>vn[zn]-vn[Kn]);let Wn=[];for(let zn=0;zn<e.length;zn++){let Kn=e[zn],Qn=Array(_n);for(let Hn=0;Hn<_n;Hn++)Qn[Hn]=Kn[kn[Hn]];Wn.push(Qn)}return Wn}function H_(e){let vn=e[0][0],_n=vn.length;for(let kn=1;kn<e.length;kn++){let Wn=e[kn][0];if(Wn.length!=_n)return!1;if(Wn!=vn){for(let zn=0;zn<_n;zn++)if(Wn[zn]!=vn[zn])return!1}}return!0}function U_(e,vn=100){const _n=e.length;if(_n<=1)return!0;let kn=0,Wn=_n-1;for(;kn<=Wn&&e[kn]==null;)kn++;for(;Wn>=kn&&e[Wn]==null;)Wn--;if(Wn<=kn)return!0;const zn=xn$1(1,jn((Wn-kn+1)/vn));for(let Kn=e[kn],Qn=kn+zn;Qn<=Wn;Qn+=zn){const Hn=e[Qn];if(Hn!=null){if(Hn<=Kn)return!1;Kn=Hn}}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(e){return e.slice(0,3)}const V_=lg.map(cg),j_=ag.map(cg),G_={MMMM:ag,MMM:j_,WWWW:lg,WWW:V_};function fs(e){return(e<10?"0":"")+e}function K_(e){return(e<10?"00":e<100?"0":"")+e}const q_={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,vn)=>vn.MMMM[e.getMonth()],MMM:(e,vn)=>vn.MMM[e.getMonth()],MM:e=>fs(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>fs(e.getDate()),D:e=>e.getDate(),WWWW:(e,vn)=>vn.WWWW[e.getDay()],WWW:(e,vn)=>vn.WWW[e.getDay()],HH:e=>fs(e.getHours()),H:e=>e.getHours(),h:e=>{let vn=e.getHours();return vn==0?12:vn>12?vn-12:vn},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>fs(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>fs(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>K_(e.getMilliseconds())};function Wu(e,vn){vn=vn||G_;let _n=[],kn=/\{([a-z]+)\}|[^{]+/gi,Wn;for(;Wn=kn.exec(e);)_n.push(Wn[0][0]=="{"?q_[Wn[1]]:Wn[0]);return zn=>{let Kn="";for(let Qn=0;Qn<_n.length;Qn++)Kn+=typeof _n[Qn]=="string"?_n[Qn]:_n[Qn](zn,vn);return Kn}}const Y_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Z_(e,vn){let _n;return vn=="UTC"||vn=="Etc/UTC"?_n=new Date(+e+e.getTimezoneOffset()*6e4):vn==Y_?_n=e:(_n=new Date(e.toLocaleString("en-US",{timeZone:vn})),_n.setMilliseconds(e.getMilliseconds())),_n}const ug=e=>e%1==0,Ha=[1,2,2.5,5],Q_=_s(10,-32,0,Ha),hg=_s(10,0,32,Ha),X_=hg.filter(ug),Er=Q_.concat(hg),Pu=`
|
1412
|
+
`,dg="{YYYY}",Rf=Pu+dg,fg="{M}/{D}",ys=Pu+fg,Ra=ys+"/{YY}",pg="{aa}",J_="{h}:{mm}",uo=J_+pg,Ef=Pu+uo,If=":{ss}",mt$1=null;function gg(e){let vn=e*1e3,_n=vn*60,kn=_n*60,Wn=kn*24,zn=Wn*30,Kn=Wn*365,Qn=(e==1?_s(10,0,3,Ha).filter(ug):_s(10,-3,0,Ha)).concat([vn,vn*5,vn*10,vn*15,vn*30,_n,_n*5,_n*10,_n*15,_n*30,kn,kn*2,kn*3,kn*4,kn*6,kn*8,kn*12,Wn,Wn*2,Wn*3,Wn*4,Wn*5,Wn*6,Wn*7,Wn*8,Wn*9,Wn*10,Wn*15,zn,zn*2,zn*3,zn*4,zn*6,Kn,Kn*2,Kn*5,Kn*10,Kn*25,Kn*50,Kn*100]);const Hn=[[Kn,dg,mt$1,mt$1,mt$1,mt$1,mt$1,mt$1,1],[Wn*28,"{MMM}",Rf,mt$1,mt$1,mt$1,mt$1,mt$1,1],[Wn,fg,Rf,mt$1,mt$1,mt$1,mt$1,mt$1,1],[kn,"{h}"+pg,Ra,mt$1,ys,mt$1,mt$1,mt$1,1],[_n,uo,Ra,mt$1,ys,mt$1,mt$1,mt$1,1],[vn,If,Ra+" "+uo,mt$1,ys+" "+uo,mt$1,Ef,mt$1,1],[e,If+".{fff}",Ra+" "+uo,mt$1,ys+" "+uo,mt$1,Ef,mt$1,1]];function qn(Nn){return(Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=[],Xn=Pn>=Kn,mi=Pn>=zn&&Pn<Kn,li=Nn(Bn),oi=Ct$1(li*e,3),ei=Ac(li.getFullYear(),Xn?0:li.getMonth(),mi||Xn?1:li.getDate()),fi=Ct$1(ei*e,3);if(mi||Xn){let gi=mi?Pn/zn:0,yi=Xn?Pn/Kn:0,pi=oi==fi?oi:Ct$1(Ac(ei.getFullYear()+yi,ei.getMonth()+gi,1)*e,3),$i=new Date(sn$1(pi/e)),si=$i.getFullYear(),ti=$i.getMonth();for(let ai=0;pi<=Ln;ai++){let vi=Ac(si+yi*ai,ti+gi*ai,1),wi=vi-Nn(Ct$1(vi*e,3));pi=Ct$1((+vi+wi)*e,3),pi<=Ln&&Jn.push(pi)}}else{let gi=Pn>=Wn?Wn:Pn,yi=jn(Bn)-jn(oi),pi=fi+yi+Xa(oi-fi,gi);Jn.push(pi);let $i=Nn(pi),si=$i.getHours()+$i.getMinutes()/_n+$i.getSeconds()/kn,ti=Pn/kn,ai=Dn.axes[In]._space,vi=Zn/ai;for(;pi=Ct$1(pi+Pn,e==1?0:3),!(pi>Ln);)if(ti>1){let wi=jn(Ct$1(si+ti,6))%24,xi=Nn(pi).getHours()-wi;xi>1&&(xi=-1),pi-=xi*kn,si=(si+ti)%24;let Si=Jn[Jn.length-1];Ct$1((pi-Si)/Pn,3)*vi>=.7&&Jn.push(pi)}else Jn.push(pi)}return Jn}}return[Qn,Hn,qn]}const[eS,tS,nS]=gg(1),[iS,rS,oS]=gg(.001);_s(2,-53,53,[1]);function Of(e,vn){return e.map(_n=>_n.map((kn,Wn)=>Wn==0||Wn==8||kn==null?kn:vn(Wn==1||_n[8]==0?kn:_n[1]+kn)))}function Df(e,vn){return(_n,kn,Wn,zn,Kn)=>{let Qn=vn.find(Ln=>Kn>=Ln[0])||vn[vn.length-1],Hn,qn,Nn,Dn,In,Bn;return kn.map(Ln=>{let Pn=e(Ln),Zn=Pn.getFullYear(),Jn=Pn.getMonth(),Xn=Pn.getDate(),mi=Pn.getHours(),li=Pn.getMinutes(),oi=Pn.getSeconds(),ei=Zn!=Hn&&Qn[2]||Jn!=qn&&Qn[3]||Xn!=Nn&&Qn[4]||mi!=Dn&&Qn[5]||li!=In&&Qn[6]||oi!=Bn&&Qn[7]||Qn[1];return Hn=Zn,qn=Jn,Nn=Xn,Dn=mi,In=li,Bn=oi,ei(Pn)})}}function sS(e,vn){let _n=Wu(vn);return(kn,Wn,zn,Kn,Qn)=>Wn.map(Hn=>_n(e(Hn)))}function Ac(e,vn,_n){return new Date(e,vn,_n)}function Nf(e,vn){return vn(e)}const aS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ff(e,vn){return(_n,kn,Wn,zn)=>zn==null?Eu:vn(e(kn))}function lS(e,vn){let _n=e.series[vn];return _n.width?_n.stroke(e,vn):_n.points.width?_n.points.stroke(e,vn):null}function cS(e,vn){return e.series[vn].fill(e,vn)}const uS={show:!0,live:!0,isolate:!1,mount:M_,markers:{show:!0,width:2,stroke:lS,fill:cS,dash:"solid"},idx:null,idxs:null,values:[]};function hS(e,vn){let _n=e.cursor.points,kn=ni(),Wn=_n.size(e,vn);Lt$1(kn,ms,Wn),Lt$1(kn,vs,Wn);let zn=Wn/-2;Lt$1(kn,"marginLeft",zn),Lt$1(kn,"marginTop",zn);let Kn=_n.width(e,vn,Wn);return Kn&&Lt$1(kn,"borderWidth",Kn),kn}function dS(e,vn){let _n=e.series[vn].points;return _n._fill||_n._stroke}function fS(e,vn){let _n=e.series[vn].points;return _n._stroke||_n._fill}function pS(e,vn){return e.series[vn].points.size}const $c=[0,0];function gS(e,vn,_n){return $c[0]=vn,$c[1]=_n,$c}function Ea(e,vn,_n,kn=!0){return Wn=>{Wn.button==0&&(!kn||Wn.target==vn)&&_n(Wn)}}function Tc(e,vn,_n,kn=!0){return Wn=>{(!kn||Wn.target==vn)&&_n(Wn)}}const mS={show:!0,x:!0,y:!0,lock:!1,move:gS,points:{one:!1,show:hS,size:pS,width:0,stroke:fS,fill:dS},bind:{mousedown:Ea,mouseup:Ea,click:Ea,dblclick:Ea,mousemove:Tc,mouseleave:Tc,mouseenter:Tc},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,vn)=>{vn.stopPropagation(),vn.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,vn,_n,kn,Wn)=>kn-Wn,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},mg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Bu=Zt$1({},mg,{filter:ng}),vg=Zt$1({},Bu,{size:10}),yg=Zt$1({},mg,{show:!1}),zu='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"',wg="bold "+zu,bg=1.5,Wf={show:!0,scale:"x",stroke:Ru,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:2,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0},vS="Value",yS="Time",Pf={show:!0,scale:"x",auto:!1,sorted:1,min:ct$1,max:-ct$1,idxs:[]};function wS(e,vn,_n,kn,Wn){return vn.map(zn=>zn==null?"":Nu(zn))}function bS(e,vn,_n,kn,Wn,zn,Kn){let Qn=[],Hn=dr.get(Wn)||0;_n=Kn?_n:Ct$1(Xa(_n,Wn),Hn);for(let qn=_n;qn<=kn;qn=Ct$1(qn+Wn,Hn))Qn.push(Object.is(qn,-0)?0:qn);return Qn}function bu(e,vn,_n,kn,Wn,zn,Kn){const Qn=[],Hn=e.scales[e.axes[vn].scale].log,qn=Hn==10?Hi:eg,Nn=jn(qn(_n));Wn=po(Hn,Nn),Hn==10&&(Wn=Er[hi(Wn,Er)]);let Dn=_n,In=Wn*Hn;Hn==10&&(In=Er[hi(In,Er)]);do Qn.push(Dn),Dn=Dn+Wn,Hn==10&&!dr.has(Dn)&&(Dn=Ct$1(Dn,dr.get(Wn))),Dn>=In&&(Wn=Dn,In=Wn*Hn,Hn==10&&(In=Er[hi(In,Er)]));while(Dn<=kn);return Qn}function xS(e,vn,_n,kn,Wn,zn,Kn){let Qn=e.scales[e.axes[vn].scale].asinh,Hn=kn>Qn?bu(e,vn,xn$1(Qn,_n),kn,Wn):[Qn],qn=kn>=0&&_n<=0?[0]:[];return(_n<-Qn?bu(e,vn,xn$1(Qn,-kn),-_n,Wn):[Qn]).reverse().map(Nn=>-Nn).concat(qn,Hn)}const xg=/./,_S=/[12357]/,SS=/[125]/,Bf=/1/,xu=(e,vn,_n,kn)=>e.map((Wn,zn)=>vn==4&&Wn==0||zn%kn==0&&_n.test(Wn.toExponential()[Wn<0?1:0])?Wn:null);function kS(e,vn,_n,kn,Wn){let zn=e.axes[_n],Kn=zn.scale,Qn=e.scales[Kn],Hn=e.valToPos,qn=zn._space,Nn=Hn(10,Kn),Dn=Hn(9,Kn)-Nn>=qn?xg:Hn(7,Kn)-Nn>=qn?_S:Hn(5,Kn)-Nn>=qn?SS:Bf;if(Dn==Bf){let In=an$1(Hn(1,Kn)-Nn);if(In<qn)return xu(vn.slice().reverse(),Qn.distr,Dn,ii(qn/In)).reverse()}return xu(vn,Qn.distr,Dn,1)}function CS(e,vn,_n,kn,Wn){let zn=e.axes[_n],Kn=zn.scale,Qn=zn._space,Hn=e.valToPos,qn=an$1(Hn(1,Kn)-Hn(2,Kn));return qn<Qn?xu(vn.slice().reverse(),3,xg,ii(Qn/qn)).reverse():vn}function AS(e,vn,_n,kn){return kn==null?Eu:vn==null?"":Nu(vn)}const zf={show:!0,scale:"y",stroke:Ru,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:3,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0};function $S(e,vn){let _n=3+(e||1)*2;return Ct$1(_n*vn,3)}function TS(e,vn){let{scale:_n,idxs:kn}=e.series[0],Wn=e._data[0],zn=e.valToPos(Wn[kn[0]],_n,!0),Kn=e.valToPos(Wn[kn[1]],_n,!0),Qn=an$1(Kn-zn),Hn=e.series[vn],qn=Qn/(Hn.points.space*dt$1);return kn[1]-kn[0]<=qn}const Hf={scale:null,auto:!0,sorted:0,min:ct$1,max:-ct$1},_g=(e,vn,_n,kn,Wn)=>Wn,Uf={show:!0,auto:!0,sorted:0,gaps:_g,alpha:1,facets:[Zt$1({},Hf,{scale:"x"}),Zt$1({},Hf,{scale:"y"})]},Vf={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:_g,alpha:1,points:{show:TS,filter:null},values:null,min:ct$1,max:-ct$1,idxs:[],path:null,clip:null};function MS(e,vn,_n,kn,Wn){return _n/10}const Sg={time:e_,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},LS=Zt$1({},Sg,{time:!1,ori:1}),jf={};function kg(e,vn){let _n=jf[e];return _n||(_n={key:e,plots:[],sub(kn){_n.plots.push(kn)},unsub(kn){_n.plots=_n.plots.filter(Wn=>Wn!=kn)},pub(kn,Wn,zn,Kn,Qn,Hn,qn){for(let Nn=0;Nn<_n.plots.length;Nn++)_n.plots[Nn]!=Wn&&_n.plots[Nn].pub(kn,Wn,zn,Kn,Qn,Hn,qn)}},e!=null&&(jf[e]=_n)),_n}const vo=1,_u=2;function Pr(e,vn,_n){const kn=e.mode,Wn=e.series[vn],zn=kn==2?e._data[vn]:e._data,Kn=e.scales,Qn=e.bbox;let Hn=zn[0],qn=kn==2?zn[1]:zn[vn],Nn=kn==2?Kn[Wn.facets[0].scale]:Kn[e.series[0].scale],Dn=kn==2?Kn[Wn.facets[1].scale]:Kn[Wn.scale],In=Qn.left,Bn=Qn.top,Ln=Qn.width,Pn=Qn.height,Zn=e.valToPosH,Jn=e.valToPosV;return Nn.ori==0?_n(Wn,Hn,qn,Nn,Dn,Zn,Jn,In,Bn,Ln,Pn,tl,xo,il,Ag,Tg):_n(Wn,Hn,qn,Nn,Dn,Jn,Zn,Bn,In,Pn,Ln,nl,_o,Vu,$g,Mg)}function Hu(e,vn){let _n=0,kn=0,Wn=ht$1(e.bands,Fu);for(let zn=0;zn<Wn.length;zn++){let Kn=Wn[zn];Kn.series[0]==vn?_n=Kn.dir:Kn.series[1]==vn&&(Kn.dir==1?kn|=1:kn|=2)}return[_n,kn==1?-1:kn==2?1:kn==3?2:0]}function RS(e,vn,_n,kn,Wn){let zn=e.mode,Kn=e.series[vn],Qn=zn==2?Kn.facets[1].scale:Kn.scale,Hn=e.scales[Qn];return Wn==-1?Hn.min:Wn==1?Hn.max:Hn.distr==3?Hn.dir==1?Hn.min:Hn.max:0}function Ui(e,vn,_n,kn,Wn,zn){return Pr(e,vn,(Kn,Qn,Hn,qn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=Kn.pxRound;const Xn=qn.dir*(qn.ori==0?1:-1),mi=qn.ori==0?xo:_o;let li,oi;Xn==1?(li=_n,oi=kn):(li=kn,oi=_n);let ei=Jn(Dn(Qn[li],qn,Pn,Bn)),fi=Jn(In(Hn[li],Nn,Zn,Ln)),gi=Jn(Dn(Qn[oi],qn,Pn,Bn)),yi=Jn(In(zn==1?Nn.max:Nn.min,Nn,Zn,Ln)),pi=new Path2D(Wn);return mi(pi,gi,yi),mi(pi,ei,yi),mi(pi,ei,fi),pi})}function el(e,vn,_n,kn,Wn,zn){let Kn=null;if(e.length>0){Kn=new Path2D;const Qn=vn==0?il:Vu;let Hn=_n;for(let Dn=0;Dn<e.length;Dn++){let In=e[Dn];if(In[1]>In[0]){let Bn=In[0]-Hn;Bn>0&&Qn(Kn,Hn,kn,Bn,kn+zn),Hn=In[1]}}let qn=_n+Wn-Hn,Nn=10;qn>0&&Qn(Kn,Hn,kn-Nn/2,qn,kn+zn+Nn)}return Kn}function ES(e,vn,_n){let kn=e[e.length-1];kn&&kn[0]==vn?kn[1]=_n:e.push([vn,_n])}function Uu(e,vn,_n,kn,Wn,zn,Kn){let Qn=[],Hn=e.length;for(let qn=Wn==1?_n:kn;qn>=_n&&qn<=kn;qn+=Wn)if(vn[qn]===null){let Nn=qn,Dn=qn;if(Wn==1)for(;++qn<=kn&&vn[qn]===null;)Dn=qn;else for(;--qn>=_n&&vn[qn]===null;)Dn=qn;let In=zn(e[Nn]),Bn=Dn==Nn?In:zn(e[Dn]),Ln=Nn-Wn;In=Kn<=0&&Ln>=0&&Ln<Hn?zn(e[Ln]):In;let Pn=Dn+Wn;Bn=Kn>=0&&Pn>=0&&Pn<Hn?zn(e[Pn]):Bn,Bn>=In&&Qn.push([In,Bn])}return Qn}function Gf(e){return e==0?tg:e==1?sn$1:vn=>Rr(vn,e)}function Cg(e){let vn=e==0?tl:nl,_n=e==0?(Wn,zn,Kn,Qn,Hn,qn)=>{Wn.arcTo(zn,Kn,Qn,Hn,qn)}:(Wn,zn,Kn,Qn,Hn,qn)=>{Wn.arcTo(Kn,zn,Hn,Qn,qn)},kn=e==0?(Wn,zn,Kn,Qn,Hn)=>{Wn.rect(zn,Kn,Qn,Hn)}:(Wn,zn,Kn,Qn,Hn)=>{Wn.rect(Kn,zn,Hn,Qn)};return(Wn,zn,Kn,Qn,Hn,qn=0,Nn=0)=>{qn==0&&Nn==0?kn(Wn,zn,Kn,Qn,Hn):(qn=ri(qn,Qn/2,Hn/2),Nn=ri(Nn,Qn/2,Hn/2),vn(Wn,zn+qn,Kn),_n(Wn,zn+Qn,Kn,zn+Qn,Kn+Hn,qn),_n(Wn,zn+Qn,Kn+Hn,zn,Kn+Hn,Nn),_n(Wn,zn,Kn+Hn,zn,Kn,Nn),_n(Wn,zn,Kn,zn+Qn,Kn,qn),Wn.closePath())}}const tl=(e,vn,_n)=>{e.moveTo(vn,_n)},nl=(e,vn,_n)=>{e.moveTo(_n,vn)},xo=(e,vn,_n)=>{e.lineTo(vn,_n)},_o=(e,vn,_n)=>{e.lineTo(_n,vn)},il=Cg(0),Vu=Cg(1),Ag=(e,vn,_n,kn,Wn,zn)=>{e.arc(vn,_n,kn,Wn,zn)},$g=(e,vn,_n,kn,Wn,zn)=>{e.arc(_n,vn,kn,Wn,zn)},Tg=(e,vn,_n,kn,Wn,zn,Kn)=>{e.bezierCurveTo(vn,_n,kn,Wn,zn,Kn)},Mg=(e,vn,_n,kn,Wn,zn,Kn)=>{e.bezierCurveTo(_n,vn,Wn,kn,Kn,zn)};function Lg(e){return(vn,_n,kn,Wn,zn)=>Pr(vn,_n,(Kn,Qn,Hn,qn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let{pxRound:Jn,points:Xn}=Kn,mi,li;qn.ori==0?(mi=tl,li=Ag):(mi=nl,li=$g);const oi=Ct$1(Xn.width*dt$1,3);let ei=(Xn.size-Xn.width)/2*dt$1,fi=Ct$1(ei*2,3),gi=new Path2D,yi=new Path2D,{left:pi,top:$i,width:si,height:ti}=vn.bbox;il(yi,pi-fi,$i-fi,si+fi*2,ti+fi*2);const ai=vi=>{if(Hn[vi]!=null){let wi=Jn(Dn(Qn[vi],qn,Pn,Bn)),xi=Jn(In(Hn[vi],Nn,Zn,Ln));mi(gi,wi+ei,xi),li(gi,wi,xi,ei,0,Fa*2)}};if(zn)zn.forEach(ai);else for(let vi=kn;vi<=Wn;vi++)ai(vi);return{stroke:oi>0?gi:null,fill:gi,clip:yi,flags:vo|_u}})}function Rg(e){return(vn,_n,kn,Wn,zn,Kn)=>{kn!=Wn&&(zn!=kn&&Kn!=kn&&e(vn,_n,kn),zn!=Wn&&Kn!=Wn&&e(vn,_n,Wn),e(vn,_n,Kn))}}const IS=Rg(xo),OS=Rg(_o);function Eg(e){const vn=ht$1(e==null?void 0:e.alignGaps,0);return(_n,kn,Wn,zn)=>Pr(_n,kn,(Kn,Qn,Hn,qn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=Kn.pxRound,Xn=Fi=>Jn(Dn(Fi,qn,Pn,Bn)),mi=Fi=>Jn(In(Fi,Nn,Zn,Ln)),li,oi;qn.ori==0?(li=xo,oi=IS):(li=_o,oi=OS);const ei=qn.dir*(qn.ori==0?1:-1),fi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},gi=fi.stroke;let yi=ct$1,pi=-ct$1,$i,si,ti,ai=Xn(Qn[ei==1?Wn:zn]),vi=fo(Hn,Wn,zn,1*ei),wi=fo(Hn,Wn,zn,-1*ei),xi=Xn(Qn[vi]),Si=Xn(Qn[wi]),Ei=!1;for(let Fi=ei==1?Wn:zn;Fi>=Wn&&Fi<=zn;Fi+=ei){let Ii=Xn(Qn[Fi]),Bi=Hn[Fi];Ii==ai?Bi!=null?(si=mi(Bi),yi==ct$1&&(li(gi,Ii,si),$i=si),yi=ri(si,yi),pi=xn$1(si,pi)):Bi===null&&(Ei=!0):(yi!=ct$1&&(oi(gi,ai,yi,pi,$i,si),ti=ai),Bi!=null?(si=mi(Bi),li(gi,Ii,si),yi=pi=$i=si):(yi=ct$1,pi=-ct$1,Bi===null&&(Ei=!0)),ai=Ii)}yi!=ct$1&&yi!=pi&&ti!=ai&&oi(gi,ai,yi,pi,$i,si);let[Ni,Ri]=Hu(_n,kn);if(Kn.fill!=null||Ni!=0){let Fi=fi.fill=new Path2D(gi),Ii=Kn.fillTo(_n,kn,Kn.min,Kn.max,Ni),Bi=mi(Ii);li(Fi,Si,Bi),li(Fi,xi,Bi)}if(!Kn.spanGaps){let Fi=[];Ei&&Fi.push(...Uu(Qn,Hn,Wn,zn,ei,Xn,vn)),fi.gaps=Fi=Kn.gaps(_n,kn,Wn,zn,Fi),fi.clip=el(Fi,qn.ori,Bn,Ln,Pn,Zn)}return Ri!=0&&(fi.band=Ri==2?[Ui(_n,kn,Wn,zn,gi,-1),Ui(_n,kn,Wn,zn,gi,1)]:Ui(_n,kn,Wn,zn,gi,Ri)),fi})}function DS(e){const vn=ht$1(e.align,1),_n=ht$1(e.ascDesc,!1),kn=ht$1(e.alignGaps,0),Wn=ht$1(e.extend,!1);return(zn,Kn,Qn,Hn)=>Pr(zn,Kn,(qn,Nn,Dn,In,Bn,Ln,Pn,Zn,Jn,Xn,mi)=>{let li=qn.pxRound,{left:oi,width:ei}=zn.bbox,fi=Ni=>li(Ln(Ni,In,Xn,Zn)),gi=Ni=>li(Pn(Ni,Bn,mi,Jn)),yi=In.ori==0?xo:_o;const pi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},$i=pi.stroke,si=In.dir*(In.ori==0?1:-1);Qn=fo(Dn,Qn,Hn,1),Hn=fo(Dn,Qn,Hn,-1);let ti=gi(Dn[si==1?Qn:Hn]),ai=fi(Nn[si==1?Qn:Hn]),vi=ai,wi=ai;Wn&&vn==-1&&(wi=oi,yi($i,wi,ti)),yi($i,ai,ti);for(let Ni=si==1?Qn:Hn;Ni>=Qn&&Ni<=Hn;Ni+=si){let Ri=Dn[Ni];if(Ri==null)continue;let Fi=fi(Nn[Ni]),Ii=gi(Ri);vn==1?yi($i,Fi,ti):yi($i,vi,Ii),yi($i,Fi,Ii),ti=Ii,vi=Fi}let xi=vi;Wn&&vn==1&&(xi=oi+ei,yi($i,xi,ti));let[Si,Ei]=Hu(zn,Kn);if(qn.fill!=null||Si!=0){let Ni=pi.fill=new Path2D($i),Ri=qn.fillTo(zn,Kn,qn.min,qn.max,Si),Fi=gi(Ri);yi(Ni,xi,Fi),yi(Ni,wi,Fi)}if(!qn.spanGaps){let Ni=[];Ni.push(...Uu(Nn,Dn,Qn,Hn,si,fi,kn));let Ri=qn.width*dt$1/2,Fi=_n||vn==1?Ri:-Ri,Ii=_n||vn==-1?-Ri:Ri;Ni.forEach(Bi=>{Bi[0]+=Fi,Bi[1]+=Ii}),pi.gaps=Ni=qn.gaps(zn,Kn,Qn,Hn,Ni),pi.clip=el(Ni,In.ori,Zn,Jn,Xn,mi)}return Ei!=0&&(pi.band=Ei==2?[Ui(zn,Kn,Qn,Hn,$i,-1),Ui(zn,Kn,Qn,Hn,$i,1)]:Ui(zn,Kn,Qn,Hn,$i,Ei)),pi})}function Kf(e,vn,_n,kn,Wn,zn,Kn=ct$1){if(e.length>1){let Qn=null;for(let Hn=0,qn=1/0;Hn<e.length;Hn++)if(vn[Hn]!==void 0){if(Qn!=null){let Nn=an$1(e[Hn]-e[Qn]);Nn<qn&&(qn=Nn,Kn=an$1(_n(e[Hn],kn,Wn,zn)-_n(e[Qn],kn,Wn,zn)))}Qn=Hn}}return Kn}function NS(e){e=e||bs;const vn=ht$1(e.size,[.6,ct$1,1]),_n=e.align||0,kn=e.gap||0;let Wn=e.radius;Wn=Wn==null?[0,0]:typeof Wn=="number"?[Wn,0]:Wn;const zn=lt$1(Wn),Kn=1-vn[0],Qn=ht$1(vn[1],ct$1),Hn=ht$1(vn[2],1),qn=ht$1(e.disp,bs),Nn=ht$1(e.each,Bn=>{}),{fill:Dn,stroke:In}=qn;return(Bn,Ln,Pn,Zn)=>Pr(Bn,Ln,(Jn,Xn,mi,li,oi,ei,fi,gi,yi,pi,$i)=>{let si=Jn.pxRound,ti=_n,ai=kn*dt$1,vi=Qn*dt$1,wi=Hn*dt$1,xi,Si;li.ori==0?[xi,Si]=zn(Bn,Ln):[Si,xi]=zn(Bn,Ln);const Ei=li.dir*(li.ori==0?1:-1);let Ni=li.ori==0?il:Vu,Ri=li.ori==0?Nn:(Hr,Ji,xr,kr,Gr,Yr,$o)=>{Nn(Hr,Ji,xr,Gr,kr,$o,Yr)},Fi=ht$1(Bn.bands,Fu).find(Hr=>Hr.series[0]==Ln),Ii=Fi!=null?Fi.dir:0,Bi=Jn.fillTo(Bn,Ln,Jn.min,Jn.max,Ii),Gi=si(fi(Bi,oi,$i,yi)),Pi,Zi,lr,gr=pi,or=si(Jn.width*dt$1),yr=!1,io=null,Po=null,lo=null,So=null;Dn!=null&&(or==0||In!=null)&&(yr=!0,io=Dn.values(Bn,Ln,Pn,Zn),Po=new Map,new Set(io).forEach(Hr=>{Hr!=null&&Po.set(Hr,new Path2D)}),or>0&&(lo=In.values(Bn,Ln,Pn,Zn),So=new Map,new Set(lo).forEach(Hr=>{Hr!=null&&So.set(Hr,new Path2D)})));let{x0:Xo,size:Do}=qn;if(Xo!=null&&Do!=null){ti=1,Xn=Xo.values(Bn,Ln,Pn,Zn),Xo.unit==2&&(Xn=Xn.map(Ji=>Bn.posToVal(gi+Ji*pi,li.key,!0)));let Hr=Do.values(Bn,Ln,Pn,Zn);Do.unit==2?Zi=Hr[0]*pi:Zi=ei(Hr[0],li,pi,gi)-ei(0,li,pi,gi),gr=Kf(Xn,mi,ei,li,pi,gi,gr),lr=gr-Zi+ai}else gr=Kf(Xn,mi,ei,li,pi,gi,gr),lr=gr*Kn+ai,Zi=gr-lr;lr<1&&(lr=0),or>=Zi/2&&(or=0),lr<5&&(si=tg);let Uo=lr>0,va=gr-lr-(Uo?or:0);Zi=si(wu(va,wi,vi)),Pi=(ti==0?Zi/2:ti==Ei?0:Zi)-ti*Ei*((ti==0?ai/2:0)+(Uo?or/2:0));const ss={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ko=yr?null:new Path2D;let Mr=null;if(Fi!=null)Mr=Bn.data[Fi.series[1]];else{let{y0:Hr,y1:Ji}=qn;Hr!=null&&Ji!=null&&(mi=Ji.values(Bn,Ln,Pn,Zn),Mr=Hr.values(Bn,Ln,Pn,Zn))}let Br=xi*Zi,Zo=Si*Zi;for(let Hr=Ei==1?Pn:Zn;Hr>=Pn&&Hr<=Zn;Hr+=Ei){let Ji=mi[Hr];if(Ji==null)continue;if(Mr!=null){let so=Mr[Hr]??0;if(Ji-so==0)continue;Gi=fi(so,oi,$i,yi)}let xr=li.distr!=2||qn!=null?Xn[Hr]:Hr,kr=ei(xr,li,pi,gi),Gr=fi(ht$1(Ji,Bi),oi,$i,yi),Yr=si(kr-Pi),$o=si(xn$1(Gr,Gi)),ko=si(ri(Gr,Gi)),oo=$o-ko;if(Ji!=null){let so=Ji<0?Zo:Br,eo=Ji<0?Br:Zo;yr?(or>0&&lo[Hr]!=null&&Ni(So.get(lo[Hr]),Yr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo),io[Hr]!=null&&Ni(Po.get(io[Hr]),Yr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo)):Ni(Ko,Yr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo),Ri(Bn,Ln,Hr,Yr-or/2,ko,Zi+or,oo)}}return or>0?ss.stroke=yr?So:Ko:yr||(ss._fill=Jn.width==0?Jn._fill:Jn._stroke??Jn._fill,ss.width=0),ss.fill=yr?Po:Ko,ss})}function FS(e,vn){const _n=ht$1(vn==null?void 0:vn.alignGaps,0);return(kn,Wn,zn,Kn)=>Pr(kn,Wn,(Qn,Hn,qn,Nn,Dn,In,Bn,Ln,Pn,Zn,Jn)=>{let Xn=Qn.pxRound,mi=xi=>Xn(In(xi,Nn,Zn,Ln)),li=xi=>Xn(Bn(xi,Dn,Jn,Pn)),oi,ei,fi;Nn.ori==0?(oi=tl,fi=xo,ei=Tg):(oi=nl,fi=_o,ei=Mg);const gi=Nn.dir*(Nn.ori==0?1:-1);zn=fo(qn,zn,Kn,1),Kn=fo(qn,zn,Kn,-1);let yi=mi(Hn[gi==1?zn:Kn]),pi=yi,$i=[],si=[];for(let xi=gi==1?zn:Kn;xi>=zn&&xi<=Kn;xi+=gi)if(qn[xi]!=null){let Si=Hn[xi],Ei=mi(Si);$i.push(pi=Ei),si.push(li(qn[xi]))}const ti={stroke:e($i,si,oi,fi,ei,Xn),fill:null,clip:null,band:null,gaps:null,flags:vo},ai=ti.stroke;let[vi,wi]=Hu(kn,Wn);if(Qn.fill!=null||vi!=0){let xi=ti.fill=new Path2D(ai),Si=Qn.fillTo(kn,Wn,Qn.min,Qn.max,vi),Ei=li(Si);fi(xi,pi,Ei),fi(xi,yi,Ei)}if(!Qn.spanGaps){let xi=[];xi.push(...Uu(Hn,qn,zn,Kn,gi,mi,_n)),ti.gaps=xi=Qn.gaps(kn,Wn,zn,Kn,xi),ti.clip=el(xi,Nn.ori,Ln,Pn,Zn,Jn)}return wi!=0&&(ti.band=wi==2?[Ui(kn,Wn,zn,Kn,ai,-1),Ui(kn,Wn,zn,Kn,ai,1)]:Ui(kn,Wn,zn,Kn,ai,wi)),ti})}function WS(e){return FS(PS,e)}function PS(e,vn,_n,kn,Wn,zn){const Kn=e.length;if(Kn<2)return null;const Qn=new Path2D;if(_n(Qn,e[0],vn[0]),Kn==2)kn(Qn,e[1],vn[1]);else{let Hn=Array(Kn),qn=Array(Kn-1),Nn=Array(Kn-1),Dn=Array(Kn-1);for(let In=0;In<Kn-1;In++)Nn[In]=vn[In+1]-vn[In],Dn[In]=e[In+1]-e[In],qn[In]=Nn[In]/Dn[In];Hn[0]=qn[0];for(let In=1;In<Kn-1;In++)qn[In]===0||qn[In-1]===0||qn[In-1]>0!=qn[In]>0?Hn[In]=0:(Hn[In]=3*(Dn[In-1]+Dn[In])/((2*Dn[In]+Dn[In-1])/qn[In-1]+(Dn[In]+2*Dn[In-1])/qn[In]),isFinite(Hn[In])||(Hn[In]=0));Hn[Kn-1]=qn[Kn-2];for(let In=0;In<Kn-1;In++)Wn(Qn,e[In]+Dn[In]/3,vn[In]+Hn[In]*Dn[In]/3,e[In+1]-Dn[In]/3,vn[In+1]-Hn[In+1]*Dn[In]/3,e[In+1],vn[In+1])}return Qn}const Su=new Set;function qf(){for(let e of Su)e.syncRect(!0)}bo&&(Nr(w_,ho,qf),Nr(b_,ho,qf,!0),Nr(Ba,ho,()=>{$n.pxRatio=dt$1}));const BS=Eg(),zS=Lg();function Yf(e,vn,_n,kn){return(kn?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((Wn,zn)=>ku(Wn,zn,vn,_n))}function HS(e,vn){return e.map((_n,kn)=>kn==0?{}:Zt$1({},vn,_n))}function ku(e,vn,_n,kn){return Zt$1({},vn==0?_n:kn,e)}function Ig(e,vn,_n){return vn==null?go:[vn,_n]}const US=Ig;function VS(e,vn,_n){return vn==null?go:za(vn,_n,Du,!0)}function Og(e,vn,_n,kn){return vn==null?go:Qa(vn,_n,e.scales[kn].log,!1)}const jS=Og;function Dg(e,vn,_n,kn){return vn==null?go:Ou(vn,_n,e.scales[kn].log,!1)}const GS=Dg;function KS(e,vn,_n,kn,Wn){let zn=xn$1($f(e),$f(vn)),Kn=vn-e,Qn=hi(Wn/kn*Kn,_n);do{let Hn=_n[Qn],qn=kn*Hn/Kn;if(qn>=Wn&&zn+(Hn<5?dr.get(Hn):0)<=17)return[Hn,qn]}while(++Qn<_n.length);return[0,0]}function Zf(e){let vn,_n;return e=e.replace(/(\d+)px/,(kn,Wn)=>(vn=sn$1((_n=+Wn)*dt$1))+"px"),[e,vn,_n]}function qS(e){e.show&&[e.font,e.labelFont].forEach(vn=>{let _n=Ct$1(vn[2]*dt$1,1);vn[0]=vn[0].replace(/[0-9.]+px/,_n+"px"),vn[1]=_n})}function $n(e,vn,_n){const kn={mode:ht$1(e.mode,1)},Wn=kn.mode;function zn(_i,Mi){return((Mi.distr==3?Hi(_i>0?_i:Mi.clamp(kn,_i,Mi.min,Mi.max,Mi.key)):Mi.distr==4?Cc(_i,Mi.asinh):Mi.distr==100?Mi.fwd(_i):_i)-Mi._min)/(Mi._max-Mi._min)}function Kn(_i,Mi,Di,Oi){let Wi=zn(_i,Mi);return Oi+Di*(Mi.dir==-1?1-Wi:Wi)}function Qn(_i,Mi,Di,Oi){let Wi=zn(_i,Mi);return Oi+Di*(Mi.dir==-1?Wi:1-Wi)}function Hn(_i,Mi,Di,Oi){return Mi.ori==0?Kn(_i,Mi,Di,Oi):Qn(_i,Mi,Di,Oi)}kn.valToPosH=Kn,kn.valToPosV=Qn;let qn=!1;kn.status=0;const Nn=kn.root=ni(t_);if(e.id!=null&&(Nn.id=e.id),Un(Nn,e.class),e.title){let _i=ni(r_,Nn);_i.textContent=e.title}const Dn=ui("canvas"),In=kn.ctx=Dn.getContext("2d"),Bn=ni(o_,Nn);Nr("click",Bn,_i=>{_i.target===Pn&&(Vr!=El||Fo!=Ll)&&ls.click(kn,_i)},!0);const Ln=kn.under=ni(s_,Bn);Bn.appendChild(Dn);const Pn=kn.over=ni(a_,Bn);e=mo(e);const Zn=+ht$1(e.pxAlign,1),Jn=Gf(Zn);(e.plugins||[]).forEach(_i=>{_i.opts&&(e=_i.opts(kn,e)||e)});const Xn=e.ms||.001,mi=kn.series=Wn==1?Yf(e.series||[],Pf,Vf,!1):HS(e.series||[null],Uf),li=kn.axes=Yf(e.axes||[],Wf,zf,!0),oi=kn.scales={},ei=kn.bands=e.bands||[];ei.forEach(_i=>{_i.fill=lt$1(_i.fill||null),_i.dir=ht$1(_i.dir,-1)});const fi=Wn==2?mi[1].facets[0].scale:mi[0].scale,gi={axes:om,series:Xh},yi=(e.drawOrder||["axes","series"]).map(_i=>gi[_i]);function pi(_i){let Mi=oi[_i];if(Mi==null){let Di=(e.scales||bs)[_i]||bs;if(Di.from!=null)pi(Di.from),oi[_i]=Zt$1({},oi[Di.from],Di,{key:_i});else{Mi=oi[_i]=Zt$1({},_i==fi?Sg:LS,Di),Mi.key=_i;let Oi=Mi.time,Wi=Mi.range,Yi=ur(Wi);if((_i!=fi||Wn==2&&!Oi)&&(Yi&&(Wi[0]==null||Wi[1]==null)&&(Wi={min:Wi[0]==null?kf:{mode:1,hard:Wi[0],soft:Wi[0]},max:Wi[1]==null?kf:{mode:1,hard:Wi[1],soft:Wi[1]}},Yi=!1),!Yi&&Ja(Wi))){let Xi=Wi;Wi=(fr,mr,vr)=>mr==null?go:za(mr,vr,Xi)}Mi.range=lt$1(Wi||(Oi?US:_i==fi?Mi.distr==3?jS:Mi.distr==4?GS:Ig:Mi.distr==3?Og:Mi.distr==4?Dg:VS)),Mi.auto=lt$1(Yi?!1:Mi.auto),Mi.clamp=lt$1(Mi.clamp||MS),Mi._min=Mi._max=null}}}pi("x"),pi("y"),Wn==1&&mi.forEach(_i=>{pi(_i.scale)}),li.forEach(_i=>{pi(_i.scale)});for(let _i in e.scales)pi(_i);const $i=oi[fi],si=$i.distr;let ti,ai;$i.ori==0?(Un(Nn,n_),ti=Kn,ai=Qn):(Un(Nn,i_),ti=Qn,ai=Kn);const vi={};for(let _i in oi){let Mi=oi[_i];(Mi.min!=null||Mi.max!=null)&&(vi[_i]={min:Mi.min,max:Mi.max},Mi.min=Mi.max=null)}const wi=e.tzDate||(_i=>new Date(sn$1(_i/Xn))),xi=e.fmtDate||Wu,Si=Xn==1?nS(wi):oS(wi),Ei=Df(wi,Of(Xn==1?tS:rS,xi)),Ni=Ff(wi,Nf(aS,xi)),Ri=[],Fi=kn.legend=Zt$1({},uS,e.legend),Ii=Fi.show,Bi=Fi.markers;Fi.idxs=Ri,Bi.width=lt$1(Bi.width),Bi.dash=lt$1(Bi.dash),Bi.stroke=lt$1(Bi.stroke),Bi.fill=lt$1(Bi.fill);let Gi,Pi,Zi,lr=[],gr=[],or,yr=!1,io={};if(Fi.live){const _i=mi[1]?mi[1].values:null;yr=_i!=null,or=yr?_i(kn,1,0):{_:0};for(let Mi in or)io[Mi]=Eu}if(Ii)if(Gi=ui("table",f_,Nn),Zi=ui("tbody",null,Gi),Fi.mount(kn,Gi),yr){Pi=ui("thead",null,Gi,Zi);let _i=ui("tr",null,Pi);ui("th",null,_i);for(var Po in or)ui("th",uf,_i).textContent=Po}else Un(Gi,g_),Fi.live&&Un(Gi,p_);const lo={show:!0},So={show:!1};function Xo(_i,Mi){if(Mi==0&&(yr||!Fi.live||Wn==2))return go;let Di=[],Oi=ui("tr",m_,Zi,Zi.childNodes[Mi]);Un(Oi,_i.class),_i.show||Un(Oi,Ir);let Wi=ui("th",null,Oi);if(Bi.show){let fr=ni(v_,Wi);if(Mi>0){let mr=Bi.width(kn,Mi);mr&&(fr.style.border=mr+"px "+Bi.dash(kn,Mi)+" "+Bi.stroke(kn,Mi)),fr.style.background=Bi.fill(kn,Mi)}}let Yi=ni(uf,Wi);Yi.textContent=_i.label,Mi>0&&(Bi.show||(Yi.style.color=_i.width>0?Bi.stroke(kn,Mi):Bi.fill(kn,Mi)),Uo("click",Wi,fr=>{if(Ar._lock)return;sl(fr);let mr=mi.indexOf(_i);if((fr.ctrlKey||fr.metaKey)!=Fi.isolate){let vr=mi.some((br,_r)=>_r>0&&_r!=mr&&br.show);mi.forEach((br,_r)=>{_r>0&&As(_r,vr?_r==mr?lo:So:lo,!0,Go.setSeries)})}else As(mr,{show:!_i.show},!0,Go.setSeries)},!1),wa&&Uo(gf,Wi,fr=>{Ar._lock||(sl(fr),As(mi.indexOf(_i),ul,!0,Go.setSeries))},!1));for(var Xi in or){let fr=ui("td",y_,Oi);fr.textContent="--",Di.push(fr)}return[Oi,Di]}const Do=new Map;function Uo(_i,Mi,Di,Oi=!0){const Wi=Do.get(Mi)||{},Yi=Ar.bind[_i](kn,Mi,Di,Oi);Yi&&(Nr(_i,Mi,Wi[_i]=Yi),Do.set(Mi,Wi))}function va(_i,Mi,Di){const Oi=Do.get(Mi)||{};for(let Wi in Oi)(_i==null||Wi==_i)&&(yu(Wi,Mi,Oi[Wi]),delete Oi[Wi]);_i==null&&Do.delete(Mi)}let ss=0,Ko=0,Mr=0,Br=0,Zo=0,Hr=0,Ji=Zo,xr=Hr,kr=Mr,Gr=Br,Yr=0,$o=0,ko=0,oo=0;kn.bbox={};let so=!1,eo=!1,Ho=!1,Ns=!1,ol=!1,js=!1;function lh(_i,Mi,Di){(Di||_i!=kn.width||Mi!=kn.height)&&ch(_i,Mi),ll(!1),Ho=!0,eo=!0,Ml()}function ch(_i,Mi){kn.width=ss=Mr=_i,kn.height=Ko=Br=Mi,Zo=Hr=0,em(),tm();let Di=kn.bbox;Yr=Di.left=Rr(Zo*dt$1,.5),$o=Di.top=Rr(Hr*dt$1,.5),ko=Di.width=Rr(Mr*dt$1,.5),oo=Di.height=Rr(Br*dt$1,.5)}const qh=3;function Jg(){let _i=!1,Mi=0;for(;!_i;){Mi++;let Di=nd(Mi),Oi=id(Mi);_i=Mi==qh||Di&&Oi,_i||(ch(kn.width,kn.height),eo=!0)}}function Xg({width:_i,height:Mi}){lh(_i,Mi)}kn.setSize=Xg;function em(){let _i=!1,Mi=!1,Di=!1,Oi=!1;li.forEach((Wi,Yi)=>{if(Wi.show&&Wi._show){let{side:Xi,_size:fr}=Wi,mr=Xi%2,vr=Wi.label!=null?Wi.labelSize:0,br=fr+vr;br>0&&(mr?(Mr-=br,Xi==3?(Zo+=br,Oi=!0):Di=!0):(Br-=br,Xi==0?(Hr+=br,_i=!0):Mi=!0))}}),al[0]=_i,al[1]=Di,al[2]=Mi,al[3]=Oi,Mr-=ba[1]+ba[3],Zo+=ba[3],Br-=ba[2]+ba[0],Hr+=ba[0]}function tm(){let _i=Zo+Mr,Mi=Hr+Br,Di=Zo,Oi=Hr;function Wi(Yi,Xi){switch(Yi){case 1:return _i+=Xi,_i-Xi;case 2:return Mi+=Xi,Mi-Xi;case 3:return Di-=Xi,Di+Xi;case 0:return Oi-=Xi,Oi+Xi}}li.forEach((Yi,Xi)=>{if(Yi.show&&Yi._show){let fr=Yi.side;Yi._pos=Wi(fr,Yi._size),Yi.label!=null&&(Yi._lpos=Wi(fr,Yi.labelSize))}})}const Ar=kn.cursor=Zt$1({},mS,{drag:{y:Wn==2}},e.cursor);if(Ar.dataIdx==null){let _i=Ar.hover,Mi=_i.skip=new Set(_i.skip??[]);Mi.add(void 0);let Di=_i.prox=lt$1(_i.prox),Oi=_i.bias??(_i.bias=0);Ar.dataIdx=(Wi,Yi,Xi,fr)=>{if(Yi==0)return Xi;let mr=Xi,vr=Di(Wi,Yi,Xi,fr)??ct$1,br=vr>=0&&vr<ct$1,_r=$i.ori==0?Mr:Br,Kr=Ar.left,No=vn[0],to=vn[Yi];if(Mi.has(to[Xi])){mr=null;let qr=null,Qr=null,Sr;if(Oi==0||Oi==-1)for(Sr=Xi;qr==null&&Sr-- >0;)Mi.has(to[Sr])||(qr=Sr);if(Oi==0||Oi==1)for(Sr=Xi;Qr==null&&Sr++<to.length;)Mi.has(to[Sr])||(Qr=Sr);if(qr!=null||Qr!=null)if(br){let Ao=qr==null?-1/0:ti(No[qr],$i,_r,0),qo=Qr==null?1/0:ti(No[Qr],$i,_r,0),jo=Kr-Ao,Vo=qo-Kr;jo<=Vo?jo<=vr&&(mr=qr):Vo<=vr&&(mr=Qr)}else mr=Qr==null?qr:qr==null?Qr:Xi-qr<=Qr-Xi?qr:Qr}else br&&an$1(Kr-ti(No[Xi],$i,_r,0))>vr&&(mr=null);return mr}}const sl=_i=>{Ar.event=_i};Ar.idxs=Ri,Ar._lock=!1;let Ms=Ar.points;Ms.show=lt$1(Ms.show),Ms.size=lt$1(Ms.size),Ms.stroke=lt$1(Ms.stroke),Ms.width=lt$1(Ms.width),Ms.fill=lt$1(Ms.fill);const ya=kn.focus=Zt$1({},e.focus||{alpha:.3},Ar.focus),wa=ya.prox>=0,$l=wa&&Ms.one;let Rs=[],xl=[],_l=[];function Yh(_i,Mi){let Di=Ms.show(kn,Mi);if(Di)return Un(Di,d_),Un(Di,_i.class),Ci(Di,-10,-10,Mr,Br),Pn.insertBefore(Di,Rs[Mi]),Di}function Kh(_i,Mi){if(Wn==1||Mi>0){let Di=Wn==1&&oi[_i.scale].time,Oi=_i.value;_i.value=Di?Lf(Oi)?Ff(wi,Nf(Oi,xi)):Oi||Ni:Oi||AS,_i.label=_i.label||(Di?yS:vS)}if($l||Mi>0){_i.width=_i.width==null?1:_i.width,_i.paths=_i.paths||BS||L_,_i.fillTo=lt$1(_i.fillTo||RS),_i.pxAlign=+ht$1(_i.pxAlign,Zn),_i.pxRound=Gf(_i.pxAlign),_i.stroke=lt$1(_i.stroke||null),_i.fill=lt$1(_i.fill||null),_i._stroke=_i._fill=_i._paths=_i._focus=null;let Di=$S(xn$1(1,_i.width),1),Oi=_i.points=Zt$1({},{size:Di,width:xn$1(1,Di*.2),stroke:_i.stroke,space:Di*2,paths:zS,_stroke:null,_fill:null},_i.points);Oi.show=lt$1(Oi.show),Oi.filter=lt$1(Oi.filter),Oi.fill=lt$1(Oi.fill),Oi.stroke=lt$1(Oi.stroke),Oi.paths=lt$1(Oi.paths),Oi.pxAlign=_i.pxAlign}if(Ii){let Di=Xo(_i,Mi);lr.splice(Mi,0,Di[0]),gr.splice(Mi,0,Di[1]),Fi.values.push(null)}if(Ar.show){Ri.splice(Mi,0,null);let Di=null;$l?Mi==0&&(Di=Yh(_i,Mi)):Mi>0&&(Di=Yh(_i,Mi)),Rs.splice(Mi,0,Di),xl.splice(Mi,0,0),_l.splice(Mi,0,0)}Qo("addSeries",Mi)}function nm(_i,Mi){Mi=Mi??mi.length,_i=Wn==1?ku(_i,Mi,Pf,Vf):ku(_i,Mi,{},Uf),mi.splice(Mi,0,_i),Kh(mi[Mi],Mi)}kn.addSeries=nm;function im(_i){if(mi.splice(_i,1),Ii){Fi.values.splice(_i,1),gr.splice(_i,1);let Mi=lr.splice(_i,1)[0];va(null,Mi.firstChild),Mi.remove()}Ar.show&&(Ri.splice(_i,1),Rs.splice(_i,1)[0].remove(),xl.splice(_i,1),_l.splice(_i,1)),Qo("delSeries",_i)}kn.delSeries=im;const al=[!1,!1,!1,!1];function rm(_i,Mi){if(_i._show=_i.show,_i.show){let Di=_i.side%2,Oi=oi[_i.scale];Oi==null&&(_i.scale=Di?mi[1].scale:fi,Oi=oi[_i.scale]);let Wi=Oi.time;_i.size=lt$1(_i.size),_i.space=lt$1(_i.space),_i.rotate=lt$1(_i.rotate),ur(_i.incrs)&&_i.incrs.forEach(Xi=>{!dr.has(Xi)&&dr.set(Xi,rg(Xi))}),_i.incrs=lt$1(_i.incrs||(Oi.distr==2?X_:Wi?Xn==1?eS:iS:Er)),_i.splits=lt$1(_i.splits||(Wi&&Oi.distr==1?Si:Oi.distr==3?bu:Oi.distr==4?xS:bS)),_i.stroke=lt$1(_i.stroke),_i.grid.stroke=lt$1(_i.grid.stroke),_i.ticks.stroke=lt$1(_i.ticks.stroke),_i.border.stroke=lt$1(_i.border.stroke);let Yi=_i.values;_i.values=ur(Yi)&&!ur(Yi[0])?lt$1(Yi):Wi?ur(Yi)?Df(wi,Of(Yi,xi)):Lf(Yi)?sS(wi,Yi):Yi||Ei:Yi||wS,_i.filter=lt$1(_i.filter||(Oi.distr>=3&&Oi.log==10?kS:Oi.distr==3&&Oi.log==2?CS:ng)),_i.font=Zf(_i.font),_i.labelFont=Zf(_i.labelFont),_i._size=_i.size(kn,null,Mi,0),_i._space=_i._rotate=_i._incrs=_i._found=_i._splits=_i._values=null,_i._size>0&&(al[Mi]=!0,_i._el=ni(l_,Bn))}}function kl(_i,Mi,Di,Oi){let[Wi,Yi,Xi,fr]=Di,mr=Mi%2,vr=0;return mr==0&&(fr||Yi)&&(vr=Mi==0&&!Wi||Mi==2&&!Xi?sn$1(Wf.size/3):0),mr==1&&(Wi||Xi)&&(vr=Mi==1&&!Yi||Mi==3&&!fr?sn$1(zf.size/2):0),vr}const Zh=kn.padding=(e.padding||[kl,kl,kl,kl]).map(_i=>lt$1(ht$1(_i,kl))),ba=kn._padding=Zh.map((_i,Mi)=>_i(kn,Mi,al,0));let as,ns=null,is=null;const rc=Wn==1?mi[0].idxs:null;let Is=null,zl=!1;function Hl(_i,Mi){if(vn=_i??[],kn.data=kn._data=vn,Wn==2){as=0;for(let Di=1;Di<mi.length;Di++)as+=vn[Di][0].length}else{vn.length==0&&(kn.data=kn._data=vn=[[]]),Is=vn[0],as=Is.length;let Di=vn;if(si==2){Di=vn.slice();let Oi=Di[0]=Array(as);for(let Wi=0;Wi<as;Wi++)Oi[Wi]=Wi}kn._data=vn=Di}if(ll(!0),Qo("setData"),si==2&&(Ho=!0),Mi!==!1){let Di=$i;Di.auto(kn,zl)?uh():ra(fi,Di.min,Di.max),Ns=Ns||Ar.left>=0,js=!0,Ml()}}kn.setData=Hl;function uh(){zl=!0;let _i,Mi;Wn==1&&(as>0?(ns=rc[0]=0,is=rc[1]=as-1,_i=vn[0][ns],Mi=vn[0][is],si==2?(_i=ns,Mi=is):_i==Mi&&(si==3?[_i,Mi]=Qa(_i,_i,$i.log,!1):si==4?[_i,Mi]=Ou(_i,_i,$i.log,!1):$i.time?Mi=_i+sn$1(86400/Xn):[_i,Mi]=za(_i,Mi,Du,!0))):(ns=rc[0]=_i=null,is=rc[1]=Mi=null)),ra(fi,_i,Mi)}let oc,Sl,sc,ac,lc,hh,dh,ph,gh,ia;function fh(_i,Mi,Di,Oi,Wi,Yi){_i??(_i=df),Di??(Di=Fu),Oi??(Oi="butt"),Wi??(Wi=df),Yi??(Yi="round"),_i!=oc&&(In.strokeStyle=oc=_i),Wi!=Sl&&(In.fillStyle=Sl=Wi),Mi!=sc&&(In.lineWidth=sc=Mi),Yi!=lc&&(In.lineJoin=lc=Yi),Oi!=hh&&(In.lineCap=hh=Oi),Di!=ac&&In.setLineDash(ac=Di)}function mh(_i,Mi,Di,Oi){Mi!=Sl&&(In.fillStyle=Sl=Mi),_i!=dh&&(In.font=dh=_i),Di!=ph&&(In.textAlign=ph=Di),Oi!=gh&&(In.textBaseline=gh=Oi)}function Wl(_i,Mi,Di,Oi,Wi=0){if(Oi.length>0&&_i.auto(kn,zl)&&(Mi==null||Mi.min==null)){let Yi=ht$1(ns,0),Xi=ht$1(is,Oi.length-1),fr=Di.min==null?_i.distr==3?k_(Oi,Yi,Xi):S_(Oi,Yi,Xi,Wi):[Di.min,Di.max];_i.min=ri(_i.min,Di.min=fr[0]),_i.max=xn$1(_i.max,Di.max=fr[1])}}const Qh={min:null,max:null};function Jh(){for(let Oi in oi){let Wi=oi[Oi];vi[Oi]==null&&(Wi.min==null||vi[fi]!=null&&Wi.auto(kn,zl))&&(vi[Oi]=Qh)}for(let Oi in oi){let Wi=oi[Oi];vi[Oi]==null&&Wi.from!=null&&vi[Wi.from]!=null&&(vi[Oi]=Qh)}vi[fi]!=null&&ll(!0);let _i={};for(let Oi in vi){let Wi=vi[Oi];if(Wi!=null){let Yi=_i[Oi]=mo(oi[Oi],I_);if(Wi.min!=null)Zt$1(Yi,Wi);else if(Oi!=fi||Wn==2)if(as==0&&Yi.from==null){let Xi=Yi.range(kn,null,null,Oi);Yi.min=Xi[0],Yi.max=Xi[1]}else Yi.min=ct$1,Yi.max=-ct$1}}if(as>0){mi.forEach((Oi,Wi)=>{if(Wn==1){let Yi=Oi.scale,Xi=vi[Yi];if(Xi==null)return;let fr=_i[Yi];if(Wi==0){let mr=fr.range(kn,fr.min,fr.max,Yi);fr.min=mr[0],fr.max=mr[1],ns=hi(fr.min,vn[0]),is=hi(fr.max,vn[0]),is-ns>1&&(vn[0][ns]<fr.min&&ns++,vn[0][is]>fr.max&&is--),Oi.min=Is[ns],Oi.max=Is[is]}else Oi.show&&Oi.auto&&Wl(fr,Xi,Oi,vn[Wi],Oi.sorted);Oi.idxs[0]=ns,Oi.idxs[1]=is}else if(Wi>0&&Oi.show&&Oi.auto){let[Yi,Xi]=Oi.facets,fr=Yi.scale,mr=Xi.scale,[vr,br]=vn[Wi],_r=_i[fr],Kr=_i[mr];_r!=null&&Wl(_r,vi[fr],Yi,vr,Yi.sorted),Kr!=null&&Wl(Kr,vi[mr],Xi,br,Xi.sorted),Oi.min=Xi.min,Oi.max=Xi.max}});for(let Oi in _i){let Wi=_i[Oi],Yi=vi[Oi];if(Wi.from==null&&(Yi==null||Yi.min==null)){let Xi=Wi.range(kn,Wi.min==ct$1?null:Wi.min,Wi.max==-ct$1?null:Wi.max,Oi);Wi.min=Xi[0],Wi.max=Xi[1]}}}for(let Oi in _i){let Wi=_i[Oi];if(Wi.from!=null){let Yi=_i[Wi.from];if(Yi.min==null)Wi.min=Wi.max=null;else{let Xi=Wi.range(kn,Yi.min,Yi.max,Oi);Wi.min=Xi[0],Wi.max=Xi[1]}}}let Mi={},Di=!1;for(let Oi in _i){let Wi=_i[Oi],Yi=oi[Oi];if(Yi.min!=Wi.min||Yi.max!=Wi.max){Yi.min=Wi.min,Yi.max=Wi.max;let Xi=Yi.distr;Yi._min=Xi==3?Hi(Yi.min):Xi==4?Cc(Yi.min,Yi.asinh):Xi==100?Yi.fwd(Yi.min):Yi.min,Yi._max=Xi==3?Hi(Yi.max):Xi==4?Cc(Yi.max,Yi.asinh):Xi==100?Yi.fwd(Yi.max):Yi.max,Mi[Oi]=Di=!0}}if(Di){mi.forEach((Oi,Wi)=>{Wn==2?Wi>0&&Mi.y&&(Oi._paths=null):Mi[Oi.scale]&&(Oi._paths=null)});for(let Oi in Mi)Ho=!0,Qo("setScale",Oi);Ar.show&&Ar.left>=0&&(Ns=js=!0)}for(let Oi in vi)vi[Oi]=null}function cc(_i){let Mi=wu(ns-1,0,as-1),Di=wu(is+1,0,as-1);for(;_i[Mi]==null&&Mi>0;)Mi--;for(;_i[Di]==null&&Di<as-1;)Di++;return[Mi,Di]}function Xh(){as>0&&(mi.forEach((_i,Mi)=>{if(Mi>0&&_i.show&&(ed(Mi,!1),ed(Mi,!0),_i._paths==null)){ia!=_i.alpha&&(In.globalAlpha=ia=_i.alpha);let Di=Wn==2?[0,vn[Mi][0].length-1]:cc(vn[Mi]);_i._paths=_i.paths(kn,Mi,Di[0],Di[1]),ia!=1&&(In.globalAlpha=ia=1)}}),mi.forEach((_i,Mi)=>{if(Mi>0&&_i.show){ia!=_i.alpha&&(In.globalAlpha=ia=_i.alpha),_i._paths!=null&&vh(Mi,!1);{let Di=_i._paths!=null?_i._paths.gaps:null,Oi=_i.points.show(kn,Mi,ns,is,Di),Wi=_i.points.filter(kn,Mi,Oi,Di);(Oi||Wi)&&(_i.points._paths=_i.points.paths(kn,Mi,ns,is,Wi),vh(Mi,!0))}ia!=1&&(In.globalAlpha=ia=1),Qo("drawSeries",Mi)}}))}function ed(_i,Mi){let Di=Mi?mi[_i].points:mi[_i];Di._stroke=Di.stroke(kn,_i),Di._fill=Di.fill(kn,_i)}function vh(_i,Mi){let Di=Mi?mi[_i].points:mi[_i],{stroke:Oi,fill:Wi,clip:Yi,flags:Xi,_stroke:fr=Di._stroke,_fill:mr=Di._fill,_width:vr=Di.width}=Di._paths;vr=Ct$1(vr*dt$1,3);let br=null,_r=vr%2/2;Mi&&mr==null&&(mr=vr>0?"#fff":fr);let Kr=Di.pxAlign==1&&_r>0;if(Kr&&In.translate(_r,_r),!Mi){let No=Yr-vr/2,to=$o-vr/2,qr=ko+vr,Qr=oo+vr;br=new Path2D,br.rect(No,to,qr,Qr)}Mi?yh(fr,vr,Di.dash,Di.cap,mr,Oi,Wi,Xi,Yi):td(_i,fr,vr,Di.dash,Di.cap,mr,Oi,Wi,Xi,br,Yi),Kr&&In.translate(-_r,-_r)}function td(_i,Mi,Di,Oi,Wi,Yi,Xi,fr,mr,vr,br){let _r=!1;mr!=0&&ei.forEach((Kr,No)=>{if(Kr.series[0]==_i){let to=mi[Kr.series[1]],qr=vn[Kr.series[1]],Qr=(to._paths||bs).band;ur(Qr)&&(Qr=Kr.dir==1?Qr[0]:Qr[1]);let Sr,Ao=null;to.show&&Qr&&A_(qr,ns,is)?(Ao=Kr.fill(kn,No)||Yi,Sr=to._paths.clip):Qr=null,yh(Mi,Di,Oi,Wi,Ao,Xi,fr,mr,vr,br,Sr,Qr),_r=!0}}),_r||yh(Mi,Di,Oi,Wi,Yi,Xi,fr,mr,vr,br)}const Gu=vo|_u;function yh(_i,Mi,Di,Oi,Wi,Yi,Xi,fr,mr,vr,br,_r){fh(_i,Mi,Di,Oi,Wi),(mr||vr||_r)&&(In.save(),mr&&In.clip(mr),vr&&In.clip(vr)),_r?(fr&Gu)==Gu?(In.clip(_r),br&&In.clip(br),Cl(Wi,Xi),jl(_i,Yi,Mi)):fr&_u?(Cl(Wi,Xi),In.clip(_r),jl(_i,Yi,Mi)):fr&vo&&(In.save(),In.clip(_r),br&&In.clip(br),Cl(Wi,Xi),In.restore(),jl(_i,Yi,Mi)):(Cl(Wi,Xi),jl(_i,Yi,Mi)),(mr||vr||_r)&&In.restore()}function jl(_i,Mi,Di){Di>0&&(Mi instanceof Map?Mi.forEach((Oi,Wi)=>{In.strokeStyle=oc=Wi,In.stroke(Oi)}):Mi!=null&&_i&&In.stroke(Mi))}function Cl(_i,Mi){Mi instanceof Map?Mi.forEach((Di,Oi)=>{In.fillStyle=Sl=Oi,In.fill(Di)}):Mi!=null&&_i&&In.fill(Mi)}function wh(_i,Mi,Di,Oi){let Wi=li[_i],Yi;if(Oi<=0)Yi=[0,0];else{let Xi=Wi._space=Wi.space(kn,_i,Mi,Di,Oi),fr=Wi._incrs=Wi.incrs(kn,_i,Mi,Di,Oi,Xi);Yi=KS(Mi,Di,fr,Oi,Xi)}return Wi._found=Yi}function $a(_i,Mi,Di,Oi,Wi,Yi,Xi,fr,mr,vr){let br=Xi%2/2;Zn==1&&In.translate(br,br),fh(fr,Xi,mr,vr,fr),In.beginPath();let _r,Kr,No,to,qr=Wi+(Oi==0||Oi==3?-Yi:Yi);Di==0?(Kr=Wi,to=qr):(_r=Wi,No=qr);for(let Qr=0;Qr<_i.length;Qr++)Mi[Qr]!=null&&(Di==0?_r=No=_i[Qr]:Kr=to=_i[Qr],In.moveTo(_r,Kr),In.lineTo(No,to));In.stroke(),Zn==1&&In.translate(-br,-br)}function nd(_i){let Mi=!0;return li.forEach((Di,Oi)=>{if(!Di.show)return;let Wi=oi[Di.scale];if(Wi.min==null){Di._show&&(Mi=!1,Di._show=!1,ll(!1));return}else Di._show||(Mi=!1,Di._show=!0,ll(!1));let Yi=Di.side,Xi=Yi%2,{min:fr,max:mr}=Wi,[vr,br]=wh(Oi,fr,mr,Xi==0?Mr:Br);if(br==0)return;let _r=Wi.distr==2,Kr=Di._splits=Di.splits(kn,Oi,fr,mr,vr,br,_r),No=Wi.distr==2?Kr.map(Sr=>Is[Sr]):Kr,to=Wi.distr==2?Is[Kr[1]]-Is[Kr[0]]:vr,qr=Di._values=Di.values(kn,Di.filter(kn,No,Oi,br,to),Oi,br,to);Di._rotate=Yi==2?Di.rotate(kn,qr,Oi,br):0;let Qr=Di._size;Di._size=ii(Di.size(kn,qr,Oi,_i)),Qr!=null&&Di._size!=Qr&&(Mi=!1)}),Mi}function id(_i){let Mi=!0;return Zh.forEach((Di,Oi)=>{let Wi=Di(kn,Oi,al,_i);Wi!=ba[Oi]&&(Mi=!1),ba[Oi]=Wi}),Mi}function om(){for(let _i=0;_i<li.length;_i++){let Mi=li[_i];if(!Mi.show||!Mi._show)continue;let Di=Mi.side,Oi=Di%2,Wi,Yi,Xi=Mi.stroke(kn,_i),fr=Di==0||Di==3?-1:1;if(Mi.label){let $s=Mi.labelGap*fr,Fs=sn$1((Mi._lpos+$s)*dt$1);mh(Mi.labelFont[0],Xi,"center",Di==2?ds:hf),In.save(),Oi==1?(Wi=Yi=0,In.translate(Fs,sn$1($o+oo/2)),In.rotate((Di==3?-Fa:Fa)/2)):(Wi=sn$1(Yr+ko/2),Yi=Fs),In.fillText(Mi.label,Wi,Yi),In.restore()}let[mr,vr]=Mi._found;if(vr==0)continue;let br=oi[Mi.scale],_r=Oi==0?ko:oo,Kr=Oi==0?Yr:$o,No=sn$1(Mi.gap*dt$1),to=Mi._splits,qr=br.distr==2?to.map($s=>Is[$s]):to,Qr=br.distr==2?Is[to[1]]-Is[to[0]]:mr,Sr=Mi.ticks,Ao=Mi.border,qo=Sr.show?sn$1(Sr.size*dt$1):0,jo=Mi._rotate*-Fa/180,Vo=Jn(Mi._pos*dt$1),Bo=(qo+No)*fr,ji=Vo+Bo;Yi=Oi==0?ji:0,Wi=Oi==1?ji:0;let Qi=Mi.font[0],Ki=Mi.align==1?co:Mi.align==2?Sc:jo>0?co:jo<0?Sc:Oi==0?"center":Di==3?Sc:co,wr=jo||Oi==1?"middle":Di==2?ds:hf;mh(Qi,Xi,Ki,wr);let Tr=Mi.font[1]*Mi.lineGap,Zr=to.map($s=>Jn(Hn($s,br,_r,Kr))),Eo=Mi._values;for(let $s=0;$s<Eo.length;$s++){let Fs=Eo[$s];if(Fs!=null){Oi==0?Wi=Zr[$s]:Yi=Zr[$s],Fs=""+Fs;let Cs=Fs.indexOf(`
|
1413
|
+
`)==-1?[Fs]:Fs.split(/\n/gm);for(let Js=0;Js<Cs.length;Js++){let qs=Cs[Js];jo?(In.save(),In.translate(Wi,Yi+Js*Tr),In.rotate(jo),In.fillText(qs,0,0),In.restore()):In.fillText(qs,Wi,Yi+Js*Tr)}}}Sr.show&&$a(Zr,Sr.filter(kn,qr,_i,vr,Qr),Oi,Di,Vo,qo,Ct$1(Sr.width*dt$1,3),Sr.stroke(kn,_i),Sr.dash,Sr.cap);let Jr=Mi.grid;Jr.show&&$a(Zr,Jr.filter(kn,qr,_i,vr,Qr),Oi,Oi==0?2:1,Oi==0?$o:Yr,Oi==0?oo:ko,Ct$1(Jr.width*dt$1,3),Jr.stroke(kn,_i),Jr.dash,Jr.cap),Ao.show&&$a([Vo],[1],Oi==0?1:0,Oi==0?1:2,Oi==1?$o:Yr,Oi==1?oo:ko,Ct$1(Ao.width*dt$1,3),Ao.stroke(kn,_i),Ao.dash,Ao.cap)}Qo("drawAxes")}function ll(_i){mi.forEach((Mi,Di)=>{Di>0&&(Mi._paths=null,_i&&(Wn==1?(Mi.min=null,Mi.max=null):Mi.facets.forEach(Oi=>{Oi.min=null,Oi.max=null})))})}let Ul=!1,qu=!1,Tl=[];function sm(){qu=!1;for(let _i=0;_i<Tl.length;_i++)Qo(...Tl[_i]);Tl.length=0}function Ml(){Ul||(B_(bh),Ul=!0)}function am(_i,Mi=!1){Ul=!0,qu=Mi,_i(kn),bh(),Mi&&Tl.length>0&&queueMicrotask(sm)}kn.batch=am;function bh(){if(so&&(Jh(),so=!1),Ho&&(Jg(),Ho=!1),eo){if(Lt$1(Ln,co,Zo),Lt$1(Ln,ds,Hr),Lt$1(Ln,ms,Mr),Lt$1(Ln,vs,Br),Lt$1(Pn,co,Zo),Lt$1(Pn,ds,Hr),Lt$1(Pn,ms,Mr),Lt$1(Pn,vs,Br),Lt$1(Bn,ms,ss),Lt$1(Bn,vs,Ko),Dn.width=sn$1(ss*dt$1),Dn.height=sn$1(Ko*dt$1),li.forEach(({_el:_i,_show:Mi,_size:Di,_pos:Oi,side:Wi})=>{if(_i!=null)if(Mi){let Yi=Wi===3||Wi===0?Di:0,Xi=Wi%2==1;Lt$1(_i,Xi?"left":"top",Oi-Yi),Lt$1(_i,Xi?"width":"height",Di),Lt$1(_i,Xi?"top":"left",Xi?Hr:Zo),Lt$1(_i,Xi?"height":"width",Xi?Br:Mr),vu(_i,Ir)}else Un(_i,Ir)}),oc=Sl=sc=lc=hh=dh=ph=gh=ac=null,ia=1,ql(!0),Zo!=Ji||Hr!=xr||Mr!=kr||Br!=Gr){ll(!1);let _i=Mr/kr,Mi=Br/Gr;if(Ar.show&&!Ns&&Ar.left>=0){Ar.left*=_i,Ar.top*=Mi,Al&&Ci(Al,sn$1(Ar.left),0,Mr,Br),xa&&Ci(xa,0,sn$1(Ar.top),Mr,Br);for(let Di=0;Di<Rs.length;Di++){let Oi=Rs[Di];Oi!=null&&(xl[Di]*=_i,_l[Di]*=Mi,Ci(Oi,ii(xl[Di]),ii(_l[Di]),Mr,Br))}}if(Oo.show&&!ol&&Oo.left>=0&&Oo.width>0){Oo.left*=_i,Oo.width*=_i,Oo.top*=Mi,Oo.height*=Mi;for(let Di in Ch)Lt$1(cl,Di,Oo[Di])}Ji=Zo,xr=Hr,kr=Mr,Gr=Br}Qo("setSize"),eo=!1}ss>0&&Ko>0&&(In.clearRect(0,0,Dn.width,Dn.height),Qo("drawClear"),yi.forEach(_i=>_i()),Qo("draw")),Oo.show&&ol&&(Yu(Oo),ol=!1),Ar.show&&Ns&&(Ds(null,!0,!1),Ns=!1),Fi.show&&Fi.live&&js&&(Gl(),js=!1),qn||(qn=!0,kn.status=1,Qo("ready")),zl=!1,Ul=!1}kn.redraw=(_i,Mi)=>{Ho=Mi||!1,_i!==!1?ra(fi,$i.min,$i.max):Ml()};function $h(_i,Mi){let Di=oi[_i];if(Di.from==null){if(as==0){let Oi=Di.range(kn,Mi.min,Mi.max,_i);Mi.min=Oi[0],Mi.max=Oi[1]}if(Mi.min>Mi.max){let Oi=Mi.min;Mi.min=Mi.max,Mi.max=Oi}if(as>1&&Mi.min!=null&&Mi.max!=null&&Mi.max-Mi.min<1e-16)return;_i==fi&&Di.distr==2&&as>0&&(Mi.min=hi(Mi.min,vn[0]),Mi.max=hi(Mi.max,vn[0]),Mi.min==Mi.max&&Mi.max++),vi[_i]=Mi,so=!0,Ml()}}kn.setScale=$h;let xh,_h,Al,xa,rd,od,El,Ll,sd,Io,Vr,Fo,_a=!1;const ls=Ar.drag;let rs=ls.x,os=ls.y;Ar.show&&(Ar.x&&(xh=ni(u_,Pn)),Ar.y&&(_h=ni(h_,Pn)),$i.ori==0?(Al=xh,xa=_h):(Al=_h,xa=xh),Vr=Ar.left,Fo=Ar.top);const Oo=kn.select=Zt$1({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),cl=Oo.show?ni(c_,Oo.over?Pn:Ln):null;function Yu(_i,Mi){if(Oo.show){for(let Di in _i)Oo[Di]=_i[Di],Di in Ch&&Lt$1(cl,Di,_i[Di]);Mi!==!1&&Qo("setSelect")}}kn.setSelect=Yu;function cs(_i,Mi){let Di=mi[_i],Oi=Ii?lr[_i]:null;if(Di.show)Oi&&vu(Oi,Ir);else{Oi&&Un(Oi,Ir);let Wi=$l?Rs[0]:Rs[_i];Ci(Wi,-10,-10,Mr,Br)}}function ra(_i,Mi,Di){$h(_i,{min:Mi,max:Di})}function As(_i,Mi,Di,Oi){Mi.focus!=null&&cd(_i),Mi.show!=null&&mi.forEach((Wi,Yi)=>{Yi>0&&(_i==Yi||_i==null)&&(Wi.show=Mi.show,cs(Yi,Mi.show),Wn==2?(ra(Wi.facets[0].scale,null,null),ra(Wi.facets[1].scale,null,null)):ra(Wi.scale,null,null),Ml())}),Di!==!1&&Qo("setSeries",_i,Mi),Oi&&pa("setSeries",kn,_i,Mi)}kn.setSeries=As;function ad(_i,Mi){Zt$1(ei[_i],Mi)}function kh(_i,Mi){_i.fill=lt$1(_i.fill||null),_i.dir=ht$1(_i.dir,-1),Mi=Mi??ei.length,ei.splice(Mi,0,_i)}function Us(_i){_i==null?ei.length=0:ei.splice(_i,1)}kn.addBand=kh,kn.setBand=ad,kn.delBand=Us;function ld(_i,Mi){mi[_i].alpha=Mi,Ar.show&&Rs[_i]&&(Rs[_i].style.opacity=Mi),Ii&&lr[_i]&&(lr[_i].style.opacity=Mi)}let oa,da,ka;const ul={focus:!0};function cd(_i){if(_i!=ka){let Mi=_i==null,Di=ya.alpha!=1;mi.forEach((Oi,Wi)=>{if(Wn==1||Wi>0){let Yi=Mi||Wi==0||Wi==_i;Oi._focus=Mi?null:Yi,Di&&ld(Wi,Yi?1:ya.alpha)}}),ka=_i,Di&&Ml()}}Ii&&wa&&Uo(mf,Gi,_i=>{Ar._lock||(sl(_i),ka!=null&&As(null,ul,!0,Go.setSeries))});function Wo(_i,Mi,Di){let Oi=oi[Mi];Di&&(_i=_i/dt$1-(Oi.ori==1?Hr:Zo));let Wi=Mr;Oi.ori==1&&(Wi=Br,_i=Wi-_i),Oi.dir==-1&&(_i=Wi-_i);let Yi=Oi._min,Xi=Oi._max,fr=_i/Wi,mr=Yi+(Xi-Yi)*fr,vr=Oi.distr;return vr==3?po(10,mr):vr==4?T_(mr,Oi.asinh):vr==100?Oi.bwd(mr):mr}function lm(_i,Mi){let Di=Wo(_i,fi,Mi);return hi(Di,vn[0],ns,is)}kn.valToIdx=_i=>hi(_i,vn[0]),kn.posToIdx=lm,kn.posToVal=Wo,kn.valToPos=(_i,Mi,Di)=>oi[Mi].ori==0?Kn(_i,oi[Mi],Di?ko:Mr,Di?Yr:0):Qn(_i,oi[Mi],Di?oo:Br,Di?$o:0),kn.setCursor=(_i,Mi,Di)=>{Vr=_i.left,Fo=_i.top,Ds(null,Mi,Di)};function Ps(_i,Mi){Lt$1(cl,co,Oo.left=_i),Lt$1(cl,ms,Oo.width=Mi)}function ud(_i,Mi){Lt$1(cl,ds,Oo.top=_i),Lt$1(cl,vs,Oo.height=Mi)}let Nl=$i.ori==0?Ps:ud,Gs=$i.ori==1?Ps:ud;function Ku(){if(Ii&&Fi.live)for(let _i=Wn==2?1:0;_i<mi.length;_i++){if(_i==0&&yr)continue;let Mi=Fi.values[_i],Di=0;for(let Oi in Mi)gr[_i][Di++].firstChild.nodeValue=Mi[Oi]}}function Gl(_i,Mi){if(_i!=null&&(_i.idxs?_i.idxs.forEach((Di,Oi)=>{Ri[Oi]=Di}):E_(_i.idx)||Ri.fill(_i.idx),Fi.idx=Ri[0]),Ii&&Fi.live){for(let Di=0;Di<mi.length;Di++)(Di>0||Wn==1&&!yr)&&zo(Di,Ri[Di]);Ku()}js=!1,Mi!==!1&&Qo("setLegend")}kn.setLegend=Gl;function zo(_i,Mi){let Di=mi[_i],Oi=_i==0&&si==2?Is:vn[_i],Wi;yr?Wi=Di.values(kn,_i,Mi)??io:(Wi=Di.value(kn,Mi==null?null:Oi[Mi],_i,Mi),Wi=Wi==null?io:{_:Wi}),Fi.values[_i]=Wi}function Ds(_i,Mi,Di){sd=Vr,Io=Fo,[Vr,Fo]=Ar.move(kn,Vr,Fo),Ar.left=Vr,Ar.top=Fo,Ar.show&&(Al&&Ci(Al,sn$1(Vr),0,Mr,Br),xa&&Ci(xa,0,sn$1(Fo),Mr,Br));let Oi,Wi=ns>is;oa=ct$1,da=null;let Yi=$i.ori==0?Mr:Br,Xi=$i.ori==1?Mr:Br;if(Vr<0||as==0||Wi){Oi=Ar.idx=null;for(let fr=0;fr<mi.length;fr++){let mr=Rs[fr];mr!=null&&Ci(mr,-10,-10,Mr,Br)}wa&&As(null,ul,!0,_i==null&&Go.setSeries),Fi.live&&(Ri.fill(Oi),js=!0)}else{let fr,mr,vr;Wn==1&&(fr=$i.ori==0?Vr:Fo,mr=Wo(fr,fi),Oi=Ar.idx=hi(mr,vn[0],ns,is),vr=ti(vn[0][Oi],$i,Yi,0));let br=-10,_r=-10,Kr=0,No=0,to=!0,qr="",Qr="";for(let Sr=Wn==2?1:0;Sr<mi.length;Sr++){let Ao=mi[Sr],qo=Ri[Sr],jo=qo==null?null:Wn==1?vn[Sr][qo]:vn[Sr][1][qo],Vo=Ar.dataIdx(kn,Sr,Oi,mr),Bo=Vo==null?null:Wn==1?vn[Sr][Vo]:vn[Sr][1][Vo];js=js||Bo!=jo||Vo!=qo,Ri[Sr]=Vo;let ji=Vo==Oi?vr:ti(Wn==1?vn[0][Vo]:vn[Sr][0][Vo],$i,Yi,0);if(Sr>0&&Ao.show){let Qi=Bo==null?-10:ai(Bo,Wn==1?oi[Ao.scale]:oi[Ao.facets[1].scale],Xi,0);if(wa&&Bo!=null){let Ki=$i.ori==1?Vr:Fo,wr=an$1(ya.dist(kn,Sr,Vo,Qi,Ki));if(wr<oa){let Tr=ya.bias;if(Tr!=0){let Zr=Wo(Ki,Ao.scale),Eo=Bo>=0?1:-1,Jr=Zr>=0?1:-1;Jr==Eo&&(Jr==1?Tr==1?Bo>=Zr:Bo<=Zr:Tr==1?Bo<=Zr:Bo>=Zr)&&(oa=wr,da=Sr)}else oa=wr,da=Sr}}if(js||$l){let Ki,wr;$i.ori==0?(Ki=ji,wr=Qi):(Ki=Qi,wr=ji);let Tr,Zr,Eo,Jr,$s,Fs,Cs=!0,Js=Ms.bbox;if(Js!=null){Cs=!1;let qs=Js(kn,Sr);Eo=qs.left,Jr=qs.top,Tr=qs.width,Zr=qs.height}else Eo=Ki,Jr=wr,Tr=Zr=Ms.size(kn,Sr);if(Fs=Ms.fill(kn,Sr),$s=Ms.stroke(kn,Sr),$l)Sr==da&&oa<=ya.prox&&(br=Eo,_r=Jr,Kr=Tr,No=Zr,to=Cs,qr=Fs,Qr=$s);else{let qs=Rs[Sr];qs!=null&&(xl[Sr]=Eo,_l[Sr]=Jr,Sf(qs,Tr,Zr,Cs),xf(qs,Fs,$s),Ci(qs,ii(Eo),ii(Jr),Mr,Br))}}}}if($l){let Sr=ya.prox,Ao=ka==null?oa<=Sr:oa>Sr||da!=ka;if(js||Ao){let qo=Rs[0];xl[0]=br,_l[0]=_r,Sf(qo,Kr,No,to),xf(qo,qr,Qr),Ci(qo,ii(br),ii(_r),Mr,Br)}}}if(Oo.show&&_a)if(_i!=null){let[fr,mr]=Go.scales,[vr,br]=Go.match,[_r,Kr]=_i.cursor.sync.scales,No=_i.cursor.drag;if(rs=No._x,os=No._y,rs||os){let{left:to,top:qr,width:Qr,height:Sr}=_i.select,Ao=_i.scales[_r].ori,qo=_i.posToVal,jo,Vo,Bo,ji,Qi,Ki=fr!=null&&vr(fr,_r),wr=mr!=null&&br(mr,Kr);Ki&&rs?(Ao==0?(jo=to,Vo=Qr):(jo=qr,Vo=Sr),Bo=oi[fr],ji=ti(qo(jo,_r),Bo,Yi,0),Qi=ti(qo(jo+Vo,_r),Bo,Yi,0),Nl(ri(ji,Qi),an$1(Qi-ji))):Nl(0,Yi),wr&&os?(Ao==1?(jo=to,Vo=Qr):(jo=qr,Vo=Sr),Bo=oi[mr],ji=ai(qo(jo,Kr),Bo,Xi,0),Qi=ai(qo(jo+Vo,Kr),Bo,Xi,0),Gs(ri(ji,Qi),an$1(Qi-ji))):Gs(0,Xi)}else Qu()}else{let fr=an$1(sd-rd),mr=an$1(Io-od);if($i.ori==1){let Kr=fr;fr=mr,mr=Kr}rs=ls.x&&fr>=ls.dist,os=ls.y&&mr>=ls.dist;let vr=ls.uni;vr!=null?rs&&os&&(rs=fr>=vr,os=mr>=vr,!rs&&!os&&(mr>fr?os=!0:rs=!0)):ls.x&&ls.y&&(rs||os)&&(rs=os=!0);let br,_r;rs&&($i.ori==0?(br=El,_r=Vr):(br=Ll,_r=Fo),Nl(ri(br,_r),an$1(_r-br)),os||Gs(0,Xi)),os&&($i.ori==1?(br=El,_r=Vr):(br=Ll,_r=Fo),Gs(ri(br,_r),an$1(_r-br)),rs||Nl(0,Yi)),!rs&&!os&&(Nl(0,0),Gs(0,0))}if(ls._x=rs,ls._y=os,_i==null){if(Di){if(Os!=null){let[fr,mr]=Go.scales;Go.values[0]=fr!=null?Wo($i.ori==0?Vr:Fo,fr):null,Go.values[1]=mr!=null?Wo($i.ori==1?Vr:Fo,mr):null}pa(ff,kn,Vr,Fo,Mr,Br,Oi)}if(wa){let fr=Di&&Go.setSeries,mr=ya.prox;ka==null?oa<=mr&&As(da,ul,!0,fr):oa>mr?As(null,ul,!0,fr):da!=ka&&As(da,ul,!0,fr)}}js&&(Fi.idx=Oi,Gl()),Mi!==!1&&Qo("setCursor")}let sa=null;Object.defineProperty(kn,"rect",{get(){return sa==null&&ql(!1),sa}});function ql(_i=!1){_i?sa=null:(sa=Pn.getBoundingClientRect(),Qo("syncRect",sa))}function Zu(_i,Mi,Di,Oi,Wi,Yi,Xi){Ar._lock||_a&&_i!=null&&_i.movementX==0&&_i.movementY==0||(Sh(_i,Mi,Di,Oi,Wi,Yi,Xi,!1,_i!=null),_i!=null?Ds(null,!0,!0):Ds(Mi,!0,!1))}function Sh(_i,Mi,Di,Oi,Wi,Yi,Xi,fr,mr){if(sa==null&&ql(!1),sl(_i),_i!=null)Di=_i.clientX-sa.left,Oi=_i.clientY-sa.top;else{if(Di<0||Oi<0){Vr=-10,Fo=-10;return}let[vr,br]=Go.scales,_r=Mi.cursor.sync,[Kr,No]=_r.values,[to,qr]=_r.scales,[Qr,Sr]=Go.match,Ao=Mi.axes[0].side%2==1,qo=$i.ori==0?Mr:Br,jo=$i.ori==1?Mr:Br,Vo=Ao?Yi:Wi,Bo=Ao?Wi:Yi,ji=Ao?Oi:Di,Qi=Ao?Di:Oi;if(to!=null?Di=Qr(vr,to)?Hn(Kr,oi[vr],qo,0):-10:Di=qo*(ji/Vo),qr!=null?Oi=Sr(br,qr)?Hn(No,oi[br],jo,0):-10:Oi=jo*(Qi/Bo),$i.ori==1){let Ki=Di;Di=Oi,Oi=Ki}}mr&&((Di<=1||Di>=Mr-1)&&(Di=Rr(Di,Mr)),(Oi<=1||Oi>=Br-1)&&(Oi=Rr(Oi,Br))),fr?(rd=Di,od=Oi,[El,Ll]=Ar.move(kn,Di,Oi)):(Vr=Di,Fo=Oi)}const Ch={width:0,height:0,left:0,top:0};function Qu(){Yu(Ch,!1)}let Th,Yl,hl,hd;function Mh(_i,Mi,Di,Oi,Wi,Yi,Xi){_a=!0,rs=os=ls._x=ls._y=!1,Sh(_i,Mi,Di,Oi,Wi,Yi,Xi,!0,!1),_i!=null&&(Uo(kc,gu,Ah,!1),pa(pf,kn,El,Ll,Mr,Br,null));let{left:fr,top:mr,width:vr,height:br}=Oo;Th=fr,Yl=mr,hl=vr,hd=br,Qu()}function Ah(_i,Mi,Di,Oi,Wi,Yi,Xi){_a=ls._x=ls._y=!1,Sh(_i,Mi,Di,Oi,Wi,Yi,Xi,!1,!0);let{left:fr,top:mr,width:vr,height:br}=Oo,_r=vr>0||br>0,Kr=Th!=fr||Yl!=mr||hl!=vr||hd!=br;if(_r&&Kr&&Yu(Oo),ls.setScale&&_r&&Kr){let No=fr,to=vr,qr=mr,Qr=br;if($i.ori==1&&(No=mr,to=br,qr=fr,Qr=vr),rs&&ra(fi,Wo(No,fi),Wo(No+to,fi)),os)for(let Sr in oi){let Ao=oi[Sr];Sr!=fi&&Ao.from==null&&Ao.min!=ct$1&&ra(Sr,Wo(qr+Qr,Sr),Wo(qr,Sr))}Qu()}else Ar.lock&&(Ar._lock=!Ar._lock,Ds(null,!0,!1));_i!=null&&(va(kc,gu),pa(kc,kn,Vr,Fo,Mr,Br,null))}function Eh(_i,Mi,Di,Oi,Wi,Yi,Xi){if(Ar._lock)return;sl(_i);let fr=_a;if(_a){let mr=!0,vr=!0,br=10,_r,Kr;$i.ori==0?(_r=rs,Kr=os):(_r=os,Kr=rs),_r&&Kr&&(mr=Vr<=br||Vr>=Mr-br,vr=Fo<=br||Fo>=Br-br),_r&&mr&&(Vr=Vr<El?0:Mr),Kr&&vr&&(Fo=Fo<Ll?0:Br),Ds(null,!0,!0),_a=!1}Vr=-10,Fo=-10,Ds(null,!0,!0),fr&&(_a=fr)}function Ju(_i,Mi,Di,Oi,Wi,Yi,Xi){Ar._lock||(sl(_i),uh(),Qu(),_i!=null&&pa(vf,kn,Vr,Fo,Mr,Br,null))}function Lh(){li.forEach(qS),lh(kn.width,kn.height,!0)}Nr(Ba,ho,Lh);const Rl={};Rl.mousedown=Mh,Rl.mousemove=Zu,Rl.mouseup=Ah,Rl.dblclick=Ju,Rl.setSeries=(_i,Mi,Di,Oi)=>{let Wi=Go.match[2];Di=Wi(kn,Mi,Di),Di!=-1&&As(Di,Oi,!0,!1)},Ar.show&&(Uo(pf,Pn,Mh),Uo(ff,Pn,Zu),Uo(gf,Pn,_i=>{sl(_i),ql(!1)}),Uo(mf,Pn,Eh),Uo(vf,Pn,Ju),Su.add(kn),kn.syncRect=ql);const Il=kn.hooks=e.hooks||{};function Qo(_i,Mi,Di){qu?Tl.push([_i,Mi,Di]):_i in Il&&Il[_i].forEach(Oi=>{Oi.call(null,kn,Mi,Di)})}(e.plugins||[]).forEach(_i=>{for(let Mi in _i.hooks)Il[Mi]=(Il[Mi]||[]).concat(_i.hooks[Mi])});const dd=(_i,Mi,Di)=>Di,Go=Zt$1({key:null,setSeries:!1,filters:{pub:Tf,sub:Tf},scales:[fi,mi[1]?mi[1].scale:null],match:[Mf,Mf,dd],values:[null,null]},Ar.sync);Go.match.length==2&&Go.match.push(dd),Ar.sync=Go;const Os=Go.key,Kl=kg(Os);function pa(_i,Mi,Di,Oi,Wi,Yi,Xi){Go.filters.pub(_i,Mi,Di,Oi,Wi,Yi,Xi)&&Kl.pub(_i,Mi,Di,Oi,Wi,Yi,Xi)}Kl.sub(kn);function pd(_i,Mi,Di,Oi,Wi,Yi,Xi){Go.filters.sub(_i,Mi,Di,Oi,Wi,Yi,Xi)&&Rl[_i](null,Mi,Di,Oi,Wi,Yi,Xi)}kn.pub=pd;function gd(){Kl.unsub(kn),Su.delete(kn),Do.clear(),yu(Ba,ho,Lh),Nn.remove(),Gi==null||Gi.remove(),Qo("destroy")}kn.destroy=gd;function Nh(){Qo("init",e,vn),Hl(vn||e.data,!1),vi[fi]?$h(fi,vi[fi]):uh(),ol=Oo.show&&(Oo.width>0||Oo.height>0),Ns=js=!0,lh(e.width,e.height)}return mi.forEach(Kh),li.forEach(rm),_n?_n instanceof HTMLElement?(_n.appendChild(Nn),Nh()):_n(kn,Nh):Nh(),kn}$n.assign=Zt$1,$n.fmtNum=Nu,$n.rangeNum=za,$n.rangeLog=Qa,$n.rangeAsinh=Ou,$n.orient=Pr,$n.pxRatio=dt$1,$n.join=P_,$n.fmtDate=Wu,$n.tzDate=Z_,$n.sync=kg;{$n.addGap=ES,$n.clipGaps=el;let e=$n.paths={points:Lg};e.linear=Eg,e.stepped=DS,e.bars=NS,e.spline=WS}var Mc,Qf;function YS(){return Qf||(Qf=1,Mc=function(e,vn,_n,kn,Wn){var zn,Kn;if(kn===void 0)kn=0;else if(kn=kn|0,kn<0||kn>=e.length)throw new RangeError("invalid lower bound");if(Wn===void 0)Wn=e.length-1;else if(Wn=Wn|0,Wn<kn||Wn>=e.length)throw new RangeError("invalid upper bound");for(;kn<=Wn;)if(zn=kn+(Wn-kn>>>1),Kn=+_n(e[zn],vn,zn,e),Kn<0)kn=zn+1;else if(Kn>0)Wn=zn-1;else return zn;return~kn}),Mc}var ZS=YS();const Bk=Ua(ZS);var Lc,Xf;function QS(){if(Xf)return Lc;Xf=1;function e(vn,_n,kn){var Wn=-1,zn=vn.length;_n<0&&(_n=-_n>zn?0:zn+_n),kn=kn>zn?zn:kn,kn<0&&(kn+=zn),zn=_n>kn?0:kn-_n>>>0,_n>>>=0;for(var Kn=Array(zn);++Wn<zn;)Kn[Wn]=vn[Wn+_n];return Kn}return Lc=e,Lc}var Rc,Jf;function XS(){if(Jf)return Rc;Jf=1;var e=QS();function vn(_n,kn,Wn){var zn=_n.length;return Wn=Wn===void 0?zn:Wn,!kn&&Wn>=zn?_n:e(_n,kn,Wn)}return Rc=vn,Rc}var Ec,ep;function Ng(){if(ep)return Ec;ep=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",Wn=vn+_n+kn,zn="\\ufe0e\\ufe0f",Kn="\\u200d",Qn=RegExp("["+Kn+e+Wn+zn+"]");function Hn(qn){return Qn.test(qn)}return Ec=Hn,Ec}var Ic,tp;function JS(){if(tp)return Ic;tp=1;function e(vn){return vn.split("")}return Ic=e,Ic}var Oc,np;function ek(){if(np)return Oc;np=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",Wn=vn+_n+kn,zn="\\ufe0e\\ufe0f",Kn="["+e+"]",Qn="["+Wn+"]",Hn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+Qn+"|"+Hn+")",Nn="[^"+e+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",In="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="\\u200d",Ln=qn+"?",Pn="["+zn+"]?",Zn="(?:"+Bn+"(?:"+[Nn,Dn,In].join("|")+")"+Pn+Ln+")*",Jn=Pn+Ln+Zn,Xn="(?:"+[Nn+Qn+"?",Qn,Dn,In,Kn].join("|")+")",mi=RegExp(Hn+"(?="+Hn+")|"+Xn+Jn,"g");function li(oi){return oi.match(mi)||[]}return Oc=li,Oc}var Dc,ip;function tk(){if(ip)return Dc;ip=1;var e=JS(),vn=Ng(),_n=ek();function kn(Wn){return vn(Wn)?_n(Wn):e(Wn)}return Dc=kn,Dc}var Nc,rp;function nk(){if(rp)return Nc;rp=1;var e=typeof hr=="object"&&hr&&hr.Object===Object&&hr;return Nc=e,Nc}var Fc,op;function ik(){if(op)return Fc;op=1;var e=nk(),vn=typeof self=="object"&&self&&self.Object===Object&&self,_n=e||vn||Function("return this")();return Fc=_n,Fc}var Wc,sp;function ju(){if(sp)return Wc;sp=1;var e=ik(),vn=e.Symbol;return Wc=vn,Wc}var Pc,ap;function rk(){if(ap)return Pc;ap=1;function e(vn,_n){for(var kn=-1,Wn=vn==null?0:vn.length,zn=Array(Wn);++kn<Wn;)zn[kn]=_n(vn[kn],kn,vn);return zn}return Pc=e,Pc}var Bc,lp;function ok(){if(lp)return Bc;lp=1;var e=Array.isArray;return Bc=e,Bc}var zc,cp;function sk(){if(cp)return zc;cp=1;var e=ju(),vn=Object.prototype,_n=vn.hasOwnProperty,kn=vn.toString,Wn=e?e.toStringTag:void 0;function zn(Kn){var Qn=_n.call(Kn,Wn),Hn=Kn[Wn];try{Kn[Wn]=void 0;var qn=!0}catch{}var Nn=kn.call(Kn);return qn&&(Qn?Kn[Wn]=Hn:delete Kn[Wn]),Nn}return zc=zn,zc}var Hc,up;function ak(){if(up)return Hc;up=1;var e=Object.prototype,vn=e.toString;function _n(kn){return vn.call(kn)}return Hc=_n,Hc}var Uc,hp;function lk(){if(hp)return Uc;hp=1;var e=ju(),vn=sk(),_n=ak(),kn="[object Null]",Wn="[object Undefined]",zn=e?e.toStringTag:void 0;function Kn(Qn){return Qn==null?Qn===void 0?Wn:kn:zn&&zn in Object(Qn)?vn(Qn):_n(Qn)}return Uc=Kn,Uc}var Vc,dp;function ck(){if(dp)return Vc;dp=1;function e(vn){return vn!=null&&typeof vn=="object"}return Vc=e,Vc}var jc,fp;function uk(){if(fp)return jc;fp=1;var e=lk(),vn=ck(),_n="[object Symbol]";function kn(Wn){return typeof Wn=="symbol"||vn(Wn)&&e(Wn)==_n}return jc=kn,jc}var Gc,pp;function hk(){if(pp)return Gc;pp=1;var e=ju(),vn=rk(),_n=ok(),kn=uk(),Wn=1/0,zn=e?e.prototype:void 0,Kn=zn?zn.toString:void 0;function Qn(Hn){if(typeof Hn=="string")return Hn;if(_n(Hn))return vn(Hn,Qn)+"";if(kn(Hn))return Kn?Kn.call(Hn):"";var qn=Hn+"";return qn=="0"&&1/Hn==-Wn?"-0":qn}return Gc=Qn,Gc}var Kc,gp;function rl(){if(gp)return Kc;gp=1;var e=hk();function vn(_n){return _n==null?"":e(_n)}return Kc=vn,Kc}var qc,mp;function dk(){if(mp)return qc;mp=1;var e=XS(),vn=Ng(),_n=tk(),kn=rl();function Wn(zn){return function(Kn){Kn=kn(Kn);var Qn=vn(Kn)?_n(Kn):void 0,Hn=Qn?Qn[0]:Kn.charAt(0),qn=Qn?e(Qn,1).join(""):Kn.slice(1);return Hn[zn]()+qn}}return qc=Wn,qc}var Yc,vp;function Fg(){if(vp)return Yc;vp=1;var e=dk(),vn=e("toUpperCase");return Yc=vn,Yc}var fk=Fg();const pk=Ua(fk);var Zc,yp;function gk(){if(yp)return Zc;yp=1;var e=rl(),vn=Fg();function _n(kn){return vn(e(kn).toLowerCase())}return Zc=_n,Zc}var Qc,wp;function mk(){if(wp)return Qc;wp=1;function e(vn,_n,kn,Wn){var zn=-1,Kn=vn==null?0:vn.length;for(Wn&&Kn&&(kn=vn[++zn]);++zn<Kn;)kn=_n(kn,vn[zn],zn,vn);return kn}return Qc=e,Qc}var Xc,bp;function vk(){if(bp)return Xc;bp=1;function e(vn){return function(_n){return vn==null?void 0:vn[_n]}}return Xc=e,Xc}var Jc,xp;function yk(){if(xp)return Jc;xp=1;var e=vk(),vn={À:"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"},_n=e(vn);return Jc=_n,Jc}var eu,_p;function wk(){if(_p)return eu;_p=1;var e=yk(),vn=rl(),_n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn="\\u0300-\\u036f",Wn="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Kn=kn+Wn+zn,Qn="["+Kn+"]",Hn=RegExp(Qn,"g");function qn(Nn){return Nn=vn(Nn),Nn&&Nn.replace(_n,e).replace(Hn,"")}return eu=qn,eu}var tu,Sp;function bk(){if(Sp)return tu;Sp=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vn(_n){return _n.match(e)||[]}return tu=vn,tu}var nu,kp;function xk(){if(kp)return nu;kp=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vn(_n){return e.test(_n)}return nu=vn,nu}var iu,Cp;function _k(){if(Cp)return iu;Cp=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",Wn=vn+_n+kn,zn="\\u2700-\\u27bf",Kn="a-z\\xdf-\\xf6\\xf8-\\xff",Qn="\\xac\\xb1\\xd7\\xf7",Hn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qn="\\u2000-\\u206f",Nn=" \\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",Dn="A-Z\\xc0-\\xd6\\xd8-\\xde",In="\\ufe0e\\ufe0f",Bn=Qn+Hn+qn+Nn,Ln="['’]",Pn="["+Bn+"]",Zn="["+Wn+"]",Jn="\\d+",Xn="["+zn+"]",mi="["+Kn+"]",li="[^"+e+Bn+Jn+zn+Kn+Dn+"]",oi="\\ud83c[\\udffb-\\udfff]",ei="(?:"+Zn+"|"+oi+")",fi="[^"+e+"]",gi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+Dn+"]",$i="\\u200d",si="(?:"+mi+"|"+li+")",ti="(?:"+pi+"|"+li+")",ai="(?:"+Ln+"(?:d|ll|m|re|s|t|ve))?",vi="(?:"+Ln+"(?:D|LL|M|RE|S|T|VE))?",wi=ei+"?",xi="["+In+"]?",Si="(?:"+$i+"(?:"+[fi,gi,yi].join("|")+")"+xi+wi+")*",Ei="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ni="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ri=xi+wi+Si,Fi="(?:"+[Xn,gi,yi].join("|")+")"+Ri,Ii=RegExp([pi+"?"+mi+"+"+ai+"(?="+[Pn,pi,"$"].join("|")+")",ti+"+"+vi+"(?="+[Pn,pi+si,"$"].join("|")+")",pi+"?"+si+"+"+ai,pi+"+"+vi,Ni,Ei,Jn,Fi].join("|"),"g");function Bi(Gi){return Gi.match(Ii)||[]}return iu=Bi,iu}var ru,Ap;function Sk(){if(Ap)return ru;Ap=1;var e=bk(),vn=xk(),_n=rl(),kn=_k();function Wn(zn,Kn,Qn){return zn=_n(zn),Kn=Qn?void 0:Kn,Kn===void 0?vn(zn)?kn(zn):e(zn):zn.match(Kn)||[]}return ru=Wn,ru}var ou,$p;function kk(){if($p)return ou;$p=1;var e=mk(),vn=wk(),_n=Sk(),kn="['’]",Wn=RegExp(kn,"g");function zn(Kn){return function(Qn){return e(_n(vn(Qn).replace(Wn,"")),Kn,"")}}return ou=zn,ou}var su,Tp;function Ck(){if(Tp)return su;Tp=1;var e=gk(),vn=kk(),_n=vn(function(kn,Wn,zn){return Wn=Wn.toLowerCase(),kn+(zn?e(Wn):Wn)});return su=_n,su}var Ak=Ck();const $k=Ua(Ak),Tk=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>ArrayWidgetBy62tXtU),"./BlockWidget.vue":()=>Promise.resolve().then(()=>BlockWidgetCrT45ode),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>ButtonWidgetCKyBBv6m),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>CanvasWidgetPqkppHC7),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>CanvasdotWidgetBUbJgM2d),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>CanvasimageWidgetDPVBY7mi),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>CanvasimagevalueWidgetGX37zzNc),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelWidgetP2_Y6Edw),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelvalueWidgetCuas1i9P),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>CanvaslineWidgetBYOYgPya),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslinevalueWidget3cVJMFo7),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>CheckbuttonWidgetB3wgSMuB),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>ComboboxWidgetDzr4Scvf),"./DateWidget.vue":()=>Promise.resolve().then(()=>DateWidgetBWh76Ibb),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>DynamicWidgetM9EliUR2),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>FormatvalueWidgetRk0_eeIm),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>HorizontalWidgetBcfJ24Zn),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>HorizontalboxWidgetCQy1Hv9E),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>HorizontallineWidgetBdlNB951),"./IframeWidget.vue":()=>Promise.resolve().then(()=>IframeWidgetBBaDrRLo),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>ImageviewerWidgetBgO3Pq6I),"./LabelWidget.vue":()=>Promise.resolve().then(()=>LabelWidgetB_C6lKOE),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>LabelledWidgetB_UGivhr),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>LabelprogressbarWidgetBJWCmsYC),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>LabelsparklineWidgetDILCIh3q),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>LabelvalueWidgetCCZd1NXE),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>LabelvaluedescWidgetBsllq8W6),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitsbarWidgetBVCfaD_),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitscolumnWidgetDwA0eRBw),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluerangebarWidget3GDJz3dj),"./LedWidget.vue":()=>Promise.resolve().then(()=>LedWidgetBAt02s0J),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>LimitsbarWidgetJJiyzZjb),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>LimitscolorWidgetCYzXKbYd),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LimitscolumnWidgetCd76tBo7),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>LinegraphWidgetDWRtO6Ej),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>MatrixbycolumnsWidgetCwsyjNV2),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>ProgressbarWidgetCYDziFej),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>RadiobuttonWidgetU6jcQZoD),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>RadiogroupWidgetHTPJnsB0),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>RangebarWidgetDW0FJK6y),"./RollupWidget.vue":()=>Promise.resolve().then(()=>RollupWidgetB2qrx55f),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>ScrollwindowWidgetCwIDxgO6),"./SignalWidget.vue":()=>Promise.resolve().then(()=>SignalWidgetBosa3AbW),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>SpacerWidgetDYAlt5mt),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>SparklineWidgetCDrVXOFV),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>TabbookWidgetDDdlzCkv),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>TextboxWidget5euFelEq),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>TextfieldWidgetBFripYeh),"./TimeWidget.vue":()=>Promise.resolve().then(()=>TimeWidgetBBSbsUYJ),"./TitleWidget.vue":()=>Promise.resolve().then(()=>TitleWidgetP8cjoBs),"./ValueWidget.vue":()=>Promise.resolve().then(()=>ValueWidgetCZh7JWwT),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>ValuelimitsbarWidgetDU7ybswC),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>ValuelimitscolumnWidgetDMwH5jM),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>ValuerangebarWidgetDPpofDpA),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>VerticalWidgetCh7VAEmz),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>VerticalboxWidgetDYxTFT4)}),Mk=Object.entries(Tk).reduce((e,[vn,_n])=>{vn=vn.split("/").pop();const kn=pk($k(vn.replace(/\.\w+$/,"")));return{...e,[kn]:vue.defineAsyncComponent(_n)}},{}),zk={components:Mk};function Ne$2(e,vn){return function(){return e.apply(vn,arguments)}}const{toString:Ze$2}=Object.prototype,{getPrototypeOf:ue$3}=Object,K$2=(e=>vn=>{const _n=Ze$2.call(vn);return e[_n]||(e[_n]=_n.slice(8,-1).toLowerCase())})(Object.create(null)),C$2=e=>(e=e.toLowerCase(),vn=>K$2(vn)===e),v$9=e=>vn=>typeof vn===e,{isArray:U$4}=Array,q$2=v$9("undefined");function Ye$2(e){return e!==null&&!q$2(e)&&e.constructor!==null&&!q$2(e.constructor)&&x$2(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe$2=C$2("ArrayBuffer");function et(e){let vn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?vn=ArrayBuffer.isView(e):vn=e&&e.buffer&&Pe$2(e.buffer),vn}const tt=v$9("string"),x$2=v$9("function"),_e$2=v$9("number"),X$1=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z$8=e=>{if(K$2(e)!=="object")return!1;const vn=ue$3(e);return(vn===null||vn===Object.prototype||Object.getPrototypeOf(vn)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C$2("Date"),st=C$2("File"),ot=C$2("Blob"),it=C$2("FileList"),at=e=>X$1(e)&&x$2(e.pipe),ct=e=>{let vn;return e&&(typeof FormData=="function"&&e instanceof FormData||x$2(e.append)&&((vn=K$2(e))==="formdata"||vn==="object"&&x$2(e.toString)&&e.toString()==="[object FormData]"))},ut=C$2("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C$2),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I$3(e,vn,{allOwnKeys:_n=!1}={}){if(e===null||typeof e>"u")return;let kn,Wn;if(typeof e!="object"&&(e=[e]),U$4(e))for(kn=0,Wn=e.length;kn<Wn;kn++)vn.call(null,e[kn],kn,e);else{const zn=_n?Object.getOwnPropertyNames(e):Object.keys(e),Kn=zn.length;let Qn;for(kn=0;kn<Kn;kn++)Qn=zn[kn],vn.call(null,e[Qn],Qn,e)}}function Fe$2(e,vn){vn=vn.toLowerCase();const _n=Object.keys(e);let kn=_n.length,Wn;for(;kn-- >0;)if(Wn=_n[kn],vn===Wn.toLowerCase())return Wn;return null}const L$4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le$2=e=>!q$2(e)&&e!==L$4;function re$2(){const{caseless:e}=Le$2(this)&&this||{},vn={},_n=(kn,Wn)=>{const zn=e&&Fe$2(vn,Wn)||Wn;z$8(vn[zn])&&z$8(kn)?vn[zn]=re$2(vn[zn],kn):z$8(kn)?vn[zn]=re$2({},kn):U$4(kn)?vn[zn]=kn.slice():vn[zn]=kn};for(let kn=0,Wn=arguments.length;kn<Wn;kn++)arguments[kn]&&I$3(arguments[kn],_n);return vn}const mt=(e,vn,_n,{allOwnKeys:kn}={})=>(I$3(vn,(Wn,zn)=>{_n&&x$2(Wn)?e[zn]=Ne$2(Wn,_n):e[zn]=Wn},{allOwnKeys:kn}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,vn,_n,kn)=>{e.prototype=Object.create(vn.prototype,kn),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:vn.prototype}),_n&&Object.assign(e.prototype,_n)},wt=(e,vn,_n,kn)=>{let Wn,zn,Kn;const Qn={};if(vn=vn||{},e==null)return vn;do{for(Wn=Object.getOwnPropertyNames(e),zn=Wn.length;zn-- >0;)Kn=Wn[zn],(!kn||kn(Kn,e,vn))&&!Qn[Kn]&&(vn[Kn]=e[Kn],Qn[Kn]=!0);e=_n!==!1&&ue$3(e)}while(e&&(!_n||_n(e,vn))&&e!==Object.prototype);return vn},Et=(e,vn,_n)=>{e=String(e),(_n===void 0||_n>e.length)&&(_n=e.length),_n-=vn.length;const kn=e.indexOf(vn,_n);return kn!==-1&&kn===_n},Rt=e=>{if(!e)return null;if(U$4(e))return e;let vn=e.length;if(!_e$2(vn))return null;const _n=new Array(vn);for(;vn-- >0;)_n[vn]=e[vn];return _n},St=(e=>vn=>e&&vn instanceof e)(typeof Uint8Array<"u"&&ue$3(Uint8Array)),gt=(e,vn)=>{const _n=(e&&e[Symbol.iterator]).call(e);let kn;for(;(kn=_n.next())&&!kn.done;){const Wn=kn.value;vn.call(e,Wn[0],Wn[1])}},Ot=(e,vn)=>{let _n;const kn=[];for(;(_n=e.exec(vn))!==null;)kn.push(_n);return kn},Tt=C$2("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(vn,_n,kn){return _n.toUpperCase()+kn}),he$3=(({hasOwnProperty:e})=>(vn,_n)=>e.call(vn,_n))(Object.prototype),xt=C$2("RegExp"),Be$1=(e,vn)=>{const _n=Object.getOwnPropertyDescriptors(e),kn={};I$3(_n,(Wn,zn)=>{let Kn;(Kn=vn(Wn,zn,e))!==!1&&(kn[zn]=Kn||Wn)}),Object.defineProperties(e,kn)},Ct=e=>{Be$1(e,(vn,_n)=>{if(x$2(e)&&["arguments","caller","callee"].indexOf(_n)!==-1)return!1;const kn=e[_n];if(x$2(kn)){if(vn.enumerable=!1,"writable"in vn){vn.writable=!1;return}vn.set||(vn.set=()=>{throw Error("Can not rewrite read-only method '"+_n+"'")})}})},Nt=(e,vn)=>{const _n={},kn=Wn=>{Wn.forEach(zn=>{_n[zn]=!0})};return U$4(e)?kn(e):kn(String(e).split(vn)),_n},Pt=()=>{},_t=(e,vn)=>e!=null&&Number.isFinite(e=+e)?e:vn,Y$1="abcdefghijklmnopqrstuvwxyz",me$3="0123456789",De$3={DIGIT:me$3,ALPHA:Y$1,ALPHA_DIGIT:Y$1+Y$1.toUpperCase()+me$3},Ft=(e=16,vn=De$3.ALPHA_DIGIT)=>{let _n="";const{length:kn}=vn;for(;e--;)_n+=vn[Math.random()*kn|0];return _n};function Lt(e){return!!(e&&x$2(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const vn=new Array(10),_n=(kn,Wn)=>{if(X$1(kn)){if(vn.indexOf(kn)>=0)return;if(!("toJSON"in kn)){vn[Wn]=kn;const zn=U$4(kn)?[]:{};return I$3(kn,(Kn,Qn)=>{const Hn=_n(Kn,Wn+1);!q$2(Hn)&&(zn[Qn]=Hn)}),vn[Wn]=void 0,zn}}return kn};return _n(e,0)},Dt=C$2("AsyncFunction"),Ut=e=>e&&(X$1(e)||x$2(e))&&x$2(e.then)&&x$2(e.catch),Ue$2=((e,vn)=>e?setImmediate:vn?((_n,kn)=>(L$4.addEventListener("message",({source:Wn,data:zn})=>{Wn===L$4&&zn===_n&&kn.length&&kn.shift()()},!1),Wn=>{kn.push(Wn),L$4.postMessage(_n,"*")}))(`axios@${Math.random()}`,[]):_n=>setTimeout(_n))(typeof setImmediate=="function",x$2(L$4.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L$4):typeof process<"u"&&process.nextTick||Ue$2,a$2={isArray:U$4,isArrayBuffer:Pe$2,isBuffer:Ye$2,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:_e$2,isBoolean:nt,isObject:X$1,isPlainObject:z$8,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q$2,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x$2,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:I$3,merge:re$2,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K$2,kindOfTest:C$2,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:he$3,hasOwnProp:he$3,reduceDescriptors:Be$1,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:Fe$2,global:L$4,isContextDefined:Le$2,ALPHABET:De$3,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:Ue$2,asap:kt};function m$8(e,vn,_n,kn,Wn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",vn&&(this.code=vn),_n&&(this.config=_n),kn&&(this.request=kn),Wn&&(this.response=Wn,this.status=Wn.status?Wn.status:null)}a$2.inherits(m$8,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:a$2.toJSONObject(this.config),code:this.code,status:this.status}}});const ke$1=m$8.prototype,je$1={};["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(e=>{je$1[e]={value:e}}),Object.defineProperties(m$8,je$1),Object.defineProperty(ke$1,"isAxiosError",{value:!0}),m$8.from=(e,vn,_n,kn,Wn,zn)=>{const Kn=Object.create(ke$1);return a$2.toFlatObject(e,Kn,function(Qn){return Qn!==Error.prototype},Qn=>Qn!=="isAxiosError"),m$8.call(Kn,e.message,vn,_n,kn,Wn),Kn.cause=e,Kn.name=e.name,zn&&Object.assign(Kn,zn),Kn};const jt=null;function se$1(e){return a$2.isPlainObject(e)||a$2.isArray(e)}function qe$1(e){return a$2.endsWith(e,"[]")?e.slice(0,-2):e}function ye$3(e,vn,_n){return e?e.concat(vn).map(function(kn,Wn){return kn=qe$1(kn),!_n&&Wn?"["+kn+"]":kn}).join(_n?".":""):vn}function qt(e){return a$2.isArray(e)&&!e.some(se$1)}const It=a$2.toFlatObject(a$2,{},null,function(e){return/^is[A-Z]/.test(e)});function G(e,vn,_n){if(!a$2.isObject(e))throw new TypeError("target must be an object");vn=vn||new FormData,_n=a$2.toFlatObject(_n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Ln){return!a$2.isUndefined(Ln[Bn])});const kn=_n.metaTokens,Wn=_n.visitor||qn,zn=_n.dots,Kn=_n.indexes,Qn=(_n.Blob||typeof Blob<"u"&&Blob)&&a$2.isSpecCompliantForm(vn);if(!a$2.isFunction(Wn))throw new TypeError("visitor must be a function");function Hn(Bn){if(Bn===null)return"";if(a$2.isDate(Bn))return Bn.toISOString();if(!Qn&&a$2.isBlob(Bn))throw new m$8("Blob is not supported. Use a Buffer instead.");return a$2.isArrayBuffer(Bn)||a$2.isTypedArray(Bn)?Qn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function qn(Bn,Ln,Pn){let Zn=Bn;if(Bn&&!Pn&&typeof Bn=="object"){if(a$2.endsWith(Ln,"{}"))Ln=kn?Ln:Ln.slice(0,-2),Bn=JSON.stringify(Bn);else if(a$2.isArray(Bn)&&qt(Bn)||(a$2.isFileList(Bn)||a$2.endsWith(Ln,"[]"))&&(Zn=a$2.toArray(Bn)))return Ln=qe$1(Ln),Zn.forEach(function(Jn,Xn){!(a$2.isUndefined(Jn)||Jn===null)&&vn.append(Kn===!0?ye$3([Ln],Xn,zn):Kn===null?Ln:Ln+"[]",Hn(Jn))}),!1}return se$1(Bn)?!0:(vn.append(ye$3(Pn,Ln,zn),Hn(Bn)),!1)}const Nn=[],Dn=Object.assign(It,{defaultVisitor:qn,convertValue:Hn,isVisitable:se$1});function In(Bn,Ln){if(!a$2.isUndefined(Bn)){if(Nn.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Ln.join("."));Nn.push(Bn),a$2.forEach(Bn,function(Pn,Zn){(!(a$2.isUndefined(Pn)||Pn===null)&&Wn.call(vn,Pn,a$2.isString(Zn)?Zn.trim():Zn,Ln,Dn))===!0&&In(Pn,Ln?Ln.concat(Zn):[Zn])}),Nn.pop()}}if(!a$2.isObject(e))throw new TypeError("data must be an object");return In(e),vn}function be$3(e){const vn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(_n){return vn[_n]})}function le$3(e,vn){this._pairs=[],e&&G(e,this,vn)}const Ie$2=le$3.prototype;Ie$2.append=function(e,vn){this._pairs.push([e,vn])},Ie$2.toString=function(e){const vn=e?function(_n){return e.call(this,_n,be$3)}:be$3;return this._pairs.map(function(_n){return vn(_n[0])+"="+vn(_n[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He$2(e,vn,_n){if(!vn)return e;const kn=_n&&_n.encode||Ht;a$2.isFunction(_n)&&(_n={serialize:_n});const Wn=_n&&_n.serialize;let zn;if(Wn?zn=Wn(vn,_n):zn=a$2.isURLSearchParams(vn)?vn.toString():new le$3(vn,_n).toString(kn),zn){const Kn=e.indexOf("#");Kn!==-1&&(e=e.slice(0,Kn)),e+=(e.indexOf("?")===-1?"?":"&")+zn}return e}let we$3=class{constructor(){this.handlers=[]}use(vn,_n,kn){return this.handlers.push({fulfilled:vn,rejected:_n,synchronous:kn?kn.synchronous:!1,runWhen:kn?kn.runWhen:null}),this.handlers.length-1}eject(vn){this.handlers[vn]&&(this.handlers[vn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(vn){a$2.forEach(this.handlers,function(_n){_n!==null&&vn(_n)})}};const Me$2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le$3,zt=typeof FormData<"u"?FormData:null,Jt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:Jt},protocols:["http","https","file","blob","url","data"]},fe$3=typeof window<"u"&&typeof document<"u",oe$2=typeof navigator=="object"&&navigator||void 0,$t=fe$3&&(!oe$2||["ReactNative","NativeScript","NS"].indexOf(oe$2.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe$3&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe$3,hasStandardBrowserEnv:$t,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe$2,origin:Kt},Symbol.toStringTag,{value:"Module"})),O$2={...vt,...Vt};function Xt(e,vn){return G(e,new O$2.classes.URLSearchParams,Object.assign({visitor:function(_n,kn,Wn,zn){return O$2.isNode&&a$2.isBuffer(_n)?(this.append(kn,_n.toString("base64")),!1):zn.defaultVisitor.apply(this,arguments)}},vn))}function Gt(e){return a$2.matchAll(/\w+|\[(\w*)]/g,e).map(vn=>vn[0]==="[]"?"":vn[1]||vn[0])}function Qt(e){const vn={},_n=Object.keys(e);let kn;const Wn=_n.length;let zn;for(kn=0;kn<Wn;kn++)zn=_n[kn],vn[zn]=e[zn];return vn}function ze$2(e){function vn(_n,kn,Wn,zn){let Kn=_n[zn++];if(Kn==="__proto__")return!0;const Qn=Number.isFinite(+Kn),Hn=zn>=_n.length;return Kn=!Kn&&a$2.isArray(Wn)?Wn.length:Kn,Hn?(a$2.hasOwnProp(Wn,Kn)?Wn[Kn]=[Wn[Kn],kn]:Wn[Kn]=kn,!Qn):((!Wn[Kn]||!a$2.isObject(Wn[Kn]))&&(Wn[Kn]=[]),vn(_n,kn,Wn[Kn],zn)&&a$2.isArray(Wn[Kn])&&(Wn[Kn]=Qt(Wn[Kn])),!Qn)}if(a$2.isFormData(e)&&a$2.isFunction(e.entries)){const _n={};return a$2.forEachEntry(e,(kn,Wn)=>{vn(Gt(kn),Wn,_n,0)}),_n}return null}function Zt(e,vn,_n){if(a$2.isString(e))try{return(vn||JSON.parse)(e),a$2.trim(e)}catch(kn){if(kn.name!=="SyntaxError")throw kn}return(0,JSON.stringify)(e)}const H$2={transitional:Me$2,adapter:["xhr","http","fetch"],transformRequest:[function(e,vn){const _n=vn.getContentType()||"",kn=_n.indexOf("application/json")>-1,Wn=a$2.isObject(e);if(Wn&&a$2.isHTMLForm(e)&&(e=new FormData(e)),a$2.isFormData(e))return kn?JSON.stringify(ze$2(e)):e;if(a$2.isArrayBuffer(e)||a$2.isBuffer(e)||a$2.isStream(e)||a$2.isFile(e)||a$2.isBlob(e)||a$2.isReadableStream(e))return e;if(a$2.isArrayBufferView(e))return e.buffer;if(a$2.isURLSearchParams(e))return vn.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let zn;if(Wn){if(_n.indexOf("application/x-www-form-urlencoded")>-1)return Xt(e,this.formSerializer).toString();if((zn=a$2.isFileList(e))||_n.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return G(zn?{"files[]":e}:e,Kn&&new Kn,this.formSerializer)}}return Wn||kn?(vn.setContentType("application/json",!1),Zt(e)):e}],transformResponse:[function(e){const vn=this.transitional||H$2.transitional,_n=vn&&vn.forcedJSONParsing,kn=this.responseType==="json";if(a$2.isResponse(e)||a$2.isReadableStream(e))return e;if(e&&a$2.isString(e)&&(_n&&!this.responseType||kn)){const Wn=!(vn&&vn.silentJSONParsing)&&kn;try{return JSON.parse(e)}catch(zn){if(Wn)throw zn.name==="SyntaxError"?m$8.from(zn,m$8.ERR_BAD_RESPONSE,this,null,this.response):zn}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O$2.classes.FormData,Blob:O$2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a$2.forEach(["delete","get","head","post","put","patch"],e=>{H$2.headers[e]={}});const Yt=a$2.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"]),en=e=>{const vn={};let _n,kn,Wn;return e&&e.split(`
|
1414
|
+
`).forEach(function(zn){Wn=zn.indexOf(":"),_n=zn.substring(0,Wn).trim().toLowerCase(),kn=zn.substring(Wn+1).trim(),!(!_n||vn[_n]&&Yt[_n])&&(_n==="set-cookie"?vn[_n]?vn[_n].push(kn):vn[_n]=[kn]:vn[_n]=vn[_n]?vn[_n]+", "+kn:kn)}),vn},Ee$2=Symbol("internals");function j$2(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a$2.isArray(e)?e.map(J):String(e)}function tn(e){const vn=Object.create(null),_n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let kn;for(;kn=_n.exec(e);)vn[kn[1]]=kn[2];return vn}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee$1(e,vn,_n,kn,Wn){if(a$2.isFunction(kn))return kn.call(this,vn,_n);if(Wn&&(vn=_n),!!a$2.isString(vn)){if(a$2.isString(kn))return vn.indexOf(kn)!==-1;if(a$2.isRegExp(kn))return kn.test(vn)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(vn,_n,kn)=>_n.toUpperCase()+kn)}function sn(e,vn){const _n=a$2.toCamelCase(" "+vn);["get","set","has"].forEach(kn=>{Object.defineProperty(e,kn+_n,{value:function(Wn,zn,Kn){return this[kn].call(this,vn,Wn,zn,Kn)},configurable:!0})})}let A$4=class{constructor(vn){vn&&this.set(vn)}set(vn,_n,kn){const Wn=this;function zn(Qn,Hn,qn){const Nn=j$2(Hn);if(!Nn)throw new Error("header name must be a non-empty string");const Dn=a$2.findKey(Wn,Nn);(!Dn||Wn[Dn]===void 0||qn===!0||qn===void 0&&Wn[Dn]!==!1)&&(Wn[Dn||Hn]=J(Qn))}const Kn=(Qn,Hn)=>a$2.forEach(Qn,(qn,Nn)=>zn(qn,Nn,Hn));if(a$2.isPlainObject(vn)||vn instanceof this.constructor)Kn(vn,_n);else if(a$2.isString(vn)&&(vn=vn.trim())&&!nn(vn))Kn(en(vn),_n);else if(a$2.isHeaders(vn))for(const[Qn,Hn]of vn.entries())zn(Hn,Qn,kn);else vn!=null&&zn(_n,vn,kn);return this}get(vn,_n){if(vn=j$2(vn),vn){const kn=a$2.findKey(this,vn);if(kn){const Wn=this[kn];if(!_n)return Wn;if(_n===!0)return tn(Wn);if(a$2.isFunction(_n))return _n.call(this,Wn,kn);if(a$2.isRegExp(_n))return _n.exec(Wn);throw new TypeError("parser must be boolean|regexp|function")}}}has(vn,_n){if(vn=j$2(vn),vn){const kn=a$2.findKey(this,vn);return!!(kn&&this[kn]!==void 0&&(!_n||ee$1(this,this[kn],kn,_n)))}return!1}delete(vn,_n){const kn=this;let Wn=!1;function zn(Kn){if(Kn=j$2(Kn),Kn){const Qn=a$2.findKey(kn,Kn);Qn&&(!_n||ee$1(kn,kn[Qn],Qn,_n))&&(delete kn[Qn],Wn=!0)}}return a$2.isArray(vn)?vn.forEach(zn):zn(vn),Wn}clear(vn){const _n=Object.keys(this);let kn=_n.length,Wn=!1;for(;kn--;){const zn=_n[kn];(!vn||ee$1(this,this[zn],zn,vn,!0))&&(delete this[zn],Wn=!0)}return Wn}normalize(vn){const _n=this,kn={};return a$2.forEach(this,(Wn,zn)=>{const Kn=a$2.findKey(kn,zn);if(Kn){_n[Kn]=J(Wn),delete _n[zn];return}const Qn=vn?rn(zn):String(zn).trim();Qn!==zn&&delete _n[zn],_n[Qn]=J(Wn),kn[Qn]=!0}),this}concat(...vn){return this.constructor.concat(this,...vn)}toJSON(vn){const _n=Object.create(null);return a$2.forEach(this,(kn,Wn)=>{kn!=null&&kn!==!1&&(_n[Wn]=vn&&a$2.isArray(kn)?kn.join(", "):kn)}),_n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([vn,_n])=>vn+": "+_n).join(`
|
1415
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(vn){return vn instanceof this?vn:new this(vn)}static concat(vn,..._n){const kn=new this(vn);return _n.forEach(Wn=>kn.set(Wn)),kn}static accessor(vn){const _n=(this[Ee$2]=this[Ee$2]={accessors:{}}).accessors,kn=this.prototype;function Wn(zn){const Kn=j$2(zn);_n[Kn]||(sn(kn,zn),_n[Kn]=!0)}return a$2.isArray(vn)?vn.forEach(Wn):Wn(vn),this}};A$4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a$2.reduceDescriptors(A$4.prototype,({value:e},vn)=>{let _n=vn[0].toUpperCase()+vn.slice(1);return{get:()=>e,set(kn){this[_n]=kn}}}),a$2.freezeMethods(A$4);function te$1(e,vn){const _n=this||H$2,kn=vn||_n,Wn=A$4.from(kn.headers);let zn=kn.data;return a$2.forEach(e,function(Kn){zn=Kn.call(_n,zn,Wn.normalize(),vn?vn.status:void 0)}),Wn.normalize(),zn}function Je$1(e){return!!(e&&e.__CANCEL__)}function k$8(e,vn,_n){m$8.call(this,e??"canceled",m$8.ERR_CANCELED,vn,_n),this.name="CanceledError"}a$2.inherits(k$8,m$8,{__CANCEL__:!0});function Ve$1(e,vn,_n){const kn=_n.config.validateStatus;!_n.status||!kn||kn(_n.status)?e(_n):vn(new m$8("Request failed with status code "+_n.status,[m$8.ERR_BAD_REQUEST,m$8.ERR_BAD_RESPONSE][Math.floor(_n.status/100)-4],_n.config,_n.request,_n))}function on(e){const vn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return vn&&vn[1]||""}function an(e,vn){e=e||10;const _n=new Array(e),kn=new Array(e);let Wn=0,zn=0,Kn;return vn=vn!==void 0?vn:1e3,function(Qn){const Hn=Date.now(),qn=kn[zn];Kn||(Kn=Hn),_n[Wn]=Qn,kn[Wn]=Hn;let Nn=zn,Dn=0;for(;Nn!==Wn;)Dn+=_n[Nn++],Nn=Nn%e;if(Wn=(Wn+1)%e,Wn===zn&&(zn=(zn+1)%e),Hn-Kn<vn)return;const In=qn&&Hn-qn;return In?Math.round(Dn*1e3/In):void 0}}function cn(e,vn){let _n=0,kn=1e3/vn,Wn,zn;const Kn=(Qn,Hn=Date.now())=>{_n=Hn,Wn=null,zn&&(clearTimeout(zn),zn=null),e.apply(null,Qn)};return[(...Qn)=>{const Hn=Date.now(),qn=Hn-_n;qn>=kn?Kn(Qn,Hn):(Wn=Qn,zn||(zn=setTimeout(()=>{zn=null,Kn(Wn)},kn-qn)))},()=>Wn&&Kn(Wn)]}const $$7=(e,vn,_n=3)=>{let kn=0;const Wn=an(50,250);return cn(zn=>{const Kn=zn.loaded,Qn=zn.lengthComputable?zn.total:void 0,Hn=Kn-kn,qn=Wn(Hn),Nn=Kn<=Qn;kn=Kn;const Dn={loaded:Kn,total:Qn,progress:Qn?Kn/Qn:void 0,bytes:Hn,rate:qn||void 0,estimated:qn&&Qn&&Nn?(Qn-Kn)/qn:void 0,event:zn,lengthComputable:Qn!=null,[vn?"download":"upload"]:!0};e(Dn)},_n)},Re$1=(e,vn)=>{const _n=e!=null;return[kn=>vn[0]({lengthComputable:_n,total:e,loaded:kn}),vn[1]]},Se$3=e=>(...vn)=>a$2.asap(()=>e(...vn)),un=O$2.hasStandardBrowserEnv?((e,vn)=>_n=>(_n=new URL(_n,O$2.origin),e.protocol===_n.protocol&&e.host===_n.host&&(vn||e.port===_n.port)))(new URL(O$2.origin),O$2.navigator&&/(msie|trident)/i.test(O$2.navigator.userAgent)):()=>!0,ln=O$2.hasStandardBrowserEnv?{write(e,vn,_n,kn,Wn,zn){const Kn=[e+"="+encodeURIComponent(vn)];a$2.isNumber(_n)&&Kn.push("expires="+new Date(_n).toGMTString()),a$2.isString(kn)&&Kn.push("path="+kn),a$2.isString(Wn)&&Kn.push("domain="+Wn),zn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(e){const vn=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return vn?decodeURIComponent(vn[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,vn){return vn?e.replace(/\/?\/$/,"")+"/"+vn.replace(/^\/+/,""):e}function $e$2(e,vn){return e&&!fn(vn)?dn(e,vn):vn}const ge$3=e=>e instanceof A$4?{...e}:e;function D$2(e,vn){vn=vn||{};const _n={};function kn(qn,Nn,Dn,In){return a$2.isPlainObject(qn)&&a$2.isPlainObject(Nn)?a$2.merge.call({caseless:In},qn,Nn):a$2.isPlainObject(Nn)?a$2.merge({},Nn):a$2.isArray(Nn)?Nn.slice():Nn}function Wn(qn,Nn,Dn,In){if(a$2.isUndefined(Nn)){if(!a$2.isUndefined(qn))return kn(void 0,qn,Dn,In)}else return kn(qn,Nn,Dn,In)}function zn(qn,Nn){if(!a$2.isUndefined(Nn))return kn(void 0,Nn)}function Kn(qn,Nn){if(a$2.isUndefined(Nn)){if(!a$2.isUndefined(qn))return kn(void 0,qn)}else return kn(void 0,Nn)}function Qn(qn,Nn,Dn){if(Dn in vn)return kn(qn,Nn);if(Dn in e)return kn(void 0,qn)}const Hn={url:zn,method:zn,data:zn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Qn,headers:(qn,Nn,Dn)=>Wn(ge$3(qn),ge$3(Nn),Dn,!0)};return a$2.forEach(Object.keys(Object.assign({},e,vn)),function(qn){const Nn=Hn[qn]||Wn,Dn=Nn(e[qn],vn[qn],qn);a$2.isUndefined(Dn)&&Nn!==Qn||(_n[qn]=Dn)}),_n}const We$2=e=>{const vn=D$2({},e);let{data:_n,withXSRFToken:kn,xsrfHeaderName:Wn,xsrfCookieName:zn,headers:Kn,auth:Qn}=vn;vn.headers=Kn=A$4.from(Kn),vn.url=He$2($e$2(vn.baseURL,vn.url),e.params,e.paramsSerializer),Qn&&Kn.set("Authorization","Basic "+btoa((Qn.username||"")+":"+(Qn.password?unescape(encodeURIComponent(Qn.password)):"")));let Hn;if(a$2.isFormData(_n)){if(O$2.hasStandardBrowserEnv||O$2.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((Hn=Kn.getContentType())!==!1){const[qn,...Nn]=Hn?Hn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([qn||"multipart/form-data",...Nn].join("; "))}}if(O$2.hasStandardBrowserEnv&&(kn&&a$2.isFunction(kn)&&(kn=kn(vn)),kn||kn!==!1&&un(vn.url))){const qn=Wn&&zn&&ln.read(zn);qn&&Kn.set(Wn,qn)}return vn},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(vn,_n){const kn=We$2(e);let Wn=kn.data;const zn=A$4.from(kn.headers).normalize();let{responseType:Kn,onUploadProgress:Qn,onDownloadProgress:Hn}=kn,qn,Nn,Dn,In,Bn;function Ln(){In&&In(),Bn&&Bn(),kn.cancelToken&&kn.cancelToken.unsubscribe(qn),kn.signal&&kn.signal.removeEventListener("abort",qn)}let Pn=new XMLHttpRequest;Pn.open(kn.method.toUpperCase(),kn.url,!0),Pn.timeout=kn.timeout;function Zn(){if(!Pn)return;const Xn=A$4.from("getAllResponseHeaders"in Pn&&Pn.getAllResponseHeaders()),mi={data:!Kn||Kn==="text"||Kn==="json"?Pn.responseText:Pn.response,status:Pn.status,statusText:Pn.statusText,headers:Xn,config:e,request:Pn};Ve$1(function(li){vn(li),Ln()},function(li){_n(li),Ln()},mi),Pn=null}"onloadend"in Pn?Pn.onloadend=Zn:Pn.onreadystatechange=function(){!Pn||Pn.readyState!==4||Pn.status===0&&!(Pn.responseURL&&Pn.responseURL.indexOf("file:")===0)||setTimeout(Zn)},Pn.onabort=function(){Pn&&(_n(new m$8("Request aborted",m$8.ECONNABORTED,e,Pn)),Pn=null)},Pn.onerror=function(){_n(new m$8("Network Error",m$8.ERR_NETWORK,e,Pn)),Pn=null},Pn.ontimeout=function(){let Xn=kn.timeout?"timeout of "+kn.timeout+"ms exceeded":"timeout exceeded";const mi=kn.transitional||Me$2;kn.timeoutErrorMessage&&(Xn=kn.timeoutErrorMessage),_n(new m$8(Xn,mi.clarifyTimeoutError?m$8.ETIMEDOUT:m$8.ECONNABORTED,e,Pn)),Pn=null},Wn===void 0&&zn.setContentType(null),"setRequestHeader"in Pn&&a$2.forEach(zn.toJSON(),function(Xn,mi){Pn.setRequestHeader(mi,Xn)}),a$2.isUndefined(kn.withCredentials)||(Pn.withCredentials=!!kn.withCredentials),Kn&&Kn!=="json"&&(Pn.responseType=kn.responseType),Hn&&([Dn,Bn]=$$7(Hn,!0),Pn.addEventListener("progress",Dn)),Qn&&Pn.upload&&([Nn,In]=$$7(Qn),Pn.upload.addEventListener("progress",Nn),Pn.upload.addEventListener("loadend",In)),(kn.cancelToken||kn.signal)&&(qn=Xn=>{Pn&&(_n(!Xn||Xn.type?new k$8(null,e,Pn):Xn),Pn.abort(),Pn=null)},kn.cancelToken&&kn.cancelToken.subscribe(qn),kn.signal&&(kn.signal.aborted?qn():kn.signal.addEventListener("abort",qn)));const Jn=on(kn.url);if(Jn&&O$2.protocols.indexOf(Jn)===-1){_n(new m$8("Unsupported protocol "+Jn+":",m$8.ERR_BAD_REQUEST,e));return}Pn.send(Wn||null)})},mn=(e,vn)=>{const{length:_n}=e=e?e.filter(Boolean):[];if(vn||_n){let kn=new AbortController,Wn;const zn=function(qn){if(!Wn){Wn=!0,Qn();const Nn=qn instanceof Error?qn:this.reason;kn.abort(Nn instanceof m$8?Nn:new k$8(Nn instanceof Error?Nn.message:Nn))}};let Kn=vn&&setTimeout(()=>{Kn=null,zn(new m$8(`timeout ${vn} of ms exceeded`,m$8.ETIMEDOUT))},vn);const Qn=()=>{e&&(Kn&&clearTimeout(Kn),Kn=null,e.forEach(qn=>{qn.unsubscribe?qn.unsubscribe(zn):qn.removeEventListener("abort",zn)}),e=null)};e.forEach(qn=>qn.addEventListener("abort",zn));const{signal:Hn}=kn;return Hn.unsubscribe=()=>a$2.asap(Qn),Hn}},yn=function*(e,vn){let _n=e.byteLength;if(_n<vn){yield e;return}let kn=0,Wn;for(;kn<_n;)Wn=kn+vn,yield e.slice(kn,Wn),kn=Wn},bn=async function*(e,vn){for await(const _n of wn(e))yield*yn(_n,vn)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const vn=e.getReader();try{for(;;){const{done:_n,value:kn}=await vn.read();if(_n)break;yield kn}}finally{await vn.cancel()}},Oe$2=(e,vn,_n,kn)=>{const Wn=bn(e,vn);let zn=0,Kn,Qn=Hn=>{Kn||(Kn=!0,kn&&kn(Hn))};return new ReadableStream({async pull(Hn){try{const{done:qn,value:Nn}=await Wn.next();if(qn){Qn(),Hn.close();return}let Dn=Nn.byteLength;if(_n){let In=zn+=Dn;_n(In)}Hn.enqueue(new Uint8Array(Nn))}catch(qn){throw Qn(qn),qn}},cancel(Hn){return Qn(Hn),Wn.return()}},{highWaterMark:2})},Q$1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke$1=Q$1&&typeof ReadableStream=="function",En=Q$1&&(typeof TextEncoder=="function"?(e=>vn=>e.encode(vn))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ve$3=(e,...vn)=>{try{return!!e(...vn)}catch{return!1}},Rn=Ke$1&&ve$3(()=>{let e=!1;const vn=new Request(O$2.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!vn}),Te$3=64*1024,ie$1=Ke$1&&ve$3(()=>a$2.isReadableStream(new Response("").body)),W$2={stream:ie$1&&(e=>e.body)};Q$1&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(vn=>{!W$2[vn]&&(W$2[vn]=a$2.isFunction(e[vn])?_n=>_n[vn]():(_n,kn)=>{throw new m$8(`Response type '${vn}' is not supported`,m$8.ERR_NOT_SUPPORT,kn)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a$2.isBlob(e))return e.size;if(a$2.isSpecCompliantForm(e))return(await new Request(O$2.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a$2.isArrayBufferView(e)||a$2.isArrayBuffer(e))return e.byteLength;if(a$2.isURLSearchParams(e)&&(e=e+""),a$2.isString(e))return(await En(e)).byteLength},gn=async(e,vn)=>a$2.toFiniteNumber(e.getContentLength())??Sn(vn),On=Q$1&&(async e=>{let{url:vn,method:_n,data:kn,signal:Wn,cancelToken:zn,timeout:Kn,onDownloadProgress:Qn,onUploadProgress:Hn,responseType:qn,headers:Nn,withCredentials:Dn="same-origin",fetchOptions:In}=We$2(e);qn=qn?(qn+"").toLowerCase():"text";let Bn=mn([Wn,zn&&zn.toAbortSignal()],Kn),Ln;const Pn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Zn;try{if(Hn&&Rn&&_n!=="get"&&_n!=="head"&&(Zn=await gn(Nn,kn))!==0){let oi=new Request(vn,{method:"POST",body:kn,duplex:"half"}),ei;if(a$2.isFormData(kn)&&(ei=oi.headers.get("content-type"))&&Nn.setContentType(ei),oi.body){const[fi,gi]=Re$1(Zn,$$7(Se$3(Hn)));kn=Oe$2(oi.body,Te$3,fi,gi)}}a$2.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Ln=new Request(vn,{...In,signal:Bn,method:_n.toUpperCase(),headers:Nn.normalize().toJSON(),body:kn,duplex:"half",credentials:Jn?Dn:void 0});let Xn=await fetch(Ln);const mi=ie$1&&(qn==="stream"||qn==="response");if(ie$1&&(Qn||mi&&Pn)){const oi={};["status","statusText","headers"].forEach(yi=>{oi[yi]=Xn[yi]});const ei=a$2.toFiniteNumber(Xn.headers.get("content-length")),[fi,gi]=Qn&&Re$1(ei,$$7(Se$3(Qn),!0))||[];Xn=new Response(Oe$2(Xn.body,Te$3,fi,()=>{gi&&gi(),Pn&&Pn()}),oi)}qn=qn||"text";let li=await W$2[a$2.findKey(W$2,qn)||"text"](Xn,e);return!mi&&Pn&&Pn(),await new Promise((oi,ei)=>{Ve$1(oi,ei,{data:li,headers:A$4.from(Xn.headers),status:Xn.status,statusText:Xn.statusText,config:e,request:Ln})})}catch(Jn){throw Pn&&Pn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new m$8("Network Error",m$8.ERR_NETWORK,e,Ln),{cause:Jn.cause||Jn}):m$8.from(Jn,Jn&&Jn.code,e,Ln)}}),ae$2={http:jt,xhr:hn,fetch:On};a$2.forEach(ae$2,(e,vn)=>{if(e){try{Object.defineProperty(e,"name",{value:vn})}catch{}Object.defineProperty(e,"adapterName",{value:vn})}});const Ae$2=e=>`- ${e}`,Tn=e=>a$2.isFunction(e)||e===null||e===!1,Xe$2={getAdapter:e=>{e=a$2.isArray(e)?e:[e];const{length:vn}=e;let _n,kn;const Wn={};for(let zn=0;zn<vn;zn++){_n=e[zn];let Kn;if(kn=_n,!Tn(_n)&&(kn=ae$2[(Kn=String(_n)).toLowerCase()],kn===void 0))throw new m$8(`Unknown adapter '${Kn}'`);if(kn)break;Wn[Kn||"#"+zn]=kn}if(!kn){const zn=Object.entries(Wn).map(([Qn,Hn])=>`adapter ${Qn} `+(Hn===!1?"is not supported by the environment":"is not available in the build"));let Kn=vn?zn.length>1?`since :
|
1416
|
+
`+zn.map(Ae$2).join(`
|
1417
|
+
`):" "+Ae$2(zn[0]):"as no adapter specified";throw new m$8("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return kn},adapters:ae$2};function ne$2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k$8(null,e)}function xe$2(e){return ne$2(e),e.headers=A$4.from(e.headers),e.data=te$1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe$2.getAdapter(e.adapter||H$2.adapter)(e).then(function(vn){return ne$2(e),vn.data=te$1.call(e,e.transformResponse,vn),vn.headers=A$4.from(vn.headers),vn},function(vn){return Je$1(vn)||(ne$2(e),vn&&vn.response&&(vn.response.data=te$1.call(e,e.transformResponse,vn.response),vn.response.headers=A$4.from(vn.response.headers))),Promise.reject(vn)})}const Ge$1="1.7.9",Z$2={};["object","boolean","number","function","string","symbol"].forEach((e,vn)=>{Z$2[e]=function(_n){return typeof _n===e||"a"+(vn<1?"n ":" ")+e}});const Ce$2={};Z$2.transitional=function(e,vn,_n){function kn(Wn,zn){return"[Axios v"+Ge$1+"] Transitional option '"+Wn+"'"+zn+(_n?". "+_n:"")}return(Wn,zn,Kn)=>{if(e===!1)throw new m$8(kn(zn," has been removed"+(vn?" in "+vn:"")),m$8.ERR_DEPRECATED);return vn&&!Ce$2[zn]&&(Ce$2[zn]=!0,console.warn(kn(zn," has been deprecated since v"+vn+" and will be removed in the near future"))),e?e(Wn,zn,Kn):!0}},Z$2.spelling=function(e){return(vn,_n)=>(console.warn(`${_n} is likely a misspelling of ${e}`),!0)};function An(e,vn,_n){if(typeof e!="object")throw new m$8("options must be an object",m$8.ERR_BAD_OPTION_VALUE);const kn=Object.keys(e);let Wn=kn.length;for(;Wn-- >0;){const zn=kn[Wn],Kn=vn[zn];if(Kn){const Qn=e[zn],Hn=Qn===void 0||Kn(Qn,zn,e);if(Hn!==!0)throw new m$8("option "+zn+" must be "+Hn,m$8.ERR_BAD_OPTION_VALUE);continue}if(_n!==!0)throw new m$8("Unknown option "+zn,m$8.ERR_BAD_OPTION)}}const V$3={assertOptions:An,validators:Z$2},N$4=V$3.validators;let B$6=class{constructor(vn){this.defaults=vn,this.interceptors={request:new we$3,response:new we$3}}async request(vn,_n){try{return await this._request(vn,_n)}catch(kn){if(kn instanceof Error){let Wn={};Error.captureStackTrace?Error.captureStackTrace(Wn):Wn=new Error;const zn=Wn.stack?Wn.stack.replace(/^.+\n/,""):"";try{kn.stack?zn&&!String(kn.stack).endsWith(zn.replace(/^.+\n.+\n/,""))&&(kn.stack+=`
|
1418
|
+
`+zn):kn.stack=zn}catch{}}throw kn}}_request(vn,_n){typeof vn=="string"?(_n=_n||{},_n.url=vn):_n=vn||{},_n=D$2(this.defaults,_n);const{transitional:kn,paramsSerializer:Wn,headers:zn}=_n;kn!==void 0&&V$3.assertOptions(kn,{silentJSONParsing:N$4.transitional(N$4.boolean),forcedJSONParsing:N$4.transitional(N$4.boolean),clarifyTimeoutError:N$4.transitional(N$4.boolean)},!1),Wn!=null&&(a$2.isFunction(Wn)?_n.paramsSerializer={serialize:Wn}:V$3.assertOptions(Wn,{encode:N$4.function,serialize:N$4.function},!0)),V$3.assertOptions(_n,{baseUrl:N$4.spelling("baseURL"),withXsrfToken:N$4.spelling("withXSRFToken")},!0),_n.method=(_n.method||this.defaults.method||"get").toLowerCase();let Kn=zn&&a$2.merge(zn.common,zn[_n.method]);zn&&a$2.forEach(["delete","get","head","post","put","patch","common"],Ln=>{delete zn[Ln]}),_n.headers=A$4.concat(Kn,zn);const Qn=[];let Hn=!0;this.interceptors.request.forEach(function(Ln){typeof Ln.runWhen=="function"&&Ln.runWhen(_n)===!1||(Hn=Hn&&Ln.synchronous,Qn.unshift(Ln.fulfilled,Ln.rejected))});const qn=[];this.interceptors.response.forEach(function(Ln){qn.push(Ln.fulfilled,Ln.rejected)});let Nn,Dn=0,In;if(!Hn){const Ln=[xe$2.bind(this),void 0];for(Ln.unshift.apply(Ln,Qn),Ln.push.apply(Ln,qn),In=Ln.length,Nn=Promise.resolve(_n);Dn<In;)Nn=Nn.then(Ln[Dn++],Ln[Dn++]);return Nn}In=Qn.length;let Bn=_n;for(Dn=0;Dn<In;){const Ln=Qn[Dn++],Pn=Qn[Dn++];try{Bn=Ln(Bn)}catch(Zn){Pn.call(this,Zn);break}}try{Nn=xe$2.call(this,Bn)}catch(Ln){return Promise.reject(Ln)}for(Dn=0,In=qn.length;Dn<In;)Nn=Nn.then(qn[Dn++],qn[Dn++]);return Nn}getUri(vn){vn=D$2(this.defaults,vn);const _n=$e$2(vn.baseURL,vn.url);return He$2(_n,vn.params,vn.paramsSerializer)}};a$2.forEach(["delete","get","head","options"],function(e){B$6.prototype[e]=function(vn,_n){return this.request(D$2(_n||{},{method:e,url:vn,data:(_n||{}).data}))}}),a$2.forEach(["post","put","patch"],function(e){function vn(_n){return function(kn,Wn,zn){return this.request(D$2(zn||{},{method:e,headers:_n?{"Content-Type":"multipart/form-data"}:{},url:kn,data:Wn}))}}B$6.prototype[e]=vn(),B$6.prototype[e+"Form"]=vn(!0)});let de$3=class Uy{constructor(vn){if(typeof vn!="function")throw new TypeError("executor must be a function.");let _n;this.promise=new Promise(function(Wn){_n=Wn});const kn=this;this.promise.then(Wn=>{if(!kn._listeners)return;let zn=kn._listeners.length;for(;zn-- >0;)kn._listeners[zn](Wn);kn._listeners=null}),this.promise.then=Wn=>{let zn;const Kn=new Promise(Qn=>{kn.subscribe(Qn),zn=Qn}).then(Wn);return Kn.cancel=function(){kn.unsubscribe(zn)},Kn},vn(function(Wn,zn,Kn){kn.reason||(kn.reason=new k$8(Wn,zn,Kn),_n(kn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(vn){if(this.reason){vn(this.reason);return}this._listeners?this._listeners.push(vn):this._listeners=[vn]}unsubscribe(vn){if(!this._listeners)return;const _n=this._listeners.indexOf(vn);_n!==-1&&this._listeners.splice(_n,1)}toAbortSignal(){const vn=new AbortController,_n=kn=>{vn.abort(kn)};return this.subscribe(_n),vn.signal.unsubscribe=()=>this.unsubscribe(_n),vn.signal}static source(){let vn;return{token:new Uy(function(_n){vn=_n}),cancel:vn}}};function xn(e){return function(vn){return e.apply(null,vn)}}function Cn(e){return a$2.isObject(e)&&e.isAxiosError===!0}const ce$2={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(ce$2).forEach(([e,vn])=>{ce$2[vn]=e});function Qe$1(e){const vn=new B$6(e),_n=Ne$2(B$6.prototype.request,vn);return a$2.extend(_n,B$6.prototype,vn,{allOwnKeys:!0}),a$2.extend(_n,vn,null,{allOwnKeys:!0}),_n.create=function(kn){return Qe$1(D$2(e,kn))},_n}const S$9=Qe$1(H$2);S$9.Axios=B$6,S$9.CanceledError=k$8,S$9.CancelToken=de$3,S$9.isCancel=Je$1,S$9.VERSION=Ge$1,S$9.toFormData=G,S$9.AxiosError=m$8,S$9.Cancel=S$9.CanceledError,S$9.all=function(e){return Promise.all(e)},S$9.spread=xn,S$9.isAxiosError=Cn,S$9.mergeConfig=D$2,S$9.AxiosHeaders=A$4,S$9.formToJSON=e=>ze$2(a$2.isHTMLForm(e)?new FormData(e):e),S$9.getAdapter=Xe$2.getAdapter,S$9.HttpStatusCode=ce$2,S$9.default=S$9;const S$8={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(e,vn){e?(Ok.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(_n=>{_n.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ok.get("/openc3-api/criticalcmd/status/"+this.uuid).then(_n=>{_n.data.status!=="WAITING"&&(this.$emit("status",_n.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();S$9.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(vn=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(vn=>{this.error=!0,vn.response?this.errorText=vn.response.data.message:this.errorText=vn.message})}},async reject(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();(await S$9.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await S$9.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function E$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-alert"),qn=vue.resolveComponent("v-row"),Nn=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-btn"),In=vue.resolveComponent("v-container"),Bn=vue.resolveComponent("v-card-text"),Ln=vue.resolveComponent("v-card"),Pn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Pn,{persistent:_n.persistent,modelValue:zn.show,"onUpdate:modelValue":vn[3]||(vn[3]=Zn=>zn.show=Zn),width:"600"},{default:vue.withCtx(()=>[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[4]||(vn[4]=vue.createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(Bn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{fluid:""},{default:vue.withCtx(()=>[vue.createVNode(Hn,{type:"error",modelValue:Wn.error,"onUpdate:modelValue":vn[0]||(vn[0]=Zn=>Wn.error=Zn),dismissible:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.errorText),1)]),_:1},8,["modelValue"]),vue.createVNode(qn,{class:"pt-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode("User "+vue.toDisplayString(_n.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),vue.createVNode(qn,{class:"pa-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_n.cmdString),1)]),_:1}),vue.createVNode(qn,{class:"text-subtitle-2"},{default:vue.withCtx(()=>[vue.createTextVNode("UUID: "+vue.toDisplayString(_n.uuid),1)]),_:1}),Wn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(qn,{key:0},{default:vue.withCtx(()=>[vue.createVNode(Nn,{modelValue:Wn.username,"onUpdate:modelValue":vn[1]||(vn[1]=Zn=>Wn.username=Zn),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),Wn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(qn,{key:1},{default:vue.withCtx(()=>[vue.createVNode(Nn,{modelValue:Wn.password,"onUpdate:modelValue":vn[2]||(vn[2]=Zn=>Wn.password=Zn),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),vue.createVNode(qn,{class:"pt-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(zn.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:zn.disableButtons,"data-test":"reject"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(zn.approve,["prevent"]),class:"mx-2",color:"primary",disabled:zn.disableButtons,"data-test":"approve"},{default:vue.withCtx(()=>vn[6]||(vn[6]=[vue.createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N$3=s$2(S$8,[["render",E$3],["__scopeId","data-v-edfbf188"]]),R$3={props:{type:{default:"tlm",validator:function(e){return["cmd","tlm"].indexOf(e)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){this.api=new Wk},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(e,vn){e?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(_n=>{for(let kn of _n){let Wn=null;if(kn[0].json_class==="String"&&kn[0].raw!==void 0?Wn=kn[0].raw:this.details.data_type==="BLOCK"&&(Wn=kn[0]),Wn!==null){Wn=Wn.slice(0,parseInt(this.details.bit_size)/8);let zn=!1;Wn.length>64&&(zn=!0),kn[0]=Array.from(Wn.slice(0,64),function(Kn){return Kn===" "?"20":("0"+(Kn&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),zn&&(kn[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${_n[0][0]} (0x${_n[0][0].toString(16).toUpperCase()})`:this.rawValue=_n[0][0],this.convertedValue=_n[1][0],this.formattedValue=_n[2][0],this.unitsValue=_n[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(e){let vn=!1;return e.limits.DEFAULT&&(vn=!0),e.states&&Object.getOwnPropertyNames(e.states).forEach(_n=>{e.states[_n].color&&(vn=!0)}),vn},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(e=>{this.details=e,this.hasLimits(e)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(e=>{this.details=e})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},T$3={key:5},z$7={key:7},B$5={key:3},A$3={key:9};function F$2(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-card-title"),qn=vue.resolveComponent("v-card-subtitle"),Nn=vue.resolveComponent("v-col"),Dn=vue.resolveComponent("v-row"),In=vue.resolveComponent("v-switch"),Bn=vue.resolveComponent("v-container"),Ln=vue.resolveComponent("v-card-text"),Pn=vue.resolveComponent("v-card"),Zn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Zn,{modelValue:zn.show,"onUpdate:modelValue":vn[1]||(vn[1]=Jn=>zn.show=Jn),width:"700"},{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:24},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[2]||(vn[2]=vue.createElementVNode("span",null," Details ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_n.targetName)+" "+vue.toDisplayString(_n.packetName)+" "+vue.toDisplayString(_n.itemName),1)]),_:1}),vue.createVNode(qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.description),1)]),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{fluid:""},{default:vue.withCtx(()=>[_n.type==="tlm"?(vue.openBlock(),vue.createBlock(Dn,{key:0,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[3]||(vn[3]=[vue.createTextVNode("Item Values")])),_:1}),vue.createVNode(Nn)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[4]||(vn[4]=[vue.createTextVNode("Raw Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.rawValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode("Converted Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.convertedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[6]||(vn[6]=[vue.createTextVNode("Formatted Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.formattedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[7]||(vn[7]=[vue.createTextVNode("With Units Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.unitsValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[8]||(vn[8]=[vue.createTextVNode("Bit Offset")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.bit_offset),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[9]||(vn[9]=[vue.createTextVNode("Bit Size")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.bit_size),1)]),_:1})]),_:1}),Wn.details.array_size?(vue.openBlock(),vue.createBlock(Dn,{key:1,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[10]||(vn[10]=[vue.createTextVNode("Array Size")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.array_size),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[11]||(vn[11]=[vue.createTextVNode("Data Type")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.data_type),1)]),_:1})]),_:1}),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:2,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[12]||(vn[12]=[vue.createTextVNode("Minimum")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.minimum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:3,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[13]||(vn[13]=[vue.createTextVNode("Maximum")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.maximum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:4,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[14]||(vn[14]=[vue.createTextVNode("Default")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.default),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[15]||(vn[15]=[vue.createTextVNode("Format String")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.format_string),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[16]||(vn[16]=[vue.createTextVNode("Read Conversion")])),_:1}),Wn.details.read_conversion?(vue.openBlock(),vue.createBlock(Nn,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(Wn.details.read_conversion.class)+" ",1),vn[17]||(vn[17]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(Wn.details.read_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(Nn,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[18]||(vn[18]=[vue.createTextVNode("Write Conversion")])),_:1}),Wn.details.write_conversion?(vue.openBlock(),vue.createBlock(Nn,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(Wn.details.write_conversion.class)+" ",1),vn[19]||(vn[19]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(Wn.details.write_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(Nn,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[20]||(vn[20]=[vue.createTextVNode("Id Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.id_value),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[21]||(vn[21]=[vue.createTextVNode("Units Full")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.units_full),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[22]||(vn[22]=[vue.createTextVNode("Units Abbr")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.units),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode("Endianness")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.details.endianness),1)]),_:1})]),_:1}),Wn.details.states?(vue.openBlock(),vue.createElementBlock("div",T$3,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Wn.details.states,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.value),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:6,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[25]||(vn[25]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode("None")])),_:1})]),_:1})),Wn.details.limits?(vue.openBlock(),vue.createElementBlock("div",z$7,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Wn.details.limits,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),Xn==="enabled"?(vue.openBlock(),vue.createBlock(Nn,{key:0,cols:"4",class:"label"},{default:vue.withCtx(()=>vn[28]||(vn[28]=[vue.createTextVNode("Enabled")])),_:1})):vue.createCommentVNode("",!0),Xn==="enabled"?(vue.openBlock(),vue.createBlock(In,{key:1,modelValue:Wn.details.limits.enabled,"onUpdate:modelValue":[vn[0]||(vn[0]=mi=>Wn.details.limits.enabled=mi),zn.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),Xn!=="enabled"?(vue.openBlock(),vue.createBlock(Nn,{key:2,cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024)):vue.createCommentVNode("",!0),Xn!=="enabled"?(vue.openBlock(),vue.createElementBlock("div",B$5,vue.toDisplayString(zn.formatLimit(Jn)),1)):vue.createCommentVNode("",!0),vue.createVNode(Nn)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:8,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[29]||(vn[29]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[30]||(vn[30]=[vue.createTextVNode("None")])),_:1})]),_:1})),Wn.details.meta?(vue.openBlock(),vue.createElementBlock("div",A$3,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[31]||(vn[31]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Wn.details.meta,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:10,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[32]||(vn[32]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[33]||(vn[33]=[vue.createTextVNode("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const P$1=s$2(R$3,[["render",F$2],["__scopeId","data-v-785491ee"]]);function q$1(e,vn,_n){const kn=l$3(e,void 0);return kn.setTime(kn.getTime()+vn*6e4),kn}function B$4(){return Object.assign({},v$a())}function Q(e,vn){const _n=()=>y$b(void 0,NaN),kn=te(e);let Wn;if(kn.date){const Hn=ne$1(kn.date,2);Wn=re$1(Hn.restDateString,Hn.year)}if(!Wn||isNaN(+Wn))return _n();const zn=+Wn;let Kn=0,Qn;if(kn.time&&(Kn=ae$1(kn.time),isNaN(Kn)))return _n();if(kn.timezone){if(Qn=se(kn.timezone),isNaN(Qn))return _n()}else{const Hn=new Date(zn+Kn),qn=l$3(0,void 0);return qn.setFullYear(Hn.getUTCFullYear(),Hn.getUTCMonth(),Hn.getUTCDate()),qn.setHours(Hn.getUTCHours(),Hn.getUTCMinutes(),Hn.getUTCSeconds(),Hn.getUTCMilliseconds()),qn}return l$3(zn+Kn+Qn,void 0)}const D$1={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},V$2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,K$1=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ee=/^([+-])(\d{2})(?::?(\d{2}))?$/;function te(e){const vn={},_n=e.split(D$1.dateTimeDelimiter);let kn;if(_n.length>2)return vn;if(/:/.test(_n[0])?kn=_n[0]:(vn.date=_n[0],kn=_n[1],D$1.timeZoneDelimiter.test(vn.date)&&(vn.date=e.split(D$1.timeZoneDelimiter)[0],kn=e.substr(vn.date.length,e.length))),kn){const Wn=D$1.timezone.exec(kn);Wn?(vn.time=kn.replace(Wn[1],""),vn.timezone=Wn[1]):vn.time=kn}return vn}function ne$1(e,vn){const _n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+vn)+"})|(\\d{2}|[+-]\\d{"+(2+vn)+"})$)"),kn=e.match(_n);if(!kn)return{year:NaN,restDateString:""};const Wn=kn[1]?parseInt(kn[1]):null,zn=kn[2]?parseInt(kn[2]):null;return{year:zn===null?Wn:zn*100,restDateString:e.slice((kn[1]||kn[2]).length)}}function re$1(e,vn){if(vn===null)return new Date(NaN);const _n=e.match(V$2);if(!_n)return new Date(NaN);const kn=!!_n[4],Wn=d$a(_n[1]),zn=d$a(_n[2])-1,Kn=d$a(_n[3]),Qn=d$a(_n[4]),Hn=d$a(_n[5])-1;if(kn)return fe$2(vn,Qn,Hn)?ie(vn,Qn,Hn):new Date(NaN);{const qn=new Date(0);return!ue$2(vn,zn,Kn)||!ce$1(vn,Wn)?new Date(NaN):(qn.setUTCFullYear(vn,zn,Math.max(Wn,Kn)),qn)}}function d$a(e){return e?parseInt(e):1}function ae$1(e){const vn=e.match(K$1);if(!vn)return NaN;const _n=p$b(vn[1]),kn=p$b(vn[2]),Wn=p$b(vn[3]);return le$2(_n,kn,Wn)?_n*36e5+kn*6e4+Wn*1e3:NaN}function p$b(e){return e&&parseFloat(e.replace(",","."))||0}function se(e){if(e==="Z")return 0;const vn=e.match(ee);if(!vn)return 0;const _n=vn[1]==="+"?-1:1,kn=parseInt(vn[2]),Wn=vn[3]&&parseInt(vn[3])||0;return me$2(kn,Wn)?_n*(kn*36e5+Wn*6e4):NaN}function ie(e,vn,_n){const kn=new Date(0);kn.setUTCFullYear(e,0,4);const Wn=kn.getUTCDay()||7,zn=(vn-1)*7+_n+1-Wn;return kn.setUTCDate(kn.getUTCDate()+zn),kn}const oe$1=[31,null,31,30,31,30,31,31,30,31,30,31];function v$8(e){return e%400===0||e%4===0&&e%100!==0}function ue$2(e,vn,_n){return vn>=0&&vn<=11&&_n>=1&&_n<=(oe$1[vn]||(v$8(e)?29:28))}function ce$1(e,vn){return vn>=1&&vn<=(v$8(e)?366:365)}function fe$2(e,vn,_n){return vn>=1&&vn<=53&&_n>=0&&_n<=6}function le$2(e,vn,_n){return e===24?vn===0&&_n===0:_n>=0&&_n<60&&vn>=0&&vn<60&&e>=0&&e<25}function me$2(e,vn){return vn>=0&&vn<=59}function de$2(e,vn,_n){return q$1(e,-vn)}function H$1(e,vn,_n){const kn=B$4(),Wn=Ne$1(e,_n.timeZone,_n.locale??kn.locale);return"formatToParts"in Wn?De$2(Wn,vn):Te$2(Wn,vn)}function De$2(e,vn){const _n=e.formatToParts(vn);for(let kn=_n.length-1;kn>=0;--kn)if(_n[kn].type==="timeZoneName")return _n[kn].value}function Te$2(e,vn){const _n=e.format(vn).replace(/\u200E/g,""),kn=/ [\w-+ ]+$/.exec(_n);return kn?kn[0].substr(1):""}function Ne$1(e,vn,_n){return new Intl.DateTimeFormat(_n?[_n.code,"en-US"]:void 0,{timeZone:vn,timeZoneName:e})}function ge$2(e,vn){const _n=Me$1(vn);return"formatToParts"in _n?he$2(_n,e):Ie$1(_n,e)}const pe$2={year:0,month:1,day:2,hour:3,minute:4,second:5};function he$2(e,vn){try{const _n=e.formatToParts(vn),kn=[];for(let Wn=0;Wn<_n.length;Wn++){const zn=pe$2[_n[Wn].type];zn!==void 0&&(kn[zn]=parseInt(_n[Wn].value,10))}return kn}catch(_n){if(_n instanceof RangeError)return[NaN];throw _n}}function Ie$1(e,vn){const _n=e.format(vn),kn=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(_n);return[parseInt(kn[3],10),parseInt(kn[1],10),parseInt(kn[2],10),parseInt(kn[4],10),parseInt(kn[5],10),parseInt(kn[6],10)]}const h$e={},F$1=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")),we$2=F$1==="06/25/2014, 00:00:00"||F$1==="06/25/2014 00:00:00";function Me$1(e){return h$e[e]||(h$e[e]=we$2?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),h$e[e]}function k$7(e,vn,_n,kn,Wn,zn,Kn){const Qn=new Date(0);return Qn.setUTCFullYear(e,vn,_n),Qn.setUTCHours(kn,Wn,zn,Kn),Qn}const y$a=36e5,Ye$1=6e4,I$2={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function z$6(e,vn,_n){if(!e)return 0;let kn=I$2.timezoneZ.exec(e);if(kn)return 0;let Wn,zn;if(kn=I$2.timezoneHH.exec(e),kn)return Wn=parseInt(kn[1],10),Z$1(Wn)?-(Wn*y$a):NaN;if(kn=I$2.timezoneHHMM.exec(e),kn){Wn=parseInt(kn[2],10);const Kn=parseInt(kn[3],10);return Z$1(Wn,Kn)?(zn=Math.abs(Wn)*y$a+Kn*Ye$1,kn[1]==="+"?-zn:zn):NaN}if(Ue$1(e)){vn=new Date(vn||Date.now());const Kn=_n?vn:Oe$1(vn),Qn=U$3(Kn,e);return-(_n?Qn:xe$1(vn,Qn,e))}return NaN}function Oe$1(e){return k$7(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function U$3(e,vn){const _n=ge$2(e,vn),kn=k$7(_n[0],_n[1]-1,_n[2],_n[3]%24,_n[4],_n[5],0).getTime();let Wn=e.getTime();const zn=Wn%1e3;return Wn-=zn>=0?zn:1e3+zn,kn-Wn}function xe$1(e,vn,_n){let kn=e.getTime()-vn;const Wn=U$3(new Date(kn),_n);if(vn===Wn)return vn;kn-=Wn-vn;const zn=U$3(new Date(kn),_n);return Wn===zn?Wn:Math.max(Wn,zn)}function Z$1(e,vn){return-23<=e&&e<=23&&(vn==null||0<=vn&&vn<=59)}const b$7={};function Ue$1(e){if(b$7[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),b$7[e]=!0,!0}catch{return!1}}const Ce$1=60*1e3,$e$1={X:function(e,vn,_n){const kn=w$5(_n.timeZone,e);if(kn===0)return"Z";switch(vn){case"X":return S$7(kn);case"XXXX":case"XX":return m$7(kn);case"XXXXX":case"XXX":default:return m$7(kn,":")}},x:function(e,vn,_n){const kn=w$5(_n.timeZone,e);switch(vn){case"x":return S$7(kn);case"xxxx":case"xx":return m$7(kn);case"xxxxx":case"xxx":default:return m$7(kn,":")}},O:function(e,vn,_n){const kn=w$5(_n.timeZone,e);switch(vn){case"O":case"OO":case"OOO":return"GMT"+ze$1(kn,":");case"OOOO":default:return"GMT"+m$7(kn,":")}},z:function(e,vn,_n){switch(vn){case"z":case"zz":case"zzz":return H$1("short",e,_n);case"zzzz":default:return H$1("long",e,_n)}}};function w$5(e,vn){const _n=e?z$6(e,vn,!0)/Ce$1:(vn==null?void 0:vn.getTimezoneOffset())??0;if(Number.isNaN(_n))throw new RangeError("Invalid time zone specified: "+e);return _n}function N$2(e,vn){const _n=e<0?"-":"";let kn=Math.abs(e).toString();for(;kn.length<vn;)kn="0"+kn;return _n+kn}function m$7(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),Wn=N$2(Math.floor(kn/60),2),zn=N$2(Math.floor(kn%60),2);return _n+Wn+vn+zn}function S$7(e,vn){return e%60===0?(e>0?"-":"+")+N$2(Math.abs(e)/60,2):m$7(e,vn)}function ze$1(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),Wn=Math.floor(kn/60),zn=kn%60;return zn===0?_n+String(Wn):_n+String(Wn)+vn+N$2(zn,2)}function _$7(e){const vn=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return vn.setUTCFullYear(e.getFullYear()),+e-+vn}const He$1=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,M$2=36e5,L$3=6e4,Fe$1=2,f$f={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:He$1};function P(e,vn={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const _n=vn.additionalDigits==null?Fe$1:Number(vn.additionalDigits);if(_n!==2&&_n!==1&&_n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const kn=ye$2(e),{year:Wn,restDateString:zn}=Ze$1(kn.date,_n),Kn=be$2(zn,Wn);if(Kn===null||isNaN(Kn.getTime()))return new Date(NaN);if(Kn){const Qn=Kn.getTime();let Hn=0,qn;if(kn.time&&(Hn=Se$2(kn.time),Hn===null||isNaN(Hn)))return new Date(NaN);if(kn.timeZone||vn.timeZone){if(qn=z$6(kn.timeZone||vn.timeZone,new Date(Qn+Hn)),isNaN(qn))return new Date(NaN)}else qn=_$7(new Date(Qn+Hn)),qn=_$7(new Date(Qn+Hn+qn));return new Date(Qn+Hn+qn)}else return new Date(NaN)}function ye$2(e){const vn={};let _n=f$f.dateTimePattern.exec(e),kn;if(_n?(vn.date=_n[1],kn=_n[3]):(_n=f$f.datePattern.exec(e),_n?(vn.date=_n[1],kn=_n[2]):(vn.date=null,kn=e)),kn){const Wn=f$f.timeZone.exec(kn);Wn?(vn.time=kn.replace(Wn[1],""),vn.timeZone=Wn[1].trim()):vn.time=kn}return vn}function Ze$1(e,vn){if(e){const _n=f$f.YYY[vn],kn=f$f.YYYYY[vn];let Wn=f$f.YYYY.exec(e)||kn.exec(e);if(Wn){const zn=Wn[1];return{year:parseInt(zn,10),restDateString:e.slice(zn.length)}}if(Wn=f$f.YY.exec(e)||_n.exec(e),Wn){const zn=Wn[1];return{year:parseInt(zn,10)*100,restDateString:e.slice(zn.length)}}}return{year:null}}function be$2(e,vn){if(vn===null)return null;let _n,kn,Wn;if(!e||!e.length)return _n=new Date(0),_n.setUTCFullYear(vn),_n;let zn=f$f.MM.exec(e);if(zn)return _n=new Date(0),kn=parseInt(zn[1],10)-1,W$1(vn,kn)?(_n.setUTCFullYear(vn,kn),_n):new Date(NaN);if(zn=f$f.DDD.exec(e),zn){_n=new Date(0);const Kn=parseInt(zn[1],10);return Ee$1(vn,Kn)?(_n.setUTCFullYear(vn,0,Kn),_n):new Date(NaN)}if(zn=f$f.MMDD.exec(e),zn){_n=new Date(0),kn=parseInt(zn[1],10)-1;const Kn=parseInt(zn[2],10);return W$1(vn,kn,Kn)?(_n.setUTCFullYear(vn,kn,Kn),_n):new Date(NaN)}if(zn=f$f.Www.exec(e),zn)return Wn=parseInt(zn[1],10)-1,X(Wn)?E$2(vn,Wn):new Date(NaN);if(zn=f$f.WwwD.exec(e),zn){Wn=parseInt(zn[1],10)-1;const Kn=parseInt(zn[2],10)-1;return X(Wn,Kn)?E$2(vn,Wn,Kn):new Date(NaN)}return null}function Se$2(e){let vn,_n,kn=f$f.HH.exec(e);if(kn)return vn=parseFloat(kn[1].replace(",",".")),Y(vn)?vn%24*M$2:NaN;if(kn=f$f.HHMM.exec(e),kn)return vn=parseInt(kn[1],10),_n=parseFloat(kn[2].replace(",",".")),Y(vn,_n)?vn%24*M$2+_n*L$3:NaN;if(kn=f$f.HHMMSS.exec(e),kn){vn=parseInt(kn[1],10),_n=parseInt(kn[2],10);const Wn=parseFloat(kn[3].replace(",","."));return Y(vn,_n,Wn)?vn%24*M$2+_n*L$3+Wn*1e3:NaN}return null}function E$2(e,vn,_n){vn=vn||0,_n=_n||0;const kn=new Date(0);kn.setUTCFullYear(e,0,4);const Wn=kn.getUTCDay()||7,zn=vn*7+_n+1-Wn;return kn.setUTCDate(kn.getUTCDate()+zn),kn}const _e$1=[31,28,31,30,31,30,31,31,30,31,30,31],Le$1=[31,29,31,30,31,30,31,31,30,31,30,31];function R$2(e){return e%400===0||e%4===0&&e%100!==0}function W$1(e,vn,_n){if(vn<0||vn>11)return!1;if(_n!=null){if(_n<1)return!1;const kn=R$2(e);if(kn&&_n>Le$1[vn]||!kn&&_n>_e$1[vn])return!1}return!0}function Ee$1(e,vn){if(vn<1)return!1;const _n=R$2(e);return!(_n&&vn>366||!_n&&vn>365)}function X(e,vn){return!(e<0||e>52||vn!=null&&(vn<0||vn>6))}function Y(e,vn,_n){return!(e<0||e>=25||vn!=null&&(vn<0||vn>=60)||_n!=null&&(_n<0||_n>=60))}const We$1=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Xe$1(e,vn,_n={}){vn=String(vn);const kn=vn.match(We$1);if(kn){const Wn=P(_n.originalDate||e,_n);vn=kn.reduce(function(zn,Kn){if(Kn[0]==="'")return zn;const Qn=zn.indexOf(Kn),Hn=zn[Qn-1]==="'",qn=zn.replace(Kn,"'"+$e$1[Kn[0]](Wn,Kn,_n)+"'");return Hn?qn.substring(0,Qn-1)+qn.substring(Qn+1):qn},vn)}return pe$3(e,vn,_n)}function Ae$1(e,vn,_n){e=P(e,_n);const kn=z$6(vn,e,!0),Wn=new Date(e.getTime()-kn),zn=new Date(0);return zn.setFullYear(Wn.getUTCFullYear(),Wn.getUTCMonth(),Wn.getUTCDate()),zn.setHours(Wn.getUTCHours(),Wn.getUTCMinutes(),Wn.getUTCSeconds(),Wn.getUTCMilliseconds()),zn}function O$1(e,vn,_n,kn){return kn={...kn,timeZone:vn,originalDate:e},Xe$1(Ae$1(e,vn,{timeZone:kn.timeZone}),_n,kn)}const C$1="yyyy-MM-dd",j$1="HH:mm:ss.SSS",ve$2="HH:mm:ss",T$2=`${C$1} ${j$1}`,Pe$1={methods:{parseDateTime(e,vn){return e.includes(" ")&&(e=e.replace(" ","T")),vn&&vn==="UTC"&&(e+="Z"),Date.parse(e)},formatUtcToLocal(e,vn){return pe$3(!vn||vn==="local"?de$2(e,e.getTimezoneOffset()):e,T$2)},formatDateTime(e,vn){return!vn||vn==="local"?pe$3(e,T$2):O$1(e,vn,T$2)},formatDate:function(e,vn){return!vn||vn==="local"?pe$3(e,C$1):O$1(e,this.timeZone,C$1)},formatTime:function(e,vn,_n=j$1){return!vn||vn==="local"?pe$3(e,_n):O$1(e,this.timeZone,_n)},formatTimeHMS:function(e,vn){return this.formatTime(e,vn,ve$2)},formatTimestamp(e,vn){return this.formatDateTime(Q(e),vn)},formatSeconds(e,vn){return this.formatDateTime(new Date(e*1e3),vn)},formatNanoseconds(e,vn){return this.formatDateTime(new Date(parseInt(e)/1e6),vn)}}};var j=Object.defineProperty,U$2=(e,vn,_n)=>vn in e?j(e,vn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):e[vn]=_n,i$1=(e,vn,_n)=>U$2(e,typeof vn!="symbol"?vn+"":vn,_n);function z$5(e,vn,_n){const kn=l$3(e,_n==null?void 0:_n.in);return isNaN(vn)?y$b((_n==null?void 0:_n.in)||e,NaN):(vn&&kn.setDate(kn.getDate()+vn),kn)}function ue$1(e,vn){const _n=l$3(e,void 0).getDay();return _n===0?7:_n}function le$1(e,vn){const _n=de$1(vn)?new vn(0):y$b(vn,0);return _n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),_n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),_n}function de$1(e){var vn;return typeof e=="function"&&((vn=e.prototype)==null?void 0:vn.constructor)===e}const we$1=10;class Z{constructor(){i$1(this,"subPriority",0)}validate(vn,_n){return!0}}let fe$1=class extends Z{constructor(vn,_n,kn,Wn,zn){super(),this.value=vn,this.validateValue=_n,this.setValue=kn,this.priority=Wn,zn&&(this.subPriority=zn)}validate(vn,_n){return this.validateValue(vn,this.value,_n)}set(vn,_n,kn){return this.setValue(vn,_n,this.value,kn)}},he$1=class extends Z{constructor(vn,_n){super(),i$1(this,"priority",we$1),i$1(this,"subPriority",-1),this.context=vn||(kn=>y$b(_n,kn))}set(vn,_n){return _n.timestampIsSet?vn:y$b(vn,le$1(vn,this.context))}},u$d=class{run(vn,_n,kn,Wn){const zn=this.parse(vn,_n,kn,Wn);return zn?{setter:new fe$1(zn.value,this.validate,this.set,this.priority,this.subPriority),rest:zn.rest}:null}validate(vn,_n,kn){return!0}},ye$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",140),i$1(this,"incompatibleTokens",["R","u","t","T"])}parse(vn,_n,kn){switch(_n){case"G":case"GG":case"GGG":return kn.era(vn,{width:"abbreviated"})||kn.era(vn,{width:"narrow"});case"GGGGG":return kn.era(vn,{width:"narrow"});case"GGGG":default:return kn.era(vn,{width:"wide"})||kn.era(vn,{width:"abbreviated"})||kn.era(vn,{width:"narrow"})}}set(vn,_n,kn){return _n.era=kn,vn.setFullYear(kn,0,1),vn.setHours(0,0,0,0),vn}};const f$e={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}/},b$6={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 h$d(e,vn){return e&&{value:vn(e.value),rest:e.rest}}function l$2(e,vn){const _n=vn.match(e);return _n?{value:parseInt(_n[0],10),rest:vn.slice(_n[0].length)}:null}function m$6(e,vn){const _n=vn.match(e);if(!_n)return null;if(_n[0]==="Z")return{value:0,rest:vn.slice(1)};const kn=_n[1]==="+"?1:-1,Wn=_n[2]?parseInt(_n[2],10):0,zn=_n[3]?parseInt(_n[3],10):0,Kn=_n[5]?parseInt(_n[5],10):0;return{value:kn*(Wn*36e5+zn*6e4+Kn*1e3),rest:vn.slice(_n[0].length)}}function K(e){return l$2(f$e.anyDigitsSigned,e)}function w$4(e,vn){switch(e){case 1:return l$2(f$e.singleDigit,vn);case 2:return l$2(f$e.twoDigits,vn);case 3:return l$2(f$e.threeDigits,vn);case 4:return l$2(f$e.fourDigits,vn);default:return l$2(new RegExp("^\\d{1,"+e+"}"),vn)}}function O(e,vn){switch(e){case 1:return l$2(f$e.singleDigitSigned,vn);case 2:return l$2(f$e.twoDigitsSigned,vn);case 3:return l$2(f$e.threeDigitsSigned,vn);case 4:return l$2(f$e.fourDigitsSigned,vn);default:return l$2(new RegExp("^-?\\d{1,"+e+"}"),vn)}}function I$1(e){switch(e){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 $$6(e,vn){const _n=vn>0,kn=_n?vn:1-vn;let Wn;if(kn<=50)Wn=e||100;else{const zn=kn+50,Kn=Math.trunc(zn/100)*100,Qn=e>=zn%100;Wn=e+Kn-(Qn?100:0)}return _n?Wn:1-Wn}function V$1(e){return e%400===0||e%4===0&&e%100!==0}class xe extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(vn,_n,kn){const Wn=zn=>({year:zn,isTwoDigitYear:_n==="yy"});switch(_n){case"y":return h$d(w$4(4,vn),Wn);case"yo":return h$d(kn.ordinalNumber(vn,{unit:"year"}),Wn);default:return h$d(w$4(_n.length,vn),Wn)}}validate(vn,_n){return _n.isTwoDigitYear||_n.year>0}set(vn,_n,kn){const Wn=vn.getFullYear();if(kn.isTwoDigitYear){const Kn=$$6(kn.year,Wn);return vn.setFullYear(Kn,0,1),vn.setHours(0,0,0,0),vn}const zn=!("era"in _n)||_n.era===1?kn.year:1-kn.year;return vn.setFullYear(zn,0,1),vn.setHours(0,0,0,0),vn}}let be$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(vn,_n,kn){const Wn=zn=>({year:zn,isTwoDigitYear:_n==="YY"});switch(_n){case"Y":return h$d(w$4(4,vn),Wn);case"Yo":return h$d(kn.ordinalNumber(vn,{unit:"year"}),Wn);default:return h$d(w$4(_n.length,vn),Wn)}}validate(vn,_n){return _n.isTwoDigitYear||_n.year>0}set(vn,_n,kn,Wn){const zn=L$5(vn,Wn);if(kn.isTwoDigitYear){const Qn=$$6(kn.year,zn);return vn.setFullYear(Qn,0,Wn.firstWeekContainsDate),vn.setHours(0,0,0,0),x$3(vn,Wn)}const Kn=!("era"in _n)||_n.era===1?kn.year:1-kn.year;return vn.setFullYear(Kn,0,Wn.firstWeekContainsDate),vn.setHours(0,0,0,0),x$3(vn,Wn)}},me$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(vn,_n){return O(_n==="R"?4:_n.length,vn)}set(vn,_n,kn){const Wn=y$b(vn,0);return Wn.setFullYear(kn,0,4),Wn.setHours(0,0,0,0),D$3(Wn)}},pe$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(vn,_n){return O(_n==="u"?4:_n.length,vn)}set(vn,_n,kn){return vn.setFullYear(kn,0,1),vn.setHours(0,0,0,0),vn}},Te$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",120),i$1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"Q":case"QQ":return w$4(_n.length,vn);case"Qo":return kn.ordinalNumber(vn,{unit:"quarter"});case"QQQ":return kn.quarter(vn,{width:"abbreviated",context:"formatting"})||kn.quarter(vn,{width:"narrow",context:"formatting"});case"QQQQQ":return kn.quarter(vn,{width:"narrow",context:"formatting"});case"QQQQ":default:return kn.quarter(vn,{width:"wide",context:"formatting"})||kn.quarter(vn,{width:"abbreviated",context:"formatting"})||kn.quarter(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=1&&_n<=4}set(vn,_n,kn){return vn.setMonth((kn-1)*3,1),vn.setHours(0,0,0,0),vn}},De$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",120),i$1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"q":case"qq":return w$4(_n.length,vn);case"qo":return kn.ordinalNumber(vn,{unit:"quarter"});case"qqq":return kn.quarter(vn,{width:"abbreviated",context:"standalone"})||kn.quarter(vn,{width:"narrow",context:"standalone"});case"qqqqq":return kn.quarter(vn,{width:"narrow",context:"standalone"});case"qqqq":default:return kn.quarter(vn,{width:"wide",context:"standalone"})||kn.quarter(vn,{width:"abbreviated",context:"standalone"})||kn.quarter(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=1&&_n<=4}set(vn,_n,kn){return vn.setMonth((kn-1)*3,1),vn.setHours(0,0,0,0),vn}},ge$1=class extends u$d{constructor(){super(...arguments),i$1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),i$1(this,"priority",110)}parse(vn,_n,kn){const Wn=zn=>zn-1;switch(_n){case"M":return h$d(l$2(f$e.month,vn),Wn);case"MM":return h$d(w$4(2,vn),Wn);case"Mo":return h$d(kn.ordinalNumber(vn,{unit:"month"}),Wn);case"MMM":return kn.month(vn,{width:"abbreviated",context:"formatting"})||kn.month(vn,{width:"narrow",context:"formatting"});case"MMMMM":return kn.month(vn,{width:"narrow",context:"formatting"});case"MMMM":default:return kn.month(vn,{width:"wide",context:"formatting"})||kn.month(vn,{width:"abbreviated",context:"formatting"})||kn.month(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.setMonth(kn,1),vn.setHours(0,0,0,0),vn}};class ke extends u$d{constructor(){super(...arguments),i$1(this,"priority",110),i$1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(vn,_n,kn){const Wn=zn=>zn-1;switch(_n){case"L":return h$d(l$2(f$e.month,vn),Wn);case"LL":return h$d(w$4(2,vn),Wn);case"Lo":return h$d(kn.ordinalNumber(vn,{unit:"month"}),Wn);case"LLL":return kn.month(vn,{width:"abbreviated",context:"standalone"})||kn.month(vn,{width:"narrow",context:"standalone"});case"LLLLL":return kn.month(vn,{width:"narrow",context:"standalone"});case"LLLL":default:return kn.month(vn,{width:"wide",context:"standalone"})||kn.month(vn,{width:"abbreviated",context:"standalone"})||kn.month(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.setMonth(kn,1),vn.setHours(0,0,0,0),vn}}function Pe(e,vn,_n){const kn=l$3(e,_n==null?void 0:_n.in),Wn=Ce$3(kn,_n)-vn;return kn.setDate(kn.getDate()-Wn*7),l$3(kn,_n==null?void 0:_n.in)}class Me extends u$d{constructor(){super(...arguments),i$1(this,"priority",100),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(vn,_n,kn){switch(_n){case"w":return l$2(f$e.week,vn);case"wo":return kn.ordinalNumber(vn,{unit:"week"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=53}set(vn,_n,kn,Wn){return x$3(Pe(vn,kn,Wn),Wn)}}function _e(e,vn,_n){const kn=l$3(e,void 0),Wn=Fe$3(kn)-vn;return kn.setDate(kn.getDate()-Wn*7),kn}class Ye extends u$d{constructor(){super(...arguments),i$1(this,"priority",100),i$1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"I":return l$2(f$e.week,vn);case"Io":return kn.ordinalNumber(vn,{unit:"week"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=53}set(vn,_n,kn){return D$3(_e(vn,kn))}}const Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31];class He extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"subPriority",1),i$1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"d":return l$2(f$e.date,vn);case"do":return kn.ordinalNumber(vn,{unit:"date"});default:return w$4(_n.length,vn)}}validate(vn,_n){const kn=vn.getFullYear(),Wn=V$1(kn),zn=vn.getMonth();return Wn?_n>=1&&_n<=Ee[zn]:_n>=1&&_n<=Oe[zn]}set(vn,_n,kn){return vn.setDate(kn),vn.setHours(0,0,0,0),vn}}class Ie extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"subpriority",1),i$1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"D":case"DD":return l$2(f$e.dayOfYear,vn);case"Do":return kn.ordinalNumber(vn,{unit:"date"});default:return w$4(_n.length,vn)}}validate(vn,_n){const kn=vn.getFullYear();return V$1(kn)?_n>=1&&_n<=366:_n>=1&&_n<=365}set(vn,_n,kn){return vn.setMonth(0,kn),vn.setHours(0,0,0,0),vn}}function q(e,vn,_n){var kn,Wn,zn,Kn;const Qn=v$a(),Hn=(_n==null?void 0:_n.weekStartsOn)??((Wn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:Wn.weekStartsOn)??Qn.weekStartsOn??((Kn=(zn=Qn.locale)==null?void 0:zn.options)==null?void 0:Kn.weekStartsOn)??0,qn=l$3(e,_n==null?void 0:_n.in),Nn=qn.getDay(),Dn=(vn%7+7)%7,In=7-Hn,Bn=vn<0||vn>6?vn-(Nn+In)%7:(Dn+In)%7-(Nn+In)%7;return z$5(qn,Bn,_n)}class qe extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"E":case"EE":case"EEE":return kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"EEEEE":return kn.day(vn,{width:"narrow",context:"formatting"});case"EEEEEE":return kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"EEEE":default:return kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,Wn){return vn=q(vn,kn,Wn),vn.setHours(0,0,0,0),vn}}class Le extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(vn,_n,kn,Wn){const zn=Kn=>{const Qn=Math.floor((Kn-1)/7)*7;return(Kn+Wn.weekStartsOn+6)%7+Qn};switch(_n){case"e":case"ee":return h$d(w$4(_n.length,vn),zn);case"eo":return h$d(kn.ordinalNumber(vn,{unit:"day"}),zn);case"eee":return kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"eeeee":return kn.day(vn,{width:"narrow",context:"formatting"});case"eeeeee":return kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"eeee":default:return kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,Wn){return vn=q(vn,kn,Wn),vn.setHours(0,0,0,0),vn}}class Ne extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(vn,_n,kn,Wn){const zn=Kn=>{const Qn=Math.floor((Kn-1)/7)*7;return(Kn+Wn.weekStartsOn+6)%7+Qn};switch(_n){case"c":case"cc":return h$d(w$4(_n.length,vn),zn);case"co":return h$d(kn.ordinalNumber(vn,{unit:"day"}),zn);case"ccc":return kn.day(vn,{width:"abbreviated",context:"standalone"})||kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"});case"ccccc":return kn.day(vn,{width:"narrow",context:"standalone"});case"cccccc":return kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"});case"cccc":default:return kn.day(vn,{width:"wide",context:"standalone"})||kn.day(vn,{width:"abbreviated",context:"standalone"})||kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,Wn){return vn=q(vn,kn,Wn),vn.setHours(0,0,0,0),vn}}function Qe(e,vn,_n){const kn=l$3(e,void 0),Wn=ue$1(kn),zn=vn-Wn;return z$5(kn,zn,_n)}let ve$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(vn,_n,kn){const Wn=zn=>zn===0?7:zn;switch(_n){case"i":case"ii":return w$4(_n.length,vn);case"io":return kn.ordinalNumber(vn,{unit:"day"});case"iii":return h$d(kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),Wn);case"iiiii":return h$d(kn.day(vn,{width:"narrow",context:"formatting"}),Wn);case"iiiiii":return h$d(kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),Wn);case"iiii":default:return h$d(kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),Wn)}}validate(vn,_n){return _n>=1&&_n<=7}set(vn,_n,kn){return vn=Qe(vn,kn),vn.setHours(0,0,0,0),vn}};class Re extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"a":case"aa":case"aaa":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"aaaaa":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"aaaa":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class We extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"b":case"bb":case"bbb":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"bbbbb":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"bbbb":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class Ce extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["a","b","t","T"])}parse(vn,_n,kn){switch(_n){case"B":case"BB":case"BBB":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"BBBBB":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"BBBB":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class Be extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(vn,_n,kn){switch(_n){case"h":return l$2(f$e.hour12h,vn);case"ho":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=12}set(vn,_n,kn){const Wn=vn.getHours()>=12;return Wn&&kn<12?vn.setHours(kn+12,0,0,0):!Wn&&kn===12?vn.setHours(0,0,0,0):vn.setHours(kn,0,0,0),vn}}class Ge extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(vn,_n,kn){switch(_n){case"H":return l$2(f$e.hour23h,vn);case"Ho":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=23}set(vn,_n,kn){return vn.setHours(kn,0,0,0),vn}}class Xe extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"K":return l$2(f$e.hour11h,vn);case"Ko":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.getHours()>=12&&kn<12?vn.setHours(kn+12,0,0,0):vn.setHours(kn,0,0,0),vn}}class Fe extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(vn,_n,kn){switch(_n){case"k":return l$2(f$e.hour24h,vn);case"ko":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=24}set(vn,_n,kn){const Wn=kn<=24?kn%24:kn;return vn.setHours(Wn,0,0,0),vn}}class Ae extends u$d{constructor(){super(...arguments),i$1(this,"priority",60),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n,kn){switch(_n){case"m":return l$2(f$e.minute,vn);case"mo":return kn.ordinalNumber(vn,{unit:"minute"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=59}set(vn,_n,kn){return vn.setMinutes(kn,0,0),vn}}class ze extends u$d{constructor(){super(...arguments),i$1(this,"priority",50),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n,kn){switch(_n){case"s":return l$2(f$e.second,vn);case"so":return kn.ordinalNumber(vn,{unit:"second"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=59}set(vn,_n,kn){return vn.setSeconds(kn,0),vn}}class Ze extends u$d{constructor(){super(...arguments),i$1(this,"priority",30),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n){const kn=Wn=>Math.trunc(Wn*Math.pow(10,-_n.length+3));return h$d(w$4(_n.length,vn),kn)}set(vn,_n,kn){return vn.setMilliseconds(kn),vn}}class Ke extends u$d{constructor(){super(...arguments),i$1(this,"priority",10),i$1(this,"incompatibleTokens",["t","T","x"])}parse(vn,_n){switch(_n){case"X":return m$6(b$6.basicOptionalMinutes,vn);case"XX":return m$6(b$6.basic,vn);case"XXXX":return m$6(b$6.basicOptionalSeconds,vn);case"XXXXX":return m$6(b$6.extendedOptionalSeconds,vn);case"XXX":default:return m$6(b$6.extended,vn)}}set(vn,_n,kn){return _n.timestampIsSet?vn:y$b(vn,vn.getTime()-N$5(vn)-kn)}}class $e extends u$d{constructor(){super(...arguments),i$1(this,"priority",10),i$1(this,"incompatibleTokens",["t","T","X"])}parse(vn,_n){switch(_n){case"x":return m$6(b$6.basicOptionalMinutes,vn);case"xx":return m$6(b$6.basic,vn);case"xxxx":return m$6(b$6.basicOptionalSeconds,vn);case"xxxxx":return m$6(b$6.extendedOptionalSeconds,vn);case"xxx":default:return m$6(b$6.extended,vn)}}set(vn,_n,kn){return _n.timestampIsSet?vn:y$b(vn,vn.getTime()-N$5(vn)-kn)}}class Ve extends u$d{constructor(){super(...arguments),i$1(this,"priority",40),i$1(this,"incompatibleTokens","*")}parse(vn){return K(vn)}set(vn,_n,kn){return[y$b(vn,kn*1e3),{timestampIsSet:!0}]}}class je extends u$d{constructor(){super(...arguments),i$1(this,"priority",20),i$1(this,"incompatibleTokens","*")}parse(vn){return K(vn)}set(vn,_n,kn){return[y$b(vn,kn),{timestampIsSet:!0}]}}const Ue={G:new ye$1,y:new xe,Y:new be$1,R:new me$1,u:new pe$1,Q:new Te$1,q:new De$1,M:new ge$1,L:new ke,w:new Me,I:new Ye,d:new He,D:new Ie,E:new qe,e:new Le,c:new Ne,i:new ve$1,a:new Re,b:new We,B:new Ce,h:new Be,H:new Ge,K:new Xe,k:new Fe,m:new Ae,s:new ze,S:new Ze,X:new Ke,x:new $e,t:new Ve,T:new je},Je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Se$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,er=/^'([^]*?)'?$/,rr=/''/g,tr=/\S/,sr=/[a-zA-Z]/;function cr(e,vn,_n,kn){var Wn,zn,Kn,Qn;const Hn=()=>y$b(_n,NaN),qn=B$4(),Nn=qn.locale??Ye$4,Dn=qn.firstWeekContainsDate??((zn=(Wn=qn.locale)==null?void 0:Wn.options)==null?void 0:zn.firstWeekContainsDate)??1,In=qn.weekStartsOn??((Qn=(Kn=qn.locale)==null?void 0:Kn.options)==null?void 0:Qn.weekStartsOn)??0;if(!vn)return e?Hn():l$3(_n,void 0);const Bn={firstWeekContainsDate:Dn,weekStartsOn:In,locale:Nn},Ln=[new he$1(void 0,_n)],Pn=vn.match(Se$1).map(li=>{const oi=li[0];if(oi in Ne$3){const ei=Ne$3[oi];return ei(li,Nn.formatLong)}return li}).join("").match(Je),Zn=[];for(let li of Pn){Ie$3(li)&&je$2(li,vn,e),_e$3(li)&&je$2(li,vn,e);const oi=li[0],ei=Ue[oi];if(ei){const{incompatibleTokens:fi}=ei;if(Array.isArray(fi)){const yi=Zn.find(pi=>fi.includes(pi.token)||pi.token===oi);if(yi)throw new RangeError(`The format string mustn't contain \`${yi.fullToken}\` and \`${li}\` at the same time`)}else if(ei.incompatibleTokens==="*"&&Zn.length>0)throw new RangeError(`The format string mustn't contain \`${li}\` and any other token at the same time`);Zn.push({token:oi,fullToken:li});const gi=ei.run(e,li,Nn.match,Bn);if(!gi)return Hn();Ln.push(gi.setter),e=gi.rest}else{if(oi.match(sr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oi+"`");if(li==="''"?li="'":oi==="'"&&(li=nr(li)),e.indexOf(li)===0)e=e.slice(li.length);else return Hn()}}if(e.length>0&&tr.test(e))return Hn();const Jn=Ln.map(li=>li.priority).sort((li,oi)=>oi-li).filter((li,oi,ei)=>ei.indexOf(li)===oi).map(li=>Ln.filter(oi=>oi.priority===li).sort((oi,ei)=>ei.subPriority-oi.subPriority)).map(li=>li[0]);let Xn=l$3(_n,void 0);if(isNaN(+Xn))return Hn();const mi={};for(const li of Jn){if(!li.validate(Xn,Bn))return Hn();const oi=li.set(Xn,mi,Bn);Array.isArray(oi)?(Xn=oi[0],Object.assign(mi,oi[1])):Xn=oi}return Xn}function nr(e){return e.match(er)[1].replace(rr,"'")}const le={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[Pe$1],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:e=>{if(!e)return!0;try{return $$8(cr(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return $$8(cr(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},editItems:function(){if(!this.items)return[];let e=0;return this.items.map(vn=>(e+=1,{...vn,itemId:e}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let e=l$3(this.startDateTime/1e6);this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}else{let e=new Date-36e5;this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}if(this.endDateTime){let e=l$3(this.endDateTime/1e6);this.endDate=this.formatDate(e,this.timeZone),this.endTime=this.formatTimeHMS(e,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(e){let vn=this.graph.lines.indexOf(e);this.graph.lines.splice(vn,1)}}},ae={class:"edit-box"},ne={class:"edit-box"},oe={class:"edit-box"},re={class:"edit-box"};function de(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-tab"),qn=vue.resolveComponent("v-tabs"),Nn=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-card-text"),In=vue.resolveComponent("v-col"),Bn=vue.resolveComponent("v-select"),Ln=vue.resolveComponent("v-row"),Pn=vue.resolveComponent("v-tabs-window-item"),Zn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-list-item"),Xn=vue.resolveComponent("v-icon"),mi=vue.resolveComponent("v-tooltip"),li=vue.resolveComponent("v-list"),oi=vue.resolveComponent("v-data-table"),ei=vue.resolveComponent("v-tabs-window"),fi=vue.resolveComponent("v-card-actions"),gi=vue.resolveComponent("v-card"),yi=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(yi,{modelValue:zn.show,"onUpdate:modelValue":vn[12]||(vn[12]=pi=>zn.show=pi),onKeydown:vn[13]||(vn[13]=vue.withKeys(pi=>e.$emit("cancel"),["esc"])),"max-width":"700"},{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[14]||(vn[14]=vue.createElementVNode("span",null," Edit Graph ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(gi,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(qn,{modelValue:e.tab,"onUpdate:modelValue":vn[0]||(vn[0]=pi=>e.tab=pi),class:"ml-3"},{default:vue.withCtx(()=>[vue.createVNode(Hn,{value:"0"},{default:vue.withCtx(()=>vn[15]||(vn[15]=[vue.createTextVNode(" Settings ")])),_:1}),vue.createVNode(Hn,{value:"1"},{default:vue.withCtx(()=>vn[16]||(vn[16]=[vue.createTextVNode(" Scale / Lines ")])),_:1}),vue.createVNode(Hn,{value:"2"},{default:vue.withCtx(()=>vn[17]||(vn[17]=[vue.createTextVNode(" Items ")])),_:1})]),_:1},8,["modelValue"]),vue.createVNode(ei,{modelValue:e.tab,"onUpdate:modelValue":vn[10]||(vn[10]=pi=>e.tab=pi)},{default:vue.withCtx(()=>[vue.createVNode(Pn,{value:"0",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",ae,[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{class:"pb-2",label:"Title",modelValue:e.graph.title,"onUpdate:modelValue":vn[1]||(vn[1]=pi=>e.graph.title=pi),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Legend Position","hide-details":"",items:e.legendPositions,modelValue:e.graph.legendPosition,"onUpdate:modelValue":vn[2]||(vn[2]=pi=>e.graph.legendPosition=pi),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",ne,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[18]||(vn[18]=[vue.createTextVNode(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Start Date",name:`date${Date.now()}`,rules:[e.rules.date],modelValue:e.startDate,"onUpdate:modelValue":vn[3]||(vn[3]=pi=>e.startDate=pi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Start Time",name:`time${Date.now()}`,rules:[e.rules.time],modelValue:e.startTime,"onUpdate:modelValue":vn[4]||(vn[4]=pi=>e.startTime=pi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[19]||(vn[19]=[vue.createTextVNode(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"End Date",name:`date${Date.now()}`,rules:[e.rules.date],modelValue:e.endDate,"onUpdate:modelValue":vn[5]||(vn[5]=pi=>e.endDate=pi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"End Time",name:`time${Date.now()}`,rules:[e.rules.time],modelValue:e.endTime,"onUpdate:modelValue":vn[6]||(vn[6]=pi=>e.endTime=pi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),vue.createVNode(Pn,{value:"1",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",oe,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[20]||(vn[20]=[vue.createTextVNode(" Set a min or max Y value to override automatic scaling ")])),_:1}),vue.createVNode(Ln,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(In,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:e.graph.graphMinY,"onUpdate:modelValue":vn[7]||(vn[7]=pi=>e.graph.graphMinY=pi),type:"number"},null,8,["modelValue"])]),_:1}),vue.createVNode(In,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:e.graph.graphMaxY,"onUpdate:modelValue":vn[8]||(vn[8]=pi=>e.graph.graphMaxY=pi),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",re,[vue.createVNode(li,{density:"compact",class:"horizontal-lines"},{default:vue.withCtx(()=>[vue.createVNode(Jn,null,{default:vue.withCtx(()=>[vn[22]||(vn[22]=vue.createElementVNode("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),vue.createVNode(Kn),vue.createVNode(Zn,{onClick:vn[9]||(vn[9]=pi=>zn.addLine())},{default:vue.withCtx(()=>vn[21]||(vn[21]=[vue.createTextVNode(" New Line ")])),_:1})]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.graph.lines,(pi,$i)=>(vue.openBlock(),vue.createBlock(Jn,{key:$i,value:pi,color:"primary"},{default:vue.withCtx(()=>[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Y Value",modelValue:pi.yValue,"onUpdate:modelValue":si=>pi.yValue=si},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Color","hide-details":"",items:_n.colors,modelValue:pi.color,"onUpdate:modelValue":si=>pi.color=si},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:si})=>[vue.createVNode(Xn,vue.mergeProps({ref_for:!0},si,{style:{padding:"30px"},onClick:ti=>zn.removeLine(pi)}),{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),vue.createVNode(Pn,{value:"2",eager:""},{default:vue.withCtx(()=>[vue.createVNode(oi,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:e.itemHeaders,items:zn.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":vue.withCtx(({item:pi})=>[vue.createVNode(mi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:$i})=>[vue.createVNode(Xn,vue.mergeProps($i,{onClick:si=>e.$emit("remove",pi)}),{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":vue.withCtx(()=>vn[25]||(vn[25]=[vue.createElementVNode("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(fi,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Zn,{variant:"outlined",onClick:vn[11]||(vn[11]=pi=>e.$emit("cancel"))},{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(Zn,{variant:"flat",onClick:zn.closeOk},{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=s$2(le,[["render",de]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=new Wk().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(e=>{for(const[vn,_n]of Object.entries(e.limits))Object.keys(_n).includes("red_low")&&this.$set(this.limits,vn,Object.values(_n));this.limitsName=Object.keys(this.limits).find(vn=>this.limits[vn]+""==this.editItem.limits+"")})}},he={key:0},pe={class:"pa-3"};function fe(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-card-title"),Qn=vue.resolveComponent("v-select"),Hn=vue.resolveComponent("v-card-text"),qn=vue.resolveComponent("v-spacer"),Nn=vue.resolveComponent("v-btn"),Dn=vue.resolveComponent("v-card-actions"),In=vue.resolveComponent("v-card"),Bn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Bn,{modelValue:zn.show,"onUpdate:modelValue":vn[9]||(vn[9]=Ln=>zn.show=Ln),width:"400",onKeydown:vn[10]||(vn[10]=vue.withKeys(Ln=>e.success(),["enter"]))},{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Kn,{class:"mb-2"},{default:vue.withCtx(()=>vn[11]||(vn[11]=[vue.createTextVNode("Edit Item")])),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Value Type",items:e.valueTypes,modelValue:e.editItem.valueType,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>e.editItem.valueType=Ln),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Reduction",items:e.reduction,modelValue:e.editItem.reduced,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>e.editItem.reduced=Ln),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:e.currentReduced==="DECOM",modelValue:e.editItem.reducedType,"onUpdate:modelValue":vn[2]||(vn[2]=Ln=>e.editItem.reducedType=Ln),class:"mb-2"},null,8,["items","disabled","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Color",items:_n.colors,modelValue:e.editItem.color,"onUpdate:modelValue":[vn[3]||(vn[3]=Ln=>e.editItem.color=Ln),vn[4]||(vn[4]=Ln=>e.$emit("changeColor",Ln))],class:"mb-2"},null,8,["items","modelValue"]),zn.limitsNames.length>1?(vue.openBlock(),vue.createElementBlock("div",he,[vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Display Limits",items:zn.limitsNames,modelValue:e.limitsName,"onUpdate:modelValue":[vn[5]||(vn[5]=Ln=>e.limitsName=Ln),vn[6]||(vn[6]=Ln=>e.$emit("changeLimits",e.limits[e.limitsName]))]},null,8,["items","modelValue"]),vue.createElementVNode("div",pe,vue.toDisplayString(e.limitsName)+": "+vue.toDisplayString(e.limits[e.limitsName]),1)])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Dn,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(qn),vue.createVNode(Nn,{variant:"outlined",onClick:vn[7]||(vn[7]=Ln=>e.$emit("cancel"))},{default:vue.withCtx(()=>vn[12]||(vn[12]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(Nn,{variant:"flat",onClick:vn[8]||(vn[8]=Ln=>e.$emit("close",e.editItem))},{default:vue.withCtx(()=>vn[13]||(vn[13]=[vue.createTextVNode(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ce=s$2(me,[["render",fe]]),ge={components:{GraphEditDialog:ue,GraphEditItemDialog:ce},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[Pe$1],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new Dk,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,vn]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(vn)]=e+1,vn.color===void 0&&(vn.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:vn}=this.items.reduce((kn,Wn)=>{const zn={spanGaps:!0};return kn.chartSeries.push({...zn,item:Wn,label:this.formatLabel(Wn),stroke:(Kn,Qn)=>this.items[Qn-1].color,width:2,value:(Kn,Qn)=>typeof Qn=="string"||isNaN(Qn)?"NaN":Qn==null?"--":Qn.toFixed(3)}),kn.overviewSeries.push({...zn}),kn},{chartSeries:[],overviewSeries:[]});let _n={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,_n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new $n(_n,this.data,document.getElementById(`chart${this.id}`));else{let kn=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(kn=this.timeZone),_n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:zn=>$n.tzDate(new Date(zn*1e3),kn),series:[{label:"Time",value:(zn,Kn)=>Kn==null?"--":this.formatSeconds(Kn,this.timeZone)},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(zn,Kn,Qn)=>Hn=>{this.state==="pause"&&zn.select.width===0&&this.$emit("start"),Qn(Hn)}}},hooks:{setScale:[(zn,Kn)=>{if(Kn==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let Qn=Math.round(this.overview.valToPos(zn.scales.x.min,"x")),Hn=Math.round(this.overview.valToPos(zn.scales.x.max,"x"));this.overview.setSelect({left:Qn,width:Hn-Qn}),this.zoomChart=!1}}],setSelect:[zn=>{this.state==="start"&&zn.select.width>0&&this.$emit("pause")}],ready:[zn=>{zn.root.querySelector(".u-over").addEventListener("contextmenu",Qn=>{Qn.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=Qn.clientX,this.editGraphMenuY=Qn.clientY,this.editGraphMenu=!0});let Kn=zn.root.querySelector(".u-legend");Kn.addEventListener("contextmenu",Qn=>{Qn.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=Qn.clientX,this.itemMenuY=Qn.clientY;let Hn=Qn.target.closest(".u-series"),qn=Array.prototype.slice.call(Kn.childNodes[0].childNodes).indexOf(Hn),Nn=zn.series[qn];Nn.item?(this.selectedItem=Nn.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=Qn.clientX,this.legendMenuY=Qn.clientY,this.legendMenu=!0)}),Kn.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new $n(_n,this.data,document.getElementById(`chart${this.id}`));const Wn={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:zn=>$n.tzDate(new Date(zn*1e3),kn),series:[...vn],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[zn=>{if(!this.zoomChart){this.state==="start"&&zn.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let Kn=zn.posToVal(zn.select.left,"x"),Qn=zn.posToVal(zn.select.left+zn.select.width,"x");this.graph.setScale("x",{min:Kn,max:Qn}),this.zoomOverview=!1}}]}};this.overview=new $n(Wn,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(e,vn){switch(e){case"start":vn==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,vn){this.dataChanged=!0},graphMinY:function(e,vn){let _n=parseFloat(e);isNaN(_n)||(this.graphMinY=_n),this.setGraphRange()},graphMaxY:function(e,vn){let _n=parseFloat(e);isNaN(_n)||(this.graphMaxY=_n),this.setGraphRange()},graphStartDateTime:function(e,vn){e&&typeof e=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==vn&&(this.needToUpdate=!0)):e===null&&vn&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(e,vn){e&&typeof e=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==vn&&(this.needToUpdate=!0)):e===null&&vn&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],vn=this.data[0][this.data[0].length-this.pointsGraphed],_n=this.data[0][0];_n<e-this.secondsGraphed&&(_n=e-this.secondsGraphed),vn>_n&&(_n=vn),this.graph.setScale("x",{min:_n,max:e}),this.dataChanged=!1},formatLabel(e){if(e.valueType==="CONVERTED"&&e.reduced==="DECOM")return e.itemName;{let vn="";return e.valueType!=="CONVERTED"&&(vn+=e.valueType),e.reduced!=="DECOM"&&(vn!==""&&(vn+=" "),vn+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${vn})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(e){this.editGraph=!1,this.title=e.title,this.legendPosition=e.legendPosition,this.graphMinY=e.graphMinY,this.graphMaxY=e.graphMaxY,this.lines=[...e.lines],this.graphStartDateTime=e.startDateTime,this.graphEndDateTime=e.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let vn=JSON.parse(JSON.stringify(this.items));this.removeItems(vn),setTimeout(()=>{this.addItems(vn)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(e=0),this.graph.scales.y.range=(vn,_n,kn)=>{let Wn=_n;(this.graphMinY||this.graphMinY===0)&&(Wn=this.graphMinY);let zn=kn;return(this.graphMaxY||this.graphMaxY===0)&&(zn=this.graphMaxY),$n.rangeNum(Wn,zn,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(e=>{this.subscription=e})},getSize:function(e){let vn=0;const _n=document.getElementById("openc3-nav-drawer");_n&&(vn=_n.classList.contains("v-navigation-drawer--active")?_n.clientWidth:0);let kn=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(kn=document.getElementsByClassName("u-legend")[0].clientWidth);const Wn=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-vn-kn,zn=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Kn=document.getElementsByClassName("v-expansion-panel")[0];let Qn=100;e==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(Qn=zn-Kn.clientHeight-Qn-250,this.fullHeight||(Qn=Qn/2+10));let Hn=Wn-68;return this.fullWidth||(Hn=Hn/2-10),{width:this.width||Hn,height:this.height||Qn}},getScales:function(){return{scales:{x:{range(e,vn,_n){return vn==null?[1566453600,1566497660]:[vn,_n]}},y:{range(e,vn,_n){return vn==null?[-100,100]:$n.rangeNum(vn,_n,.1,!0)}}}}},getAxes:function(e){let vn="rgba(255, 255, 255, .1)",_n="white";return{axes:[{stroke:_n,grid:{show:!0,stroke:vn,width:2}},{size:80,stroke:_n,grid:{show:e!=="overview",stroke:vn,width:2},values(kn,Wn){return(Wn.some(zn=>zn>=1e7)||Wn.every(zn=>zn<.01))&&(Wn=Wn.map(zn=>zn.toExponential(3))),Wn}}]}},closeEditItem:function(e){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let vn=this.subscriptionKey(this.selectedItem),_n=this.indexes[vn];this.items[_n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[_n].style.borderColor=e},changeLimits:function(e){let vn=this.subscriptionKey(this.selectedItem),_n=this.indexes[vn];this.items[_n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:vn,bbox:_n}=e,kn=e.valToPos(e.scales.y.min,"y",!0),Wn=e.valToPos(e.scales.y.max,"y",!0),zn=e.valToPos(this.limitsValues[0],"y",!0),Kn=e.valToPos(this.limitsValues[1],"y",!0),Qn=e.valToPos(this.limitsValues[2],"y",!0),Hn=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(qn=>{e.scales.y.min<=qn.yValue&&qn.yValue<=e.scales.y.max&&(vn.save(),vn.beginPath(),vn.strokeStyle=qn.color,vn.lineWidth=2,vn.moveTo(_n.left,e.valToPos(qn.yValue,"y",!0)),vn.lineTo(_n.left+_n.width,e.valToPos(qn.yValue,"y",!0)),vn.stroke(),vn.restore())}),vn.save(),vn.beginPath(),vn.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let qn=zn<Wn?Wn:zn;vn.fillRect(_n.left,zn,_n.width,kn-qn)}if(e.scales.y.max>this.limitsValues[3]){let qn=kn<Hn?kn:Hn;vn.fillRect(_n.left,Wn,_n.width,qn-Wn)}if(vn.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let qn=Kn<Wn?Wn:Kn;vn.fillRect(_n.left,qn,_n.width,zn-qn)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let qn=kn<Hn?kn:Hn,Nn=kn<Qn?kn:Qn;vn.fillRect(_n.left,qn,_n.width,Nn-qn)}if(vn.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let qn=Qn<Wn?Wn:Qn,Nn=kn<Kn?kn:Kn;vn.fillRect(_n.left,qn,_n.width,Nn-qn)}}else{const qn=e.valToPos(this.limitsValues[4],"y",!0),Nn=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let Bn=qn<Wn?Wn:qn;vn.fillRect(_n.left,Bn,_n.width,Kn-Bn)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let Bn=kn<Qn?kn:Qn,Ln=kn<Nn?kn:Nn;vn.fillRect(_n.left,Bn,_n.width,Ln-Bn)}vn.fillStyle="rgba(0,0,255,0.15)";let Dn=Nn<Wn?Wn:Nn,In=kn<qn?kn:qn;vn.fillRect(_n.left,Dn,_n.width,In-Dn)}vn.stroke(),vn.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(e,vn="CONVERTED"){e.forEach(_n=>{_n.valueType||(_n.valueType=vn),_n.color||(_n.color=this.colors[this.colorIndex]),_n.limits||(_n.limits=[]),_n.limits.length>0&&(this.limitsValues=_n.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(_n);const kn=this.data.length;this.graph.addSeries(this.createSeriesConfig(_n),kn),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),kn),this.data.splice(kn,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(_n)]=kn}),this.updateColorIndex(e),this.addItemsToSubscription(e),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(e){return{spanGaps:!0,item:e,label:this.formatLabel(e),stroke:(vn,_n)=>this.items[_n-1].color,width:2,value:(vn,_n)=>typeof _n=="string"||isNaN(_n)?"NaN":_n==null?"--":Math.abs(_n)<.01&&_n!==0||Math.abs(_n)>=1e7?_n.toExponential(6):_n.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(e,vn)=>this.items[vn-1].color}},updateColorIndex:function(e){const vn=e[e.length-1];if(vn){const _n=this.colors.indexOf(vn.color);_n!==-1&&(this.colorIndex=(_n+1)%this.colors.length)}},addItemsToSubscription:function(e=this.items){let vn=this.startTime;this.graphStartDateTime&&(vn=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(_n=>{_n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:vn,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(e){for(const vn of e.map(this.subscriptionKey)){let _n=this.indexes[vn];this.data[_n]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const vn of e.map(this.subscriptionKey)){const _n=this.reorderIndexes(vn);this.items.splice(_n-1,1),this.data.splice(_n,1),this.graph.delSeries(_n),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(_n),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let vn=this.indexes[e];delete this.indexes[e];for(let _n in this.indexes)this.indexes[_n]>vn&&(this.indexes[_n]-=1);return vn},received:function(e){this.cable.recordPing();for(let vn=0;vn<e.length;vn++){let _n=e[vn].__time/1e9,kn=e[0].length;if(kn===0||_n>e[0][kn-1]){for(let Wn=0;Wn<this.data.length;Wn++)this.data[Wn].push(null);this.set_data_at_index(this.data[0].length-1,_n,e[vn])}else{let Wn=Bk(this.data[0],_n,this.bs_comparator);if(Wn>=0)this.set_data_at_index(Wn,_n,e[vn]);else{let zn=-Wn-1;for(let Kn=0;Kn<this.data.length;Kn++)this.data[Kn].splice(zn,0,null);this.set_data_at_index(zn,_n,e[vn])}}}if(this.startTime==null&&this.data[0][0]){let vn=this.data[0][0]*1e9;this.$emit("started",vn)}this.dataChanged=!0},bs_comparator:function(e,vn){return e-vn},set_data_at_index:function(e,vn,_n){this.data[0][e]=vn;for(const[kn,Wn]of Object.entries(_n)){if(kn==="time")continue;let zn=this.indexes[kn];if(zn){let Kn=this.data[zn];if(Wn!=null&&Wn.raw)Kn[e]=null;else if(typeof Wn=="string"){if(Kn[e]=null,!kn.includes("__RAW")){for(let Qn of this.items)if(this.subscriptionKey(Qn)===kn){this.selectedItem=Qn;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else Kn[e]=Wn}}},subscriptionKey:function(e){let vn=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return(e.reduced==="REDUCED_MINUTE"||e.reduced==="REDUCED_HOUR"||e.reduced==="REDUCED_DAY")&&(vn+=`__${e.reducedType}`),vn}}},ve={class:"mx-2"},ye={class:"pa-1",id:"chart",ref:"chart"},be=["id"],we=["id"],Te={key:5,class:"u-series",ref:"info"};function De(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-icon"),Qn=vue.resolveComponent("v-tooltip"),Hn=vue.resolveComponent("v-spacer"),qn=vue.resolveComponent("v-toolbar"),Nn=vue.resolveComponent("v-expand-transition"),Dn=vue.resolveComponent("v-card"),In=vue.resolveComponent("graph-edit-dialog"),Bn=vue.resolveComponent("v-text-field"),Ln=vue.resolveComponent("v-row"),Pn=vue.resolveComponent("v-textarea"),Zn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-dialog"),Xn=vue.resolveComponent("v-list-item-title"),mi=vue.resolveComponent("v-list-item"),li=vue.resolveComponent("v-list"),oi=vue.resolveComponent("v-menu"),ei=vue.resolveComponent("graph-edit-item-dialog"),fi=vue.resolveComponent("v-list-subheader");return vue.openBlock(),vue.createElementBlock("div",{onClick:vn[21]||(vn[21]=vue.withModifiers(gi=>e.$emit("click"),["prevent"]))},[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(qn,{height:"24",class:vue.normalizeClass(["pl-2 pr-2",_n.selectedGraphId===_n.id?"active":""])},{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ve,[vue.createVNode(Qn,{text:"Errors",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[0]||(vn[0]=yi=>Wn.errorDialog=!0)}),{default:vue.withCtx(()=>vn[22]||(vn[22]=[vue.createTextVNode(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[vue.vShow,Wn.errors.length!==0]]),vue.createVNode(Qn,{text:"Edit",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[1]||(vn[1]=yi=>Wn.editGraph=!0),"data-test":"edit-graph-icon"}),{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode(" mdi-pencil ")])),_:2},1040)]),_:1}),vue.createVNode(Hn),vue.createElementVNode("span",null,vue.toDisplayString(Wn.title),1),vue.createVNode(Hn),vue.withDirectives(vue.createElementVNode("div",null,[zn.calcFullSize?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.collapseAll,"data-test":"collapse-all"}),{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.expandAll,"data-test":"expand-all"}),{default:vue.withCtx(()=>vn[25]||(vn[25]=[vue.createTextVNode(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Wn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[Wn.fullWidth?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse Width",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.collapseWidth,"data-test":"collapse-width"}),{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand Width",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.expandWidth,"data-test":"expand-width"}),{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Wn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[Wn.fullHeight?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse Height",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.collapseHeight,"data-test":"collapse-height"}),{default:vue.withCtx(()=>vn[28]||(vn[28]=[vue.createTextVNode(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand Height",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.expandHeight,"data-test":"expand-height"}),{default:vue.withCtx(()=>vn[29]||(vn[29]=[vue.createTextVNode(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Wn.expand]]),Wn.expand?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Minimize",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:vue.withCtx(()=>vn[30]||(vn[30]=[vue.createTextVNode(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Maximize",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:zn.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:vue.withCtx(()=>vn[31]||(vn[31]=[vue.createTextVNode(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),vue.createVNode(Qn,{text:"Close",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[2]||(vn[2]=yi=>e.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:vue.withCtx(()=>vn[32]||(vn[32]=[vue.createTextVNode(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[vue.vShow,!Wn.hideToolbarData]]),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ye,[vue.createElementVNode("div",{id:`chart${_n.id}`},null,8,be),vn[33]||(vn[33]=vue.createElementVNode("div",{id:"betweenCharts"},null,-1)),vue.withDirectives(vue.createElementVNode("div",{id:`overview${_n.id}`},null,8,we),[[vue.vShow,Wn.showOverview]])],512),[[vue.vShow,Wn.expand]])]),_:1})]),_:1}),Wn.editGraph?(vue.openBlock(),vue.createBlock(In,{key:0,modelValue:Wn.editGraph,"onUpdate:modelValue":vn[3]||(vn[3]=gi=>Wn.editGraph=gi),title:Wn.title,"legend-position":Wn.legendPosition,items:Wn.items,"graph-min-y":Wn.graphMinY,"graph-max-y":Wn.graphMaxY,lines:Wn.lines,colors:Wn.colors,"start-date-time":Wn.graphStartDateTime,"end-date-time":Wn.graphEndDateTime,"time-zone":_n.timeZone,onRemove:vn[4]||(vn[4]=gi=>zn.removeItems([gi])),onOk:zn.editGraphClose,onCancel:vn[5]||(vn[5]=gi=>Wn.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):vue.createCommentVNode("",!0),vue.createVNode(Jn,{modelValue:Wn.errorDialog,"onUpdate:modelValue":vn[7]||(vn[7]=gi=>Wn.errorDialog=gi),"max-width":"600"},{default:vue.withCtx(()=>[vue.createVNode(qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Hn),vn[34]||(vn[34]=vue.createElementVNode("span",null," Errors ",-1)),vue.createVNode(Hn)]),_:1}),vue.createVNode(Dn,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(Ln,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Bn,{readonly:"","hide-details":"",modelValue:Wn.title,"onUpdate:modelValue":vn[6]||(vn[6]=gi=>Wn.title=gi),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),vue.createVNode(Ln,{class:"my-3"},{default:vue.withCtx(()=>[vue.createVNode(Pn,{readonly:"",rows:"8",value:zn.error},null,8,["value"])]),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Zn,{block:"",onClick:zn.clearErrors},{default:vue.withCtx(()=>vn[35]||(vn[35]=[vue.createTextVNode(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Wn.editGraphMenu?(vue.openBlock(),vue.createBlock(oi,{key:1,modelValue:Wn.editGraphMenu,"onUpdate:modelValue":vn[9]||(vn[9]=gi=>Wn.editGraphMenu=gi),target:[Wn.editGraphMenuX,Wn.editGraphMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(li,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{onClick:vn[8]||(vn[8]=gi=>Wn.editGraph=!0)},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit "+vue.toDisplayString(Wn.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),Wn.editItem?(vue.openBlock(),vue.createBlock(ei,{key:2,modelValue:Wn.editItem,"onUpdate:modelValue":vn[10]||(vn[10]=gi=>Wn.editItem=gi),colors:Wn.colors,item:Wn.selectedItem,onChangeColor:zn.changeColor,onChangeLimits:zn.changeLimits,onCancel:vn[11]||(vn[11]=gi=>Wn.editItem=!1),onClose:zn.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):vue.createCommentVNode("",!0),Wn.itemMenu?(vue.openBlock(),vue.createBlock(oi,{key:3,modelValue:Wn.itemMenu,"onUpdate:modelValue":vn[15]||(vn[15]=gi=>Wn.itemMenu=gi),target:[Wn.itemMenuX,Wn.itemMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(li,{nav:"",density:"compact"},{default:vue.withCtx(()=>[vue.createVNode(fi,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.selectedItem.targetName)+" "+vue.toDisplayString(Wn.selectedItem.packetName)+" "+vue.toDisplayString(Wn.selectedItem.itemName),1)]),_:1}),vue.createVNode(mi,{onClick:vn[12]||(vn[12]=gi=>Wn.editItem=!0)},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-pencil"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[36]||(vn[36]=[vue.createTextVNode(" Edit ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[13]||(vn[13]=gi=>zn.clearData([Wn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-eraser"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[37]||(vn[37]=[vue.createTextVNode(" Clear ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[14]||(vn[14]=gi=>zn.removeItems([Wn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-delete"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[38]||(vn[38]=[vue.createTextVNode(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),Wn.legendMenu?(vue.openBlock(),vue.createBlock(oi,{key:4,modelValue:Wn.legendMenu,"onUpdate:modelValue":vn[20]||(vn[20]=gi=>Wn.legendMenu=gi),target:[Wn.legendMenuX,Wn.legendMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(li,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{onClick:vn[16]||(vn[16]=gi=>zn.moveLegend("top"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[39]||(vn[39]=[vue.createTextVNode(" Legend Top ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[17]||(vn[17]=gi=>zn.moveLegend("bottom"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[40]||(vn[40]=[vue.createTextVNode(" Legend Bottom ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[18]||(vn[18]=gi=>zn.moveLegend("left"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[41]||(vn[41]=[vue.createTextVNode(" Legend Left ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[19]||(vn[19]=gi=>zn.moveLegend("right"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[42]||(vn[42]=[vue.createTextVNode(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),_n.sparkline?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",Te,[vue.createVNode(Qn,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.normalizeProps(vue.guardReactiveProps(gi)),{default:vue.withCtx(()=>vn[43]||(vn[43]=[vue.createTextVNode(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Se=s$2(ge,[["render",De],["__scopeId","data-v-485a5da2"]]),_export_sfc=(e,vn)=>{const _n=e.__vccOpts||e;for(const[kn,Wn]of vn)_n[kn]=Wn;return _n},_sfc_main$1={mixins:[U1],components:{DataViewerHistoryComponent:Pk},watch:{latestData:function(e){this.$refs.history.receive(e)}},methods:{calculatePacketText:function(e){let vn="";if(this.currentConfig.showTimestamp){const _n=e.__time/1e6,kn=(_n/1e3).toFixed(7),Wn=new Date(_n).toISOString();let zn=`********************************************
|
1419
|
+
`;zn+=`* Received seconds: ${kn}
|
1420
|
+
`,zn+=`* Received time: ${Wn}
|
1421
|
+
`,zn+=`********************************************
|
1422
|
+
`,vn=`${zn}${vn}`}if("buffer"in e)vn+="This only works on DECOM packets with Q1, Q2, Q3, Q4 fields.";else{let _n=e.Q1,kn=e.Q2,Wn=e.Q3,zn=e.Q4;if(_n===void 0||kn===void 0||Wn===void 0||zn===void 0)vn+="Couldn't find Q1, Q1, Q3, Q4 in the packet fields.";else{vn+=`Q1: ${_n}
|
1423
|
+
`,vn+=`Q2: ${kn}
|
1424
|
+
`,vn+=`Q3: ${Wn}
|
1425
|
+
`,vn+=`Q4: ${zn}
|
1426
|
+
`;let Kn=Math.sqrt(Math.pow(_n,2)+Math.pow(kn,2)+Math.pow(Wn,2)+Math.pow(zn,2));_n=_n.toString().padStart(9),kn=kn.toString().padStart(9);let Qn=(-kn).toString().padStart(9);Wn=Wn.toString().padStart(9);let Hn=(-Wn).toString().padStart(9);zn=zn.toString().padStart(9);let qn=(-zn).toString().padStart(9);vn+=`Matrix:
|
1427
|
+
`,vn+=`[${_n} ${Qn} ${Hn} ${qn}]
|
1428
|
+
`,vn+=`[${kn} ${_n} ${qn} ${Wn}]
|
1429
|
+
`,vn+=`[${Wn} ${zn} ${_n} ${Qn}]
|
1430
|
+
`,vn+=`[${zn} ${Hn} ${kn} ${_n}]
|
1431
|
+
`,vn+=`Magnitude: ${Kn}`}}return vn}}};function _sfc_render$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("data-viewer-history-component");return vue.openBlock(),vue.createBlock(Kn,{ref:"history",config:e.currentConfig,packets:e.currentPackets,calculatePacketText:zn.calculatePacketText,onConfig:vn[0]||(vn[0]=Qn=>e.currentConfig=Qn)},null,8,["config","packets","calculatePacketText"])}const DataviewerquaternionWidget=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),o$6={mixins:[zk],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(e=>{this.applyStyleSetting(e)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const e=this;return{getNamedWidget:function(vn){return e.$store.getters.namedWidget(e.toQualifiedWidgetName(vn))},open:function(vn,_n){e.$emit("open",vn,_n)},close:function(vn,_n){e.$emit("close",vn,_n)},closeAll:function(){e.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((e,vn)=>vn[0].startsWith("on")?{...e,[vn[0]]:vn[1]}:e,{})}},watch:{widgetName:function(e,vn){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(vn)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(e)]:this})}},created(){var e,vn;this.screenId=(e=this.settings.find(_n=>_n[0]==="__SCREEN_ID__"))==null?void 0:e.at(1),this.widgetName=(vn=this.settings.find(_n=>_n[0]==="NAMED_WIDGET"))==null?void 0:vn.at(1),this.appliedSettings=this.settings.map(_n=>{const kn=parseInt(_n[0]);if(isNaN(kn)||this.widgetIndex===null)return _n;if(this.widgetIndex===kn)return _n.slice(1)}).filter(_n=>_n!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(e){switch(e[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=e[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=e[1].toLowerCase();break;case"PADDING":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.padding=e[1]+" !important";break;case"MARGIN":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.margin=e[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.width=e[1]+" !important";break;case"HEIGHT":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.height=e[1]+" !important";break;case"RAW":this.appliedStyle[e[1].toLowerCase()]=e[2]+" !important";break}},verifyNumParams(e,vn,_n,kn=""){let Wn={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(let zn=1;zn<=vn;zn++)if(this.parameters[zn-1]===void 0)throw new af(Wn,`Not enough parameters for ${e}.`,kn,"https://docs.openc3.com/docs/configuration");if(_n!==null&&this.parameters.length>_n)throw new af(Wn,`Too many parameters for ${e}.`,kn,"https://docs.openc3.com/docs/configuration")},setWidth(e,vn="px",_n="120"){let kn=this.appliedSettings.find(Wn=>Wn[0]==="WIDTH");return kn?kn.WIDTH:e?(this.appliedSettings.push(["WIDTH",`${e}${vn}`]),parseInt(e)):(this.appliedSettings.push(["WIDTH",`${_n}${vn}`]),parseInt(_n))},setHeight(e,vn="px",_n="20"){let kn=null;return kn=this.appliedSettings.find(Wn=>Wn[0]==="HEIGHT"),kn?kn.HEIGHT:e?(this.appliedSettings.push(["HEIGHT",`${e}${vn}`]),parseInt(e)):(this.appliedSettings.push(["HEIGHT",`${_n}${vn}`]),parseInt(_n))},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}},toQualifiedWidgetName(e){return`${this.screenId}:${e}`}}};var w$3={},b$5;function V(){return b$5||(b$5=1,function(e){(function(){var vn={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function _n(Qn){return Wn(Kn(Qn),arguments)}function kn(Qn,Hn){return _n.apply(null,[Qn].concat(Hn||[]))}function Wn(Qn,Hn){var qn=1,Nn=Qn.length,Dn,In="",Bn,Ln,Pn,Zn,Jn,Xn,mi,li;for(Bn=0;Bn<Nn;Bn++)if(typeof Qn[Bn]=="string")In+=Qn[Bn];else if(typeof Qn[Bn]=="object"){if(Pn=Qn[Bn],Pn.keys)for(Dn=Hn[qn],Ln=0;Ln<Pn.keys.length;Ln++){if(Dn==null)throw new Error(_n('[sprintf] Cannot access property "%s" of undefined value "%s"',Pn.keys[Ln],Pn.keys[Ln-1]));Dn=Dn[Pn.keys[Ln]]}else Pn.param_no?Dn=Hn[Pn.param_no]:Dn=Hn[qn++];if(vn.not_type.test(Pn.type)&&vn.not_primitive.test(Pn.type)&&Dn instanceof Function&&(Dn=Dn()),vn.numeric_arg.test(Pn.type)&&typeof Dn!="number"&&isNaN(Dn))throw new TypeError(_n("[sprintf] expecting number but found %T",Dn));switch(vn.number.test(Pn.type)&&(mi=Dn>=0),Pn.type){case"b":Dn=parseInt(Dn,10).toString(2);break;case"c":Dn=String.fromCharCode(parseInt(Dn,10));break;case"d":case"i":Dn=parseInt(Dn,10);break;case"j":Dn=JSON.stringify(Dn,null,Pn.width?parseInt(Pn.width):0);break;case"e":Dn=Pn.precision?parseFloat(Dn).toExponential(Pn.precision):parseFloat(Dn).toExponential();break;case"f":Dn=Pn.precision?parseFloat(Dn).toFixed(Pn.precision):parseFloat(Dn);break;case"g":Dn=Pn.precision?String(Number(Dn.toPrecision(Pn.precision))):parseFloat(Dn);break;case"o":Dn=(parseInt(Dn,10)>>>0).toString(8);break;case"s":Dn=String(Dn),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"t":Dn=String(!!Dn),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"T":Dn=Object.prototype.toString.call(Dn).slice(8,-1).toLowerCase(),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"u":Dn=parseInt(Dn,10)>>>0;break;case"v":Dn=Dn.valueOf(),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"x":Dn=(parseInt(Dn,10)>>>0).toString(16);break;case"X":Dn=(parseInt(Dn,10)>>>0).toString(16).toUpperCase();break}vn.json.test(Pn.type)?In+=Dn:(vn.number.test(Pn.type)&&(!mi||Pn.sign)?(li=mi?"+":"-",Dn=Dn.toString().replace(vn.sign,"")):li="",Jn=Pn.pad_char?Pn.pad_char==="0"?"0":Pn.pad_char.charAt(1):" ",Xn=Pn.width-(li+Dn).length,Zn=Pn.width&&Xn>0?Jn.repeat(Xn):"",In+=Pn.align?li+Dn+Zn:Jn==="0"?li+Zn+Dn:Zn+li+Dn)}return In}var zn=Object.create(null);function Kn(Qn){if(zn[Qn])return zn[Qn];for(var Hn=Qn,qn,Nn=[],Dn=0;Hn;){if((qn=vn.text.exec(Hn))!==null)Nn.push(qn[0]);else if((qn=vn.modulo.exec(Hn))!==null)Nn.push("%");else if((qn=vn.placeholder.exec(Hn))!==null){if(qn[2]){Dn|=1;var In=[],Bn=qn[2],Ln=[];if((Ln=vn.key.exec(Bn))!==null)for(In.push(Ln[1]);(Bn=Bn.substring(Ln[0].length))!=="";)if((Ln=vn.key_access.exec(Bn))!==null)In.push(Ln[1]);else if((Ln=vn.index_access.exec(Bn))!==null)In.push(Ln[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");qn[2]=In}else Dn|=2;if(Dn===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");Nn.push({placeholder:qn[0],param_no:qn[1],keys:qn[2],sign:qn[3],pad_char:qn[4],align:qn[5],width:qn[6],precision:qn[7],type:qn[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");Hn=Hn.substring(qn[0].length)}return zn[Qn]=Nn}e.sprintf=_n,e.vsprintf=kn,typeof window<"u"&&(window.sprintf=_n,window.vsprintf=kn)})()}(w$3)),w$3}V();const k$6={methods:{formatValueBase(e,vn){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":vn&&e?sprintf(vn,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let vn=Array.from(e.raw.slice(0,32),_n=>("0"+(_n&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(vn+="..."),vn},formatArray(e){return"["+e.map(vn=>typeof vn=="string"?`"${vn}"`:vn).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},L$2={mixins:[o$6,Pe$1,k$6],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(e,vn){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let vn=e.charAt(0);return e.endsWith("_LOW")&&(vn=vn.toLowerCase()),vn}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){return e&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(e=e.replaceAll("/","-"),this.formatUtcToLocal(new Date(e),this.appliedTimeZone)):this.formatValueBase(e,this.formatString)},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}},z$4={components:{DetailsDialog:P$1},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var vn;let _n="",kn=" ",Wn=`
|
1432
|
+
`,zn=0;if(Array.isArray(e)){for(const Kn of e)this.formatter&&((vn=this.formatter)==null?void 0:vn.toLowerCase())!=="nil"?_n+=sprintf(this.formatter,Kn):_n+=Kn,zn+=1,zn%this.itemsPerRow===0?(zn=0,_n+=Wn):_n+=kn;return _n.trim()}else return e}}},A$2={class:"array-widget-container"};function B$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",A$2,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,zn.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const $$5=s$2(z$4,[["render",B$3],["__scopeId","data-v-62b9e9e1"]]),ArrayWidgetBy62tXtU=Object.freeze(Object.defineProperty({__proto__:null,default:$$5},Symbol.toStringTag,{value:"Module"})),M$1={components:{DetailsDialog:P$1},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){let vn="";if(e&&e.raw){let _n=" ",kn=`
|
1433
|
+
`,Wn=0,zn=0;const Kn=this.bytesPerWord*this.wordsPerRow;for(const Qn of e.raw)this.addrFormat&&Wn===0&&(vn+=sprintf(this.addrFormat,zn),zn+=Kn),vn+=sprintf(this.formatter,Qn),Wn+=1,Wn%Kn===0?(Wn=0,vn+=kn):Wn%this.bytesPerWord===0&&(vn+=_n)}else vn=e;return vn}}},R$1={class:"block-widget-container"};function S$6(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",R$1,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:zn.rows,width:e.width,"model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,zn.aging]),"data-test":"valueText",onContextmenu:e.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T$1=s$2(M$1,[["render",S$6],["__scopeId","data-v-4d4589c2"]]),BlockWidgetCrT45ode=Object.freeze(Object.defineProperty({__proto__:null,default:T$1},Symbol.toStringTag,{value:"Module"})),_sfc_main={mixins:[o$6],components:{CriticalCmdDialog:N$3},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Wk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
|
1434
|
+
`).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(vn=>setTimeout(vn,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,vn=!0,_n={}){let kn=[];for(const Wn in _n)kn.push({key:Wn,value:_n[Wn],readonly:!1});Ok.post(`/script-api/scripts/${e}/run`,{data:{environment:kn}}).then(Wn=>{vn&&window.open(`/tools/scriptrunner/${Wn.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-btn"),Qn=vue.resolveComponent("v-card-title"),Hn=vue.resolveComponent("v-row"),qn=vue.resolveComponent("v-spacer"),Nn=vue.resolveComponent("v-card-text"),Dn=vue.resolveComponent("v-card"),In=vue.resolveComponent("v-dialog"),Bn=vue.resolveComponent("critical-cmd-dialog");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"ma-1",color:"primary",style:vue.normalizeStyle(e.computedStyle),onClick:zn.onClick},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(zn.buttonText),1)]),_:1},8,["style","onClick"]),vue.createVNode(In,{modelValue:Wn.displaySendHazardous,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>Wn.displaySendHazardous=Ln),"max-width":"300"},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>vn[2]||(vn[2]=[vue.createTextVNode("Hazardous")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1,[vue.createVNode(Hn,{class:"my-2"},{default:vue.withCtx(()=>vn[3]||(vn[3]=[vue.createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createVNode(qn),vue.createVNode(Kn,{onClick:zn.cancelHazardousCmd,variant:"outlined"},{default:vue.withCtx(()=>vn[4]||(vn[4]=[vue.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),vue.createVNode(Kn,{onClick:zn.sendHazardousCmd,class:"bg-primary mx-1"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(Bn,{uuid:Wn.criticalCmdUuid,cmdString:Wn.criticalCmdString,cmdUser:Wn.criticalCmdUser,modelValue:Wn.displayCriticalCmd,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>Wn.displayCriticalCmd=Ln)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=s$2(_sfc_main,[["render",_sfc_render]]),ButtonWidgetCKyBBv6m=Object.freeze(Object.defineProperty({__proto__:null,default:ButtonWidget},Symbol.toStringTag,{value:"Module"})),r$1={mixins:[o$6],props:{widgets:{type:Array,default:()=>[]}}},h$c={mixins:[r$1],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},d$9=["width","height"];function f$d(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("svg",{id:"canvas",width:zn.width,height:zn.height},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,d$9)}const L$1=s$2(h$c,[["render",f$d],["__scopeId","data-v-47bdfc3c"]]),CanvasWidgetPqkppHC7=Object.freeze(Object.defineProperty({__proto__:null,default:L$1},Symbol.toStringTag,{value:"Module"})),s$1={mixins:[o$6]},c$5=["cx","cy","r","fill"];function n$6(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("circle",{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]},null,8,c$5)}const $$4=s$2(s$1,[["render",n$6]]),CanvasdotWidgetBUbJgM2d=Object.freeze(Object.defineProperty({__proto__:null,default:$$4},Symbol.toStringTag,{value:"Module"})),s={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){let vn="targets_modified";return await Ok.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${vn}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch(_n=>{vn="targets"}),(await Ok.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${vn}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`)).data.url}}},o$5={mixins:[o$6,s],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(e=>{this.imageUrl=e})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},p$a=["href","x","y","width","height"];function u$c(e,vn,_n,kn,Wn,zn){return e.imageUrl?(vue.openBlock(),vue.createElementBlock("image",{key:0,href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:zn.width,height:zn.height,style:vue.normalizeStyle(zn.pointerStyle),onClick:vn[0]||(vn[0]=(...Kn)=>zn.clickHandler&&zn.clickHandler(...Kn))},null,12,p$a)):vue.createCommentVNode("",!0)}const S$5=s$2(o$5,[["render",u$c]]),CanvasimageWidgetDPVBY7mi=Object.freeze(Object.defineProperty({__proto__:null,default:S$5},Symbol.toStringTag,{value:"Module"})),y$9={mixins:[o$6,s],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(e=>e.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(vn=>{vn[0]==="SCREEN"&&(this.screenTarget=vn[1],this.screenName=vn[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const e=this.appliedSettings.filter(vn=>vn[0]==="IMAGE").map(async vn=>{let _n=vn[2];return _n.startsWith("http")||(_n=await this.getPresignedUrl(_n)),{url:_n,value:vn[1],x:vn[3],y:vn[4],width:vn[5],height:vn[6]}});if(Promise.all(e).then(vn=>{this.images=vn}),this.parameters[4]){const vn={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let _n=this.parameters[4];_n.startsWith("http")?this.defaultImage={...vn,url:_n}:this.getPresignedUrl(_n).then(kn=>{this.defaultImage={...vn,url:kn}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},v$7=["href","x","y","width","height"],w$2=["href","x","y","width","height"];function k$5(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("g",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.images,Kn=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:Kn.value,href:Kn.url,x:Kn.x,y:Kn.y,width:Kn.width,height:Kn.height,style:vue.normalizeStyle(zn.pointerStyle),onClick:vn[0]||(vn[0]=(...Qn)=>zn.clickHandler&&zn.clickHandler(...Qn))},null,12,v$7)),[[vue.vShow,Kn.value==zn.selectedValue]])),128)),e.defaultImage?vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:0,href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height,style:vue.normalizeStyle(zn.pointerStyle),onClick:vn[1]||(vn[1]=(...Kn)=>zn.clickHandler&&zn.clickHandler(...Kn))},null,12,w$2)),[[vue.vShow,zn.showDefault]]):vue.createCommentVNode("",!0)])}const W=s$2(y$9,[["render",k$5]]),CanvasimagevalueWidgetGX37zzNc=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),l$1={mixins:[o$6],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},n$5=["x","y","fill"];function p$9(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("text",{x:e.parameters[0],y:e.parameters[1],fill:zn.fillColor},vue.toDisplayString(e.parameters[2]),9,n$5)}const x$1=s$2(l$1,[["render",p$9]]),CanvaslabelWidgetP2_Y6Edw=Object.freeze(Object.defineProperty({__proto__:null,default:x$1},Symbol.toStringTag,{value:"Module"})),m$5={mixins:[o$6],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},n$4=["x","y","font-size","fill"];function o$4(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("text",{x:e.parameters[3],y:e.parameters[4],"font-size":zn.fontSize,fill:zn.fillColor},vue.toDisplayString(zn._value),9,n$4)}const v$6=s$2(m$5,[["render",o$4]]),CanvaslabelvalueWidgetCuas1i9P=Object.freeze(Object.defineProperty({__proto__:null,default:v$6},Symbol.toStringTag,{value:"Module"})),m$4={mixins:[o$6],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let vn=1;return this.parameters[5]&&(vn=this.parameters[5]),"stroke:"+e+";stroke-width:"+vn}}},n$3=["x1","y1","x2","y2"];function p$8(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("line",{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3],style:vue.normalizeStyle(zn.calcStyle)},null,12,n$3)}const _$6=s$2(m$4,[["render",p$8]]),CanvaslineWidgetBYOYgPya=Object.freeze(Object.defineProperty({__proto__:null,default:_$6},Symbol.toStringTag,{value:"Module"})),p$7={mixins:[o$6],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let vn=1;return this.parameters[7]&&(vn=this.parameters[7]),"stroke:"+e+";stroke-width:"+vn}},created(){this.appliedSettings.forEach(vn=>{vn[0]==="VALUE_EQ"&&(this.valueMap[vn[1]]=vn[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o$3=["x1","y1","x2","y2"];function h$b(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:vue.normalizeStyle(zn.calcStyle)},null,12,o$3)}const v$5=s$2(p$7,[["render",h$b]]),CanvaslinevalueWidget3cVJMFo7=Object.freeze(Object.defineProperty({__proto__:null,default:v$5},Symbol.toStringTag,{value:"Module"})),u$b={mixins:[o$6],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function p$6(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-checkbox");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",label:Wn.label,modelValue:Wn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["label","modelValue","style"])}const k$4=s$2(u$b,[["render",p$6]]),CheckbuttonWidgetB3wgSMuB=Object.freeze(Object.defineProperty({__proto__:null,default:k$4},Symbol.toStringTag,{value:"Module"})),p$5={mixins:[o$6],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c$4(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-select");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",variant:"outlined",items:Wn.items,modelValue:Wn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["items","modelValue","style"])}const y$8=s$2(p$5,[["render",c$4]]),ComboboxWidgetDzr4Scvf=Object.freeze(Object.defineProperty({__proto__:null,default:y$8},Symbol.toStringTag,{value:"Module"})),u$a={mixins:[o$6,Pe$1],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function f$c(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:Wn.dateValue,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.dateValue=Qn),label:Wn.label,style:vue.normalizeStyle(e.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const D=s$2(u$a,[["render",f$c]]),DateWidgetBWh76Ibb=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),p$4={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch{throw new Error(`Unknown widget: ${this.name}`)}}};function c$3(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Wn.widgetType),vue.normalizeProps(vue.guardReactiveProps({...e.$props,...e.$attrs})),null,16)}const $$3=s$2(p$4,[["render",c$3]]),DynamicWidgetM9EliUR2=Object.freeze(Object.defineProperty({__proto__:null,default:$$3},Symbol.toStringTag,{value:"Module"})),u$9=4,A$1={components:{DetailsDialog:P$1},mixins:[L$2],data:function(){return{width:12+u$9}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+u$9,"ch",this.width)}};function U$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("rux-status"),Qn=vue.resolveComponent("v-text-field"),Hn=vue.resolveComponent("v-tooltip"),qn=vue.resolveComponent("v-list-item-title"),Nn=vue.resolveComponent("v-list-item"),Dn=vue.resolveComponent("v-list"),In=vue.resolveComponent("v-menu"),Bn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",{class:"value-widget-container",style:vue.normalizeStyle([e.computedStyle,zn.aging])},[vue.createVNode(Hn,{location:"top"},{activator:vue.withCtx(({props:Ln})=>[vue.createVNode(Qn,vue.mergeProps({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:e.valueClass,"data-test":"value",onContextmenu:e.showContextMenu},Ln),vue.createSlots({_:2},[e.astroStatus?{name:"prepend-inner",fn:vue.withCtx(()=>[vue.createVNode(Kn,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(zn.fullName),1)]),_:1}),vue.createVNode(In,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>e.contextMenuShown=Ln),target:[e.x,e.y],style:{"z-index":"3000"}},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(Ln,Pn)=>(vue.openBlock(),vue.createBlock(Nn,{key:Pn,onClick:vue.withModifiers(Ln.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ln.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Bn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>e.viewDetails=Ln)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const H=s$2(A$1,[["render",U$1],["__scopeId","data-v-c21e4dde"]]),ValueWidgetCZh7JWwT=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),d$8={mixins:[o$6],components:{ValueWidget:H},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function u$8(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:zn.getParameters,settings:e.appliedSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"format-string":e.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const y$7=s$2(d$8,[["render",u$8]]),FormatvalueWidgetRk0_eeIm=Object.freeze(Object.defineProperty({__proto__:null,default:y$7},Symbol.toStringTag,{value:"Module"})),y$6={mixins:[r$1],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function h$a(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const N$1=s$2(y$6,[["render",h$a]]),HorizontalWidgetBcfJ24Zn=Object.freeze(Object.defineProperty({__proto__:null,default:N$1},Symbol.toStringTag,{value:"Module"})),f$b={mixins:[r$1],components:{HorizontalWidget:N$1}};function _$5(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-banner"),Qn=vue.resolveComponent("horizontal-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(e.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Qn,vue.mergeProps(e.listeners,{parameters:e.parameters.slice(1),settings:e.appliedSettings,widgets:e.widgets,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"screen-id":e.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const k$3=s$2(f$b,[["render",_$5],["__scopeId","data-v-e9e6c14b"]]),HorizontalboxWidgetCQy1Hv9E=Object.freeze(Object.defineProperty({__proto__:null,default:k$3},Symbol.toStringTag,{value:"Module"})),t={};function c$2(e,vn){return vue.openBlock(),vue.createElementBlock("hr")}const i=s$2(t,[["render",c$2]]),HorizontallineWidgetBdlNB951=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"})),o$2={mixins:[o$6],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a$1=["src","width","height"];function n$2(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("iframe",{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height,style:vue.normalizeStyle(e.computedStyle)},null,12,a$1)}const _$4=s$2(o$2,[["render",n$2]]),IframeWidgetBBaDrRLo=Object.freeze(Object.defineProperty({__proto__:null,default:_$4},Symbol.toStringTag,{value:"Module"})),m$3={mixins:[o$6],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},unmounted:function(){this.$emit("deleteItem",this.valueId)}},o$1=["src","alt","width","height"];function d$7(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("img",{src:zn.src,alt:e.valueId,width:e.parameters[4],height:e.parameters[5],style:vue.normalizeStyle(e.computedStyle)},null,12,o$1)}const $$2=s$2(m$3,[["render",d$7]]),ImageviewerWidgetBgO3Pq6I=Object.freeze(Object.defineProperty({__proto__:null,default:$$2},Symbol.toStringTag,{value:"Module"})),l={mixins:[o$6],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){let e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}};function f$a(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{"data-test":"label",class:"pa-1 mt-1 label",style:vue.normalizeStyle([zn.cssProps,e.computedStyle])},vue.toDisplayString(zn.labelText),5)}const S$4=s$2(l,[["render",f$a],["__scopeId","data-v-1d1d3128"]]),LabelWidgetB_C6lKOE=Object.freeze(Object.defineProperty({__proto__:null,default:S$4},Symbol.toStringTag,{value:"Module"})),u$7={mixins:[o$6],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=this.screenValues[this.valueId][0],vn=this.colors[e];return vn||(vn=this.colors.ANY),vn||(vn="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":vn}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}},created(){this.appliedSettings.forEach(e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}}),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}};function _$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Qn})=>[vue.createElementVNode("div",vue.mergeProps({class:"led mt-1",style:zn.cssProps},Qn),null,16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(zn.fullName),1)]),_:1})}const E$1=s$2(u$7,[["render",_$3],["__scopeId","data-v-8c5b4138"]]),LedWidgetBAt02s0J=Object.freeze(Object.defineProperty({__proto__:null,default:E$1},Symbol.toStringTag,{value:"Module"})),f$9={mixins:[o$6],components:{LabelWidget:S$4,LedWidget:E$1},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$6(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("led-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:zn.labelName,settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const N=s$2(f$9,[["render",u$6]]),LabelledWidgetB_UGivhr=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),n$1={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return e===null&&(e=this.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function p$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("rux-progress");return vue.openBlock(),vue.createBlock(Kn,{value:zn._value,class:"progress",style:vue.normalizeStyle(e.computedStyle)},null,8,["value","style"])}const I=s$2(n$1,[["render",p$3],["__scopeId","data-v-85bc2857"]]),ProgressbarWidgetCYDziFej=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),f$8={mixins:[o$6],components:{LabelWidget:S$4,ProgressbarWidget:I},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$5(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("progressbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:zn.labelName,settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,style:e.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const h$9=s$2(f$8,[["render",u$5]]),LabelprogressbarWidgetBJWCmsYC=Object.freeze(Object.defineProperty({__proto__:null,default:h$9},Symbol.toStringTag,{value:"Module"}));function M(e,vn,_n){const kn=l$3(e,void 0);if(isNaN(vn))return y$b(e,NaN);if(!vn)return kn;const Wn=kn.getDate(),zn=y$b(e,kn.getTime());zn.setMonth(kn.getMonth()+vn+1,0);const Kn=zn.getDate();return Wn>=Kn?zn:(kn.setFullYear(zn.getFullYear(),zn.getMonth(),Wn),kn)}function b$4(e,vn,_n){return z$5(e,-vn,_n)}function k$2(e,vn,_n){return M(e,-vn)}function S$3(e,vn,_n){const{years:kn=0,months:Wn=0,weeks:zn=0,days:Kn=0,hours:Qn=0,minutes:Hn=0,seconds:qn=0}=vn,Nn=k$2(e,Wn+kn*12),Dn=b$4(Nn,Kn+zn*7,_n),In=Hn+Qn*60,Bn=(qn+In*60)*1e3;return y$b(e,+Dn-Bn)}const _$2={mixins:[o$6],data:function(){return{id:Math.floor(Math.random()*1e11),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.appliedSettings.forEach(e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let vn=cr(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=vn.getTime()*1e6;break;case"HISTORY":let _n=parseInt(e[1].slice(0,e[1].length-1)),kn=null,Wn=1;switch(e[1][e[1].length-1]){case"d":kn="days",Wn=3600*24;break;case"h":kn="hours",Wn=3600;break;case"m":kn="minutes",Wn=60;break;case"s":kn="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let zn={};zn[kn]=_n,this.startTime=S$3(new Date,zn).getTime()*1e6,_n*Wn>this.secondsGraphed&&(this.secondsGraphed=_n*Wn),_n*Wn>this.pointsSaved&&(this.pointsSaved=_n*Wn),_n*Wn>this.pointsGraphed&&(this.pointsGraphed=_n*Wn);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}}),this.items=this.items.map(e=>{let vn=e.itemName;if(e.itemName.includes("[["))e.itemName=e.itemName.replace("[[","[").replace("]]","]"),vn=e.itemName;else if(e.itemName.includes("[")){let _n=e.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(_n[1]),vn=e.itemName.replace(_n[0],"")}return this.$emit("addItem",`${e.targetName}__${e.packetName}__${vn}__${e.valueType}`,!0),e})},destroyed(){this.items.map(e=>this.$emit("deleteItem",`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`))}},d$6={components:{Graph:Se},mixins:[_$2],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function h$8(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:vue.normalizeStyle(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const w$1=s$2(d$6,[["render",h$8]]),SparklineWidgetCDrVXOFV=Object.freeze(Object.defineProperty({__proto__:null,default:w$1},Symbol.toStringTag,{value:"Module"})),g$5={mixins:[o$6],components:{LabelWidget:S$4,SparklineWidget:w$1},computed:{labelName(){return[this.parameters[2]+":"]}}};function f$7(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("sparkline-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:zn.labelName,settings:[...e.appliedSettings],line:e.line,lineNumber:e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","lineNumber"]),vue.createVNode(Qn,{parameters:e.parameters,settings:[...e.appliedSettings],style:vue.normalizeStyle(e.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const $$1=s$2(g$5,[["render",f$7]]),LabelsparklineWidgetDILCIh3q=Object.freeze(Object.defineProperty({__proto__:null,default:$$1},Symbol.toStringTag,{value:"Module"})),g$4={mixins:[o$6],components:{LabelWidget:S$4,ValueWidget:H},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}};function f$6(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:zn.labelName,settings:[...e.appliedSettings],line:e.line,"line-number":e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:zn.valueParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,line:e.line,"line-number":e.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const z$3=s$2(g$4,[["render",f$6]]),LabelvalueWidgetCCZd1NXE=Object.freeze(Object.defineProperty({__proto__:null,default:z$3},Symbol.toStringTag,{value:"Module"})),g$3={mixins:[o$6],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:S$4,ValueWidget:H},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),this.parameters[4]!=null&&this.valueParameters.push(this.parameters[4]),this.parameters[5]!=null&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:new Wk().get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then(e=>{this.description=e.description})}};function b$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:zn.labelName,settings:[...e.settings],line:e.line,"line-number":e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:Wn.valueParameters,settings:[...e.settings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,line:e.line,"line-number":e.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const $=s$2(g$3,[["render",b$3]]),LabelvaluedescWidgetBsllq8W6=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),u$4={mixins:[o$6],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],vn=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(vn),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,vn)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new Wk,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(e=>{this.limitsSettings=e}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,60*1e3),this.appliedSettings.forEach(e=>{e[0]==="MIN_VALUE"&&(this.minValue=parseInt(e[1])),e[0]==="MAX_VALUE"&&(this.maxValue=parseInt(e[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue!==null&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue!==null&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let vn=80;return this.redLow==0&&(vn+=10),this.redHigh==0&&(vn+=10),this.scale=(e[3]-e[0])/vn,e},calcPosition(e,vn){if(!e||!vn)return;let _n=vn[0]-10*this.scale;if(this.minValue&&this.minValue==vn[0]&&(_n=vn[0]),vn[3]-10*this.scale,this.maxValue&&this.maxValue==vn[3]&&vn[3],e.raw)return e.raw==="-Infinity"?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const kn=parseInt((e-_n)/this.scale);return kn>100?100:kn<0?0:kn}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(e=>{this.currentLimitsSet=e})}}},v$4={mixins:[u$4],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`}}};function b$2(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Qn})=>[vue.createElementVNode("div",vue.mergeProps({class:"limitsbar",style:[e.cssProps,e.computedStyle]},Qn),vn[0]||(vn[0]=[vue.createElementVNode("div",{class:"limitsbar__container"},[vue.createElementVNode("div",{class:"limitsbar__redlow"}),vue.createElementVNode("div",{class:"limitsbar__redhigh"}),vue.createElementVNode("div",{class:"limitsbar__yellowlow"}),vue.createElementVNode("div",{class:"limitsbar__yellowhigh"}),vue.createElementVNode("div",{class:"limitsbar__greenlow"}),vue.createElementVNode("div",{class:"limitsbar__greenhigh"}),vue.createElementVNode("div",{class:"limitsbar__blue"}),vue.createElementVNode("div",{class:"limitsbar__line"}),vue.createElementVNode("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(zn.limitsRange),1)]),_:1})}const L=s$2(v$4,[["render",b$2],["__scopeId","data-v-6677be5d"]]),LimitsbarWidgetJJiyzZjb=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),g$2={mixins:[o$6],components:{LabelvalueWidget:z$3,LimitsbarWidget:L},computed:{labelValueSettings(){return[...this.appliedSettings.filter(e=>e[0]==="__SCREEN_ID__"),...this.settings.filter(e=>parseInt(e[0])===0||parseInt(e[0])===1)]}}};function f$5(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("labelvalue-widget"),Qn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:zn.labelValueSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const y$5=s$2(g$2,[["render",f$5]]),LabelvaluelimitsbarWidgetBVCfaD_=Object.freeze(Object.defineProperty({__proto__:null,default:y$5},Symbol.toStringTag,{value:"Module"})),r={mixins:[u$4],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],vn=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(vn),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,vn)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}}}};function o(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{class:"limitsbar",style:vue.normalizeStyle([zn.cssProps,e.computedStyle])},vn[0]||(vn[0]=[vue.createStaticVNode('<div class="limitsbar__container" data-v-cadbf1c4><div class="limitsbar__redlow" data-v-cadbf1c4></div><div class="limitsbar__redhigh" data-v-cadbf1c4></div><div class="limitsbar__yellowlow" data-v-cadbf1c4></div><div class="limitsbar__yellowhigh" data-v-cadbf1c4></div><div class="limitsbar__greenlow" data-v-cadbf1c4></div><div class="limitsbar__greenhigh" data-v-cadbf1c4></div><div class="limitsbar__blue" data-v-cadbf1c4></div><div class="limitsbar__line" data-v-cadbf1c4></div><div class="limitsbar__arrow" data-v-cadbf1c4></div></div>',1)]),4)}const f$4=s$2(r,[["render",o],["__scopeId","data-v-cadbf1c4"]]),LimitscolumnWidgetCd76tBo7=Object.freeze(Object.defineProperty({__proto__:null,default:f$4},Symbol.toStringTag,{value:"Module"})),f$3={mixins:[o$6],components:{LabelWidget:S$4,ValueWidget:H,LimitscolumnWidget:f$4}};function v$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("limitscolumn-widget"),Hn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:[e.parameters[2]],settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"]),vue.createVNode(Hn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const B$2=s$2(f$3,[["render",v$3]]),LabelvaluelimitscolumnWidgetDwA0eRBw=Object.freeze(Object.defineProperty({__proto__:null,default:B$2},Symbol.toStringTag,{value:"Module"})),d$5={mixins:[o$6],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const vn=(e-this.min)/this.range*100;return vn>100?100:vn<0?0:vn}}};function m$2(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{class:"rangebar",style:vue.normalizeStyle([zn.cssProps,e.computedStyle])},vn[0]||(vn[0]=[vue.createElementVNode("div",{class:"rangebar__container"},[vue.createElementVNode("div",{class:"rangebar__line"}),vue.createElementVNode("div",{class:"rangebar__arrow"})],-1)]),4)}const f$2=s$2(d$5,[["render",m$2],["__scopeId","data-v-34d37e7c"]]),RangebarWidgetDW0FJK6y=Object.freeze(Object.defineProperty({__proto__:null,default:f$2},Symbol.toStringTag,{value:"Module"})),d$4={mixins:[o$6],components:{LabelvalueWidget:z$3,RangebarWidget:f$2},computed:{labelValueSettings(){return[...this.settings.filter(e=>e[0]==="__SCREEN_ID__"),...this.settings.filter(e=>parseInt(e[0])===0||parseInt(e[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h$7(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("labelvalue-widget"),Qn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:zn.labelValueParameters,settings:zn.labelValueSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:zn.rangeBarParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const B$1=s$2(d$4,[["render",h$7]]),LabelvaluerangebarWidget3GDJz3dj=Object.freeze(Object.defineProperty({__proto__:null,default:B$1},Symbol.toStringTag,{value:"Module"})),d$3={mixins:[L$2],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&this.parameters[5].toLowerCase()==="true"&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){let e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}};function c$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("label-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createElementVNode("div",{class:"led align-self-center",style:vue.normalizeStyle(zn.cssProps)},null,4),vue.createVNode(Kn,{parameters:zn.labelName,settings:e.appliedSettings,style:vue.normalizeStyle(e.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const w=s$2(d$3,[["render",c$1],["__scopeId","data-v-87ec8e4f"]]),LimitscolorWidgetCYzXKbYd=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),m$1={components:{Graph:Se},mixins:[_$2]};function h$6(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:vue.normalizeStyle(e.computedStyle),"time-zone":this.screenTimeZone,onPause:vn[0]||(vn[0]=()=>e.state="pause"),onStart:vn[1]||(vn[1]=()=>e.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const S$2=s$2(m$1,[["render",h$6]]),LinegraphWidgetDWRtO6Ej=Object.freeze(Object.defineProperty({__proto__:null,default:S$2},Symbol.toStringTag,{value:"Module"})),b$1={mixins:[r$1],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return K1.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function A(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("table",{style:vue.normalizeStyle(e.computedStyle),role:"presentation"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(zn.widgetChunks,(Kn,Qn)=>(vue.openBlock(),vue.createElementBlock("tr",{key:"r"+Qn},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Kn,(Hn,qn)=>(vue.openBlock(),vue.createElementBlock("td",{key:"c"+qn},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Hn.type),vue.mergeProps({ref_for:!0},e.listeners,{target:Hn.target,parameters:Hn.parameters,settings:Hn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Hn.widgets,name:Hn.name,line:Hn.line,"line-number":Hn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const v$2=s$2(b$1,[["render",A]]),MatrixbycolumnsWidgetCwsyjNV2=Object.freeze(Object.defineProperty({__proto__:null,default:v$2},Symbol.toStringTag,{value:"Module"})),d$2={props:{value:{type:Number}},mixins:[o$6],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function p$2(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-radio");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",dense:"",label:Wn.label,style:vue.normalizeStyle(e.computedStyle),value:_n.value},null,8,["label","style","value"])}const y$4=s$2(d$2,[["render",p$2]]),RadiobuttonWidgetU6jcQZoD=Object.freeze(Object.defineProperty({__proto__:null,default:y$4},Symbol.toStringTag,{value:"Module"})),_$1={mixins:[r$1],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h$5(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-radio-group");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",modelValue:Wn.selectedIndex,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.selectedIndex=Qn),style:vue.normalizeStyle(e.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Qn,Hn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Qn.type),vue.mergeProps({ref_for:!0},e.listeners,{value:Hn,key:Hn,target:Qn.target,parameters:Qn.parameters,settings:Qn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,name:Qn.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const C=s$2(_$1,[["render",h$5]]),RadiogroupWidgetHTPJnsB0=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),m={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const vn of this.items){let _n=this.screenValues[vn][1];_n&&((_n.includes("BLUE")||_n.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),_n.includes("YELLOW")&&e!="critical"&&(e="caution"),_n.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let vn="CONVERTED";e[4]&&(vn=e[4]);let _n=`${e[1]}__${e[2]}__${e[3]}__${vn}`;this.items.push(_n),this.$emit("addItem",_n);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h$4(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("rux-monitoring-icon");return vue.openBlock(),vue.createBlock(Kn,{class:"rux-icon",style:vue.normalizeStyle(zn.pointerStyle),icon:e.icon,status:zn.status,label:e.label,sublabel:e.subLabel,onClick:zn.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const E=s$2(m,[["render",h$4]]),RollupWidgetB2qrx55f=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"})),y$3={mixins:[r$1],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function h$3(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-column",style:vue.normalizeStyle(e.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const R=s$2(y$3,[["render",h$3]]),VerticalWidgetCh7VAEmz=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"})),y$2={mixins:[r$1],components:{VerticalWidget:R},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let e=this.parameters[1];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function v$1(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle),class:"overflow-y-auto"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const b=s$2(y$2,[["render",v$1]]),ScrollwindowWidgetCwIDxgO6=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),h$2={mixins:[L$2],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-icon");return vue.openBlock(),vue.createBlock(Kn,{onClick:zn.clickHandler},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(zn.displayedIcon),1)]),_:1},8,["onClick"])}const v=s$2(h$2,[["render",d$1]]),SignalWidgetBosa3AbW=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),a={mixins:[o$6],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function n(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.computedStyle)},null,4)}const h$1=s$2(a,[["render",n]]),SpacerWidgetDYAlt5mt=Object.freeze(Object.defineProperty({__proto__:null,default:h$1},Symbol.toStringTag,{value:"Module"})),z$2={mixins:[r$1],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-tab"),Qn=vue.resolveComponent("v-tabs"),Hn=vue.resolveComponent("v-window-item"),qn=vue.resolveComponent("v-window");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Qn,{modelValue:e.curTab,"onUpdate:modelValue":vn[0]||(vn[0]=Nn=>e.curTab=Nn),style:vue.normalizeStyle(e.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Nn,Dn)=>(vue.openBlock(),vue.createBlock(Kn,{key:Dn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Nn.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),vue.createVNode(qn,{modelValue:e.curTab,"onUpdate:modelValue":vn[1]||(vn[1]=Nn=>e.curTab=Nn)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Nn,Dn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Dn},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Nn.widgets,(In,Bn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(In.type),vue.mergeProps({ref_for:!0},e.listeners,{key:`${Dn}-${Bn}`,target:In.target,parameters:In.parameters,settings:In.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:In.widgets,name:In.name,line:In.line,"line-number":In.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const F=s$2(z$2,[["render",B]]),TabbookWidgetDDdlzCkv=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),S$1={components:{DetailsDialog:P$1},data:function(){return{width:200,height:200}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},T={class:"textbox-widget-container"};function z$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",T,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,zn.aging]),"data-test":"valueText",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const U=s$2(S$1,[["render",z$1],["__scopeId","data-v-10f560aa"]]),TextboxWidget5euFelEq=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),p$1={mixins:[o$6],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function u$3(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:Wn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["modelValue","style"])}const y$1=s$2(p$1,[["render",u$3]]),TextfieldWidgetBFripYeh=Object.freeze(Object.defineProperty({__proto__:null,default:y$1},Symbol.toStringTag,{value:"Module"})),d={mixins:[o$6,Pe$1],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function f$1(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:Wn.timeValue,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>Wn.timeValue=Qn),label:Wn.label,style:vue.normalizeStyle(e.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=s$2(d,[["render",f$1]]),TimeWidgetBBSbsUYJ=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),p={mixins:[o$6],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function c(e,vn,_n,kn,Wn,zn){return vue.openBlock(),vue.createElementBlock("span",{class:"text-h5 text-center pa-1 mt-1 label",style:vue.normalizeStyle(e.computedStyle)},vue.toDisplayString(zn.labelText),5)}const x=s$2(p,[["render",c]]),TitleWidgetP8cjoBs=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),g$1={mixins:[o$6],components:{ValueWidget:H,LimitsbarWidget:L}};function u$2(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("value-widget"),Qn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters.slice(0,3),settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const z=s$2(g$1,[["render",u$2]]),ValuelimitsbarWidgetDU7ybswC=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),u$1={mixins:[o$6],components:{ValueWidget:H,LimitscolumnWidget:f$4}};function g(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("limitscolumn-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const k$1=s$2(u$1,[["render",g]]),ValuelimitscolumnWidgetDMwH5jM=Object.freeze(Object.defineProperty({__proto__:null,default:k$1},Symbol.toStringTag,{value:"Module"})),u={mixins:[o$6],components:{ValueWidget:H,RangebarWidget:f$2},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("value-widget"),Qn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:zn.valueParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:zn.rangeBarParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=s$2(u,[["render",h]]),ValuerangebarWidgetDPpofDpA=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),f={mixins:[r$1],components:{VerticalWidget:R}};function _(e,vn,_n,kn,Wn,zn){const Kn=vue.resolveComponent("v-banner"),Qn=vue.resolveComponent("vertical-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(e.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Qn,vue.mergeProps(e.listeners,{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const k=s$2(f,[["render",_],["__scopeId","data-v-832aa5cd"]]),VerticalboxWidgetDYxTFT4=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));return DataviewerquaternionWidget});
|
1435
|
+
//# sourceMappingURL=DataviewerquaternionWidget.umd.min.js.map
|