@nuxt/devtools 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +2 -2
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +15 -15
- package/dist/client/404.html +15 -15
- package/dist/client/_nuxt/{Bm0NU4n7.js → -qWogbxp.js} +1 -1
- package/dist/client/_nuxt/{YHaOe1r2.js → 2rHQ-89_.js} +1 -1
- package/dist/client/_nuxt/{BvWK-VK_.js → 5Viy9mJZ.js} +1 -1
- package/dist/client/_nuxt/{DtL8m2Aq.js → 5rat9AfN.js} +1 -1
- package/dist/client/_nuxt/{Cw_HWDDb.js → 66lAmVWa.js} +1 -1
- package/dist/client/_nuxt/{BJbhmoX6.js → B1WwrPQO.js} +1 -1
- package/dist/client/_nuxt/{B0ueYKyn.js → B4a1LB7w.js} +1 -1
- package/dist/client/_nuxt/{CFIIwO5G.js → B5LBktAa.js} +1 -1
- package/dist/client/_nuxt/{BaRB0bpe.js → B7vUcbNk.js} +1 -1
- package/dist/client/_nuxt/{Bvxqhl9x.js → BBiSxoA1.js} +1 -1
- package/dist/client/_nuxt/{BFJB92M1.js → BEabNaD3.js} +1 -1
- package/dist/client/_nuxt/{BNQxZ_tm.js → BL23Bc6O.js} +1 -1
- package/dist/client/_nuxt/{DLnTPeai.js → BNIC4eZE.js} +1 -1
- package/dist/client/_nuxt/{B0KOo1ba.js → BNSBUDhB.js} +1 -1
- package/dist/client/_nuxt/{DxuiyCFU.js → BOBmlKb6.js} +1 -1
- package/dist/client/_nuxt/{B6pd2ymi.js → BWnGocWo.js} +1 -1
- package/dist/client/_nuxt/{CMxQOWd6.js → BYVFCOjE.js} +1 -1
- package/dist/client/_nuxt/{lLn-RhM6.js → B_Ym5JKn.js} +1 -1
- package/dist/client/_nuxt/{BdrRW8OO.js → BbqA4Ggc.js} +1 -1
- package/dist/client/_nuxt/{BwUXge7D.js → BcobmRlA.js} +1 -1
- package/dist/client/_nuxt/{DlPmnnjb.js → BkK_qJ34.js} +1 -1
- package/dist/client/_nuxt/{CZ3WyNik.js → BlDdoh7Z.js} +1 -1
- package/dist/client/_nuxt/{ClXd2J8B.js → BlKdmH9f.js} +1 -1
- package/dist/client/_nuxt/{Bki9ESx2.js → Br0oqAKP.js} +1 -1
- package/dist/client/_nuxt/{C378twlw.js → Bs6Xt_hm.js} +1 -1
- package/dist/client/_nuxt/{BjA0kRNM.js → Bx439kud.js} +1 -1
- package/dist/client/_nuxt/{CwVYEx0b.js → C0doa8lg.js} +1 -1
- package/dist/client/_nuxt/{DYSjJb82.js → CDjZ2Pwm.js} +1 -1
- package/dist/client/_nuxt/{B90Ttd7o.js → CGdFtN3I.js} +1 -1
- package/dist/client/_nuxt/{BCaU9car.js → CLKMZBSj.js} +1 -1
- package/dist/client/_nuxt/{C6qnkm2z.js → CLVJ1qFH.js} +1 -1
- package/dist/client/_nuxt/{Co1NnsNe.js → CQfzcXIu.js} +1 -1
- package/dist/client/_nuxt/{PO8p82Rr.js → CSxKs2xg.js} +5 -5
- package/dist/client/_nuxt/{CZS3fKwr.js → Cdv1FpqM.js} +1 -1
- package/dist/client/_nuxt/{DGsSg8Yx.js → CgdhjF_I.js} +1 -1
- package/dist/client/_nuxt/{BLnLeUd3.js → CgvvXsvn.js} +1 -1
- package/dist/client/_nuxt/{DOshYgbb.js → CiwDa1gT.js} +1 -1
- package/dist/client/_nuxt/{Dnoo7cyQ.js → D0LPR03l.js} +1 -1
- package/dist/client/_nuxt/{B9CZjm2z.js → D4dWpejW.js} +1 -1
- package/dist/client/_nuxt/{V55AckNm.js → DCvec3a_.js} +1 -1
- package/dist/client/_nuxt/{BXJ3NTXl.js → DCzXkWpZ.js} +1 -1
- package/dist/client/_nuxt/{BaKCaZGk.js → DE_Uwlru.js} +1 -1
- package/dist/client/_nuxt/{iAfmkGIi.js → DO3F8Knp.js} +1 -1
- package/dist/client/_nuxt/{DI84-lg6.js → DQFmACZp.js} +1 -1
- package/dist/client/_nuxt/{BKiZzkRj.js → DQS-rzez.js} +1 -1
- package/dist/client/_nuxt/{SP_cIGIP.js → DRuHuqMZ.js} +1 -1
- package/dist/client/_nuxt/{BPX3fYES.js → DRzmYdLW.js} +1 -1
- package/dist/client/_nuxt/{IlsTwlBb.js → DTnMHt2b.js} +1 -1
- package/dist/client/_nuxt/{jWDo8Ezs.js → DW3jphl9.js} +1 -1
- package/dist/client/_nuxt/{DJ6PyLfz.js → DdJKusQR.js} +1 -1
- package/dist/client/_nuxt/{Cuq04cZp.js → DgR63EN_.js} +1 -1
- package/dist/client/_nuxt/{BJ65-qNi.js → DjVyxknR.js} +1 -1
- package/dist/client/_nuxt/{Coatggmz.js → DnhEYZMs.js} +1 -1
- package/dist/client/_nuxt/{HBanA1tG.js → Dw5Tt5gJ.js} +1 -1
- package/dist/client/_nuxt/{DKAZQnAj.js → HBr8xMzr.js} +1 -1
- package/dist/client/_nuxt/{CqLfaAGq.js → J3djixjQ.js} +1 -1
- package/dist/client/_nuxt/{CgrD3_g7.js → JkOP3KoO.js} +1 -1
- package/dist/client/_nuxt/{CiSNQgOw.js → K0tfU50F.js} +1 -1
- package/dist/client/_nuxt/{B3uyMCCv.js → LKwhzCVp.js} +1 -1
- package/dist/client/_nuxt/{DyeV3m0g.js → Zl399FYQ.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/24abe175-04a3-492b-88f5-fff7ea90b9c1.json +1 -0
- package/dist/client/_nuxt/{tWSQ6YIe.js → f1qyuWhx.js} +1 -1
- package/dist/client/_nuxt/{BvDxtYhR.js → tYBohD88.js} +1 -1
- package/dist/client/index.html +15 -15
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/builds/meta/d37e84e4-7cd9-41ae-8568-7d4b1d04caa2.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bO as ke,d as te,bP as re,r as W,a as $,o as y,m as I,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as oe,bK as Oe,ab as Te,ay as ie,ac as xe,aB as Se,b0 as we,bL as Xe,e as De,a2 as se,I as G,j as C,v as Y,bH as Ee,h as A,l as ee,aw as Me,ak as ue,V as Ce,_ as le,X as Ie,A as ce,am as $e,a9 as Ue,aa as Le,bQ as Ne,ah as Re,U as Ae,bN as Ve,ar as je}from"./PO8p82Rr.js";import{_ as Be}from"./Co1NnsNe.js";import{_ as fe}from"./BaRB0bpe.js";import{_ as pe}from"./BKiZzkRj.js";import{_ as He}from"./BJ65-qNi.js";import{S as de}from"./BcJws1i5.js";import{e as We}from"./DYSjJb82.js";import{_ as ze}from"./BPX3fYES.js";import{_ as qe}from"./Bm0NU4n7.js";import"./CiSNQgOw.js";import"./BLnLeUd3.js";import"./tWSQ6YIe.js";import"./B90Ttd7o.js";var he={exports:{}};(function(z,U){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var L={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var r=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},m.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},m.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var n=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var o=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";o?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in o)t[4]=t[4].replace(new RegExp(s,"gi"),o[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},m.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var r=_(910),k=_(794),m=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,o=n.throwExceptionOnParseError,s=o===void 0?!0:o,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,N=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:N,locale:H,tzOffset:E},Q=new t(e,q);return Q.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),o=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+o+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],o="";if(!r.StringUtilities.containsAny(a,t.specialCharacters)&&!r.StringUtilities.containsAny(n,t.specialCharacters)&&!r.StringUtilities.containsAny(e,t.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!r.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");o+=this.i18n.at();for(var l=0;l<i.length;l++)o+=" ",o+=this.formatTime(i[l],a,""),l<i.length-2&&(o+=","),l==i.length-2&&(o+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(o+=v,o&&f&&(o+=", "),o+=f,f===h)return o;o&&h&&(o+=", "),o+=h}return o},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return r.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return r.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&n.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return o},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return r.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(n&&a.includes("-")&&this.expressionParts[1]!="0"){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,s){var i=o;o.indexOf("#")>-1?i=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(o.indexOf("#")>-1){var c=null,N=o.substring(o.indexOf("#")+1),T=o.substring(0,o.indexOf("#"));switch(N){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var s=o.substring(0,o.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(o){var s=null;if(o.indexOf("#")>-1){var i=o.substring(o.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(o)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(o)-1]:a[parseInt(o)-1]},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(o),o)},function(o){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),i=s==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return r.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,o,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=r.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),N="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(N+=",",T<c.length-1&&(N+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,o,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,o,s,i):N+=n(c[T]);v?l=N:l=r.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=r.StringUtilities.format(o(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=r.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=r.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var o="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return o+=r.StringUtilities.format(v,i,l),o},t.prototype.formatTime=function(e,a,n){var o=0,s=0;this.options.tzOffset&&(o=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+o,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var r=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new r.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function r(){}return r.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},r.prototype.atX0MinutesPastTheHourGt20=function(){return null},r.prototype.commaMonthX0ThroughMonthX1=function(){return null},r.prototype.commaYearX0ThroughYearX1=function(){return null},r.prototype.use24HourTimeFormatByDefault=function(){return!1},r.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},r.prototype.everyMinute=function(){return"every minute"},r.prototype.everyHour=function(){return"every hour"},r.prototype.atSpace=function(){return"At "},r.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},r.prototype.at=function(){return"At"},r.prototype.spaceAnd=function(){return" and"},r.prototype.everySecond=function(){return"every second"},r.prototype.everyX0Seconds=function(){return"every %s seconds"},r.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},r.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},r.prototype.everyX0Minutes=function(){return"every %s minutes"},r.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},r.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},r.prototype.everyX0Hours=function(){return"every %s hours"},r.prototype.betweenX0AndX1=function(){return"between %s and %s"},r.prototype.atX0=function(){return"at %s"},r.prototype.commaEveryDay=function(){return", every day"},r.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},r.prototype.commaX0ThroughX1=function(){return", %s through %s"},r.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},r.prototype.first=function(){return"first"},r.prototype.second=function(){return"second"},r.prototype.third=function(){return"third"},r.prototype.fourth=function(){return"fourth"},r.prototype.fifth=function(){return"fifth"},r.prototype.commaOnThe=function(){return", on the "},r.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},r.prototype.lastDay=function(){return"the last day"},r.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},r.prototype.commaOnlyOnX0=function(){return", only on %s"},r.prototype.commaAndOnX0=function(){return", and on %s"},r.prototype.commaEveryX0Months=function(){return", every %s months"},r.prototype.commaOnlyInX0=function(){return", only in %s"},r.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},r.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},r.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},r.prototype.firstWeekday=function(){return"first weekday"},r.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},r.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},r.prototype.commaEveryX0Days=function(){return", every %s days"},r.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},r.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},r.prototype.commaEveryHour=function(){return", every hour"},r.prototype.commaEveryX0Years=function(){return", every %s years"},r.prototype.commaStartingX0=function(){return", starting %s"},r.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},r}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var r=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=r},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function r(){}return r.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},r.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},r}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return L[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var r=p.ExpressionDescriptor.toString;S.toString=r})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),rt=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=re(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=oe,_=fe;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=r=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),I("ul",et,[(y(!0),I(B,null,Z(X.collection.tasks,r=>(y(),I("li",{key:r},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(L)===r}]),onClick:k=>L.value=r},R(r),11,tt),nt]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:U}){const L=z,x=U,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),r=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(r.data,null,2)),m=$(()=>r.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),o=["json"],s=W(o[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),N=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${L.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>N.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ce("server-tasks:run",{method:c.value});try{r.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){r.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),r.statusCode=b.status,r.error=void 0},onResponseError(b){r.error=b.response._data,r.data=b.response._data}})}catch{}t.value=!1,r.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===L.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:L.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ie,J=oe,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),I("div",ot,[d("div",at,[d("div",it,[G((y(),I("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:C(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),I(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:C(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:C(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:C(()=>[u(X)[u(n)]?.length?(y(),I(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),I("div",vt,[u(n)==="body"?(y(),I(B,{key:0},[d("div",mt,[(y(),I(B,null,Z(o,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:C(()=>[Y(" Running... ")]),_:1})):(y(),I(B,{key:3},[d("div",_t,[bt,u(r).error?(y(),A(ne,{key:0,n:"red"},{default:C(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(r).error?"orange":"green",textContent:R(u(r).statusCode)},null,8,["n","textContent"]),u(r).contentType?(y(),I("code",kt,R(u(r).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:C(()=>[Y(R(u(r).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:C(()=>[O(M,{n:"primary",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const U=W(!0),L=re();return(x,D)=>{const X=oe,S=ve;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(L)===x.item.name}]),style:Ue({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{U.value=!u(U),L.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(U)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(U)?Le(x.$slots,"default",{key:0},()=>[(y(!0),I(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},Ct=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),It=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const U=W(!1),L=Ne(),x=$(()=>Object.keys(L.value?.tasks??{}).map(n=>({name:n,...L.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(L.value?.scheduledTasks??{}).map(([n,o])=>({cron:n,tasks:o}))),X=re(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),r=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(o=>o.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(o=>o.item):x.value),e=$(()=>{const n=[],o=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?o(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?o(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,o)=>{const s=le,i=Be,l=rt,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),I(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:C(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:C(()=>[O(i,{search:u(k),"onUpdate:search":o[1]||(o[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:C(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:o[0]||(o[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:C(()=>[d("div",Dt,[u(k)?(y(),I("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),I(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:C(()=>[Ct,d("div",null,[d("ul",null,[(y(!0),I(B,null,Z(u(D),E=>(y(),I("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:C(()=>[(y(),A(Ve,{max:10},[u(r)?(y(),A(f,{key:u(r).name,task:u(r),onOpenDefaultInput:o[2]||(o[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(r)?j("",!0):(y(),A(c,{key:0},{default:C(()=>[O(h,{px6:"",py2:""},{default:C(()=>[It]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":o[4]||(o[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:o[5]||(o[5]=E=>U.value=!1)},{default:C(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:C(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":o[3]||(o[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};
|
|
1
|
+
import{bO as ke,d as te,bP as re,r as W,a as $,o as y,m as I,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as oe,bK as Oe,ab as Te,ay as ie,ac as xe,aB as Se,b0 as we,bL as Xe,e as De,a2 as se,I as G,j as C,v as Y,bH as Ee,h as A,l as ee,aw as Me,ak as ue,V as Ce,_ as le,X as Ie,A as ce,am as $e,a9 as Ue,aa as Le,bQ as Ne,ah as Re,U as Ae,bN as Ve,ar as je}from"./CSxKs2xg.js";import{_ as Be}from"./CQfzcXIu.js";import{_ as fe}from"./B7vUcbNk.js";import{_ as pe}from"./DQS-rzez.js";import{_ as He}from"./DjVyxknR.js";import{S as de}from"./BcJws1i5.js";import{e as We}from"./CDjZ2Pwm.js";import{_ as ze}from"./DRzmYdLW.js";import{_ as qe}from"./-qWogbxp.js";import"./K0tfU50F.js";import"./CgvvXsvn.js";import"./f1qyuWhx.js";import"./CGdFtN3I.js";var he={exports:{}};(function(z,U){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var L={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var r=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},m.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},m.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var n=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var o=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";o?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in o)t[4]=t[4].replace(new RegExp(s,"gi"),o[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},m.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var r=_(910),k=_(794),m=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,o=n.throwExceptionOnParseError,s=o===void 0?!0:o,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,N=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:N,locale:H,tzOffset:E},Q=new t(e,q);return Q.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),o=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+o+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],o="";if(!r.StringUtilities.containsAny(a,t.specialCharacters)&&!r.StringUtilities.containsAny(n,t.specialCharacters)&&!r.StringUtilities.containsAny(e,t.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!r.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");o+=this.i18n.at();for(var l=0;l<i.length;l++)o+=" ",o+=this.formatTime(i[l],a,""),l<i.length-2&&(o+=","),l==i.length-2&&(o+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(o+=v,o&&f&&(o+=", "),o+=f,f===h)return o;o&&h&&(o+=", "),o+=h}return o},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return r.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return r.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&n.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return o},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return r.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(n&&a.includes("-")&&this.expressionParts[1]!="0"){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,s){var i=o;o.indexOf("#")>-1?i=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(o.indexOf("#")>-1){var c=null,N=o.substring(o.indexOf("#")+1),T=o.substring(0,o.indexOf("#"));switch(N){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var s=o.substring(0,o.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(o){var s=null;if(o.indexOf("#")>-1){var i=o.substring(o.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(o)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(o)-1]:a[parseInt(o)-1]},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(o),o)},function(o){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),i=s==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return r.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,o,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=r.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),N="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(N+=",",T<c.length-1&&(N+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,o,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,o,s,i):N+=n(c[T]);v?l=N:l=r.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=r.StringUtilities.format(o(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=r.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=r.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var o="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return o+=r.StringUtilities.format(v,i,l),o},t.prototype.formatTime=function(e,a,n){var o=0,s=0;this.options.tzOffset&&(o=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+o,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var r=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new r.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function r(){}return r.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},r.prototype.atX0MinutesPastTheHourGt20=function(){return null},r.prototype.commaMonthX0ThroughMonthX1=function(){return null},r.prototype.commaYearX0ThroughYearX1=function(){return null},r.prototype.use24HourTimeFormatByDefault=function(){return!1},r.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},r.prototype.everyMinute=function(){return"every minute"},r.prototype.everyHour=function(){return"every hour"},r.prototype.atSpace=function(){return"At "},r.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},r.prototype.at=function(){return"At"},r.prototype.spaceAnd=function(){return" and"},r.prototype.everySecond=function(){return"every second"},r.prototype.everyX0Seconds=function(){return"every %s seconds"},r.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},r.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},r.prototype.everyX0Minutes=function(){return"every %s minutes"},r.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},r.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},r.prototype.everyX0Hours=function(){return"every %s hours"},r.prototype.betweenX0AndX1=function(){return"between %s and %s"},r.prototype.atX0=function(){return"at %s"},r.prototype.commaEveryDay=function(){return", every day"},r.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},r.prototype.commaX0ThroughX1=function(){return", %s through %s"},r.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},r.prototype.first=function(){return"first"},r.prototype.second=function(){return"second"},r.prototype.third=function(){return"third"},r.prototype.fourth=function(){return"fourth"},r.prototype.fifth=function(){return"fifth"},r.prototype.commaOnThe=function(){return", on the "},r.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},r.prototype.lastDay=function(){return"the last day"},r.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},r.prototype.commaOnlyOnX0=function(){return", only on %s"},r.prototype.commaAndOnX0=function(){return", and on %s"},r.prototype.commaEveryX0Months=function(){return", every %s months"},r.prototype.commaOnlyInX0=function(){return", only in %s"},r.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},r.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},r.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},r.prototype.firstWeekday=function(){return"first weekday"},r.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},r.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},r.prototype.commaEveryX0Days=function(){return", every %s days"},r.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},r.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},r.prototype.commaEveryHour=function(){return", every hour"},r.prototype.commaEveryX0Years=function(){return", every %s years"},r.prototype.commaStartingX0=function(){return", starting %s"},r.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},r}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var r=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=r},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function r(){}return r.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},r.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},r}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return L[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var r=p.ExpressionDescriptor.toString;S.toString=r})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),rt=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=re(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=oe,_=fe;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=r=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),I("ul",et,[(y(!0),I(B,null,Z(X.collection.tasks,r=>(y(),I("li",{key:r},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(L)===r}]),onClick:k=>L.value=r},R(r),11,tt),nt]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:U}){const L=z,x=U,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),r=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(r.data,null,2)),m=$(()=>r.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),o=["json"],s=W(o[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),N=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${L.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>N.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ce("server-tasks:run",{method:c.value});try{r.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){r.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),r.statusCode=b.status,r.error=void 0},onResponseError(b){r.error=b.response._data,r.data=b.response._data}})}catch{}t.value=!1,r.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===L.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:L.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ie,J=oe,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),I("div",ot,[d("div",at,[d("div",it,[G((y(),I("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:C(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),I(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:C(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:C(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:C(()=>[u(X)[u(n)]?.length?(y(),I(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),I("div",vt,[u(n)==="body"?(y(),I(B,{key:0},[d("div",mt,[(y(),I(B,null,Z(o,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:C(()=>[Y(" Running... ")]),_:1})):(y(),I(B,{key:3},[d("div",_t,[bt,u(r).error?(y(),A(ne,{key:0,n:"red"},{default:C(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(r).error?"orange":"green",textContent:R(u(r).statusCode)},null,8,["n","textContent"]),u(r).contentType?(y(),I("code",kt,R(u(r).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:C(()=>[Y(R(u(r).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:C(()=>[O(M,{n:"primary",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const U=W(!0),L=re();return(x,D)=>{const X=oe,S=ve;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(L)===x.item.name}]),style:Ue({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{U.value=!u(U),L.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(U)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(U)?Le(x.$slots,"default",{key:0},()=>[(y(!0),I(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},Ct=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),It=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const U=W(!1),L=Ne(),x=$(()=>Object.keys(L.value?.tasks??{}).map(n=>({name:n,...L.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(L.value?.scheduledTasks??{}).map(([n,o])=>({cron:n,tasks:o}))),X=re(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),r=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(o=>o.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(o=>o.item):x.value),e=$(()=>{const n=[],o=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?o(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?o(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,o)=>{const s=le,i=Be,l=rt,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),I(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:C(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:C(()=>[O(i,{search:u(k),"onUpdate:search":o[1]||(o[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:C(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:o[0]||(o[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:C(()=>[d("div",Dt,[u(k)?(y(),I("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),I(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:C(()=>[Ct,d("div",null,[d("ul",null,[(y(!0),I(B,null,Z(u(D),E=>(y(),I("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:C(()=>[(y(),A(Ve,{max:10},[u(r)?(y(),A(f,{key:u(r).name,task:u(r),onOpenDefaultInput:o[2]||(o[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(r)?j("",!0):(y(),A(c,{key:0},{default:C(()=>[O(h,{px6:"",py2:""},{default:C(()=>[It]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":o[4]||(o[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:o[5]||(o[5]=E=>U.value=!1)},{default:C(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:C(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":o[3]||(o[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as UC}from"./BLnLeUd3.js";import{c as Fe,g as xT,d as JC,u as zC,r as dd,a as Qg,b as WC,w as Xg,e as GC,f as Jn,o as Pr,h as iu,i as ru,j as ga,k as Fa,l as qC,m as su,F as Yg,n as $g,t as hd,p as ou,T as HC,_ as VC}from"./PO8p82Rr.js";import{_ as KC}from"./BNQxZ_tm.js";import{_ as ZC}from"./DyeV3m0g.js";import{_ as QC}from"./BJ65-qNi.js";import{_ as XC}from"./Bm0NU4n7.js";import"./tWSQ6YIe.js";var pd={},md={},He={};(function(e){var t=Fe&&Fe.__awaiter||function(he,ye,Z,D){return new(Z||(Z=Promise))(function(V,oe){function me(ze){try{Oe(D.next(ze))}catch(nt){oe(nt)}}function Le(ze){try{Oe(D.throw(ze))}catch(nt){oe(nt)}}function Oe(ze){ze.done?V(ze.value):new Z(function(nt){nt(ze.value)}).then(me,Le)}Oe((D=D.apply(he,ye||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.hashCodeInit=17;function n(he){let ye=0;for(let Z=0;Z<he.length;Z++){const D=he.charCodeAt(Z);ye=(ye<<5)-ye+D,ye=ye&ye}return ye}e.hashString=n;function i(he,ye){return he*31+(ye|0)|0}e.addHashCode=i;function r(he,ye){return he!==void 0?he:ye}e.withDefault=r;function u(he,ye){if(he!==void 0)return ye(he)}e.definedMap=u;function l(he,ye,Z){return r(u(he,Z),ye)}e.definedMapWithDefault=l;function d(he,ye){return he==null?!1:Object.prototype.hasOwnProperty.call(he,ye)}e.hasOwnProperty=d;function y(he,ye){for(const Z of he)if(ye(Z))return Z}e.iterableFind=y;function T(he,ye){for(const Z of he)if(!ye(Z))return!1;return!0}e.iterableEvery=T;function S(he,ye){for(const Z of he)if(ye(Z))return!0;return!1}e.iterableSome=S;function O(he){for(const ye of he)return ye}e.iterableFirst=O;function I(he){let ye;for(const Z of he)(ye===void 0||Z>ye)&&(ye=Z);return ye}e.iterableMax=I;function k(he,ye){let Z,D;for(const V of he){const oe=ye(V);(Z===void 0||oe<Z)&&(Z=oe,D=V)}return D}e.iterableMinBy=k;function P(he,ye,Z){let D=ye;for(const V of he)D=Z(D,V);return D}e.iterableReduce=P;function*m(he){let ye=0;for(const Z of he)yield[ye,Z],ye+=1}e.iterableEnumerate=m;function*C(he,ye){let Z=0;for(const D of he)Z>=ye?yield D:Z+=1}e.iterableSkip=C;function J(he,ye){const Z=he.length;if(!(ye>Z))return he[Z-ye]}e.arrayGetFromEnd=J;function x(he){return J(he,1)}e.arrayLast=x;function G(he){const ye=he.length;if(ye===0)throw new Error("Cannot pop empty array");return he.slice(0,ye-1)}e.arrayPop=G;function K(he,ye){const Z=[];for(const D of ye)Z.length>0&&Z.push(he),Z.push(D);return Z}e.arrayIntercalate=K;function U(he,ye){return t(this,void 0,void 0,function*(){const Z=[];let D=0;for(const V of he)Z.push(yield ye(V,D)),D+=1;return Z})}e.arrayMapSync=U;function R(he,ye){return he<ye?-1:he>ye?1:0}function A(he,ye){return he.sort((Z,D)=>R(ye(Z),ye(D)))}e.arraySortByInto=A;function b(he){return Array.isArray(he)?he:Array.from(he)}e.toReadonlyArray=b;function _(he,ye){const Z=new Map;for(const[D,V]of he)Z.set(D,ye(V,D));return Z}e.mapMap=_;function L(he){for(const ye of he.values())return ye}e.mapFirst=L;function g(he,ye){for(const Z of he.values())if(Z===ye)return!0;return!1}e.mapContains=g;function p(he,ye){for(const[Z,D]of he)if(ye(D,Z))return!0;return!1}e.mapSome=p;function a(he,ye){for(const[Z,D]of ye)he.set(Z,D);return he}e.mapMergeInto=a;function o(he,ye){const Z=new Map(he);return a(Z,ye),Z}e.mapMerge=o;function f(he,ye,Z){for(const[D,V]of Z){const oe=he.get(D),me=oe===void 0?V:ye(oe,V,D);he.set(D,me)}return he}e.mapMergeWithInto=f;function h(he,ye,Z){const D=new Map(he);return f(D,ye,Z),D}e.mapMergeWith=h;function w(he,ye){const Z=new Map;for(const[D,V]of he)ye(V,D)&&Z.set(D,V);return Z}e.mapFilter=w;function N(he,ye){const Z=new Map;for(const[D,V]of he){const oe=ye(V,D);oe!==void 0&&Z.set(D,oe)}return Z}e.mapFilterMap=N;function F(he,ye){return A(Array.from(he),([Z,D])=>ye(D,Z))}e.mapSortToArray=F;function B(he,ye){return new Map(F(he,ye))}e.mapSortBy=B;function W(he){return B(he,(ye,Z)=>Z)}e.mapSortByKey=W;function Q(he,ye){const Z=new Map;for(const[D,V]of he){const[oe,me]=ye(V,D);Z.set(oe,me)}return Z}e.mapMapEntries=Q;function z(he,ye,Z){return he.set(ye,Z(he.get(ye))),he}e.mapUpdateInto=z;function E(he){const ye=new Map;for(const Z of Object.getOwnPropertyNames(he))ye.set(Z,he[Z]);return ye}e.mapFromObject=E;function j(he){const ye={};for(const[Z,D]of he)ye[Z]=D;return ye}e.mapToObject=j;function X(he,ye){const Z=new Map;for(const D of he)Z.set(D,ye(D));return Z}e.mapFromIterable=X;function te(he,ye){for(const[Z,D]of he)if(ye(D,Z))return D}e.mapFind=te;function $(he){const ye=new Map;for(const Z of he)for(const[D,V]of Z){let oe=ye.get(D);oe===void 0&&(oe=[],ye.set(D,oe)),oe.push(V)}return ye}e.mapTranspose=$;function ne(he,ye){return t(this,void 0,void 0,function*(){const Z=new Map;for(const[D,V]of he)Z.set(D,yield ye(V,D));return Z})}e.mapMapSync=ne;function ce(he,ye){for(const Z of ye)if(!he.has(Z))return!1;return!0}e.setIsSuperset=ce;function Te(he,ye){for(const Z of ye)for(const D of Z)he.add(D);return he}e.setUnionManyInto=Te;function Ne(he,...ye){return Te(he,ye)}e.setUnionInto=Ne;function le(he,ye){const Z=new Set;for(const D of he)ye.has(D)&&Z.add(D);return Z}e.setIntersect=le;function fe(he,ye){const Z=new Set(he);for(const D of ye)Z.delete(D);return Z}e.setSubtract=fe;function _e(...he){const ye=new Set;return Ne(ye,...he),ye}e.setUnion=_e;function Y(he,ye){const Z=new Set;for(const D of he)Z.add(ye(D));return Z}e.setMap=Y;function M(he,ye){const Z=new Set;for(const D of he)ye(D)&&Z.add(D);return Z}e.setFilter=M;function q(he,ye){const Z=new Set;for(const D of he){const V=ye(D);V!==void 0&&Z.add(V)}return Z}e.setFilterMap=q;function ie(he,ye){return new Set(A(Array.from(he),ye))}e.setSortBy=ie;function ue(he,ye){const Z=new Map;for(const D of he){const V=ye(D);let oe=Z.get(V);oe===void 0&&(oe=new Set,Z.set(V,oe)),oe.add(D)}return Z}e.setGroupBy=ue;function ve(he){return he instanceof Set?he:new Set(he)}e.toReadonlySet=ve;class be{constructor(){this._map=new Map}set(ye,Z){let D=je(ye)|0;for(;;){const V=this._map.get(D);if(V===void 0){this._map.set(D,[ye,Z]);return}if(Me(ye,V[0])){V[1]=Z;return}D=D+1|0}}get(ye){let Z=je(ye)|0;for(;;){const D=this._map.get(Z);if(D===void 0)return;if(Me(ye,D[0]))return D[1];Z=Z+1|0}}has(ye){return this.get(ye)!==void 0}*values(){for(const[,[,ye]]of this._map)yield ye}}e.EqualityMap=be;function Me(he,ye){if(he===ye)return!0;if(he===void 0||ye===void 0||he===null||ye===null)return!1;if(typeof he.equals=="function"&&typeof ye.equals=="function")return he.equals(ye);if(he instanceof Set&&ye instanceof Set){if(he.size!==ye.size)return!1;for(const Z of he)if(!ye.has(Z))return!1;return!0}if(he instanceof Map&&ye instanceof Map){if(he.size!==ye.size)return!1;for(const[Z,D]of he){const V=ye.get(Z);if(!Me(D,V))return!1}return!0}if(Array.isArray(he)&&Array.isArray(ye)){const Z=he.length;if(Z!==ye.length)return!1;for(let D=0;D<Z;D++)if(!Me(he[D],ye[D]))return!1;return!0}return!1}e.areEqual=Me;function je(he){if(typeof he=="number")return he|0;if(typeof he=="string")return n(he);let ye=e.hashCodeInit;if(he===void 0)return ye;if(he===!0)return ye+1|0;if(he===!1)return ye+2|0;if(he===null)return ye+3|0;if(typeof he.hashCode=="function")return he.hashCode();if(he instanceof Set){for(const Z of he)ye+=je(Z);return ye}if(he instanceof Map){let Z=e.hashCodeInit;for(const[D,V]of he)Z+=je(D),ye+=je(V);return i(Z,ye)}if(Array.isArray(he)){for(const Z of he)ye=i(ye,je(Z));return ye}throw new Error(`Cannot hash ${he}`)}e.hashCodeOf=je})(He);var yd={},op={},gd={},Ie={},UT={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:typeof window<"u"?window:typeof Fe<"u"?Fe:Fe,function(){var n="3.7.7",i=n,r=typeof Buffer=="function",u=typeof TextDecoder=="function"?new TextDecoder:void 0,l=typeof TextEncoder=="function"?new TextEncoder:void 0,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=Array.prototype.slice.call(d),T=function(j){var X={};return j.forEach(function(te,$){return X[te]=$}),X}(y),S=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,O=String.fromCharCode.bind(String),I=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(j){return new Uint8Array(Array.prototype.slice.call(j,0))},k=function(j){return j.replace(/=/g,"").replace(/[+\/]/g,function(X){return X=="+"?"-":"_"})},P=function(j){return j.replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(j){for(var X,te,$,ne,ce="",Te=j.length%3,Ne=0;Ne<j.length;){if((te=j.charCodeAt(Ne++))>255||($=j.charCodeAt(Ne++))>255||(ne=j.charCodeAt(Ne++))>255)throw new TypeError("invalid character found");X=te<<16|$<<8|ne,ce+=y[X>>18&63]+y[X>>12&63]+y[X>>6&63]+y[X&63]}return Te?ce.slice(0,Te-3)+"===".substring(Te):ce},C=typeof btoa=="function"?function(j){return btoa(j)}:r?function(j){return Buffer.from(j,"binary").toString("base64")}:m,J=r?function(j){return Buffer.from(j).toString("base64")}:function(j){for(var X=4096,te=[],$=0,ne=j.length;$<ne;$+=X)te.push(O.apply(null,j.subarray($,$+X)));return C(te.join(""))},x=function(j,X){return X===void 0&&(X=!1),X?k(J(j)):J(j)},G=function(j){if(j.length<2){var X=j.charCodeAt(0);return X<128?j:X<2048?O(192|X>>>6)+O(128|X&63):O(224|X>>>12&15)+O(128|X>>>6&63)+O(128|X&63)}else{var X=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return O(240|X>>>18&7)+O(128|X>>>12&63)+O(128|X>>>6&63)+O(128|X&63)}},K=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U=function(j){return j.replace(K,G)},R=r?function(j){return Buffer.from(j,"utf8").toString("base64")}:l?function(j){return J(l.encode(j))}:function(j){return C(U(j))},A=function(j,X){return X===void 0&&(X=!1),X?k(R(j)):R(j)},b=function(j){return A(j,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,L=function(j){switch(j.length){case 4:var X=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),te=X-65536;return O((te>>>10)+55296)+O((te&1023)+56320);case 3:return O((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return O((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},g=function(j){return j.replace(_,L)},p=function(j){if(j=j.replace(/\s+/g,""),!S.test(j))throw new TypeError("malformed base64.");j+="==".slice(2-(j.length&3));for(var X,te="",$,ne,ce=0;ce<j.length;)X=T[j.charAt(ce++)]<<18|T[j.charAt(ce++)]<<12|($=T[j.charAt(ce++)])<<6|(ne=T[j.charAt(ce++)]),te+=$===64?O(X>>16&255):ne===64?O(X>>16&255,X>>8&255):O(X>>16&255,X>>8&255,X&255);return te},a=typeof atob=="function"?function(j){return atob(P(j))}:r?function(j){return Buffer.from(j,"base64").toString("binary")}:p,o=r?function(j){return I(Buffer.from(j,"base64"))}:function(j){return I(a(j).split("").map(function(X){return X.charCodeAt(0)}))},f=function(j){return o(w(j))},h=r?function(j){return Buffer.from(j,"base64").toString("utf8")}:u?function(j){return u.decode(o(j))}:function(j){return g(a(j))},w=function(j){return P(j.replace(/[-_]/g,function(X){return X=="-"?"+":"/"}))},N=function(j){return h(w(j))},F=function(j){if(typeof j!="string")return!1;var X=j.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(X)||!/[^\s0-9a-zA-Z\-_]/.test(X)},B=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}},W=function(){var j=function(X,te){return Object.defineProperty(String.prototype,X,B(te))};j("fromBase64",function(){return N(this)}),j("toBase64",function(X){return A(this,X)}),j("toBase64URI",function(){return A(this,!0)}),j("toBase64URL",function(){return A(this,!0)}),j("toUint8Array",function(){return f(this)})},Q=function(){var j=function(X,te){return Object.defineProperty(Uint8Array.prototype,X,B(te))};j("toBase64",function(X){return x(this,X)}),j("toBase64URI",function(){return x(this,!0)}),j("toBase64URL",function(){return x(this,!0)})},z=function(){W(),Q()},E={version:n,VERSION:i,atob:a,atobPolyfill:p,btoa:C,btoaPolyfill:m,fromBase64:N,toBase64:A,encode:A,encodeURI:b,encodeURL:b,utob:U,btou:g,decode:N,isValid:F,fromUint8Array:x,toUint8Array:f,extendString:W,extendUint8Array:Q,extendBuiltins:z};return E.Base64={},Object.keys(E).forEach(function(j){return E.Base64[j]=E[j]}),E})})(UT);var YC=UT.exports,br={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(u,l){return Object.prototype.hasOwnProperty.call(u,l)}e.assign=function(u){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var d=l.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var y in d)n(d,y)&&(u[y]=d[y])}}return u},e.shrinkBuf=function(u,l){return u.length===l?u:u.subarray?u.subarray(0,l):(u.length=l,u)};var i={arraySet:function(u,l,d,y,T){if(l.subarray&&u.subarray){u.set(l.subarray(d,d+y),T);return}for(var S=0;S<y;S++)u[T+S]=l[d+S]},flattenChunks:function(u){var l,d,y,T,S,O;for(y=0,l=0,d=u.length;l<d;l++)y+=u[l].length;for(O=new Uint8Array(y),T=0,l=0,d=u.length;l<d;l++)S=u[l],O.set(S,T),T+=S.length;return O}},r={arraySet:function(u,l,d,y,T){for(var S=0;S<y;S++)u[T+S]=l[d+S]},flattenChunks:function(u){return[].concat.apply([],u)}};e.setTyped=function(u){u?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,r))},e.setTyped(t)})(br);var Za={},Wi={},xo={},$C=br,eA=4,eb=0,tb=1,tA=2;function Uo(e){for(var t=e.length;--t>=0;)e[t]=0}var nA=0,JT=1,iA=2,rA=3,sA=258,ap=29,Qa=256,xa=Qa+1+ap,ko=30,lp=19,zT=2*xa+1,Ts=15,bd=16,oA=7,up=256,WT=16,GT=17,qT=18,Lh=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Su=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],aA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=512,or=new Array((xa+2)*2);Uo(or);var Pa=new Array(ko*2);Uo(Pa);var Ua=new Array(lA);Uo(Ua);var Ja=new Array(sA-rA+1);Uo(Ja);var cp=new Array(ap);Uo(cp);var Ru=new Array(ko);Uo(Ru);function Td(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}var VT,KT,ZT;function Sd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function QT(e){return e<256?Ua[e]:Ua[256+(e>>>7)]}function za(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Fn(e,t,n){e.bi_valid>bd-n?(e.bi_buf|=t<<e.bi_valid&65535,za(e,e.bi_buf),e.bi_buf=t>>bd-e.bi_valid,e.bi_valid+=n-bd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function ji(e,t,n){Fn(e,n[t*2],n[t*2+1])}function XT(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function uA(e){e.bi_valid===16?(za(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function cA(e,t){var n=t.dyn_tree,i=t.max_code,r=t.stat_desc.static_tree,u=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,y=t.stat_desc.max_length,T,S,O,I,k,P,m=0;for(I=0;I<=Ts;I++)e.bl_count[I]=0;for(n[e.heap[e.heap_max]*2+1]=0,T=e.heap_max+1;T<zT;T++)S=e.heap[T],I=n[n[S*2+1]*2+1]+1,I>y&&(I=y,m++),n[S*2+1]=I,!(S>i)&&(e.bl_count[I]++,k=0,S>=d&&(k=l[S-d]),P=n[S*2],e.opt_len+=P*(I+k),u&&(e.static_len+=P*(r[S*2+1]+k)));if(m!==0){do{for(I=y-1;e.bl_count[I]===0;)I--;e.bl_count[I]--,e.bl_count[I+1]+=2,e.bl_count[y]--,m-=2}while(m>0);for(I=y;I!==0;I--)for(S=e.bl_count[I];S!==0;)O=e.heap[--T],!(O>i)&&(n[O*2+1]!==I&&(e.opt_len+=(I-n[O*2+1])*n[O*2],n[O*2+1]=I),S--)}}function YT(e,t,n){var i=new Array(Ts+1),r=0,u,l;for(u=1;u<=Ts;u++)i[u]=r=r+n[u-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=XT(i[d]++,d))}}function fA(){var e,t,n,i,r,u=new Array(Ts+1);for(n=0,i=0;i<ap-1;i++)for(cp[i]=n,e=0;e<1<<Lh[i];e++)Ja[n++]=i;for(Ja[n-1]=i,r=0,i=0;i<16;i++)for(Ru[i]=r,e=0;e<1<<Su[i];e++)Ua[r++]=i;for(r>>=7;i<ko;i++)for(Ru[i]=r<<7,e=0;e<1<<Su[i]-7;e++)Ua[256+r++]=i;for(t=0;t<=Ts;t++)u[t]=0;for(e=0;e<=143;)or[e*2+1]=8,e++,u[8]++;for(;e<=255;)or[e*2+1]=9,e++,u[9]++;for(;e<=279;)or[e*2+1]=7,e++,u[7]++;for(;e<=287;)or[e*2+1]=8,e++,u[8]++;for(YT(or,xa+1,u),e=0;e<ko;e++)Pa[e*2+1]=5,Pa[e*2]=XT(e,5);VT=new Td(or,Lh,Qa+1,xa,Ts),KT=new Td(Pa,Su,0,ko,Ts),ZT=new Td(new Array(0),aA,0,lp,oA)}function $T(e){var t;for(t=0;t<xa;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ko;t++)e.dyn_dtree[t*2]=0;for(t=0;t<lp;t++)e.bl_tree[t*2]=0;e.dyn_ltree[up*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function eS(e){e.bi_valid>8?za(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function dA(e,t,n,i){eS(e),i&&(za(e,n),za(e,~n)),$C.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function nb(e,t,n,i){var r=t*2,u=n*2;return e[r]<e[u]||e[r]===e[u]&&i[t]<=i[n]}function vd(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&nb(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!nb(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function ib(e,t,n){var i,r,u=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+u*2]<<8|e.pending_buf[e.d_buf+u*2+1],r=e.pending_buf[e.l_buf+u],u++,i===0?ji(e,r,t):(l=Ja[r],ji(e,l+Qa+1,t),d=Lh[l],d!==0&&(r-=cp[l],Fn(e,r,d)),i--,l=QT(i),ji(e,l,n),d=Su[l],d!==0&&(i-=Ru[l],Fn(e,i,d)));while(u<e.last_lit);ji(e,up,t)}function Nh(e,t){var n=t.dyn_tree,i=t.stat_desc.static_tree,r=t.stat_desc.has_stree,u=t.stat_desc.elems,l,d,y=-1,T;for(e.heap_len=0,e.heap_max=zT,l=0;l<u;l++)n[l*2]!==0?(e.heap[++e.heap_len]=y=l,e.depth[l]=0):n[l*2+1]=0;for(;e.heap_len<2;)T=e.heap[++e.heap_len]=y<2?++y:0,n[T*2]=1,e.depth[T]=0,e.opt_len--,r&&(e.static_len-=i[T*2+1]);for(t.max_code=y,l=e.heap_len>>1;l>=1;l--)vd(e,n,l);T=u;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vd(e,n,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,n[T*2]=n[l*2]+n[d*2],e.depth[T]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,n[l*2+1]=n[d*2+1]=T,e.heap[1]=T++,vd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],cA(e,t),YT(n,y,e.bl_count)}function rb(e,t,n){var i,r=-1,u,l=t[0*2+1],d=0,y=7,T=4;for(l===0&&(y=138,T=3),t[(n+1)*2+1]=65535,i=0;i<=n;i++)u=l,l=t[(i+1)*2+1],!(++d<y&&u===l)&&(d<T?e.bl_tree[u*2]+=d:u!==0?(u!==r&&e.bl_tree[u*2]++,e.bl_tree[WT*2]++):d<=10?e.bl_tree[GT*2]++:e.bl_tree[qT*2]++,d=0,r=u,l===0?(y=138,T=3):u===l?(y=6,T=3):(y=7,T=4))}function sb(e,t,n){var i,r=-1,u,l=t[0*2+1],d=0,y=7,T=4;for(l===0&&(y=138,T=3),i=0;i<=n;i++)if(u=l,l=t[(i+1)*2+1],!(++d<y&&u===l)){if(d<T)do ji(e,u,e.bl_tree);while(--d!==0);else u!==0?(u!==r&&(ji(e,u,e.bl_tree),d--),ji(e,WT,e.bl_tree),Fn(e,d-3,2)):d<=10?(ji(e,GT,e.bl_tree),Fn(e,d-3,3)):(ji(e,qT,e.bl_tree),Fn(e,d-11,7));d=0,r=u,l===0?(y=138,T=3):u===l?(y=6,T=3):(y=7,T=4)}}function hA(e){var t;for(rb(e,e.dyn_ltree,e.l_desc.max_code),rb(e,e.dyn_dtree,e.d_desc.max_code),Nh(e,e.bl_desc),t=lp-1;t>=3&&e.bl_tree[HT[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function pA(e,t,n,i){var r;for(Fn(e,t-257,5),Fn(e,n-1,5),Fn(e,i-4,4),r=0;r<i;r++)Fn(e,e.bl_tree[HT[r]*2+1],3);sb(e,e.dyn_ltree,t-1),sb(e,e.dyn_dtree,n-1)}function mA(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return eb;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return tb;for(n=32;n<Qa;n++)if(e.dyn_ltree[n*2]!==0)return tb;return eb}var ob=!1;function yA(e){ob||(fA(),ob=!0),e.l_desc=new Sd(e.dyn_ltree,VT),e.d_desc=new Sd(e.dyn_dtree,KT),e.bl_desc=new Sd(e.bl_tree,ZT),e.bi_buf=0,e.bi_valid=0,$T(e)}function tS(e,t,n,i){Fn(e,(nA<<1)+(i?1:0),3),dA(e,t,n,!0)}function gA(e){Fn(e,JT<<1,3),ji(e,up,or),uA(e)}function bA(e,t,n,i){var r,u,l=0;e.level>0?(e.strm.data_type===tA&&(e.strm.data_type=mA(e)),Nh(e,e.l_desc),Nh(e,e.d_desc),l=hA(e),r=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=r&&(r=u)):r=u=n+5,n+4<=r&&t!==-1?tS(e,t,n,i):e.strategy===eA||u===r?(Fn(e,(JT<<1)+(i?1:0),3),ib(e,or,Pa)):(Fn(e,(iA<<1)+(i?1:0),3),pA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ib(e,e.dyn_ltree,e.dyn_dtree)),$T(e),i&&eS(e)}function TA(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ja[n]+Qa+1)*2]++,e.dyn_dtree[QT(t)*2]++),e.last_lit===e.lit_bufsize-1}xo._tr_init=yA;xo._tr_stored_block=tS;xo._tr_flush_block=bA;xo._tr_tally=TA;xo._tr_align=gA;function SA(e,t,n,i){for(var r=e&65535|0,u=e>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do r=r+t[i++]|0,u=u+r|0;while(--l);r%=65521,u%=65521}return r|u<<16|0}var nS=SA;function vA(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var wA=vA();function _A(e,t,n,i){var r=wA,u=i+n;e^=-1;for(var l=i;l<u;l++)e=e>>>8^r[(e^t[l])&255];return e^-1}var iS=_A,fp={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Tn=br,ni=xo,rS=nS,Br=iS,LA=fp,xs=0,NA=1,kA=3,Gr=4,ab=5,Bi=0,lb=1,ii=-2,OA=-3,wd=-5,EA=-1,CA=1,au=2,AA=3,FA=4,PA=0,IA=2,Yu=8,MA=9,jA=15,BA=8,RA=29,DA=256,kh=DA+1+RA,xA=30,UA=19,JA=2*kh+1,zA=15,mt=3,Jr=258,gi=Jr+mt+1,WA=32,$u=42,Oh=69,vu=73,wu=91,_u=103,Ss=113,ka=666,$t=1,Xa=2,Cs=3,Jo=4,GA=3;function zr(e,t){return e.msg=LA[t],t}function ub(e){return(e<<1)-(e>4?9:0)}function Ur(e){for(var t=e.length;--t>=0;)e[t]=0}function Rr(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(Tn.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function an(e,t){ni._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Rr(e.strm)}function bt(e,t){e.pending_buf[e.pending++]=t}function ba(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function qA(e,t,n,i){var r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,Tn.arraySet(t,e.input,e.next_in,r,n),e.state.wrap===1?e.adler=rS(e.adler,t,r,n):e.state.wrap===2&&(e.adler=Br(e.adler,t,r,n)),e.next_in+=r,e.total_in+=r,r)}function sS(e,t){var n=e.max_chain_length,i=e.strstart,r,u,l=e.prev_length,d=e.nice_match,y=e.strstart>e.w_size-gi?e.strstart-(e.w_size-gi):0,T=e.window,S=e.w_mask,O=e.prev,I=e.strstart+Jr,k=T[i+l-1],P=T[i+l];e.prev_length>=e.good_match&&(n>>=2),d>e.lookahead&&(d=e.lookahead);do if(r=t,!(T[r+l]!==P||T[r+l-1]!==k||T[r]!==T[i]||T[++r]!==T[i+1])){i+=2,r++;do;while(T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&i<I);if(u=Jr-(I-i),i=I-Jr,u>l){if(e.match_start=t,l=u,u>=d)break;k=T[i+l-1],P=T[i+l]}}while((t=O[t&S])>y&&--n!==0);return l<=e.lookahead?l:e.lookahead}function As(e){var t=e.w_size,n,i,r,u,l;do{if(u=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-gi)){Tn.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,n=i;do r=e.head[--n],e.head[n]=r>=t?r-t:0;while(--i);i=t,n=i;do r=e.prev[--n],e.prev[n]=r>=t?r-t:0;while(--i);u+=t}if(e.strm.avail_in===0)break;if(i=qA(e.strm,e.window,e.strstart+e.lookahead,u),e.lookahead+=i,e.lookahead+e.insert>=mt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+mt-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<mt)););}while(e.lookahead<gi&&e.strm.avail_in!==0)}function HA(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(As(e),e.lookahead===0&&t===xs)return $t;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,an(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-gi&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):(e.strstart>e.block_start&&(an(e,!1),e.strm.avail_out===0),$t)}function _d(e,t){for(var n,i;;){if(e.lookahead<gi){if(As(e),e.lookahead<gi&&t===xs)return $t;if(e.lookahead===0)break}if(n=0,e.lookahead>=mt&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-gi&&(e.match_length=sS(e,n)),e.match_length>=mt)if(i=ni._tr_tally(e,e.strstart-e.match_start,e.match_length-mt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=mt){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=e.strstart<mt-1?e.strstart:mt-1,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function fo(e,t){for(var n,i,r;;){if(e.lookahead<gi){if(As(e),e.lookahead<gi&&t===xs)return $t;if(e.lookahead===0)break}if(n=0,e.lookahead>=mt&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=mt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-gi&&(e.match_length=sS(e,n),e.match_length<=5&&(e.strategy===CA||e.match_length===mt&&e.strstart-e.match_start>4096)&&(e.match_length=mt-1)),e.prev_length>=mt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-mt,i=ni._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-mt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=mt-1,e.strstart++,i&&(an(e,!1),e.strm.avail_out===0))return $t}else if(e.match_available){if(i=ni._tr_tally(e,0,e.window[e.strstart-1]),i&&an(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return $t}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ni._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<mt-1?e.strstart:mt-1,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function VA(e,t){for(var n,i,r,u,l=e.window;;){if(e.lookahead<=Jr){if(As(e),e.lookahead<=Jr&&t===xs)return $t;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=mt&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){u=e.strstart+Jr;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<u);e.match_length=Jr-(u-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=mt?(n=ni._tr_tally(e,1,e.match_length-mt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function KA(e,t){for(var n;;){if(e.lookahead===0&&(As(e),e.lookahead===0)){if(t===xs)return $t;break}if(e.match_length=0,n=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function Ni(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}var So;So=[new Ni(0,0,0,0,HA),new Ni(4,4,8,4,_d),new Ni(4,5,16,8,_d),new Ni(4,6,32,32,_d),new Ni(4,4,16,16,fo),new Ni(8,16,32,32,fo),new Ni(8,16,128,128,fo),new Ni(8,32,128,256,fo),new Ni(32,128,258,1024,fo),new Ni(32,258,258,4096,fo)];function ZA(e){e.window_size=2*e.w_size,Ur(e.head),e.max_lazy_match=So[e.level].max_lazy,e.good_match=So[e.level].good_length,e.nice_match=So[e.level].nice_length,e.max_chain_length=So[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=mt-1,e.match_available=0,e.ins_h=0}function QA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Tn.Buf16(JA*2),this.dyn_dtree=new Tn.Buf16((2*xA+1)*2),this.bl_tree=new Tn.Buf16((2*UA+1)*2),Ur(this.dyn_ltree),Ur(this.dyn_dtree),Ur(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Tn.Buf16(zA+1),this.heap=new Tn.Buf16(2*kh+1),Ur(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Tn.Buf16(2*kh+1),Ur(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function oS(e){var t;return!e||!e.state?zr(e,ii):(e.total_in=e.total_out=0,e.data_type=IA,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?$u:Ss,e.adler=t.wrap===2?0:1,t.last_flush=xs,ni._tr_init(t),Bi)}function aS(e){var t=oS(e);return t===Bi&&ZA(e.state),t}function XA(e,t){return!e||!e.state||e.state.wrap!==2?ii:(e.state.gzhead=t,Bi)}function lS(e,t,n,i,r,u){if(!e)return ii;var l=1;if(t===EA&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>MA||n!==Yu||i<8||i>15||t<0||t>9||u<0||u>FA)return zr(e,ii);i===8&&(i=9);var d=new QA;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=r+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+mt-1)/mt),d.window=new Tn.Buf8(d.w_size*2),d.head=new Tn.Buf16(d.hash_size),d.prev=new Tn.Buf16(d.w_size),d.lit_bufsize=1<<r+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new Tn.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=u,d.method=n,aS(e)}function YA(e,t){return lS(e,t,Yu,jA,BA,PA)}function $A(e,t){var n,i,r,u;if(!e||!e.state||t>ab||t<0)return e?zr(e,ii):ii;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ka&&t!==Gr)return zr(e,e.avail_out===0?wd:ii);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===$u)if(i.wrap===2)e.adler=0,bt(i,31),bt(i,139),bt(i,8),i.gzhead?(bt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),bt(i,i.gzhead.time&255),bt(i,i.gzhead.time>>8&255),bt(i,i.gzhead.time>>16&255),bt(i,i.gzhead.time>>24&255),bt(i,i.level===9?2:i.strategy>=au||i.level<2?4:0),bt(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(bt(i,i.gzhead.extra.length&255),bt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Br(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Oh):(bt(i,0),bt(i,0),bt(i,0),bt(i,0),bt(i,0),bt(i,i.level===9?2:i.strategy>=au||i.level<2?4:0),bt(i,GA),i.status=Ss);else{var l=Yu+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=au||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=WA),l+=31-l%31,i.status=Ss,ba(i,l),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1}if(i.status===Oh)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size));)bt(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=vu)}else i.status=vu;if(i.status===vu)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.name.length?u=i.gzhead.name.charCodeAt(i.gzindex++)&255:u=0,bt(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),u===0&&(i.gzindex=0,i.status=wu)}else i.status=wu;if(i.status===wu)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.comment.length?u=i.gzhead.comment.charCodeAt(i.gzindex++)&255:u=0,bt(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),u===0&&(i.status=_u)}else i.status=_u;if(i.status===_u&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Rr(e),i.pending+2<=i.pending_buf_size&&(bt(i,e.adler&255),bt(i,e.adler>>8&255),e.adler=0,i.status=Ss)):i.status=Ss),i.pending!==0){if(Rr(e),e.avail_out===0)return i.last_flush=-1,Bi}else if(e.avail_in===0&&ub(t)<=ub(n)&&t!==Gr)return zr(e,wd);if(i.status===ka&&e.avail_in!==0)return zr(e,wd);if(e.avail_in!==0||i.lookahead!==0||t!==xs&&i.status!==ka){var y=i.strategy===au?KA(i,t):i.strategy===AA?VA(i,t):So[i.level].func(i,t);if((y===Cs||y===Jo)&&(i.status=ka),y===$t||y===Cs)return e.avail_out===0&&(i.last_flush=-1),Bi;if(y===Xa&&(t===NA?ni._tr_align(i):t!==ab&&(ni._tr_stored_block(i,0,0,!1),t===kA&&(Ur(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Rr(e),e.avail_out===0))return i.last_flush=-1,Bi}return t!==Gr?Bi:i.wrap<=0?lb:(i.wrap===2?(bt(i,e.adler&255),bt(i,e.adler>>8&255),bt(i,e.adler>>16&255),bt(i,e.adler>>24&255),bt(i,e.total_in&255),bt(i,e.total_in>>8&255),bt(i,e.total_in>>16&255),bt(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),Rr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Bi:lb)}function eF(e){var t;return!e||!e.state?ii:(t=e.state.status,t!==$u&&t!==Oh&&t!==vu&&t!==wu&&t!==_u&&t!==Ss&&t!==ka?zr(e,ii):(e.state=null,t===Ss?zr(e,OA):Bi))}function tF(e,t){var n=t.length,i,r,u,l,d,y,T,S;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==$u||i.lookahead))return ii;for(l===1&&(e.adler=rS(e.adler,t,n,0)),i.wrap=0,n>=i.w_size&&(l===0&&(Ur(i.head),i.strstart=0,i.block_start=0,i.insert=0),S=new Tn.Buf8(i.w_size),Tn.arraySet(S,t,n-i.w_size,i.w_size,0),t=S,n=i.w_size),d=e.avail_in,y=e.next_in,T=e.input,e.avail_in=n,e.next_in=0,e.input=t,As(i);i.lookahead>=mt;){r=i.strstart,u=i.lookahead-(mt-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[r+mt-1])&i.hash_mask,i.prev[r&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=r,r++;while(--u);i.strstart=r,i.lookahead=mt-1,As(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=mt-1,i.match_available=0,e.next_in=y,e.input=T,e.avail_in=d,i.wrap=l,Bi}Wi.deflateInit=YA;Wi.deflateInit2=lS;Wi.deflateReset=aS;Wi.deflateResetKeep=oS;Wi.deflateSetHeader=XA;Wi.deflate=$A;Wi.deflateEnd=eF;Wi.deflateSetDictionary=tF;Wi.deflateInfo="pako deflate (from Nodeca project)";var Us={},ec=br,uS=!0,cS=!0;try{String.fromCharCode.apply(null,[0])}catch{uS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{cS=!1}var Wa=new ec.Buf8(256);for(var Ir=0;Ir<256;Ir++)Wa[Ir]=Ir>=252?6:Ir>=248?5:Ir>=240?4:Ir>=224?3:Ir>=192?2:1;Wa[254]=Wa[254]=1;Us.string2buf=function(e){var t,n,i,r,u,l=e.length,d=0;for(r=0;r<l;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),d+=n<128?1:n<2048?2:n<65536?3:4;for(t=new ec.Buf8(d),u=0,r=0;u<d;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?t[u++]=n:n<2048?(t[u++]=192|n>>>6,t[u++]=128|n&63):n<65536?(t[u++]=224|n>>>12,t[u++]=128|n>>>6&63,t[u++]=128|n&63):(t[u++]=240|n>>>18,t[u++]=128|n>>>12&63,t[u++]=128|n>>>6&63,t[u++]=128|n&63);return t};function fS(e,t){if(t<65534&&(e.subarray&&cS||!e.subarray&&uS))return String.fromCharCode.apply(null,ec.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}Us.buf2binstring=function(e){return fS(e,e.length)};Us.binstring2buf=function(e){for(var t=new ec.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t};Us.buf2string=function(e,t){var n,i,r,u,l=t||e.length,d=new Array(l*2);for(i=0,n=0;n<l;){if(r=e[n++],r<128){d[i++]=r;continue}if(u=Wa[r],u>4){d[i++]=65533,n+=u-1;continue}for(r&=u===2?31:u===3?15:7;u>1&&n<l;)r=r<<6|e[n++]&63,u--;if(u>1){d[i++]=65533;continue}r<65536?d[i++]=r:(r-=65536,d[i++]=55296|r>>10&1023,d[i++]=56320|r&1023)}return fS(d,i)};Us.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Wa[e[n]]>t?n:t};function nF(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var dS=nF,Ia=Wi,Ma=br,Eh=Us,Ch=fp,iF=dS,hS=Object.prototype.toString,rF=0,Ld=4,Oo=0,cb=1,fb=2,sF=-1,oF=0,aF=8;function Fs(e){if(!(this instanceof Fs))return new Fs(e);this.options=Ma.assign({level:sF,method:aF,chunkSize:16384,windowBits:15,memLevel:8,strategy:oF,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iF,this.strm.avail_out=0;var n=Ia.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Oo)throw new Error(Ch[n]);if(t.header&&Ia.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Eh.string2buf(t.dictionary):hS.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,n=Ia.deflateSetDictionary(this.strm,i),n!==Oo)throw new Error(Ch[n]);this._dict_set=!0}}Fs.prototype.push=function(e,t){var n=this.strm,i=this.options.chunkSize,r,u;if(this.ended)return!1;u=t===~~t?t:t===!0?Ld:rF,typeof e=="string"?n.input=Eh.string2buf(e):hS.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Ma.Buf8(i),n.next_out=0,n.avail_out=i),r=Ia.deflate(n,u),r!==cb&&r!==Oo)return this.onEnd(r),this.ended=!0,!1;(n.avail_out===0||n.avail_in===0&&(u===Ld||u===fb))&&(this.options.to==="string"?this.onData(Eh.buf2binstring(Ma.shrinkBuf(n.output,n.next_out))):this.onData(Ma.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||n.avail_out===0)&&r!==cb);return u===Ld?(r=Ia.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Oo):(u===fb&&(this.onEnd(Oo),n.avail_out=0),!0)};Fs.prototype.onData=function(e){this.chunks.push(e)};Fs.prototype.onEnd=function(e){e===Oo&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ma.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function dp(e,t){var n=new Fs(t);if(n.push(e,!0),n.err)throw n.msg||Ch[n.err];return n.result}function lF(e,t){return t=t||{},t.raw=!0,dp(e,t)}function uF(e,t){return t=t||{},t.gzip=!0,dp(e,t)}Za.Deflate=Fs;Za.deflate=dp;Za.deflateRaw=lF;Za.gzip=uF;var Ya={},Ti={},lu=30,cF=12,fF=function(t,n){var i,r,u,l,d,y,T,S,O,I,k,P,m,C,J,x,G,K,U,R,A,b,_,L,g;i=t.state,r=t.next_in,L=t.input,u=r+(t.avail_in-5),l=t.next_out,g=t.output,d=l-(n-t.avail_out),y=l+(t.avail_out-257),T=i.dmax,S=i.wsize,O=i.whave,I=i.wnext,k=i.window,P=i.hold,m=i.bits,C=i.lencode,J=i.distcode,x=(1<<i.lenbits)-1,G=(1<<i.distbits)-1;e:do{m<15&&(P+=L[r++]<<m,m+=8,P+=L[r++]<<m,m+=8),K=C[P&x];t:for(;;){if(U=K>>>24,P>>>=U,m-=U,U=K>>>16&255,U===0)g[l++]=K&65535;else if(U&16){R=K&65535,U&=15,U&&(m<U&&(P+=L[r++]<<m,m+=8),R+=P&(1<<U)-1,P>>>=U,m-=U),m<15&&(P+=L[r++]<<m,m+=8,P+=L[r++]<<m,m+=8),K=J[P&G];n:for(;;){if(U=K>>>24,P>>>=U,m-=U,U=K>>>16&255,U&16){if(A=K&65535,U&=15,m<U&&(P+=L[r++]<<m,m+=8,m<U&&(P+=L[r++]<<m,m+=8)),A+=P&(1<<U)-1,A>T){t.msg="invalid distance too far back",i.mode=lu;break e}if(P>>>=U,m-=U,U=l-d,A>U){if(U=A-U,U>O&&i.sane){t.msg="invalid distance too far back",i.mode=lu;break e}if(b=0,_=k,I===0){if(b+=S-U,U<R){R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}}else if(I<U){if(b+=S+I-U,U-=I,U<R){R-=U;do g[l++]=k[b++];while(--U);if(b=0,I<R){U=I,R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}}}else if(b+=I-U,U<R){R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}for(;R>2;)g[l++]=_[b++],g[l++]=_[b++],g[l++]=_[b++],R-=3;R&&(g[l++]=_[b++],R>1&&(g[l++]=_[b++]))}else{b=l-A;do g[l++]=g[b++],g[l++]=g[b++],g[l++]=g[b++],R-=3;while(R>2);R&&(g[l++]=g[b++],R>1&&(g[l++]=g[b++]))}}else if(U&64){t.msg="invalid distance code",i.mode=lu;break e}else{K=J[(K&65535)+(P&(1<<U)-1)];continue n}break}}else if(U&64)if(U&32){i.mode=cF;break e}else{t.msg="invalid literal/length code",i.mode=lu;break e}else{K=C[(K&65535)+(P&(1<<U)-1)];continue t}break}}while(r<u&&l<y);R=m>>3,r-=R,m-=R<<3,P&=(1<<m)-1,t.next_in=r,t.next_out=l,t.avail_in=r<u?5+(u-r):5-(r-u),t.avail_out=l<y?257+(y-l):257-(l-y),i.hold=P,i.bits=m},db=br,ho=15,hb=852,pb=592,mb=0,Nd=1,yb=2,dF=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hF=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],pF=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],mF=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],yF=function(t,n,i,r,u,l,d,y){var T=y.bits,S=0,O=0,I=0,k=0,P=0,m=0,C=0,J=0,x=0,G=0,K,U,R,A,b,_=null,L=0,g,p=new db.Buf16(ho+1),a=new db.Buf16(ho+1),o=null,f=0,h,w,N;for(S=0;S<=ho;S++)p[S]=0;for(O=0;O<r;O++)p[n[i+O]]++;for(P=T,k=ho;k>=1&&p[k]===0;k--);if(P>k&&(P=k),k===0)return u[l++]=1<<24|64<<16|0,u[l++]=1<<24|64<<16|0,y.bits=1,0;for(I=1;I<k&&p[I]===0;I++);for(P<I&&(P=I),J=1,S=1;S<=ho;S++)if(J<<=1,J-=p[S],J<0)return-1;if(J>0&&(t===mb||k!==1))return-1;for(a[1]=0,S=1;S<ho;S++)a[S+1]=a[S]+p[S];for(O=0;O<r;O++)n[i+O]!==0&&(d[a[n[i+O]]++]=O);if(t===mb?(_=o=d,g=19):t===Nd?(_=dF,L-=257,o=hF,f-=257,g=256):(_=pF,o=mF,g=-1),G=0,O=0,S=I,b=l,m=P,C=0,R=-1,x=1<<P,A=x-1,t===Nd&&x>hb||t===yb&&x>pb)return 1;for(;;){h=S-C,d[O]<g?(w=0,N=d[O]):d[O]>g?(w=o[f+d[O]],N=_[L+d[O]]):(w=96,N=0),K=1<<S-C,U=1<<m,I=U;do U-=K,u[b+(G>>C)+U]=h<<24|w<<16|N|0;while(U!==0);for(K=1<<S-1;G&K;)K>>=1;if(K!==0?(G&=K-1,G+=K):G=0,O++,--p[S]===0){if(S===k)break;S=n[i+d[O]]}if(S>P&&(G&A)!==R){for(C===0&&(C=P),b+=I,m=S-C,J=1<<m;m+C<k&&(J-=p[m+C],!(J<=0));)m++,J<<=1;if(x+=1<<m,t===Nd&&x>hb||t===yb&&x>pb)return 1;R=G&A,u[R]=P<<24|m<<16|b-l|0}}return G!==0&&(u[b+G]=S-C<<24|64<<16|0),y.bits=P,0},Gn=br,Ah=nS,ki=iS,gF=fF,ja=yF,bF=0,pS=1,mS=2,gb=4,TF=5,uu=6,Ps=0,SF=1,vF=2,si=-2,yS=-3,gS=-4,wF=-5,bb=8,bS=1,Tb=2,Sb=3,vb=4,wb=5,_b=6,Lb=7,Nb=8,kb=9,Ob=10,Du=11,nr=12,kd=13,Eb=14,Od=15,Cb=16,Ab=17,Fb=18,Pb=19,cu=20,fu=21,Ib=22,Mb=23,jb=24,Bb=25,Rb=26,Ed=27,Db=28,xb=29,It=30,TS=31,_F=32,LF=852,NF=592,kF=15,OF=kF;function Ub(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function EF(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Gn.Buf16(320),this.work=new Gn.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function SS(e){var t;return!e||!e.state?si:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=bS,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Gn.Buf32(LF),t.distcode=t.distdyn=new Gn.Buf32(NF),t.sane=1,t.back=-1,Ps)}function vS(e){var t;return!e||!e.state?si:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,SS(e))}function wS(e,t){var n,i;return!e||!e.state||(i=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?si:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,vS(e))}function _S(e,t){var n,i;return e?(i=new EF,e.state=i,i.window=null,n=wS(e,t),n!==Ps&&(e.state=null),n):si}function CF(e){return _S(e,OF)}var Jb=!0,Cd,Ad;function AF(e){if(Jb){var t;for(Cd=new Gn.Buf32(512),Ad=new Gn.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ja(pS,e.lens,0,288,Cd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ja(mS,e.lens,0,32,Ad,0,e.work,{bits:5}),Jb=!1}e.lencode=Cd,e.lenbits=9,e.distcode=Ad,e.distbits=5}function LS(e,t,n,i){var r,u=e.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new Gn.Buf8(u.wsize)),i>=u.wsize?(Gn.arraySet(u.window,t,n-u.wsize,u.wsize,0),u.wnext=0,u.whave=u.wsize):(r=u.wsize-u.wnext,r>i&&(r=i),Gn.arraySet(u.window,t,n-i,r,u.wnext),i-=r,i?(Gn.arraySet(u.window,t,n-i,i,0),u.wnext=i,u.whave=u.wsize):(u.wnext+=r,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=r))),0}function FF(e,t){var n,i,r,u,l,d,y,T,S,O,I,k,P,m,C=0,J,x,G,K,U,R,A,b,_=new Gn.Buf8(4),L,g,p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return si;n=e.state,n.mode===nr&&(n.mode=kd),l=e.next_out,r=e.output,y=e.avail_out,u=e.next_in,i=e.input,d=e.avail_in,T=n.hold,S=n.bits,O=d,I=y,b=Ps;e:for(;;)switch(n.mode){case bS:if(n.wrap===0){n.mode=kd;break}for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.wrap&2&&T===35615){n.check=0,_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0),T=0,S=0,n.mode=Tb;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((T&255)<<8)+(T>>8))%31){e.msg="incorrect header check",n.mode=It;break}if((T&15)!==bb){e.msg="unknown compression method",n.mode=It;break}if(T>>>=4,S-=4,A=(T&15)+8,n.wbits===0)n.wbits=A;else if(A>n.wbits){e.msg="invalid window size",n.mode=It;break}n.dmax=1<<A,e.adler=n.check=1,n.mode=T&512?Ob:nr,T=0,S=0;break;case Tb:for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.flags=T,(n.flags&255)!==bb){e.msg="unknown compression method",n.mode=It;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=It;break}n.head&&(n.head.text=T>>8&1),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0,n.mode=Sb;case Sb:for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.head&&(n.head.time=T),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,_[2]=T>>>16&255,_[3]=T>>>24&255,n.check=ki(n.check,_,4,0)),T=0,S=0,n.mode=vb;case vb:for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.head&&(n.head.xflags=T&255,n.head.os=T>>8),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0,n.mode=wb;case wb:if(n.flags&1024){for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.length=T,n.head&&(n.head.extra_len=T),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0}else n.head&&(n.head.extra=null);n.mode=_b;case _b:if(n.flags&1024&&(k=n.length,k>d&&(k=d),k&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Gn.arraySet(n.head.extra,i,u,k,A)),n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,n.length-=k),n.length))break e;n.length=0,n.mode=Lb;case Lb:if(n.flags&2048){if(d===0)break e;k=0;do A=i[u+k++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A));while(A&&k<d);if(n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,A)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Nb;case Nb:if(n.flags&4096){if(d===0)break e;k=0;do A=i[u+k++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A));while(A&&k<d);if(n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,A)break e}else n.head&&(n.head.comment=null);n.mode=kb;case kb:if(n.flags&512){for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T!==(n.check&65535)){e.msg="header crc mismatch",n.mode=It;break}T=0,S=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=nr;break;case Ob:for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}e.adler=n.check=Ub(T),T=0,S=0,n.mode=Du;case Du:if(n.havedict===0)return e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,vF;e.adler=n.check=1,n.mode=nr;case nr:if(t===TF||t===uu)break e;case kd:if(n.last){T>>>=S&7,S-=S&7,n.mode=Ed;break}for(;S<3;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}switch(n.last=T&1,T>>>=1,S-=1,T&3){case 0:n.mode=Eb;break;case 1:if(AF(n),n.mode=cu,t===uu){T>>>=2,S-=2;break e}break;case 2:n.mode=Ab;break;case 3:e.msg="invalid block type",n.mode=It}T>>>=2,S-=2;break;case Eb:for(T>>>=S&7,S-=S&7;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if((T&65535)!==(T>>>16^65535)){e.msg="invalid stored block lengths",n.mode=It;break}if(n.length=T&65535,T=0,S=0,n.mode=Od,t===uu)break e;case Od:n.mode=Cb;case Cb:if(k=n.length,k){if(k>d&&(k=d),k>y&&(k=y),k===0)break e;Gn.arraySet(r,i,u,k,l),d-=k,u+=k,y-=k,l+=k,n.length-=k;break}n.mode=nr;break;case Ab:for(;S<14;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.nlen=(T&31)+257,T>>>=5,S-=5,n.ndist=(T&31)+1,T>>>=5,S-=5,n.ncode=(T&15)+4,T>>>=4,S-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=It;break}n.have=0,n.mode=Fb;case Fb:for(;n.have<n.ncode;){for(;S<3;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.lens[p[n.have++]]=T&7,T>>>=3,S-=3}for(;n.have<19;)n.lens[p[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},b=ja(bF,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,b){e.msg="invalid code lengths set",n.mode=It;break}n.have=0,n.mode=Pb;case Pb:for(;n.have<n.nlen+n.ndist;){for(;C=n.lencode[T&(1<<n.lenbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(G<16)T>>>=J,S-=J,n.lens[n.have++]=G;else{if(G===16){for(g=J+2;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T>>>=J,S-=J,n.have===0){e.msg="invalid bit length repeat",n.mode=It;break}A=n.lens[n.have-1],k=3+(T&3),T>>>=2,S-=2}else if(G===17){for(g=J+3;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=J,S-=J,A=0,k=3+(T&7),T>>>=3,S-=3}else{for(g=J+7;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=J,S-=J,A=0,k=11+(T&127),T>>>=7,S-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=It;break}for(;k--;)n.lens[n.have++]=A}}if(n.mode===It)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=It;break}if(n.lenbits=9,L={bits:n.lenbits},b=ja(pS,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,b){e.msg="invalid literal/lengths set",n.mode=It;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},b=ja(mS,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,b){e.msg="invalid distances set",n.mode=It;break}if(n.mode=cu,t===uu)break e;case cu:n.mode=fu;case fu:if(d>=6&&y>=258){e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,gF(e,I),l=e.next_out,r=e.output,y=e.avail_out,u=e.next_in,i=e.input,d=e.avail_in,T=n.hold,S=n.bits,n.mode===nr&&(n.back=-1);break}for(n.back=0;C=n.lencode[T&(1<<n.lenbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(x&&!(x&240)){for(K=J,U=x,R=G;C=n.lencode[R+((T&(1<<K+U)-1)>>K)],J=C>>>24,x=C>>>16&255,G=C&65535,!(K+J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=K,S-=K,n.back+=K}if(T>>>=J,S-=J,n.back+=J,n.length=G,x===0){n.mode=Rb;break}if(x&32){n.back=-1,n.mode=nr;break}if(x&64){e.msg="invalid literal/length code",n.mode=It;break}n.extra=x&15,n.mode=Ib;case Ib:if(n.extra){for(g=n.extra;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.length+=T&(1<<n.extra)-1,T>>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Mb;case Mb:for(;C=n.distcode[T&(1<<n.distbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(!(x&240)){for(K=J,U=x,R=G;C=n.distcode[R+((T&(1<<K+U)-1)>>K)],J=C>>>24,x=C>>>16&255,G=C&65535,!(K+J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=K,S-=K,n.back+=K}if(T>>>=J,S-=J,n.back+=J,x&64){e.msg="invalid distance code",n.mode=It;break}n.offset=G,n.extra=x&15,n.mode=jb;case jb:if(n.extra){for(g=n.extra;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.offset+=T&(1<<n.extra)-1,T>>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=It;break}n.mode=Bb;case Bb:if(y===0)break e;if(k=I-y,n.offset>k){if(k=n.offset-k,k>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=It;break}k>n.wnext?(k-=n.wnext,P=n.wsize-k):P=n.wnext-k,k>n.length&&(k=n.length),m=n.window}else m=r,P=l-n.offset,k=n.length;k>y&&(k=y),y-=k,n.length-=k;do r[l++]=m[P++];while(--k);n.length===0&&(n.mode=fu);break;case Rb:if(y===0)break e;r[l++]=n.length,y--,n.mode=fu;break;case Ed:if(n.wrap){for(;S<32;){if(d===0)break e;d--,T|=i[u++]<<S,S+=8}if(I-=y,e.total_out+=I,n.total+=I,I&&(e.adler=n.check=n.flags?ki(n.check,r,I,l-I):Ah(n.check,r,I,l-I)),I=y,(n.flags?T:Ub(T))!==n.check){e.msg="incorrect data check",n.mode=It;break}T=0,S=0}n.mode=Db;case Db:if(n.wrap&&n.flags){for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=It;break}T=0,S=0}n.mode=xb;case xb:b=SF;break e;case It:b=yS;break e;case TS:return gS;case _F:default:return si}return e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,(n.wsize||I!==e.avail_out&&n.mode<It&&(n.mode<Ed||t!==gb))&&LS(e,e.output,e.next_out,I-e.avail_out),O-=e.avail_in,I-=e.avail_out,e.total_in+=O,e.total_out+=I,n.total+=I,n.wrap&&I&&(e.adler=n.check=n.flags?ki(n.check,r,I,e.next_out-I):Ah(n.check,r,I,e.next_out-I)),e.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===cu||n.mode===Od?256:0),(O===0&&I===0||t===gb)&&b===Ps&&(b=wF),b}function PF(e){if(!e||!e.state)return si;var t=e.state;return t.window&&(t.window=null),e.state=null,Ps}function IF(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?si:(n.head=t,t.done=!1,Ps)}function MF(e,t){var n=t.length,i,r,u;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Du)?si:i.mode===Du&&(r=1,r=Ah(r,t,n,0),r!==i.check)?yS:(u=LS(e,t,n,n),u?(i.mode=TS,gS):(i.havedict=1,Ps))}Ti.inflateReset=vS;Ti.inflateReset2=wS;Ti.inflateResetKeep=SS;Ti.inflateInit=CF;Ti.inflateInit2=_S;Ti.inflate=FF;Ti.inflateEnd=PF;Ti.inflateGetHeader=IF;Ti.inflateSetDictionary=MF;Ti.inflateInfo="pako inflate (from Nodeca project)";var NS={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function jF(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var BF=jF,Eo=Ti,Ba=br,Lu=Us,Ht=NS,Fh=fp,RF=dS,DF=BF,kS=Object.prototype.toString;function Is(e){if(!(this instanceof Is))return new Is(e);this.options=Ba.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RF,this.strm.avail_out=0;var n=Eo.inflateInit2(this.strm,t.windowBits);if(n!==Ht.Z_OK)throw new Error(Fh[n]);if(this.header=new DF,Eo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Lu.string2buf(t.dictionary):kS.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Eo.inflateSetDictionary(this.strm,t.dictionary),n!==Ht.Z_OK)))throw new Error(Fh[n])}Is.prototype.push=function(e,t){var n=this.strm,i=this.options.chunkSize,r=this.options.dictionary,u,l,d,y,T,S=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?Ht.Z_FINISH:Ht.Z_NO_FLUSH,typeof e=="string"?n.input=Lu.binstring2buf(e):kS.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Ba.Buf8(i),n.next_out=0,n.avail_out=i),u=Eo.inflate(n,Ht.Z_NO_FLUSH),u===Ht.Z_NEED_DICT&&r&&(u=Eo.inflateSetDictionary(this.strm,r)),u===Ht.Z_BUF_ERROR&&S===!0&&(u=Ht.Z_OK,S=!1),u!==Ht.Z_STREAM_END&&u!==Ht.Z_OK)return this.onEnd(u),this.ended=!0,!1;n.next_out&&(n.avail_out===0||u===Ht.Z_STREAM_END||n.avail_in===0&&(l===Ht.Z_FINISH||l===Ht.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=Lu.utf8border(n.output,n.next_out),y=n.next_out-d,T=Lu.buf2string(n.output,d),n.next_out=y,n.avail_out=i-y,y&&Ba.arraySet(n.output,n.output,d,y,0),this.onData(T)):this.onData(Ba.shrinkBuf(n.output,n.next_out))),n.avail_in===0&&n.avail_out===0&&(S=!0)}while((n.avail_in>0||n.avail_out===0)&&u!==Ht.Z_STREAM_END);return u===Ht.Z_STREAM_END&&(l=Ht.Z_FINISH),l===Ht.Z_FINISH?(u=Eo.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===Ht.Z_OK):(l===Ht.Z_SYNC_FLUSH&&(this.onEnd(Ht.Z_OK),n.avail_out=0),!0)};Is.prototype.onData=function(e){this.chunks.push(e)};Is.prototype.onEnd=function(e){e===Ht.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ba.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function hp(e,t){var n=new Is(t);if(n.push(e,!0),n.err)throw n.msg||Fh[n.err];return n.result}function xF(e,t){return t=t||{},t.raw=!0,hp(e,t)}Ya.Inflate=Is;Ya.inflate=hp;Ya.inflateRaw=xF;Ya.ungzip=hp;var UF=br.assign,JF=Za,zF=Ya,WF=NS,OS={};UF(OS,JF,zF,WF);var GF=OS,Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.messageAssert=Kt.messageError=Kt.QuickTypeError=void 0;const qF={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:"Malformed unicode: High surrogate not followed by low surrogate",MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:"GraphQL file doesn't have any queries defined.",DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:"Please specify at least one GraphQL query as input",DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:"If a GraphQL schema is specified, the source language must be GraphQL",DriverGraphQLSchemaNeeded:"Please specify a GraphQL schema with --graphql-schema or --graphql-introspect",DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:"Please specify a language (--lang) or an output file extension",DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:"Cannot resolve cycle because it doesn't contain types that can be forward declared",IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:"Trying to make an empty union - do you have an impossible type in your schema?",RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"};class ES extends Error{constructor(t,n,i,r){super(i),this.errorMessage=t,this.messageName=n,this.properties=r}}Kt.QuickTypeError=ES;function CS(e,t){const n=qF[e];let i=n;const r=t;for(const u of Object.getOwnPropertyNames(r)){let l=r[u];typeof l=="object"&&typeof l.toString=="function"?l=l.toString():typeof l.message=="string"?l=l.message:typeof l!="string"&&(l=JSON.stringify(l)),i=i.replace("${"+u+"}",l)}throw new ES(n,e,i,r)}Kt.messageError=CS;function HF(e,t,n){if(!e)return CS(t,n)}Kt.messageAssert=HF;const pp=Symbol.for("yaml.alias"),Ph=Symbol.for("yaml.document"),qr=Symbol.for("yaml.map"),AS=Symbol.for("yaml.pair"),dr=Symbol.for("yaml.scalar"),zo=Symbol.for("yaml.seq"),oi=Symbol.for("yaml.node.type"),$r=e=>!!e&&typeof e=="object"&&e[oi]===pp,Js=e=>!!e&&typeof e=="object"&&e[oi]===Ph,zs=e=>!!e&&typeof e=="object"&&e[oi]===qr,Ft=e=>!!e&&typeof e=="object"&&e[oi]===AS,Ot=e=>!!e&&typeof e=="object"&&e[oi]===dr,Ws=e=>!!e&&typeof e=="object"&&e[oi]===zo;function Mt(e){if(e&&typeof e=="object")switch(e[oi]){case qr:case zo:return!0}return!1}function zt(e){if(e&&typeof e=="object")switch(e[oi]){case pp:case qr:case dr:case zo:return!0}return!1}const VF=e=>(Ot(e)||Mt(e))&&!!e.anchor,Cn=Symbol("break visit"),FS=Symbol("skip children"),Di=Symbol("remove node");function hr(e,t){const n=PS(t);Js(e)?vo(null,e.contents,n,Object.freeze([e]))===Di&&(e.contents=null):vo(null,e,n,Object.freeze([]))}hr.BREAK=Cn;hr.SKIP=FS;hr.REMOVE=Di;function vo(e,t,n,i){const r=IS(e,t,n,i);if(zt(r)||Ft(r))return MS(e,i,r),vo(e,r,n,i);if(typeof r!="symbol"){if(Mt(t)){i=Object.freeze(i.concat(t));for(let u=0;u<t.items.length;++u){const l=vo(u,t.items[u],n,i);if(typeof l=="number")u=l-1;else{if(l===Cn)return Cn;l===Di&&(t.items.splice(u,1),u-=1)}}}else if(Ft(t)){i=Object.freeze(i.concat(t));const u=vo("key",t.key,n,i);if(u===Cn)return Cn;u===Di&&(t.key=null);const l=vo("value",t.value,n,i);if(l===Cn)return Cn;l===Di&&(t.value=null)}}return r}async function $a(e,t){const n=PS(t);Js(e)?await wo(null,e.contents,n,Object.freeze([e]))===Di&&(e.contents=null):await wo(null,e,n,Object.freeze([]))}$a.BREAK=Cn;$a.SKIP=FS;$a.REMOVE=Di;async function wo(e,t,n,i){const r=await IS(e,t,n,i);if(zt(r)||Ft(r))return MS(e,i,r),wo(e,r,n,i);if(typeof r!="symbol"){if(Mt(t)){i=Object.freeze(i.concat(t));for(let u=0;u<t.items.length;++u){const l=await wo(u,t.items[u],n,i);if(typeof l=="number")u=l-1;else{if(l===Cn)return Cn;l===Di&&(t.items.splice(u,1),u-=1)}}}else if(Ft(t)){i=Object.freeze(i.concat(t));const u=await wo("key",t.key,n,i);if(u===Cn)return Cn;u===Di&&(t.key=null);const l=await wo("value",t.value,n,i);if(l===Cn)return Cn;l===Di&&(t.value=null)}}return r}function PS(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function IS(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(zs(t))return n.Map?.(e,t,i);if(Ws(t))return n.Seq?.(e,t,i);if(Ft(t))return n.Pair?.(e,t,i);if(Ot(t))return n.Scalar?.(e,t,i);if($r(t))return n.Alias?.(e,t,i)}function MS(e,t,n){const i=t[t.length-1];if(Mt(i))i.items[e]=n;else if(Ft(i))e==="key"?i.key=n:i.value=n;else if(Js(i))i.contents=n;else{const r=$r(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const KF={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ZF=e=>e.replace(/[!,[\]{}]/g,t=>KF[t]);class bn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},bn.defaultYaml,t),this.tags=Object.assign({},bn.defaultTags,n)}clone(){const t=new bn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new bn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:bn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},bn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:bn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},bn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[u,l]=i;return this.tags[u]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[u]=i;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const l=/^\d+\.\d+$/.test(u);return n(6,`Unsupported YAML version ${u}`,l),!1}}default:return n(0,`Unknown directive ${r}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const l=t.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,i,r]=t.match(/^(.*!)([^!]*)$/s);r||n(`The ${t} tag has no suffix`);const u=this.tags[i];if(u)try{return u+decodeURIComponent(r)}catch(l){return n(String(l)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+ZF(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let r;if(t&&i.length>0&&zt(t.contents)){const u={};hr(t.contents,(l,d)=>{zt(d)&&d.tag&&(u[d.tag]=!0)}),r=Object.keys(u)}else r=[];for(const[u,l]of i)u==="!!"&&l==="tag:yaml.org,2002:"||(!t||r.some(d=>d.startsWith(l)))&&n.push(`%TAG ${u} ${l}`);return n.join(`
|
|
1
|
+
import{_ as UC}from"./CgvvXsvn.js";import{c as Fe,g as xT,d as JC,u as zC,r as dd,a as Qg,b as WC,w as Xg,e as GC,f as Jn,o as Pr,h as iu,i as ru,j as ga,k as Fa,l as qC,m as su,F as Yg,n as $g,t as hd,p as ou,T as HC,_ as VC}from"./CSxKs2xg.js";import{_ as KC}from"./BL23Bc6O.js";import{_ as ZC}from"./Zl399FYQ.js";import{_ as QC}from"./DjVyxknR.js";import{_ as XC}from"./-qWogbxp.js";import"./f1qyuWhx.js";var pd={},md={},He={};(function(e){var t=Fe&&Fe.__awaiter||function(he,ye,Z,D){return new(Z||(Z=Promise))(function(V,oe){function me(ze){try{Oe(D.next(ze))}catch(nt){oe(nt)}}function Le(ze){try{Oe(D.throw(ze))}catch(nt){oe(nt)}}function Oe(ze){ze.done?V(ze.value):new Z(function(nt){nt(ze.value)}).then(me,Le)}Oe((D=D.apply(he,ye||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.hashCodeInit=17;function n(he){let ye=0;for(let Z=0;Z<he.length;Z++){const D=he.charCodeAt(Z);ye=(ye<<5)-ye+D,ye=ye&ye}return ye}e.hashString=n;function i(he,ye){return he*31+(ye|0)|0}e.addHashCode=i;function r(he,ye){return he!==void 0?he:ye}e.withDefault=r;function u(he,ye){if(he!==void 0)return ye(he)}e.definedMap=u;function l(he,ye,Z){return r(u(he,Z),ye)}e.definedMapWithDefault=l;function d(he,ye){return he==null?!1:Object.prototype.hasOwnProperty.call(he,ye)}e.hasOwnProperty=d;function y(he,ye){for(const Z of he)if(ye(Z))return Z}e.iterableFind=y;function T(he,ye){for(const Z of he)if(!ye(Z))return!1;return!0}e.iterableEvery=T;function S(he,ye){for(const Z of he)if(ye(Z))return!0;return!1}e.iterableSome=S;function O(he){for(const ye of he)return ye}e.iterableFirst=O;function I(he){let ye;for(const Z of he)(ye===void 0||Z>ye)&&(ye=Z);return ye}e.iterableMax=I;function k(he,ye){let Z,D;for(const V of he){const oe=ye(V);(Z===void 0||oe<Z)&&(Z=oe,D=V)}return D}e.iterableMinBy=k;function P(he,ye,Z){let D=ye;for(const V of he)D=Z(D,V);return D}e.iterableReduce=P;function*m(he){let ye=0;for(const Z of he)yield[ye,Z],ye+=1}e.iterableEnumerate=m;function*C(he,ye){let Z=0;for(const D of he)Z>=ye?yield D:Z+=1}e.iterableSkip=C;function J(he,ye){const Z=he.length;if(!(ye>Z))return he[Z-ye]}e.arrayGetFromEnd=J;function x(he){return J(he,1)}e.arrayLast=x;function G(he){const ye=he.length;if(ye===0)throw new Error("Cannot pop empty array");return he.slice(0,ye-1)}e.arrayPop=G;function K(he,ye){const Z=[];for(const D of ye)Z.length>0&&Z.push(he),Z.push(D);return Z}e.arrayIntercalate=K;function U(he,ye){return t(this,void 0,void 0,function*(){const Z=[];let D=0;for(const V of he)Z.push(yield ye(V,D)),D+=1;return Z})}e.arrayMapSync=U;function R(he,ye){return he<ye?-1:he>ye?1:0}function A(he,ye){return he.sort((Z,D)=>R(ye(Z),ye(D)))}e.arraySortByInto=A;function b(he){return Array.isArray(he)?he:Array.from(he)}e.toReadonlyArray=b;function _(he,ye){const Z=new Map;for(const[D,V]of he)Z.set(D,ye(V,D));return Z}e.mapMap=_;function L(he){for(const ye of he.values())return ye}e.mapFirst=L;function g(he,ye){for(const Z of he.values())if(Z===ye)return!0;return!1}e.mapContains=g;function p(he,ye){for(const[Z,D]of he)if(ye(D,Z))return!0;return!1}e.mapSome=p;function a(he,ye){for(const[Z,D]of ye)he.set(Z,D);return he}e.mapMergeInto=a;function o(he,ye){const Z=new Map(he);return a(Z,ye),Z}e.mapMerge=o;function f(he,ye,Z){for(const[D,V]of Z){const oe=he.get(D),me=oe===void 0?V:ye(oe,V,D);he.set(D,me)}return he}e.mapMergeWithInto=f;function h(he,ye,Z){const D=new Map(he);return f(D,ye,Z),D}e.mapMergeWith=h;function w(he,ye){const Z=new Map;for(const[D,V]of he)ye(V,D)&&Z.set(D,V);return Z}e.mapFilter=w;function N(he,ye){const Z=new Map;for(const[D,V]of he){const oe=ye(V,D);oe!==void 0&&Z.set(D,oe)}return Z}e.mapFilterMap=N;function F(he,ye){return A(Array.from(he),([Z,D])=>ye(D,Z))}e.mapSortToArray=F;function B(he,ye){return new Map(F(he,ye))}e.mapSortBy=B;function W(he){return B(he,(ye,Z)=>Z)}e.mapSortByKey=W;function Q(he,ye){const Z=new Map;for(const[D,V]of he){const[oe,me]=ye(V,D);Z.set(oe,me)}return Z}e.mapMapEntries=Q;function z(he,ye,Z){return he.set(ye,Z(he.get(ye))),he}e.mapUpdateInto=z;function E(he){const ye=new Map;for(const Z of Object.getOwnPropertyNames(he))ye.set(Z,he[Z]);return ye}e.mapFromObject=E;function j(he){const ye={};for(const[Z,D]of he)ye[Z]=D;return ye}e.mapToObject=j;function X(he,ye){const Z=new Map;for(const D of he)Z.set(D,ye(D));return Z}e.mapFromIterable=X;function te(he,ye){for(const[Z,D]of he)if(ye(D,Z))return D}e.mapFind=te;function $(he){const ye=new Map;for(const Z of he)for(const[D,V]of Z){let oe=ye.get(D);oe===void 0&&(oe=[],ye.set(D,oe)),oe.push(V)}return ye}e.mapTranspose=$;function ne(he,ye){return t(this,void 0,void 0,function*(){const Z=new Map;for(const[D,V]of he)Z.set(D,yield ye(V,D));return Z})}e.mapMapSync=ne;function ce(he,ye){for(const Z of ye)if(!he.has(Z))return!1;return!0}e.setIsSuperset=ce;function Te(he,ye){for(const Z of ye)for(const D of Z)he.add(D);return he}e.setUnionManyInto=Te;function Ne(he,...ye){return Te(he,ye)}e.setUnionInto=Ne;function le(he,ye){const Z=new Set;for(const D of he)ye.has(D)&&Z.add(D);return Z}e.setIntersect=le;function fe(he,ye){const Z=new Set(he);for(const D of ye)Z.delete(D);return Z}e.setSubtract=fe;function _e(...he){const ye=new Set;return Ne(ye,...he),ye}e.setUnion=_e;function Y(he,ye){const Z=new Set;for(const D of he)Z.add(ye(D));return Z}e.setMap=Y;function M(he,ye){const Z=new Set;for(const D of he)ye(D)&&Z.add(D);return Z}e.setFilter=M;function q(he,ye){const Z=new Set;for(const D of he){const V=ye(D);V!==void 0&&Z.add(V)}return Z}e.setFilterMap=q;function ie(he,ye){return new Set(A(Array.from(he),ye))}e.setSortBy=ie;function ue(he,ye){const Z=new Map;for(const D of he){const V=ye(D);let oe=Z.get(V);oe===void 0&&(oe=new Set,Z.set(V,oe)),oe.add(D)}return Z}e.setGroupBy=ue;function ve(he){return he instanceof Set?he:new Set(he)}e.toReadonlySet=ve;class be{constructor(){this._map=new Map}set(ye,Z){let D=je(ye)|0;for(;;){const V=this._map.get(D);if(V===void 0){this._map.set(D,[ye,Z]);return}if(Me(ye,V[0])){V[1]=Z;return}D=D+1|0}}get(ye){let Z=je(ye)|0;for(;;){const D=this._map.get(Z);if(D===void 0)return;if(Me(ye,D[0]))return D[1];Z=Z+1|0}}has(ye){return this.get(ye)!==void 0}*values(){for(const[,[,ye]]of this._map)yield ye}}e.EqualityMap=be;function Me(he,ye){if(he===ye)return!0;if(he===void 0||ye===void 0||he===null||ye===null)return!1;if(typeof he.equals=="function"&&typeof ye.equals=="function")return he.equals(ye);if(he instanceof Set&&ye instanceof Set){if(he.size!==ye.size)return!1;for(const Z of he)if(!ye.has(Z))return!1;return!0}if(he instanceof Map&&ye instanceof Map){if(he.size!==ye.size)return!1;for(const[Z,D]of he){const V=ye.get(Z);if(!Me(D,V))return!1}return!0}if(Array.isArray(he)&&Array.isArray(ye)){const Z=he.length;if(Z!==ye.length)return!1;for(let D=0;D<Z;D++)if(!Me(he[D],ye[D]))return!1;return!0}return!1}e.areEqual=Me;function je(he){if(typeof he=="number")return he|0;if(typeof he=="string")return n(he);let ye=e.hashCodeInit;if(he===void 0)return ye;if(he===!0)return ye+1|0;if(he===!1)return ye+2|0;if(he===null)return ye+3|0;if(typeof he.hashCode=="function")return he.hashCode();if(he instanceof Set){for(const Z of he)ye+=je(Z);return ye}if(he instanceof Map){let Z=e.hashCodeInit;for(const[D,V]of he)Z+=je(D),ye+=je(V);return i(Z,ye)}if(Array.isArray(he)){for(const Z of he)ye=i(ye,je(Z));return ye}throw new Error(`Cannot hash ${he}`)}e.hashCodeOf=je})(He);var yd={},op={},gd={},Ie={},UT={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:typeof window<"u"?window:typeof Fe<"u"?Fe:Fe,function(){var n="3.7.7",i=n,r=typeof Buffer=="function",u=typeof TextDecoder=="function"?new TextDecoder:void 0,l=typeof TextEncoder=="function"?new TextEncoder:void 0,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=Array.prototype.slice.call(d),T=function(j){var X={};return j.forEach(function(te,$){return X[te]=$}),X}(y),S=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,O=String.fromCharCode.bind(String),I=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(j){return new Uint8Array(Array.prototype.slice.call(j,0))},k=function(j){return j.replace(/=/g,"").replace(/[+\/]/g,function(X){return X=="+"?"-":"_"})},P=function(j){return j.replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(j){for(var X,te,$,ne,ce="",Te=j.length%3,Ne=0;Ne<j.length;){if((te=j.charCodeAt(Ne++))>255||($=j.charCodeAt(Ne++))>255||(ne=j.charCodeAt(Ne++))>255)throw new TypeError("invalid character found");X=te<<16|$<<8|ne,ce+=y[X>>18&63]+y[X>>12&63]+y[X>>6&63]+y[X&63]}return Te?ce.slice(0,Te-3)+"===".substring(Te):ce},C=typeof btoa=="function"?function(j){return btoa(j)}:r?function(j){return Buffer.from(j,"binary").toString("base64")}:m,J=r?function(j){return Buffer.from(j).toString("base64")}:function(j){for(var X=4096,te=[],$=0,ne=j.length;$<ne;$+=X)te.push(O.apply(null,j.subarray($,$+X)));return C(te.join(""))},x=function(j,X){return X===void 0&&(X=!1),X?k(J(j)):J(j)},G=function(j){if(j.length<2){var X=j.charCodeAt(0);return X<128?j:X<2048?O(192|X>>>6)+O(128|X&63):O(224|X>>>12&15)+O(128|X>>>6&63)+O(128|X&63)}else{var X=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return O(240|X>>>18&7)+O(128|X>>>12&63)+O(128|X>>>6&63)+O(128|X&63)}},K=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U=function(j){return j.replace(K,G)},R=r?function(j){return Buffer.from(j,"utf8").toString("base64")}:l?function(j){return J(l.encode(j))}:function(j){return C(U(j))},A=function(j,X){return X===void 0&&(X=!1),X?k(R(j)):R(j)},b=function(j){return A(j,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,L=function(j){switch(j.length){case 4:var X=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),te=X-65536;return O((te>>>10)+55296)+O((te&1023)+56320);case 3:return O((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return O((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},g=function(j){return j.replace(_,L)},p=function(j){if(j=j.replace(/\s+/g,""),!S.test(j))throw new TypeError("malformed base64.");j+="==".slice(2-(j.length&3));for(var X,te="",$,ne,ce=0;ce<j.length;)X=T[j.charAt(ce++)]<<18|T[j.charAt(ce++)]<<12|($=T[j.charAt(ce++)])<<6|(ne=T[j.charAt(ce++)]),te+=$===64?O(X>>16&255):ne===64?O(X>>16&255,X>>8&255):O(X>>16&255,X>>8&255,X&255);return te},a=typeof atob=="function"?function(j){return atob(P(j))}:r?function(j){return Buffer.from(j,"base64").toString("binary")}:p,o=r?function(j){return I(Buffer.from(j,"base64"))}:function(j){return I(a(j).split("").map(function(X){return X.charCodeAt(0)}))},f=function(j){return o(w(j))},h=r?function(j){return Buffer.from(j,"base64").toString("utf8")}:u?function(j){return u.decode(o(j))}:function(j){return g(a(j))},w=function(j){return P(j.replace(/[-_]/g,function(X){return X=="-"?"+":"/"}))},N=function(j){return h(w(j))},F=function(j){if(typeof j!="string")return!1;var X=j.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(X)||!/[^\s0-9a-zA-Z\-_]/.test(X)},B=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}},W=function(){var j=function(X,te){return Object.defineProperty(String.prototype,X,B(te))};j("fromBase64",function(){return N(this)}),j("toBase64",function(X){return A(this,X)}),j("toBase64URI",function(){return A(this,!0)}),j("toBase64URL",function(){return A(this,!0)}),j("toUint8Array",function(){return f(this)})},Q=function(){var j=function(X,te){return Object.defineProperty(Uint8Array.prototype,X,B(te))};j("toBase64",function(X){return x(this,X)}),j("toBase64URI",function(){return x(this,!0)}),j("toBase64URL",function(){return x(this,!0)})},z=function(){W(),Q()},E={version:n,VERSION:i,atob:a,atobPolyfill:p,btoa:C,btoaPolyfill:m,fromBase64:N,toBase64:A,encode:A,encodeURI:b,encodeURL:b,utob:U,btou:g,decode:N,isValid:F,fromUint8Array:x,toUint8Array:f,extendString:W,extendUint8Array:Q,extendBuiltins:z};return E.Base64={},Object.keys(E).forEach(function(j){return E.Base64[j]=E[j]}),E})})(UT);var YC=UT.exports,br={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(u,l){return Object.prototype.hasOwnProperty.call(u,l)}e.assign=function(u){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var d=l.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var y in d)n(d,y)&&(u[y]=d[y])}}return u},e.shrinkBuf=function(u,l){return u.length===l?u:u.subarray?u.subarray(0,l):(u.length=l,u)};var i={arraySet:function(u,l,d,y,T){if(l.subarray&&u.subarray){u.set(l.subarray(d,d+y),T);return}for(var S=0;S<y;S++)u[T+S]=l[d+S]},flattenChunks:function(u){var l,d,y,T,S,O;for(y=0,l=0,d=u.length;l<d;l++)y+=u[l].length;for(O=new Uint8Array(y),T=0,l=0,d=u.length;l<d;l++)S=u[l],O.set(S,T),T+=S.length;return O}},r={arraySet:function(u,l,d,y,T){for(var S=0;S<y;S++)u[T+S]=l[d+S]},flattenChunks:function(u){return[].concat.apply([],u)}};e.setTyped=function(u){u?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,r))},e.setTyped(t)})(br);var Za={},Wi={},xo={},$C=br,eA=4,eb=0,tb=1,tA=2;function Uo(e){for(var t=e.length;--t>=0;)e[t]=0}var nA=0,JT=1,iA=2,rA=3,sA=258,ap=29,Qa=256,xa=Qa+1+ap,ko=30,lp=19,zT=2*xa+1,Ts=15,bd=16,oA=7,up=256,WT=16,GT=17,qT=18,Lh=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Su=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],aA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=512,or=new Array((xa+2)*2);Uo(or);var Pa=new Array(ko*2);Uo(Pa);var Ua=new Array(lA);Uo(Ua);var Ja=new Array(sA-rA+1);Uo(Ja);var cp=new Array(ap);Uo(cp);var Ru=new Array(ko);Uo(Ru);function Td(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}var VT,KT,ZT;function Sd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function QT(e){return e<256?Ua[e]:Ua[256+(e>>>7)]}function za(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Fn(e,t,n){e.bi_valid>bd-n?(e.bi_buf|=t<<e.bi_valid&65535,za(e,e.bi_buf),e.bi_buf=t>>bd-e.bi_valid,e.bi_valid+=n-bd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function ji(e,t,n){Fn(e,n[t*2],n[t*2+1])}function XT(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function uA(e){e.bi_valid===16?(za(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function cA(e,t){var n=t.dyn_tree,i=t.max_code,r=t.stat_desc.static_tree,u=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,y=t.stat_desc.max_length,T,S,O,I,k,P,m=0;for(I=0;I<=Ts;I++)e.bl_count[I]=0;for(n[e.heap[e.heap_max]*2+1]=0,T=e.heap_max+1;T<zT;T++)S=e.heap[T],I=n[n[S*2+1]*2+1]+1,I>y&&(I=y,m++),n[S*2+1]=I,!(S>i)&&(e.bl_count[I]++,k=0,S>=d&&(k=l[S-d]),P=n[S*2],e.opt_len+=P*(I+k),u&&(e.static_len+=P*(r[S*2+1]+k)));if(m!==0){do{for(I=y-1;e.bl_count[I]===0;)I--;e.bl_count[I]--,e.bl_count[I+1]+=2,e.bl_count[y]--,m-=2}while(m>0);for(I=y;I!==0;I--)for(S=e.bl_count[I];S!==0;)O=e.heap[--T],!(O>i)&&(n[O*2+1]!==I&&(e.opt_len+=(I-n[O*2+1])*n[O*2],n[O*2+1]=I),S--)}}function YT(e,t,n){var i=new Array(Ts+1),r=0,u,l;for(u=1;u<=Ts;u++)i[u]=r=r+n[u-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=XT(i[d]++,d))}}function fA(){var e,t,n,i,r,u=new Array(Ts+1);for(n=0,i=0;i<ap-1;i++)for(cp[i]=n,e=0;e<1<<Lh[i];e++)Ja[n++]=i;for(Ja[n-1]=i,r=0,i=0;i<16;i++)for(Ru[i]=r,e=0;e<1<<Su[i];e++)Ua[r++]=i;for(r>>=7;i<ko;i++)for(Ru[i]=r<<7,e=0;e<1<<Su[i]-7;e++)Ua[256+r++]=i;for(t=0;t<=Ts;t++)u[t]=0;for(e=0;e<=143;)or[e*2+1]=8,e++,u[8]++;for(;e<=255;)or[e*2+1]=9,e++,u[9]++;for(;e<=279;)or[e*2+1]=7,e++,u[7]++;for(;e<=287;)or[e*2+1]=8,e++,u[8]++;for(YT(or,xa+1,u),e=0;e<ko;e++)Pa[e*2+1]=5,Pa[e*2]=XT(e,5);VT=new Td(or,Lh,Qa+1,xa,Ts),KT=new Td(Pa,Su,0,ko,Ts),ZT=new Td(new Array(0),aA,0,lp,oA)}function $T(e){var t;for(t=0;t<xa;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ko;t++)e.dyn_dtree[t*2]=0;for(t=0;t<lp;t++)e.bl_tree[t*2]=0;e.dyn_ltree[up*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function eS(e){e.bi_valid>8?za(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function dA(e,t,n,i){eS(e),i&&(za(e,n),za(e,~n)),$C.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function nb(e,t,n,i){var r=t*2,u=n*2;return e[r]<e[u]||e[r]===e[u]&&i[t]<=i[n]}function vd(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&nb(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!nb(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function ib(e,t,n){var i,r,u=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+u*2]<<8|e.pending_buf[e.d_buf+u*2+1],r=e.pending_buf[e.l_buf+u],u++,i===0?ji(e,r,t):(l=Ja[r],ji(e,l+Qa+1,t),d=Lh[l],d!==0&&(r-=cp[l],Fn(e,r,d)),i--,l=QT(i),ji(e,l,n),d=Su[l],d!==0&&(i-=Ru[l],Fn(e,i,d)));while(u<e.last_lit);ji(e,up,t)}function Nh(e,t){var n=t.dyn_tree,i=t.stat_desc.static_tree,r=t.stat_desc.has_stree,u=t.stat_desc.elems,l,d,y=-1,T;for(e.heap_len=0,e.heap_max=zT,l=0;l<u;l++)n[l*2]!==0?(e.heap[++e.heap_len]=y=l,e.depth[l]=0):n[l*2+1]=0;for(;e.heap_len<2;)T=e.heap[++e.heap_len]=y<2?++y:0,n[T*2]=1,e.depth[T]=0,e.opt_len--,r&&(e.static_len-=i[T*2+1]);for(t.max_code=y,l=e.heap_len>>1;l>=1;l--)vd(e,n,l);T=u;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vd(e,n,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,n[T*2]=n[l*2]+n[d*2],e.depth[T]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,n[l*2+1]=n[d*2+1]=T,e.heap[1]=T++,vd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],cA(e,t),YT(n,y,e.bl_count)}function rb(e,t,n){var i,r=-1,u,l=t[0*2+1],d=0,y=7,T=4;for(l===0&&(y=138,T=3),t[(n+1)*2+1]=65535,i=0;i<=n;i++)u=l,l=t[(i+1)*2+1],!(++d<y&&u===l)&&(d<T?e.bl_tree[u*2]+=d:u!==0?(u!==r&&e.bl_tree[u*2]++,e.bl_tree[WT*2]++):d<=10?e.bl_tree[GT*2]++:e.bl_tree[qT*2]++,d=0,r=u,l===0?(y=138,T=3):u===l?(y=6,T=3):(y=7,T=4))}function sb(e,t,n){var i,r=-1,u,l=t[0*2+1],d=0,y=7,T=4;for(l===0&&(y=138,T=3),i=0;i<=n;i++)if(u=l,l=t[(i+1)*2+1],!(++d<y&&u===l)){if(d<T)do ji(e,u,e.bl_tree);while(--d!==0);else u!==0?(u!==r&&(ji(e,u,e.bl_tree),d--),ji(e,WT,e.bl_tree),Fn(e,d-3,2)):d<=10?(ji(e,GT,e.bl_tree),Fn(e,d-3,3)):(ji(e,qT,e.bl_tree),Fn(e,d-11,7));d=0,r=u,l===0?(y=138,T=3):u===l?(y=6,T=3):(y=7,T=4)}}function hA(e){var t;for(rb(e,e.dyn_ltree,e.l_desc.max_code),rb(e,e.dyn_dtree,e.d_desc.max_code),Nh(e,e.bl_desc),t=lp-1;t>=3&&e.bl_tree[HT[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function pA(e,t,n,i){var r;for(Fn(e,t-257,5),Fn(e,n-1,5),Fn(e,i-4,4),r=0;r<i;r++)Fn(e,e.bl_tree[HT[r]*2+1],3);sb(e,e.dyn_ltree,t-1),sb(e,e.dyn_dtree,n-1)}function mA(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return eb;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return tb;for(n=32;n<Qa;n++)if(e.dyn_ltree[n*2]!==0)return tb;return eb}var ob=!1;function yA(e){ob||(fA(),ob=!0),e.l_desc=new Sd(e.dyn_ltree,VT),e.d_desc=new Sd(e.dyn_dtree,KT),e.bl_desc=new Sd(e.bl_tree,ZT),e.bi_buf=0,e.bi_valid=0,$T(e)}function tS(e,t,n,i){Fn(e,(nA<<1)+(i?1:0),3),dA(e,t,n,!0)}function gA(e){Fn(e,JT<<1,3),ji(e,up,or),uA(e)}function bA(e,t,n,i){var r,u,l=0;e.level>0?(e.strm.data_type===tA&&(e.strm.data_type=mA(e)),Nh(e,e.l_desc),Nh(e,e.d_desc),l=hA(e),r=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=r&&(r=u)):r=u=n+5,n+4<=r&&t!==-1?tS(e,t,n,i):e.strategy===eA||u===r?(Fn(e,(JT<<1)+(i?1:0),3),ib(e,or,Pa)):(Fn(e,(iA<<1)+(i?1:0),3),pA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ib(e,e.dyn_ltree,e.dyn_dtree)),$T(e),i&&eS(e)}function TA(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ja[n]+Qa+1)*2]++,e.dyn_dtree[QT(t)*2]++),e.last_lit===e.lit_bufsize-1}xo._tr_init=yA;xo._tr_stored_block=tS;xo._tr_flush_block=bA;xo._tr_tally=TA;xo._tr_align=gA;function SA(e,t,n,i){for(var r=e&65535|0,u=e>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do r=r+t[i++]|0,u=u+r|0;while(--l);r%=65521,u%=65521}return r|u<<16|0}var nS=SA;function vA(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var wA=vA();function _A(e,t,n,i){var r=wA,u=i+n;e^=-1;for(var l=i;l<u;l++)e=e>>>8^r[(e^t[l])&255];return e^-1}var iS=_A,fp={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Tn=br,ni=xo,rS=nS,Br=iS,LA=fp,xs=0,NA=1,kA=3,Gr=4,ab=5,Bi=0,lb=1,ii=-2,OA=-3,wd=-5,EA=-1,CA=1,au=2,AA=3,FA=4,PA=0,IA=2,Yu=8,MA=9,jA=15,BA=8,RA=29,DA=256,kh=DA+1+RA,xA=30,UA=19,JA=2*kh+1,zA=15,mt=3,Jr=258,gi=Jr+mt+1,WA=32,$u=42,Oh=69,vu=73,wu=91,_u=103,Ss=113,ka=666,$t=1,Xa=2,Cs=3,Jo=4,GA=3;function zr(e,t){return e.msg=LA[t],t}function ub(e){return(e<<1)-(e>4?9:0)}function Ur(e){for(var t=e.length;--t>=0;)e[t]=0}function Rr(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(Tn.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function an(e,t){ni._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Rr(e.strm)}function bt(e,t){e.pending_buf[e.pending++]=t}function ba(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function qA(e,t,n,i){var r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,Tn.arraySet(t,e.input,e.next_in,r,n),e.state.wrap===1?e.adler=rS(e.adler,t,r,n):e.state.wrap===2&&(e.adler=Br(e.adler,t,r,n)),e.next_in+=r,e.total_in+=r,r)}function sS(e,t){var n=e.max_chain_length,i=e.strstart,r,u,l=e.prev_length,d=e.nice_match,y=e.strstart>e.w_size-gi?e.strstart-(e.w_size-gi):0,T=e.window,S=e.w_mask,O=e.prev,I=e.strstart+Jr,k=T[i+l-1],P=T[i+l];e.prev_length>=e.good_match&&(n>>=2),d>e.lookahead&&(d=e.lookahead);do if(r=t,!(T[r+l]!==P||T[r+l-1]!==k||T[r]!==T[i]||T[++r]!==T[i+1])){i+=2,r++;do;while(T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&T[++i]===T[++r]&&i<I);if(u=Jr-(I-i),i=I-Jr,u>l){if(e.match_start=t,l=u,u>=d)break;k=T[i+l-1],P=T[i+l]}}while((t=O[t&S])>y&&--n!==0);return l<=e.lookahead?l:e.lookahead}function As(e){var t=e.w_size,n,i,r,u,l;do{if(u=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-gi)){Tn.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,n=i;do r=e.head[--n],e.head[n]=r>=t?r-t:0;while(--i);i=t,n=i;do r=e.prev[--n],e.prev[n]=r>=t?r-t:0;while(--i);u+=t}if(e.strm.avail_in===0)break;if(i=qA(e.strm,e.window,e.strstart+e.lookahead,u),e.lookahead+=i,e.lookahead+e.insert>=mt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+mt-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<mt)););}while(e.lookahead<gi&&e.strm.avail_in!==0)}function HA(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(As(e),e.lookahead===0&&t===xs)return $t;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,an(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-gi&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):(e.strstart>e.block_start&&(an(e,!1),e.strm.avail_out===0),$t)}function _d(e,t){for(var n,i;;){if(e.lookahead<gi){if(As(e),e.lookahead<gi&&t===xs)return $t;if(e.lookahead===0)break}if(n=0,e.lookahead>=mt&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-gi&&(e.match_length=sS(e,n)),e.match_length>=mt)if(i=ni._tr_tally(e,e.strstart-e.match_start,e.match_length-mt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=mt){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=e.strstart<mt-1?e.strstart:mt-1,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function fo(e,t){for(var n,i,r;;){if(e.lookahead<gi){if(As(e),e.lookahead<gi&&t===xs)return $t;if(e.lookahead===0)break}if(n=0,e.lookahead>=mt&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=mt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-gi&&(e.match_length=sS(e,n),e.match_length<=5&&(e.strategy===CA||e.match_length===mt&&e.strstart-e.match_start>4096)&&(e.match_length=mt-1)),e.prev_length>=mt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-mt,i=ni._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-mt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+mt-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=mt-1,e.strstart++,i&&(an(e,!1),e.strm.avail_out===0))return $t}else if(e.match_available){if(i=ni._tr_tally(e,0,e.window[e.strstart-1]),i&&an(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return $t}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ni._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<mt-1?e.strstart:mt-1,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function VA(e,t){for(var n,i,r,u,l=e.window;;){if(e.lookahead<=Jr){if(As(e),e.lookahead<=Jr&&t===xs)return $t;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=mt&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){u=e.strstart+Jr;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<u);e.match_length=Jr-(u-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=mt?(n=ni._tr_tally(e,1,e.match_length-mt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function KA(e,t){for(var n;;){if(e.lookahead===0&&(As(e),e.lookahead===0)){if(t===xs)return $t;break}if(e.match_length=0,n=ni._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(an(e,!1),e.strm.avail_out===0))return $t}return e.insert=0,t===Gr?(an(e,!0),e.strm.avail_out===0?Cs:Jo):e.last_lit&&(an(e,!1),e.strm.avail_out===0)?$t:Xa}function Ni(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}var So;So=[new Ni(0,0,0,0,HA),new Ni(4,4,8,4,_d),new Ni(4,5,16,8,_d),new Ni(4,6,32,32,_d),new Ni(4,4,16,16,fo),new Ni(8,16,32,32,fo),new Ni(8,16,128,128,fo),new Ni(8,32,128,256,fo),new Ni(32,128,258,1024,fo),new Ni(32,258,258,4096,fo)];function ZA(e){e.window_size=2*e.w_size,Ur(e.head),e.max_lazy_match=So[e.level].max_lazy,e.good_match=So[e.level].good_length,e.nice_match=So[e.level].nice_length,e.max_chain_length=So[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=mt-1,e.match_available=0,e.ins_h=0}function QA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Tn.Buf16(JA*2),this.dyn_dtree=new Tn.Buf16((2*xA+1)*2),this.bl_tree=new Tn.Buf16((2*UA+1)*2),Ur(this.dyn_ltree),Ur(this.dyn_dtree),Ur(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Tn.Buf16(zA+1),this.heap=new Tn.Buf16(2*kh+1),Ur(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Tn.Buf16(2*kh+1),Ur(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function oS(e){var t;return!e||!e.state?zr(e,ii):(e.total_in=e.total_out=0,e.data_type=IA,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?$u:Ss,e.adler=t.wrap===2?0:1,t.last_flush=xs,ni._tr_init(t),Bi)}function aS(e){var t=oS(e);return t===Bi&&ZA(e.state),t}function XA(e,t){return!e||!e.state||e.state.wrap!==2?ii:(e.state.gzhead=t,Bi)}function lS(e,t,n,i,r,u){if(!e)return ii;var l=1;if(t===EA&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>MA||n!==Yu||i<8||i>15||t<0||t>9||u<0||u>FA)return zr(e,ii);i===8&&(i=9);var d=new QA;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=r+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+mt-1)/mt),d.window=new Tn.Buf8(d.w_size*2),d.head=new Tn.Buf16(d.hash_size),d.prev=new Tn.Buf16(d.w_size),d.lit_bufsize=1<<r+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new Tn.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=u,d.method=n,aS(e)}function YA(e,t){return lS(e,t,Yu,jA,BA,PA)}function $A(e,t){var n,i,r,u;if(!e||!e.state||t>ab||t<0)return e?zr(e,ii):ii;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ka&&t!==Gr)return zr(e,e.avail_out===0?wd:ii);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===$u)if(i.wrap===2)e.adler=0,bt(i,31),bt(i,139),bt(i,8),i.gzhead?(bt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),bt(i,i.gzhead.time&255),bt(i,i.gzhead.time>>8&255),bt(i,i.gzhead.time>>16&255),bt(i,i.gzhead.time>>24&255),bt(i,i.level===9?2:i.strategy>=au||i.level<2?4:0),bt(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(bt(i,i.gzhead.extra.length&255),bt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Br(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Oh):(bt(i,0),bt(i,0),bt(i,0),bt(i,0),bt(i,0),bt(i,i.level===9?2:i.strategy>=au||i.level<2?4:0),bt(i,GA),i.status=Ss);else{var l=Yu+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=au||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=WA),l+=31-l%31,i.status=Ss,ba(i,l),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1}if(i.status===Oh)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size));)bt(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=vu)}else i.status=vu;if(i.status===vu)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.name.length?u=i.gzhead.name.charCodeAt(i.gzindex++)&255:u=0,bt(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),u===0&&(i.gzindex=0,i.status=wu)}else i.status=wu;if(i.status===wu)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),Rr(e),r=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.comment.length?u=i.gzhead.comment.charCodeAt(i.gzindex++)&255:u=0,bt(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>r&&(e.adler=Br(e.adler,i.pending_buf,i.pending-r,r)),u===0&&(i.status=_u)}else i.status=_u;if(i.status===_u&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Rr(e),i.pending+2<=i.pending_buf_size&&(bt(i,e.adler&255),bt(i,e.adler>>8&255),e.adler=0,i.status=Ss)):i.status=Ss),i.pending!==0){if(Rr(e),e.avail_out===0)return i.last_flush=-1,Bi}else if(e.avail_in===0&&ub(t)<=ub(n)&&t!==Gr)return zr(e,wd);if(i.status===ka&&e.avail_in!==0)return zr(e,wd);if(e.avail_in!==0||i.lookahead!==0||t!==xs&&i.status!==ka){var y=i.strategy===au?KA(i,t):i.strategy===AA?VA(i,t):So[i.level].func(i,t);if((y===Cs||y===Jo)&&(i.status=ka),y===$t||y===Cs)return e.avail_out===0&&(i.last_flush=-1),Bi;if(y===Xa&&(t===NA?ni._tr_align(i):t!==ab&&(ni._tr_stored_block(i,0,0,!1),t===kA&&(Ur(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Rr(e),e.avail_out===0))return i.last_flush=-1,Bi}return t!==Gr?Bi:i.wrap<=0?lb:(i.wrap===2?(bt(i,e.adler&255),bt(i,e.adler>>8&255),bt(i,e.adler>>16&255),bt(i,e.adler>>24&255),bt(i,e.total_in&255),bt(i,e.total_in>>8&255),bt(i,e.total_in>>16&255),bt(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),Rr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Bi:lb)}function eF(e){var t;return!e||!e.state?ii:(t=e.state.status,t!==$u&&t!==Oh&&t!==vu&&t!==wu&&t!==_u&&t!==Ss&&t!==ka?zr(e,ii):(e.state=null,t===Ss?zr(e,OA):Bi))}function tF(e,t){var n=t.length,i,r,u,l,d,y,T,S;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==$u||i.lookahead))return ii;for(l===1&&(e.adler=rS(e.adler,t,n,0)),i.wrap=0,n>=i.w_size&&(l===0&&(Ur(i.head),i.strstart=0,i.block_start=0,i.insert=0),S=new Tn.Buf8(i.w_size),Tn.arraySet(S,t,n-i.w_size,i.w_size,0),t=S,n=i.w_size),d=e.avail_in,y=e.next_in,T=e.input,e.avail_in=n,e.next_in=0,e.input=t,As(i);i.lookahead>=mt;){r=i.strstart,u=i.lookahead-(mt-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[r+mt-1])&i.hash_mask,i.prev[r&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=r,r++;while(--u);i.strstart=r,i.lookahead=mt-1,As(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=mt-1,i.match_available=0,e.next_in=y,e.input=T,e.avail_in=d,i.wrap=l,Bi}Wi.deflateInit=YA;Wi.deflateInit2=lS;Wi.deflateReset=aS;Wi.deflateResetKeep=oS;Wi.deflateSetHeader=XA;Wi.deflate=$A;Wi.deflateEnd=eF;Wi.deflateSetDictionary=tF;Wi.deflateInfo="pako deflate (from Nodeca project)";var Us={},ec=br,uS=!0,cS=!0;try{String.fromCharCode.apply(null,[0])}catch{uS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{cS=!1}var Wa=new ec.Buf8(256);for(var Ir=0;Ir<256;Ir++)Wa[Ir]=Ir>=252?6:Ir>=248?5:Ir>=240?4:Ir>=224?3:Ir>=192?2:1;Wa[254]=Wa[254]=1;Us.string2buf=function(e){var t,n,i,r,u,l=e.length,d=0;for(r=0;r<l;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),d+=n<128?1:n<2048?2:n<65536?3:4;for(t=new ec.Buf8(d),u=0,r=0;u<d;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?t[u++]=n:n<2048?(t[u++]=192|n>>>6,t[u++]=128|n&63):n<65536?(t[u++]=224|n>>>12,t[u++]=128|n>>>6&63,t[u++]=128|n&63):(t[u++]=240|n>>>18,t[u++]=128|n>>>12&63,t[u++]=128|n>>>6&63,t[u++]=128|n&63);return t};function fS(e,t){if(t<65534&&(e.subarray&&cS||!e.subarray&&uS))return String.fromCharCode.apply(null,ec.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}Us.buf2binstring=function(e){return fS(e,e.length)};Us.binstring2buf=function(e){for(var t=new ec.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t};Us.buf2string=function(e,t){var n,i,r,u,l=t||e.length,d=new Array(l*2);for(i=0,n=0;n<l;){if(r=e[n++],r<128){d[i++]=r;continue}if(u=Wa[r],u>4){d[i++]=65533,n+=u-1;continue}for(r&=u===2?31:u===3?15:7;u>1&&n<l;)r=r<<6|e[n++]&63,u--;if(u>1){d[i++]=65533;continue}r<65536?d[i++]=r:(r-=65536,d[i++]=55296|r>>10&1023,d[i++]=56320|r&1023)}return fS(d,i)};Us.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Wa[e[n]]>t?n:t};function nF(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var dS=nF,Ia=Wi,Ma=br,Eh=Us,Ch=fp,iF=dS,hS=Object.prototype.toString,rF=0,Ld=4,Oo=0,cb=1,fb=2,sF=-1,oF=0,aF=8;function Fs(e){if(!(this instanceof Fs))return new Fs(e);this.options=Ma.assign({level:sF,method:aF,chunkSize:16384,windowBits:15,memLevel:8,strategy:oF,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iF,this.strm.avail_out=0;var n=Ia.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Oo)throw new Error(Ch[n]);if(t.header&&Ia.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Eh.string2buf(t.dictionary):hS.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,n=Ia.deflateSetDictionary(this.strm,i),n!==Oo)throw new Error(Ch[n]);this._dict_set=!0}}Fs.prototype.push=function(e,t){var n=this.strm,i=this.options.chunkSize,r,u;if(this.ended)return!1;u=t===~~t?t:t===!0?Ld:rF,typeof e=="string"?n.input=Eh.string2buf(e):hS.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Ma.Buf8(i),n.next_out=0,n.avail_out=i),r=Ia.deflate(n,u),r!==cb&&r!==Oo)return this.onEnd(r),this.ended=!0,!1;(n.avail_out===0||n.avail_in===0&&(u===Ld||u===fb))&&(this.options.to==="string"?this.onData(Eh.buf2binstring(Ma.shrinkBuf(n.output,n.next_out))):this.onData(Ma.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||n.avail_out===0)&&r!==cb);return u===Ld?(r=Ia.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Oo):(u===fb&&(this.onEnd(Oo),n.avail_out=0),!0)};Fs.prototype.onData=function(e){this.chunks.push(e)};Fs.prototype.onEnd=function(e){e===Oo&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ma.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function dp(e,t){var n=new Fs(t);if(n.push(e,!0),n.err)throw n.msg||Ch[n.err];return n.result}function lF(e,t){return t=t||{},t.raw=!0,dp(e,t)}function uF(e,t){return t=t||{},t.gzip=!0,dp(e,t)}Za.Deflate=Fs;Za.deflate=dp;Za.deflateRaw=lF;Za.gzip=uF;var Ya={},Ti={},lu=30,cF=12,fF=function(t,n){var i,r,u,l,d,y,T,S,O,I,k,P,m,C,J,x,G,K,U,R,A,b,_,L,g;i=t.state,r=t.next_in,L=t.input,u=r+(t.avail_in-5),l=t.next_out,g=t.output,d=l-(n-t.avail_out),y=l+(t.avail_out-257),T=i.dmax,S=i.wsize,O=i.whave,I=i.wnext,k=i.window,P=i.hold,m=i.bits,C=i.lencode,J=i.distcode,x=(1<<i.lenbits)-1,G=(1<<i.distbits)-1;e:do{m<15&&(P+=L[r++]<<m,m+=8,P+=L[r++]<<m,m+=8),K=C[P&x];t:for(;;){if(U=K>>>24,P>>>=U,m-=U,U=K>>>16&255,U===0)g[l++]=K&65535;else if(U&16){R=K&65535,U&=15,U&&(m<U&&(P+=L[r++]<<m,m+=8),R+=P&(1<<U)-1,P>>>=U,m-=U),m<15&&(P+=L[r++]<<m,m+=8,P+=L[r++]<<m,m+=8),K=J[P&G];n:for(;;){if(U=K>>>24,P>>>=U,m-=U,U=K>>>16&255,U&16){if(A=K&65535,U&=15,m<U&&(P+=L[r++]<<m,m+=8,m<U&&(P+=L[r++]<<m,m+=8)),A+=P&(1<<U)-1,A>T){t.msg="invalid distance too far back",i.mode=lu;break e}if(P>>>=U,m-=U,U=l-d,A>U){if(U=A-U,U>O&&i.sane){t.msg="invalid distance too far back",i.mode=lu;break e}if(b=0,_=k,I===0){if(b+=S-U,U<R){R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}}else if(I<U){if(b+=S+I-U,U-=I,U<R){R-=U;do g[l++]=k[b++];while(--U);if(b=0,I<R){U=I,R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}}}else if(b+=I-U,U<R){R-=U;do g[l++]=k[b++];while(--U);b=l-A,_=g}for(;R>2;)g[l++]=_[b++],g[l++]=_[b++],g[l++]=_[b++],R-=3;R&&(g[l++]=_[b++],R>1&&(g[l++]=_[b++]))}else{b=l-A;do g[l++]=g[b++],g[l++]=g[b++],g[l++]=g[b++],R-=3;while(R>2);R&&(g[l++]=g[b++],R>1&&(g[l++]=g[b++]))}}else if(U&64){t.msg="invalid distance code",i.mode=lu;break e}else{K=J[(K&65535)+(P&(1<<U)-1)];continue n}break}}else if(U&64)if(U&32){i.mode=cF;break e}else{t.msg="invalid literal/length code",i.mode=lu;break e}else{K=C[(K&65535)+(P&(1<<U)-1)];continue t}break}}while(r<u&&l<y);R=m>>3,r-=R,m-=R<<3,P&=(1<<m)-1,t.next_in=r,t.next_out=l,t.avail_in=r<u?5+(u-r):5-(r-u),t.avail_out=l<y?257+(y-l):257-(l-y),i.hold=P,i.bits=m},db=br,ho=15,hb=852,pb=592,mb=0,Nd=1,yb=2,dF=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hF=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],pF=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],mF=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],yF=function(t,n,i,r,u,l,d,y){var T=y.bits,S=0,O=0,I=0,k=0,P=0,m=0,C=0,J=0,x=0,G=0,K,U,R,A,b,_=null,L=0,g,p=new db.Buf16(ho+1),a=new db.Buf16(ho+1),o=null,f=0,h,w,N;for(S=0;S<=ho;S++)p[S]=0;for(O=0;O<r;O++)p[n[i+O]]++;for(P=T,k=ho;k>=1&&p[k]===0;k--);if(P>k&&(P=k),k===0)return u[l++]=1<<24|64<<16|0,u[l++]=1<<24|64<<16|0,y.bits=1,0;for(I=1;I<k&&p[I]===0;I++);for(P<I&&(P=I),J=1,S=1;S<=ho;S++)if(J<<=1,J-=p[S],J<0)return-1;if(J>0&&(t===mb||k!==1))return-1;for(a[1]=0,S=1;S<ho;S++)a[S+1]=a[S]+p[S];for(O=0;O<r;O++)n[i+O]!==0&&(d[a[n[i+O]]++]=O);if(t===mb?(_=o=d,g=19):t===Nd?(_=dF,L-=257,o=hF,f-=257,g=256):(_=pF,o=mF,g=-1),G=0,O=0,S=I,b=l,m=P,C=0,R=-1,x=1<<P,A=x-1,t===Nd&&x>hb||t===yb&&x>pb)return 1;for(;;){h=S-C,d[O]<g?(w=0,N=d[O]):d[O]>g?(w=o[f+d[O]],N=_[L+d[O]]):(w=96,N=0),K=1<<S-C,U=1<<m,I=U;do U-=K,u[b+(G>>C)+U]=h<<24|w<<16|N|0;while(U!==0);for(K=1<<S-1;G&K;)K>>=1;if(K!==0?(G&=K-1,G+=K):G=0,O++,--p[S]===0){if(S===k)break;S=n[i+d[O]]}if(S>P&&(G&A)!==R){for(C===0&&(C=P),b+=I,m=S-C,J=1<<m;m+C<k&&(J-=p[m+C],!(J<=0));)m++,J<<=1;if(x+=1<<m,t===Nd&&x>hb||t===yb&&x>pb)return 1;R=G&A,u[R]=P<<24|m<<16|b-l|0}}return G!==0&&(u[b+G]=S-C<<24|64<<16|0),y.bits=P,0},Gn=br,Ah=nS,ki=iS,gF=fF,ja=yF,bF=0,pS=1,mS=2,gb=4,TF=5,uu=6,Ps=0,SF=1,vF=2,si=-2,yS=-3,gS=-4,wF=-5,bb=8,bS=1,Tb=2,Sb=3,vb=4,wb=5,_b=6,Lb=7,Nb=8,kb=9,Ob=10,Du=11,nr=12,kd=13,Eb=14,Od=15,Cb=16,Ab=17,Fb=18,Pb=19,cu=20,fu=21,Ib=22,Mb=23,jb=24,Bb=25,Rb=26,Ed=27,Db=28,xb=29,It=30,TS=31,_F=32,LF=852,NF=592,kF=15,OF=kF;function Ub(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function EF(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Gn.Buf16(320),this.work=new Gn.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function SS(e){var t;return!e||!e.state?si:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=bS,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Gn.Buf32(LF),t.distcode=t.distdyn=new Gn.Buf32(NF),t.sane=1,t.back=-1,Ps)}function vS(e){var t;return!e||!e.state?si:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,SS(e))}function wS(e,t){var n,i;return!e||!e.state||(i=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?si:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,vS(e))}function _S(e,t){var n,i;return e?(i=new EF,e.state=i,i.window=null,n=wS(e,t),n!==Ps&&(e.state=null),n):si}function CF(e){return _S(e,OF)}var Jb=!0,Cd,Ad;function AF(e){if(Jb){var t;for(Cd=new Gn.Buf32(512),Ad=new Gn.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ja(pS,e.lens,0,288,Cd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ja(mS,e.lens,0,32,Ad,0,e.work,{bits:5}),Jb=!1}e.lencode=Cd,e.lenbits=9,e.distcode=Ad,e.distbits=5}function LS(e,t,n,i){var r,u=e.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new Gn.Buf8(u.wsize)),i>=u.wsize?(Gn.arraySet(u.window,t,n-u.wsize,u.wsize,0),u.wnext=0,u.whave=u.wsize):(r=u.wsize-u.wnext,r>i&&(r=i),Gn.arraySet(u.window,t,n-i,r,u.wnext),i-=r,i?(Gn.arraySet(u.window,t,n-i,i,0),u.wnext=i,u.whave=u.wsize):(u.wnext+=r,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=r))),0}function FF(e,t){var n,i,r,u,l,d,y,T,S,O,I,k,P,m,C=0,J,x,G,K,U,R,A,b,_=new Gn.Buf8(4),L,g,p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return si;n=e.state,n.mode===nr&&(n.mode=kd),l=e.next_out,r=e.output,y=e.avail_out,u=e.next_in,i=e.input,d=e.avail_in,T=n.hold,S=n.bits,O=d,I=y,b=Ps;e:for(;;)switch(n.mode){case bS:if(n.wrap===0){n.mode=kd;break}for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.wrap&2&&T===35615){n.check=0,_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0),T=0,S=0,n.mode=Tb;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((T&255)<<8)+(T>>8))%31){e.msg="incorrect header check",n.mode=It;break}if((T&15)!==bb){e.msg="unknown compression method",n.mode=It;break}if(T>>>=4,S-=4,A=(T&15)+8,n.wbits===0)n.wbits=A;else if(A>n.wbits){e.msg="invalid window size",n.mode=It;break}n.dmax=1<<A,e.adler=n.check=1,n.mode=T&512?Ob:nr,T=0,S=0;break;case Tb:for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.flags=T,(n.flags&255)!==bb){e.msg="unknown compression method",n.mode=It;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=It;break}n.head&&(n.head.text=T>>8&1),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0,n.mode=Sb;case Sb:for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.head&&(n.head.time=T),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,_[2]=T>>>16&255,_[3]=T>>>24&255,n.check=ki(n.check,_,4,0)),T=0,S=0,n.mode=vb;case vb:for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.head&&(n.head.xflags=T&255,n.head.os=T>>8),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0,n.mode=wb;case wb:if(n.flags&1024){for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.length=T,n.head&&(n.head.extra_len=T),n.flags&512&&(_[0]=T&255,_[1]=T>>>8&255,n.check=ki(n.check,_,2,0)),T=0,S=0}else n.head&&(n.head.extra=null);n.mode=_b;case _b:if(n.flags&1024&&(k=n.length,k>d&&(k=d),k&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Gn.arraySet(n.head.extra,i,u,k,A)),n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,n.length-=k),n.length))break e;n.length=0,n.mode=Lb;case Lb:if(n.flags&2048){if(d===0)break e;k=0;do A=i[u+k++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A));while(A&&k<d);if(n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,A)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Nb;case Nb:if(n.flags&4096){if(d===0)break e;k=0;do A=i[u+k++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A));while(A&&k<d);if(n.flags&512&&(n.check=ki(n.check,i,k,u)),d-=k,u+=k,A)break e}else n.head&&(n.head.comment=null);n.mode=kb;case kb:if(n.flags&512){for(;S<16;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T!==(n.check&65535)){e.msg="header crc mismatch",n.mode=It;break}T=0,S=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=nr;break;case Ob:for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}e.adler=n.check=Ub(T),T=0,S=0,n.mode=Du;case Du:if(n.havedict===0)return e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,vF;e.adler=n.check=1,n.mode=nr;case nr:if(t===TF||t===uu)break e;case kd:if(n.last){T>>>=S&7,S-=S&7,n.mode=Ed;break}for(;S<3;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}switch(n.last=T&1,T>>>=1,S-=1,T&3){case 0:n.mode=Eb;break;case 1:if(AF(n),n.mode=cu,t===uu){T>>>=2,S-=2;break e}break;case 2:n.mode=Ab;break;case 3:e.msg="invalid block type",n.mode=It}T>>>=2,S-=2;break;case Eb:for(T>>>=S&7,S-=S&7;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if((T&65535)!==(T>>>16^65535)){e.msg="invalid stored block lengths",n.mode=It;break}if(n.length=T&65535,T=0,S=0,n.mode=Od,t===uu)break e;case Od:n.mode=Cb;case Cb:if(k=n.length,k){if(k>d&&(k=d),k>y&&(k=y),k===0)break e;Gn.arraySet(r,i,u,k,l),d-=k,u+=k,y-=k,l+=k,n.length-=k;break}n.mode=nr;break;case Ab:for(;S<14;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(n.nlen=(T&31)+257,T>>>=5,S-=5,n.ndist=(T&31)+1,T>>>=5,S-=5,n.ncode=(T&15)+4,T>>>=4,S-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=It;break}n.have=0,n.mode=Fb;case Fb:for(;n.have<n.ncode;){for(;S<3;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.lens[p[n.have++]]=T&7,T>>>=3,S-=3}for(;n.have<19;)n.lens[p[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},b=ja(bF,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,b){e.msg="invalid code lengths set",n.mode=It;break}n.have=0,n.mode=Pb;case Pb:for(;n.have<n.nlen+n.ndist;){for(;C=n.lencode[T&(1<<n.lenbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(G<16)T>>>=J,S-=J,n.lens[n.have++]=G;else{if(G===16){for(g=J+2;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T>>>=J,S-=J,n.have===0){e.msg="invalid bit length repeat",n.mode=It;break}A=n.lens[n.have-1],k=3+(T&3),T>>>=2,S-=2}else if(G===17){for(g=J+3;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=J,S-=J,A=0,k=3+(T&7),T>>>=3,S-=3}else{for(g=J+7;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=J,S-=J,A=0,k=11+(T&127),T>>>=7,S-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=It;break}for(;k--;)n.lens[n.have++]=A}}if(n.mode===It)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=It;break}if(n.lenbits=9,L={bits:n.lenbits},b=ja(pS,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,b){e.msg="invalid literal/lengths set",n.mode=It;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},b=ja(mS,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,b){e.msg="invalid distances set",n.mode=It;break}if(n.mode=cu,t===uu)break e;case cu:n.mode=fu;case fu:if(d>=6&&y>=258){e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,gF(e,I),l=e.next_out,r=e.output,y=e.avail_out,u=e.next_in,i=e.input,d=e.avail_in,T=n.hold,S=n.bits,n.mode===nr&&(n.back=-1);break}for(n.back=0;C=n.lencode[T&(1<<n.lenbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(x&&!(x&240)){for(K=J,U=x,R=G;C=n.lencode[R+((T&(1<<K+U)-1)>>K)],J=C>>>24,x=C>>>16&255,G=C&65535,!(K+J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=K,S-=K,n.back+=K}if(T>>>=J,S-=J,n.back+=J,n.length=G,x===0){n.mode=Rb;break}if(x&32){n.back=-1,n.mode=nr;break}if(x&64){e.msg="invalid literal/length code",n.mode=It;break}n.extra=x&15,n.mode=Ib;case Ib:if(n.extra){for(g=n.extra;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.length+=T&(1<<n.extra)-1,T>>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Mb;case Mb:for(;C=n.distcode[T&(1<<n.distbits)-1],J=C>>>24,x=C>>>16&255,G=C&65535,!(J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(!(x&240)){for(K=J,U=x,R=G;C=n.distcode[R+((T&(1<<K+U)-1)>>K)],J=C>>>24,x=C>>>16&255,G=C&65535,!(K+J<=S);){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}T>>>=K,S-=K,n.back+=K}if(T>>>=J,S-=J,n.back+=J,x&64){e.msg="invalid distance code",n.mode=It;break}n.offset=G,n.extra=x&15,n.mode=jb;case jb:if(n.extra){for(g=n.extra;S<g;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}n.offset+=T&(1<<n.extra)-1,T>>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=It;break}n.mode=Bb;case Bb:if(y===0)break e;if(k=I-y,n.offset>k){if(k=n.offset-k,k>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=It;break}k>n.wnext?(k-=n.wnext,P=n.wsize-k):P=n.wnext-k,k>n.length&&(k=n.length),m=n.window}else m=r,P=l-n.offset,k=n.length;k>y&&(k=y),y-=k,n.length-=k;do r[l++]=m[P++];while(--k);n.length===0&&(n.mode=fu);break;case Rb:if(y===0)break e;r[l++]=n.length,y--,n.mode=fu;break;case Ed:if(n.wrap){for(;S<32;){if(d===0)break e;d--,T|=i[u++]<<S,S+=8}if(I-=y,e.total_out+=I,n.total+=I,I&&(e.adler=n.check=n.flags?ki(n.check,r,I,l-I):Ah(n.check,r,I,l-I)),I=y,(n.flags?T:Ub(T))!==n.check){e.msg="incorrect data check",n.mode=It;break}T=0,S=0}n.mode=Db;case Db:if(n.wrap&&n.flags){for(;S<32;){if(d===0)break e;d--,T+=i[u++]<<S,S+=8}if(T!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=It;break}T=0,S=0}n.mode=xb;case xb:b=SF;break e;case It:b=yS;break e;case TS:return gS;case _F:default:return si}return e.next_out=l,e.avail_out=y,e.next_in=u,e.avail_in=d,n.hold=T,n.bits=S,(n.wsize||I!==e.avail_out&&n.mode<It&&(n.mode<Ed||t!==gb))&&LS(e,e.output,e.next_out,I-e.avail_out),O-=e.avail_in,I-=e.avail_out,e.total_in+=O,e.total_out+=I,n.total+=I,n.wrap&&I&&(e.adler=n.check=n.flags?ki(n.check,r,I,e.next_out-I):Ah(n.check,r,I,e.next_out-I)),e.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===cu||n.mode===Od?256:0),(O===0&&I===0||t===gb)&&b===Ps&&(b=wF),b}function PF(e){if(!e||!e.state)return si;var t=e.state;return t.window&&(t.window=null),e.state=null,Ps}function IF(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?si:(n.head=t,t.done=!1,Ps)}function MF(e,t){var n=t.length,i,r,u;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Du)?si:i.mode===Du&&(r=1,r=Ah(r,t,n,0),r!==i.check)?yS:(u=LS(e,t,n,n),u?(i.mode=TS,gS):(i.havedict=1,Ps))}Ti.inflateReset=vS;Ti.inflateReset2=wS;Ti.inflateResetKeep=SS;Ti.inflateInit=CF;Ti.inflateInit2=_S;Ti.inflate=FF;Ti.inflateEnd=PF;Ti.inflateGetHeader=IF;Ti.inflateSetDictionary=MF;Ti.inflateInfo="pako inflate (from Nodeca project)";var NS={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function jF(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var BF=jF,Eo=Ti,Ba=br,Lu=Us,Ht=NS,Fh=fp,RF=dS,DF=BF,kS=Object.prototype.toString;function Is(e){if(!(this instanceof Is))return new Is(e);this.options=Ba.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RF,this.strm.avail_out=0;var n=Eo.inflateInit2(this.strm,t.windowBits);if(n!==Ht.Z_OK)throw new Error(Fh[n]);if(this.header=new DF,Eo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Lu.string2buf(t.dictionary):kS.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Eo.inflateSetDictionary(this.strm,t.dictionary),n!==Ht.Z_OK)))throw new Error(Fh[n])}Is.prototype.push=function(e,t){var n=this.strm,i=this.options.chunkSize,r=this.options.dictionary,u,l,d,y,T,S=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?Ht.Z_FINISH:Ht.Z_NO_FLUSH,typeof e=="string"?n.input=Lu.binstring2buf(e):kS.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new Ba.Buf8(i),n.next_out=0,n.avail_out=i),u=Eo.inflate(n,Ht.Z_NO_FLUSH),u===Ht.Z_NEED_DICT&&r&&(u=Eo.inflateSetDictionary(this.strm,r)),u===Ht.Z_BUF_ERROR&&S===!0&&(u=Ht.Z_OK,S=!1),u!==Ht.Z_STREAM_END&&u!==Ht.Z_OK)return this.onEnd(u),this.ended=!0,!1;n.next_out&&(n.avail_out===0||u===Ht.Z_STREAM_END||n.avail_in===0&&(l===Ht.Z_FINISH||l===Ht.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=Lu.utf8border(n.output,n.next_out),y=n.next_out-d,T=Lu.buf2string(n.output,d),n.next_out=y,n.avail_out=i-y,y&&Ba.arraySet(n.output,n.output,d,y,0),this.onData(T)):this.onData(Ba.shrinkBuf(n.output,n.next_out))),n.avail_in===0&&n.avail_out===0&&(S=!0)}while((n.avail_in>0||n.avail_out===0)&&u!==Ht.Z_STREAM_END);return u===Ht.Z_STREAM_END&&(l=Ht.Z_FINISH),l===Ht.Z_FINISH?(u=Eo.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===Ht.Z_OK):(l===Ht.Z_SYNC_FLUSH&&(this.onEnd(Ht.Z_OK),n.avail_out=0),!0)};Is.prototype.onData=function(e){this.chunks.push(e)};Is.prototype.onEnd=function(e){e===Ht.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ba.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function hp(e,t){var n=new Is(t);if(n.push(e,!0),n.err)throw n.msg||Fh[n.err];return n.result}function xF(e,t){return t=t||{},t.raw=!0,hp(e,t)}Ya.Inflate=Is;Ya.inflate=hp;Ya.inflateRaw=xF;Ya.ungzip=hp;var UF=br.assign,JF=Za,zF=Ya,WF=NS,OS={};UF(OS,JF,zF,WF);var GF=OS,Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.messageAssert=Kt.messageError=Kt.QuickTypeError=void 0;const qF={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:"Malformed unicode: High surrogate not followed by low surrogate",MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:"GraphQL file doesn't have any queries defined.",DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:"Please specify at least one GraphQL query as input",DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:"If a GraphQL schema is specified, the source language must be GraphQL",DriverGraphQLSchemaNeeded:"Please specify a GraphQL schema with --graphql-schema or --graphql-introspect",DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:"Please specify a language (--lang) or an output file extension",DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:"Cannot resolve cycle because it doesn't contain types that can be forward declared",IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:"Trying to make an empty union - do you have an impossible type in your schema?",RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"};class ES extends Error{constructor(t,n,i,r){super(i),this.errorMessage=t,this.messageName=n,this.properties=r}}Kt.QuickTypeError=ES;function CS(e,t){const n=qF[e];let i=n;const r=t;for(const u of Object.getOwnPropertyNames(r)){let l=r[u];typeof l=="object"&&typeof l.toString=="function"?l=l.toString():typeof l.message=="string"?l=l.message:typeof l!="string"&&(l=JSON.stringify(l)),i=i.replace("${"+u+"}",l)}throw new ES(n,e,i,r)}Kt.messageError=CS;function HF(e,t,n){if(!e)return CS(t,n)}Kt.messageAssert=HF;const pp=Symbol.for("yaml.alias"),Ph=Symbol.for("yaml.document"),qr=Symbol.for("yaml.map"),AS=Symbol.for("yaml.pair"),dr=Symbol.for("yaml.scalar"),zo=Symbol.for("yaml.seq"),oi=Symbol.for("yaml.node.type"),$r=e=>!!e&&typeof e=="object"&&e[oi]===pp,Js=e=>!!e&&typeof e=="object"&&e[oi]===Ph,zs=e=>!!e&&typeof e=="object"&&e[oi]===qr,Ft=e=>!!e&&typeof e=="object"&&e[oi]===AS,Ot=e=>!!e&&typeof e=="object"&&e[oi]===dr,Ws=e=>!!e&&typeof e=="object"&&e[oi]===zo;function Mt(e){if(e&&typeof e=="object")switch(e[oi]){case qr:case zo:return!0}return!1}function zt(e){if(e&&typeof e=="object")switch(e[oi]){case pp:case qr:case dr:case zo:return!0}return!1}const VF=e=>(Ot(e)||Mt(e))&&!!e.anchor,Cn=Symbol("break visit"),FS=Symbol("skip children"),Di=Symbol("remove node");function hr(e,t){const n=PS(t);Js(e)?vo(null,e.contents,n,Object.freeze([e]))===Di&&(e.contents=null):vo(null,e,n,Object.freeze([]))}hr.BREAK=Cn;hr.SKIP=FS;hr.REMOVE=Di;function vo(e,t,n,i){const r=IS(e,t,n,i);if(zt(r)||Ft(r))return MS(e,i,r),vo(e,r,n,i);if(typeof r!="symbol"){if(Mt(t)){i=Object.freeze(i.concat(t));for(let u=0;u<t.items.length;++u){const l=vo(u,t.items[u],n,i);if(typeof l=="number")u=l-1;else{if(l===Cn)return Cn;l===Di&&(t.items.splice(u,1),u-=1)}}}else if(Ft(t)){i=Object.freeze(i.concat(t));const u=vo("key",t.key,n,i);if(u===Cn)return Cn;u===Di&&(t.key=null);const l=vo("value",t.value,n,i);if(l===Cn)return Cn;l===Di&&(t.value=null)}}return r}async function $a(e,t){const n=PS(t);Js(e)?await wo(null,e.contents,n,Object.freeze([e]))===Di&&(e.contents=null):await wo(null,e,n,Object.freeze([]))}$a.BREAK=Cn;$a.SKIP=FS;$a.REMOVE=Di;async function wo(e,t,n,i){const r=await IS(e,t,n,i);if(zt(r)||Ft(r))return MS(e,i,r),wo(e,r,n,i);if(typeof r!="symbol"){if(Mt(t)){i=Object.freeze(i.concat(t));for(let u=0;u<t.items.length;++u){const l=await wo(u,t.items[u],n,i);if(typeof l=="number")u=l-1;else{if(l===Cn)return Cn;l===Di&&(t.items.splice(u,1),u-=1)}}}else if(Ft(t)){i=Object.freeze(i.concat(t));const u=await wo("key",t.key,n,i);if(u===Cn)return Cn;u===Di&&(t.key=null);const l=await wo("value",t.value,n,i);if(l===Cn)return Cn;l===Di&&(t.value=null)}}return r}function PS(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function IS(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(zs(t))return n.Map?.(e,t,i);if(Ws(t))return n.Seq?.(e,t,i);if(Ft(t))return n.Pair?.(e,t,i);if(Ot(t))return n.Scalar?.(e,t,i);if($r(t))return n.Alias?.(e,t,i)}function MS(e,t,n){const i=t[t.length-1];if(Mt(i))i.items[e]=n;else if(Ft(i))e==="key"?i.key=n:i.value=n;else if(Js(i))i.contents=n;else{const r=$r(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const KF={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ZF=e=>e.replace(/[!,[\]{}]/g,t=>KF[t]);class bn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},bn.defaultYaml,t),this.tags=Object.assign({},bn.defaultTags,n)}clone(){const t=new bn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new bn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:bn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},bn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:bn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},bn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[u,l]=i;return this.tags[u]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[u]=i;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const l=/^\d+\.\d+$/.test(u);return n(6,`Unsupported YAML version ${u}`,l),!1}}default:return n(0,`Unknown directive ${r}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const l=t.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,i,r]=t.match(/^(.*!)([^!]*)$/s);r||n(`The ${t} tag has no suffix`);const u=this.tags[i];if(u)try{return u+decodeURIComponent(r)}catch(l){return n(String(l)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+ZF(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let r;if(t&&i.length>0&&zt(t.contents)){const u={};hr(t.contents,(l,d)=>{zt(d)&&d.tag&&(u[d.tag]=!0)}),r=Object.keys(u)}else r=[];for(const[u,l]of i)u==="!!"&&l==="tag:yaml.org,2002:"||(!t||r.some(d=>d.startsWith(l)))&&n.push(`%TAG ${u} ${l}`);return n.join(`
|
|
2
2
|
`)}}bn.defaultYaml={explicit:!1,version:"1.2"};bn.defaultTags={"!!":"tag:yaml.org,2002:"};function jS(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function BS(e){const t=new Set;return hr(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function RS(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function QF(e,t){const n=[],i=new Map;let r=null;return{onAnchor:u=>{n.push(u),r||(r=BS(e));const l=RS(t,r);return r.add(l),l},setAnchors:()=>{for(const u of n){const l=i.get(u);if(typeof l=="object"&&l.anchor&&(Ot(l.node)||Mt(l.node)))l.node.anchor=l.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=u,d}}},sourceObjects:i}}function _o(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,u=i.length;r<u;++r){const l=i[r],d=_o(e,i,String(r),l);d===void 0?delete i[r]:d!==l&&(i[r]=d)}else if(i instanceof Map)for(const r of Array.from(i.keys())){const u=i.get(r),l=_o(e,i,r,u);l===void 0?i.delete(r):l!==u&&i.set(r,l)}else if(i instanceof Set)for(const r of Array.from(i)){const u=_o(e,i,r,r);u===void 0?i.delete(r):u!==r&&(i.delete(r),i.add(u))}else for(const[r,u]of Object.entries(i)){const l=_o(e,i,r,u);l===void 0?delete i[r]:l!==u&&(i[r]=l)}return e.call(t,n,i)}function ri(e,t,n){if(Array.isArray(e))return e.map((i,r)=>ri(i,String(r),n));if(e&&typeof e.toJSON=="function"){if(!n||!VF(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=u=>{i.res=u,delete n.onCreate};const r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return typeof e=="bigint"&&!n?.keep?Number(e):e}class mp{constructor(t){Object.defineProperty(this,oi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:u}={}){if(!Js(t))throw new TypeError("A document argument is required");const l={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},d=ri(this,"",l);if(typeof r=="function")for(const{count:y,res:T}of l.anchors.values())r(T,y);return typeof u=="function"?_o(u,{"":d},"",d):d}}class el extends mp{constructor(t){super(pp),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return hr(t,{Node:(i,r)=>{if(r===this)return hr.BREAK;r.anchor===this.source&&(n=r)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:r,maxAliasCount:u}=n,l=this.resolve(r);if(!l){const y=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(y)}let d=i.get(l);if(d||(ri(l,null,n),d=i.get(l)),!d||d.res===void 0){const y="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(y)}if(u>=0&&(d.count+=1,d.aliasCount===0&&(d.aliasCount=Nu(r,l,i)),d.count*d.aliasCount>u)){const y="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(y)}return d.res}toString(t,n,i){const r=`*${this.source}`;if(t){if(jS(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(u)}if(t.implicitKey)return`${r} `}return r}}function Nu(e,t,n){if($r(t)){const i=t.resolve(e),r=n&&i&&n.get(i);return r?r.count*r.aliasCount:0}else if(Mt(t)){let i=0;for(const r of t.items){const u=Nu(e,r,n);u>i&&(i=u)}return i}else if(Ft(t)){const i=Nu(e,t.key,n),r=Nu(e,t.value,n);return Math.max(i,r)}return 1}const DS=e=>!e||typeof e!="function"&&typeof e!="object";class tt extends mp{constructor(t){super(dr),this.value=t}toJSON(t,n){return n?.keep?this.value:ri(this.value,t,n)}toString(){return String(this.value)}}tt.BLOCK_FOLDED="BLOCK_FOLDED";tt.BLOCK_LITERAL="BLOCK_LITERAL";tt.PLAIN="PLAIN";tt.QUOTE_DOUBLE="QUOTE_DOUBLE";tt.QUOTE_SINGLE="QUOTE_SINGLE";const XF="tag:yaml.org,2002:";function YF(e,t,n){if(t){const i=n.filter(u=>u.tag===t),r=i.find(u=>!u.format)??i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(i=>i.identify?.(e)&&!i.format)}function Ga(e,t,n){if(Js(e)&&(e=e.contents),zt(e))return e;if(Ft(e)){const O=n.schema[qr].createNode?.(n.schema,null,n);return O.items.push(e),O}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:r,onTagObj:u,schema:l,sourceObjects:d}=n;let y;if(i&&e&&typeof e=="object"){if(y=d.get(e),y)return y.anchor||(y.anchor=r(e)),new el(y.anchor);y={anchor:null,node:null},d.set(e,y)}t?.startsWith("!!")&&(t=XF+t.slice(2));let T=YF(e,t,l.tags);if(!T){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const O=new tt(e);return y&&(y.node=O),O}T=e instanceof Map?l[qr]:Symbol.iterator in Object(e)?l[zo]:l[qr]}u&&(u(T),delete n.onTagObj);const S=T?.createNode?T.createNode(n.schema,e,n):typeof T?.nodeClass?.from=="function"?T.nodeClass.from(n.schema,e,n):new tt(e);return t?S.tag=t:T.default||(S.tag=T.tag),y&&(y.node=S),S}function xu(e,t,n){let i=n;for(let r=t.length-1;r>=0;--r){const u=t[r];if(typeof u=="number"&&Number.isInteger(u)&&u>=0){const l=[];l[u]=i,i=l}else i=new Map([[u,i]])}return Ga(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Oa=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class yp extends mp{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>zt(i)||Ft(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Oa(t))this.add(n);else{const[i,...r]=t,u=this.get(i,!0);if(Mt(u))u.addIn(r,n);else if(u===void 0&&this.schema)this.set(i,xu(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const r=this.get(n,!0);if(Mt(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...r]=t,u=this.get(i,!0);return r.length===0?!n&&Ot(u)?u.value:u:Mt(u)?u.getIn(r,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ft(n))return!1;const i=n.value;return i==null||t&&Ot(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const r=this.get(n,!0);return Mt(r)?r.hasIn(i):!1}setIn(t,n){const[i,...r]=t;if(r.length===0)this.set(i,n);else{const u=this.get(i,!0);if(Mt(u))u.setIn(r,n);else if(u===void 0&&this.schema)this.set(i,xu(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}}yp.maxFlowStringSingleLineLength=60;const $F=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function lr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const vs=(e,t,n)=>e.endsWith(`
|
|
3
3
|
`)?lr(n,t):n.includes(`
|
|
4
4
|
`)?`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as m}from"./
|
|
1
|
+
import{d as m}from"./f1qyuWhx.js";import{d as k,a as f,aA as _,o as n,m as s,G as r,k as t,F as d,n as g,t as h}from"./CSxKs2xg.js";const C=["innerHTML"],b={class:"shiki"},v=["textContent"],y=t("br",null,null,-1),L=k({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(a,{emit:c}){const o=a,i=c,l=f(()=>{const e=o.lang==="text"?{code:o.code,supported:!1}:m.value?.devtools.renderCodeHighlight(o.code,o.lang)||{code:o.code,supported:!1};return e.supported&&o.transformRendered&&(e.code=o.transformRendered(e.code)),e.supported&&_(()=>i("loaded")),e});return(e,B)=>e.lang&&l.value.supported?(n(),s("pre",{key:0,class:r(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:l.value.code},null,10,C)):(n(),s("pre",{key:1,class:r(["n-code-block",e.lines?"n-code-block-lines":""])},[t("pre",b,[t("code",null,[(n(!0),s(d,null,g(e.code.split(`
|
|
2
2
|
`),(p,u)=>(n(),s(d,{key:u},[t("span",{class:"line",textContent:h(p)},null,8,v),y],64))),128))])])],2))}});export{L as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as o,m as s,k as t,aa as a,o as n}from"./
|
|
1
|
+
import{q as o,m as s,k as t,aa as a,o as n}from"./CSxKs2xg.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
|